@crazyhappyone/dsh-tui 0.1.0-alpha.4 → 0.1.0-alpha.6

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.
@@ -0,0 +1,101 @@
1
+ # The deepseek-tui bundle patch: terminal-surface mode directly over dsh-base.
2
+ # It mounts no Host, HTTP server, Web runtime, or browser plugin. An ordinary
3
+ # provider plugin parses --resume/--cwd and the task positional, then the
4
+ # terminal driver creates an Agent through the core registry and prints its
5
+ # durable result. Unlike the web surface, the agent plane stays process-wide:
6
+ # dsh-base keeps tool-bash/tool-fs/tool-todo and friends because the TUI is
7
+ # single-session and composes its agent process-wide.
8
+
9
+ - id: system-prompt
10
+ config:
11
+ persona: >-
12
+ You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
13
+ You are interacting with the user through the deepseek-tui terminal interface.
14
+
15
+ # The shared module-reload HMR row stays off; the launcher's watch-only
16
+ # fallback still keeps the user patch layers live until the run exits.
17
+ - id: hmr
18
+ disabled: true
19
+
20
+ - id: tools
21
+ config:
22
+ # Keep the same temporary process-wide Code Mode opt-in as the Web surface.
23
+ mode: !!js process.env.DSH_TOOLS_MODE
24
+
25
+ - id: approval
26
+ config:
27
+ policy: !!js "(process.env.DSH_PERMISSION_MODE ?? 'workspace-write') === 'danger-full-access' ? 'never' : 'ask'"
28
+
29
+ # Full-text session search stays disabled until the first Ctrl+K search (the
30
+ # base row's `openAt: never`). The TUI has no browser-latency concern, so the
31
+ # node:sqlite import and in-memory handle open lazily on first search.
32
+ - id: session-query-sqlite
33
+ config:
34
+ path: ':memory:'
35
+ openAt: first-search
36
+
37
+ - insert:
38
+ # Code Mode is a core execution capability, not a Web component.
39
+ - id: code-runtime
40
+ name: "@deepseek-ai/dsh-code-runtime-worker-thread"
41
+
42
+ # Per-round token/duration stats for the terminal status line.
43
+ - id: session-stats
44
+ name: "@deepseek-ai/dsh-session-stats"
45
+
46
+ # Base owns the shared storage/domain/projection-cache stack. This layer
47
+ # contributes only the TUI-facing feedback consumer over that stack.
48
+ - id: message-feedback
49
+ name: "@deepseek-ai/dsh-message-feedback"
50
+ config:
51
+ maxNoteBytes: 8192
52
+
53
+ - id: tool-ask-user
54
+ name: "@deepseek-ai/dsh-tool-ask-user"
55
+
56
+ - id: tui-startup
57
+ name: "@deepseek-ai/dsh-tui/startup"
58
+
59
+ # Zero-config official OpenAI/Anthropic routes. They register
60
+ # openai-official / anthropic-official so they do not collide with the
61
+ # dormant llm-pi-ai catalog keys openai / anthropic that the Web Models
62
+ # page already owns.
63
+ - id: llm-openai
64
+ name: "@deepseek-ai/dsh-llm-openai"
65
+
66
+ - id: llm-anthropic
67
+ name: "@deepseek-ai/dsh-llm-anthropic"
68
+
69
+ # Reads its task from the ordinary tuiStartup provider.
70
+ - id: tui-runtime
71
+ name: "@deepseek-ai/dsh-tui"
72
+ inject: [tuiStartup]
73
+ config:
74
+ task: !!js ctx.tuiStartup.task
75
+ resume: !!js ctx.tuiStartup.resume
76
+ cwd: !!js ctx.tuiStartup.cwd
77
+ frameStats: !!js ctx.tuiStartup.frameStats
78
+ # Render policy (overscan + stream pacing + scroll pacing + cache budgets).
79
+ # Loaded by the runtime Config schema; the values below mirror the
80
+ # schema defaults so the deployment layer owns the tunables. Override
81
+ # here to retune without touching the plugin.
82
+ renderPolicy:
83
+ transcriptOverscan: 16
84
+ stream:
85
+ frameIntervalMs: 16
86
+ entryDepth: 64
87
+ exitDepth: 32
88
+ entryOldestAgeMs: 500
89
+ exitOldestAgeMs: 250
90
+ entryDrainBackpressureMs: 100
91
+ exitDrainBackpressureMs: 50
92
+ catchUpRowsPerFrame: 16
93
+ scroll:
94
+ frameIntervalMs: 16
95
+ stepPerFrame: 1
96
+ wheelRows: 3
97
+ catchUpThreshold: 10
98
+ maxCatchUpStep: 8
99
+ cache:
100
+ maxRows: 4096
101
+ maxBytes: 4194304