@github/copilot-language-server 1.527.0 → 1.527.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +1 -1
  2. package/package.json +8 -8
package/dist/main.js CHANGED
@@ -1941,7 +1941,7 @@ ${r}+- `:"";return e+this.description+o}}},g0=class{constructor(e,r,n,o){this.la
1941
1941
  (using_declaration)
1942
1942
  (alias_declaration)
1943
1943
  (static_assert_declaration)
1944
- ] @statement`}};var MO=class{constructor(e,r,n){this.languageId=e;this.prefix=r;this.completion=n}static{a(this,"BlockTrimmer")}static isSupported(e){return g0.isSupported(e)}static isTrimmedByDefault(e){return g0.isTrimmedByDefault(e)}async withParsedStatementTree(e){var n=[];try{let r=mDt(n,g0.create(this.languageId,this.prefix+this.completion,this.prefix.length,this.prefix.length+this.completion.length));await r.build();return await e(r)}catch(o){var s=o,c=!0}finally{gDt(n,s,c)}}trimmedCompletion(e){return e===void 0?this.completion:this.completion.substring(0,e)}getStatementAtCursor(e){return e.statementAt(Math.max(this.prefix.length-1,0))??e.statements[0]}getContainingBlockOffset(e){let r;if(e&&this.isCompoundStatement(e))r=e;else if(e){let n=e.parent;for(;n&&!this.isCompoundStatement(n);)n=n.parent;r=n}if(r){let n=this.asCompletionOffset(r.node.endIndex);if(n&&this.completion.substring(n).trim()!=="")return n}}hasNonStatementContentAfter(e){if(!e||!e.nextSibling)return!1;let r=this.asCompletionOffset(e.node.endIndex),n=this.asCompletionOffset(e.nextSibling.node.startIndex);return this.completion.substring(Math.max(0,r??0),Math.max(0,n??0)).trim()!==""}asCompletionOffset(e){return e===void 0?void 0:e-this.prefix.length}isCompoundStatement(e){return e.isCompoundStatementType||e.children.length>0}};var WWe=class extends MO{constructor(r,n,o,s=3,c=7){super(r,n,o);this.lineLimit=s;this.lookAhead=c;let l=[...this.completion.matchAll(/\n/g)],u=this.lineLimit+this.lookAhead;l.length>=this.lineLimit&&this.lineLimit>0&&(this.limitOffset=l[this.lineLimit-1].index),l.length>=u&&u>0&&(this.lookAheadOffset=l[u-1].index)}static{a(this,"TerseBlockTrimmer")}async getCompletionTrimOffset(){return await this.withParsedStatementTree(r=>{let n=r.statementAt(this.stmtStartPos()),o=this.getContainingBlockOffset(n);return o=this.trimAtFirstBlankLine(o),n&&(o=this.trimAtStatementChange(n,o)),this.limitOffset&&this.lookAheadOffset&&(o===void 0||o>this.lookAheadOffset)?this.limitOffset:o})}stmtStartPos(){let r=this.completion.match(/\S/);return r&&r.index!==void 0?this.prefix.length+r.index:Math.max(this.prefix.length-1,0)}trimAtFirstBlankLine(r){let n=[...this.trimmedCompletion(r).matchAll(/\r?\n\s*\r?\n/g)];for(;n.length>0&&(r===void 0||r>n[0].index);){let o=n.shift();if(this.completion.substring(0,o.index).trim()!=="")return o.index}return r}trimAtStatementChange(r,n){let o=this.prefix.length,s=this.prefix.length+(n??this.completion.length);if(r.node.endIndex>o&&this.isCompoundStatement(r))return r.nextSibling&&r.node.endIndex<s?this.asCompletionOffset(r.node.endIndex):n;let c=r,l=r.nextSibling;for(;l&&l.node.endIndex<=s&&!this.hasNonStatementContentAfter(c)&&!this.isCompoundStatement(l);)c=l,l=l.nextSibling;return l&&c.node.endIndex>o&&c.node.endIndex<s?this.asCompletionOffset(c.node.endIndex):n}};async function Ogn(t,e){var l=[];try{let r=t.getText();let n=t.offsetAt(e);let o=mDt(l,g0.create(t.detectedLanguageId,r,0,r.length));await o.build();let s=o.statementAt(n);if(!s)return"non-block";if(!s.isCompoundStatementType&&s.children.length===0)return s.parent&&!s.nextSibling&&s.node.endPosition.row<=e.line?"block-end":s.parent?"mid-block":"non-block";if(s.children.length===0)return"empty-block";let c=s.children[s.children.length-1];if(n<c.node.startIndex)return"mid-block";return"block-end"}catch(u){var d=u,f=!0}finally{gDt(l,d,f)}}a(Ogn,"getBlockPositionType");p();function o7o(t){return t.HTTPS_PROXY||t.https_proxy||t.HTTP_PROXY||t.http_proxy}a(o7o,"getProxyFromEnvironment");function s7o(t){return t.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}a(s7o,"getRejectUnauthorizedFromEnvironment");var Lgn=b.Object({proxy:b.Optional(b.String()),proxyStrictSSL:b.Optional(b.Boolean()),proxyAuthorization:b.Optional(b.String()),proxyKerberosServicePrincipal:b.Optional(b.String()),noProxy:b.Optional(b.Array(b.String()))});function Bgn(t){let e=o7o(t),r=Mxe({proxy:e,proxyStrictSSL:s7o(t)}),n=t.GH_COPILOT_KERBEROS_SERVICE_PRINCIPAL??t.GITHUB_COPILOT_KERBEROS_SERVICE_PRINCIPAL??t.AGENT_KERBEROS_SERVICE_PRINCIPAL;return n&&(r.proxyKerberosServicePrincipal=n),r}a(Bgn,"getHttpSettingsFromEnvironment");function Mxe(t){if(!t.proxy)return{...t,proxy:""};try{let{protocol:e,host:r,username:n,password:o,pathname:s,search:c,hash:l}=new URL(t.proxy);return{...t,proxy:`${e}//${r}${s}${c}${l}`,proxyAuthorization:t.proxyAuthorization||a7o(n,o),noProxy:t.noProxy||[]}}catch{return{...t,proxy:""}}}a(Mxe,"normalizeHttpSettings");function a7o(t,e){return!t||!e?"":`${decodeURIComponent(t)}:${decodeURIComponent(e)}`}a(a7o,"getAuth");var Oxe={};Ti(Oxe,{anthropicClaude:()=>m7o,build:()=>f7o,buildType:()=>p7o,default:()=>v7o,dependencies:()=>y7o,description:()=>u7o,devDependencies:()=>A7o,displayName:()=>l7o,engines:()=>h7o,name:()=>c7o,overrides:()=>_7o,overridesComments:()=>E7o,scripts:()=>g7o,version:()=>d7o});var c7o="copilot",l7o="GitHub Copilot",u7o="Your AI pair programmer",d7o="1.527.0",f7o="85",p7o="prod",h7o={node:">=22.13.0",npm:">=11.6.0 <12.0.0"},m7o={cliPackageVersion:"2.1.159"},g7o={build:"tsx esbuild.ts",clean:"./script/build/clean.sh",compress:"tsx ./script/compressTokenizer.ts",generate_languages:"tsx script/generateLanguages.ts && prettier --write lib/src/language/generatedLanguages.ts",get_token:"tsx script/deviceFlow.ts --save-as-test-token",lint:'run-p --aggregate-output "lint:*"',"lint:deps":"depcruise -c .dependency-cruiser.js .","lint:eslint":"eslint -f visualstudio --quiet --cache .","lint:overrides":"tsx script/checkOverridesDocumented.ts","lint:prettier":"prettier --check . 2>&1","lint:types":"tsc --noEmit",inspect_auth_db:"tsx script/inspectAuthDb.ts",prebuild:"npm install",pretest:"npm run build","pretest:headless":"npm run build","pretest:lsp-client":"npm run build","pretest:lib-e2e":"npm run build",prewatch:"npm run build","prewatch:esbuild":"npm run build",start:"npm run watch",test:'npm-run-all "test:headless --ignore-scripts" lint',"test:headless":'npm-run-all test:lib test:agent "test:lib-e2e --ignore-scripts" test:prompt "test:lsp-client --ignore-scripts" lint',"test:agent":'mocha "agent/src/**/*.test.{ts,tsx}"',"test:lib":'mocha "lib/src/**/*.test.{ts,tsx}" "script/**/*.test.{ts,tsx}" --exclude "lib/src/**/*.int.test.ts"',"test:lib-int":'mocha "lib/src/**/*.int.test.ts"',"test:lib-e2e":'mocha "lib/e2e/src/**/*.test.{ts,tsx}" --exclude "lib/e2e/src/prompt/**/*.test.ts"',"test:lib-e2e-no-ci":'mocha "lib/e2e/no-ci/**/*.test.{ts,tsx}"',"test:lib-prompt-e2e":'mocha "lib/e2e/src/prompt/prompt.test.ts"',"test:lib-prompt-e2e-perf":"INCLUDE_PERFORMANCE=true npm run test:lib-prompt-e2e","test:lsp-client":'mocha "lsp-client/test/*.test.{ts,tsx}"',"test:pkg-runtime":"tsx script/smokeCopilotRuntimePkg.ts","test:prompt":'mocha "prompt/test/**/*.test.{ts,tsx}"',"test:prepare-msbench":"tsx script/setupMsbench.ts","test:run-msbench":"tsx lsp-client/test/msbench/agent/index.ts",watch:'run-p "watch:esbuild --ignore-scripts" "watch:types -- --preserveWatchOutput"',"watch:esbuild":"tsx esbuild.ts --watch","watch:types":"tsc --noEmit --watch"},A7o={"@azure/identity":"^4.13.1","@azure/keyvault-secrets":"^4.11.2","@github/prettier-config":"0.0.6","@limegrass/eslint-plugin-import-alias":"^1.6.1","@types/crypto-js":"^4.2.2","@types/diff":"^8.0.0","@types/git-url-parse":"^16.0.2","@types/js-yaml":"^4.0.6","@types/kerberos":"^1.1.2","@types/markdown-it":"^14.1.2","@types/mocha":"^10.0.10","@types/node":"~22.13.0","@types/semver":"^7.7.1","@types/sinon":"^22.0.0","@types/toposort":"^2.0.7","@types/vscode":"1.125.0","@types/which":"^3.0.0","@types/yargs":"^17.0.35","@vscode/tree-sitter-wasm":"0.0.5-php.2","@yao-pkg/pkg":"^6.21.0",boxen:"^8.0.1",chalk:"^5.6.2","dependency-cruiser":"^18.1.0",esbuild:"^0.28.1","esbuild-plugin-copy":"^2.1.1",eslint:"^9.39.5","eslint-formatter-visualstudio":"^9.0.1","eslint-plugin-mocha":"^10.5.0",globals:"^17.8.0","js-yaml":"^4.2.0",mocha:"^11.7.6","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1","npm-run-all":"^4.1.5",openai:"^6.49.0",prettier:"^3.5.3","prettier-plugin-organize-imports":"^4.2.0","simple-git":"^3.36.0",sinon:"^22.1.0","tree-sitter-bash":"^0.23.0","tree-sitter-powershell":"0.25.9","ts-dedent":"^2.3.0",tsx:"^4.23.1",typescript:"^5.9.3","typescript-eslint":"^8.39.1","vscode-dts":"^0.3.3"},y7o={"@adobe/helix-fetch":"github:devm33/helix-fetch#2a08fa939591a0e14f34f611adcc3ed767579e9a","@agentclientprotocol/sdk":"^0.22.1","@anthropic-ai/claude-agent-sdk":"0.3.159","@anthropic-ai/sdk":"^0.98.0","@github/copilot":"^1.0.70","@github/copilot-sdk":"^1.0.6-preview.1","@github/keytar":"7.10.6","@github/memoize":"1.1.5","@microsoft/1ds-core-js":"^4.3.10","@microsoft/1ds-post-js":"^4.3.10","@microsoft/applicationinsights-web-basic":"^3.3.11","@microsoft/mxc-sdk":"0.7.0","@modelcontextprotocol/sdk":"^1.29.0","@octokit/graphql":"^9.0.3","@octokit/rest":"^22.0.1","@parcel/watcher":"^2.6.0","@sinclair/typebox":"^0.34.52","@vscode/chat-lib":"^0.57.0","@vscode/codicons":"^0.0.45","@vscode/deviceid":"github:ghc-jetbrains/vscode-deviceid#f0e5738cd362ef20a09aeb30c3a8be99a9a710f5","@vscode/policy-watcher":"^1.4.0","@vscode/prompt-tsx":"^0.4.0-alpha.9","@vscode/webview-ui-toolkit":"^1.3.1","crypto-js":"^4.2.0",diff:"^9.0.0",dldr:"^0.0.10",events:"^3.3.0","git-url-parse":"^16.1.0",glob:"^11.1.0","jsonc-parser":"^3.3.1",kerberos:"^2.2.0","mac-ca":"^3.1.3","markdown-it":"^14.3.0",minimatch:"^10.2.6",open:"^10.2.0",semver:"^7.8.5",shiki:"~1.15.0","source-map-support":"^0.5.21",toposort:"^2.0.2",undici:"^7.29.0",uuid:"^14.0.0","vscode-languageclient":"^9.0.0","vscode-languageserver":"^9.0.0","vscode-languageserver-protocol":"^3.17","vscode-languageserver-textdocument":"~1.0.11","vscode-uri":"^3.1.0","web-tree-sitter":"^0.23.0",which:"^7.0.0","windows-ca-certs":"^0.2.2",ws:"^8.21.1",yargs:"^18.1.0"},_7o={fsevents:"<0","@github/copilot-linuxmusl-arm64":"<0","@github/copilot-linuxmusl-x64":"<0",bindings:"npm:bundled-bindings@^1.5.0",jws:"^3.2.3",tar:"7.5.11","serialize-javascript":"^7.0.5",uuid:"^14.0.0","ip-address":"^10.1.1","fast-uri":"^3.1.4"},E7o={"//":"Rationale for each entry in `overrides`. Required by `npm run lint:overrides` (script/checkOverridesDocumented.ts). Each value should cover: why (CVE/GHSA or build-hack reason), which direct dep pulls in the vulnerable transitive, and the remove-when condition.",fsevents:"Build hack: macOS-only optional native dep; '<0' is an impossible semver that force-skips install on Linux/Windows pkg builds. Permanent \u2014 keep until @yao-pkg/pkg handles macOS-only optionalDependencies natively. See commit d635096c.","@github/copilot-linuxmusl-arm64":"Build hack: @github/copilot declares a Linux musl optional runtime package, but CLS does not support musl. '<0' prevents npm from installing the unsupported runtime. Drop only if CLS adds musl support.","@github/copilot-linuxmusl-x64":"Build hack: @github/copilot declares a Linux musl optional runtime package, but CLS does not support musl. '<0' prevents npm from installing the unsupported runtime. Drop only if CLS adds musl support.",bindings:"Build hack: alias to bundled-bindings fork that resolves .node native addon paths after pkg/esbuild bundling. Required by kerberos. Drop when upstream `bindings` adopts platform-specific path resolution. See commits c4461665 and b55ece83.",jws:"CVE GHSA-869p-cjfg-cm3x (Improperly Verifies HMAC Signature). Pulled in by jsonwebtoken-family deps. Drop when all transitive consumers pin jws >= 3.2.3. See commit 2b5dc766.",tar:"CVE GHSA-9ppj-qmqm-q256 + GHSA-qffp-2rhf-9h96 (Symlink/Hardlink Path Traversal via Drive-Relative Linkpath). Pulled in by node-gyp / native-build deps. Drop when transitive consumers bump tar >= 7.5.11. See commit e2dff0f3.","serialize-javascript":"CVE GHSA-5c6j-r48x-rmvq (RCE via RegExp.flags / Date.toISOString) + GHSA-qj8w-gfj5-8c6v (ReDoS). Pulled in by mocha 11.x (^6.0.2). Dev-only. Drop when mocha bumps to a release that carries serialize-javascript >= 7.0.3. See commit d49f75fd.",uuid:"CVE GHSA-w5hq-g745-h8pq (missing buffer bounds checks in v3/v5/v6). Pulled in by msal-node and @vscode/deviceid as uuid 8.x/9.x. Drop when both upgrade to uuid >= 14. Dependabot alert #128. See commit 6315f3f8.","ip-address":"CVE GHSA-v2v4-37r5-5v8g (XSS in Address6 HTML-emitting methods: group/link/spanAll and AddressError.parseMessage). Pulled in by @modelcontextprotocol/sdk -> express-rate-limit. Not exploitable here (we don't render HTML or call the affected methods), but the override clears the alert. Drop when express-rate-limit bumps to a release carrying ip-address >= 10.1.1. Dependabot alert #129. See PR #854.","fast-uri":"CVE-2026-6321 GHSA-q3j6-qgpj-74h6 (host confusion via percent-encoded authority delimiters) + CVE-2026-6322 GHSA-v39h-62p7-jpjc (path traversal via percent-encoded dot segments). Pulled in by @modelcontextprotocol/sdk -> ajv -> fast-uri. Drop when ajv bumps to a release carrying fast-uri >= 3.1.2. Dependabot alerts #132, #133."},v7o={name:c7o,displayName:l7o,description:u7o,version:d7o,build:f7o,buildType:p7o,engines:h7o,anthropicClaude:m7o,scripts:g7o,devDependencies:A7o,dependencies:y7o,overrides:_7o,overridesComments:E7o};var ze={Enable:"enable",UserSelectedCompletionModel:"selectedCompletionModel",ShowEditorCompletions:"editor.showEditorCompletions",EnableAutoCompletions:"editor.enableAutoCompletions",DelayCompletions:"editor.delayCompletions",FilterCompletions:"editor.filterCompletions",FetchStrategy:"fetchStrategy",ToolConfirmAutoApprove:"agent.toolConfirmAutoApprove",AutoApproveUnmatchedTerminal:"agent.autoApproveUnmatchedTerminal",AutoApproveUnmatchedFileOp:"agent.autoApproveUnmatchedFileOp",TrustToolAnnotations:"agent.trustToolAnnotations",AutoApproveYoloMode:"agent.autoApproveYoloMode",EditorHandlesAllConfirmation:"agent.editorHandlesAllConfirmation",MaxToolCallingLoop:"agent.maxToolCallingLoop",AutoCompress:"agent.autoCompress",AnthropicThinkingBudgetToken:"agent.anthropicThinkingBudgetToken",EnableSkills:"agent.enableSkills",EnableHooks:"agent.enableHooks",EnableSandbox:"agent.sandbox.enabled",SandboxAddCurrentWorkingDirectory:"agent.sandbox.addCurrentWorkingDirectory",SandboxUserPolicy:"agent.sandbox.userPolicy",EnablePlugins:"agent.enablePlugins",EnableCustomAgents:"agent.enableCustomAgents",EnableOrgCustomAgents:"agent.enableOrgCustomAgents",UseAgentsMd:"agent.useAgentsMdFile",UseNestedAgentsMd:"agent.useNestedAgentsMdFiles",UseClaudeMd:"agent.useClaudeMdFile",UseNestedClaudeMd:"agent.useNestedClaudeMdFiles",CompletionsDelay:"completionsDelay",CompletionsDebounce:"completionsDebounce",EnableThinking:"agent.enableThinking",TranscriptDirectory:"agent.transcriptDirectory",AgentDebugLogsDirectory:"agent.agentDebugLogsDirectory",ClaudeCliPath:"agent.claude.cliPath",CodexCliPath:"agent.codex.cliPath",OtelEnabled:"agent.otel.enabled",OtelEndpoint:"agent.otel.otlpEndpoint",OtelCaptureContent:"agent.otel.captureContent",OtelExporterType:"agent.otel.exporterType",OtelProtocol:"agent.otel.protocol",OtelOutfile:"agent.otel.outfile",OtelServiceName:"agent.otel.serviceName",OtelResourceAttributes:"agent.otel.resourceAttributes",NESExtendedRange:"nextEditSuggestions.extendedRange",NESEagerness:"nextEditSuggestions.eagerness",RelatedFilesVSCodeCSharp:"advanced.relatedFilesVSCodeCSharp",RelatedFilesVSCodeTypeScript:"advanced.relatedFilesVSCodeTypeScript",RelatedFilesVSCode:"advanced.relatedFilesVSCode",ContextProviders:"advanced.contextProviders",DebugOverrideLogLevels:"advanced.debug.overrideLogLevels",DebugFilterLogCategories:"advanced.debug.filterLogCategories",DebugSnippyOverrideUrl:"advanced.debug.codeRefOverrideUrl",DebugUseElectronFetcher:"advanced.debug.useElectronFetcher",DebugUseEditorFetcher:"advanced.debug.useEditorFetcher",UseSubsetMatching:"advanced.useSubsetMatching",ContextProviderTimeBudget:"advanced.contextProviderTimeBudget",DebugOverrideCapiUrl:"internal.capiUrl",DebugOverrideCapiUrlLegacy:"advanced.debug.overrideCapiUrl",DebugTestOverrideCapiUrl:"internal.capiTestUrl",DebugTestOverrideCapiUrlLegacy:"advanced.debug.testOverrideCapiUrl",DebugOverrideProxyUrl:"internal.completionsUrl",DebugOverrideProxyUrlLegacy:"advanced.debug.overrideProxyUrl",DebugTestOverrideProxyUrl:"internal.completionsTestUrl",DebugTestOverrideProxyUrlLegacy:"advanced.debug.testOverrideProxyUrl",DebugOverrideEngine:"internal.completionModel",DebugOverrideEngineLegacy:"advanced.debug.overrideEngine",AlwaysRequestMultiline:"internal.alwaysRequestMultiline",ModelAlwaysTerminatesSingleline:"internal.modelAlwaysTerminatesSingleline",TrimCompletionsAggressively:"internal.trimCompletionsAggressively",UseWorkspaceContextCoordinator:"internal.useWorkspaceContextCoordinator",ShowWorkspaceContextDebugger:"internal.showWorkspaceContextDebugger",IncludeNeighboringFiles:"internal.includeNeighboringFiles",ExcludeRelatedFiles:"internal.excludeRelatedFiles",DebugOverrideCppHeadersEnableSwitch:"internal.cppHeadersEnableSwitch",NESXTab:"internal.useXTab",NESUseExplicitRejection:"internal.nesUseExplicitRejection",NESModelConfiguration:"internal.nesModelConfiguration",UseSplitContextPrompt:"internal.useSplitContextPrompt",UseCompletionsComparisonPanel:"internal.useCompletionsComparisonPanel",ComparisonPanelModelIds:"internal.comparisonPanelModelIds",ComparisonPanelRandomizedMode:"internal.comparisonPanelRandomizedMode",UseFetchFetcher:"internal.useFetchFetcher",UseChatLibCompletions:"internal.useChatLibCompletions",HookErrorOccurredStackTrace:"internal.hookErrorOccurredStackTrace",AppendPromptTokenCache:"internal.appendPromptTokenCache",PromptPersistBasePath:"internal.promptPersistBasePath",AnthropicMessagesEndpoint:"internal.anthropic.messagesEndpoint",UseHelixFetcher:"internal.useHelixFetcher",EnableMapCodeFallback:"internal.enableMapCodeFallback",SearchAgent:"internal.searchAgent",PerfEnabled:"internal.perf.enabled",AuthTokenEncryption:"internal.auth.tokenEncryption",EnableWorkspaceIndex:"workspaceIndex.enabled"};function Fgn(t){return["server","parsingandserver"].includes(t)}a(Fgn,"shouldDoServerTrimming");var t2=class{static{a(this,"BlockModeConfig")}},iue=class extends t2{static{a(this,"ConfigBlockModeConfig")}forLanguage(e,r,n){let o=e.get(tr).overrideBlockMode(n);if(o)return m9t(o,r);let s=e.get(tr).enableProgressiveReveal(n);return(kt(e,ze.AlwaysRequestMultiline)??s)||MO.isTrimmedByDefault(r)?m9t("moremultiline",r):r=="ruby"?"parsing":tT(r)?"parsingandserver":"server"}};function C7o(t){return["parsing","parsingandserver","moremultiline"].includes(t)}a(C7o,"blockModeRequiresTreeSitter");function m9t(t,e){return t==="moremultiline"&&g0.isSupported(e)?t:C7o(t)&&!tT(e)?"server":t}a(m9t,"toApplicableBlockMode");var Qo=class{static{a(this,"ConfigProvider")}requireReady(){return Promise.resolve()}},oue=class extends Qo{constructor(){super(...arguments);this.onDidChangeCopilotSettings=a(()=>({dispose:a(()=>{},"dispose")}),"onDidChangeCopilotSettings");this.onDidChangeHttpSettings=this.onDidChangeCopilotSettings}static{a(this,"DefaultsOnlyConfigProvider")}getConfig(r){return b7o(r)}getOptionalConfig(r){return S7o(r)}dumpForTelemetry(){return{}}getExplicitlySetConfigs(){return new Map}getHttpSettings(){return{proxy:""}}},PK=class extends Qo{constructor(r,n){super();this.baseConfigProvider=r;this.overrides=n;this.copilotEmitter=new Ji;this.onDidChangeCopilotSettings=this.copilotEmitter.event;this.didChangeHttpSettingsEmitter=new Ji;this.onDidChangeHttpSettings=this.didChangeHttpSettingsEmitter.event;this.httpSettings=this.baseConfigProvider.getHttpSettings()}static{a(this,"InMemoryConfigProvider")}getOptionalOverride(r){return this.overrides.get(r)}getConfig(r){return this.getOptionalOverride(r)??this.baseConfigProvider.getConfig(r)}getOptionalConfig(r){return this.getOptionalOverride(r)??this.baseConfigProvider.getOptionalConfig(r)}setConfig(r,n){this.setCopilotSettings({[r]:n})}setCopilotSettings(r){for(let[n,o]of Object.entries(r))o!==void 0?this.overrides.set(n,o):this.overrides.delete(n);this.copilotEmitter.fire(this)}getExplicitlySetConfigs(){let r=new Map(this.baseConfigProvider.getExplicitlySetConfigs());for(let[n,o]of this.overrides)r.set(n,o);return r}getHttpSettings(){return this.httpSettings}setHttpSettings(r){let n=Mxe(r);this.httpSettings=n,this.didChangeHttpSettingsEmitter.fire(this.getHttpSettings())}dumpForTelemetry(){let r=this.baseConfigProvider.dumpForTelemetry();for(let n of[ze.ShowEditorCompletions,ze.EnableAutoCompletions,ze.DelayCompletions,ze.FilterCompletions]){let o=this.overrides.get(n);o!==void 0&&(r[n]=JSON.stringify(o))}return r}};function Ugn(t,e){let r=t,n=[];for(let o of e.split(".")){let s=[...n,o].join(".");r&&typeof r=="object"&&s in r?(r=r[s],n.length=0):n.push(o)}if(!(r===void 0||n.length>0))return r}a(Ugn,"getConfigKeyRecursively");function b7o(t){if(zWe.has(t))return zWe.get(t);throw new Error(`Missing config default value: ${_Dt}.${t}`)}a(b7o,"getConfigDefaultForKey");function S7o(t){return zWe.get(t)}a(S7o,"getOptionalConfigDefaultForKey");function Lxe(t){return t.get(Qo).getExplicitlySetConfigs()}a(Lxe,"getExplicitlySetConfigs");var T7o={[ze.DebugOverrideCppHeadersEnableSwitch]:!1,[ze.RelatedFilesVSCodeCSharp]:!1,[ze.RelatedFilesVSCodeTypeScript]:!1,[ze.RelatedFilesVSCode]:!1,[ze.IncludeNeighboringFiles]:!1,[ze.ExcludeRelatedFiles]:!1,[ze.ContextProviders]:[],[ze.DebugUseEditorFetcher]:null,[ze.DebugUseElectronFetcher]:null,[ze.DebugOverrideLogLevels]:{},[ze.DebugSnippyOverrideUrl]:"",[ze.AgentDebugLogsDirectory]:void 0,[ze.ClaudeCliPath]:void 0,[ze.CodexCliPath]:void 0,[ze.OtelEnabled]:!1,[ze.OtelEndpoint]:void 0,[ze.OtelCaptureContent]:!1,[ze.OtelExporterType]:"otlp-http",[ze.OtelProtocol]:"",[ze.OtelOutfile]:"",[ze.OtelServiceName]:"",[ze.OtelResourceAttributes]:{},[ze.FetchStrategy]:"auto",[ze.ToolConfirmAutoApprove]:!1,[ze.AutoApproveUnmatchedTerminal]:void 0,[ze.AutoApproveUnmatchedFileOp]:void 0,[ze.TrustToolAnnotations]:!1,[ze.AutoApproveYoloMode]:!1,[ze.EditorHandlesAllConfirmation]:!1,[ze.MaxToolCallingLoop]:25,[ze.AutoCompress]:!1,[ze.AnthropicThinkingBudgetToken]:1024,[ze.EnableSkills]:!1,[ze.EnableHooks]:!1,[ze.EnableSandbox]:!1,[ze.SandboxAddCurrentWorkingDirectory]:void 0,[ze.SandboxUserPolicy]:void 0,[ze.EnablePlugins]:!1,[ze.EnableCustomAgents]:!0,[ze.EnableOrgCustomAgents]:!0,[ze.UseAgentsMd]:!1,[ze.UseNestedAgentsMd]:!1,[ze.UseClaudeMd]:!1,[ze.UseNestedClaudeMd]:!1,[ze.UseSubsetMatching]:null,[ze.ContextProviderTimeBudget]:void 0,[ze.DebugOverrideCapiUrl]:"",[ze.DebugTestOverrideCapiUrl]:"",[ze.DebugOverrideProxyUrl]:"",[ze.DebugTestOverrideProxyUrl]:"",[ze.DebugOverrideEngine]:"",[ze.AlwaysRequestMultiline]:void 0,[ze.ModelAlwaysTerminatesSingleline]:void 0,[ze.TrimCompletionsAggressively]:void 0,[ze.CompletionsDebounce]:void 0,[ze.NESXTab]:void 0,[ze.UseWorkspaceContextCoordinator]:void 0,[ze.ShowWorkspaceContextDebugger]:!1,[ze.CompletionsDelay]:void 0,[ze.UseSplitContextPrompt]:void 0,[ze.UseCompletionsComparisonPanel]:void 0,[ze.ComparisonPanelModelIds]:void 0,[ze.ComparisonPanelRandomizedMode]:void 0,[ze.UseFetchFetcher]:void 0,[ze.UseChatLibCompletions]:void 0,[ze.TranscriptDirectory]:void 0,[ze.EnableThinking]:!0,[ze.ShowEditorCompletions]:void 0,[ze.EnableAutoCompletions]:void 0,[ze.DelayCompletions]:void 0,[ze.FilterCompletions]:void 0,[ze.Enable]:{"*":!0,plaintext:!1,markdown:!1,scminput:!1},[ze.UserSelectedCompletionModel]:"",[ze.DebugFilterLogCategories]:[],[ze.DebugOverrideEngineLegacy]:"",[ze.DebugTestOverrideProxyUrlLegacy]:"",[ze.DebugOverrideProxyUrlLegacy]:"",[ze.DebugTestOverrideCapiUrlLegacy]:"",[ze.DebugOverrideCapiUrlLegacy]:"",[ze.HookErrorOccurredStackTrace]:!1,[ze.NESUseExplicitRejection]:!1,[ze.NESModelConfiguration]:void 0,[ze.AppendPromptTokenCache]:"",[ze.PromptPersistBasePath]:void 0,[ze.AnthropicMessagesEndpoint]:"",[ze.UseHelixFetcher]:"",[ze.EnableMapCodeFallback]:"enabled",[ze.SearchAgent]:"",[ze.PerfEnabled]:"",[ze.NESExtendedRange]:!1,[ze.NESEagerness]:"auto",[ze.AuthTokenEncryption]:"",[ze.EnableWorkspaceIndex]:!1},zWe=new Map(Object.entries(T7o));for(let t of Object.values(ze))if(!zWe.has(t))throw new Error(`Missing config default value ${_Dt}.${t}`);function kt(t,e){return t.get(Qo).getConfig(e)}a(kt,"getConfig");function XE(t){let e=kt(t,ze.EnableWorkspaceIndex);return e===!0||e==="true"}a(XE,"isSemanticSearchEnabled");function Rtn(t){return t.get(Qo).dumpForTelemetry()}a(Rtn,"dumpForTelemetry");var As=class{constructor(){this.packageJson=Oxe}static{a(this,"BuildInfo")}isProduction(){return this.getBuildType()!=="dev"}getBuildType(){return this.packageJson.buildType}getVersion(){return this.packageJson.version}getDisplayVersion(){return this.getBuildType()==="dev"?`${this.getVersion()}-dev`:this.getVersion()}getBuild(){return this.packageJson.build}getName(){return this.packageJson.name}};function SOt(t){return t.get(As).isProduction()}a(SOt,"isProduction");function Msn(t){return t.get(As).getBuildType()==="dev"}a(Msn,"isDevBuild");function _7(t){return t.get(As).getBuildType()}a(_7,"getBuildType");function ktn(t){return t.get(As).getBuild()}a(ktn,"getBuild");function A1(t){return t.get(As).getVersion()}a(A1,"getVersion");var za=class{constructor(e,r,n,o="none",s="desktop"){this.sessionId=e;this.machineId=r;this.devDeviceId=n;this.remoteName=o;this.uiKind=s}static{a(this,"EditorSession")}};function o1({name:t,version:e}){return`${t}/${e}`}a(o1,"formatNameAndVersion");var Ir=class{static{a(this,"EditorAndPluginInfo")}getCopilotIntegrationId(){}getEditorPluginSpecificFilters(){return[]}getEditorIdentity(){return I$r({editor:this.getEditorInfo(),plugin:this.getEditorPluginInfo()})}isEditorPluginInfoKnown(){return!0}};function AWe(t){let e=t.getCopilotIntegrationId();if(e)return e;switch(t.getEditorPluginInfo().name){case"copilot-intellij":return"jetbrains-chat";case"copilot":case"copilot-vs":return;default:return"jetbrains-chat"}}a(AWe,"getIntegrationId");function s_(t){let e=t.get(Ir);return{"Editor-Version":o1(e.getEditorInfo()),"Editor-Plugin-Version":o1(e.getEditorPluginInfo()),"Copilot-Language-Server-Version":A1(t)}}a(s_,"editorVersionHeaders");var Qgn="Iv1.b507a08c87ecfe98",I7o="350ee525b5da0e4a54c6e8e043edc1b99cc02f19",$ce="Ov23liV9UpD7Rnfnskm3",x7o="5509a52e4c525cd594a6fba9147ff6cc2388dd9f",w7o={[Qgn]:I7o,[$ce]:x7o},ih=class{static{a(this,"GitHubAppInfo")}findAppIdToAuthenticate(){return this.githubAppId??Qgn}findAppSecretToAuthenticate(){let e=this.findAppIdToAuthenticate(),r=w7o[e];if(!r)throw new Error(`GitHubAppInfo: No app secret found for app ID: ${e}`);return r}};function qgn(t){return kt(t,ze.AuthTokenEncryption)==="false"}a(qgn,"isAuthTokenEncryptionDisabled");p();var zgn=fe(require("node:crypto"));var rq=new pe("KeytarMasterKey"),Ggn="copilot-language-server",$gn="oauth-token-key",Vgn=5e3,Ygn=32,g9t;function P7o(t){return g9t??=D7o(t).finally(()=>{g9t=void 0}),g9t}a(P7o,"resolveMasterKey");async function D7o(t){rq.info(t,"keytar-master-key: resolving master key");let e;try{e=await y9t.loadKeytar(),rq.info(t,"keytar-master-key: module loaded")}catch(n){return rq.warn(t,"keytar-master-key: @github/keytar failed to load",n),{diagnostics:A9t("loadModule",n)}}let r;try{r=await M7o(t,e)}catch(n){return n instanceof YWe?(rq.error(t,"keytar-master-key: existing entry is corrupt; refusing to overwrite",n),{diagnostics:A9t("corruptExistingEntry",n)}):(rq.warn(t,"keytar-master-key: master-key resolution failed",n),{diagnostics:A9t("getOrCreateMasterKey",n)})}return rq.info(t,`keytar-master-key: resolved (source=${r.source})`),{masterKey:r.key,diagnostics:{available:!0,masterKeySource:r.source}}}a(D7o,"doResolveMasterKey");function N7o(){return Promise.resolve().then(()=>fe(Hgn()))}a(N7o,"loadKeytar");var y9t={resolveMasterKey:P7o,loadKeytar:N7o};async function M7o(t,e){let r=await Wgn(e.getPassword(Ggn,$gn),Vgn,"getMasterKey");if(rq.info(t,`keytar-master-key: getPassword returned (found=${r!=null})`),r){let o=O7o(r);if(o)return{key:o,source:"useExisting"};throw new YWe}let n=zgn.randomBytes(Ygn);return await Wgn(e.setPassword(Ggn,$gn,n.toString("base64")),Vgn,"setMasterKey"),rq.info(t,"keytar-master-key: setPassword (new key) completed"),{key:n,source:"createNew"}}a(M7o,"getOrCreateMasterKey");function Wgn(t,e,r){return new Promise((n,o)=>{let s=setTimeout(()=>o(new Error(`${r}: timeout after ${e}ms`)),e);s.unref?.(),t.then(c=>{clearTimeout(s),n(c)},c=>{clearTimeout(s),o(c instanceof Error?c:new Error(`${r}: ${String(c)}`))})})}a(Wgn,"withTimeout");var YWe=class extends Error{static{a(this,"CorruptMasterKeyError")}constructor(){super("keytar master-key entry present but undecodable"),this.name="CorruptMasterKeyError"}};function A9t(t,e){return{available:!1,errorPhase:t,error:e}}a(A9t,"unavailable");function O7o(t){let e=Buffer.from(t,"base64");return e.length===Ygn?e:void 0}a(O7o,"decodeMasterKey");p();var sue=fe(require("node:crypto"));var L7o=0,v9t=1,DK=class extends Error{constructor(r,n,o){super(r,o?.cause!==void 0?{cause:o.cause}:void 0);this.kind=n;this.name="SecretUnwrapError"}static{a(this,"SecretUnwrapError")}},JWe=class{static{a(this,"SecretCodec")}},E9t=class extends JWe{constructor(){super(...arguments);this.schemaVersion=L7o}static{a(this,"PlaintextCodec")}encode(r){return Buffer.from(r,"utf8")}decode(r){return Buffer.from(r).toString("utf8")}},KWe=12,_9t=16,Kgn=32,ZWe=class extends JWe{constructor(r){super();this.key=r;this.schemaVersion=v9t;if(r.length!==Kgn)throw new Error(`AesGcmCodec requires a ${Kgn}-byte key, got ${r.length}`)}static{a(this,"AesGcmCodec")}encode(r){let n=sue.randomBytes(KWe),o=sue.createCipheriv("aes-256-gcm",this.key,n),s=Buffer.concat([o.update(Buffer.from(r,"utf8")),o.final()]);return Buffer.concat([n,s,o.getAuthTag()])}decode(r){let n=Buffer.from(r);if(n.length<KWe+_9t)throw new DK("decode: v1 ciphertext too short","malformed");let o=n.subarray(0,KWe),s=n.subarray(n.length-_9t),c=n.subarray(KWe,n.length-_9t);try{let l=sue.createDecipheriv("aes-256-gcm",this.key,o);return l.setAuthTag(s),Buffer.concat([l.update(c),l.final()]).toString("utf8")}catch(l){throw new DK("decode: AES-GCM verification failed","tagMismatch",{cause:l})}}},tF=class t{constructor(e){this.readers=new Map;this.writer=e,this.readers.set(e.schemaVersion,e)}static{a(this,"SecretStorage")}addReader(e){this.readers.set(e.schemaVersion,e)}setWriter(e){this.writer=e,this.readers.set(e.schemaVersion,e)}wrap(e){return{schemaVersion:this.writer.schemaVersion,ciphertext:this.writer.encode(e)}}unwrap(e){let r=this.readers.get(e.schemaVersion);if(!r)throw new DK(`unwrap: unknown schemaVersion ${e.schemaVersion}`,"unknownVersion");return r.decode(e.ciphertext)}static plaintextOnly(){return new t(new E9t)}};p();p();function Jgn(t){return{upsertToken:t.prepare(`
1944
+ ] @statement`}};var MO=class{constructor(e,r,n){this.languageId=e;this.prefix=r;this.completion=n}static{a(this,"BlockTrimmer")}static isSupported(e){return g0.isSupported(e)}static isTrimmedByDefault(e){return g0.isTrimmedByDefault(e)}async withParsedStatementTree(e){var n=[];try{let r=mDt(n,g0.create(this.languageId,this.prefix+this.completion,this.prefix.length,this.prefix.length+this.completion.length));await r.build();return await e(r)}catch(o){var s=o,c=!0}finally{gDt(n,s,c)}}trimmedCompletion(e){return e===void 0?this.completion:this.completion.substring(0,e)}getStatementAtCursor(e){return e.statementAt(Math.max(this.prefix.length-1,0))??e.statements[0]}getContainingBlockOffset(e){let r;if(e&&this.isCompoundStatement(e))r=e;else if(e){let n=e.parent;for(;n&&!this.isCompoundStatement(n);)n=n.parent;r=n}if(r){let n=this.asCompletionOffset(r.node.endIndex);if(n&&this.completion.substring(n).trim()!=="")return n}}hasNonStatementContentAfter(e){if(!e||!e.nextSibling)return!1;let r=this.asCompletionOffset(e.node.endIndex),n=this.asCompletionOffset(e.nextSibling.node.startIndex);return this.completion.substring(Math.max(0,r??0),Math.max(0,n??0)).trim()!==""}asCompletionOffset(e){return e===void 0?void 0:e-this.prefix.length}isCompoundStatement(e){return e.isCompoundStatementType||e.children.length>0}};var WWe=class extends MO{constructor(r,n,o,s=3,c=7){super(r,n,o);this.lineLimit=s;this.lookAhead=c;let l=[...this.completion.matchAll(/\n/g)],u=this.lineLimit+this.lookAhead;l.length>=this.lineLimit&&this.lineLimit>0&&(this.limitOffset=l[this.lineLimit-1].index),l.length>=u&&u>0&&(this.lookAheadOffset=l[u-1].index)}static{a(this,"TerseBlockTrimmer")}async getCompletionTrimOffset(){return await this.withParsedStatementTree(r=>{let n=r.statementAt(this.stmtStartPos()),o=this.getContainingBlockOffset(n);return o=this.trimAtFirstBlankLine(o),n&&(o=this.trimAtStatementChange(n,o)),this.limitOffset&&this.lookAheadOffset&&(o===void 0||o>this.lookAheadOffset)?this.limitOffset:o})}stmtStartPos(){let r=this.completion.match(/\S/);return r&&r.index!==void 0?this.prefix.length+r.index:Math.max(this.prefix.length-1,0)}trimAtFirstBlankLine(r){let n=[...this.trimmedCompletion(r).matchAll(/\r?\n\s*\r?\n/g)];for(;n.length>0&&(r===void 0||r>n[0].index);){let o=n.shift();if(this.completion.substring(0,o.index).trim()!=="")return o.index}return r}trimAtStatementChange(r,n){let o=this.prefix.length,s=this.prefix.length+(n??this.completion.length);if(r.node.endIndex>o&&this.isCompoundStatement(r))return r.nextSibling&&r.node.endIndex<s?this.asCompletionOffset(r.node.endIndex):n;let c=r,l=r.nextSibling;for(;l&&l.node.endIndex<=s&&!this.hasNonStatementContentAfter(c)&&!this.isCompoundStatement(l);)c=l,l=l.nextSibling;return l&&c.node.endIndex>o&&c.node.endIndex<s?this.asCompletionOffset(c.node.endIndex):n}};async function Ogn(t,e){var l=[];try{let r=t.getText();let n=t.offsetAt(e);let o=mDt(l,g0.create(t.detectedLanguageId,r,0,r.length));await o.build();let s=o.statementAt(n);if(!s)return"non-block";if(!s.isCompoundStatementType&&s.children.length===0)return s.parent&&!s.nextSibling&&s.node.endPosition.row<=e.line?"block-end":s.parent?"mid-block":"non-block";if(s.children.length===0)return"empty-block";let c=s.children[s.children.length-1];if(n<c.node.startIndex)return"mid-block";return"block-end"}catch(u){var d=u,f=!0}finally{gDt(l,d,f)}}a(Ogn,"getBlockPositionType");p();function o7o(t){return t.HTTPS_PROXY||t.https_proxy||t.HTTP_PROXY||t.http_proxy}a(o7o,"getProxyFromEnvironment");function s7o(t){return t.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}a(s7o,"getRejectUnauthorizedFromEnvironment");var Lgn=b.Object({proxy:b.Optional(b.String()),proxyStrictSSL:b.Optional(b.Boolean()),proxyAuthorization:b.Optional(b.String()),proxyKerberosServicePrincipal:b.Optional(b.String()),noProxy:b.Optional(b.Array(b.String()))});function Bgn(t){let e=o7o(t),r=Mxe({proxy:e,proxyStrictSSL:s7o(t)}),n=t.GH_COPILOT_KERBEROS_SERVICE_PRINCIPAL??t.GITHUB_COPILOT_KERBEROS_SERVICE_PRINCIPAL??t.AGENT_KERBEROS_SERVICE_PRINCIPAL;return n&&(r.proxyKerberosServicePrincipal=n),r}a(Bgn,"getHttpSettingsFromEnvironment");function Mxe(t){if(!t.proxy)return{...t,proxy:""};try{let{protocol:e,host:r,username:n,password:o,pathname:s,search:c,hash:l}=new URL(t.proxy);return{...t,proxy:`${e}//${r}${s}${c}${l}`,proxyAuthorization:t.proxyAuthorization||a7o(n,o),noProxy:t.noProxy||[]}}catch{return{...t,proxy:""}}}a(Mxe,"normalizeHttpSettings");function a7o(t,e){return!t||!e?"":`${decodeURIComponent(t)}:${decodeURIComponent(e)}`}a(a7o,"getAuth");var Oxe={};Ti(Oxe,{anthropicClaude:()=>m7o,build:()=>f7o,buildType:()=>p7o,default:()=>v7o,dependencies:()=>y7o,description:()=>u7o,devDependencies:()=>A7o,displayName:()=>l7o,engines:()=>h7o,name:()=>c7o,overrides:()=>_7o,overridesComments:()=>E7o,scripts:()=>g7o,version:()=>d7o});var c7o="copilot",l7o="GitHub Copilot",u7o="Your AI pair programmer",d7o="1.527.1",f7o="86",p7o="prod",h7o={node:">=22.13.0",npm:">=11.6.0 <12.0.0"},m7o={cliPackageVersion:"2.1.159"},g7o={build:"tsx esbuild.ts",clean:"./script/build/clean.sh",compress:"tsx ./script/compressTokenizer.ts",generate_languages:"tsx script/generateLanguages.ts && prettier --write lib/src/language/generatedLanguages.ts",get_token:"tsx script/deviceFlow.ts --save-as-test-token",lint:'run-p --aggregate-output "lint:*"',"lint:deps":"depcruise -c .dependency-cruiser.js .","lint:eslint":"eslint -f visualstudio --quiet --cache .","lint:overrides":"tsx script/checkOverridesDocumented.ts","lint:prettier":"prettier --check . 2>&1","lint:types":"tsc --noEmit",inspect_auth_db:"tsx script/inspectAuthDb.ts",prebuild:"npm install",pretest:"npm run build","pretest:headless":"npm run build","pretest:lsp-client":"npm run build","pretest:lib-e2e":"npm run build",prewatch:"npm run build","prewatch:esbuild":"npm run build",start:"npm run watch",test:'npm-run-all "test:headless --ignore-scripts" lint',"test:headless":'npm-run-all test:lib test:agent "test:lib-e2e --ignore-scripts" test:prompt "test:lsp-client --ignore-scripts" lint',"test:agent":'mocha "agent/src/**/*.test.{ts,tsx}"',"test:lib":'mocha "lib/src/**/*.test.{ts,tsx}" "script/**/*.test.{ts,tsx}" --exclude "lib/src/**/*.int.test.ts"',"test:lib-int":'mocha "lib/src/**/*.int.test.ts"',"test:lib-e2e":'mocha "lib/e2e/src/**/*.test.{ts,tsx}" --exclude "lib/e2e/src/prompt/**/*.test.ts"',"test:lib-e2e-no-ci":'mocha "lib/e2e/no-ci/**/*.test.{ts,tsx}"',"test:lib-prompt-e2e":'mocha "lib/e2e/src/prompt/prompt.test.ts"',"test:lib-prompt-e2e-perf":"INCLUDE_PERFORMANCE=true npm run test:lib-prompt-e2e","test:lsp-client":'mocha "lsp-client/test/*.test.{ts,tsx}"',"test:pkg-runtime":"tsx script/smokeCopilotRuntimePkg.ts","test:prompt":'mocha "prompt/test/**/*.test.{ts,tsx}"',"test:prepare-msbench":"tsx script/setupMsbench.ts","test:run-msbench":"tsx lsp-client/test/msbench/agent/index.ts",watch:'run-p "watch:esbuild --ignore-scripts" "watch:types -- --preserveWatchOutput"',"watch:esbuild":"tsx esbuild.ts --watch","watch:types":"tsc --noEmit --watch"},A7o={"@azure/identity":"^4.13.1","@azure/keyvault-secrets":"^4.11.2","@github/prettier-config":"0.0.6","@limegrass/eslint-plugin-import-alias":"^1.6.1","@types/crypto-js":"^4.2.2","@types/diff":"^8.0.0","@types/git-url-parse":"^16.0.2","@types/js-yaml":"^4.0.6","@types/kerberos":"^1.1.2","@types/markdown-it":"^14.1.2","@types/mocha":"^10.0.10","@types/node":"~22.13.0","@types/semver":"^7.7.1","@types/sinon":"^22.0.0","@types/toposort":"^2.0.7","@types/vscode":"1.125.0","@types/which":"^3.0.0","@types/yargs":"^17.0.35","@vscode/tree-sitter-wasm":"0.0.5-php.2","@yao-pkg/pkg":"^6.21.0",boxen:"^8.0.1",chalk:"^5.6.2","dependency-cruiser":"^18.1.0",esbuild:"^0.28.1","esbuild-plugin-copy":"^2.1.1",eslint:"^9.39.5","eslint-formatter-visualstudio":"^9.0.1","eslint-plugin-mocha":"^10.5.0",globals:"^17.8.0","js-yaml":"^4.2.0",mocha:"^11.7.6","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1","npm-run-all":"^4.1.5",openai:"^6.49.0",prettier:"^3.5.3","prettier-plugin-organize-imports":"^4.2.0","simple-git":"^3.36.0",sinon:"^22.1.0","tree-sitter-bash":"^0.23.0","tree-sitter-powershell":"0.25.9","ts-dedent":"^2.3.0",tsx:"^4.23.1",typescript:"^5.9.3","typescript-eslint":"^8.39.1","vscode-dts":"^0.3.3"},y7o={"@adobe/helix-fetch":"github:devm33/helix-fetch#2a08fa939591a0e14f34f611adcc3ed767579e9a","@agentclientprotocol/sdk":"^0.22.1","@anthropic-ai/claude-agent-sdk":"0.3.159","@anthropic-ai/sdk":"^0.98.0","@github/copilot":"^1.0.70","@github/copilot-sdk":"^1.0.6-preview.1","@github/keytar":"7.10.6","@github/memoize":"1.1.5","@microsoft/1ds-core-js":"^4.3.10","@microsoft/1ds-post-js":"^4.3.10","@microsoft/applicationinsights-web-basic":"^3.3.11","@microsoft/mxc-sdk":"0.7.0","@modelcontextprotocol/sdk":"^1.29.0","@octokit/graphql":"^9.0.3","@octokit/rest":"^22.0.1","@parcel/watcher":"^2.6.0","@sinclair/typebox":"^0.34.52","@vscode/chat-lib":"^0.57.0","@vscode/codicons":"^0.0.45","@vscode/deviceid":"github:ghc-jetbrains/vscode-deviceid#f0e5738cd362ef20a09aeb30c3a8be99a9a710f5","@vscode/policy-watcher":"^1.4.0","@vscode/prompt-tsx":"^0.4.0-alpha.9","@vscode/webview-ui-toolkit":"^1.3.1","crypto-js":"^4.2.0",diff:"^9.0.0",dldr:"^0.0.10",events:"^3.3.0","git-url-parse":"^16.1.0",glob:"^11.1.0","jsonc-parser":"^3.3.1",kerberos:"^2.2.0","mac-ca":"^3.1.3","markdown-it":"^14.3.0",minimatch:"^10.2.6",open:"^10.2.0",semver:"^7.8.5",shiki:"~1.15.0","source-map-support":"^0.5.21",toposort:"^2.0.2",undici:"^7.29.0",uuid:"^14.0.0","vscode-languageclient":"^9.0.0","vscode-languageserver":"^9.0.0","vscode-languageserver-protocol":"^3.17","vscode-languageserver-textdocument":"~1.0.11","vscode-uri":"^3.1.0","web-tree-sitter":"^0.23.0",which:"^7.0.0","windows-ca-certs":"^0.2.2",ws:"^8.21.1",yargs:"^18.1.0"},_7o={fsevents:"<0","@github/copilot-linuxmusl-arm64":"<0","@github/copilot-linuxmusl-x64":"<0",bindings:"npm:bundled-bindings@^1.5.0",jws:"^3.2.3",tar:"7.5.11","serialize-javascript":"^7.0.5",uuid:"^14.0.0","ip-address":"^10.1.1","fast-uri":"^3.1.4"},E7o={"//":"Rationale for each entry in `overrides`. Required by `npm run lint:overrides` (script/checkOverridesDocumented.ts). Each value should cover: why (CVE/GHSA or build-hack reason), which direct dep pulls in the vulnerable transitive, and the remove-when condition.",fsevents:"Build hack: macOS-only optional native dep; '<0' is an impossible semver that force-skips install on Linux/Windows pkg builds. Permanent \u2014 keep until @yao-pkg/pkg handles macOS-only optionalDependencies natively. See commit d635096c.","@github/copilot-linuxmusl-arm64":"Build hack: @github/copilot declares a Linux musl optional runtime package, but CLS does not support musl. '<0' prevents npm from installing the unsupported runtime. Drop only if CLS adds musl support.","@github/copilot-linuxmusl-x64":"Build hack: @github/copilot declares a Linux musl optional runtime package, but CLS does not support musl. '<0' prevents npm from installing the unsupported runtime. Drop only if CLS adds musl support.",bindings:"Build hack: alias to bundled-bindings fork that resolves .node native addon paths after pkg/esbuild bundling. Required by kerberos. Drop when upstream `bindings` adopts platform-specific path resolution. See commits c4461665 and b55ece83.",jws:"CVE GHSA-869p-cjfg-cm3x (Improperly Verifies HMAC Signature). Pulled in by jsonwebtoken-family deps. Drop when all transitive consumers pin jws >= 3.2.3. See commit 2b5dc766.",tar:"CVE GHSA-9ppj-qmqm-q256 + GHSA-qffp-2rhf-9h96 (Symlink/Hardlink Path Traversal via Drive-Relative Linkpath). Pulled in by node-gyp / native-build deps. Drop when transitive consumers bump tar >= 7.5.11. See commit e2dff0f3.","serialize-javascript":"CVE GHSA-5c6j-r48x-rmvq (RCE via RegExp.flags / Date.toISOString) + GHSA-qj8w-gfj5-8c6v (ReDoS). Pulled in by mocha 11.x (^6.0.2). Dev-only. Drop when mocha bumps to a release that carries serialize-javascript >= 7.0.3. See commit d49f75fd.",uuid:"CVE GHSA-w5hq-g745-h8pq (missing buffer bounds checks in v3/v5/v6). Pulled in by msal-node and @vscode/deviceid as uuid 8.x/9.x. Drop when both upgrade to uuid >= 14. Dependabot alert #128. See commit 6315f3f8.","ip-address":"CVE GHSA-v2v4-37r5-5v8g (XSS in Address6 HTML-emitting methods: group/link/spanAll and AddressError.parseMessage). Pulled in by @modelcontextprotocol/sdk -> express-rate-limit. Not exploitable here (we don't render HTML or call the affected methods), but the override clears the alert. Drop when express-rate-limit bumps to a release carrying ip-address >= 10.1.1. Dependabot alert #129. See PR #854.","fast-uri":"CVE-2026-6321 GHSA-q3j6-qgpj-74h6 (host confusion via percent-encoded authority delimiters) + CVE-2026-6322 GHSA-v39h-62p7-jpjc (path traversal via percent-encoded dot segments). Pulled in by @modelcontextprotocol/sdk -> ajv -> fast-uri. Drop when ajv bumps to a release carrying fast-uri >= 3.1.2. Dependabot alerts #132, #133."},v7o={name:c7o,displayName:l7o,description:u7o,version:d7o,build:f7o,buildType:p7o,engines:h7o,anthropicClaude:m7o,scripts:g7o,devDependencies:A7o,dependencies:y7o,overrides:_7o,overridesComments:E7o};var ze={Enable:"enable",UserSelectedCompletionModel:"selectedCompletionModel",ShowEditorCompletions:"editor.showEditorCompletions",EnableAutoCompletions:"editor.enableAutoCompletions",DelayCompletions:"editor.delayCompletions",FilterCompletions:"editor.filterCompletions",FetchStrategy:"fetchStrategy",ToolConfirmAutoApprove:"agent.toolConfirmAutoApprove",AutoApproveUnmatchedTerminal:"agent.autoApproveUnmatchedTerminal",AutoApproveUnmatchedFileOp:"agent.autoApproveUnmatchedFileOp",TrustToolAnnotations:"agent.trustToolAnnotations",AutoApproveYoloMode:"agent.autoApproveYoloMode",EditorHandlesAllConfirmation:"agent.editorHandlesAllConfirmation",MaxToolCallingLoop:"agent.maxToolCallingLoop",AutoCompress:"agent.autoCompress",AnthropicThinkingBudgetToken:"agent.anthropicThinkingBudgetToken",EnableSkills:"agent.enableSkills",EnableHooks:"agent.enableHooks",EnableSandbox:"agent.sandbox.enabled",SandboxAddCurrentWorkingDirectory:"agent.sandbox.addCurrentWorkingDirectory",SandboxUserPolicy:"agent.sandbox.userPolicy",EnablePlugins:"agent.enablePlugins",EnableCustomAgents:"agent.enableCustomAgents",EnableOrgCustomAgents:"agent.enableOrgCustomAgents",UseAgentsMd:"agent.useAgentsMdFile",UseNestedAgentsMd:"agent.useNestedAgentsMdFiles",UseClaudeMd:"agent.useClaudeMdFile",UseNestedClaudeMd:"agent.useNestedClaudeMdFiles",CompletionsDelay:"completionsDelay",CompletionsDebounce:"completionsDebounce",EnableThinking:"agent.enableThinking",TranscriptDirectory:"agent.transcriptDirectory",AgentDebugLogsDirectory:"agent.agentDebugLogsDirectory",ClaudeCliPath:"agent.claude.cliPath",CodexCliPath:"agent.codex.cliPath",OtelEnabled:"agent.otel.enabled",OtelEndpoint:"agent.otel.otlpEndpoint",OtelCaptureContent:"agent.otel.captureContent",OtelExporterType:"agent.otel.exporterType",OtelProtocol:"agent.otel.protocol",OtelOutfile:"agent.otel.outfile",OtelServiceName:"agent.otel.serviceName",OtelResourceAttributes:"agent.otel.resourceAttributes",NESExtendedRange:"nextEditSuggestions.extendedRange",NESEagerness:"nextEditSuggestions.eagerness",RelatedFilesVSCodeCSharp:"advanced.relatedFilesVSCodeCSharp",RelatedFilesVSCodeTypeScript:"advanced.relatedFilesVSCodeTypeScript",RelatedFilesVSCode:"advanced.relatedFilesVSCode",ContextProviders:"advanced.contextProviders",DebugOverrideLogLevels:"advanced.debug.overrideLogLevels",DebugFilterLogCategories:"advanced.debug.filterLogCategories",DebugSnippyOverrideUrl:"advanced.debug.codeRefOverrideUrl",DebugUseElectronFetcher:"advanced.debug.useElectronFetcher",DebugUseEditorFetcher:"advanced.debug.useEditorFetcher",UseSubsetMatching:"advanced.useSubsetMatching",ContextProviderTimeBudget:"advanced.contextProviderTimeBudget",DebugOverrideCapiUrl:"internal.capiUrl",DebugOverrideCapiUrlLegacy:"advanced.debug.overrideCapiUrl",DebugTestOverrideCapiUrl:"internal.capiTestUrl",DebugTestOverrideCapiUrlLegacy:"advanced.debug.testOverrideCapiUrl",DebugOverrideProxyUrl:"internal.completionsUrl",DebugOverrideProxyUrlLegacy:"advanced.debug.overrideProxyUrl",DebugTestOverrideProxyUrl:"internal.completionsTestUrl",DebugTestOverrideProxyUrlLegacy:"advanced.debug.testOverrideProxyUrl",DebugOverrideEngine:"internal.completionModel",DebugOverrideEngineLegacy:"advanced.debug.overrideEngine",AlwaysRequestMultiline:"internal.alwaysRequestMultiline",ModelAlwaysTerminatesSingleline:"internal.modelAlwaysTerminatesSingleline",TrimCompletionsAggressively:"internal.trimCompletionsAggressively",UseWorkspaceContextCoordinator:"internal.useWorkspaceContextCoordinator",ShowWorkspaceContextDebugger:"internal.showWorkspaceContextDebugger",IncludeNeighboringFiles:"internal.includeNeighboringFiles",ExcludeRelatedFiles:"internal.excludeRelatedFiles",DebugOverrideCppHeadersEnableSwitch:"internal.cppHeadersEnableSwitch",NESXTab:"internal.useXTab",NESUseExplicitRejection:"internal.nesUseExplicitRejection",NESModelConfiguration:"internal.nesModelConfiguration",UseSplitContextPrompt:"internal.useSplitContextPrompt",UseCompletionsComparisonPanel:"internal.useCompletionsComparisonPanel",ComparisonPanelModelIds:"internal.comparisonPanelModelIds",ComparisonPanelRandomizedMode:"internal.comparisonPanelRandomizedMode",UseFetchFetcher:"internal.useFetchFetcher",UseChatLibCompletions:"internal.useChatLibCompletions",HookErrorOccurredStackTrace:"internal.hookErrorOccurredStackTrace",AppendPromptTokenCache:"internal.appendPromptTokenCache",PromptPersistBasePath:"internal.promptPersistBasePath",AnthropicMessagesEndpoint:"internal.anthropic.messagesEndpoint",UseHelixFetcher:"internal.useHelixFetcher",EnableMapCodeFallback:"internal.enableMapCodeFallback",SearchAgent:"internal.searchAgent",PerfEnabled:"internal.perf.enabled",AuthTokenEncryption:"internal.auth.tokenEncryption",EnableWorkspaceIndex:"workspaceIndex.enabled"};function Fgn(t){return["server","parsingandserver"].includes(t)}a(Fgn,"shouldDoServerTrimming");var t2=class{static{a(this,"BlockModeConfig")}},iue=class extends t2{static{a(this,"ConfigBlockModeConfig")}forLanguage(e,r,n){let o=e.get(tr).overrideBlockMode(n);if(o)return m9t(o,r);let s=e.get(tr).enableProgressiveReveal(n);return(kt(e,ze.AlwaysRequestMultiline)??s)||MO.isTrimmedByDefault(r)?m9t("moremultiline",r):r=="ruby"?"parsing":tT(r)?"parsingandserver":"server"}};function C7o(t){return["parsing","parsingandserver","moremultiline"].includes(t)}a(C7o,"blockModeRequiresTreeSitter");function m9t(t,e){return t==="moremultiline"&&g0.isSupported(e)?t:C7o(t)&&!tT(e)?"server":t}a(m9t,"toApplicableBlockMode");var Qo=class{static{a(this,"ConfigProvider")}requireReady(){return Promise.resolve()}},oue=class extends Qo{constructor(){super(...arguments);this.onDidChangeCopilotSettings=a(()=>({dispose:a(()=>{},"dispose")}),"onDidChangeCopilotSettings");this.onDidChangeHttpSettings=this.onDidChangeCopilotSettings}static{a(this,"DefaultsOnlyConfigProvider")}getConfig(r){return b7o(r)}getOptionalConfig(r){return S7o(r)}dumpForTelemetry(){return{}}getExplicitlySetConfigs(){return new Map}getHttpSettings(){return{proxy:""}}},PK=class extends Qo{constructor(r,n){super();this.baseConfigProvider=r;this.overrides=n;this.copilotEmitter=new Ji;this.onDidChangeCopilotSettings=this.copilotEmitter.event;this.didChangeHttpSettingsEmitter=new Ji;this.onDidChangeHttpSettings=this.didChangeHttpSettingsEmitter.event;this.httpSettings=this.baseConfigProvider.getHttpSettings()}static{a(this,"InMemoryConfigProvider")}getOptionalOverride(r){return this.overrides.get(r)}getConfig(r){return this.getOptionalOverride(r)??this.baseConfigProvider.getConfig(r)}getOptionalConfig(r){return this.getOptionalOverride(r)??this.baseConfigProvider.getOptionalConfig(r)}setConfig(r,n){this.setCopilotSettings({[r]:n})}setCopilotSettings(r){for(let[n,o]of Object.entries(r))o!==void 0?this.overrides.set(n,o):this.overrides.delete(n);this.copilotEmitter.fire(this)}getExplicitlySetConfigs(){let r=new Map(this.baseConfigProvider.getExplicitlySetConfigs());for(let[n,o]of this.overrides)r.set(n,o);return r}getHttpSettings(){return this.httpSettings}setHttpSettings(r){let n=Mxe(r);this.httpSettings=n,this.didChangeHttpSettingsEmitter.fire(this.getHttpSettings())}dumpForTelemetry(){let r=this.baseConfigProvider.dumpForTelemetry();for(let n of[ze.ShowEditorCompletions,ze.EnableAutoCompletions,ze.DelayCompletions,ze.FilterCompletions]){let o=this.overrides.get(n);o!==void 0&&(r[n]=JSON.stringify(o))}return r}};function Ugn(t,e){let r=t,n=[];for(let o of e.split(".")){let s=[...n,o].join(".");r&&typeof r=="object"&&s in r?(r=r[s],n.length=0):n.push(o)}if(!(r===void 0||n.length>0))return r}a(Ugn,"getConfigKeyRecursively");function b7o(t){if(zWe.has(t))return zWe.get(t);throw new Error(`Missing config default value: ${_Dt}.${t}`)}a(b7o,"getConfigDefaultForKey");function S7o(t){return zWe.get(t)}a(S7o,"getOptionalConfigDefaultForKey");function Lxe(t){return t.get(Qo).getExplicitlySetConfigs()}a(Lxe,"getExplicitlySetConfigs");var T7o={[ze.DebugOverrideCppHeadersEnableSwitch]:!1,[ze.RelatedFilesVSCodeCSharp]:!1,[ze.RelatedFilesVSCodeTypeScript]:!1,[ze.RelatedFilesVSCode]:!1,[ze.IncludeNeighboringFiles]:!1,[ze.ExcludeRelatedFiles]:!1,[ze.ContextProviders]:[],[ze.DebugUseEditorFetcher]:null,[ze.DebugUseElectronFetcher]:null,[ze.DebugOverrideLogLevels]:{},[ze.DebugSnippyOverrideUrl]:"",[ze.AgentDebugLogsDirectory]:void 0,[ze.ClaudeCliPath]:void 0,[ze.CodexCliPath]:void 0,[ze.OtelEnabled]:!1,[ze.OtelEndpoint]:void 0,[ze.OtelCaptureContent]:!1,[ze.OtelExporterType]:"otlp-http",[ze.OtelProtocol]:"",[ze.OtelOutfile]:"",[ze.OtelServiceName]:"",[ze.OtelResourceAttributes]:{},[ze.FetchStrategy]:"auto",[ze.ToolConfirmAutoApprove]:!1,[ze.AutoApproveUnmatchedTerminal]:void 0,[ze.AutoApproveUnmatchedFileOp]:void 0,[ze.TrustToolAnnotations]:!1,[ze.AutoApproveYoloMode]:!1,[ze.EditorHandlesAllConfirmation]:!1,[ze.MaxToolCallingLoop]:25,[ze.AutoCompress]:!1,[ze.AnthropicThinkingBudgetToken]:1024,[ze.EnableSkills]:!1,[ze.EnableHooks]:!1,[ze.EnableSandbox]:!1,[ze.SandboxAddCurrentWorkingDirectory]:void 0,[ze.SandboxUserPolicy]:void 0,[ze.EnablePlugins]:!1,[ze.EnableCustomAgents]:!0,[ze.EnableOrgCustomAgents]:!0,[ze.UseAgentsMd]:!1,[ze.UseNestedAgentsMd]:!1,[ze.UseClaudeMd]:!1,[ze.UseNestedClaudeMd]:!1,[ze.UseSubsetMatching]:null,[ze.ContextProviderTimeBudget]:void 0,[ze.DebugOverrideCapiUrl]:"",[ze.DebugTestOverrideCapiUrl]:"",[ze.DebugOverrideProxyUrl]:"",[ze.DebugTestOverrideProxyUrl]:"",[ze.DebugOverrideEngine]:"",[ze.AlwaysRequestMultiline]:void 0,[ze.ModelAlwaysTerminatesSingleline]:void 0,[ze.TrimCompletionsAggressively]:void 0,[ze.CompletionsDebounce]:void 0,[ze.NESXTab]:void 0,[ze.UseWorkspaceContextCoordinator]:void 0,[ze.ShowWorkspaceContextDebugger]:!1,[ze.CompletionsDelay]:void 0,[ze.UseSplitContextPrompt]:void 0,[ze.UseCompletionsComparisonPanel]:void 0,[ze.ComparisonPanelModelIds]:void 0,[ze.ComparisonPanelRandomizedMode]:void 0,[ze.UseFetchFetcher]:void 0,[ze.UseChatLibCompletions]:void 0,[ze.TranscriptDirectory]:void 0,[ze.EnableThinking]:!0,[ze.ShowEditorCompletions]:void 0,[ze.EnableAutoCompletions]:void 0,[ze.DelayCompletions]:void 0,[ze.FilterCompletions]:void 0,[ze.Enable]:{"*":!0,plaintext:!1,markdown:!1,scminput:!1},[ze.UserSelectedCompletionModel]:"",[ze.DebugFilterLogCategories]:[],[ze.DebugOverrideEngineLegacy]:"",[ze.DebugTestOverrideProxyUrlLegacy]:"",[ze.DebugOverrideProxyUrlLegacy]:"",[ze.DebugTestOverrideCapiUrlLegacy]:"",[ze.DebugOverrideCapiUrlLegacy]:"",[ze.HookErrorOccurredStackTrace]:!1,[ze.NESUseExplicitRejection]:!1,[ze.NESModelConfiguration]:void 0,[ze.AppendPromptTokenCache]:"",[ze.PromptPersistBasePath]:void 0,[ze.AnthropicMessagesEndpoint]:"",[ze.UseHelixFetcher]:"",[ze.EnableMapCodeFallback]:"enabled",[ze.SearchAgent]:"",[ze.PerfEnabled]:"",[ze.NESExtendedRange]:!1,[ze.NESEagerness]:"auto",[ze.AuthTokenEncryption]:"",[ze.EnableWorkspaceIndex]:!1},zWe=new Map(Object.entries(T7o));for(let t of Object.values(ze))if(!zWe.has(t))throw new Error(`Missing config default value ${_Dt}.${t}`);function kt(t,e){return t.get(Qo).getConfig(e)}a(kt,"getConfig");function XE(t){let e=kt(t,ze.EnableWorkspaceIndex);return e===!0||e==="true"}a(XE,"isSemanticSearchEnabled");function Rtn(t){return t.get(Qo).dumpForTelemetry()}a(Rtn,"dumpForTelemetry");var As=class{constructor(){this.packageJson=Oxe}static{a(this,"BuildInfo")}isProduction(){return this.getBuildType()!=="dev"}getBuildType(){return this.packageJson.buildType}getVersion(){return this.packageJson.version}getDisplayVersion(){return this.getBuildType()==="dev"?`${this.getVersion()}-dev`:this.getVersion()}getBuild(){return this.packageJson.build}getName(){return this.packageJson.name}};function SOt(t){return t.get(As).isProduction()}a(SOt,"isProduction");function Msn(t){return t.get(As).getBuildType()==="dev"}a(Msn,"isDevBuild");function _7(t){return t.get(As).getBuildType()}a(_7,"getBuildType");function ktn(t){return t.get(As).getBuild()}a(ktn,"getBuild");function A1(t){return t.get(As).getVersion()}a(A1,"getVersion");var za=class{constructor(e,r,n,o="none",s="desktop"){this.sessionId=e;this.machineId=r;this.devDeviceId=n;this.remoteName=o;this.uiKind=s}static{a(this,"EditorSession")}};function o1({name:t,version:e}){return`${t}/${e}`}a(o1,"formatNameAndVersion");var Ir=class{static{a(this,"EditorAndPluginInfo")}getCopilotIntegrationId(){}getEditorPluginSpecificFilters(){return[]}getEditorIdentity(){return I$r({editor:this.getEditorInfo(),plugin:this.getEditorPluginInfo()})}isEditorPluginInfoKnown(){return!0}};function AWe(t){let e=t.getCopilotIntegrationId();if(e)return e;switch(t.getEditorPluginInfo().name){case"copilot-intellij":return"jetbrains-chat";case"copilot":case"copilot-vs":return;default:return"jetbrains-chat"}}a(AWe,"getIntegrationId");function s_(t){let e=t.get(Ir);return{"Editor-Version":o1(e.getEditorInfo()),"Editor-Plugin-Version":o1(e.getEditorPluginInfo()),"Copilot-Language-Server-Version":A1(t)}}a(s_,"editorVersionHeaders");var Qgn="Iv1.b507a08c87ecfe98",I7o="350ee525b5da0e4a54c6e8e043edc1b99cc02f19",$ce="Ov23liV9UpD7Rnfnskm3",x7o="5509a52e4c525cd594a6fba9147ff6cc2388dd9f",w7o={[Qgn]:I7o,[$ce]:x7o},ih=class{static{a(this,"GitHubAppInfo")}findAppIdToAuthenticate(){return this.githubAppId??Qgn}findAppSecretToAuthenticate(){let e=this.findAppIdToAuthenticate(),r=w7o[e];if(!r)throw new Error(`GitHubAppInfo: No app secret found for app ID: ${e}`);return r}};function qgn(t){return kt(t,ze.AuthTokenEncryption)==="false"}a(qgn,"isAuthTokenEncryptionDisabled");p();var zgn=fe(require("node:crypto"));var rq=new pe("KeytarMasterKey"),Ggn="copilot-language-server",$gn="oauth-token-key",Vgn=5e3,Ygn=32,g9t;function P7o(t){return g9t??=D7o(t).finally(()=>{g9t=void 0}),g9t}a(P7o,"resolveMasterKey");async function D7o(t){rq.info(t,"keytar-master-key: resolving master key");let e;try{e=await y9t.loadKeytar(),rq.info(t,"keytar-master-key: module loaded")}catch(n){return rq.warn(t,"keytar-master-key: @github/keytar failed to load",n),{diagnostics:A9t("loadModule",n)}}let r;try{r=await M7o(t,e)}catch(n){return n instanceof YWe?(rq.error(t,"keytar-master-key: existing entry is corrupt; refusing to overwrite",n),{diagnostics:A9t("corruptExistingEntry",n)}):(rq.warn(t,"keytar-master-key: master-key resolution failed",n),{diagnostics:A9t("getOrCreateMasterKey",n)})}return rq.info(t,`keytar-master-key: resolved (source=${r.source})`),{masterKey:r.key,diagnostics:{available:!0,masterKeySource:r.source}}}a(D7o,"doResolveMasterKey");function N7o(){return Promise.resolve().then(()=>fe(Hgn()))}a(N7o,"loadKeytar");var y9t={resolveMasterKey:P7o,loadKeytar:N7o};async function M7o(t,e){let r=await Wgn(e.getPassword(Ggn,$gn),Vgn,"getMasterKey");if(rq.info(t,`keytar-master-key: getPassword returned (found=${r!=null})`),r){let o=O7o(r);if(o)return{key:o,source:"useExisting"};throw new YWe}let n=zgn.randomBytes(Ygn);return await Wgn(e.setPassword(Ggn,$gn,n.toString("base64")),Vgn,"setMasterKey"),rq.info(t,"keytar-master-key: setPassword (new key) completed"),{key:n,source:"createNew"}}a(M7o,"getOrCreateMasterKey");function Wgn(t,e,r){return new Promise((n,o)=>{let s=setTimeout(()=>o(new Error(`${r}: timeout after ${e}ms`)),e);s.unref?.(),t.then(c=>{clearTimeout(s),n(c)},c=>{clearTimeout(s),o(c instanceof Error?c:new Error(`${r}: ${String(c)}`))})})}a(Wgn,"withTimeout");var YWe=class extends Error{static{a(this,"CorruptMasterKeyError")}constructor(){super("keytar master-key entry present but undecodable"),this.name="CorruptMasterKeyError"}};function A9t(t,e){return{available:!1,errorPhase:t,error:e}}a(A9t,"unavailable");function O7o(t){let e=Buffer.from(t,"base64");return e.length===Ygn?e:void 0}a(O7o,"decodeMasterKey");p();var sue=fe(require("node:crypto"));var L7o=0,v9t=1,DK=class extends Error{constructor(r,n,o){super(r,o?.cause!==void 0?{cause:o.cause}:void 0);this.kind=n;this.name="SecretUnwrapError"}static{a(this,"SecretUnwrapError")}},JWe=class{static{a(this,"SecretCodec")}},E9t=class extends JWe{constructor(){super(...arguments);this.schemaVersion=L7o}static{a(this,"PlaintextCodec")}encode(r){return Buffer.from(r,"utf8")}decode(r){return Buffer.from(r).toString("utf8")}},KWe=12,_9t=16,Kgn=32,ZWe=class extends JWe{constructor(r){super();this.key=r;this.schemaVersion=v9t;if(r.length!==Kgn)throw new Error(`AesGcmCodec requires a ${Kgn}-byte key, got ${r.length}`)}static{a(this,"AesGcmCodec")}encode(r){let n=sue.randomBytes(KWe),o=sue.createCipheriv("aes-256-gcm",this.key,n),s=Buffer.concat([o.update(Buffer.from(r,"utf8")),o.final()]);return Buffer.concat([n,s,o.getAuthTag()])}decode(r){let n=Buffer.from(r);if(n.length<KWe+_9t)throw new DK("decode: v1 ciphertext too short","malformed");let o=n.subarray(0,KWe),s=n.subarray(n.length-_9t),c=n.subarray(KWe,n.length-_9t);try{let l=sue.createDecipheriv("aes-256-gcm",this.key,o);return l.setAuthTag(s),Buffer.concat([l.update(c),l.final()]).toString("utf8")}catch(l){throw new DK("decode: AES-GCM verification failed","tagMismatch",{cause:l})}}},tF=class t{constructor(e){this.readers=new Map;this.writer=e,this.readers.set(e.schemaVersion,e)}static{a(this,"SecretStorage")}addReader(e){this.readers.set(e.schemaVersion,e)}setWriter(e){this.writer=e,this.readers.set(e.schemaVersion,e)}wrap(e){return{schemaVersion:this.writer.schemaVersion,ciphertext:this.writer.encode(e)}}unwrap(e){let r=this.readers.get(e.schemaVersion);if(!r)throw new DK(`unwrap: unknown schemaVersion ${e.schemaVersion}`,"unknownVersion");return r.decode(e.ciphertext)}static plaintextOnly(){return new t(new E9t)}};p();p();function Jgn(t){return{upsertToken:t.prepare(`
1945
1945
  INSERT INTO oauth_tokens (
1946
1946
  auth_authority, oauth_client_id, user_login, scopes,
1947
1947
  token_ciphertext, token_schema_version, source_editor_id,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "url": "git+https://github.com/github/copilot-language-server-release.git"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "1.527.0",
14
+ "version": "1.527.1",
15
15
  "bin": {
16
16
  "copilot-language-server": "../dist/language-server.js"
17
17
  },
@@ -42,12 +42,12 @@
42
42
  "vscode-languageserver-protocol": "^3.17.5"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@github/copilot-language-server-win32-x64": "1.527.0",
46
- "@github/copilot-language-server-win32-arm64": "1.527.0",
47
- "@github/copilot-language-server-linux-x64": "1.527.0",
48
- "@github/copilot-language-server-linux-arm64": "1.527.0",
49
- "@github/copilot-language-server-darwin-x64": "1.527.0",
50
- "@github/copilot-language-server-darwin-arm64": "1.527.0",
45
+ "@github/copilot-language-server-win32-x64": "1.527.1",
46
+ "@github/copilot-language-server-win32-arm64": "1.527.1",
47
+ "@github/copilot-language-server-linux-x64": "1.527.1",
48
+ "@github/copilot-language-server-linux-arm64": "1.527.1",
49
+ "@github/copilot-language-server-darwin-x64": "1.527.1",
50
+ "@github/copilot-language-server-darwin-arm64": "1.527.1",
51
51
  "@github/copilot-win32-x64": "1.0.70",
52
52
  "@github/copilot-win32-arm64": "1.0.70",
53
53
  "@github/copilot-linux-x64": "1.0.70",
@@ -56,5 +56,5 @@
56
56
  "@github/copilot-darwin-arm64": "1.0.70"
57
57
  },
58
58
  "buildType": "prod",
59
- "build": "85"
59
+ "build": "86"
60
60
  }