@xmoon76/dsh-pi-tui 0.5.6 → 0.5.8

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.
Files changed (90) hide show
  1. package/LICENSE +33 -0
  2. package/README.en.md +103 -814
  3. package/README.md +102 -711
  4. package/cordis.patch.yml +186 -0
  5. package/dist/acp-preferences.d.mts +29 -0
  6. package/dist/acp-preferences.mjs +15 -0
  7. package/dist/{bootstrap-DQ4YPL-7.mjs → bootstrap-CMIjGyuk.mjs} +33515 -7587
  8. package/dist/builtins.mjs +3 -3
  9. package/dist/{client-bootstrap-Cr1JCaF5.mjs → client-bootstrap-BjGPc-DM.mjs} +4637 -492
  10. package/dist/client-extension-loader-probe-BUw7q8bJ.mjs +119 -0
  11. package/dist/command-trust-DChWUamk.mjs +406 -0
  12. package/dist/daemon-launcher-Dult7Jxv.mjs +1932 -0
  13. package/dist/daemon-launcher.d.mts +159 -0
  14. package/dist/daemon-launcher.mjs +2 -0
  15. package/dist/diagnostics-D5jwc-q1.d.mts +11 -0
  16. package/dist/{dist-CIsR7cz4.mjs → dist-BFgC-5tL.mjs} +938 -487
  17. package/dist/entry-control-DjNsE3I0.mjs +190 -0
  18. package/dist/extension/advanced.d.mts +1 -1
  19. package/dist/extension/unstable.d.mts +1 -1
  20. package/dist/extension-config-probe-BDdvutkG.mjs +95 -0
  21. package/dist/extension-config.d.mts +29 -0
  22. package/dist/extension-config.mjs +22 -0
  23. package/dist/{extensions-Bp0L37lP.mjs → extensions-B4uLpSTv.mjs} +1109 -100
  24. package/dist/{extensions-Bte3XOt5.d.mts → extensions-C8eAM0gX.d.mts} +1 -1
  25. package/dist/extensions.d.mts +2 -2
  26. package/dist/extensions.mjs +1 -1
  27. package/dist/{host-bootstrap-DilsvA6f.mjs → host-bootstrap-MVxks641.mjs} +129 -24
  28. package/dist/{host-foundation-probe--5jtvHVe.mjs → host-foundation-probe-DMNTmNrH.mjs} +2 -2
  29. package/dist/host-runtime.d.mts +11 -5
  30. package/dist/host-runtime.mjs +4171 -920
  31. package/dist/index.d.mts +86 -174
  32. package/dist/index.mjs +38087 -9967
  33. package/dist/local-acp-listener-B65J0Bx4.mjs +3115 -0
  34. package/dist/local-client.mjs +1158 -59
  35. package/dist/local-daemon-control-C14q9KnD.mjs +1588 -0
  36. package/dist/local-daemon-control-TCnERL7n.mjs +1424 -0
  37. package/dist/local-discovery-DOSsCh9q.mjs +2883 -0
  38. package/dist/local-discovery-egN4_gsQ.mjs +2 -0
  39. package/dist/local-discovery-uOBfFq5j.mjs +2764 -0
  40. package/dist/local-host.mjs +812 -89
  41. package/dist/local-profile-daemon-admin-BmQSdzT0.mjs +210 -0
  42. package/dist/local-scope-DamiMqPd.mjs +1340 -0
  43. package/dist/{local-transport-BVwFYq_Y.mjs → local-transport-Iwo0mtu3.mjs} +313 -38
  44. package/dist/local-web-control-DMrjwCkl.mjs +454 -0
  45. package/dist/local-workspace-object-D06GL0UO.mjs +248 -0
  46. package/dist/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
  47. package/dist/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
  48. package/dist/open-CmOBxSjN.mjs +63 -0
  49. package/dist/persisted-setting-probe-DWZLtWoB.mjs +145 -0
  50. package/dist/pi-tui-acp-access-contract-BdLwduU6.mjs +75 -0
  51. package/dist/pi-tui-remote-contribution-Do8ECrUy.mjs +1492 -0
  52. package/dist/pi-tui-terminal-progress-contract-B3RoEzjK.mjs +146 -0
  53. package/dist/preferences.d.mts +17 -0
  54. package/dist/preferences.mjs +20 -0
  55. package/dist/preset-BcWqOtY7.mjs +46 -0
  56. package/dist/profile-preferences-migration-BfUGdPZx.mjs +500 -0
  57. package/dist/profile-preferences-migration-CThz4rHH.mjs +2 -0
  58. package/dist/prompt-sections-DUKmWb8g.mjs +2232 -0
  59. package/dist/prompt-sections-DXmjB58H.mjs +634 -0
  60. package/dist/{public-types-Dgf1bDke.d.mts → public-types-C1YgFtwC.d.mts} +56 -3
  61. package/dist/row-id-DPbyt9Nn.mjs +24 -0
  62. package/dist/{runtime-status-Cj1nFOdS.mjs → runtime-status-v-FTnWcD.mjs} +49 -3
  63. package/dist/schema-BTGYn8_X.d.mts +54 -0
  64. package/dist/schema-qE_P09zJ.mjs +124 -0
  65. package/dist/{session-BKGXyh80.mjs → session-C6tSs86s.mjs} +9672 -7270
  66. package/dist/{session-CPt_U8_f.mjs → session-CstInGIA.mjs} +9674 -7273
  67. package/dist/startup-CarQxWwi.d.mts +213 -0
  68. package/dist/{startup-7BYWuvBU.mjs → startup-EG5UqIcd.mjs} +341 -26
  69. package/dist/startup.d.mts +2 -99
  70. package/dist/startup.mjs +2 -2
  71. package/dist/{terminal-progress-source-DrqQhtT8.mjs → terminal-progress-source-CpfpQO_h.mjs} +2038 -67
  72. package/dist/{pasted-path-range-CMnxuGPx.mjs → transcript-view-C1YtJ49Y.mjs} +11590 -6718
  73. package/dist/{pasted-path-range-r6qzV_tC.mjs → transcript-view-CuJYWkhp.mjs} +12296 -6923
  74. package/dist/version-B9yC7bBk.mjs +83 -0
  75. package/dist/visual-tools.d.mts +1 -1
  76. package/dist/visual-tools.mjs +1 -1
  77. package/dist/web-preferences.d.mts +1 -1
  78. package/dist/{web-roster-CjqnUXNk.mjs → web-roster-Dis7BhrA.mjs} +63 -3
  79. package/generated/dsh-presets/cordis.patch.yml +4 -2
  80. package/generated/dsh-presets/ptc.patch.yml +4 -0
  81. package/generated/dsh-presets/standard.patch.yml +7 -0
  82. package/generated/web-access/cordis.patch.yml +239 -0
  83. package/package.json +217 -170
  84. package/dist/entry-control-DnduyDiw.mjs +0 -92
  85. package/dist/local-discovery-C9VMjc0K.mjs +0 -759
  86. package/dist/local-discovery-CDaQHA_R.mjs +0 -2
  87. package/dist/pi-tui-remote-contribution-B0EQsP0N.mjs +0 -85
  88. package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +0 -70
  89. package/dist/pi-tui-terminal-progress-contract-MLXZ-i3t.mjs +0 -905
  90. package/dist/version-a-eF-QER.mjs +0 -80
