@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmoon76/dsh-pi-tui",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "The dsh-pi-tui bundle: a TUI surface for DeepSeek Harness profiles (dsh --profile pi-tui)",
5
5
  "license": "MIT",
6
6
  "author": "XMoon <xmoonox@gmail.com>",
@@ -64,6 +64,22 @@
64
64
  "types": "./dist/web-preferences.d.mts",
65
65
  "default": "./dist/web-preferences.mjs"
66
66
  },
67
+ "./daemon-launcher": {
68
+ "types": "./dist/daemon-launcher.d.mts",
69
+ "default": "./dist/daemon-launcher.mjs"
70
+ },
71
+ "./acp-preferences": {
72
+ "types": "./dist/acp-preferences.d.mts",
73
+ "default": "./dist/acp-preferences.mjs"
74
+ },
75
+ "./preferences": {
76
+ "types": "./dist/preferences.d.mts",
77
+ "default": "./dist/preferences.mjs"
78
+ },
79
+ "./extension-config": {
80
+ "types": "./dist/extension-config.d.mts",
81
+ "default": "./dist/extension-config.mjs"
82
+ },
67
83
  "./cordis.patch.yml": "./cordis.patch.yml",
68
84
  "./package.json": "./package.json"
69
85
  },
@@ -82,6 +98,7 @@
82
98
  "bundle": {
83
99
  "patch": [
84
100
  "./cordis.patch.yml",
101
+ "./generated/web-access/cordis.patch.yml",
85
102
  "./generated/dsh-presets/standard.patch.yml",
86
103
  "./generated/dsh-presets/ptc.patch.yml",
87
104
  "./generated/dsh-presets/minimal.patch.yml",
@@ -90,6 +107,7 @@
90
107
  }
91
108
  },
