dsh-github-copilot 0.4.0-alpha.109 → 0.4.0-alpha.110
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 +1 -1
- package/CHANGELOG.md +8 -0
- package/README.md +9 -9
- package/README.zh.md +9 -9
- package/deployment-baseline.json +9 -3
- package/docs/account-management-experience.md +25 -12
- package/docs/copilot-accounts.md +5 -4
- package/docs/mockups/copilot-account-dropdown.html +71 -0
- package/docs/model-compatibility-acceptance.md +13 -12
- package/docs/session-continuation.md +10 -7
- package/lib/client.js +320 -321
- package/lib/client.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/types/account-dropdown.d.ts +22 -0
- package/lib/types/copilot-accounts-remote.d.ts +1 -1
- package/lib/types/copilot-usage-card.d.ts +0 -1
- package/lib/types/remote.d.ts +6 -6
- package/lib/types/session-accounts-remote.d.ts +1 -1
- package/lib/types/session-continuation-ui.d.ts +3 -1
- package/lib/types/turn-selection.d.ts +2 -2
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -2993,7 +2993,7 @@ function createAccountProvider(descriptors, guard, baseURL) {
|
|
|
2993
2993
|
var package_default = {
|
|
2994
2994
|
name: "dsh-github-copilot",
|
|
2995
2995
|
description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
2996
|
-
version: "0.4.0-alpha.
|
|
2996
|
+
version: "0.4.0-alpha.110",
|
|
2997
2997
|
publishConfig: {
|
|
2998
2998
|
"access": "public",
|
|
2999
2999
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -3062,6 +3062,7 @@ var package_default = {
|
|
|
3062
3062
|
"docs/session-continuation.md",
|
|
3063
3063
|
"docs/account-management-experience.md",
|
|
3064
3064
|
"docs/mockups/copilot-account-management.html",
|
|
3065
|
+
"docs/mockups/copilot-account-dropdown.html",
|
|
3065
3066
|
"docs/automatic-model-routing.md",
|
|
3066
3067
|
"docs/auto-task-routing.md",
|
|
3067
3068
|
"docs/image-input-compatibility.md",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CSSProperties, ReactElement, RefObject } from 'react';
|
|
2
|
+
export interface AccountDropdownOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function AccountDropdown(props: {
|
|
9
|
+
label: string;
|
|
10
|
+
open: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
options: AccountDropdownOption[];
|
|
14
|
+
onOpenChange(open: boolean): void;
|
|
15
|
+
onSelect(id: string): void;
|
|
16
|
+
triggerStyle: CSSProperties;
|
|
17
|
+
triggerRef?: RefObject<HTMLButtonElement | null>;
|
|
18
|
+
footer?: ReactElement | null;
|
|
19
|
+
listAttribute: 'data-copilot-saved-accounts' | 'data-copilot-account-options';
|
|
20
|
+
maxHeight?: number;
|
|
21
|
+
}): ReactElement;
|
|
22
|
+
//# sourceMappingURL=account-dropdown.d.ts.map
|
|
@@ -19,8 +19,8 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
19
19
|
export declare const CopilotAccountIdSchema: z.ZodString;
|
|
20
20
|
export declare const CopilotAccountsViewSchema: z.ZodObject<{
|
|
21
21
|
state: z.ZodEnum<{
|
|
22
|
-
ready: "ready";
|
|
23
22
|
error: "error";
|
|
23
|
+
ready: "ready";
|
|
24
24
|
}>;
|
|
25
25
|
activeAccountId: z.ZodString;
|
|
26
26
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -28,7 +28,6 @@ export interface CopilotUsageCardProps {
|
|
|
28
28
|
accountActions?: ReactElement;
|
|
29
29
|
continuation?: ReactElement;
|
|
30
30
|
onManage?: () => void;
|
|
31
|
-
navigationDiagnostic?: string;
|
|
32
31
|
/** Parent-owned consent; check the request signal after awaits and dismiss on abort. */
|
|
33
32
|
beforeAccountChange?: (accountId: string | null, signal: AbortSignal) => Promise<boolean>;
|
|
34
33
|
sessionAccount?: {
|
package/lib/types/remote.d.ts
CHANGED
|
@@ -52,9 +52,9 @@ export declare const GitHubCopilotAuthorizationViewSchema: z.ZodObject<{
|
|
|
52
52
|
}, z.core.$strict>>;
|
|
53
53
|
accountModels: z.ZodOptional<z.ZodObject<{
|
|
54
54
|
state: z.ZodEnum<{
|
|
55
|
+
error: "error";
|
|
55
56
|
ready: "ready";
|
|
56
57
|
unavailable: "unavailable";
|
|
57
|
-
error: "error";
|
|
58
58
|
idle: "idle";
|
|
59
59
|
loading: "loading";
|
|
60
60
|
stale: "stale";
|
|
@@ -79,8 +79,8 @@ export declare const GitHubCopilotAuthorizationViewSchema: z.ZodObject<{
|
|
|
79
79
|
}, z.core.$strict>>;
|
|
80
80
|
modelPreferences: z.ZodOptional<z.ZodObject<{
|
|
81
81
|
state: z.ZodEnum<{
|
|
82
|
-
ready: "ready";
|
|
83
82
|
error: "error";
|
|
83
|
+
ready: "ready";
|
|
84
84
|
}>;
|
|
85
85
|
writable: z.ZodBoolean;
|
|
86
86
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -99,8 +99,8 @@ export declare const GitHubCopilotAuthorizationViewSchema: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strict>>;
|
|
100
100
|
route: z.ZodOptional<z.ZodObject<{
|
|
101
101
|
state: z.ZodEnum<{
|
|
102
|
-
ready: "ready";
|
|
103
102
|
error: "error";
|
|
103
|
+
ready: "ready";
|
|
104
104
|
"needs-repair": "needs-repair";
|
|
105
105
|
"not-configured": "not-configured";
|
|
106
106
|
conflict: "conflict";
|
|
@@ -120,8 +120,8 @@ export declare const GitHubCopilotAuthorizationViewSchema: z.ZodObject<{
|
|
|
120
120
|
}, z.core.$strict>;
|
|
121
121
|
export declare const GitHubCopilotModelPreferencesViewSchema: z.ZodObject<{
|
|
122
122
|
state: z.ZodEnum<{
|
|
123
|
-
ready: "ready";
|
|
124
123
|
error: "error";
|
|
124
|
+
ready: "ready";
|
|
125
125
|
}>;
|
|
126
126
|
writable: z.ZodBoolean;
|
|
127
127
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -168,8 +168,8 @@ export declare const GitHubCopilotMigrationStatusSchema: z.ZodObject<{
|
|
|
168
168
|
sessions: z.ZodArray<z.ZodObject<{
|
|
169
169
|
id: z.ZodString;
|
|
170
170
|
status: z.ZodEnum<{
|
|
171
|
-
idle: "idle";
|
|
172
171
|
running: "running";
|
|
172
|
+
idle: "idle";
|
|
173
173
|
}>;
|
|
174
174
|
effectiveSelection: z.ZodNullable<z.ZodObject<{
|
|
175
175
|
provider: z.ZodString;
|
|
@@ -177,8 +177,8 @@ export declare const GitHubCopilotMigrationStatusSchema: z.ZodObject<{
|
|
|
177
177
|
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
178
178
|
}, z.core.$strict>>;
|
|
179
179
|
selectionSource: z.ZodEnum<{
|
|
180
|
-
unknown: "unknown";
|
|
181
180
|
default: "default";
|
|
181
|
+
unknown: "unknown";
|
|
182
182
|
pending: "pending";
|
|
183
183
|
"request-header": "request-header";
|
|
184
184
|
}>;
|
|
@@ -12,8 +12,8 @@ export declare const SessionAccountViewSchema: z.ZodObject<{
|
|
|
12
12
|
runningAccountId: z.ZodOptional<z.ZodString>;
|
|
13
13
|
accounts: z.ZodObject<{
|
|
14
14
|
state: z.ZodEnum<{
|
|
15
|
-
ready: "ready";
|
|
16
15
|
error: "error";
|
|
16
|
+
ready: "ready";
|
|
17
17
|
}>;
|
|
18
18
|
activeAccountId: z.ZodString;
|
|
19
19
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -21,12 +21,14 @@ export interface SessionContinuationRemote {
|
|
|
21
21
|
value?: unknown;
|
|
22
22
|
}>;
|
|
23
23
|
}
|
|
24
|
-
export declare function SessionContinuationCard({ sessionId, remote, locale, running, onEnabledChange, expanded }: {
|
|
24
|
+
export declare function SessionContinuationCard({ sessionId, remote, locale, running, onEnabledChange, expanded, recovery, onCancel }: {
|
|
25
25
|
sessionId: string;
|
|
26
26
|
remote: SessionContinuationRemote | undefined;
|
|
27
27
|
locale?: string;
|
|
28
28
|
running?: boolean;
|
|
29
29
|
expanded?: boolean;
|
|
30
|
+
recovery?: boolean;
|
|
31
|
+
onCancel?(): void;
|
|
30
32
|
onEnabledChange?(enabled: boolean): void;
|
|
31
33
|
}): ReactElement;
|
|
32
34
|
export declare function ContinuationDefaultCard({ remote, locale, onSaved }: {
|
|
@@ -8,8 +8,8 @@ export declare const TurnSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strict>, z.ZodObject<{
|
|
9
9
|
mode: z.ZodLiteral<"auto">;
|
|
10
10
|
preference: z.ZodEnum<{
|
|
11
|
-
efficiency: "efficiency";
|
|
12
11
|
balance: "balance";
|
|
12
|
+
efficiency: "efficiency";
|
|
13
13
|
intelligence: "intelligence";
|
|
14
14
|
}>;
|
|
15
15
|
reason: z.ZodEnum<{
|
|
@@ -42,10 +42,10 @@ export declare const TurnSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
42
42
|
semantic: "semantic";
|
|
43
43
|
}>;
|
|
44
44
|
diagnostic: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
disabled: "disabled";
|
|
45
46
|
unavailable: "unavailable";
|
|
46
47
|
failed: "failed";
|
|
47
48
|
"context-omitted": "context-omitted";
|
|
48
|
-
disabled: "disabled";
|
|
49
49
|
"invalid-result": "invalid-result";
|
|
50
50
|
timeout: "timeout";
|
|
51
51
|
}>>;
|
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.110",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"docs/session-continuation.md",
|
|
70
70
|
"docs/account-management-experience.md",
|
|
71
71
|
"docs/mockups/copilot-account-management.html",
|
|
72
|
+
"docs/mockups/copilot-account-dropdown.html",
|
|
72
73
|
"docs/automatic-model-routing.md",
|
|
73
74
|
"docs/auto-task-routing.md",
|
|
74
75
|
"docs/image-input-compatibility.md",
|