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

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,128 @@
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
+ - id: llm-deepseek
38
+ config:
39
+ models:
40
+ - id: deepseek-v4-flash
41
+ name: DeepSeek-V4-Flash
42
+ description: Fast, efficient, and economical; suited to focused, routine, or parallel tasks.
43
+ contextWindow: 1000000
44
+ - id: deepseek-v4-pro
45
+ name: DeepSeek-V4-Pro
46
+ description: Stronger agentic coding, knowledge, and difficult reasoning; suited to complex or quality-critical tasks at higher cost.
47
+ contextWindow: 1000000
48
+ - id: deepseek-v4-flash-vision-exp
49
+ name: DeepSeek-V4-Flash-Vision-Exp
50
+ contextWindow: 1000000
51
+ inputModalities: [text, image]
52
+ - id: deepseek-v4.1-flash-expires-on-0910
53
+ name: DeepSeek-V4.1-Flash
54
+ description: DeepSeek V4.1 Flash intermediate beta with native multimodal support, higher capability, faster speed, and lower cost.
55
+ contextWindow: 1000000
56
+ inputModalities: [text, image]
57
+
58
+ - id: agent-default-model
59
+ config:
60
+ provider: deepseek-official
61
+ model: !!js "process.env.DSH_MODEL ?? 'deepseek-v4-flash'"
62
+
63
+ - insert:
64
+ # Code Mode is a core execution capability, not a Web component.
65
+ - id: code-runtime
66
+ name: "@deepseek-ai/dsh-code-runtime-worker-thread"
67
+
68
+ # Per-round token/duration stats for the terminal status line.
69
+ - id: session-stats
70
+ name: "@deepseek-ai/dsh-session-stats"
71
+
72
+ # Base owns the shared storage/domain/projection-cache stack. This layer
73
+ # contributes only the TUI-facing feedback consumer over that stack.
74
+ - id: message-feedback
75
+ name: "@deepseek-ai/dsh-message-feedback"
76
+ config:
77
+ maxNoteBytes: 8192
78
+
79
+ - id: tool-ask-user
80
+ name: "@deepseek-ai/dsh-tool-ask-user"
81
+
82
+ - id: tui-startup
83
+ name: "@deepseek-ai/dsh-tui/startup"
84
+
85
+ # Zero-config official OpenAI/Anthropic routes. They register
86
+ # openai-official / anthropic-official so they do not collide with the
87
+ # dormant llm-pi-ai catalog keys openai / anthropic that the Web Models
88
+ # page already owns.
89
+ - id: llm-openai
90
+ name: "@deepseek-ai/dsh-llm-openai"
91
+
92
+ - id: llm-anthropic
93
+ name: "@deepseek-ai/dsh-llm-anthropic"
94
+
95
+ # Reads its task from the ordinary tuiStartup provider.
96
+ - id: tui-runtime
97
+ name: "@deepseek-ai/dsh-tui"
98
+ inject: [tuiStartup]
99
+ config:
100
+ task: !!js ctx.tuiStartup.task
101
+ resume: !!js ctx.tuiStartup.resume
102
+ cwd: !!js ctx.tuiStartup.cwd
103
+ model: !!js ctx.tuiStartup.model
104
+ frameStats: !!js ctx.tuiStartup.frameStats
105
+ # Render policy (overscan + stream pacing + scroll pacing + cache budgets).
106
+ # Loaded by the runtime Config schema; the values below mirror the
107
+ # schema defaults so the deployment layer owns the tunables. Override
108
+ # here to retune without touching the plugin.
109
+ renderPolicy:
110
+ transcriptOverscan: 16
111
+ stream:
112
+ frameIntervalMs: 16
113
+ entryDepth: 64
114
+ exitDepth: 32
115
+ entryOldestAgeMs: 500
116
+ exitOldestAgeMs: 250
117
+ entryDrainBackpressureMs: 100
118
+ exitDrainBackpressureMs: 50
119
+ catchUpRowsPerFrame: 16
120
+ scroll:
121
+ frameIntervalMs: 16
122
+ stepPerFrame: 1
123
+ wheelRows: 3
124
+ catchUpThreshold: 10
125
+ maxCatchUpStep: 8
126
+ cache:
127
+ maxRows: 4096
128
+ maxBytes: 4194304
Binary file