dsh-github-copilot 0.4.0-alpha.37 → 0.4.0-alpha.39
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 +8 -4
- package/CHANGELOG.md +14 -0
- package/README.md +26 -14
- package/README.zh.md +26 -14
- package/deployment-baseline.json +78 -18
- package/docs/model-compatibility-acceptance.md +2 -1
- package/docs/npm-distribution.md +28 -18
- package/docs/official-first-020-rc1.md +28 -0
- package/docs/official-first-020-rc2.md +16 -0
- package/lib/client.js +8 -5
- package/lib/client.js.map +1 -1
- package/lib/index.js +145 -96
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-DqLKem1c.js → search-routing-C1o895V6.js} +29 -2
- package/lib/types/compatibility.d.ts +5 -5
- package/lib/types/config.d.ts +3 -0
- package/lib/types/pi-provider-bridge.d.ts +1 -1
- package/lib/types/preview-provider.d.ts +2 -2
- package/lib/types/route-ownership.d.ts +1 -1
- package/lib/types/serialize.d.ts +8 -11
- package/lib/types/settings-reader.d.ts +11 -0
- package/package.json +46 -44
- package/scripts/check-search-composition.mjs +5 -5
package/lib/types/serialize.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* this limited serializer refuses them instead of inventing Responses items.
|
|
5
5
|
* @module dsh-github-copilot/serialize
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { GenerateOptions, RequestMessage, ToolSchema } from '@deepseek-ai/dsh-llm';
|
|
8
8
|
import type { ResponsesWebSearchToolType } from './plan.ts';
|
|
9
9
|
import type { InlineConfig } from './config.ts';
|
|
10
10
|
/** Mapped only after the selected model's native capability checks succeed. */
|
|
@@ -13,7 +13,7 @@ export interface ResponsesReasoningOptions {
|
|
|
13
13
|
readonly summary: 'auto';
|
|
14
14
|
}
|
|
15
15
|
/** Keep Core-owned reasoning provenance and opaque replay state out of this serializer. */
|
|
16
|
-
export declare function hasResponsesReplayContext(messages: readonly
|
|
16
|
+
export declare function hasResponsesReplayContext(messages: readonly RequestMessage[]): boolean;
|
|
17
17
|
/** Thrown for content whose projection must remain with Core. */
|
|
18
18
|
export declare class UnsupportedContentError extends Error {
|
|
19
19
|
constructor(detail: string);
|
|
@@ -35,26 +35,23 @@ export declare function splitCallId(id: string): {
|
|
|
35
35
|
callId: string;
|
|
36
36
|
itemId: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* @returns the joined text.
|
|
42
|
-
*/
|
|
43
|
-
export declare function flattenText(content: readonly ContentBlock[]): string;
|
|
38
|
+
export declare function flattenText(content: readonly unknown[]): string;
|
|
39
|
+
/** Detect a grounded sandbox denial in either current tool-role or retained legacy message layout. */
|
|
40
|
+
export declare function hasToolResultText(message: RequestMessage, needle: string): boolean;
|
|
44
41
|
/**
|
|
45
42
|
* Serialize one dsh message into Responses input items.
|
|
46
43
|
* @param message - the harness message.
|
|
47
44
|
* @returns the wire input items; may be empty for content-free messages.
|
|
48
45
|
* @throws UnsupportedContentError for image or Core-owned reasoning/replay content.
|
|
49
46
|
*/
|
|
50
|
-
export declare function serializeMessage(message:
|
|
47
|
+
export declare function serializeMessage(message: RequestMessage, pairedCallIds?: ReadonlySet<string>): unknown[];
|
|
51
48
|
/**
|
|
52
49
|
* Return call ids that have both an assistant function call and a user tool
|
|
53
50
|
* result. Responses rejects either half when replayed alone, which can happen
|
|
54
51
|
* when a prior provider/tool failure ended the step before persistence wrote
|
|
55
52
|
* the matching result.
|
|
56
53
|
*/
|
|
57
|
-
export declare function pairedToolCallIds(messages: readonly
|
|
54
|
+
export declare function pairedToolCallIds(messages: readonly RequestMessage[]): ReadonlySet<string>;
|
|
58
55
|
/**
|
|
59
56
|
* Build the wire tools array: function tools (optionally stripped of the
|
|
60
57
|
* variants shadowed by server-side web tools) plus the server-side web
|
|
@@ -93,7 +90,7 @@ export declare function anthropicWireTools(tools: readonly ToolSchema[] | undefi
|
|
|
93
90
|
* @returns the Anthropic content items for this message.
|
|
94
91
|
* @throws UnsupportedContentError for image content.
|
|
95
92
|
*/
|
|
96
|
-
export declare function serializeAnthropicMessage(message:
|
|
93
|
+
export declare function serializeAnthropicMessage(message: RequestMessage): unknown[];
|
|
97
94
|
/**
|
|
98
95
|
* Build the complete Anthropic Messages request body for one inline call.
|
|
99
96
|
* The system prompt goes to the top-level `system` field (unlike the
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
/** Read non-secret configuration through the API available on the running Core. */
|
|
3
|
+
export declare function readSettingsNamespace(ctx: Context, namespace: string): unknown;
|
|
4
|
+
declare module '@deepseek-ai/cordis' {
|
|
5
|
+
interface Events {
|
|
6
|
+
'settings/updated'(namespace: string): void;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/** Subscribe to namespace changes across the legacy settings provider and current form service. */
|
|
10
|
+
export declare function onSettingsNamespaceUpdated(ctx: Context, listener: (namespace: string) => void): () => void;
|
|
11
|
+
//# sourceMappingURL=settings-reader.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.39",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"docs/npm-distribution.md",
|
|
56
56
|
"docs/dual-model.md",
|
|
57
57
|
"docs/official-first-016-alpha2.md",
|
|
58
|
+
"docs/official-first-020-rc1.md",
|
|
59
|
+
"docs/official-first-020-rc2.md",
|
|
58
60
|
"docs/copilot-compaction.md",
|
|
59
61
|
"docs/copilot-usage.md",
|
|
60
62
|
"docs/images/dual-model-provenance.json",
|
|
@@ -77,26 +79,26 @@
|
|
|
77
79
|
"license": "MIT",
|
|
78
80
|
"engines": {
|
|
79
81
|
"node": ">=22.19.0",
|
|
80
|
-
"dsh": "0.
|
|
82
|
+
"dsh": "0.2.0-rc.2"
|
|
81
83
|
},
|
|
82
84
|
"peerDependencies": {
|
|
83
85
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
84
|
-
"@deepseek-ai/dsh-agent": "0.
|
|
85
|
-
"@deepseek-ai/dsh-agent-default-model": "0.
|
|
86
|
-
"@deepseek-ai/dsh-api-remotes": "0.
|
|
87
|
-
"@deepseek-ai/dsh-authorization": "0.
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.
|
|
91
|
-
"@deepseek-ai/dsh-credentials": "0.
|
|
92
|
-
"@deepseek-ai/dsh-launch-environment": "0.
|
|
93
|
-
"@deepseek-ai/dsh-llm": "0.
|
|
94
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.
|
|
95
|
-
"@deepseek-ai/dsh-scope": "0.
|
|
96
|
-
"@deepseek-ai/dsh-settings": "0.
|
|
97
|
-
"@deepseek-ai/dsh-typert-protocol": "0.
|
|
98
|
-
"@deepseek-ai/dsh-web": "0.
|
|
99
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.
|
|
86
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
100
102
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
101
103
|
},
|
|
102
104
|
"peerDependenciesMeta": {
|
|
@@ -123,36 +125,36 @@
|
|
|
123
125
|
}
|
|
124
126
|
},
|
|
125
127
|
"dependencies": {
|
|
126
|
-
"@earendil-works/pi-ai": "0.
|
|
128
|
+
"@earendil-works/pi-ai": "0.87.1",
|
|
127
129
|
"zod": "^4.4.3"
|
|
128
130
|
},
|
|
129
131
|
"devDependencies": {
|
|
130
132
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
131
|
-
"@deepseek-ai/dsh-agent": "0.
|
|
132
|
-
"@deepseek-ai/dsh-agent-default-model": "0.
|
|
133
|
-
"@deepseek-ai/dsh-api-gateway": "0.
|
|
134
|
-
"@deepseek-ai/dsh-api-remotes": "0.
|
|
135
|
-
"@deepseek-ai/dsh-app-boot": "0.
|
|
136
|
-
"@deepseek-ai/dsh-attachment": "0.
|
|
137
|
-
"@deepseek-ai/dsh-authorization": "0.
|
|
138
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
139
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.
|
|
140
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.
|
|
141
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.
|
|
142
|
-
"@deepseek-ai/dsh-credentials": "0.
|
|
143
|
-
"@deepseek-ai/dsh-fs": "0.
|
|
144
|
-
"@deepseek-ai/dsh-launch-environment": "0.
|
|
145
|
-
"@deepseek-ai/dsh-llm": "0.
|
|
146
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.
|
|
147
|
-
"@deepseek-ai/dsh-scope": "0.
|
|
148
|
-
"@deepseek-ai/dsh-settings": "0.
|
|
149
|
-
"@deepseek-ai/dsh-system-prompt": "0.
|
|
150
|
-
"@deepseek-ai/dsh-tool-web": "0.
|
|
151
|
-
"@deepseek-ai/dsh-tools": "0.
|
|
152
|
-
"@deepseek-ai/dsh-typert-protocol": "0.
|
|
153
|
-
"@deepseek-ai/dsh-typert-registry": "0.
|
|
154
|
-
"@deepseek-ai/dsh-web": "0.
|
|
155
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.
|
|
133
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-fs": "0.2.0-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
148
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
151
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-tool-web": "0.2.0-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
156
158
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
157
159
|
"@types/node": "^22.0.0",
|
|
158
160
|
"@types/react": "~18.3.1",
|
|
@@ -107,12 +107,12 @@ function candidateViable(entries, baseline) {
|
|
|
107
107
|
/** Read and compose the proposed normal launch without loadProfile's initialization/normalization writes. */
|
|
108
108
|
export async function inspectProfileSearchComposition({ profileDir, home, installAnchor, patches = [] }, suppliedBoot) {
|
|
109
109
|
const native = suppliedBoot ?? await import(pathToFileURL(createRequire(installAnchor).resolve('@deepseek-ai/dsh-app-boot')).href)
|
|
110
|
-
const { readProfileManifest, resolveBundleDir, loadOverlayPatches, loadOptionalPatches, composeEntries } = native
|
|
110
|
+
const { readProfileManifest, resolveBundleDir, bundlePatchPaths, loadOverlayPatches, loadOptionalPatches, composeEntries } = native
|
|
111
111
|
const bin = 'copilot-search-preflight'
|
|
112
112
|
const manifest = readProfileManifest(bin, profileDir)
|
|
113
113
|
const reasons = new Set()
|
|
114
|
-
//
|
|
115
|
-
// Never certify rows
|
|
114
|
+
// Official profile composition overwrites cordis.yml with [] on normal launch,
|
|
115
|
+
// including the resolved Desktop path. Never certify rows from that file.
|
|
116
116
|
const root = loadOptionalPatches(bin, join(profileDir, 'cordis.yml'))
|
|
117
117
|
if (root?.length) return reportCandidate(new Set(['NONEMPTY_DISPOSABLE_PROFILE_ROOT']))
|
|
118
118
|
const candidate = loadOverlayPatches(bin, fileURLToPath(new URL('../cordis.patch.yml', import.meta.url)))
|
|
@@ -135,8 +135,8 @@ export async function inspectProfileSearchComposition({ profileDir, home, instal
|
|
|
135
135
|
addCandidate()
|
|
136
136
|
continue
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
const layer = bundlePatchPaths(directory, bundle.dsh?.bundle)
|
|
139
|
+
.flatMap(file => loadOverlayPatches(bin, file))
|
|
140
140
|
layers.push(layer)
|
|
141
141
|
baselineLayers.push(layer)
|
|
142
142
|
}
|