package/cordis.patch.yml CHANGED
@@ -11,6 +11,13 @@
11
11
  - id: tui-startup
12
12
  name: '@xmoon76/dsh-pi-tui/startup'
13
13
 
14
+ # M6-2A: the daemon Coordinator. Mounts ONLY when the startup row published
15
+ # `tuiDaemonStartup` (the daemon backend); it spawns the ONE foreground Client
16
+ # and owns its exit. It owns no Host, Session or Writer.
17
+ - id: pi-tui-daemon-launcher
18
+ name: '@xmoon76/dsh-pi-tui/daemon-launcher'
19
+ inject: [tuiDaemonStartup]
20
+
14
21
  # The extension platform (M3/E): the host provides the piTuiExtensions
15
22
  # service (third-party plugins inject it), the builtins row registers
16
23
  # the first-party chrome contributions through the SAME public API, and
@@ -19,10 +26,12 @@
19
26
  - id: pi-tui-extension-host
20
27
  name: '@xmoon76/dsh-pi-tui/extensions'
21
28
  inject: [tuiStartup]
29
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
22
30
 
23
31
  - id: pi-tui-builtins
24
32
  name: '@xmoon76/dsh-pi-tui/builtins'
25
33
  inject: [tuiStartup, piTuiExtensions]
34
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
26
35
 
