dsh-github-copilot 0.4.0-alpha.26 → 0.4.0-alpha.27
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 +74 -67
- package/README.md +9 -9
- package/README.zh.md +9 -9
- package/deployment-baseline.json +1 -1
- package/docs/dual-model.md +11 -8
- package/lib/client.js +191 -84
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/types/current-workspace.d.ts +10 -0
- package/lib/types/dual-model-card.d.ts +2 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Optional read-only projection of the public Client Session/Workspace lists. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
export interface CurrentWorkspaceSource {
|
|
4
|
+
getSnapshot(): string | undefined;
|
|
5
|
+
subscribe(listener: () => void): () => void;
|
|
6
|
+
dispose(): void;
|
|
7
|
+
}
|
|
8
|
+
/** Observe only current membership. Do not call navigation/create or use a recent-workspace fallback. */
|
|
9
|
+
export declare function createCurrentWorkspaceSource(ctx: Context): CurrentWorkspaceSource;
|
|
10
|
+
//# sourceMappingURL=current-workspace.d.ts.map
|
|
@@ -44,6 +44,8 @@ export interface DualModelRemote {
|
|
|
44
44
|
export interface DualModelCardProps {
|
|
45
45
|
remote: DualModelRemote;
|
|
46
46
|
locale?: string;
|
|
47
|
+
/** Current Client workspace; never a saved role setting or an implicit fallback. */
|
|
48
|
+
currentWorkspaceId?: string;
|
|
47
49
|
onOpenSession?: (id: string) => void;
|
|
48
50
|
}
|
|
49
51
|
/** Additive Models settings card. All mutations belong to the injected scoped Remote. */
|
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.27",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|