ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
* Parse ThirdPartyNotices.txt files and compare them.
*
* Usage:
* node parse-notices.js --file <path> List all packages
* node parse-notices.js --diff <pathA> <pathB> Compare two files
*--------------------------------------------------------------------------------------------*/
import fs from 'fs';
export interface NoticeEntry {
name: string;
version: string;
license: string;
licenseTextLength: number;
/** 1-indexed line number in the source file where this entry's header appears */
lineNumber: number;
/**
* The license body text, captured between this entry's header and the next
* separator, with a single leading URL line stripped (matching how the merge
* step splits url vs. body). Used by Section 4 of scan-licenses.ts to detect
* CG "stub" bodies (where CG emitted the SPDX expression as the body instead
* of the real license text). Optional so existing callers that only need
* names/lengths are unaffected.
*/
licenseText?: string;
}
/**
* Heuristic: does this line look like a package header rather than license prose?
*
* Real headers: "@scope/pkg 1.2.3 - MIT", "pkg - Apache-2.0", "@scope/pkg"
* "org/repo abc123...def - Apache-2.0" (git SHA)
* False positives after decorative dashes inside license text:
* "END OF TERMS AND CONDITIONS", "Apache License", "The MIT License (MIT)",
* "Copyright (c) 2020 Author", "PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2"
*
* Key signals: real package names are lowercase (or git org/repo), never start
* with common license-prose words, and never contain parentheses.
*/
line
line
firstWord line
firstWord
npmNameRe
gitRepoRe
npmNameRefirstWord gitRepoRefirstWord
line
filePath NoticeEntry
content fsfilePath
lines content
entries NoticeEntry
sepRe
i i lineslength i
sepRelinesi
headerLine
headerIdx
j i j lineslength j
linesj
headerLine linesj
headerIdx j
headerLine headerIdx
headerLine headerLine
sepReheaderLine
headerLine
match headerLine
name version license
match
name match
version match
license match
match2 headerLine
match2
name match2
version
license match2
name headerLine
version
license
textLength
bodyLines
j headerIdx j lineslength j
sepRelinesj
textLength linesjlength
bodyLineslinesj
bodyLineslength bodyLines
bodyLines
bodyLineslength
first bodyLines
first first
bodyLines
licenseText bodyLines
entries
name
version
license
licenseTextLength textLength
lineNumber headerIdx
licenseText
entries
filePath
entries filePath
sizeMB fsfilePathsize
e entries
pathA pathB
entriesA pathA
entriesB pathB
namesA
e entriesA
key ename
namesAkey
namesAkey
namesAkeye
namesB
e entriesB
key ename
namesBkey
namesBkey
namesBkeye
onlyA NoticeEntry
onlyB NoticeEntry
inBoth
name entries namesA
namesBname
inBothname
onlyAentries
name entries namesB
namesAname
onlyBentries
sizeA fspathAsize
sizeB fspathBsize
onlyAlength
e onlyAa b anamebname
onlyBlength
e onlyBa b anamebname
versionDiffs
name inBoth
aVersions namesAnamee eversionv v
bVersions namesBnamee eversionv v
aOnly aVersionsv bVersionsv
bOnly bVersionsv aVersionsv
aOnlylength bOnlylength
versionDiffs
versionDiffslength
d versionDiffs
processargv
args processargv
args args
args
args args args
args args
process