27
36
  # The bundle's OWN Host performance projection (plan PR-1): the single
28
37
  # authority for the R5 / All model-request output rate and the recent TTFB.
@@ -35,6 +44,7 @@
35
44
  - id: pi-tui-performance-host
36
45
  name: '@xmoon76/dsh-pi-tui/performance-host'
37
46
  inject: [tuiStartup, sessionProjections]
47
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
38
48
 
39
49
  # Workspace file service (the OFFICIAL `@deepseek-ai/dsh-api-workspace-files`):
40
50
  # the ONE Host owner of the `workspaceFiles` Remote namespace the delivered-
@@ -47,6 +57,7 @@
47
57
  - id: workspace-files
48
58
  name: '@deepseek-ai/dsh-api-workspace-files'
49
59
  inject: [tuiStartup]
60
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
50
61
 
51
62
  # Visual tools: three Host tool definitions — the two generators
52
63
  # (`dsh_pi_tui_chart`, `dsh_pi_tui_svg`) and the publication tool
@@ -64,9 +75,34 @@
64
75
  # `present` and `agent-instructions` rows read). The result contract carries
65
76
  # no `presentationMeta` — the final durable content is the drawing's
66
77
  # admission source.
78
+ # M6-2A: a Host business row that does NOT gate on `tuiStartup`. In the
79
+ # daemon supervisor PID it must not register tools or own Host state; the
80
+ # real Host (detached local-host.mjs) owns them. Disabled only for the
81
+ # daemon supervisor, live in Direct / Host-only.
67
82
  - id: pi-tui-visual-tools
68
83
  name: '@xmoon76/dsh-pi-tui/visual-tools'
69
84
  inject: [tools, agents, sessionQuery, sessionProjections]
85
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
86
+
87
+ # The ONE Host MCP manager: the official `@deepseek-ai/dsh-mcp-manager`
88
+ # service (`ctx.mcpManager`) that owns the profile's `mcp-manager.servers`
89
+ # fleet plus every plugin `register()`ed server, and exposes `list`/`watch`/
90
+ # `probe`/`restart` to the Host and the authenticated Remote. It is declared
91
+ # ONCE here as a SHARED Host row — deliberately NOT a Web row — so Direct
92
+ # owns it with the Web frontend off and a Split Host keeps the SAME instance
93
+ # across `/web` on/off. No `config.servers` is declared: the user's profile
94
+ # configuration is inherited through the same row id, and the loader commits
95
+ # live `servers` updates without remounting the row.
96
+ #
97
+ # `credentials` is the official provider the manager resolves
98
+ # `${credential:…}` entry templates through; the class's own static
99
+ # `inject: ['tools']` still supplies the tool registry. The daemon
100
+ # supervisor PID owns no Host business state, so the row is absent there
101
+ # exactly like the other Host-owned rows below.
102
+ - id: mcp-manager
103
+ name: '@deepseek-ai/dsh-mcp-manager'
104
+ inject: [credentials]
105
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
70
106
 
71
107
  # The profile-owned Web startup preference (M5-W PR-C): ONE durable boolean,
72
108
  # `autoStart`, that a NEW Split Host reads BEFORE it becomes Ready. The row
@@ -77,6 +113,16 @@
77
113
  - id: pi-tui-web-preferences
78
114
  name: '@xmoon76/dsh-pi-tui/web-preferences'
79
115
 
