@chatcode/chatcode-cli 3.0.0 → 3.0.2-rc.1
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/{command-errors-BCYv4XyX.js → command-errors-CIYn1nnW.js} +12 -12
- package/lib/{command-trees-CwZW1MG9.js → command-trees-8o99Bws7.js} +2 -2
- package/lib/{component-identity-D46gUHyM.js → component-identity-CnmIKHEF.js} +3 -3
- package/lib/dsh-ecosystem-spec/protocols/profile-definitions.d.ts +13 -0
- package/lib/dsh-ecosystem-spec/protocols/profile-definitions.js +59 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-channel-http.d.ts +15 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-channel-http.js +32 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-channel.d.ts +59 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-channel.js +166 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-contributions.d.ts +42 -0
- package/lib/dsh-ecosystem-spec/protocols/tui-contributions.js +143 -0
- package/lib/dsh-ecosystem-spec/registry/README.md +14 -0
- package/lib/dsh-ecosystem-spec/registry/contracts/decision-events-v1alpha1.json +13 -0
- package/lib/dsh-ecosystem-spec/registry/contracts/scene-v1alpha1.json +13 -0
- package/lib/dsh-ecosystem-spec/registry/contracts/settings-section-v1alpha1.json +13 -0
- package/lib/dsh-ecosystem-spec/registry/contracts/tui-channel-v1alpha1.json +30 -0
- package/lib/dsh-ecosystem-spec/registry/contracts/workspace-provider-v1alpha1.json +6 -0
- package/lib/dsh-ecosystem-spec/registry/host-descriptor.tui.example.json +56 -0
- package/lib/dsh-ecosystem-spec/registry/permissions-0.1.json +13 -0
- package/lib/dsh-ecosystem-spec/registry/registry-0.15.json +149 -0
- package/lib/dsh-ecosystem-spec/schemas/conformance-claim.schema.json +15 -0
- package/lib/dsh-ecosystem-spec/schemas/effect-ledger-record.schema.json +16 -0
- package/lib/dsh-ecosystem-spec/schemas/host-descriptor.schema.json +26 -0
- package/lib/{extension-events-CBuXbK4l.js → extension-events-DciGPKJa.js} +20 -20
- package/lib/{host-access-BtgVRb0u.js → host-access-CmD27uhQ.js} +1 -1
- package/lib/{keymap-AJ-DGy9P.js → keymap-CFChEJ2W.js} +2 -2
- package/lib/{plugin-ByRs5LzO.js → plugin-jvd9PCVt.js} +333 -333
- package/lib/{scenes-C8DOzNbk.js → scenes-ai_8sHDs.js} +3 -3
- package/lib/{settings-sections-ByzvgqAp.js → settings-sections-QQ1-2lhL.js} +3 -3
- package/lib/{themes-By_OcIPQ.js → themes-DTzG_9I_.js} +12 -12
- package/lib/tui-compat-command-trees.js +1 -1
- package/lib/tui-compat-extensions.js +3 -3
- package/lib/tui-compat-plugin-host.js +5 -5
- package/lib/tui-compat-scenes.js +1 -1
- package/lib/tui-compat-settings-sections.js +1 -1
- package/lib/tui-compat-working-activity.js +1 -1
- package/lib/tui-compat-workspaces.js +1 -1
- package/lib/tui-compat.js +5 -5
- package/lib/{tuiDisplayPrefs-B-NDEV0N.js → tuiDisplayPrefs-BCHRRcfe.js} +1 -1
- package/lib/{workspaces-ZRM_mslc.js → workspaces-CznCgVHv.js} +2 -2
- package/package.json +35 -29
- package/runtime/manifest.json +2 -6
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-skill/lib/types/index.d.ts +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +7 -1
- package/scripts/register-embedded-runtime.mjs +27 -21
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/README.md +0 -9
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/bin/system.node +0 -0
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/package.json +0 -31
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/prebuilds.json +0 -6
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/README.md +0 -9
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/package.json +0 -31
- package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/prebuilds.json +0 -6
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/README.md +0 -11
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/package.json +0 -31
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/prebuilds.json +0 -24
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/README.md +0 -11
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/package.json +0 -31
- package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/prebuilds.json +0 -24
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-
|
|
2
|
-
import { n as componentIdentityOf } from "./component-identity-
|
|
1
|
+
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-CmD27uhQ.js";
|
|
2
|
+
import { n as componentIdentityOf } from "./component-identity-CnmIKHEF.js";
|
|
3
3
|
import { Service } from "@deepseek-ai/cordis";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/scenes.js
|
|
5
5
|
/** Provider-neutral full-screen scene registry for terminal front doors. */
|
|
6
6
|
const name = "dsh-tui-scenes";
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-
|
|
1
|
+
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-CmD27uhQ.js";
|
|
2
2
|
import { Service } from "@deepseek-ai/cordis";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/credentialRefGuard.js
|
|
4
4
|
/**
|
|
5
5
|
* Credential-ref reservation guard for the plugin settings-section seam.
|
|
6
6
|
*
|
|
@@ -49,7 +49,7 @@ function vetSectionSecretRefs(section) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
52
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settings-sections.js
|
|
53
53
|
/**
|
|
54
54
|
* Plugin settings-section extension seam for terminal front doors.
|
|
55
55
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as parseCombo, i as comboMatchesStrict, r as canonicalCombo, s as fixedReservedCombos, u as reservedActionCombos } from "./keymap-
|
|
2
|
-
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, r as assertCallerContext, s as requirePluginCaller, t as activationContext } from "./host-access-
|
|
3
|
-
import { n as componentIdentityOf } from "./component-identity-
|
|
4
|
-
import { S as DATA_DIR, f as cleanRenderText, p as cleanScalarText } from "./extension-events-
|
|
1
|
+
import { c as parseCombo, i as comboMatchesStrict, r as canonicalCombo, s as fixedReservedCombos, u as reservedActionCombos } from "./keymap-CFChEJ2W.js";
|
|
2
|
+
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, r as assertCallerContext, s as requirePluginCaller, t as activationContext } from "./host-access-CmD27uhQ.js";
|
|
3
|
+
import { n as componentIdentityOf } from "./component-identity-CnmIKHEF.js";
|
|
4
|
+
import { S as DATA_DIR, f as cleanRenderText, p as cleanScalarText } from "./extension-events-DciGPKJa.js";
|
|
5
5
|
import { readFileSync, readdirSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { KNOWN_SESSION_EVENT_TYPES } from "@deepseek-ai/dsh-session";
|
|
8
8
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/dialogs.js
|
|
10
10
|
/**
|
|
11
11
|
* Managed plugin dialogs — the pi `ctx.ui.select/confirm/input` seam for
|
|
12
12
|
* ChatCode CLI TUI. Plugins hand the HOST a declarative request; the TUI renders the
|
|
@@ -279,7 +279,7 @@ function getHostDialogStore(runtime) {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
//#endregion
|
|
282
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
282
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/status.js
|
|
283
283
|
/**
|
|
284
284
|
* Keyed status-line contributions — pi's `ctx.ui.setStatus(key, text)`.
|
|
285
285
|
* Each plugin owns a key; setting text shows it, setting undefined clears
|
|
@@ -503,7 +503,7 @@ function getHostStatusStore(runtime) {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
//#endregion
|
|
506
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
506
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/shortcuts.js
|
|
507
507
|
/**
|
|
508
508
|
* Plugin keyboard shortcuts — pi's `pi.registerShortcut`. A plugin binds a
|
|
509
509
|
* combo (`ctrl+shift+p`, `alt+k`, …) to a handler; the chat screen matches
|
|
@@ -704,7 +704,7 @@ function getHostShortcuts(runtime) {
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
//#endregion
|
|
707
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
707
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/renderers.js
|
|
708
708
|
/**
|
|
709
709
|
* Custom session-entry renderers — pi's `pi.registerMessageRenderer`. A
|
|
710
710
|
* plugin that appends its own log-only session events (`session.append(
|
|
@@ -876,7 +876,7 @@ function getHostRenderers(runtime) {
|
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
//#endregion
|
|
879
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
879
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/toast.js
|
|
880
880
|
/**
|
|
881
881
|
* Plugin-facing transient notifications — a fire-and-forget toast shown on
|
|
882
882
|
* the host's existing notification surface (the same toasts the channel
|
|
@@ -1011,7 +1011,7 @@ function getHostToastStore(runtime) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
//#endregion
|
|
1014
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1014
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/theme.js
|
|
1015
1015
|
/**
|
|
1016
1016
|
* dsh-tui color themes — ChatCode CLI terminal family.
|
|
1017
1017
|
*
|
|
@@ -1486,7 +1486,7 @@ function getActiveTheme() {
|
|
|
1486
1486
|
return getTheme(activeThemeName);
|
|
1487
1487
|
}
|
|
1488
1488
|
//#endregion
|
|
1489
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1489
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/customTheme.js
|
|
1490
1490
|
/**
|
|
1491
1491
|
* User-defined color themes for dsh-tui.
|
|
1492
1492
|
*
|
|
@@ -1716,7 +1716,7 @@ function indexCustomThemeNames() {
|
|
|
1716
1716
|
nameIndexed = true;
|
|
1717
1717
|
}
|
|
1718
1718
|
//#endregion
|
|
1719
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1719
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/themes.js
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Cordis-backed runtime theme contributions.
|
|
1722
1722
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as name, t as TuiCommandTreeRuntime } from "./command-trees-
|
|
1
|
+
import { r as name, t as TuiCommandTreeRuntime } from "./command-trees-8o99Bws7.js";
|
|
2
2
|
export { TuiCommandTreeRuntime, TuiCommandTreeRuntime as default, name };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as normalizeCancelDecision, c as installDecisionGuard, n as DECISION_TOTAL_TIMEOUT_MS, o as DECISION_EVENT_PERMISSIONS, t as DECISION_HANDLER_TIMEOUT_MS, x as readGrantStore } from "./extension-events-
|
|
2
|
-
import { A as TuiDialogRuntime, C as matchShortcut, D as getHostStatusStore, E as TuiStatusStore, O as DIALOG_DEFAULT_TIMEOUT_MS, T as TuiStatusRuntime, _ as TuiToastRuntime, j as TuiDialogStore, k as INPUT_CELLS, t as TuiThemeRuntime, w as parseShortcutCombo, x as TuiShortcutRuntime, y as TuiRendererRuntime } from "./themes-
|
|
1
|
+
import { a as normalizeCancelDecision, c as installDecisionGuard, n as DECISION_TOTAL_TIMEOUT_MS, o as DECISION_EVENT_PERMISSIONS, t as DECISION_HANDLER_TIMEOUT_MS, x as readGrantStore } from "./extension-events-DciGPKJa.js";
|
|
2
|
+
import { A as TuiDialogRuntime, C as matchShortcut, D as getHostStatusStore, E as TuiStatusStore, O as DIALOG_DEFAULT_TIMEOUT_MS, T as TuiStatusRuntime, _ as TuiToastRuntime, j as TuiDialogStore, k as INPUT_CELLS, t as TuiThemeRuntime, w as parseShortcutCombo, x as TuiShortcutRuntime, y as TuiRendererRuntime } from "./themes-DTzG_9I_.js";
|
|
3
3
|
import { appendFileSync, mkdirSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
6
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/extensions.js
|
|
7
7
|
/**
|
|
8
8
|
* The dsh-tui-extensions row: mounts every plugin-facing UI seam service in
|
|
9
9
|
* one cordis plugin (one profile row, one patch-surface entry — see issue
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-
|
|
2
|
-
import { c as requiresDecisionEvents, o as requireComponentIdentity, r as declaresCommand, s as requiresContract, t as bindComponentIdentity } from "./component-identity-
|
|
3
|
-
import { B as createAdmissionCatalog, F as verifyRegistry, I as DECISION_EVENTS_COORDINATE, J as parseManifest, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, P as verifyContractProfiles, R as TUI_EXTENSION_API_VERSION, Y as projectManifest, c as installDecisionGuard, l as registerDecisionHandler, n as DECISION_TOTAL_TIMEOUT_MS, o as DECISION_EVENT_PERMISSIONS, s as decisionHandlerMetadataOf, t as DECISION_HANDLER_TIMEOUT_MS, u as withDecisionRegistration, x as readGrantStore, z as TUI_EXTENSION_PERMISSION_NAMES } from "./extension-events-
|
|
4
|
-
import { A as validatePlugin, C as TuiPluginStorageRuntime, D as buildHostDescriptor, E as HOST_SUPPORTED_CONTRACTS, O as negotiate, S as STORAGE_MAX_KEYS, T as TuiEffectLedgerRuntime, b as STORAGE_KEY_MAX_LENGTH, c as OBSERVE_CALLBACK_QUEUE_LIMIT, d as OBSERVE_ID_MAX_CHARS, f as OBSERVE_IMAGE_BASE64_MAX_CHARS, g as TuiMessageObserverRuntime, h as OBSERVE_SUMMARY_CELLS, i as withCommandErrorMapping, k as createContractIndex, l as OBSERVE_CALLBACK_TIMEOUT_MS, m as OBSERVE_SCOPE_MAX_CHARS, n as hasCommandErrorCode, o as stampCommandOwner, p as OBSERVE_IMAGE_MAX_BYTES, r as mapCommandError, s as unstampCommandOwner, t as COMMAND_ERROR_CODES, u as OBSERVE_CONTENT_MAX_CHARS, x as STORAGE_MAX_BYTES, y as PluginStorageError } from "./command-errors-
|
|
1
|
+
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-CmD27uhQ.js";
|
|
2
|
+
import { c as requiresDecisionEvents, o as requireComponentIdentity, r as declaresCommand, s as requiresContract, t as bindComponentIdentity } from "./component-identity-CnmIKHEF.js";
|
|
3
|
+
import { B as createAdmissionCatalog, F as verifyRegistry, I as DECISION_EVENTS_COORDINATE, J as parseManifest, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, P as verifyContractProfiles, R as TUI_EXTENSION_API_VERSION, Y as projectManifest, c as installDecisionGuard, l as registerDecisionHandler, n as DECISION_TOTAL_TIMEOUT_MS, o as DECISION_EVENT_PERMISSIONS, s as decisionHandlerMetadataOf, t as DECISION_HANDLER_TIMEOUT_MS, u as withDecisionRegistration, x as readGrantStore, z as TUI_EXTENSION_PERMISSION_NAMES } from "./extension-events-DciGPKJa.js";
|
|
4
|
+
import { A as validatePlugin, C as TuiPluginStorageRuntime, D as buildHostDescriptor, E as HOST_SUPPORTED_CONTRACTS, O as negotiate, S as STORAGE_MAX_KEYS, T as TuiEffectLedgerRuntime, b as STORAGE_KEY_MAX_LENGTH, c as OBSERVE_CALLBACK_QUEUE_LIMIT, d as OBSERVE_ID_MAX_CHARS, f as OBSERVE_IMAGE_BASE64_MAX_CHARS, g as TuiMessageObserverRuntime, h as OBSERVE_SUMMARY_CELLS, i as withCommandErrorMapping, k as createContractIndex, l as OBSERVE_CALLBACK_TIMEOUT_MS, m as OBSERVE_SCOPE_MAX_CHARS, n as hasCommandErrorCode, o as stampCommandOwner, p as OBSERVE_IMAGE_MAX_BYTES, r as mapCommandError, s as unstampCommandOwner, t as COMMAND_ERROR_CODES, u as OBSERVE_CONTENT_MAX_CHARS, x as STORAGE_MAX_BYTES, y as PluginStorageError } from "./command-errors-CIYn1nnW.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin-host.js
|
|
8
8
|
/**
|
|
9
9
|
* The dsh-tui-plugin-host row: the plugin-interop anchor every later
|
|
10
10
|
* contract surface hangs off (storage.local, messages.observe, effect
|
package/lib/tui-compat-scenes.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as name, t as TuiSceneRuntime } from "./scenes-
|
|
1
|
+
import { r as name, t as TuiSceneRuntime } from "./scenes-ai_8sHDs.js";
|
|
2
2
|
export { TuiSceneRuntime, TuiSceneRuntime as default, name };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as name, t as TuiSettingsSectionsRuntime } from "./settings-sections-
|
|
1
|
+
import { i as name, t as TuiSettingsSectionsRuntime } from "./settings-sections-QQ1-2lhL.js";
|
|
2
2
|
export { TuiSettingsSectionsRuntime, TuiSettingsSectionsRuntime as default, name };
|
|
@@ -235,7 +235,7 @@ function apply$1(ctx, config = {}) {
|
|
|
235
235
|
}, "working-activity tick timer");
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
238
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/working-activity.js
|
|
239
239
|
/**
|
|
240
240
|
* Re-export of the `dsh-working-activity` plugin under this package's own
|
|
241
241
|
* name, so the bundle patch layer can mount the working-activity row as
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as localWorkspaceUri, n as WORKSPACE_PROVIDER_TIMEOUT_MS, o as name, r as createLocalWorkspaceRuntime, s as parseLocalWorkspaceReference, t as TuiWorkspaceRuntime } from "./workspaces-
|
|
1
|
+
import { a as localWorkspaceUri, n as WORKSPACE_PROVIDER_TIMEOUT_MS, o as name, r as createLocalWorkspaceRuntime, s as parseLocalWorkspaceReference, t as TuiWorkspaceRuntime } from "./workspaces-CznCgVHv.js";
|
|
2
2
|
export { TuiWorkspaceRuntime, TuiWorkspaceRuntime as default, WORKSPACE_PROVIDER_TIMEOUT_MS, createLocalWorkspaceRuntime, localWorkspaceUri, name, parseLocalWorkspaceReference };
|
package/lib/tui-compat.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as DEFAULT_STATUS_BAR, s as normalizePageMargin } from "./tuiDisplayPrefs-
|
|
2
|
-
import { t as SHORTCUT_ACTIONS } from "./keymap-
|
|
1
|
+
import { n as DEFAULT_STATUS_BAR, s as normalizePageMargin } from "./tuiDisplayPrefs-BCHRRcfe.js";
|
|
2
|
+
import { t as SHORTCUT_ACTIONS } from "./keymap-CFChEJ2W.js";
|
|
3
3
|
import z from "@deepseek-ai/schemastery";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/force-production-react.js
|
|
5
5
|
/**
|
|
6
6
|
* React-reconciler selects its dev/production build at require time from
|
|
7
7
|
* NODE_ENV; the dev build records one performance.measure() per render into
|
|
@@ -14,7 +14,7 @@ import z from "@deepseek-ai/schemastery";
|
|
|
14
14
|
*/
|
|
15
15
|
process.env.NODE_ENV ??= "production";
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
17
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/index.js
|
|
18
18
|
const name = "dsh-tui";
|
|
19
19
|
const inject = ["agents"];
|
|
20
20
|
const Config = z.object({
|
|
@@ -92,7 +92,7 @@ const Config = z.object({
|
|
|
92
92
|
* @returns a promise settling when the TUI teardown completes.
|
|
93
93
|
*/
|
|
94
94
|
async function apply(ctx, config) {
|
|
95
|
-
const { apply: ccTuiApply } = await import("./plugin-
|
|
95
|
+
const { apply: ccTuiApply } = await import("./plugin-jvd9PCVt.js");
|
|
96
96
|
return ccTuiApply(ctx, config);
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tuiDisplayPrefs.js
|
|
2
2
|
/** Default footer is intentionally quiet: only the Yuanjing token dashboard. */
|
|
3
3
|
const DEFAULT_STATUS_BAR = Object.freeze({
|
|
4
4
|
compact: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-
|
|
1
|
+
import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-CmD27uhQ.js";
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
3
|
import { basename, isAbsolute, resolve } from "node:path";
|
|
4
4
|
import { Service } from "@deepseek-ai/cordis";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
5
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspaces.js
|
|
6
6
|
/**
|
|
7
7
|
* Workspace-target extension seam for terminal front doors.
|
|
8
8
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatcode/chatcode-cli",
|
|
3
3
|
"description": "ChatCode CLI: TUI-first coding agent, Web launcher, profiles, and legacy DSH-compatible plugins",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"lib/*.js",
|
|
19
|
+
"lib/dsh-ecosystem-spec",
|
|
19
20
|
"lib/types/*.d.ts",
|
|
20
21
|
"scripts/*.mjs",
|
|
21
22
|
"runtime/manifest.json",
|
|
@@ -29,12 +30,12 @@
|
|
|
29
30
|
"@babel/code-frame": "^7.29.0",
|
|
30
31
|
"@chatcode/cco-better-sidebar": "0.18.0-rc.2",
|
|
31
32
|
"@chatcode/cco-builtin-browser": "0.1.21",
|
|
32
|
-
"@chatcode/cco-chat-import": "0.
|
|
33
|
-
"@chatcode/cco-llm-chatcode-config": "0.1.3
|
|
33
|
+
"@chatcode/cco-chat-import": "0.14.0",
|
|
34
|
+
"@chatcode/cco-llm-chatcode-config": "0.1.3",
|
|
34
35
|
"@chatcode/cco-market": "1.45.2-rc.3",
|
|
35
|
-
"@chatcode/cco-tui": "0.10.0-rc.
|
|
36
|
+
"@chatcode/cco-tui": "0.10.0-rc.9",
|
|
36
37
|
"@deepseek-ai/libreoffice-kit": "^0.1.1",
|
|
37
|
-
"@deepseek-harness-tui/dsh-tui": "npm:@chatcode/cco-tui@0.10.0-rc.
|
|
38
|
+
"@deepseek-harness-tui/dsh-tui": "npm:@chatcode/cco-tui@0.10.0-rc.9",
|
|
38
39
|
"@earendil-works/pi-ai": "^0.85.1",
|
|
39
40
|
"@eslint-community/regexpp": "^4.12.2",
|
|
40
41
|
"@joplin/turndown-plugin-gfm": "^1.0.67",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"diff": "^9.0.0",
|
|
59
60
|
"dsh-better-sidebar": "npm:@chatcode/cco-better-sidebar@0.18.0-rc.2",
|
|
60
61
|
"dsh-builtin-browser": "npm:@chatcode/cco-builtin-browser@0.1.21",
|
|
61
|
-
"dsh-chat-import": "npm:@chatcode/cco-chat-import@0.
|
|
62
|
-
"dsh-llm-chatcode-config": "npm:@chatcode/cco-llm-chatcode-config@0.1.3
|
|
62
|
+
"dsh-chat-import": "npm:@chatcode/cco-chat-import@0.14.0",
|
|
63
|
+
"dsh-llm-chatcode-config": "npm:@chatcode/cco-llm-chatcode-config@0.1.3",
|
|
63
64
|
"dshmarket": "npm:@chatcode/cco-market@1.45.2-rc.3",
|
|
64
65
|
"eventsource-parser": "^3.1.0",
|
|
65
66
|
"execa": "^10.0.0",
|
|
@@ -95,44 +96,44 @@
|
|
|
95
96
|
"@deepseek-ai/dsh-acp": "0.1.7-rc.2",
|
|
96
97
|
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
97
98
|
"@deepseek-ai/dsh-agent-loop": "0.1.7-rc.2",
|
|
98
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-rc.2",
|
|
99
|
-
"@deepseek-ai/dsh-bash-local": "0.1.7-rc.2",
|
|
100
99
|
"@deepseek-ai/dsh-attachment-local": "0.1.7-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-experimental-ptc-runtime-python": "0.1.7-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-bash-local": "0.1.7-rc.2",
|
|
101
102
|
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.1.7-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-rc.2",
|
|
102
104
|
"@deepseek-ai/dsh-experimental-agent-team": "0.1.7-rc.2",
|
|
103
105
|
"@deepseek-ai/dsh-fs-observation-policy": "0.1.7-rc.2",
|
|
104
106
|
"@deepseek-ai/dsh-credentials-local": "0.1.7-rc.2",
|
|
105
107
|
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
|
|
106
|
-
"@deepseek-ai/dsh-
|
|
108
|
+
"@deepseek-ai/dsh-host-frontend-static": "0.1.7-rc.2",
|
|
107
109
|
"@deepseek-ai/dsh-experimental-tool-agent-team": "0.1.7-rc.2",
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-llm-deepseek-account": "0.1.7-rc.2",
|
|
110
|
+
"@deepseek-ai/dsh-fs-sandbox": "0.1.7-rc.2",
|
|
110
111
|
"@deepseek-ai/dsh-llm-deepseek": "0.1.7-rc.2",
|
|
111
|
-
"@deepseek-ai/dsh-llm
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
112
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-llm-deepseek-account": "0.1.7-rc.2",
|
|
113
114
|
"@deepseek-ai/dsh-llm-replay": "0.1.7-rc.2",
|
|
114
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2",
|
|
115
|
-
"@deepseek-ai/dsh-sandbox-local": "0.1.7-rc.2",
|
|
116
|
-
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "0.1.7-rc.2",
|
|
117
|
-
"@deepseek-ai/dsh-experimental-ptc-runtime-python": "0.1.7-rc.2",
|
|
118
115
|
"@deepseek-ai/dsh-loader-smoke": "0.1.7-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-llm-mock-server": "0.1.7-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.1.7-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
119
121
|
"@deepseek-ai/dsh-sdk-client": "0.1.7-rc.2",
|
|
120
|
-
"@deepseek-ai/dsh-session-checkpoint-policy": "0.1.7-rc.2",
|
|
121
122
|
"@deepseek-ai/dsh-session-log-deepseek": "0.1.7-rc.2",
|
|
122
|
-
"@deepseek-ai/dsh-session-
|
|
123
|
+
"@deepseek-ai/dsh-session-checkpoint-policy": "0.1.7-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-sandbox-local": "0.1.7-rc.2",
|
|
123
125
|
"@deepseek-ai/dsh-session-persistence-jsonl": "0.1.7-rc.2",
|
|
124
|
-
"@deepseek-ai/dsh-settings": "0.1.7-rc.2",
|
|
125
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2",
|
|
126
|
-
"@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
|
|
127
126
|
"@deepseek-ai/dsh-shell-env": "0.1.7-rc.2",
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
127
|
+
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "0.1.7-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-settings": "0.1.7-rc.2",
|
|
131
131
|
"@deepseek-ai/dsh-subagent-fork-in-process": "0.1.7-rc.2",
|
|
132
132
|
"@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.2",
|
|
133
|
-
"@deepseek-ai/dsh-
|
|
133
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.7-rc.2",
|
|
134
134
|
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
135
|
-
"@deepseek-ai/dsh-user-approval": "0.1.7-rc.2"
|
|
135
|
+
"@deepseek-ai/dsh-user-approval": "0.1.7-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2"
|
|
136
137
|
},
|
|
137
138
|
"exports": {
|
|
138
139
|
"./headless-compat": {
|
|
@@ -151,6 +152,11 @@
|
|
|
151
152
|
"./lib/*": "./lib/*",
|
|
152
153
|
"./package.json": "./package.json"
|
|
153
154
|
},
|
|
154
|
-
"optionalDependencies": {
|
|
155
|
+
"optionalDependencies": {
|
|
156
|
+
"@deepseek-ai/node-addon-system-darwin-arm64": "0.1.2",
|
|
157
|
+
"@deepseek-ai/node-addon-system-darwin-x64": "0.1.2",
|
|
158
|
+
"@deepseek-ai/node-addon-system-linux-arm64": "0.1.2",
|
|
159
|
+
"@deepseek-ai/node-addon-system-linux-x64": "0.1.2"
|
|
160
|
+
},
|
|
155
161
|
"scripts": {}
|
|
156
162
|
}
|
package/runtime/manifest.json
CHANGED
|
@@ -278,12 +278,8 @@
|
|
|
278
278
|
"@deepseek-ai/dsh-workspace",
|
|
279
279
|
"@deepseek-ai/dsh-workspace-changes",
|
|
280
280
|
"@deepseek-ai/node-addon-system",
|
|
281
|
-
"@deepseek-ai/node-addon-system-darwin-arm64",
|
|
282
|
-
"@deepseek-ai/node-addon-system-darwin-x64",
|
|
283
|
-
"@deepseek-ai/node-addon-system-linux-arm64",
|
|
284
|
-
"@deepseek-ai/node-addon-system-linux-x64",
|
|
285
281
|
"@deepseek-ai/schemastery"
|
|
286
282
|
],
|
|
287
|
-
"fileCount":
|
|
288
|
-
"byteCount":
|
|
283
|
+
"fileCount": 3555,
|
|
284
|
+
"byteCount": 66576968
|
|
289
285
|
}
|
|
@@ -4125,7 +4125,7 @@ window.__ModuleLoader__.load({
|
|
|
4125
4125
|
for (const listener of listeners) listener();
|
|
4126
4126
|
};
|
|
4127
4127
|
/** @returns the client identity for one account call, read at call time so it carries the language and zone in effect then. */
|
|
4128
|
-
const client = () => accountClientMetadata(ctx.locale.getSnapshot().active, "3.0.
|
|
4128
|
+
const client = () => accountClientMetadata(ctx.locale.getSnapshot().active, "3.0.2-rc.1");
|
|
4129
4129
|
const notices = createBonusNoticeController({
|
|
4130
4130
|
ackRetryDelayMs: config.bonusAckRetryDelayMs,
|
|
4131
4131
|
ackRetryMaxDelayMs: config.bonusAckRetryMaxDelayMs,
|
|
@@ -4256,7 +4256,7 @@ window.__ModuleLoader__.load({
|
|
|
4256
4256
|
refreshAccount,
|
|
4257
4257
|
contactUs() {
|
|
4258
4258
|
const url = contactUrl(config, {
|
|
4259
|
-
version: "3.0.
|
|
4259
|
+
version: "3.0.2-rc.1",
|
|
4260
4260
|
locale: ctx.locale.getSnapshot().active === "zh" ? "zh-CN" : "en",
|
|
4261
4261
|
width: window.screen.width,
|
|
4262
4262
|
height: window.screen.height,
|
|
@@ -657,7 +657,7 @@ window.__ModuleLoader__.load({
|
|
|
657
657
|
function CurrentVersionRow({ t }) {
|
|
658
658
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
659
659
|
className: CurrentVersionRow_module_css_default.row,
|
|
660
|
-
children: t("general.currentVersion", { version: "3.0.
|
|
660
|
+
children: t("general.currentVersion", { version: "3.0.2-rc.1" })
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
//#endregion
|
|
@@ -167,7 +167,7 @@ window.__ModuleLoader__.load({
|
|
|
167
167
|
const SCROLLBAR_LINGER_MS = 2e3;
|
|
168
168
|
/** Format complete-build metadata for the local brand badge. */
|
|
169
169
|
function localBuildVersion() {
|
|
170
|
-
return `3.0.
|
|
170
|
+
return `3.0.2-rc.1-faf7c3a-dirty`;
|
|
171
171
|
}
|
|
172
172
|
/** Each panel row subscribes only to its own selection state. */
|
|
173
173
|
function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
|
|
@@ -21,7 +21,7 @@ export declare const BUNDLED_SKILL_RANK = 600;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function isSkillName(name: string): boolean;
|
|
23
23
|
/** Origin bucket for a skill contribution. The value is prompt-visible metadata, not precedence by itself. */
|
|
24
|
-
export type SkillSource = 'project-dsh' | 'project-agents' | 'runtime' | 'user-dsh' | 'user-agents' | 'custom' | 'bundled' | (string & {});
|
|
24
|
+
export type SkillSource = 'project-chatcode' | 'project-dsh' | 'project-agents' | 'runtime' | 'user-dsh' | 'user-agents' | 'custom' | 'bundled' | (string & {});
|
|
25
25
|
/** Optional provider-specific base used by loaded skill bodies to resolve relative resources. */
|
|
26
26
|
export type SkillResourceBase = {
|
|
27
27
|
readonly kind: 'directory';
|
|
@@ -18,7 +18,8 @@ import { BUNDLED_SKILL_RANK, isSkillName } from "@deepseek-ai/dsh-skill";
|
|
|
18
18
|
*
|
|
19
19
|
* @module @deepseek-ai/dsh-skill-filesystem
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const PROJECT_CHATCODE_RANK = 100;
|
|
22
|
+
const PROJECT_DSH_RANK = 150;
|
|
22
23
|
const PROJECT_AGENTS_RANK = 200;
|
|
23
24
|
const CUSTOM_RANK = 300;
|
|
24
25
|
const USER_DSH_RANK = 400;
|
|
@@ -156,6 +157,11 @@ var FileSystemSkillProvider = class {
|
|
|
156
157
|
if (this.includeDefaultRoots && cwd !== void 0) {
|
|
157
158
|
const projectRoot = await findProjectRoot(resolve(cwd), optionalFileSystem(this.ctx));
|
|
158
159
|
roots.push({
|
|
160
|
+
path: join(projectRoot, ".chatcode-cli/skills"),
|
|
161
|
+
source: "project-chatcode",
|
|
162
|
+
rank: PROJECT_CHATCODE_RANK,
|
|
163
|
+
projectRoot
|
|
164
|
+
}, {
|
|
159
165
|
path: join(projectRoot, ".dsh/skills"),
|
|
160
166
|
source: "project-dsh",
|
|
161
167
|
rank: PROJECT_DSH_RANK,
|
|
@@ -5,7 +5,7 @@ import { join } from 'node:path'
|
|
|
5
5
|
import { pathToFileURL } from 'node:url'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Route embedded
|
|
8
|
+
* Route embedded imports, require.resolve and bundle lookup paths to one runtime.
|
|
9
9
|
* @param {string} packageDir - The installed CLI package directory.
|
|
10
10
|
* @returns {(() => void) | undefined} Removes the resolvers; absent without an embedded runtime.
|
|
11
11
|
*/
|
|
@@ -28,28 +28,33 @@ export function registerEmbeddedRuntime(packageDir) {
|
|
|
28
28
|
const parts = specifier.split('/')
|
|
29
29
|
return names.has(specifier.startsWith('@') ? parts.slice(0, 2).join('/') : parts[0])
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
// require.resolve.paths bypasses module hooks. Bundle discovery must see the
|
|
32
|
+
// embedded directory even when the bundle does not export package.json.
|
|
33
|
+
const runtimeModules = join(packageDir, 'runtime', 'node_modules')
|
|
34
|
+
const originalLookupPaths = Module._resolveLookupPaths
|
|
35
|
+
function resolveLookupPaths(specifier, parent) {
|
|
36
|
+
const paths = originalLookupPaths.call(this, specifier, parent)
|
|
37
|
+
if (!owns(specifier)) return paths
|
|
38
|
+
return [runtimeModules, ...(paths ?? []).filter(path => path !== runtimeModules)]
|
|
39
|
+
}
|
|
40
|
+
Module._resolveLookupPaths = resolveLookupPaths
|
|
41
|
+
|
|
42
|
+
// require.resolve bypasses module hooks on Node 22 and earlier Node 24
|
|
43
|
+
// releases. Anchor it explicitly instead of inferring support from the major.
|
|
44
|
+
const originalResolveFilename = Module._resolveFilename
|
|
45
|
+
let resolving = false
|
|
46
|
+
function resolveFilename(specifier, parent, isMain, options) {
|
|
47
|
+
if (resolving || typeof specifier !== 'string' || !owns(specifier)) {
|
|
48
|
+
return originalResolveFilename.call(this, specifier, parent, isMain, options)
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
resolving = true
|
|
51
|
+
try {
|
|
52
|
+
return runtimeRequire.resolve(specifier)
|
|
53
|
+
} finally {
|
|
54
|
+
resolving = false
|
|
51
55
|
}
|
|
52
56
|
}
|
|
57
|
+
Module._resolveFilename = resolveFilename
|
|
53
58
|
const hooks = registerHooks({
|
|
54
59
|
resolve(specifier, context, nextResolve) {
|
|
55
60
|
if (!owns(specifier) || context.parentURL === parentURL) return nextResolve(specifier, context)
|
|
@@ -64,6 +69,7 @@ export function registerEmbeddedRuntime(packageDir) {
|
|
|
64
69
|
})
|
|
65
70
|
return () => {
|
|
66
71
|
hooks.deregister()
|
|
67
|
-
|
|
72
|
+
if (Module._resolveFilename === resolveFilename) Module._resolveFilename = originalResolveFilename
|
|
73
|
+
if (Module._resolveLookupPaths === resolveLookupPaths) Module._resolveLookupPaths = originalLookupPaths
|
|
68
74
|
}
|
|
69
75
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Prebuilt system.node for macOS arm64 POSIX locks."
|
|
3
|
-
kind: "package-library"
|
|
4
|
-
---
|
|
5
|
-
# @deepseek-ai/node-addon-system-darwin-arm64
|
|
6
|
-
|
|
7
|
-
English | [中文](README.zh.md)
|
|
8
|
-
|
|
9
|
-
This platform package supplies `bin/system.node`, a stable Node-API v8 addon used by `@deepseek-ai/node-addon-system/flock`. It contains no Landlock executable, JavaScript loader, or installation build script. The native workflow builds it on macOS arm64 and owns its installed-artifact validation.
|
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deepseek-ai/node-addon-system-darwin-arm64",
|
|
3
|
-
"version": "0.1.2",
|
|
4
|
-
"description": "Prebuilt POSIX flock Node-API binding for macOS arm64",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
8
|
-
"directory": "native/system/packages/darwin-arm64"
|
|
9
|
-
},
|
|
10
|
-
"os": [
|
|
11
|
-
"darwin"
|
|
12
|
-
],
|
|
13
|
-
"cpu": [
|
|
14
|
-
"arm64"
|
|
15
|
-
],
|
|
16
|
-
"files": [
|
|
17
|
-
"README.md",
|
|
18
|
-
"bin/",
|
|
19
|
-
"prebuilds.json"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"prepack": "node ../../scripts/verify-launcher-binary.mjs"
|
|
23
|
-
},
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=20"
|
|
26
|
-
},
|
|
27
|
-
"license": "BSD-3-Clause",
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Prebuilt system.node for macOS x64 POSIX locks."
|
|
3
|
-
kind: "package-library"
|
|
4
|
-
---
|
|
5
|
-
# @deepseek-ai/node-addon-system-darwin-x64
|
|
6
|
-
|
|
7
|
-
English | [中文](README.zh.md)
|
|
8
|
-
|
|
9
|
-
This platform package supplies `bin/system.node`, a stable Node-API v8 addon used by `@deepseek-ai/node-addon-system/flock`. It contains no Landlock executable, JavaScript loader, or installation build script. The native workflow builds it on macOS x64 and owns its installed-artifact validation.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deepseek-ai/node-addon-system-darwin-x64",
|
|
3
|
-
"version": "0.1.2",
|
|
4
|
-
"description": "Prebuilt POSIX flock Node-API binding for macOS x64",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
8
|
-
"directory": "native/system/packages/darwin-x64"
|
|
9
|
-
},
|
|
10
|
-
"os": [
|
|
11
|
-
"darwin"
|
|
12
|
-
],
|
|
13
|
-
"cpu": [
|
|
14
|
-
"x64"
|
|
15
|
-
],
|
|
16
|
-
"files": [
|
|
17
|
-
"README.md",
|
|
18
|
-
"bin/",
|
|
19
|
-
"prebuilds.json"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"prepack": "node ../../scripts/verify-launcher-binary.mjs"
|
|
23
|
-
},
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=20"
|
|
26
|
-
},
|
|
27
|
-
"license": "BSD-3-Clause",
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
}
|
|
31
|
-
}
|