@chatcode/chatcode-cli 3.0.0 → 3.0.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/{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/{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 +25 -25
- 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/scripts/register-embedded-runtime.mjs +27 -21
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as compositionRoot, i as bindCallerEffect, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-
|
|
2
|
-
import { a as declaresPermission, d as normalizePermissionScope, i as declaresObserverScope, m as scopeCovers, n as componentIdentityOf, o as requireComponentIdentity, p as rawScopeCovers, s as requiresContract, u as INTERCEPT_PERMISSIONS } from "./component-identity-
|
|
3
|
-
import { B as createAdmissionCatalog, G as validateSetInput, H as validateDeleteOutput, K as validateSetOutput, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, N as registryEntries, P as verifyContractProfiles, S as DATA_DIR, U as validateGetInput, V as validateDeleteInput, W as validateGetOutput, X as defineProtocolDeclaration, Y as projectManifest, j as digestFile, p as cleanScalarText, q as validateMessageEvent, x as readGrantStore } from "./extension-events-
|
|
1
|
+
import { a as compositionRoot, i as bindCallerEffect, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-CmD27uhQ.js";
|
|
2
|
+
import { a as declaresPermission, d as normalizePermissionScope, i as declaresObserverScope, m as scopeCovers, n as componentIdentityOf, o as requireComponentIdentity, p as rawScopeCovers, s as requiresContract, u as INTERCEPT_PERMISSIONS } from "./component-identity-CnmIKHEF.js";
|
|
3
|
+
import { B as createAdmissionCatalog, G as validateSetInput, H as validateDeleteOutput, K as validateSetOutput, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, N as registryEntries, P as verifyContractProfiles, S as DATA_DIR, U as validateGetInput, V as validateDeleteInput, W as validateGetOutput, X as defineProtocolDeclaration, Y as projectManifest, j as digestFile, p as cleanScalarText, q as validateMessageEvent, x as readGrantStore } from "./extension-events-DciGPKJa.js";
|
|
4
4
|
import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import { Service } from "@deepseek-ai/cordis";
|
|
8
8
|
import { withFileLock, writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
|
|
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/plugin-spec/validate.js
|
|
10
10
|
/** Semantic validation layered on the official manifest parser/projection. */
|
|
11
11
|
const coordinateKey$1 = (coordinate) => `${coordinate.apiVersion}#${coordinate.kind}`;
|
|
12
12
|
const groupOf = (apiVersion) => apiVersion.split("/")[0] ?? "";
|
|
@@ -124,7 +124,7 @@ function validateHost(index, host) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
127
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/negotiate.js
|
|
128
128
|
/** Five-state admission decision using dsh-std projection and ProtocolCatalog. */
|
|
129
129
|
const coordinateKey = (ref) => `${ref.apiVersion}#${ref.kind}`;
|
|
130
130
|
function negotiate(index, manifest, host, grants = []) {
|
|
@@ -197,7 +197,7 @@ function negotiate(index, manifest, host, grants = []) {
|
|
|
197
197
|
} : { decision: "compatible" };
|
|
198
198
|
}
|
|
199
199
|
//#endregion
|
|
200
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
200
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/schema-check.js
|
|
201
201
|
/**
|
|
202
202
|
* 零依赖 JSON Schema 校验器——上游 `conformance/tests/run.js` 的 check()
|
|
203
203
|
* 的保真 TS 移植。刻意只实现 vendored schemas 用到的子集:本地 $ref、
|
|
@@ -301,7 +301,7 @@ function check(value, schema, rootSchema = schema, where = "$") {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
//#endregion
|
|
304
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
304
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/host-descriptor.js
|
|
305
305
|
/** Build the current ChatCode CLI TUI Host Descriptor from the pinned admission profile. */
|
|
306
306
|
const HOST_SUPPORTED_CONTRACTS = Object.freeze([
|
|
307
307
|
{
|
|
@@ -453,7 +453,7 @@ function buildHostDescriptor(options) {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
//#endregion
|
|
456
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
456
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/effect-ledger.js
|
|
457
457
|
/**
|
|
458
458
|
* Effect ledger (C-060): an append-only JSONL journal of plugin-visible
|
|
459
459
|
* effects at `~/.chatcode-cli/tui/effect-ledger.jsonl`, mounted by the
|
|
@@ -645,7 +645,7 @@ function resumeSequence(file) {
|
|
|
645
645
|
return max + 1;
|
|
646
646
|
}
|
|
647
647
|
//#endregion
|
|
648
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
648
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin-storage.js
|
|
649
649
|
/**
|
|
650
650
|
* storage.local contract surface (C-040, `storage.dsh/v1alpha1#LocalStorage`):
|
|
651
651
|
* per-plugin private persistence, mounted by the dsh-tui-plugin-host row as
|
|
@@ -986,7 +986,7 @@ var TuiPluginStorageRuntime = class extends Service {
|
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
//#endregion
|
|
989
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
989
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/message-observer.js
|
|
990
990
|
/**
|
|
991
991
|
* messages.observe contract surface (C-042,
|
|
992
992
|
* `messages.dsh/v1alpha1#MessageObserver`): the host event broker, mounted
|
|
@@ -1494,7 +1494,7 @@ function observerStateFor(runtime) {
|
|
|
1494
1494
|
return state;
|
|
1495
1495
|
}
|
|
1496
1496
|
//#endregion
|
|
1497
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1497
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-attribution.js
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Command ownership attribution — the data source for the C-041 invoke
|
|
1500
1500
|
* checkpoint's per-owner grant decision.
|
|
@@ -1572,7 +1572,7 @@ function commandOwner(ctx, definition) {
|
|
|
1572
1572
|
return ownerMaps.get(key)?.get(handler);
|
|
1573
1573
|
}
|
|
1574
1574
|
//#endregion
|
|
1575
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1575
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-errors.js
|
|
1576
1576
|
/**
|
|
1577
1577
|
* commands contract error-code alignment (C-041,
|
|
1578
1578
|
* `commands.dsh/v1alpha1#Command`): the official `dsh-commands` runtime
|
|
@@ -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/command-trees.js
|
|
4
4
|
/** Provider-neutral subcommand completion registry for terminal front doors. */
|
|
5
5
|
const name = "dsh-tui-command-trees";
|
|
6
6
|
/** Small host-only registry; command execution remains owned by dsh-commands. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as bindCallerEffect, n as activationFiber } from "./host-access-
|
|
1
|
+
import { i as bindCallerEffect, n as activationFiber } from "./host-access-CmD27uhQ.js";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
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/plugin-spec/permission-scope.js
|
|
4
4
|
/** Permission scope normalization shared by admission and runtime checks. */
|
|
5
5
|
const STORAGE_PERMISSIONS = new Set(["storage.local.read", "storage.local.write"]);
|
|
6
6
|
const INTERCEPT_PERMISSIONS = new Set([
|
|
@@ -76,7 +76,7 @@ function rawScopeCovers(permission, declared, actual, componentId) {
|
|
|
76
76
|
return normalizedDeclared !== void 0 && normalizedActual !== void 0 && permissionScopeCovers(permission, normalizedDeclared, normalizedActual);
|
|
77
77
|
}
|
|
78
78
|
//#endregion
|
|
79
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/component-identity.js
|
|
80
80
|
/** Verified Component identity bound to one Cordis activation owner. */
|
|
81
81
|
var ComponentIdentityError = class extends Error {
|
|
82
82
|
code;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-2rV9d50f.js";
|
|
2
|
-
import { a as compositionRoot, i as bindCallerEffect } from "./host-access-
|
|
3
|
-
import { c as requiresDecisionEvents, d as normalizePermissionScope, f as permissionScopeCovers, l as INTERCEPT_EVENT_SCOPE_BY_PERMISSION, n as componentIdentityOf } from "./component-identity-
|
|
2
|
+
import { a as compositionRoot, i as bindCallerEffect } from "./host-access-CmD27uhQ.js";
|
|
3
|
+
import { c as requiresDecisionEvents, d as normalizePermissionScope, f as permissionScopeCovers, l as INTERCEPT_EVENT_SCOPE_BY_PERMISSION, n as componentIdentityOf } from "./component-identity-CnmIKHEF.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { homedir } from "node:os";
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
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/node_modules/@dsh-std/core/lib/index.js
|
|
10
10
|
function protocolKey(reference) {
|
|
11
11
|
return `${reference.apiVersion}\0${reference.kind}`;
|
|
12
12
|
}
|
|
@@ -408,7 +408,7 @@ function comparePrerelease(left, right) {
|
|
|
408
408
|
return 0;
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
411
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/manifest/lib/index.js
|
|
412
412
|
const COMPONENT_API_VERSION = "manifest.dsh/internal/v1alpha1";
|
|
413
413
|
const COMMUNITY_PERMISSION_API_VERSION = "community.dsh/v1alpha1";
|
|
414
414
|
const COMMUNITY_PERMISSION_KIND = "Permission";
|
|
@@ -1012,7 +1012,7 @@ function canonical(value) {
|
|
|
1012
1012
|
return JSON.stringify(value) ?? "null";
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1015
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js
|
|
1016
1016
|
/** Reusable RPC-shaped protocol definition. Domain packages opt into these semantics explicitly. */
|
|
1017
1017
|
function defineCapabilityProtocol(options) {
|
|
1018
1018
|
const definition = {
|
|
@@ -1068,7 +1068,7 @@ function isConnectionPolicy(value) {
|
|
|
1068
1068
|
return typeof value === "object" && value !== null && typeof value.endpointByParticipant === "object" && value.endpointByParticipant !== null;
|
|
1069
1069
|
}
|
|
1070
1070
|
//#endregion
|
|
1071
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1071
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/callback.js
|
|
1072
1072
|
const EXTERNAL_REDIRECT_KIND = "ExternalRedirect";
|
|
1073
1073
|
const emptySpec$3 = (value) => {
|
|
1074
1074
|
if (value !== void 0) throw new TypeError("ExternalRedirect does not accept spec in v1alpha1");
|
|
@@ -1084,7 +1084,7 @@ Object.freeze({
|
|
|
1084
1084
|
kind: EXTERNAL_REDIRECT_KIND
|
|
1085
1085
|
});
|
|
1086
1086
|
//#endregion
|
|
1087
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1087
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/index.js
|
|
1088
1088
|
const API_VERSION$3 = "presentation.dsh/v1alpha1";
|
|
1089
1089
|
const OPEN_EXTERNAL_KIND = "OpenExternal";
|
|
1090
1090
|
const COPY_TEXT_KIND = "CopyText";
|
|
@@ -1261,7 +1261,7 @@ function deepFreeze(value) {
|
|
|
1261
1261
|
return value;
|
|
1262
1262
|
}
|
|
1263
1263
|
//#endregion
|
|
1264
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1264
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/command/lib/index.js
|
|
1265
1265
|
const API_VERSION$2 = "commands.dsh/v1alpha1";
|
|
1266
1266
|
const KIND$2 = "Command";
|
|
1267
1267
|
const RUNTIME_KIND = "CommandRuntime";
|
|
@@ -1455,7 +1455,7 @@ function exact(value, allowed, label) {
|
|
|
1455
1455
|
if (unknown.length > 0) throw new TypeError(`${label} contains unknown field ${JSON.stringify(unknown[0])}`);
|
|
1456
1456
|
}
|
|
1457
1457
|
//#endregion
|
|
1458
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1458
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/messages/lib/index.js
|
|
1459
1459
|
const API_VERSION$1 = "messages.dsh/v1alpha1";
|
|
1460
1460
|
const KIND$1 = "MessageObserver";
|
|
1461
1461
|
const EVENT_TYPE = "messages.observe";
|
|
@@ -1588,7 +1588,7 @@ function record(value) {
|
|
|
1588
1588
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1589
1589
|
}
|
|
1590
1590
|
//#endregion
|
|
1591
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1591
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/storage/lib/index.js
|
|
1592
1592
|
const API_VERSION = "storage.dsh/v1alpha1";
|
|
1593
1593
|
const KIND = "LocalStorage";
|
|
1594
1594
|
const protocol = Object.freeze({
|
|
@@ -1687,7 +1687,7 @@ function key(value, label) {
|
|
|
1687
1687
|
if (typeof value !== "string" || value.length === 0) throw new TypeError(`${label} must be a non-empty string`);
|
|
1688
1688
|
}
|
|
1689
1689
|
//#endregion
|
|
1690
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1690
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/dsh-ecosystem-spec/protocols/tui-channel.js
|
|
1691
1691
|
const TUI_CHANNEL = Object.freeze({
|
|
1692
1692
|
apiVersion: "tui.dsh/v1alpha1",
|
|
1693
1693
|
kind: "Channel"
|
|
@@ -1759,7 +1759,7 @@ function nonEmpty(value, label) {
|
|
|
1759
1759
|
if (typeof value !== "string" || value.trim() === "") throw new TypeError(`${label} must be a non-empty string`);
|
|
1760
1760
|
}
|
|
1761
1761
|
//#endregion
|
|
1762
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1762
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/tui-extension.js
|
|
1763
1763
|
/** ChatCode CLI TUI private protocol registration on the shared dsh-std catalog. */
|
|
1764
1764
|
const TUI_EXTENSION_API_VERSION = "tui.dsh/v1alpha1";
|
|
1765
1765
|
const DECISION_EVENTS_COORDINATE = Object.freeze({
|
|
@@ -1828,7 +1828,7 @@ function createAdmissionCatalog() {
|
|
|
1828
1828
|
};
|
|
1829
1829
|
}
|
|
1830
1830
|
//#endregion
|
|
1831
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1831
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/registry.js
|
|
1832
1832
|
/** Load and verify the pinned ChatCode CLI TUI admission profile. */
|
|
1833
1833
|
const REGISTRY_FILE = join("registry", "registry-0.15.json");
|
|
1834
1834
|
const EXPECTED_PROFILE_VERSION = "tui-admission/0.15";
|
|
@@ -2043,7 +2043,7 @@ function verifyContractProfiles(data) {
|
|
|
2043
2043
|
return failures;
|
|
2044
2044
|
}
|
|
2045
2045
|
//#endregion
|
|
2046
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
2046
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/paths.js
|
|
2047
2047
|
const CHATCODE_CLI_HOME_ENV = "CHATCODE_CLI_HOME";
|
|
2048
2048
|
const LEGACY_DSH_HOME_ENV = "DSH_HOME";
|
|
2049
2049
|
const CHATCODE_CLI_TUI_ENV_PREFIX = "CHATCODE_CLI_TUI_";
|
|
@@ -2145,7 +2145,7 @@ function detectLegacyEnv(env = process.env) {
|
|
|
2145
2145
|
return Object.keys(RENAMED_ENV).filter((name) => env[name] !== void 0);
|
|
2146
2146
|
}
|
|
2147
2147
|
//#endregion
|
|
2148
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
2148
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/grants.js
|
|
2149
2149
|
/** Live, scoped plugin grant evaluation. */
|
|
2150
2150
|
const EXTENSION_GRANTS_FILE = "extension-grants.json";
|
|
2151
2151
|
function parseRule(value) {
|
|
@@ -3020,7 +3020,7 @@ function stripAnsi(string) {
|
|
|
3020
3020
|
return string.replace(regex, "");
|
|
3021
3021
|
}
|
|
3022
3022
|
//#endregion
|
|
3023
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3023
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/intl.js
|
|
3024
3024
|
let graphemeSegmenter;
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Memoized `Intl.Segmenter` with grapheme granularity, used by the ported Ink
|
|
@@ -3031,7 +3031,7 @@ function getGraphemeSegmenter() {
|
|
|
3031
3031
|
return graphemeSegmenter ??= new Intl.Segmenter("en", { granularity: "grapheme" });
|
|
3032
3032
|
}
|
|
3033
3033
|
//#endregion
|
|
3034
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3034
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/stringWidth.js
|
|
3035
3035
|
const EMOJI_REGEX = (0, import_emoji_regex.default)();
|
|
3036
3036
|
/**
|
|
3037
3037
|
* Fallback JavaScript implementation of stringWidth when Bun.stringWidth is not available.
|
|
@@ -3253,7 +3253,7 @@ const BUN_STRING_WIDTH_OPTS = { ambiguousIsNarrow: true };
|
|
|
3253
3253
|
*/
|
|
3254
3254
|
const stringWidth = bunStringWidth ? (str) => bunStringWidth(str, BUN_STRING_WIDTH_OPTS) : stringWidthJavaScript;
|
|
3255
3255
|
//#endregion
|
|
3256
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3256
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sanitize.js
|
|
3257
3257
|
/**
|
|
3258
3258
|
* The render-path sanitization contract for plugin-supplied text — the
|
|
3259
3259
|
* single implementation behind every managed-UI seam (dialogs, status line,
|
|
@@ -3312,7 +3312,7 @@ function flattenInline(value) {
|
|
|
3312
3312
|
return value.replace(/[\x00-\x1f\x7f-\x9f]/g, " ");
|
|
3313
3313
|
}
|
|
3314
3314
|
//#endregion
|
|
3315
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3315
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/decision-guard.js
|
|
3316
3316
|
/**
|
|
3317
3317
|
* RFC 0005 D-7 enforcement: subscribing to an intercept-class (decision)
|
|
3318
3318
|
* event requires an explicit host-side grant — default deny.
|
|
@@ -3564,7 +3564,7 @@ function installDecisionGuard(ctx, grants) {
|
|
|
3564
3564
|
});
|
|
3565
3565
|
}
|
|
3566
3566
|
//#endregion
|
|
3567
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
3567
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/extension-events.js
|
|
3568
3568
|
/**
|
|
3569
3569
|
* Decision-point events the TUI fires on the cordis bus so plugins can
|
|
3570
3570
|
* intercept, cancel, or customize interactive flows — the `session_before_*`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Fiber } from "@deepseek-ai/cordis";
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
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/host-access.js
|
|
4
4
|
/**
|
|
5
5
|
* Recover the concrete Cordis service for host-only adapters.
|
|
6
6
|
*
|
|
@@ -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/utils/modifiers.js
|
|
2
2
|
/**
|
|
3
3
|
* Cross-platform modifier-key helpers. Windows/Linux muscle memory uses
|
|
4
4
|
* Ctrl+<key>; on macOS the same action maps to Cmd+<key>. Terminals deliver
|
|
@@ -39,7 +39,7 @@ function isPlainReturnInput(input, key) {
|
|
|
39
39
|
return /^[\r\n]+$/u.test(input) && !key.ctrl && !key.meta && !key.shift && !key.super;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
42
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/keymap.js
|
|
43
43
|
/**
|
|
44
44
|
* Built-in keyboard-shortcut keymap: the shared combo grammar, the action
|
|
45
45
|
* registry, and the live override cache behind `/settings` customization.
|