116
+ # The profile-owned ACP startup preference (PO-1B): ONE durable boolean,
117
+ # `autoStart`, that a NEW Split Host reads BEFORE it becomes Ready to decide
118
+ # whether to bind the local ACP v1 Unix socket listener. The row performs no
119
+ # work; it exists so the official Settings service projects the section and
120
+ # the Loader persists the user patch. It is deliberately NOT gated on
121
+ # `tuiStartup`: a Direct process also loads the profile and must be able to
122
+ # edit the preference for the Split Host it may start later.
123
+ - id: pi-tui-acp-preferences
124
+ name: '@xmoon76/dsh-pi-tui/acp-preferences'
125
+
80
126
  # The OFFICIAL Host browser-callback listener for DeepSeek Account sign-in.
81
127
  # The account provider registers `/oauth/callback` on this instance while an
82
128
  # attempt is waiting for the browser; it is mounted here because the dsh-base
@@ -89,10 +135,29 @@
89
135
  - id: webserver
90
136
  name: '@deepseek-ai/dsh-host-webserver'
91
137
  inject: [tuiStartup]
138
+ # M6-2A: `webserver` is an app-boot REQUIRED entry. Under the daemon
139
+ # backend the CLI/supervisor PID publishes `tuiDaemonStartup` and must not
140
+ # serve (the real Host does); leaving the row enabled-but-pending on
141
+ # `tuiStartup` would fail startup with "1 required plugin did not
142
+ # activate". A conditional `disabled` makes the row legitimately absent in
143
+ # the daemon supervisor and live in Direct / Host-only graphs.
144
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
92
145
  config:
93
146
  host: 127.0.0.1
94
147
  port: 0
95
148
 
149
+ # The canonical profile-owned TUI preferences (M6 PR-A): the ONE hidden,
150
+ # profile-persisted Config carrier every backend reads — Direct, the Split
151
+ # Host and, through the Host settings wire, every Remote Client. It is a
152
+ # CONFIG-ONLY row: no TUI, Agent, Session, Gateway, timer or watcher. It is
153
+ # NOT gated on `tuiStartup` (a profile that runs `--help` still needs the
154
+ # canonical authority settled), and it is disabled only in the daemon
155
+ # supervisor, which owns no Host state. Its auto-generated settings page is
156
+ # hidden by the row itself; the TUI's own /settings drives it.
157
+ - id: pi-tui-preferences
158
+ name: '@xmoon76/dsh-pi-tui/preferences'
159
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
160
+
96
161
  - id: tui-app
97
162
  name: '@xmoon76/dsh-pi-tui'
98
163
  # `workspaceRegistry` is injected, not merely looked up: D2.4 Direct fork
@@ -114,6 +179,22 @@
114
179
  # are published, otherwise the Account page could start a sign-in the
115
180
  # Host cannot complete.
116
181
  inject: [tuiStartup, piTuiExtensions, authorization, workspaceRegistry, pluginManager, jobController, piTuiPerformanceReady, deepseekAccount, webServer]
182
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
183
+ config:
184
+ sessionId: ''
185
+
186
+ # The Split Host's ONE built-in Host Runtime row (the private contribution
187
+ # plus its business services). It is DECLARED here, disabled by default, so
188
+ # its config belongs to this bundle patch and the USER profile can own every
189
+ # saved preference; the Host-only overlay only flips `disabled: false`.
190
+ # Declaring it in that overlay instead would make the official ConfigEditor
191
+ # refuse every save ("overridden by a home patch or command-line overlay"),
192
+ # because this row is the Split Host's ONE live TUI settings authority.
193
+ # Direct keeps the `tui-app` row and the daemon supervisor mounts neither.
194
+ - id: split-host-pi-tui-runtime
195
+ name: '@xmoon76/dsh-pi-tui/host-runtime'
196
+ inject: [typert, agents, fileReferences, workingDirectory, sessions, subprocess, workspaceRegistry, skills, agentPresets]
197
+ disabled: true
117
198
  config:
118
199
  sessionId: ''
119
200
 
@@ -127,6 +208,8 @@
127
208
  # no Connection, no transport.
128
209
  - id: job-controller
129
210
  name: '@deepseek-ai/dsh-api-job-controller'
211
+ # M6-2A: not gated on `tuiStartup`; must not mount in the daemon supervisor.
212
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
130
213
 
131
214
  # Host-owned workspace membership (`ctx.workspaceRegistry`): D2.4 Direct
