dsh-github-copilot 0.4.0-alpha.125 → 0.4.0-alpha.127
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 +12 -0
- package/README.md +10 -6
- package/README.zh.md +10 -6
- package/deployment-baseline.json +5 -1
- package/docs/manual-compaction-recovery.md +2 -0
- package/lib/client.js +348 -257
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/types/compaction-continuation-ui.d.ts +20 -1
- package/lib/types/diagnostics-card.d.ts +1 -0
- package/lib/types/native-settings-style.d.ts +10 -0
- package/lib/types/parent-model-follow-card.d.ts +2 -11
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -310,7 +310,7 @@ const result$1 = strictRemoteCodec("dsh-github-copilot#DiagnosticsView", Diagnos
|
|
|
310
310
|
var package_default = {
|
|
311
311
|
name: "dsh-github-copilot",
|
|
312
312
|
description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
313
|
-
version: "0.4.0-alpha.
|
|
313
|
+
version: "0.4.0-alpha.127",
|
|
314
314
|
publishConfig: {
|
|
315
315
|
"access": "public",
|
|
316
316
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import type { SessionContinuationRemote } from './session-continuation-ui.ts';
|
|
2
|
-
|
|
2
|
+
import type { CompactionContinuationStatus } from './session-continuation-types.ts';
|
|
3
|
+
type NoticeState = CompactionContinuationStatus['state'] | 'unavailable';
|
|
4
|
+
/** Presentation only, retained across incidental mounts by the Client slot registration. */
|
|
5
|
+
export declare class CompactionNoticePresentation {
|
|
6
|
+
private entries;
|
|
7
|
+
private listeners;
|
|
8
|
+
private version;
|
|
9
|
+
subscribe: (listener: () => void) => () => void;
|
|
10
|
+
snapshot: () => number;
|
|
11
|
+
private key;
|
|
12
|
+
private remember;
|
|
13
|
+
observe(sessionId: string, id: string, state: NoticeState): void;
|
|
14
|
+
remaining(sessionId: string, id: string): number | undefined;
|
|
15
|
+
visible(sessionId: string, id: string, state: NoticeState): boolean;
|
|
16
|
+
dismiss(sessionId: string, id: string, state: NoticeState): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function CompactionContinuationNotice({ sessionId, remote, lifecycle, locale, presentation: sharedPresentation }: {
|
|
3
20
|
sessionId: string;
|
|
4
21
|
remote?: SessionContinuationRemote;
|
|
5
22
|
lifecycle: unknown;
|
|
6
23
|
locale?: string;
|
|
24
|
+
presentation?: CompactionNoticePresentation;
|
|
7
25
|
}): import("react").DetailedReactHTMLElement<{
|
|
8
26
|
'data-copilot-composer-notice': string;
|
|
9
27
|
style: import("react").CSSProperties;
|
|
10
28
|
}, HTMLElement> | null;
|
|
29
|
+
export {};
|
|
11
30
|
//# sourceMappingURL=compaction-continuation-ui.d.ts.map
|
|
@@ -5,6 +5,7 @@ export declare function DiagnosticsCard({ remote }: {
|
|
|
5
5
|
remote?: DiagnosticsRemote;
|
|
6
6
|
}): import("react").DetailedReactHTMLElement<{
|
|
7
7
|
'aria-label': string;
|
|
8
|
+
'data-copilot-native-ui': boolean;
|
|
8
9
|
style: CSSProperties;
|
|
9
10
|
}, HTMLElement>;
|
|
10
11
|
//# sourceMappingURL=diagnostics-card.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export declare const nativeSettingsStyle: CSSProperties;
|
|
3
|
+
export declare const nativeHeadingStyle: CSSProperties;
|
|
4
|
+
export declare const nativeCaptionStyle: CSSProperties;
|
|
5
|
+
export declare const nativeButtonStyle: CSSProperties;
|
|
6
|
+
export declare const nativeCompactButtonStyle: CSSProperties;
|
|
7
|
+
export declare const nativeInputStyle: CSSProperties;
|
|
8
|
+
export declare const nativeCardStyle: CSSProperties;
|
|
9
|
+
export declare const nativeSettingsCss = "\n[data-copilot-native-ui] :is(h3, strong, th) { font-weight: 500; }\n[data-copilot-native-ui] button:not(:disabled):hover {\n background: var(--dsw-alias-interactive-bg-hover, var(--dsw-specific-settings-secondary-hover-solid, ButtonFace));\n}\n[data-copilot-native-ui] :is(button, input, select, textarea, summary, a):focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, Highlight); outline-offset: 2px;\n}\n[data-copilot-native-ui] :is(button, input, select, textarea):disabled { opacity: 0.4; cursor: not-allowed; }\n[data-copilot-native-ui] summary {\n width: fit-content; max-width: 100%; padding: 2px 4px; margin-left: -4px;\n border-radius: var(--dsw-radius-sm, 8px); cursor: pointer;\n font-size: 12px; line-height: 18px; font-weight: 500;\n color: var(--dsw-alias-label-secondary, GrayText); list-style: none;\n}\n[data-copilot-native-ui] summary::-webkit-details-marker { display: none; }\n[data-copilot-native-ui] summary::before {\n content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px;\n border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;\n transform: rotate(-45deg); transition: transform 120ms ease;\n}\n[data-copilot-native-ui] details[open] > summary::before,\n[data-copilot-native-ui][open] > summary::before { transform: rotate(45deg); }\n[data-copilot-native-ui] summary:hover { background: var(--dsw-alias-interactive-bg-hover, ButtonFace); }\n@media (prefers-reduced-motion: reduce) {\n [data-copilot-native-ui] summary::before { transition: none; }\n}\n";
|
|
10
|
+
//# sourceMappingURL=native-settings-style.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
2
3
|
type Settings = Context['remote']['settings'];
|
|
3
4
|
interface Snapshot {
|
|
4
5
|
enabled: boolean;
|
|
@@ -26,16 +27,6 @@ export declare function saveParentFollowSettings(settings: Settings, saved: Snap
|
|
|
26
27
|
next: number;
|
|
27
28
|
};
|
|
28
29
|
}>;
|
|
29
|
-
export declare function ParentModelFollowCard({ settings, onSaved }: Props):
|
|
30
|
-
'data-dsh-parent-model-follow': boolean;
|
|
31
|
-
'aria-busy': boolean;
|
|
32
|
-
style: {
|
|
33
|
-
padding: string;
|
|
34
|
-
marginTop: string;
|
|
35
|
-
display: "grid";
|
|
36
|
-
gap: string;
|
|
37
|
-
minWidth: number;
|
|
38
|
-
};
|
|
39
|
-
}, HTMLElement>;
|
|
30
|
+
export declare function ParentModelFollowCard({ settings, onSaved }: Props): ReactElement;
|
|
40
31
|
export {};
|
|
41
32
|
//# sourceMappingURL=parent-model-follow-card.d.ts.map
|
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.127",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|