92
109
  "dependencies": {
110
+ "@agentclientprotocol/sdk": "1.4.0",
93
111
  "@resvg/resvg-js": "2.6.2",
94
112
  "@stencil-hq/tern": "0.2.0",
95
113
  "chalk": "^5.4.1",
@@ -108,194 +126,216 @@
108
126
  "peerDependencies": {
109
127
  "@deepseek-ai/cordis": "~4.1.0",
110
128
  "@deepseek-ai/cordis-plugin-loader": "~1.1.0",
111
- "@deepseek-ai/dsh-agent": ">=0.2.2-rc.1",
112
- "@deepseek-ai/dsh-agent-default-model": ">=0.2.2-rc.1",
113
- "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.1",
114
- "@deepseek-ai/dsh-api-gateway": ">=0.2.2-rc.1",
115
- "@deepseek-ai/dsh-api-job-controller": ">=0.2.2-rc.1",
116
- "@deepseek-ai/dsh-api-session-controller": ">=0.2.2-rc.1",
117
- "@deepseek-ai/dsh-api-settings-controller": ">=0.2.2-rc.1",
118
- "@deepseek-ai/dsh-api-workspace-controller": ">=0.2.2-rc.1",
119
- "@deepseek-ai/dsh-api-workspace-files": ">=0.2.2-rc.1",
120
- "@deepseek-ai/dsh-attachment": ">=0.2.2-rc.1",
121
- "@deepseek-ai/dsh-authorization": ">=0.2.2-rc.1",
122
- "@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.1",
123
- "@deepseek-ai/dsh-client-file-upload": ">=0.2.2-rc.1",
124
- "@deepseek-ai/dsh-client-store": ">=0.2.2-rc.1",
125
- "@deepseek-ai/dsh-cmdline": ">=0.2.2-rc.1",
126
- "@deepseek-ai/dsh-commands": ">=0.2.2-rc.1",
127
- "@deepseek-ai/dsh-credentials": ">=0.2.2-rc.1",
128
- "@deepseek-ai/dsh-file-reference": ">=0.2.2-rc.1",
129
- "@deepseek-ai/dsh-goal": ">=0.2.2-rc.1",
130
- "@deepseek-ai/dsh-jobs": ">=0.2.2-rc.1",
131
- "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1",
132
- "@deepseek-ai/dsh-llm-retry": ">=0.2.2-rc.1",
133
- "@deepseek-ai/dsh-official-bundles": ">=0.2.2-rc.1",
134
- "@deepseek-ai/dsh-permission-presets": ">=0.2.2-rc.1",
135
- "@deepseek-ai/dsh-plan-mode": ">=0.2.2-rc.1",
136
- "@deepseek-ai/dsh-plugin-manager": ">=0.2.2-rc.1",
137
- "@deepseek-ai/dsh-sandbox-policy": ">=0.2.2-rc.1",
138
- "@deepseek-ai/dsh-schedule": ">=0.2.2-rc.1",
139
- "@deepseek-ai/dsh-session": ">=0.2.2-rc.1",
140
- "@deepseek-ai/dsh-session-log-export": ">=0.2.2-rc.1",
141
- "@deepseek-ai/dsh-session-persistence": ">=0.2.2-rc.1",
142
- "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.1",
143
- "@deepseek-ai/dsh-session-title": ">=0.2.2-rc.1",
144
- "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1",
145
- "@deepseek-ai/dsh-shell": ">=0.2.2-rc.1",
146
- "@deepseek-ai/dsh-skill": ">=0.2.2-rc.1",
147
- "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.1",
148
- "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.1",
149
- "@deepseek-ai/dsh-tool-executor-ptc": ">=0.2.2-rc.1",
150
- "@deepseek-ai/dsh-tool-todo": ">=0.2.2-rc.1",
151
- "@deepseek-ai/dsh-tool-workflow": ">=0.2.2-rc.1",
152
- "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1",
153
- "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.1",
154
- "@deepseek-ai/dsh-typert-registry": ">=0.2.2-rc.1",
155
- "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.1",
156
- "@deepseek-ai/dsh-user-questions": ">=0.2.2-rc.1",
129
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.3",
130
+ "@deepseek-ai/dsh-agent-default-model": ">=0.2.2-rc.3",
131
+ "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.3",
132
+ "@deepseek-ai/dsh-agent-team": ">=0.2.2-rc.3",
133
+ "@deepseek-ai/dsh-api-gateway": ">=0.2.2-rc.3",
134
+ "@deepseek-ai/dsh-api-job-controller": ">=0.2.2-rc.3",
135
+ "@deepseek-ai/dsh-api-session-controller": ">=0.2.2-rc.3",
136
+ "@deepseek-ai/dsh-api-settings-controller": ">=0.2.2-rc.3",
137
+ "@deepseek-ai/dsh-api-workspace-controller": ">=0.2.2-rc.3",
138
+ "@deepseek-ai/dsh-api-workspace-files": ">=0.2.2-rc.3",
139
+ "@deepseek-ai/dsh-attachment": ">=0.2.2-rc.3",
140
+ "@deepseek-ai/dsh-authorization": ">=0.2.2-rc.3",
141
+ "@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.3",
142
+ "@deepseek-ai/dsh-client-file-upload": ">=0.2.2-rc.3",
143
+ "@deepseek-ai/dsh-cmdline": ">=0.2.2-rc.3",
144
+ "@deepseek-ai/dsh-commands": ">=0.2.2-rc.3",
145
+ "@deepseek-ai/dsh-credentials": ">=0.2.2-rc.3",
146
+ "@deepseek-ai/dsh-cua": ">=0.2.2-rc.3",
147
+ "@deepseek-ai/dsh-deepseek-account": ">=0.2.2-rc.3",
148
+ "@deepseek-ai/dsh-file-reference": ">=0.2.2-rc.3",
149
+ "@deepseek-ai/dsh-file-reference-local": ">=0.2.2-rc.3",
150
+ "@deepseek-ai/dsh-goal": ">=0.2.2-rc.3",
151
+ "@deepseek-ai/dsh-host-directory-picker": ">=0.2.2-rc.3",
152
+ "@deepseek-ai/dsh-jobs": ">=0.2.2-rc.3",
153
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.3",
154
+ "@deepseek-ai/dsh-llm-retry": ">=0.2.2-rc.3",
155
+ "@deepseek-ai/dsh-mcp-manager": ">=0.2.2-rc.3",
156
+ "@deepseek-ai/dsh-official-bundles": ">=0.2.2-rc.3",
157
+ "@deepseek-ai/dsh-permission-presets": ">=0.2.2-rc.3",
158
+ "@deepseek-ai/dsh-plan-mode": ">=0.2.2-rc.3",
159
+ "@deepseek-ai/dsh-plugin-manager": ">=0.2.2-rc.3",
160
+ "@deepseek-ai/dsh-sandbox": ">=0.2.2-rc.3",
161
+ "@deepseek-ai/dsh-sandbox-policy": ">=0.2.2-rc.3",
162
+ "@deepseek-ai/dsh-schedule": ">=0.2.2-rc.3",
163
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.3",
164
+ "@deepseek-ai/dsh-session-log-export": ">=0.2.2-rc.3",
165
+ "@deepseek-ai/dsh-session-persistence": ">=0.2.2-rc.3",
166
+ "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.3",
167
+ "@deepseek-ai/dsh-session-title": ">=0.2.2-rc.3",
168
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.3",
169
+ "@deepseek-ai/dsh-shell": ">=0.2.2-rc.3",
170
+ "@deepseek-ai/dsh-skill": ">=0.2.2-rc.3",
171
+ "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.3",
172
+ "@deepseek-ai/dsh-subprocess": ">=0.2.2-rc.3",
173
+ "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.3",
174
+ "@deepseek-ai/dsh-tool-executor-ptc": ">=0.2.2-rc.3",
175
+ "@deepseek-ai/dsh-tool-todo": ">=0.2.2-rc.3",
176
+ "@deepseek-ai/dsh-tool-workflow": ">=0.2.2-rc.3",
177
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.3",
178
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.3",
179
+ "@deepseek-ai/dsh-typert-registry": ">=0.2.2-rc.3",
180
+ "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.3",
181
+ "@deepseek-ai/dsh-user-questions": ">=0.2.2-rc.3",
157
182
  "@deepseek-ai/schemastery": "~3.19.0"
158
183
  },
159
184
  "devDependencies": {
160
185
  "@deepseek-ai/cordis": "4.1.0",
161
186
  "@deepseek-ai/cordis-plugin-loader": "1.1.0",
162
- "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
163
- "@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.1",
164
- "@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.1",
165
- "@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
166
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
167
- "@deepseek-ai/dsh-agent-preset": "0.2.2-rc.1",
168
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.1",
169
- "@deepseek-ai/dsh-agent-tool-presentation": "0.2.2-rc.1",
170
- "@deepseek-ai/dsh-api-gateway": "0.2.2-rc.1",
171
- "@deepseek-ai/dsh-api-job-controller": "0.2.2-rc.1",
172
- "@deepseek-ai/dsh-api-remote-access": "0.2.2-rc.1",
173
- "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
174
- "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
175
- "@deepseek-ai/dsh-api-settings-controller": "0.2.2-rc.1",
176
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.1",
177
- "@deepseek-ai/dsh-api-workspace-files": "0.2.2-rc.1",
178
- "@deepseek-ai/dsh-app-boot": "0.2.2-rc.1",
179
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
180
- "@deepseek-ai/dsh-base": "0.2.2-rc.1",
181
- "@deepseek-ai/dsh-attachment-local": "0.2.2-rc.1",
182
- "@deepseek-ai/dsh-authorization": "0.2.2-rc.1",
183
- "@deepseek-ai/dsh-brand": "0.2.2-rc.1",
184
- "@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
185
- "@deepseek-ai/dsh-client-file-upload": "0.2.2-rc.1",
186
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
187
- "@deepseek-ai/dsh-cmdline": "0.2.2-rc.1",
188
- "@deepseek-ai/dsh-command-compact": "0.2.2-rc.1",
189
- "@deepseek-ai/dsh-command-goal": "0.2.2-rc.1",
190
- "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
191
- "@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.1",
192
- "@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.2-rc.1",
193
- "@deepseek-ai/dsh-config-editor": "0.2.2-rc.1",
194
- "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
195
- "@deepseek-ai/dsh-credentials-local": "0.2.2-rc.1",
196
- "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.1",
197
- "@deepseek-ai/dsh-deepseek-account-platform": "0.2.2-rc.1",
198
- "@deepseek-ai/dsh-file-reference": "0.2.2-rc.1",
199
- "@deepseek-ai/dsh-file-reference-local": "0.2.2-rc.1",
200
- "@deepseek-ai/dsh-fs-local": "0.2.2-rc.1",
201
- "@deepseek-ai/dsh-goal": "0.2.2-rc.1",
202
- "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
203
- "@deepseek-ai/dsh-jobs": "0.2.2-rc.1",
204
- "@deepseek-ai/dsh-jobs-local": "0.2.2-rc.1",
205
- "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
206
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
207
- "@deepseek-ai/dsh-llm-deepseek-account": "0.2.2-rc.1",
208
- "@deepseek-ai/dsh-llm-retry": "0.2.2-rc.1",
209
- "@deepseek-ai/dsh-official-bundles": "0.2.2-rc.1",
210
- "@deepseek-ai/dsh-permission-presets": "0.2.2-rc.1",
211
- "@deepseek-ai/dsh-persona": "0.2.2-rc.1",
212
- "@deepseek-ai/dsh-plan-mode": "0.2.2-rc.1",
213
- "@deepseek-ai/dsh-plugin-manager": "0.2.2-rc.1",
214
- "@deepseek-ai/dsh-remote-mock": "0.2.2-rc.1",
215
- "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
216
- "@deepseek-ai/dsh-schedule": "0.2.2-rc.1",
217
- "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
218
- "@deepseek-ai/dsh-session": "0.2.2-rc.1",
219
- "@deepseek-ai/dsh-session-format": "0.2.2-rc.1",
220
- "@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.2-rc.1",
221
- "@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.1",
222
- "@deepseek-ai/dsh-session-log-export": "0.2.2-rc.1",
223
- "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
224
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
225
- "@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
226
- "@deepseek-ai/dsh-session-query": "0.2.2-rc.1",
227
- "@deepseek-ai/dsh-session-query-sqlite": "0.2.2-rc.1",
228
- "@deepseek-ai/dsh-session-stats": "0.2.2-rc.1",
229
- "@deepseek-ai/dsh-session-title": "0.2.2-rc.1",
230
- "@deepseek-ai/dsh-session-turn-outline": "0.2.2-rc.1",
231
- "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
232
- "@deepseek-ai/dsh-shell": "0.2.2-rc.1",
233
- "@deepseek-ai/dsh-shell-env": "0.2.2-rc.1",
234
- "@deepseek-ai/dsh-skill": "0.2.2-rc.1",
235
- "@deepseek-ai/dsh-skill-filesystem": "0.2.2-rc.1",
236
- "@deepseek-ai/dsh-storage": "0.2.2-rc.1",
237
- "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.1",
238
- "@deepseek-ai/dsh-storage-json": "0.2.2-rc.1",
239
- "@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
240
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.1",
241
- "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
242
- "@deepseek-ai/dsh-terminal": "0.2.2-rc.1",
243
- "@deepseek-ai/dsh-time-context": "0.2.2-rc.1",
244
- "@deepseek-ai/dsh-timeout": "0.2.2-rc.1",
245
- "@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
246
- "@deepseek-ai/dsh-tool-ask-user": "0.2.2-rc.1",
247
- "@deepseek-ai/dsh-tool-bash": "0.2.2-rc.1",
248
- "@deepseek-ai/dsh-tool-cordis": "0.2.2-rc.1",
249
- "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
250
- "@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.1",
251
- "@deepseek-ai/dsh-tool-fs": "0.2.2-rc.1",
252
- "@deepseek-ai/dsh-tool-fs-search": "0.2.2-rc.1",
253
- "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.1",
254
- "@deepseek-ai/dsh-tool-jobs": "0.2.2-rc.1",
255
- "@deepseek-ai/dsh-tool-pwsh": "0.2.2-rc.1",
256
- "@deepseek-ai/dsh-tool-skill": "0.2.2-rc.1",
257
- "@deepseek-ai/dsh-tool-str-replace-editor": "0.2.2-rc.1",
258
- "@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.1",
259
- "@deepseek-ai/dsh-tool-subagent-control": "0.2.2-rc.1",
260
- "@deepseek-ai/dsh-tool-testkit": "0.2.2-rc.1",
261
- "@deepseek-ai/dsh-tool-todo": "0.2.2-rc.1",
262
- "@deepseek-ai/dsh-tool-web": "0.2.2-rc.1",
263
- "@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.1",
264
- "@deepseek-ai/dsh-tool-working-directory": "0.2.2-rc.1",
265
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
266
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
267
- "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.1",
268
- "@deepseek-ai/dsh-util-time": "0.2.2-rc.1",
269
- "@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
270
- "@deepseek-ai/dsh-user-questions": "0.2.2-rc.1",
271
- "@deepseek-ai/dsh-web": "0.2.2-rc.1",
272
- "@deepseek-ai/dsh-web-app": "0.2.2-rc.1",
273
- "@deepseek-ai/dsh-web-deepseek-api": "0.2.2-rc.1",
274
- "@deepseek-ai/dsh-web-fetch-http": "0.2.2-rc.1",
275
- "@deepseek-ai/dsh-web-search-deepseek": "0.2.2-rc.1",
276
- "@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
277
- "@deepseek-ai/dsh-workspace": "0.2.2-rc.1",
187
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.5",
188
+ "@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.5",
189
+ "@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.5",
190
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-rc.5",
191
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.5",
192
+ "@deepseek-ai/dsh-agent-preset": "0.2.2-rc.5",
193
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.5",
194
+ "@deepseek-ai/dsh-agent-team": "0.2.2-rc.5",
195
+ "@deepseek-ai/dsh-agent-tool-presentation": "0.2.2-rc.5",
196
+ "@deepseek-ai/dsh-api-gateway": "0.2.2-rc.5",
197
+ "@deepseek-ai/dsh-api-job-controller": "0.2.2-rc.5",
198
+ "@deepseek-ai/dsh-api-remote-access": "0.2.2-rc.5",
199
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.5",
200
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.5",
201
+ "@deepseek-ai/dsh-api-settings-controller": "0.2.2-rc.5",
202
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.5",
203
+ "@deepseek-ai/dsh-api-workspace-files": "0.2.2-rc.5",
204
+ "@deepseek-ai/dsh-app-boot": "0.2.2-rc.5",
205
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.5",
206
+ "@deepseek-ai/dsh-attachment-local": "0.2.2-rc.5",
207
+ "@deepseek-ai/dsh-authorization": "0.2.2-rc.5",
208
+ "@deepseek-ai/dsh-base": "0.2.2-rc.5",
209
+ "@deepseek-ai/dsh-bash-sandbox": "0.2.2-rc.5",
210
+ "@deepseek-ai/dsh-brand": "0.2.2-rc.5",
211
+ "@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
212
+ "@deepseek-ai/dsh-client-file-upload": "0.2.2-rc.5",
213
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
214
+ "@deepseek-ai/dsh-cmdline": "0.2.2-rc.5",
215
+ "@deepseek-ai/dsh-command-compact": "0.2.2-rc.5",
216
+ "@deepseek-ai/dsh-command-goal": "0.2.2-rc.5",
217
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.5",
218
+ "@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.5",
219
+ "@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.2-rc.5",
220
+ "@deepseek-ai/dsh-config-editor": "0.2.2-rc.5",
221
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.5",
222
+ "@deepseek-ai/dsh-credentials-local": "0.2.2-rc.5",
223
+ "@deepseek-ai/dsh-cua": "0.2.2-rc.5",
224
+ "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.5",
225
+ "@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.2-rc.5",
226
+ "@deepseek-ai/dsh-file-reference": "0.2.2-rc.5",
227
+ "@deepseek-ai/dsh-file-reference-local": "0.2.2-rc.5",
228
+ "@deepseek-ai/dsh-fs-local": "0.2.2-rc.5",
229
+ "@deepseek-ai/dsh-goal": "0.2.2-rc.5",
230
+ "@deepseek-ai/dsh-host-directory-picker": "0.2.2-rc.5",
231
+ "@deepseek-ai/dsh-host-directory-picker-browse": "0.2.2-rc.5",
232
+ "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.5",
233
+ "@deepseek-ai/dsh-jobs": "0.2.2-rc.5",
234
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-rc.5",
235
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.5",
236
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.5",
237
+ "@deepseek-ai/dsh-llm-deepseek-account": "0.2.2-rc.5",
238
+ "@deepseek-ai/dsh-llm-retry": "0.2.2-rc.5",
239
+ "@deepseek-ai/dsh-mcp-client": "0.2.2-rc.5",
240
+ "@deepseek-ai/dsh-mcp-manager": "0.2.2-rc.5",
241
+ "@deepseek-ai/dsh-official-bundles": "0.2.2-rc.5",
242
+ "@deepseek-ai/dsh-permission-presets": "0.2.2-rc.5",
243
+ "@deepseek-ai/dsh-persona": "0.2.2-rc.5",
244
+ "@deepseek-ai/dsh-plan-mode": "0.2.2-rc.5",
245
+ "@deepseek-ai/dsh-plugin-manager": "0.2.2-rc.5",
246
+ "@deepseek-ai/dsh-pwsh-sandbox": "0.2.2-rc.5",
247
+ "@deepseek-ai/dsh-remote-mock": "0.2.2-rc.5",
248
+ "@deepseek-ai/dsh-sandbox": "0.2.2-rc.5",
249
+ "@deepseek-ai/dsh-sandbox-local": "0.2.2-rc.5",
250
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.5",
251
+ "@deepseek-ai/dsh-schedule": "0.2.2-rc.5",
252
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.5",
253
+ "@deepseek-ai/dsh-session": "0.2.2-rc.5",
254
+ "@deepseek-ai/dsh-session-format": "0.2.2-rc.5",
255
+ "@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.2-rc.5",
256
+ "@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.5",
257
+ "@deepseek-ai/dsh-session-log-deepseek": "0.2.2-rc.5",
258
+ "@deepseek-ai/dsh-session-log-export": "0.2.2-rc.5",
259
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.5",
260
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.5",
261
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.5",
262
+ "@deepseek-ai/dsh-session-query": "0.2.2-rc.5",
263
+ "@deepseek-ai/dsh-session-query-sqlite": "0.2.2-rc.5",
264
+ "@deepseek-ai/dsh-session-stats": "0.2.2-rc.5",
265
+ "@deepseek-ai/dsh-session-title": "0.2.2-rc.5",
266
+ "@deepseek-ai/dsh-session-turn-outline": "0.2.2-rc.5",
267
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.5",
268
+ "@deepseek-ai/dsh-shell": "0.2.2-rc.5",
269
+ "@deepseek-ai/dsh-shell-env": "0.2.2-rc.5",
270
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.5",
271
+ "@deepseek-ai/dsh-skill-filesystem": "0.2.2-rc.5",
272
+ "@deepseek-ai/dsh-storage": "0.2.2-rc.5",
273
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.5",
274
+ "@deepseek-ai/dsh-storage-json": "0.2.2-rc.5",
275
+ "@deepseek-ai/dsh-subagent": "0.2.2-rc.5",
276
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.5",
277
+ "@deepseek-ai/dsh-subprocess": "0.2.2-rc.5",
278
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.5",
279
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
280
+ "@deepseek-ai/dsh-terminal": "0.2.2-rc.5",
281
+ "@deepseek-ai/dsh-time-context": "0.2.2-rc.5",
282
+ "@deepseek-ai/dsh-timeout": "0.2.2-rc.5",
283
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.5",
284
+ "@deepseek-ai/dsh-tool-ask-user": "0.2.2-rc.5",
285
+ "@deepseek-ai/dsh-tool-bash": "0.2.2-rc.5",
286
+ "@deepseek-ai/dsh-tool-cordis": "0.2.2-rc.5",
287
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.5",
288
+ "@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.5",
289
+ "@deepseek-ai/dsh-tool-fs": "0.2.2-rc.5",
290
+ "@deepseek-ai/dsh-tool-fs-search": "0.2.2-rc.5",
291
+ "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.5",
292
+ "@deepseek-ai/dsh-tool-jobs": "0.2.2-rc.5",
293
+ "@deepseek-ai/dsh-tool-pwsh": "0.2.2-rc.5",
294
+ "@deepseek-ai/dsh-tool-skill": "0.2.2-rc.5",
295
+ "@deepseek-ai/dsh-tool-str-replace-editor": "0.2.2-rc.5",
296
+ "@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.5",
297
+ "@deepseek-ai/dsh-tool-subagent-control": "0.2.2-rc.5",
298
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-rc.5",
299
+ "@deepseek-ai/dsh-tool-todo": "0.2.2-rc.5",
300
+ "@deepseek-ai/dsh-tool-web": "0.2.2-rc.5",
301
+ "@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.5",
302
+ "@deepseek-ai/dsh-tool-working-directory": "0.2.2-rc.5",
303
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.5",
304
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.5",
305
+ "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.5",
306
+ "@deepseek-ai/dsh-user-approval": "0.2.2-rc.5",
307
+ "@deepseek-ai/dsh-user-questions": "0.2.2-rc.5",
308
+ "@deepseek-ai/dsh-util-time": "0.2.2-rc.5",
309
+ "@deepseek-ai/dsh-web": "0.2.2-rc.5",
310
+ "@deepseek-ai/dsh-web-app": "0.2.2-rc.5",
311
+ "@deepseek-ai/dsh-web-deepseek-api": "0.2.2-rc.5",
312
+ "@deepseek-ai/dsh-web-fetch-http": "0.2.2-rc.5",
313
+ "@deepseek-ai/dsh-web-search-deepseek": "0.2.2-rc.5",
314
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.5",
315
+ "@deepseek-ai/dsh-workspace": "0.2.2-rc.5",
278
316
  "@deepseek-ai/schemastery": "3.19.0",
279
317
  "@types/node": "^22.0.0",
280
318
  "@types/ws": "8.18.1",
281
319
  "@xmoon76/pi-tui": "^1.1.0",
282
320
  "@xterm/headless": "5.5.0",
283
- "immer": "^10.1.1",
321
+ "immer": "10.2.0",
322
+ "koffi": "3.1.1",
284
323
  "semver": "7.8.5",
324
+ "tar": "7.5.23",
285
325
  "tsdown": "0.22.0",
286
326
  "tsx": "^4.23.12",
287
327
  "typescript": "^5.9.0",
288
- "zustand": "~4.4.7"
328
+ "zustand": "4.5.7"
289
329
  },
290
330
  "engines": {
291
331
  "node": ">=24.9.0",
292
- "dsh": ">=0.2.2-rc.1"
332
+ "dsh": ">=0.2.2-rc.3"
293
333
  },
294
334
  "scripts": {
295
335
  "clean": "rm -rf dist",
296
336
  "clean:fork": "pnpm --dir packages/pi-tui clean",
297
337
  "build:fork": "pnpm --dir packages/pi-tui build",
298
- "build:bundle": "pnpm gen:dsh-presets && tsdown",
338
+ "build:bundle": "pnpm gen:dsh-presets && pnpm gen:web-access && tsdown && node scripts/copy-pi-darwin-native.mjs",
299
339
  "build": "pnpm build:fork && pnpm build:bundle",
300
340
  "typecheck:fork": "pnpm --dir packages/pi-tui typecheck",
301
341
  "typecheck:bundle": "tsc -p tsconfig.json --noEmit",
@@ -326,6 +366,8 @@
326
366
  "smoke:remote-session-lifecycle-parity": "node scripts/dsh-remote-session-lifecycle-parity-smoke.mjs",
327
367
  "smoke:boundary": "node scripts/dsh-runtime-boundary-smoke.mjs",
328
368
  "smoke:split-process": "node scripts/split-process-smoke.mjs",
369
+ "smoke:fresh-profile": "node scripts/fresh-profile-install-smoke.mjs",
370
+ "smoke:macos-split": "node scripts/smoke/macos-split-parity.mjs",
329
371
  "smoke:split-upgrade": "node scripts/split-process-upgrade-smoke.mjs",
330
372
  "smoke:startup-strictness": "node scripts/startup-strictness-smoke.mjs",
331
373
  "dsh:source:pack": "node scripts/dsh-source-pack.mjs",
@@ -334,7 +376,6 @@
334
376
  "compat:dsh:client-family": "node scripts/dsh-client-family-compat.mjs",
335
377
  "prepare:dsh:test": "node scripts/prepare-dsh-test-environment.mjs",
336
378
  "gate:source-leak": "node scripts/dsh-source-leak-gate.mjs",
337
- "gate:installation-doc": "node scripts/installation-doc-gate.mjs",
338
379
  "gate:temp-hygiene": "node scripts/temp-hygiene-gate.mjs",
339
380
  "gate:raw-persistence": "node scripts/raw-persistence-coupling-gate.mjs",
340
381
  "generate:pi-divergences": "node scripts/generate-pi-divergences.mjs",
@@ -360,13 +401,19 @@
360
401
  "test:tooling": "node scripts/run-test-lane.mjs tooling",
361
402
  "test:product": "node scripts/run-test-lane.mjs product",
362
403
  "gen:dsh-presets": "node scripts/generate-dsh-presets.mjs",
404
+ "gen:web-access": "node --import tsx/esm scripts/generate-web-access-patch.mjs",
405
+ "gate:web-access-patch": "node --import tsx/esm scripts/generate-web-access-patch.mjs --check",
363
406
  "gate:dsh-preset-parity": "node scripts/generate-dsh-presets.mjs --check",
364
407
  "smoke:job-controller-profile": "node scripts/dsh-job-controller-profile-smoke.mjs",
365
408
  "smoke:optional-bundles": "node scripts/dsh-optional-bundles-smoke.mjs",
366
409
  "smoke:direct-empty-retirement": "node scripts/direct-empty-session-retirement-smoke.mjs",
367
410
  "pack:artifact": "rm -f xmoon76-dsh-pi-tui-*.tgz && pnpm pack --config.ignore-scripts=true --pack-destination .",
368
411
  "smoke:release": "node scripts/qualify-tarball.mjs",
369
- "pack:release": "pnpm clean && pnpm clean:fork && pnpm build && pnpm typecheck:bundle && pnpm test:product && pnpm pack:artifact && pnpm smoke:release",
370
- "verify:release": "pnpm typecheck:fork && pnpm typecheck:bench && pnpm test:fork && pnpm test:tmux && pnpm test:tooling && pnpm gate:installation-doc && pnpm gate:pi-divergence-ledger && pnpm gate:pi-vendor-diff --strict && node scripts/naming-gate.mjs && node scripts/check-no-session-events.mjs && pnpm gate:boundary && pnpm gate:architecture && pnpm gate:production-reads && pnpm gate:keybindings && pnpm audit --prod --audit-level high && pnpm pack:release"
412
+ "pack:release": "pnpm clean && pnpm clean:fork && pnpm build && pnpm typecheck:bundle && pnpm test:product && pnpm pack:artifact && pnpm smoke:release && pnpm smoke:fresh-profile",
413
+ "check:gates": "node scripts/run-quality-gates.mjs",
414
+ "check": "pnpm build:fork && pnpm typecheck && pnpm test:tooling && pnpm check:gates",
415
+ "verify:release": "pnpm typecheck:fork && pnpm typecheck:bench && pnpm test:fork && pnpm test:tmux && pnpm test:tooling && pnpm check:gates -- --skip gate:pi-surface-compat && pnpm audit --prod --audit-level high && pnpm pack:release",
416
+ "smoke:macos-cua": "node scripts/smoke/macos-cua-parity.mjs",
417
+ "smoke:r8-extension-config": "node scripts/smoke/r8-extension-config-smoke.mjs"
371
418
  }
372
419
  }
