@vscode/chat-lib 0.43.2026033101 → 0.43.2026040101
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.
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +38 -7
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.d.ts +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.js +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.js.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +2 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +30 -9
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +8 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js +8 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts +0 -1
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js +0 -1
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/phaseDataContainer.d.ts +2 -8
- package/dist/src/_internal/platform/endpoint/common/phaseDataContainer.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/phaseDataContainer.js +2 -26
- package/dist/src/_internal/platform/endpoint/common/phaseDataContainer.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js +1 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +8 -20
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
- package/dist/src/_internal/platform/git/common/gitService.d.ts +1 -0
- package/dist/src/_internal/platform/git/common/gitService.d.ts.map +1 -1
- package/dist/src/_internal/platform/git/common/gitService.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.d.ts +7 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.js +10 -1
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/nextCursorLinePrediction.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.d.ts +0 -2
- package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
- package/dist/src/_internal/platform/otel/common/index.d.ts +1 -1
- package/dist/src/_internal/platform/otel/common/index.d.ts.map +1 -1
- package/dist/src/_internal/platform/otel/common/index.js +2 -1
- package/dist/src/_internal/platform/otel/common/index.js.map +1 -1
- package/dist/src/_internal/platform/otel/common/otelConfig.d.ts +5 -0
- package/dist/src/_internal/platform/otel/common/otelConfig.d.ts.map +1 -1
- package/dist/src/_internal/platform/otel/common/otelConfig.js +21 -2
- package/dist/src/_internal/platform/otel/common/otelConfig.js.map +1 -1
- package/dist/src/package.json +55 -116
- package/package.json +1 -1
- package/dist/src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.d.ts +0 -19
- package/dist/src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.d.ts.map +0 -1
- package/dist/src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.js +0 -64
- package/dist/src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/common/fetch.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAmBhG,oCASC;AAmBD,kDAQC;AAED,4DAQC;AAyDD,sDAEC;
|
|
1
|
+
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/networking/common/fetch.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAmBhG,oCASC;AAmBD,kDAQC;AAED,4DAQC;AAyDD,sDAEC;AAqCD,8EAEC;AAED,oFAEC;AAiID,oDAEC;AArSD,qCAAgI;AAchI,SAAgB,YAAY,CAAC,OAAiB,EAAE,IAAU;IACzD,OAAO;QACN,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE;QAClD,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,IAAI,EAAE;QACzD,YAAY,EAAE,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;QAC5C,OAAO,EAAE,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAChD,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,EAAE;QAC5D,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,EAAE;KAC3D,CAAC;AACH,CAAC;AAmBD,SAAgB,mBAAmB,CAAC,KAAc;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,EAAE,CAAC;QAC1E,OAAO,KAAK,CAAC;IACd,CAAC;IAED,M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AgentTurnEvent, emitInferenceDetailsEvent, emitSessionStartEvent, e
|
|
|
3
3
|
export { GenAiMetrics } from './genAiMetrics';
|
|
4
4
|
export { toInputMessages, toOutputMessages, toSystemInstructions, toToolDefinitions, truncateForOTel } from './messageFormatters';
|
|
5
5
|
export { NoopOTelService } from './noopOtelService';
|
|
6
|
-
export { resolveOTelConfig, type OTelConfig, type OTelConfigInput } from './otelConfig';
|
|
6
|
+
export { resolveOTelConfig, DEFAULT_OTLP_ENDPOINT, type OTelConfig, type OTelConfigInput } from './otelConfig';
|
|
7
7
|
export { IOTelService, SpanKind, SpanStatusCode, type ICompletedSpanData, type ISpanEventData, type ISpanEventRecord, type ISpanHandle, type OTelModelOptions, type SpanOptions, type TraceContext } from './otelService';
|
|
8
8
|
export { resolveWorkspaceOTelMetadata, workspaceMetadataToOTelAttributes, type WorkspaceOTelMetadata } from './workspaceOTelMetadata';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC9I,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAClI,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC9I,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAClI,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1N,OAAO,EAAE,4BAA4B,EAAE,iCAAiC,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.workspaceMetadataToOTelAttributes = exports.resolveWorkspaceOTelMetadata = exports.IOTelService = exports.resolveOTelConfig = exports.NoopOTelService = exports.truncateForOTel = exports.toToolDefinitions = exports.toSystemInstructions = exports.toOutputMessages = exports.toInputMessages = exports.GenAiMetrics = exports.emitToolCallEvent = exports.emitSessionStartEvent = exports.emitInferenceDetailsEvent = exports.emitAgentTurnEvent = exports.StdAttr = exports.GenAiToolType = exports.GenAiTokenType = exports.GenAiProviderName = exports.GenAiOperationName = exports.GenAiAttr = exports.CopilotChatAttr = void 0;
|
|
7
|
+
exports.workspaceMetadataToOTelAttributes = exports.resolveWorkspaceOTelMetadata = exports.IOTelService = exports.DEFAULT_OTLP_ENDPOINT = exports.resolveOTelConfig = exports.NoopOTelService = exports.truncateForOTel = exports.toToolDefinitions = exports.toSystemInstructions = exports.toOutputMessages = exports.toInputMessages = exports.GenAiMetrics = exports.emitToolCallEvent = exports.emitSessionStartEvent = exports.emitInferenceDetailsEvent = exports.emitAgentTurnEvent = exports.StdAttr = exports.GenAiToolType = exports.GenAiTokenType = exports.GenAiProviderName = exports.GenAiOperationName = exports.GenAiAttr = exports.CopilotChatAttr = void 0;
|
|
8
8
|
var genAiAttributes_1 = require("./genAiAttributes");
|
|
9
9
|
Object.defineProperty(exports, "CopilotChatAttr", { enumerable: true, get: function () { return genAiAttributes_1.CopilotChatAttr; } });
|
|
10
10
|
Object.defineProperty(exports, "GenAiAttr", { enumerable: true, get: function () { return genAiAttributes_1.GenAiAttr; } });
|
|
@@ -30,6 +30,7 @@ var noopOtelService_1 = require("./noopOtelService");
|
|
|
30
30
|
Object.defineProperty(exports, "NoopOTelService", { enumerable: true, get: function () { return noopOtelService_1.NoopOTelService; } });
|
|
31
31
|
var otelConfig_1 = require("./otelConfig");
|
|
32
32
|
Object.defineProperty(exports, "resolveOTelConfig", { enumerable: true, get: function () { return otelConfig_1.resolveOTelConfig; } });
|
|
33
|
+
Object.defineProperty(exports, "DEFAULT_OTLP_ENDPOINT", { enumerable: true, get: function () { return otelConfig_1.DEFAULT_OTLP_ENDPOINT; } });
|
|
33
34
|
var otelService_1 = require("./otelService");
|
|
34
35
|
Object.defineProperty(exports, "IOTelService", { enumerable: true, get: function () { return otelService_1.IOTelService; } });
|
|
35
36
|
var workspaceOTelMetadata_1 = require("./workspaceOTelMetadata");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/index.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,qDAA8I;AAArI,kHAAA,eAAe,OAAA;AAAE,4GAAA,SAAS,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AAAE,iHAAA,cAAc,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,0GAAA,OAAO,OAAA;AAClH,6CAAwH;AAA/G,iHAAA,kBAAkB,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAAE,oHAAA,qBAAqB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAChG,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yDAAkI;AAAzH,oHAAA,eAAe,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAAE,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AACpG,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/index.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,qDAA8I;AAArI,kHAAA,eAAe,OAAA;AAAE,4GAAA,SAAS,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AAAE,iHAAA,cAAc,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,0GAAA,OAAO,OAAA;AAClH,6CAAwH;AAA/G,iHAAA,kBAAkB,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAAE,oHAAA,qBAAqB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAChG,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yDAAkI;AAAzH,oHAAA,eAAe,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAAE,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AACpG,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,2CAA+G;AAAtG,+GAAA,iBAAiB,OAAA;AAAE,mHAAA,qBAAqB,OAAA;AACjD,6CAA0N;AAAjN,2GAAA,YAAY,OAAA;AACrB,iEAAsI;AAA7H,qIAAA,4BAA4B,OAAA;AAAE,0IAAA,iCAAiC,OAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export type OTelExporterType = 'otlp-grpc' | 'otlp-http' | 'console' | 'file';
|
|
2
|
+
export type OTelEnabledVia = 'envVar' | 'setting' | 'otlpEndpointEnvVar' | 'dbSpanExporterOnly' | 'disabled';
|
|
3
|
+
/** Default OTLP endpoint used when no env var or setting overrides it. */
|
|
4
|
+
export declare const DEFAULT_OTLP_ENDPOINT = "http://localhost:4318";
|
|
2
5
|
export interface OTelConfig {
|
|
3
6
|
readonly enabled: boolean;
|
|
4
7
|
/** True when OTel was enabled via setting/env var, not just implied by dbSpanExporter. */
|
|
5
8
|
readonly enabledExplicitly: boolean;
|
|
9
|
+
/** How OTel was enabled — used for telemetry to track adoption channels. */
|
|
10
|
+
readonly enabledVia: OTelEnabledVia;
|
|
6
11
|
readonly exporterType: OTelExporterType;
|
|
7
12
|
readonly otlpEndpoint: string;
|
|
8
13
|
readonly otlpProtocol: 'grpc' | 'http';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otelConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/otelConfig.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9E,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,0F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C;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,gBAAgB,CAAC;IACvC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAqGpE"}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DEFAULT_OTLP_ENDPOINT = void 0;
|
|
7
8
|
exports.resolveOTelConfig = resolveOTelConfig;
|
|
9
|
+
/** Default OTLP endpoint used when no env var or setting overrides it. */
|
|
10
|
+
exports.DEFAULT_OTLP_ENDPOINT = 'http://localhost:4318';
|
|
8
11
|
/**
|
|
9
12
|
* Parse `OTEL_RESOURCE_ATTRIBUTES` format: "key1=val1,key2=val2"
|
|
10
13
|
*/
|
|
@@ -71,6 +74,20 @@ function resolveOTelConfig(input) {
|
|
|
71
74
|
if (!enabled) {
|
|
72
75
|
return createDisabledConfig(input);
|
|
73
76
|
}
|
|
77
|
+
// Determine how OTel was enabled for telemetry tracking
|
|
78
|
+
let enabledVia;
|
|
79
|
+
if (envBool(env['COPILOT_OTEL_ENABLED']) === true) {
|
|
80
|
+
enabledVia = 'envVar';
|
|
81
|
+
}
|
|
82
|
+
else if (input.settingEnabled === true) {
|
|
83
|
+
enabledVia = 'setting';
|
|
84
|
+
}
|
|
85
|
+
else if (!!env['OTEL_EXPORTER_OTLP_ENDPOINT']) {
|
|
86
|
+
enabledVia = 'otlpEndpointEnvVar';
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
enabledVia = 'dbSpanExporterOnly';
|
|
90
|
+
}
|
|
74
91
|
// Protocol: env > inferred from exporter type > default
|
|
75
92
|
const rawProtocol = env['OTEL_EXPORTER_OTLP_PROTOCOL'] ?? env['COPILOT_OTEL_PROTOCOL'];
|
|
76
93
|
const protocol = rawProtocol === 'grpc' ? 'grpc' : 'http';
|
|
@@ -78,8 +95,8 @@ function resolveOTelConfig(input) {
|
|
|
78
95
|
const rawEndpoint = env['COPILOT_OTEL_ENDPOINT']
|
|
79
96
|
?? env['OTEL_EXPORTER_OTLP_ENDPOINT']
|
|
80
97
|
?? input.settingOtlpEndpoint
|
|
81
|
-
??
|
|
82
|
-
const otlpEndpoint = parseOtlpEndpoint(rawEndpoint, protocol) ??
|
|
98
|
+
?? exports.DEFAULT_OTLP_ENDPOINT;
|
|
99
|
+
const otlpEndpoint = parseOtlpEndpoint(rawEndpoint, protocol) ?? exports.DEFAULT_OTLP_ENDPOINT;
|
|
83
100
|
// File exporter path
|
|
84
101
|
const fileExporterPath = env['COPILOT_OTEL_FILE_EXPORTER_PATH'] ?? input.settingOutfile;
|
|
85
102
|
// Exporter type
|
|
@@ -112,6 +129,7 @@ function resolveOTelConfig(input) {
|
|
|
112
129
|
return Object.freeze({
|
|
113
130
|
enabled: true,
|
|
114
131
|
enabledExplicitly,
|
|
132
|
+
enabledVia,
|
|
115
133
|
exporterType,
|
|
116
134
|
otlpEndpoint,
|
|
117
135
|
otlpProtocol: protocol,
|
|
@@ -130,6 +148,7 @@ function createDisabledConfig(input) {
|
|
|
130
148
|
return Object.freeze({
|
|
131
149
|
enabled: false,
|
|
132
150
|
enabledExplicitly: false,
|
|
151
|
+
enabledVia: 'disabled',
|
|
133
152
|
exporterType: 'otlp-http',
|
|
134
153
|
otlpEndpoint: '',
|
|
135
154
|
otlpProtocol: 'http',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otelConfig.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/otelConfig.ts"],"names":[],"mappings":";AAAA;;;gGAGgG
|
|
1
|
+
{"version":3,"file":"otelConfig.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/otel/common/otelConfig.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAwFhG,8CAqGC;AAvLD,0EAA0E;AAC7D,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAsB7D;;GAEG;AACH,SAAS,uBAAuB,CAAC,GAAuB;IACvD,IAAI,CAAC,GAAG,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACX,CAAC;IACD,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACf,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;YAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC/C,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACrB,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,GAAuB,EAAE,QAAyB;IAC5E,IAAI,CAAC,GAAG,EAAE,CAAC;QACV,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,IAAI,CAAC;QACJ,MAAM,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E,KAAK;QAC1B,WAAW,EAAE,cAAc;QAC3B,cAAc,EAAE,KAAK,CAAC,gBAAgB;QACtC,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,kBAAkB,EAAE,EAAE;KACtB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,GAAuB;IACvC,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,OAAO,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC;AACtC,CAAC"}
|
package/dist/src/package.json
CHANGED
|
@@ -146,7 +146,8 @@
|
|
|
146
146
|
"workspaceTrust",
|
|
147
147
|
"environmentPower",
|
|
148
148
|
"terminalTitle",
|
|
149
|
-
"toolInvocationApproveCombination"
|
|
149
|
+
"toolInvocationApproveCombination",
|
|
150
|
+
"chatSessionCustomizationProvider"
|
|
150
151
|
],
|
|
151
152
|
"contributes": {
|
|
152
153
|
"languageModelTools": [
|
|
@@ -1069,29 +1070,6 @@
|
|
|
1069
1070
|
]
|
|
1070
1071
|
}
|
|
1071
1072
|
},
|
|
1072
|
-
{
|
|
1073
|
-
"name": "copilot_toolReplay",
|
|
1074
|
-
"modelDescription": "Replays a tool call from a previous chat session.",
|
|
1075
|
-
"displayName": "tool replay",
|
|
1076
|
-
"when": "false",
|
|
1077
|
-
"inputSchema": {
|
|
1078
|
-
"type": "object",
|
|
1079
|
-
"properties": {
|
|
1080
|
-
"toolCallId": {
|
|
1081
|
-
"type": "string",
|
|
1082
|
-
"description": "the id of the tool original tool call"
|
|
1083
|
-
},
|
|
1084
|
-
"toolName": {
|
|
1085
|
-
"type": "string",
|
|
1086
|
-
"description": "the name of the tool being replayed"
|
|
1087
|
-
},
|
|
1088
|
-
"toolCallArgs": {
|
|
1089
|
-
"type": "object",
|
|
1090
|
-
"description": "the arguments of the tool call"
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
1073
|
{
|
|
1096
1074
|
"name": "copilot_switchAgent",
|
|
1097
1075
|
"toolReferenceName": "switchAgent",
|
|
@@ -1734,15 +1712,6 @@
|
|
|
1734
1712
|
]
|
|
1735
1713
|
}
|
|
1736
1714
|
]
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
"id": "github.copilot.chatReplay",
|
|
1740
|
-
"name": "chatReplay",
|
|
1741
|
-
"fullName": "Chat Replay",
|
|
1742
|
-
"when": "debugType == 'vscode-chat-replay'",
|
|
1743
|
-
"locations": [
|
|
1744
|
-
"panel"
|
|
1745
|
-
]
|
|
1746
1715
|
}
|
|
1747
1716
|
],
|
|
1748
1717
|
"languageModelChatProviders": [
|
|
@@ -2256,24 +2225,6 @@
|
|
|
2256
2225
|
"icon": "$(terminal)",
|
|
2257
2226
|
"category": "Copilot CLI"
|
|
2258
2227
|
},
|
|
2259
|
-
{
|
|
2260
|
-
"command": "github.copilot.chat.replay",
|
|
2261
|
-
"title": "Start Chat Replay",
|
|
2262
|
-
"icon": "$(debug-line-by-line)",
|
|
2263
|
-
"enablement": "resourceFilename === 'benchRun.chatReplay.json' && !inDebugMode"
|
|
2264
|
-
},
|
|
2265
|
-
{
|
|
2266
|
-
"command": "github.copilot.chat.replay.enableWorkspaceEditTracing",
|
|
2267
|
-
"title": "%github.copilot.command.enableEditTracing%",
|
|
2268
|
-
"category": "Developer",
|
|
2269
|
-
"enablement": "!github.copilot.chat.replay.workspaceEditTracing"
|
|
2270
|
-
},
|
|
2271
|
-
{
|
|
2272
|
-
"command": "github.copilot.chat.replay.disableWorkspaceEditTracing",
|
|
2273
|
-
"title": "%github.copilot.command.disableEditTracing%",
|
|
2274
|
-
"category": "Developer",
|
|
2275
|
-
"enablement": "github.copilot.chat.replay.workspaceEditTracing"
|
|
2276
|
-
},
|
|
2277
2228
|
{
|
|
2278
2229
|
"command": "github.copilot.chat.compact",
|
|
2279
2230
|
"title": "%github.copilot.command.compactConversation%"
|
|
@@ -2700,11 +2651,6 @@
|
|
|
2700
2651
|
"title": "Submit NES Captures",
|
|
2701
2652
|
"category": "Copilot"
|
|
2702
2653
|
},
|
|
2703
|
-
{
|
|
2704
|
-
"command": "github.copilot.chat.showAsChatSession",
|
|
2705
|
-
"title": "Show as chat session",
|
|
2706
|
-
"icon": "$(chat-sparkle)"
|
|
2707
|
-
},
|
|
2708
2654
|
{
|
|
2709
2655
|
"command": "github.copilot.debug.collectWorkspaceIndexDiagnostics",
|
|
2710
2656
|
"title": "%github.copilot.command.collectWorkspaceIndexDiagnostics%",
|
|
@@ -2916,6 +2862,13 @@
|
|
|
2916
2862
|
"title": "%github.copilot.command.sessions.refreshChanges%",
|
|
2917
2863
|
"icon": "$(refresh)",
|
|
2918
2864
|
"category": "GitHub Copilot"
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"command": "github.copilot.sessions.initializeRepository",
|
|
2868
|
+
"title": "%github.copilot.command.sessions.initializeRepository%",
|
|
2869
|
+
"enablement": "!chatSessionRequestInProgress",
|
|
2870
|
+
"icon": "$(repo)",
|
|
2871
|
+
"category": "GitHub Copilot"
|
|
2919
2872
|
}
|
|
2920
2873
|
],
|
|
2921
2874
|
"configuration": [
|
|
@@ -4603,6 +4556,14 @@
|
|
|
4603
4556
|
"advanced"
|
|
4604
4557
|
]
|
|
4605
4558
|
},
|
|
4559
|
+
"github.copilot.chat.cli.sessionControllerForSessionsApp.enabled": {
|
|
4560
|
+
"type": "boolean",
|
|
4561
|
+
"default": false,
|
|
4562
|
+
"markdownDescription": "%github.copilot.config.cli.sessionControllerForSessionsApp.enabled%",
|
|
4563
|
+
"tags": [
|
|
4564
|
+
"advanced"
|
|
4565
|
+
]
|
|
4566
|
+
},
|
|
4606
4567
|
"github.copilot.chat.cli.terminalLinks.enabled": {
|
|
4607
4568
|
"type": "boolean",
|
|
4608
4569
|
"default": true,
|
|
@@ -4689,6 +4650,17 @@
|
|
|
4689
4650
|
"onExp"
|
|
4690
4651
|
]
|
|
4691
4652
|
},
|
|
4653
|
+
"github.copilot.chat.agentDebugLog.fileLogging.maxSessionLogSizeMB": {
|
|
4654
|
+
"type": "number",
|
|
4655
|
+
"default": 100,
|
|
4656
|
+
"minimum": 1,
|
|
4657
|
+
"markdownDescription": "%github.copilot.config.chat.agentDebugLog.fileLogging.maxSessionLogSizeMB%",
|
|
4658
|
+
"tags": [
|
|
4659
|
+
"advanced",
|
|
4660
|
+
"experimental",
|
|
4661
|
+
"onExp"
|
|
4662
|
+
]
|
|
4663
|
+
},
|
|
4692
4664
|
"github.copilot.chat.otel.enabled": {
|
|
4693
4665
|
"type": "boolean",
|
|
4694
4666
|
"default": false,
|
|
@@ -4786,16 +4758,6 @@
|
|
|
4786
4758
|
"when": "config.github.copilot.chat.notebook.followCellExecution.enabled && github.copilot.notebookFollowInSessionEnabled && github.copilot.notebookAgentModeUsage && !config.notebook.globalToolbar",
|
|
4787
4759
|
"group": "navigation@10"
|
|
4788
4760
|
},
|
|
4789
|
-
{
|
|
4790
|
-
"command": "github.copilot.chat.replay",
|
|
4791
|
-
"group": "navigation@9",
|
|
4792
|
-
"when": "resourceFilename === 'benchRun.chatReplay.json'"
|
|
4793
|
-
},
|
|
4794
|
-
{
|
|
4795
|
-
"command": "github.copilot.chat.showAsChatSession",
|
|
4796
|
-
"group": "navigation@9",
|
|
4797
|
-
"when": "resourceFilename === 'benchRun.chatReplay.json' || resourceFilename === 'chat-export-logs.json'"
|
|
4798
|
-
},
|
|
4799
4761
|
{
|
|
4800
4762
|
"command": "github.copilot.chat.copilotCLI.acceptDiff",
|
|
4801
4763
|
"group": "navigation@1",
|
|
@@ -4815,11 +4777,6 @@
|
|
|
4815
4777
|
}
|
|
4816
4778
|
],
|
|
4817
4779
|
"explorer/context": [
|
|
4818
|
-
{
|
|
4819
|
-
"command": "github.copilot.chat.showAsChatSession",
|
|
4820
|
-
"when": "resourceFilename === 'benchRun.chatReplay.json' || resourceFilename === 'chat-export-logs.json'",
|
|
4821
|
-
"group": "2_copilot@1"
|
|
4822
|
-
},
|
|
4823
4780
|
{
|
|
4824
4781
|
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
4825
4782
|
"group": "copilot",
|
|
@@ -4883,6 +4840,11 @@
|
|
|
4883
4840
|
}
|
|
4884
4841
|
],
|
|
4885
4842
|
"chat/input/editing/sessionApplyActions": [
|
|
4843
|
+
{
|
|
4844
|
+
"command": "github.copilot.sessions.initializeRepository",
|
|
4845
|
+
"when": "chatSessionType == copilotcli && isSessionsWindow && sessions.isolationMode == workspace && !sessions.hasGitRepository",
|
|
4846
|
+
"group": "init@1"
|
|
4847
|
+
},
|
|
4886
4848
|
{
|
|
4887
4849
|
"command": "github.copilot.sessions.commitChanges",
|
|
4888
4850
|
"when": "chatSessionType == copilotcli && isSessionsWindow && sessions.isolationMode == workspace && sessions.hasGitRepository",
|
|
@@ -5232,10 +5194,6 @@
|
|
|
5232
5194
|
"command": "github.copilot.chat.openPullRequestCopilotCLIAgentSession.openPR",
|
|
5233
5195
|
"when": "false"
|
|
5234
5196
|
},
|
|
5235
|
-
{
|
|
5236
|
-
"command": "github.copilot.chat.showAsChatSession",
|
|
5237
|
-
"when": "false"
|
|
5238
|
-
},
|
|
5239
5197
|
{
|
|
5240
5198
|
"command": "github.copilot.chat.checkoutPullRequestReroute",
|
|
5241
5199
|
"when": "false"
|
|
@@ -5271,6 +5229,10 @@
|
|
|
5271
5229
|
{
|
|
5272
5230
|
"command": "github.copilot.sessions.refreshChanges",
|
|
5273
5231
|
"when": "false"
|
|
5232
|
+
},
|
|
5233
|
+
{
|
|
5234
|
+
"command": "github.copilot.sessions.initializeRepository",
|
|
5235
|
+
"when": "false"
|
|
5274
5236
|
}
|
|
5275
5237
|
],
|
|
5276
5238
|
"view/title": [
|
|
@@ -5650,7 +5612,24 @@
|
|
|
5650
5612
|
"chat/input/editing/sessionChangeToolbar": [
|
|
5651
5613
|
{
|
|
5652
5614
|
"command": "github.copilot.sessions.discardChanges",
|
|
5653
|
-
"when": "chatSessionType == copilotcli && isSessionsWindow && sessions.changesVersionMode == branchChanges",
|
|
5615
|
+
"when": "chatSessionType == copilotcli && isSessionsWindow && sessions.hasGitRepository && sessions.changesVersionMode == branchChanges",
|
|
5616
|
+
"group": "navigation@1"
|
|
5617
|
+
}
|
|
5618
|
+
],
|
|
5619
|
+
"chat/customizations/create": [
|
|
5620
|
+
{
|
|
5621
|
+
"command": "copilot.claude.agents",
|
|
5622
|
+
"when": "aiCustomizationManagementHarness == claude-code && aiCustomizationManagementSection == agents",
|
|
5623
|
+
"group": "navigation@1"
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
"command": "copilot.claude.hooks",
|
|
5627
|
+
"when": "aiCustomizationManagementHarness == claude-code && aiCustomizationManagementSection == hooks",
|
|
5628
|
+
"group": "navigation@1"
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
"command": "copilot.claude.memory",
|
|
5632
|
+
"when": "aiCustomizationManagementHarness == claude-code && aiCustomizationManagementSection == instructions",
|
|
5654
5633
|
"group": "navigation@1"
|
|
5655
5634
|
}
|
|
5656
5635
|
]
|
|
@@ -5754,17 +5733,6 @@
|
|
|
5754
5733
|
]
|
|
5755
5734
|
}
|
|
5756
5735
|
],
|
|
5757
|
-
"notebooks": [
|
|
5758
|
-
{
|
|
5759
|
-
"type": "copilot-chat-replay",
|
|
5760
|
-
"displayName": "Copilot Chat Replay",
|
|
5761
|
-
"selector": [
|
|
5762
|
-
{
|
|
5763
|
-
"filenamePattern": "*.chatreplay.json"
|
|
5764
|
-
}
|
|
5765
|
-
]
|
|
5766
|
-
}
|
|
5767
|
-
],
|
|
5768
5736
|
"views": {
|
|
5769
5737
|
"copilot-chat": [
|
|
5770
5738
|
{
|
|
@@ -6120,35 +6088,6 @@
|
|
|
6120
6088
|
"autoAttachReferences": true
|
|
6121
6089
|
}
|
|
6122
6090
|
],
|
|
6123
|
-
"debuggers": [
|
|
6124
|
-
{
|
|
6125
|
-
"type": "vscode-chat-replay",
|
|
6126
|
-
"label": "vscode-chat-replay",
|
|
6127
|
-
"languages": [
|
|
6128
|
-
"json"
|
|
6129
|
-
],
|
|
6130
|
-
"when": "resourceFilename === 'benchRun.chatReplay.json'",
|
|
6131
|
-
"configurationAttributes": {
|
|
6132
|
-
"launch": {
|
|
6133
|
-
"properties": {
|
|
6134
|
-
"program": {
|
|
6135
|
-
"type": "string",
|
|
6136
|
-
"description": "Chat replay file to debug (parse for headers)",
|
|
6137
|
-
"default": "${file}"
|
|
6138
|
-
},
|
|
6139
|
-
"stopOnEntry": {
|
|
6140
|
-
"type": "boolean",
|
|
6141
|
-
"default": true,
|
|
6142
|
-
"description": "Break immediately to step through manually."
|
|
6143
|
-
}
|
|
6144
|
-
},
|
|
6145
|
-
"required": [
|
|
6146
|
-
"program"
|
|
6147
|
-
]
|
|
6148
|
-
}
|
|
6149
|
-
}
|
|
6150
|
-
}
|
|
6151
|
-
],
|
|
6152
6091
|
"chatAgents": [],
|
|
6153
6092
|
"chatPromptFiles": [
|
|
6154
6093
|
{
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BasePromptElementProps, PromptElement, Raw } from '@vscode/prompt-tsx';
|
|
2
|
-
export interface IResponseOutputMessageIdContainerProps extends BasePromptElementProps {
|
|
3
|
-
responseOutputMessageId: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Helper element to embed a Responses API output message ID into assistant messages
|
|
7
|
-
* as an opaque content part.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ResponseOutputMessageIdContainer extends PromptElement<IResponseOutputMessageIdContainerProps> {
|
|
10
|
-
render(): any;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Attempts to parse a Raw opaque content part into a Responses API output message ID.
|
|
14
|
-
* Falls back to legacy phase payloads that stored the ID alongside the phase.
|
|
15
|
-
*/
|
|
16
|
-
export declare function rawPartAsResponseOutputMessageId(part: Raw.ChatCompletionContentPartOpaque): string | undefined;
|
|
17
|
-
export declare function encodeResponseOutputMessageId(responseOutputMessageId: string): Uint8Array;
|
|
18
|
-
export declare function decodeResponseOutputMessageId(data: Uint8Array): string;
|
|
19
|
-
//# sourceMappingURL=responseOutputMessageIdContainer.d.ts.map
|
package/dist/src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responseOutputMessageIdContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAahF,MAAM,WAAW,sCAAuC,SAAQ,sBAAsB;IACrF,uBAAuB,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,qBAAa,gCAAiC,SAAQ,aAAa,CAAC,sCAAsC,CAAC;IAC1G,MAAM;CAQN;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,CAAC,+BAA+B,GAAG,MAAM,GAAG,SAAS,CAsB9G;AAED,wBAAgB,6BAA6B,CAAC,uBAAuB,EAAE,MAAM,GAAG,UAAU,CAEzF;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CActE"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ResponseOutputMessageIdContainer = void 0;
|
|
8
|
-
exports.rawPartAsResponseOutputMessageId = rawPartAsResponseOutputMessageId;
|
|
9
|
-
exports.encodeResponseOutputMessageId = encodeResponseOutputMessageId;
|
|
10
|
-
exports.decodeResponseOutputMessageId = decodeResponseOutputMessageId;
|
|
11
|
-
const prompt_tsx_1 = require("@vscode/prompt-tsx");
|
|
12
|
-
const endpointTypes_1 = require("./endpointTypes");
|
|
13
|
-
/**
|
|
14
|
-
* Helper element to embed a Responses API output message ID into assistant messages
|
|
15
|
-
* as an opaque content part.
|
|
16
|
-
*/
|
|
17
|
-
class ResponseOutputMessageIdContainer extends prompt_tsx_1.PromptElement {
|
|
18
|
-
render() {
|
|
19
|
-
const { responseOutputMessageId } = this.props;
|
|
20
|
-
const container = {
|
|
21
|
-
type: endpointTypes_1.CustomDataPartMimeTypes.ResponseOutputMessageId,
|
|
22
|
-
responseOutputMessageId,
|
|
23
|
-
};
|
|
24
|
-
return vscpp("opaque", { value: container });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ResponseOutputMessageIdContainer = ResponseOutputMessageIdContainer;
|
|
28
|
-
/**
|
|
29
|
-
* Attempts to parse a Raw opaque content part into a Responses API output message ID.
|
|
30
|
-
* Falls back to legacy phase payloads that stored the ID alongside the phase.
|
|
31
|
-
*/
|
|
32
|
-
function rawPartAsResponseOutputMessageId(part) {
|
|
33
|
-
const value = part.value;
|
|
34
|
-
if (!value || typeof value !== 'object') {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const data = value;
|
|
38
|
-
if (data.type === endpointTypes_1.CustomDataPartMimeTypes.ResponseOutputMessageId
|
|
39
|
-
&& typeof data.responseOutputMessageId === 'string') {
|
|
40
|
-
return data.responseOutputMessageId;
|
|
41
|
-
}
|
|
42
|
-
if (data.type === endpointTypes_1.CustomDataPartMimeTypes.PhaseData
|
|
43
|
-
&& typeof data.responseOutputMessageId === 'string') {
|
|
44
|
-
return data.responseOutputMessageId;
|
|
45
|
-
}
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
function encodeResponseOutputMessageId(responseOutputMessageId) {
|
|
49
|
-
return new TextEncoder().encode(responseOutputMessageId);
|
|
50
|
-
}
|
|
51
|
-
function decodeResponseOutputMessageId(data) {
|
|
52
|
-
const decoded = new TextDecoder().decode(data);
|
|
53
|
-
try {
|
|
54
|
-
const parsed = JSON.parse(decoded);
|
|
55
|
-
if (typeof parsed.responseOutputMessageId === 'string') {
|
|
56
|
-
return parsed.responseOutputMessageId;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
// Backward compatibility with plain string payloads.
|
|
61
|
-
}
|
|
62
|
-
return decoded;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=responseOutputMessageIdContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responseOutputMessageIdContainer.js","sourceRoot":"","sources":["../../../../../../src/_internal/platform/endpoint/common/responseOutputMessageIdContainer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAsChG,4EAsBC;AAED,sEAEC;AAED,sEAcC;AA9ED,mDAAgF;AAChF,mDAA0D;AAgB1D;;;GAGG;AACH,MAAa,gCAAiC,SAAQ,0BAAqD;IAC1G,MAAM;QACL,MAAM,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC/C,MAAM,SAAS,GAAmC;YACjD,IAAI,EAAE,uCAAuB,CAAC,uBAAuB;YACrD,uBAAuB;SACvB,CAAC;QACF,OAAO,kBAAQ,KAAK,EAAE,SAAS,GAAI,CAAC;IACrC,CAAC;CACD;AATD,4EASC;AAED;;;GAGG;AACH,SAAgB,gCAAgC,CAAC,IAAyC;IACzF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAgB,CAAC;IACpC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzC,OAAO;IACR,CAAC;IAED,MAAM,IAAI,GAAG,KAAgE,CAAC;IAC9E,IACC,IAAI,CAAC,IAAI,KAAK,uCAAuB,CAAC,uBAAuB;WAC1D,OAAO,IAAI,CAAC,uBAAuB,KAA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