@xmoon76/dsh-pi-tui 0.4.7-alpha.1 → 0.4.7-alpha.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/README.en.md +3 -3
- package/README.md +3 -3
- package/cordis.patch.yml +20 -1
- package/dist/builtins.mjs +2 -2
- package/dist/extensions.mjs +1 -2
- package/dist/index.d.mts +4 -10
- package/dist/index.mjs +2 -3
- package/dist/{src-D-4-xTUd.mjs → src-5aY9svZj.mjs} +1264 -685
- package/dist/startup-CGeJ1k1B.mjs +284 -0
- package/dist/startup.d.mts +19 -8
- package/dist/startup.mjs +1 -237
- package/package.json +108 -100
package/README.en.md
CHANGED
|
@@ -55,10 +55,10 @@ next compatibility range, and fallback paths.
|
|
|
55
55
|
| TUI package line | Official DSH tags for the pairing | Notes |
|
|
56
56
|
|---|---|---|
|
|
57
57
|
| `0.4.6` (published `@latest`) | `dsh-v0.1.5-rc.1`, `dsh-v0.1.5-rc.2` | Current stable line; rc.1 minimum, rc.2 compatible |
|
|
58
|
-
| Current `next` npm line (this checkout; version `0.4.7-alpha.
|
|
58
|
+
| Current `next` npm line (this checkout; version `0.4.7-alpha.2`) | `dsh-v0.1.6-alpha.2` | Current next line |
|
|
59
59
|
|
|
60
60
|
Do not mix the stable and `next` lines. The current `next` checkout declares
|
|
61
|
-
the published `0.1.6-alpha.
|
|
61
|
+
the published `0.1.6-alpha.2` npm floor; older runtimes fail at the normal
|
|
62
62
|
incompatible-runtime boundary. The startup notice is best-effort rather than a
|
|
63
63
|
Loader startup-order guarantee. See the [full historical compatibility matrix](docs/dsh-compatibility.md)
|
|
64
64
|
for official-tag pairings and fallback commands, and see the [latest `next`
|
|
@@ -563,7 +563,7 @@ This section contains DSH compatibility and CI validation details only; ordinary
|
|
|
563
563
|
### npm mode (current `next`)
|
|
564
564
|
|
|
565
565
|
The current `next` line is npm mode: it targets the published
|
|
566
|
-
`dsh-v0.1.6-alpha.
|
|
566
|
+
`dsh-v0.1.6-alpha.2` family declared by this checkout's `package.json` and
|
|
567
567
|
resolved by its frozen lockfile. The isolated npm driver installs that exact
|
|
568
568
|
family from the public registry and exercises the TUI build/test/package path:
|
|
569
569
|
|
package/README.md
CHANGED
|
@@ -53,10 +53,10 @@ pnpm compat:dsh:npm
|
|
|
53
53
|
| TUI 包版本 | 对应的官方 DSH tags | 说明 |
|
|
54
54
|
|---|---|---|
|
|
55
55
|
| `0.4.6`(已发布 `@latest`) | `dsh-v0.1.5-rc.1`、`dsh-v0.1.5-rc.2` | 当前稳定版;最低 rc.1,兼容 rc.2 |
|
|
56
|
-
| 当前 `next` npm 线(本 checkout;版本 `0.4.7-alpha.
|
|
56
|
+
| 当前 `next` npm 线(本 checkout;版本 `0.4.7-alpha.2`) | `dsh-v0.1.6-alpha.2` | 当前 next 线 |
|
|
57
57
|
|
|
58
58
|
不要把稳定线与 `next` 线混装。当前 `next` checkout 的 peer floor 是
|
|
59
|
-
`>=0.1.6-alpha.
|
|
59
|
+
`>=0.1.6-alpha.2`,旧 runtime 会在正常的不兼容边界以非零状态失败。完整的
|
|
60
60
|
历史兼容矩阵和 fallback 命令见 [兼容性文档](docs/dsh-compatibility.md);
|
|
61
61
|
要查看 next 的最新集成状态,请看 [next 分支 README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md)。
|
|
62
62
|
|
|
@@ -536,7 +536,7 @@ dsh --profile pi-tui-dev
|
|
|
536
536
|
### npm 模式(当前 `next`)
|
|
537
537
|
|
|
538
538
|
当前 `next` 线是 npm 模式:以本 checkout 的 `package.json` 声明、冻结
|
|
539
|
-
lockfile 解析的已发布 `dsh-v0.1.6-alpha.
|
|
539
|
+
lockfile 解析的已发布 `dsh-v0.1.6-alpha.2` family 为兼容目标。隔离的 npm
|
|
540
540
|
驱动从公共 registry 安装该精确 family,并跑完整 build/test/package 路径:
|
|
541
541
|
|
|
542
542
|
```sh
|
package/cordis.patch.yml
CHANGED
|
@@ -26,10 +26,29 @@
|
|
|
26
26
|
|
|
27
27
|
- id: tui-app
|
|
28
28
|
name: '@xmoon76/dsh-pi-tui'
|
|
29
|
-
|
|
29
|
+
# `workspaceRegistry` is injected, not merely looked up: D2.4 Direct fork
|
|
30
|
+
# must observe the official workspace membership, and Cordis must have
|
|
31
|
+
# finished the registry's one-time history bootstrap before the surface
|
|
32
|
+
# can fork. The row below is this bundle's own, so the dependency is
|
|
33
|
+
# self-contained and a profile that disables it fails loud instead of
|
|
34
|
+
# silently forking without workspace inheritance.
|
|
35
|
+
inject: [tuiStartup, piTuiExtensions, authorization, workspaceRegistry]
|
|
30
36
|
config:
|
|
31
37
|
sessionId: ''
|
|
32
38
|
|
|
39
|
+
# Host-owned workspace membership (`ctx.workspaceRegistry`): D2.4 Direct
|
|
40
|
+
# fork mirrors the official Host rule (use the source's directly owning
|
|
41
|
+
# workspace, else the nearest ancestor workspace of a subagent source) and
|
|
42
|
+
# attaches the child after publication. That association only exists while
|
|
43
|
+
# this service is mounted, so the TUI inserts the same official row the web
|
|
44
|
+
# bundle does (the DSH installation already ships the package). Activating
|
|
45
|
+
# it also performs the official one-time history bootstrap that groups
|
|
46
|
+
# stored Session headers by canonical cwd into durable workspace records —
|
|
47
|
+
# an upstream migration, not a TUI invention, and the reason the row is
|
|
48
|
+
# documented in docs/client-server-coupling.md.
|
|
49
|
+
- id: workspace
|
|
50
|
+
name: '@deepseek-ai/dsh-workspace'
|
|
51
|
+
|
|
33
52
|
# The authorization seam (`ctx.authorization`): plugin-owned credential-
|
|
34
53
|
# obtaining flows, one attempt per key, transport-neutral notices and
|
|
35
54
|
# prompts. The dsh host does NOT mount it anywhere (the base layer ships
|
package/dist/builtins.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TUI_STARTUP_SERVICE } from "./startup.mjs";
|
|
1
|
+
import { B as PI_TUI_EXTENSIONS_SERVICE, I as dshVersion } from "./src-5aY9svZj.mjs";
|
|
2
|
+
import { n as TUI_STARTUP_SERVICE } from "./startup-CGeJ1k1B.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
//#region src/builtins.ts
|
package/dist/extensions.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import "./startup.mjs";
|
|
1
|
+
import { B as PI_TUI_EXTENSIONS_SERVICE, H as describeKey, L as apply, R as inject, V as API_VERSION, z as name } from "./src-5aY9svZj.mjs";
|
|
3
2
|
export { API_VERSION, PI_TUI_EXTENSIONS_SERVICE, apply, describeKey, inject, name };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { H as TuiAction } from "./public-types-YbB5Rhku.mjs";
|
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { Agent, ModelSelectionRef } from "@deepseek-ai/dsh-agent";
|
|
4
4
|
import { ContentBlock } from "@deepseek-ai/dsh-llm";
|
|
5
|
-
import {
|
|
5
|
+
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
6
6
|
import { Context } from "@deepseek-ai/cordis";
|
|
7
7
|
//#region src/image/admission.d.ts
|
|
8
8
|
/** Structural subset of `ImageAttachmentRef`. */
|
|
@@ -231,12 +231,6 @@ interface SurfaceCatalogContext {
|
|
|
231
231
|
}
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region src/commands.d.ts
|
|
234
|
-
/** A balanced completed-turn prefix for forking: the log up to (and including)
|
|
235
|
-
* the last `turn/end`. Undefined when no turn has completed yet.
|
|
236
|
-
* @param events - the session log.
|
|
237
|
-
* @returns the fork seed events, or undefined.
|
|
238
|
-
*/
|
|
239
|
-
declare function forkSeed(events: readonly SessionEvent[]): readonly SessionEvent[] | undefined;
|
|
240
234
|
/**
|
|
241
235
|
* The effective mode ONE submission resolved at the submit boundary: whether
|
|
242
236
|
* an agent-facing delivery steers into the running turn or queues behind it
|
|
@@ -830,8 +824,8 @@ declare function composeAgent(ctx: Context, installSelection: (agentCtx: Context
|
|
|
830
824
|
enabled: boolean;
|
|
831
825
|
}, diag?: Diag): Promise<AgentComposition>;
|
|
832
826
|
/**
|
|
833
|
-
* The preset a persisted session actually runs, read from DSH 0.1.6
|
|
834
|
-
*
|
|
827
|
+
* The preset a persisted session actually runs, read from the DSH 0.1.6 V3
|
|
828
|
+
* session projection (header initialization plus the latest selection event).
|
|
835
829
|
* @param ctx - the runner context.
|
|
836
830
|
* @param sessionId - the persisted session id.
|
|
837
831
|
* @returns the recorded preset id, or undefined to compose the default.
|
|
@@ -845,4 +839,4 @@ declare function recordedPreset(ctx: Context, sessionId: string): Promise<string
|
|
|
845
839
|
*/
|
|
846
840
|
declare function apply(ctx: Context, config: Config): void;
|
|
847
841
|
//#endregion
|
|
848
|
-
export { AgentComposition, CompactionFold, CompactionSettleSurface, Config, HOST_COMMAND_CATALOG, InitialCatalogResolution, InterruptAgentLike, InterruptWriteOutcome, InterruptWriterLike, LOCAL_COMMANDS, PendingSubagentCall, QueueFoldResult, QueueInboxMessage, ResolveInitialCatalogOptions, SESSIONLESS_COMMANDS, ViewerOpenToken, apply, busyAfterTurnBoundary, commandIsLocalForAttachments, commandRejectsImages, compactingFromLog, composeAgent, contextRefreshKind, createViewerOpenToken, dangerCommand, foldCompactionEvent, foldQueueRows,
|
|
842
|
+
export { AgentComposition, CompactionFold, CompactionSettleSurface, Config, HOST_COMMAND_CATALOG, InitialCatalogResolution, InterruptAgentLike, InterruptWriteOutcome, InterruptWriterLike, LOCAL_COMMANDS, PendingSubagentCall, QueueFoldResult, QueueInboxMessage, ResolveInitialCatalogOptions, SESSIONLESS_COMMANDS, ViewerOpenToken, apply, busyAfterTurnBoundary, commandIsLocalForAttachments, commandRejectsImages, compactingFromLog, composeAgent, contextRefreshKind, createViewerOpenToken, dangerCommand, foldCompactionEvent, foldQueueRows, inject, interruptAgent, isBareCommandLine, isLocalCommandLine, isPlainExitPrompt, matchPendingSubagentCall, name, normalizeSkillInvocation, recordedPreset, resolveInitialCatalog, resolveSubmitDelivery, resumeCommand, runningProfile, settleCompactionSurface, shouldConsumeAdvertisedMiss, subagentJobTranscriptId, subagentJobViewHint, taskRowSelectionDisposition, teardownViewerForSessionSwap, viewerActionCapability };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { A as shouldConsumeAdvertisedMiss, C as normalizeSkillInvocation, D as resumeCommand, E as resolveSubmitDelivery, F as viewerActionCapability,
|
|
2
|
-
|
|
3
|
-
export { Config, HOST_COMMAND_CATALOG, LOCAL_COMMANDS, SESSIONLESS_COMMANDS, apply, busyAfterTurnBoundary, commandIsLocalForAttachments, commandRejectsImages, compactingFromLog, composeAgent, contextRefreshKind, createViewerOpenToken, dangerCommand, foldCompactionEvent, foldQueueRows, forkSeed, inject, interruptAgent, isBareCommandLine, isLocalCommandLine, isPlainExitPrompt, matchPendingSubagentCall, name, normalizeSkillInvocation, recordedPreset, resolveInitialCatalog, resolveSubmitDelivery, resumeCommand, runningProfile, settleCompactionSurface, shouldConsumeAdvertisedMiss, subagentJobTranscriptId, subagentJobViewHint, taskRowSelectionDisposition, teardownViewerForSessionSwap, viewerActionCapability };
|
|
1
|
+
import { A as shouldConsumeAdvertisedMiss, C as normalizeSkillInvocation, D as resumeCommand, E as resolveSubmitDelivery, F as viewerActionCapability, M as subagentJobViewHint, N as taskRowSelectionDisposition, O as runningProfile, P as teardownViewerForSessionSwap, S as name, T as resolveInitialCatalog, _ as interruptAgent, a as apply, b as isPlainExitPrompt, c as commandRejectsImages, d as contextRefreshKind, f as createViewerOpenToken, g as inject, h as foldQueueRows, i as SESSIONLESS_COMMANDS, j as subagentJobTranscriptId, k as settleCompactionSurface, l as compactingFromLog, m as foldCompactionEvent, n as HOST_COMMAND_CATALOG, o as busyAfterTurnBoundary, p as dangerCommand, r as LOCAL_COMMANDS, s as commandIsLocalForAttachments, t as Config, u as composeAgent, v as isBareCommandLine, w as recordedPreset, x as matchPendingSubagentCall, y as isLocalCommandLine } from "./src-5aY9svZj.mjs";
|
|
2
|
+
export { Config, HOST_COMMAND_CATALOG, LOCAL_COMMANDS, SESSIONLESS_COMMANDS, apply, busyAfterTurnBoundary, commandIsLocalForAttachments, commandRejectsImages, compactingFromLog, composeAgent, contextRefreshKind, createViewerOpenToken, dangerCommand, foldCompactionEvent, foldQueueRows, inject, interruptAgent, isBareCommandLine, isLocalCommandLine, isPlainExitPrompt, matchPendingSubagentCall, name, normalizeSkillInvocation, recordedPreset, resolveInitialCatalog, resolveSubmitDelivery, resumeCommand, runningProfile, settleCompactionSurface, shouldConsumeAdvertisedMiss, subagentJobTranscriptId, subagentJobViewHint, taskRowSelectionDisposition, teardownViewerForSessionSwap, viewerActionCapability };
|