@@ -1,92 +0,0 @@
1
- //#region src/app/remote-process/entry-control.ts
2
- /** The default JSONL sink: the qualification control channel on stdout. */
3
- const stdoutRecordSink = (record) => {
4
- process.stdout.write(`${JSON.stringify(record)}\n`);
5
- };
6
- /** One structured line emitted by a process entry. */
7
- function writeEntryRecord(record, sink = stdoutRecordSink) {
8
- sink(record);
9
- }
10
- /** A role-labelled structured diagnostics sink for the entry's detached work.
11
- * The surface entry supplies its private JSONL file sink; the qualification
12
- * entries keep the default stdout control channel. */
13
- function createEntryDiag(processRole, sink) {
14
- const emit = (level) => (message, fields) => {
15
- writeEntryRecord({
16
- m4a0: "diag",
17
- processRole,
18
- level,
19
- message,
20
- ...fields
21
- }, sink);
22
- };
23
- return {
24
- debug: emit("debug"),
25
- info: emit("info"),
26
- warn: emit("warn"),
27
- error: emit("error"),
28
- dispose: () => {}
29
- };
30
- }
31
- /**
32
- * Build the serialized control queue. A malformed request or a rejecting
33
- * handler is reported as a structured `control-failure` line and the queue
34
- * continues: the launcher owns the process, and one bad status query must not
35
- * strand later shutdown/status requests or crash the Host outside its official
36
- * disposer. The handler failure is never swallowed silently.
37
- */
38
- function createControlDispatcher(handler, options = {}) {
39
- const emit = options.emit ?? writeEntryRecord;
40
- let chain = Promise.resolve();
41
- return { dispatch(line) {
42
- chain = chain.then(async () => {
43
- let request;
44
- try {
45
- request = JSON.parse(line);
46
- } catch (error) {
47
- emit({
48
- m4a0: "control-error",
49
- error: error instanceof Error ? error.message : String(error)
50
- });
51
- return;
52
- }
53
- if (typeof request !== "object" || request === null || typeof request.op !== "string") {
54
- emit({
55
- m4a0: "control-error",
56
- error: "control request must be an object with a string op"
57
- });
58
- return;
59
- }
60
- if (await handler(request)) options.onStop?.();
61
- }).catch((error) => {
62
- emit({
63
- m4a0: "control-failure",
64
- error: error instanceof Error ? error.message : String(error),
65
- ...error instanceof Error && error.stack !== void 0 ? { stack: error.stack } : {}
66
- });
67
- });
68
- return chain;
69
- } };
70
- }
71
- /**
72
- * Read newline-delimited JSON control requests from stdin. Malformed input is
73
- * reported as a structured `control-error` line and otherwise ignored: the
74
- * launcher is the only writer, and a typo must not crash a live Host.
75
- */
76
- function attachEntryControl(handler) {
77
- process.stdin.setEncoding("utf8");
78
- process.stdin.resume();
79
- const dispatcher = createControlDispatcher(handler, { onStop: () => process.stdin.pause() });
80
- let buffer = "";
81
- process.stdin.on("data", (chunk) => {
82
- buffer += chunk;
83
- for (let newline = buffer.indexOf("\n"); newline >= 0; newline = buffer.indexOf("\n")) {
84
- const line = buffer.slice(0, newline).trim();
85
- buffer = buffer.slice(newline + 1);
86
- if (line === "") continue;
87
- dispatcher.dispatch(line);
88
- }
89
- });
90
- }
91
- //#endregion
92
- export { createEntryDiag as n, writeEntryRecord as r, attachEntryControl as t };