dsh-github-copilot 0.4.2-alpha.16 → 0.4.2-alpha.18.dsh.0.2.0.rc.2

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/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.16",
585
+ version: "0.4.2-alpha.18.dsh.0.2.0.rc.2",
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.1-alpha.4"
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.5-alpha.2",
717
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
718
- "@deepseek-ai/dsh-agent-default-model": "0.2.1-alpha.4",
719
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.4",
720
- "@deepseek-ai/dsh-authorization": "0.2.1-alpha.4",
721
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.4",
722
- "@deepseek-ai/dsh-client-ui-settings-models": "0.2.1-alpha.4",
723
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.4",
724
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.4",
725
- "@deepseek-ai/dsh-compaction": "0.2.1-alpha.4",
726
- "@deepseek-ai/dsh-compaction-basic": "0.2.1-alpha.4",
727
- "@deepseek-ai/dsh-credentials": "0.2.1-alpha.4",
728
- "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.4",
729
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4",
730
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.4",
731
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.4",
732
- "@deepseek-ai/dsh-session": "0.2.1-alpha.4",
733
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.4",
734
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.4",
735
- "@deepseek-ai/dsh-web": "0.2.1-alpha.4",
736
- "@deepseek-ai/dsh-web-search-deepseek": "0.2.1-alpha.4",
737
- "@deepseek-ai/schemastery": "3.18.5-alpha.2"
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": "1.1.0",
748
+ "@earendil-works/pi-ai": "0.87.1",
750
749
  "undici": "6.28.1",
751
- "zod": "4.4.3"
750
+ "zod": "4.6.5"
752
751
  },