132
215
  # fork mirrors the official Host rule (use the source's directly owning
@@ -140,6 +223,10 @@
140
223
  # documented in docs/architecture/host-client.md.
141
224
  - id: workspace
142
225
  name: '@deepseek-ai/dsh-workspace'
226
+ # M6-2A: mounting this row performs the official one-time history bootstrap
227
+ # that WRITES workspace records. The daemon supervisor must not write Host
228
+ # state, so it is disabled only under the daemon backend.
229
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
143
230
 
144
231
  # The ONE Host Workspace commands/follow owner over the registry above
145
232
  # (`ctx.workspaceController`, Typert namespace `workspace`): the same
@@ -154,6 +241,22 @@
154
241
  - id: workspace-controller
155
242
  name: '@deepseek-ai/dsh-api-workspace-controller'
156
243
  inject: [tuiStartup]
244
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
245
+
246
+ # The ONE official Host directory-browsing backend (`ctx.directoryPicker`,
247
+ # browse capability): the existing Workspace Controller mounts its
248
+ # `DirectoryPickerController` child over this seam, and that child is what
249
+ # serves the generated `directoryPicker/list` Remote verb. The browse
250
+ # backend is chosen deliberately instead of the `auto` package, which may
251
+ # pick the host-display `native` chooser and leave remote clients without
252
+ # listing primitives. Mounting it creates no Workspace and no directory.
253
+ # `tuiStartup` is Direct's command-line admission; the Host-only overlay
254
+ # removes exactly that dependency in place, and no overlay inserts a second
255
+ # picker row.
256
+ - id: directory-picker
257
+ name: '@deepseek-ai/dsh-host-directory-picker-browse'
258
+ inject: [tuiStartup]
259
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
157
260
 
158
261
  # ── Host Schedule management (S5-PR4) ──────────────────────────────────
159
262
  # ONE Host Schedule domain shared by Direct and the Host-only Split
@@ -172,6 +275,7 @@
172
275
  - id: pi-tui-schedule
173
276
  name: '@deepseek-ai/dsh-schedule'
174
277
  inject: [tuiStartup, sessionController]
278
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
175
279
 
176
280
  # The three OFFICIAL Direct activation prerequisites of a Schedule target
177
281
  # that creates Sessions, declared exactly once for the Direct graph:
@@ -186,16 +290,19 @@
186
290
  - id: pi-tui-direct-connection
187
291
  name: '@deepseek-ai/dsh-client-connection'
188
292
  inject: [tuiStartup, credentials, webServer]
293
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
189
294
  config:
190
295
  trustedHosts: []
191
296
 
192
297
  - id: pi-tui-direct-file-upload
193
298
  name: '@deepseek-ai/dsh-client-file-upload'
194
299
  inject: [tuiStartup, agents, attachments, commands, connection]
300
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
195
301
 
196
302
  - id: pi-tui-direct-session-controller
197
303
  name: '@deepseek-ai/dsh-api-session-controller'
198
304
  inject: [tuiStartup, agentDefaultModel, agents, attachments, fileUploads, fs, llm, remoteAccess, sessions, sessionProjections, sessionQuery, typert, typertGateway, workspaceRegistry]
305
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
199
306
  config:
200
307
  nativeOpen: false
201
308
 
@@ -211,11 +318,15 @@
211
318
  # historical send-time absolute-path rewrite is retired with it.
212
319
  - id: file-reference-local
213
320
  name: '@deepseek-ai/dsh-file-reference-local'
321
+ # M6-2A: not gated on `tuiStartup`; must not mount in the daemon supervisor.
322
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
214
323
 
215
324
  # Shared Host prompt guidance for delivered file links and present results.
216
325
  # Independent of Web serving; inherited unchanged by Direct and Split Host.
217
326
  - id: deliverable-file-references
218
327
  name: '@deepseek-ai/dsh-deliverable-file-references'
328
+ # M6-2A: not gated on `tuiStartup`; must not mount in the daemon supervisor.
329
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
219
330
 
220
331
  # The 0.1.7 declarative preset registry: preset identity, revisions and
221
332
  # default/selection policy are registry-owned (deployment `default` here;
@@ -334,3 +445,78 @@
334
445
 
