dsh-github-copilot 0.4.0-alpha.107 → 0.4.0-alpha.108
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/AGENTS.md +6 -0
- package/CHANGELOG.md +6 -0
- package/README.md +8 -6
- package/README.zh.md +8 -6
- package/deployment-baseline.json +5 -1
- package/docs/model-compatibility-acceptance.md +19 -4
- package/lib/client.js +63 -22
- package/lib/client.js.map +1 -1
- package/lib/index.js +9 -3
- package/lib/types/composer-notice-style.d.ts +5 -0
- package/lib/types/responses-replay-compat.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2220,14 +2220,16 @@ function requestBodyEvidence(body, protocol) {
|
|
|
2220
2220
|
//#endregion
|
|
2221
2221
|
//#region lib/types/responses-replay-compat.js
|
|
2222
2222
|
const replayDiagnostics = {
|
|
2223
|
-
"scope-mismatch": "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: Copilot
|
|
2223
|
+
"scope-mismatch": "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: Copilot rejected history tied to another account or connection. Review Replay recovery options, or start a new conversation. Recovery requires consent; stored history is unchanged.",
|
|
2224
2224
|
unsupported: "COPILOT_RESPONSES_REPLAY_UNSUPPORTED: Copilot Responses input cannot be replayed safely without connection-scoped references.",
|
|
2225
2225
|
"invalid-payload": "COPILOT_RESPONSES_REPLAY_INVALID_PAYLOAD: Copilot Responses payload has an invalid replay structure."
|
|
2226
2226
|
};
|
|
2227
2227
|
/** Fixed diagnostics and bounded counts only; never retain request or replay content. */
|
|
2228
2228
|
var CopilotResponsesReplayError = class extends Error {
|
|
2229
|
+
dispatchEvidence;
|
|
2229
2230
|
constructor(reason = "unsupported", dispatch) {
|
|
2230
|
-
super(replayDiagnostics[reason]
|
|
2231
|
+
super(replayDiagnostics[reason]);
|
|
2232
|
+
if (reason === "scope-mismatch" && dispatch !== void 0) this.dispatchEvidence = replayDispatchEvidence(dispatch);
|
|
2231
2233
|
this.name = "CopilotResponsesReplayError";
|
|
2232
2234
|
}
|
|
2233
2235
|
};
|
|
@@ -2989,7 +2991,7 @@ function createAccountProvider(descriptors, guard, baseURL) {
|
|
|
2989
2991
|
var package_default = {
|
|
2990
2992
|
name: "dsh-github-copilot",
|
|
2991
2993
|
description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
2992
|
-
version: "0.4.0-alpha.
|
|
2994
|
+
version: "0.4.0-alpha.108",
|
|
2993
2995
|
publishConfig: {
|
|
2994
2996
|
"access": "public",
|
|
2995
2997
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -11581,6 +11583,10 @@ function createAccountRuntime(ctx, config, binding, exclusionTurns, replayRecove
|
|
|
11581
11583
|
const guard = {
|
|
11582
11584
|
...lifetime.guard(lease),
|
|
11583
11585
|
...hooks,
|
|
11586
|
+
onReplayFailure(error) {
|
|
11587
|
+
if (error.dispatchEvidence !== void 0) ctx.logger.warn(`[github-copilot] ${error.dispatchEvidence}`);
|
|
11588
|
+
hooks.onReplayFailure?.(error);
|
|
11589
|
+
},
|
|
11584
11590
|
...enabled ? { streamIdleTimeoutMs: idle } : {},
|
|
11585
11591
|
onUnauthorized() {
|
|
11586
11592
|
if (lease === void 0 || !lifetime.isCurrent(lease.revision) || source.readDisplaySnapshot() !== lease.snapshot || provenSnapshot !== lease.snapshot || snapshotProof !== lease.proof) return;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export declare const composerNoticeStyle: CSSProperties;
|
|
3
|
+
export declare const composerNoticeParagraphStyle: CSSProperties;
|
|
4
|
+
export declare const composerNoticeButtonStyle: CSSProperties;
|
|
5
|
+
//# sourceMappingURL=composer-notice-style.d.ts.map
|
|
@@ -6,6 +6,7 @@ interface ReplayDispatch {
|
|
|
6
6
|
}
|
|
7
7
|
/** Fixed diagnostics and bounded counts only; never retain request or replay content. */
|
|
8
8
|
export declare class CopilotResponsesReplayError extends Error {
|
|
9
|
+
readonly dispatchEvidence?: string;
|
|
9
10
|
constructor(reason?: ReplayFailure, dispatch?: ReplayDispatch);
|
|
10
11
|
}
|
|
11
12
|
/** Normalize only the outgoing managed Responses payload, never stored history/context. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-github-copilot",
|
|
3
3
|
"description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
4
|
-
"version": "0.4.0-alpha.
|
|
4
|
+
"version": "0.4.0-alpha.108",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|