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.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
* Apply cglicenses.json overrides on top of a merged NOTICE entry set.
*
* The override file supports three shapes (see .vscode/cglicenses.schema.json):
* - { name, prependLicenseText }
* - { name, fullLicenseText }
* - { name, fullLicenseTextUri, prependLicenseText? }
*
* Any shape may include an optional `version` field. When present, the override
* applies only to the matching name+version. When absent, the override applies
* to every version of the named package.
*
* CELA guidance (vscode-engineering#2142 comment 4624222337):
* Do NOT manufacture copyright statements automatically. Any prepend/full text
* must come from a human-authored override entry, not from the tool.
*
* Override matching is case-insensitive on `name` and exact on `version`.
*
* When an override matches an existing merged entry it EDITS it. When no entry
* exists, the override is the only source of truth for that package, so:
* - if the package is present in the shipped-components presence index, the
* override is INJECTED as a brand-new entry (tagged `cglicenses-override`);
* - if the package is NOT present, the override is almost certainly STALE —
* it is skipped (never injected) and reported in `staleNames` so the caller
* can warn. A stale override never fails the build; the PR-time check is
* the real gate. When no presence index is supplied, staleness cannot be
* proven, so the override is injected (conservative, warn-only design).
* - if the override carries no usable text at all, it is reported in
* `unmatchedNames` so the caller can warn or hard-fail.
*--------------------------------------------------------------------------------------------*/
import fs from 'fs';
import https from 'https';
import http from 'http';
import { URL }
name
version
fullLicenseText
licenseDetail
fullLicenseTextUri
prependLicenseText
name
version
license
url
licenseText
source
appliedNames
injectedNames
appliedEntryCount
unmatchedNames
staleNames
errors
text
out
inString
escape
i i textlength i
ch texti
inString
out ch
escape
escape
ch
escape
ch
inString
ch
inString
out ch
ch texti
i textlength texti
i
i textlength
out
out ch
out
filePath CglicenseEntry
raw fsfilePath
stripped raw
parsed stripped
parsed
entry parsed Record
entryname entryname
parsed CglicenseEntry
uri timeoutMs maxRedirects
resolve
maxRedirects
url
url uri
lib urlprotocol https urlprotocol http
lib
req liburi timeout timeoutMs res
resstatusCode resstatusCode resstatusCode resstatusCode
loc resheaderslocation
res
loc
resolved loc urihref
resolved timeoutMs maxRedirects
resstatusCode
res
data
res
res chunk
data chunk
datalength
req
res data
req
req
req
merged Map MergedEntry
overrides CglicenseEntry
options fetchUris presentNames Set
ApplyResult
appliedNames
injectedNames
unmatchedNames
staleNames
errors
appliedEntryCount
name version
byName
entry merged
k entryname
list byNamek
list
listentry
byNamek entry
override overrides
key overridename
label overrideversion overridename
bodyOverride
overridefullLicenseText overridefullLicenseTextlength
bodyOverride overridefullLicenseText
overridelicenseDetail overridelicenseDetaillength
bodyOverride overridelicenseDetail
overridefullLicenseTextUri
optionsfetchUris
fetched overridefullLicenseTextUri
fetched
errors
bodyOverride fetched
errors
prefix overrideprependLicenseText overrideprependLicenseTextlength
overrideprependLicenseText
allTargets byNamekey
targets allTargets
overrideversion
allTargetst tversion overrideversion
allTargets
targets targetslength
target targets
body bodyOverride targetlicenseText
prefix
body prefix body
targetlicenseText body
appliedEntryCount
appliedNameslabel
hasUsableText bodyOverride prefix
hasUsableText
unmatchedNameslabel
isPresent optionspresentNames optionspresentNameskey
isPresent
staleNameslabel
body
bodyOverride prefix
body prefix bodyOverride
bodyOverride
body bodyOverride
body prefix
injected MergedEntry
name overridename
version overrideversion
license
url overridefullLicenseTextUri
licenseText body
source
mergedoverridename overrideversion injected
list byNamekey
list
listinjected
byNamekey injected
injectedNameslabel
appliedNames injectedNames appliedEntryCount unmatchedNames staleNames errors