335
446
  - id: tool-web
336
447
  disabled: true
448
+
449
+ # ── M6-2A daemon-supervisor Host-business isolation ────────────────────────
450
+ # Under the daemon backend the `dsh --profile pi-tui` CLI is a short-lived
451
+ # supervisor; the real Host is the detached local-host.mjs. These are the
452
+ # official dsh-base rows that would be a SECOND Host Session/Storage/Jobs/
453
+ # Gateway/Account authority if they mounted in the supervisor, so they are
454
+ # disabled for the daemon backend only (condition evaluated per entry; Direct
455
+ # and Host-only never publish tuiDaemonStartup and keep every row unchanged).
456
+
457
+ - id: session
458
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
459
+
460
+ - id: session-log-deepseek
461
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
462
+
463
+ - id: session-persistence-jsonl
464
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
465
+
466
+ - id: session-query-sqlite
467
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
468
+
469
+ - id: storage
470
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
471
+
472
+ - id: storage-json
473
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
474
+
475
+ - id: storage-domain
476
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
477
+
478
+ - id: session-projection
479
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
480
+
481
+ - id: session-projection-cache
482
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
483
+
484
+ - id: session-title
485
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
486
+
487
+ - id: session-title-llm
488
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
489
+
490
+ - id: jobs
491
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
492
+
493
+ - id: typert-gateway
494
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
495
+
496
+ - id: remote-access
497
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
498
+
499
+ - id: plugin-manager
500
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
501
+
502
+ - id: plugin-package-inventory-deepseek
503
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
504
+
505
+ - id: credentials
506
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
507
+
508
+ - id: deepseek-account
509
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
510
+
511
+ - id: authorization
512
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
513
+
514
+ - id: otel
515
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
516
+
517
+ - id: session-telemetry-otel
518
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
519
+
520
+ - id: attachment-local
521
+ disabled: !!js "ctx.get('tuiDaemonStartup') !== undefined"
522
+
@@ -0,0 +1,29 @@
1
+ import z from "@deepseek-ai/schemastery";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+
4
+ //#region src/app/host/acp-preferences.d.ts
5
+ /** Stable Cordis plugin name (the Loader row id in `cordis.patch.yml`). */
6
+ declare const name = "pi-tui-acp-preferences";
7
+ /**
8
+ * The row's profile-wide preference document.
9
+ *
10
+ * `autoStart` is the NEXT Split Host's cold-boot behavior; it is independent of
11
+ * the CURRENT Host's ACP listener state and is never a second runtime authority.
12
+ * The field is volatile so the official Settings form can project it and the
13
+ * Loader commits a saved value into the running reference.
14
+ */
15
+ interface Config {
16
+ /** Bind the local ACP v1 listener while a new Split Host boots. */
17
+ autoStart: boolean;
18
+ }
19
+ /** The Config schema the Loader resolves (default OFF, live form field). */
20
+ declare const Config: z<Config>;
21
+ /**
22
+ * No execution: the preference is read only by the Host cold-boot sequence.
23
+ *
24
+ * @param ctx - the Host context this row is mounted in (unused by contract).
25
+ * @param config - the resolved preference document (unused by contract).
26
+ */
27
+ declare function apply(ctx: Context, config: Config): void;
28
+ //#endregion
29
+ export { Config, apply, name };
@@ -0,0 +1,15 @@
1
+ import z from "@deepseek-ai/schemastery";
2
+ //#region src/app/host/acp-preferences.ts
3
+ /** Stable Cordis plugin name (the Loader row id in `cordis.patch.yml`). */
4
+ const name = "pi-tui-acp-preferences";
5
+ /** The Config schema the Loader resolves (default OFF, live form field). */
6
+ const Config = z.object({ autoStart: z.boolean().default(false).volatile() });
7
+ /**
8
+ * No execution: the preference is read only by the Host cold-boot sequence.
9
+ *
10
+ * @param ctx - the Host context this row is mounted in (unused by contract).
11
+ * @param config - the resolved preference document (unused by contract).
12
+ */
13
+ function apply(ctx, config) {}
14
+ //#endregion
15
+ export { Config, apply, name };