dsh-github-copilot 0.4.2-alpha.17 → 0.4.2-alpha.19.dsh.0.2.0.rc.2
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/CHANGELOG.md +24 -0
- package/README.md +9 -7
- package/README.zh.md +9 -7
- package/deployment-baseline.json +18 -1
- package/docs/image-input-compatibility.md +39 -19
- package/lib/client.js +54 -40
- package/lib/client.js.map +1 -1
- package/lib/index.js +166 -81
- package/lib/types/image-input-admission.d.ts +3 -2
- package/lib/types/replay-recovery-evidence.d.ts +54 -0
- package/lib/types/replay-recovery-ui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const REPLAY_RECOVERY_EVIDENCE = "githubCopilotReplayRecoveryEvidence";
|
|
4
|
+
export declare const ReplayRecoveryEvidenceSchema: z.ZodObject<{
|
|
5
|
+
inherited: z.ZodNumber;
|
|
6
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
managed: z.ZodBoolean;
|
|
8
|
+
failureSeq: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export type ReplayRecoveryEvidence = z.infer<typeof ReplayRecoveryEvidenceSchema>;
|
|
11
|
+
declare module '@deepseek-ai/dsh-session-projection/types' {
|
|
12
|
+
interface SessionProjectionMap {
|
|
13
|
+
githubCopilotReplayRecoveryEvidence: ReplayRecoveryEvidence;
|
|
14
|
+
}
|
|
15
|
+
interface SessionProjectionStateMap {
|
|
16
|
+
githubCopilotReplayRecoveryEvidence: ReplayRecoveryEvidence;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare function initialReplayRecoveryEvidence(inherited?: number): ReplayRecoveryEvidence;
|
|
20
|
+
/** A historical fixed-code notice is not current account proof or recovery authorization. */
|
|
21
|
+
export declare function foldReplayRecoveryEvidence(state: ReplayRecoveryEvidence, event: unknown): ReplayRecoveryEvidence;
|
|
22
|
+
export declare const replayRecoveryEvidenceDefinition: {
|
|
23
|
+
key: string;
|
|
24
|
+
stateVersion: number;
|
|
25
|
+
stateSchema: z.ZodObject<{
|
|
26
|
+
inherited: z.ZodNumber;
|
|
27
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
managed: z.ZodBoolean;
|
|
29
|
+
failureSeq: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
init: (_header: unknown, inherited?: number) => {
|
|
32
|
+
inherited: number;
|
|
33
|
+
turn: number | null;
|
|
34
|
+
managed: boolean;
|
|
35
|
+
failureSeq: number | null;
|
|
36
|
+
};
|
|
37
|
+
apply: typeof foldReplayRecoveryEvidence;
|
|
38
|
+
wire: {
|
|
39
|
+
viewSchema: z.ZodObject<{
|
|
40
|
+
inherited: z.ZodNumber;
|
|
41
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
managed: z.ZodBoolean;
|
|
43
|
+
failureSeq: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
view: (state: ReplayRecoveryEvidence) => {
|
|
46
|
+
inherited: number;
|
|
47
|
+
turn: number | null;
|
|
48
|
+
managed: boolean;
|
|
49
|
+
failureSeq: number | null;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare function installReplayRecoveryEvidence(ctx: Context): void;
|
|
54
|
+
//# sourceMappingURL=replay-recovery-evidence.d.ts.map
|
|
@@ -16,12 +16,13 @@ export interface ReplayRecoveryRemote {
|
|
|
16
16
|
value?: unknown;
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
19
|
-
export declare function ReplayRecoveryCard({ sessionId, remote, continuation, locale, running, refreshKey }: {
|
|
19
|
+
export declare function ReplayRecoveryCard({ sessionId, remote, continuation, locale, running, refreshKey, failureKey }: {
|
|
20
20
|
sessionId: string;
|
|
21
21
|
remote: ReplayRecoveryRemote;
|
|
22
22
|
locale?: string;
|
|
23
23
|
running?: boolean;
|
|
24
24
|
refreshKey?: string;
|
|
25
|
+
failureKey?: string;
|
|
25
26
|
continuation?: SessionContinuationRemote;
|
|
26
27
|
}): ReactElement | null;
|
|
27
28
|
export declare function registerReplayRecoveryUi(ctx: Context): () => void;
|
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.2-alpha.
|
|
4
|
+
"version": "0.4.2-alpha.19.dsh.0.2.0.rc.2",
|
|
5
5
|
"releaseNotes": "CHANGELOG.md",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|