753
752
  devDependencies: {
754
- "@deepseek-ai/cordis": "4.0.5-alpha.2",
755
- "@deepseek-ai/cordis-plugin-loader": "1.0.6-alpha.2",
756
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
757
- "@deepseek-ai/dsh-agent-default-model": "0.2.1-alpha.4",
758
- "@deepseek-ai/dsh-api-gateway": "0.2.1-alpha.4",
759
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.4",
760
- "@deepseek-ai/dsh-app-boot": "0.2.1-alpha.4",
761
- "@deepseek-ai/dsh-attachment": "0.2.1-alpha.4",
762
- "@deepseek-ai/dsh-authorization": "0.2.1-alpha.4",
763
- "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.4",
764
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.4",
765
- "@deepseek-ai/dsh-client-ui-settings-models": "0.2.1-alpha.4",
766
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.4",
767
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.4",
768
- "@deepseek-ai/dsh-compaction": "0.2.1-alpha.4",
769
- "@deepseek-ai/dsh-compaction-basic": "0.2.1-alpha.4",
770
- "@deepseek-ai/dsh-config-editor": "0.2.1-alpha.4",
771
- "@deepseek-ai/dsh-credentials": "0.2.1-alpha.4",
772
- "@deepseek-ai/dsh-experimental-auto-review": "0.2.1-alpha.4",
773
- "@deepseek-ai/dsh-fs": "0.2.1-alpha.4",
774
- "@deepseek-ai/dsh-jobs": "0.2.1-alpha.4",
775
- "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.4",
776
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4",
777
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.4",
778
- "@deepseek-ai/dsh-permission-presets": "0.2.1-alpha.4",
779
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.4",
780
- "@deepseek-ai/dsh-session": "0.2.1-alpha.4",
781
- "@deepseek-ai/dsh-session-format-catalog": "0.2.1-alpha.4",
782
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.4",
783
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.4",
784
- "@deepseek-ai/dsh-storage": "0.2.1-alpha.4",
785
- "@deepseek-ai/dsh-storage-domain": "0.2.1-alpha.4",
786
- "@deepseek-ai/dsh-storage-json": "0.2.1-alpha.4",
787
- "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.4",
788
- "@deepseek-ai/dsh-tool-web": "0.2.1-alpha.4",
789
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.4",
790
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.4",
791
- "@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.4",
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.1-alpha.4",
9922
- developmentRelease: "0.2.1-alpha.4",
9923
- peerRange: "0.2.1-alpha.4",
9924
- supportedReleases: ["0.2.1-alpha.4"],
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,53 @@ 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
- function imageInputFailure(model, messages) {
13544
- for (const message of messages) {
13542
+ function imageInputFailure(model, messages, observe) {
13543
+ let mismatchReported = false;
13544
+ for (const [messageIndex, message] of messages.entries()) {
13545
13545
  if (typeof message !== "object" || message === null || !("content" in message) || !Array.isArray(message.content)) continue;
13546
13546
  const content = message.content;
13547
- for (const block of content) {
13547
+ for (const [blockIndex, block] of content.entries()) {
13548
13548
  if (typeof block !== "object" || block === null || !("type" in block) || block.type !== "image") continue;
13549
- if (!model.input.includes("image")) return "COPILOT_IMAGE_INPUT_UNSUPPORTED";
13550
- if (!("mimeType" in block) || typeof block.mimeType !== "string" || !/^image\/[a-z0-9!#$%&'*+.^_`|~-]+$/iu.test(block.mimeType)) return "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE";
13549
+ const mimeType = "mimeType" in block ? block.mimeType : void 0;
13551
13550
  const allowed = model.evidence.visionMediaTypes;
13552
- if (allowed !== void 0 && !allowed.includes(block.mimeType.toLowerCase())) return "COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED";
13551
+ let code;
13552
+ if (!model.input.includes("image")) code = "COPILOT_IMAGE_INPUT_UNSUPPORTED";
13553
+ else if (typeof mimeType !== "string" || !imageMime.test(mimeType)) code = "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE";
13554
+ else {
13555
+ if (!mismatchReported && allowed !== void 0 && !allowed.includes(mimeType.toLowerCase())) {
13556
+ mismatchReported = true;
13557
+ observe?.("COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED");
13558
+ }
13559
+ continue;
13560
+ }
13561
+ const role = "role" in message && typeof message.role === "string" && [
13562
+ "user",
13563
+ "assistant",
13564
+ "system",
13565
+ "tool",
13566
+ "toolResult"
13567
+ ].includes(message.role) ? message.role : "unknown";
13568
+ const diagnostic = {
13569
+ model: model.id.length <= 200 && /^[a-z0-9][a-z0-9._:-]*$/iu.test(model.id) ? model.id : "unavailable",
13570
+ projectedMime: diagnosticMime(mimeType),
13571
+ allowedMimeTypes: allowed === void 0 ? null : allowed.slice(0, 8).map(diagnosticMime),
13572
+ allowedMimeTypeCount: allowed?.length ?? null,
13573
+ allowedMimeTypesTruncated: allowed !== void 0 && allowed.length > 8,
13574
+ messageIndex,
13575
+ blockIndex,
13576
+ role,
13577
+ pluginVersion: package_default.version
13578
+ };
13579
+ return {
13580
+ code,
13581
+ diagnostic,
13582
+ message: `${code}: Request blocked before selected-model dispatch. ${code === "COPILOT_IMAGE_INPUT_UNSUPPORTED" ? "The selected model does not admit image input." : "The native projected image MIME is missing or invalid; format compatibility cannot be verified."} 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)}`
13583
+ };
13553
13584
  }
13554
13585
  }
13555
13586
  }
@@ -13861,7 +13892,8 @@ var PreviewAdapter = class extends PiAiAdapter {
13861
13892
  replayRecovery;
13862
13893
  requestCheckpoint;
13863
13894
  captureRequest;
13864
- constructor(lifetime, optionsFor, discoverSnapshot, refreshRejected, requestBudgetSettings, accountModelSettings, classifierReasoningOff = false, replayRecovery, requestCheckpoint, captureRequest = () => void 0) {
13895
+ imageDiagnostic;
13896
+ constructor(lifetime, optionsFor, discoverSnapshot, refreshRejected, requestBudgetSettings, accountModelSettings, classifierReasoningOff = false, replayRecovery, requestCheckpoint, captureRequest = () => void 0, imageDiagnostic) {
13865
13897
  super(optionsFor());
13866
13898
  this.lifetime = lifetime;
13867
13899
  this.optionsFor = optionsFor;
@@ -13873,6 +13905,7 @@ var PreviewAdapter = class extends PiAiAdapter {
13873
13905
  this.replayRecovery = replayRecovery;
13874
13906
  this.requestCheckpoint = requestCheckpoint;
13875
13907
  this.captureRequest = captureRequest;
13908
+ this.imageDiagnostic = imageDiagnostic;
13876
13909
  }
13877
13910
  async listModels(provider) {
13878
13911
  owned(provider);
@@ -14037,9 +14070,9 @@ var PreviewAdapter = class extends PiAiAdapter {
14037
14070
  const inspectRequest = (_model, context, nativeOptions) => {
14038
14071
  owner.requestCheckpoint?.();
14039
14072
  if (signal.aborted) throw abortFailure(signal);
14040
- const imageFailure = imageInputFailure(lease.descriptor, context.messages);
14073
+ const imageFailure = imageInputFailure(lease.descriptor, context.messages, owner.imageDiagnostic);
14041
14074
  if (imageFailure !== void 0) {
14042
- requestFailure = new LlmError(imageFailure, "INVALID_REQUEST");
14075
+ requestFailure = new LlmError(imageFailure.message, "INVALID_REQUEST");
14043
14076
  throw requestFailure;
14044
14077
  }
14045
14078
  const calculated = calculateRequestBudget(lease.descriptor, nativeOptions?.maxTokens, policy);
@@ -14418,7 +14451,7 @@ function createAccountRuntime(ctx, config, binding, exclusionTurns, replayRecove
14418
14451
  };
14419
14452
  };
14420
14453
  return {
14421
- adapter: new PreviewAdapter(lifetime, optionsFor, discoverSnapshot, refreshRejected, budgetSettings, cacheSettings, false, replayRecovery, void 0, (signal) => ctx.get("githubCopilotSessionAccounts")?.recordRequest(signal)),
14454
+ adapter: new PreviewAdapter(lifetime, optionsFor, discoverSnapshot, refreshRejected, budgetSettings, cacheSettings, false, replayRecovery, void 0, (signal) => ctx.get("githubCopilotSessionAccounts")?.recordRequest(signal), (code) => ctx.logger.warn(code)),
14422
14455
  preview: {
14423
14456
  getView,
14424
14457
  refresh,
@@ -14520,7 +14553,7 @@ function createAccountRuntime(ctx, config, binding, exclusionTurns, replayRecove
14520
14553
  });
14521
14554
  const revision = lifetime.revision;
14522
14555
  const classifierOptionsFor = (lease, hooks) => optionsFor(lease, hooks, true);
14523
- const adapter = new PreviewAdapter(lifetime, classifierOptionsFor, discoverSnapshot, refreshRejected, budgetSettings, cacheSettings, true, void 0, checkpoint);
14556
+ const adapter = new PreviewAdapter(lifetime, classifierOptionsFor, discoverSnapshot, refreshRejected, budgetSettings, cacheSettings, true, void 0, checkpoint, void 0, (code) => ctx.logger.warn(code));
14524
14557
  try {
14525
14558
  const prepared = await adapter.prepareCall(GITHUB_COPILOT_PREVIEW_PROVIDER_ID, model.id, signal);
14526
14559
  checkpoint?.();
@@ -14781,7 +14814,7 @@ var __rewriteRelativeImportExtension = function(path, preserveJsx) {
14781
14814
  return path;
14782
14815
  };
14783
14816
  const REVIEWER = "@deepseek-ai/dsh-experimental-auto-review";
14784
- const CORE_VERSIONS = /* @__PURE__ */ new Set(["0.2.0-rc.2", "0.2.1-alpha.4"]);
14817
+ const CORE_VERSION = "0.2.0-rc.2";
14785
14818
  function record(value) {
14786
14819
  return value !== null && typeof value === "object";
14787
14820
  }
@@ -14797,7 +14830,7 @@ async function isNativeReviewerContext(caller) {
14797
14830
  const packages = caller.get("pluginPackages");
14798
14831
  if (base === void 0 || packages === void 0) return false;
14799
14832
  const owner = packages.packageOf(REVIEWER, base);
14800
- if (owner?.name !== REVIEWER || owner.version === void 0 || !CORE_VERSIONS.has(owner.version)) return false;
14833
+ if (owner?.name !== REVIEWER || owner.version !== CORE_VERSION) return false;
14801
14834
  if (packages.packageOf(REVIEWER, import.meta.url)?.manifestPath !== owner.manifestPath) return false;
14802
14835
  const module = await import(__rewriteRelativeImportExtension(REVIEWER));
14803
14836
  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.1-alpha.4";
10
- readonly developmentRelease: "0.2.1-alpha.4";
11
- readonly peerRange: "0.2.1-alpha.4";
12
- readonly supportedReleases: readonly ["0.2.1-alpha.4"];
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,21 @@
1
1
  import type { AccountModelDescriptor } from './account-model-catalog.ts';
2
- export type ImageInputFailure = 'COPILOT_IMAGE_INPUT_UNSUPPORTED' | 'COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE' | 'COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED';
2
+ export type ImageInputFailureCode = 'COPILOT_IMAGE_INPUT_UNSUPPORTED' | 'COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE';
3
+ export type ImageInputDiagnosticCode = 'COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED';
4
+ export interface ImageInputFailure {
5
+ readonly code: ImageInputFailureCode;
6
+ readonly message: string;
7
+ readonly diagnostic: {
8
+ readonly model: string;
9
+ readonly projectedMime: string;
10
+ readonly allowedMimeTypes: readonly string[] | null;
11
+ readonly allowedMimeTypeCount: number | null;
12
+ readonly allowedMimeTypesTruncated: boolean;
13
+ readonly messageIndex: number;
14
+ readonly blockIndex: number;
15
+ readonly role: string;
16
+ readonly pluginVersion: string;
17
+ };
18
+ }
3
19
  /** Inspect native projected images, never infer wire formats from durable filenames. */
4
- export declare function imageInputFailure(model: AccountModelDescriptor, messages: readonly unknown[]): ImageInputFailure | undefined;
20
+ export declare function imageInputFailure(model: AccountModelDescriptor, messages: readonly unknown[], observe?: (code: ImageInputDiagnosticCode) => void): ImageInputFailure | undefined;
5
21
  //# 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.16",
4
+ "version": "0.4.2-alpha.18.dsh.0.2.0.rc.2",
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.1-alpha.4"
105
+ "dsh": "0.2.0-rc.2"
107
106
  },
108
107
  "peerDependencies": {
109
- "@deepseek-ai/cordis": "4.0.5-alpha.2",
110
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
111
- "@deepseek-ai/dsh-agent-default-model": "0.2.1-alpha.4",
112
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.4",
113
- "@deepseek-ai/dsh-authorization": "0.2.1-alpha.4",
114
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.4",
115
- "@deepseek-ai/dsh-client-ui-settings-models": "0.2.1-alpha.4",
116
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.4",
117
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.4",
118
- "@deepseek-ai/dsh-compaction": "0.2.1-alpha.4",
119
- "@deepseek-ai/dsh-compaction-basic": "0.2.1-alpha.4",
120
- "@deepseek-ai/dsh-credentials": "0.2.1-alpha.4",
121
- "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.4",
122
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4",
123
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.4",
124
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.4",
125
- "@deepseek-ai/dsh-session": "0.2.1-alpha.4",
126
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.4",
127
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.4",
128
- "@deepseek-ai/dsh-web": "0.2.1-alpha.4",
129
- "@deepseek-ai/dsh-web-search-deepseek": "0.2.1-alpha.4",
130
- "@deepseek-ai/schemastery": "3.18.5-alpha.2"
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": "1.1.0",
155
+ "@earendil-works/pi-ai": "0.87.1",
157
156
  "undici": "6.28.1",
158
- "zod": "4.4.3"
157
+ "zod": "4.6.5"
159
158
  },
160
159
  "devDependencies": {
161
- "@deepseek-ai/cordis": "4.0.5-alpha.2",
162
- "@deepseek-ai/cordis-plugin-loader": "1.0.6-alpha.2",
163
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
164
- "@deepseek-ai/dsh-agent-default-model": "0.2.1-alpha.4",
165
- "@deepseek-ai/dsh-api-gateway": "0.2.1-alpha.4",
166
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.4",
167
- "@deepseek-ai/dsh-app-boot": "0.2.1-alpha.4",
168
- "@deepseek-ai/dsh-attachment": "0.2.1-alpha.4",
169
- "@deepseek-ai/dsh-authorization": "0.2.1-alpha.4",
170
- "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.4",
171
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.4",
172
- "@deepseek-ai/dsh-client-ui-settings-models": "0.2.1-alpha.4",
173
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.4",
174
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.4",
175
- "@deepseek-ai/dsh-compaction": "0.2.1-alpha.4",
176
- "@deepseek-ai/dsh-compaction-basic": "0.2.1-alpha.4",
177
- "@deepseek-ai/dsh-config-editor": "0.2.1-alpha.4",
178
- "@deepseek-ai/dsh-credentials": "0.2.1-alpha.4",
179
- "@deepseek-ai/dsh-experimental-auto-review": "0.2.1-alpha.4",
180
- "@deepseek-ai/dsh-fs": "0.2.1-alpha.4",
181
- "@deepseek-ai/dsh-jobs": "0.2.1-alpha.4",
182
- "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.4",
183
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4",
184
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.4",
185
- "@deepseek-ai/dsh-permission-presets": "0.2.1-alpha.4",
186
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.4",
187
- "@deepseek-ai/dsh-session": "0.2.1-alpha.4",
188
- "@deepseek-ai/dsh-session-format-catalog": "0.2.1-alpha.4",
189
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.4",
190
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.4",
191
- "@deepseek-ai/dsh-storage": "0.2.1-alpha.4",
192
- "@deepseek-ai/dsh-storage-domain": "0.2.1-alpha.4",
193
- "@deepseek-ai/dsh-storage-json": "0.2.1-alpha.4",
194
- "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.4",
195
- "@deepseek-ai/dsh-tool-web": "0.2.1-alpha.4",
196
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.4",
197
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.4",
198
- "@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.4",
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",