dsh-github-copilot 0.4.2-alpha.16 → 0.4.2-alpha.17
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 +6 -7
- package/CHANGELOG.md +14 -7
- package/README.md +8 -20
- package/README.zh.md +8 -19
- package/deployment-baseline.json +23 -45
- package/docs/auto-review-sampling.md +1 -1
- package/docs/image-input-compatibility.md +52 -3
- package/docs/npm-distribution.md +15 -0
- package/lib/client.js +2697 -1179
- package/lib/client.js.map +1 -1
- package/lib/index.js +106 -81
- package/lib/types/compatibility.d.ts +4 -4
- package/lib/types/image-input-admission.d.ts +16 -1
- package/lib/types/reasoning-presentation.d.ts +55 -0
- package/package.json +64 -69
- package/docs/official-first-021-alpha4.md +0 -157
package/lib/index.js
CHANGED
|
@@ -582,7 +582,7 @@ const result$1 = strictRemoteCodec("dsh-github-copilot#DiagnosticsView", Diagnos
|
|
|
582
582
|
var package_default = {
|
|
583
583
|
name: "dsh-github-copilot",
|
|
584
584
|
description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
585
|
-
version: "0.4.2-alpha.
|
|
585
|
+
version: "0.4.2-alpha.17",
|
|
586
586
|
releaseNotes: "CHANGELOG.md",
|
|
587
587
|
publishConfig: {
|
|
588
588
|
"access": "public",
|
|
@@ -645,7 +645,6 @@ var package_default = {
|
|
|
645
645
|
"docs/official-first-016-alpha2.md",
|
|
646
646
|
"docs/official-first-020-rc1.md",
|
|
647
647
|
"docs/official-first-020-rc2.md",
|
|
648
|
-
"docs/official-first-021-alpha4.md",
|
|
649
648
|
"docs/web-lifecycle-rc2.md",
|
|
650
649
|
"docs/copilot-compaction.md",
|
|
651
650
|
"docs/manual-compaction-recovery.md",
|
|
@@ -685,7 +684,7 @@ var package_default = {
|
|
|
685
684
|
license: "MIT",
|
|
686
685
|
engines: {
|
|
687
686
|
"node": ">=22.19.0",
|
|
688
|
-
"dsh": "0.2.
|
|
687
|
+
"dsh": "0.2.0-rc.2"
|
|
689
688
|
},
|
|
690
689
|
scripts: {
|
|
691
690
|
"build": "pnpm clean && tsc -p tsconfig.json && tsdown",
|
|
@@ -713,28 +712,28 @@ var package_default = {
|
|
|
713
712
|
"verify": "pnpm verify:agent && pnpm typecheck && pnpm typecheck:tests && pnpm verify:baseline && pnpm build && pnpm test && pnpm test:scripts && pnpm verify:package"
|
|
714
713
|
},
|
|
715
714
|
peerDependencies: {
|
|
716
|
-
"@deepseek-ai/cordis": "4.0.
|
|
717
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
718
|
-
"@deepseek-ai/dsh-agent-default-model": "0.2.
|
|
719
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.
|
|
720
|
-
"@deepseek-ai/dsh-authorization": "0.2.
|
|
721
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
722
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.
|
|
723
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
724
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
725
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
726
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.
|
|
727
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
728
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.
|
|
729
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
730
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.2.
|
|
731
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
732
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
733
|
-
"@deepseek-ai/dsh-settings": "0.2.
|
|
734
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
735
|
-
"@deepseek-ai/dsh-web": "0.2.
|
|
736
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.2.
|
|
737
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
715
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
716
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
717
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
718
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
719
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
720
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
721
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
722
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
723
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2",
|
|
724
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
725
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
726
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
727
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
728
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
729
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
730
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
731
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
732
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
733
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
734
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
735
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
736
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
738
737
|
},
|
|
739
738
|
peerDependenciesMeta: {
|
|
740
739
|
"@deepseek-ai/dsh-web-search-deepseek": { "optional": true },
|
|
@@ -746,53 +745,49 @@ var package_default = {
|
|
|
746
745
|
"@deepseek-ai/dsh-typert-protocol": { "optional": true }
|
|
747
746
|
},
|
|
748
747
|
dependencies: {
|
|
749
|
-
"@earendil-works/pi-ai": "
|
|
748
|
+
"@earendil-works/pi-ai": "0.87.1",
|
|
750
749
|
"undici": "6.28.1",
|
|
751
|
-
"zod": "4.
|
|
750
|
+
"zod": "4.6.5"
|
|
752
751
|
},
|
|
753
752
|
devDependencies: {
|
|
754
|
-
"@deepseek-ai/cordis": "4.0.
|
|
755
|
-
"@deepseek-ai/
|
|
756
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
757
|
-
"@deepseek-ai/dsh-
|
|
758
|
-
"@deepseek-ai/dsh-api-
|
|
759
|
-
"@deepseek-ai/dsh-
|
|
760
|
-
"@deepseek-ai/dsh-
|
|
761
|
-
"@deepseek-ai/dsh-
|
|
762
|
-
"@deepseek-ai/dsh-
|
|
763
|
-
"@deepseek-ai/dsh-client-
|
|
764
|
-
"@deepseek-ai/dsh-client-ui-
|
|
765
|
-
"@deepseek-ai/dsh-client-ui-
|
|
766
|
-
"@deepseek-ai/dsh-
|
|
767
|
-
"@deepseek-ai/dsh-
|
|
768
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
769
|
-
"@deepseek-ai/dsh-
|
|
770
|
-
"@deepseek-ai/dsh-
|
|
771
|
-
"@deepseek-ai/dsh-
|
|
772
|
-
"@deepseek-ai/dsh-
|
|
773
|
-
"@deepseek-ai/dsh-
|
|
774
|
-
"@deepseek-ai/dsh-
|
|
775
|
-
"@deepseek-ai/dsh-
|
|
776
|
-
"@deepseek-ai/dsh-
|
|
777
|
-
"@deepseek-ai/dsh-
|
|
778
|
-
"@deepseek-ai/dsh-
|
|
779
|
-
"@deepseek-ai/dsh-
|
|
780
|
-
"@deepseek-ai/dsh-
|
|
781
|
-
"@deepseek-ai/dsh-
|
|
782
|
-
"@deepseek-ai/dsh-
|
|
783
|
-
"@deepseek-ai/dsh-
|
|
784
|
-
"@deepseek-ai/dsh-
|
|
785
|
-
"@deepseek-ai/dsh-
|
|
786
|
-
"@deepseek-ai/dsh-
|
|
787
|
-
"@deepseek-ai/dsh-
|
|
788
|
-
"@deepseek-ai/dsh-
|
|
789
|
-
"@deepseek-ai/dsh-
|
|
790
|
-
"@deepseek-ai/dsh-
|
|
791
|
-
"@deepseek-ai/
|
|
792
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.4",
|
|
793
|
-
"@deepseek-ai/dsh-web": "0.2.1-alpha.4",
|
|
794
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.2.1-alpha.4",
|
|
795
|
-
"@deepseek-ai/schemastery": "3.18.5-alpha.2",
|
|
753
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
754
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
755
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
756
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
|
|
757
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
758
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
759
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
760
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
761
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
762
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
763
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
764
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
765
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2",
|
|
766
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
767
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
768
|
+
"@deepseek-ai/dsh-config-editor": "0.2.0-rc.2",
|
|
769
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
770
|
+
"@deepseek-ai/dsh-fs": "0.2.0-rc.2",
|
|
771
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
|
|
772
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
773
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
774
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
775
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
776
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
777
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.0-rc.2",
|
|
778
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
779
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
780
|
+
"@deepseek-ai/dsh-storage": "0.2.0-rc.2",
|
|
781
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2",
|
|
782
|
+
"@deepseek-ai/dsh-storage-json": "0.2.0-rc.2",
|
|
783
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
784
|
+
"@deepseek-ai/dsh-tool-web": "0.2.0-rc.2",
|
|
785
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
786
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
787
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
|
|
788
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
789
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
790
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
796
791
|
"@types/node": "^22.0.0",
|
|
797
792
|
"@types/react": "~18.3.1",
|
|
798
793
|
"@types/react-dom": "18.3.7",
|
|
@@ -9918,10 +9913,10 @@ async function createDeepSeekSearchFallback(ctx, owner, canContinue) {
|
|
|
9918
9913
|
* @module dsh-github-copilot/compatibility
|
|
9919
9914
|
*/
|
|
9920
9915
|
const DSH_COMPATIBILITY = {
|
|
9921
|
-
release: "0.2.
|
|
9922
|
-
developmentRelease: "0.2.
|
|
9923
|
-
peerRange: "0.2.
|
|
9924
|
-
supportedReleases: ["0.2.
|
|
9916
|
+
release: "0.2.0-rc.2",
|
|
9917
|
+
developmentRelease: "0.2.0-rc.2",
|
|
9918
|
+
peerRange: "0.2.0-rc.2",
|
|
9919
|
+
supportedReleases: ["0.2.0-rc.2"],
|
|
9925
9920
|
requiredApis: [
|
|
9926
9921
|
"agentDefaultModel.currentSelection",
|
|
9927
9922
|
"authorization.describe",
|
|
@@ -13539,17 +13534,47 @@ function installAutoModelRouting(ctx, dependencies) {
|
|
|
13539
13534
|
}
|
|
13540
13535
|
//#endregion
|
|
13541
13536
|
//#region lib/types/image-input-admission.js
|
|
13537
|
+
const imageMime = /^image\/[a-z0-9!#$%&'*+.^_`|~-]+$/iu;
|
|
13538
|
+
function diagnosticMime(value) {
|
|
13539
|
+
return typeof value === "string" && value.length <= 128 && imageMime.test(value) ? value.toLowerCase() : "unavailable";
|
|
13540
|
+
}
|
|
13542
13541
|
/** Inspect native projected images, never infer wire formats from durable filenames. */
|
|
13543
13542
|
function imageInputFailure(model, messages) {
|
|
13544
|
-
for (const message of messages) {
|
|
13543
|
+
for (const [messageIndex, message] of messages.entries()) {
|
|
13545
13544
|
if (typeof message !== "object" || message === null || !("content" in message) || !Array.isArray(message.content)) continue;
|
|
13546
13545
|
const content = message.content;
|
|
13547
|
-
for (const block of content) {
|
|
13546
|
+
for (const [blockIndex, block] of content.entries()) {
|
|
13548
13547
|
if (typeof block !== "object" || block === null || !("type" in block) || block.type !== "image") continue;
|
|
13549
|
-
|
|
13550
|
-
if (!("mimeType" in block) || typeof block.mimeType !== "string" || !/^image\/[a-z0-9!#$%&'*+.^_`|~-]+$/iu.test(block.mimeType)) return "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE";
|
|
13548
|
+
const mimeType = "mimeType" in block ? block.mimeType : void 0;
|
|
13551
13549
|
const allowed = model.evidence.visionMediaTypes;
|
|
13552
|
-
|
|
13550
|
+
let code;
|
|
13551
|
+
if (!model.input.includes("image")) code = "COPILOT_IMAGE_INPUT_UNSUPPORTED";
|
|
13552
|
+
else if (typeof mimeType !== "string" || !imageMime.test(mimeType)) code = "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE";
|
|
13553
|
+
else if (allowed !== void 0 && !allowed.includes(mimeType.toLowerCase())) code = "COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED";
|
|
13554
|
+
else continue;
|
|
13555
|
+
const role = "role" in message && typeof message.role === "string" && [
|
|
13556
|
+
"user",
|
|
13557
|
+
"assistant",
|
|
13558
|
+
"system",
|
|
13559
|
+
"tool",
|
|
13560
|
+
"toolResult"
|
|
13561
|
+
].includes(message.role) ? message.role : "unknown";
|
|
13562
|
+
const diagnostic = {
|
|
13563
|
+
model: model.id.length <= 200 && /^[a-z0-9][a-z0-9._:-]*$/iu.test(model.id) ? model.id : "unavailable",
|
|
13564
|
+
projectedMime: diagnosticMime(mimeType),
|
|
13565
|
+
allowedMimeTypes: allowed === void 0 ? null : allowed.slice(0, 8).map(diagnosticMime),
|
|
13566
|
+
allowedMimeTypeCount: allowed?.length ?? null,
|
|
13567
|
+
allowedMimeTypesTruncated: allowed !== void 0 && allowed.length > 8,
|
|
13568
|
+
messageIndex,
|
|
13569
|
+
blockIndex,
|
|
13570
|
+
role,
|
|
13571
|
+
pluginVersion: package_default.version
|
|
13572
|
+
};
|
|
13573
|
+
return {
|
|
13574
|
+
code,
|
|
13575
|
+
diagnostic,
|
|
13576
|
+
message: `${code}: Request blocked before selected-model dispatch. ${code === "COPILOT_IMAGE_INPUT_UNSUPPORTED" ? "The selected model does not admit image input." : code === "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE" ? "The native projected image MIME is missing or invalid; format compatibility cannot be verified." : "The native projected image MIME is outside the selected model's explicit account-advertised formats."} History images also count, even on a text-only continuation. Auto checks general image capability, not candidate-specific projected formats. For a subsequent turn, explicitly choose a model whose advertised formats accept this projection, or start a separate text-only Session without the old images. If MIME is unavailable, report this diagnostic; filenames do not establish projected format. No automatic retry or model switch was performed. Projected transcript positions are zero-based, not durable history IDs. ${JSON.stringify(diagnostic)}`
|
|
13577
|
+
};
|
|
13553
13578
|
}
|
|
13554
13579
|
}
|
|
13555
13580
|
}
|
|
@@ -14039,7 +14064,7 @@ var PreviewAdapter = class extends PiAiAdapter {
|
|
|
14039
14064
|
if (signal.aborted) throw abortFailure(signal);
|
|
14040
14065
|
const imageFailure = imageInputFailure(lease.descriptor, context.messages);
|
|
14041
14066
|
if (imageFailure !== void 0) {
|
|
14042
|
-
requestFailure = new LlmError(imageFailure, "INVALID_REQUEST");
|
|
14067
|
+
requestFailure = new LlmError(imageFailure.message, "INVALID_REQUEST");
|
|
14043
14068
|
throw requestFailure;
|
|
14044
14069
|
}
|
|
14045
14070
|
const calculated = calculateRequestBudget(lease.descriptor, nativeOptions?.maxTokens, policy);
|
|
@@ -14781,7 +14806,7 @@ var __rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
|
14781
14806
|
return path;
|
|
14782
14807
|
};
|
|
14783
14808
|
const REVIEWER = "@deepseek-ai/dsh-experimental-auto-review";
|
|
14784
|
-
const
|
|
14809
|
+
const CORE_VERSION = "0.2.0-rc.2";
|
|
14785
14810
|
function record(value) {
|
|
14786
14811
|
return value !== null && typeof value === "object";
|
|
14787
14812
|
}
|
|
@@ -14797,7 +14822,7 @@ async function isNativeReviewerContext(caller) {
|
|
|
14797
14822
|
const packages = caller.get("pluginPackages");
|
|
14798
14823
|
if (base === void 0 || packages === void 0) return false;
|
|
14799
14824
|
const owner = packages.packageOf(REVIEWER, base);
|
|
14800
|
-
if (owner?.name !== REVIEWER || owner.version
|
|
14825
|
+
if (owner?.name !== REVIEWER || owner.version !== CORE_VERSION) return false;
|
|
14801
14826
|
if (packages.packageOf(REVIEWER, import.meta.url)?.manifestPath !== owner.manifestPath) return false;
|
|
14802
14827
|
const module = await import(__rewriteRelativeImportExtension(REVIEWER));
|
|
14803
14828
|
return record(module) && typeof module.apply === "function" && module.apply === fiber.runtime.callback && fiber.uid !== null && entry.fiber === fiber && entry.options.name === REVIEWER;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { Context } from '@deepseek-ai/cordis';
|
|
8
8
|
export declare const DSH_COMPATIBILITY: {
|
|
9
|
-
readonly release: "0.2.
|
|
10
|
-
readonly developmentRelease: "0.2.
|
|
11
|
-
readonly peerRange: "0.2.
|
|
12
|
-
readonly supportedReleases: readonly ["0.2.
|
|
9
|
+
readonly release: "0.2.0-rc.2";
|
|
10
|
+
readonly developmentRelease: "0.2.0-rc.2";
|
|
11
|
+
readonly peerRange: "0.2.0-rc.2";
|
|
12
|
+
readonly supportedReleases: readonly ["0.2.0-rc.2"];
|
|
13
13
|
readonly requiredApis: readonly ["agentDefaultModel.currentSelection", "authorization.describe", "authorization.begin", "authorization.cancel", "credentials.describeRecord", "credentials.readRecord", "credentials.listRecords", "credentials.modifyRecord", "credentials.deleteRecord", "settings.describe", "settings.mutate", "web.registerSearchProvider", "systemPrompt.section", "context.on", "context.effect", "context.plugin"];
|
|
14
14
|
};
|
|
15
15
|
/** Assert every required Core service shape before registering any effects. */
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { AccountModelDescriptor } from './account-model-catalog.ts';
|
|
2
|
-
export type
|
|
2
|
+
export type ImageInputFailureCode = 'COPILOT_IMAGE_INPUT_UNSUPPORTED' | 'COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE' | 'COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED';
|
|
3
|
+
export interface ImageInputFailure {
|
|
4
|
+
readonly code: ImageInputFailureCode;
|
|
5
|
+
readonly message: string;
|
|
6
|
+
readonly diagnostic: {
|
|
7
|
+
readonly model: string;
|
|
8
|
+
readonly projectedMime: string;
|
|
9
|
+
readonly allowedMimeTypes: readonly string[] | null;
|
|
10
|
+
readonly allowedMimeTypeCount: number | null;
|
|
11
|
+
readonly allowedMimeTypesTruncated: boolean;
|
|
12
|
+
readonly messageIndex: number;
|
|
13
|
+
readonly blockIndex: number;
|
|
14
|
+
readonly role: string;
|
|
15
|
+
readonly pluginVersion: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
3
18
|
/** Inspect native projected images, never infer wire formats from durable filenames. */
|
|
4
19
|
export declare function imageInputFailure(model: AccountModelDescriptor, messages: readonly unknown[]): ImageInputFailure | undefined;
|
|
5
20
|
//# sourceMappingURL=image-input-admission.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** Plugin-owned, Step-scoped provenance; never a model route or durable message. */
|
|
2
|
+
export declare const ASSISTANT_ORIGIN_KEY = "github-copilot-assistant-origin";
|
|
3
|
+
type Dispose = () => void;
|
|
4
|
+
export interface AssistantOrigin {
|
|
5
|
+
readonly seq: number;
|
|
6
|
+
readonly provider: string;
|
|
7
|
+
readonly model: string;
|
|
8
|
+
}
|
|
9
|
+
interface OriginState {
|
|
10
|
+
readonly turn: number;
|
|
11
|
+
readonly step: number;
|
|
12
|
+
readonly origin: AssistantOrigin | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface OriginMatch {
|
|
15
|
+
readonly event: unknown;
|
|
16
|
+
}
|
|
17
|
+
interface OriginContext {
|
|
18
|
+
readonly state?: OriginState | undefined;
|
|
19
|
+
readonly matches: readonly OriginMatch[];
|
|
20
|
+
}
|
|
21
|
+
interface OriginLocationData {
|
|
22
|
+
readonly kind: 'step';
|
|
23
|
+
readonly turn: number;
|
|
24
|
+
readonly step: number;
|
|
25
|
+
readonly key: typeof ASSISTANT_ORIGIN_KEY;
|
|
26
|
+
readonly value: AssistantOrigin;
|
|
27
|
+
}
|
|
28
|
+
/** Targetless Definition: registration rebuilds existing bindings, including cold history. */
|
|
29
|
+
export declare const assistantOriginDefinition: {
|
|
30
|
+
kind: string;
|
|
31
|
+
match(event: unknown): {
|
|
32
|
+
id: string;
|
|
33
|
+
role: "start" | "update";
|
|
34
|
+
} | null;
|
|
35
|
+
start(_context: OriginContext, match: OriginMatch): OriginState;
|
|
36
|
+
update(context: OriginContext & {
|
|
37
|
+
readonly state: OriginState;
|
|
38
|
+
}, match: OriginMatch): OriginState;
|
|
39
|
+
buildLocationData(context: OriginContext, scope: string, previous: OriginLocationData | null): OriginLocationData | null;
|
|
40
|
+
};
|
|
41
|
+
/** Shallow UI-only projection. Unchanged input retains its exact props identity. */
|
|
42
|
+
export declare function projectReasoningPresentation<Props extends object>(props: Props, origin: unknown): Props;
|
|
43
|
+
export interface ReasoningPresentationCapabilities {
|
|
44
|
+
readonly slots: unknown;
|
|
45
|
+
readonly uiConversation: unknown;
|
|
46
|
+
/** Receives stable codes only, never message text, model payloads or error bodies. */
|
|
47
|
+
readonly diagnostic: (code: string) => void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Optional Client enhancement. The caller owns the returned disposer in its
|
|
51
|
+
* dependency-scoped effect; missing older-Core seams leave native UI alone.
|
|
52
|
+
*/
|
|
53
|
+
export declare function installReasoningPresentation(capabilities: ReasoningPresentationCapabilities): Dispose;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=reasoning-presentation.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.2-alpha.
|
|
4
|
+
"version": "0.4.2-alpha.17",
|
|
5
5
|
"releaseNotes": "CHANGELOG.md",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"docs/official-first-016-alpha2.md",
|
|
64
64
|
"docs/official-first-020-rc1.md",
|
|
65
65
|
"docs/official-first-020-rc2.md",
|
|
66
|
-
"docs/official-first-021-alpha4.md",
|
|
67
66
|
"docs/web-lifecycle-rc2.md",
|
|
68
67
|
"docs/copilot-compaction.md",
|
|
69
68
|
"docs/manual-compaction-recovery.md",
|
|
@@ -103,31 +102,31 @@
|
|
|
103
102
|
"license": "MIT",
|
|
104
103
|
"engines": {
|
|
105
104
|
"node": ">=22.19.0",
|
|
106
|
-
"dsh": "0.2.
|
|
105
|
+
"dsh": "0.2.0-rc.2"
|
|
107
106
|
},
|
|
108
107
|
"peerDependencies": {
|
|
109
|
-
"@deepseek-ai/cordis": "4.0.
|
|
110
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
111
|
-
"@deepseek-ai/dsh-agent-default-model": "0.2.
|
|
112
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.
|
|
113
|
-
"@deepseek-ai/dsh-authorization": "0.2.
|
|
114
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
115
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.
|
|
116
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
117
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
118
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
119
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.
|
|
120
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
121
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.
|
|
122
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
123
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.2.
|
|
124
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
125
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
126
|
-
"@deepseek-ai/dsh-settings": "0.2.
|
|
127
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
128
|
-
"@deepseek-ai/dsh-web": "0.2.
|
|
129
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.2.
|
|
130
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
108
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
109
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
110
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
111
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
129
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
131
130
|
},
|
|
132
131
|
"peerDependenciesMeta": {
|
|
133
132
|
"@deepseek-ai/dsh-web-search-deepseek": {
|
|
@@ -153,53 +152,49 @@
|
|
|
153
152
|
}
|
|
154
153
|
},
|
|
155
154
|
"dependencies": {
|
|
156
|
-
"@earendil-works/pi-ai": "
|
|
155
|
+
"@earendil-works/pi-ai": "0.87.1",
|
|
157
156
|
"undici": "6.28.1",
|
|
158
|
-
"zod": "4.
|
|
157
|
+
"zod": "4.6.5"
|
|
159
158
|
},
|
|
160
159
|
"devDependencies": {
|
|
161
|
-
"@deepseek-ai/cordis": "4.0.
|
|
162
|
-
"@deepseek-ai/
|
|
163
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
164
|
-
"@deepseek-ai/dsh-
|
|
165
|
-
"@deepseek-ai/dsh-api-
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
"@deepseek-ai/dsh-
|
|
168
|
-
"@deepseek-ai/dsh-
|
|
169
|
-
"@deepseek-ai/dsh-
|
|
170
|
-
"@deepseek-ai/dsh-client-
|
|
171
|
-
"@deepseek-ai/dsh-client-ui-
|
|
172
|
-
"@deepseek-ai/dsh-client-ui-
|
|
173
|
-
"@deepseek-ai/dsh-
|
|
174
|
-
"@deepseek-ai/dsh-
|
|
175
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
176
|
-
"@deepseek-ai/dsh-
|
|
177
|
-
"@deepseek-ai/dsh-
|
|
178
|
-
"@deepseek-ai/dsh-
|
|
179
|
-
"@deepseek-ai/dsh-
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-
|
|
182
|
-
"@deepseek-ai/dsh-
|
|
183
|
-
"@deepseek-ai/dsh-
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/dsh-
|
|
186
|
-
"@deepseek-ai/dsh-
|
|
187
|
-
"@deepseek-ai/dsh-
|
|
188
|
-
"@deepseek-ai/dsh-
|
|
189
|
-
"@deepseek-ai/dsh-
|
|
190
|
-
"@deepseek-ai/dsh-
|
|
191
|
-
"@deepseek-ai/dsh-
|
|
192
|
-
"@deepseek-ai/dsh-
|
|
193
|
-
"@deepseek-ai/dsh-
|
|
194
|
-
"@deepseek-ai/dsh-
|
|
195
|
-
"@deepseek-ai/dsh-
|
|
196
|
-
"@deepseek-ai/dsh-
|
|
197
|
-
"@deepseek-ai/dsh-
|
|
198
|
-
"@deepseek-ai/
|
|
199
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.4",
|
|
200
|
-
"@deepseek-ai/dsh-web": "0.2.1-alpha.4",
|
|
201
|
-
"@deepseek-ai/dsh-web-search-deepseek": "0.2.1-alpha.4",
|
|
202
|
-
"@deepseek-ai/schemastery": "3.18.5-alpha.2",
|
|
160
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
161
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
162
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
163
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
|
|
164
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
165
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
166
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
167
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
168
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
169
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
170
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
171
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
172
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2",
|
|
173
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
174
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
175
|
+
"@deepseek-ai/dsh-config-editor": "0.2.0-rc.2",
|
|
176
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
177
|
+
"@deepseek-ai/dsh-fs": "0.2.0-rc.2",
|
|
178
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
|
|
179
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
180
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
181
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
182
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
183
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
184
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.0-rc.2",
|
|
185
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
186
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
187
|
+
"@deepseek-ai/dsh-storage": "0.2.0-rc.2",
|
|
188
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2",
|
|
189
|
+
"@deepseek-ai/dsh-storage-json": "0.2.0-rc.2",
|
|
190
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
191
|
+
"@deepseek-ai/dsh-tool-web": "0.2.0-rc.2",
|
|
192
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
193
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
194
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
|
|
195
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
196
|
+
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
197
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
203
198
|
"@types/node": "^22.0.0",
|
|
204
199
|
"@types/react": "~18.3.1",
|
|
205
200
|
"@types/react-dom": "18.3.7",
|