@aiwayds/dsh-opentui 0.23.3 → 0.24.0
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/NOTICE +35 -0
- package/bin/dsh-opentui.mjs +7 -13
- package/bin/lib/launcher.mjs +0 -1
- package/dist/bridge/bundle-fingerprint.json +1 -1
- package/dist/bridge/index.js +5324 -26
- package/dist/client/index.js +824 -682
- package/dist/client/index.js.map +22 -20
- package/dist/host-launch.mjs +21 -8
- package/dist/host-launch.mjs.map +3 -3
- package/package.json +1 -1
- package/scripts/lib/bridge-failfast-text.d.mts +0 -1
- package/scripts/lib/bridge-failfast-text.mjs +3 -8
- package/scripts/provision-inproc-profile.mjs +89 -84
package/NOTICE
CHANGED
|
@@ -93,3 +93,38 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
93
93
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
94
94
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
95
95
|
SOFTWARE.
|
|
96
|
+
|
|
97
|
+
--------------------------------------------------------------------------------
|
|
98
|
+
|
|
99
|
+
deepseek-ai/deepseek-harness (CapIR derivation)
|
|
100
|
+
https://github.com/deepseek-ai/deepseek-harness
|
|
101
|
+
|
|
102
|
+
Derived from deepseek-ai/deepseek-harness (MIT, Copyright (c) 2026 DeepSeek)
|
|
103
|
+
|
|
104
|
+
CapIR (capir/capir.json) and its generated artifacts in this repository are
|
|
105
|
+
derived from deepseek-ai/deepseek-harness. Only capability interface shapes
|
|
106
|
+
(artifacts, method ids, endpoint contracts) are represented; no host
|
|
107
|
+
implementation code is copied. The upstream repository carries no NOTICE file;
|
|
108
|
+
its MIT license and copyright notice are reproduced in this section.
|
|
109
|
+
|
|
110
|
+
MIT License
|
|
111
|
+
|
|
112
|
+
Copyright (c) 2026 DeepSeek
|
|
113
|
+
|
|
114
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
115
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
116
|
+
in the Software without restriction, including without limitation the rights
|
|
117
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
118
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
119
|
+
furnished to do so, subject to the following conditions:
|
|
120
|
+
|
|
121
|
+
The above copyright notice and this permission notice shall be included in all
|
|
122
|
+
copies or substantial portions of the Software.
|
|
123
|
+
|
|
124
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
126
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
127
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
128
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
129
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
130
|
+
SOFTWARE.
|
package/bin/dsh-opentui.mjs
CHANGED
|
@@ -189,12 +189,8 @@ const validation = validateLauncherArgs(userArgs, { skip: LAUNCHER_TIMEOUT_FLAGS
|
|
|
189
189
|
if (validation.unknown.length > 0) {
|
|
190
190
|
for (const flag of validation.unknown) {
|
|
191
191
|
console.error(`dsh-opentui: unknown option '${flag}'`)
|
|
192
|
-
//
|
|
193
|
-
//
|
|
194
|
-
// the generic did-you-mean rule (no misleading migration advice).
|
|
195
|
-
if (flag === '--remote') {
|
|
196
|
-
console.error('dsh-opentui: use DSH_OPENTUI_INPROC=0 for the legacy remote seam')
|
|
197
|
-
}
|
|
192
|
+
// S6: --remote is simply an unknown option (the env escape hatch it once
|
|
193
|
+
// pointed to is gone with the legacy seam). No migration advice.
|
|
198
194
|
if (validation.suggestions[flag]) {
|
|
199
195
|
console.error(`dsh-opentui: did you mean '${validation.suggestions[flag]}'?`)
|
|
200
196
|
}
|
|
@@ -305,14 +301,12 @@ const opentuiProfileDir = join(dshHome, 'profiles', 'opentui')
|
|
|
305
301
|
}
|
|
306
302
|
}
|
|
307
303
|
|
|
308
|
-
// --- 3b. In-process bridge profile provisioning
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
//
|
|
312
|
-
// provisions ONLY the `opentui-inproc` profile: bundle manifest + absolute
|
|
313
|
-
// symlink to the embedded dist/bridge artifact. A non-zero exit is fatal here
|
|
304
|
+
// --- 3b. In-process bridge profile provisioning ----------------------------
|
|
305
|
+
// S6: the bridge is the sole seam, so this runs on EVERY launch. The script
|
|
306
|
+
// provisions ONLY the `opentui-inproc` profile: bundle manifest + the shipped
|
|
307
|
+
// dist/bridge artifact (real directory copy). A non-zero exit is fatal here
|
|
314
308
|
// (the bridge cannot work without it), unlike the best-effort path above.
|
|
315
|
-
|
|
309
|
+
{
|
|
316
310
|
const r = spawnSync(process.execPath, [join(pkgRoot, 'scripts', 'provision-inproc-profile.mjs')], {
|
|
317
311
|
stdio: 'inherit',
|
|
318
312
|
})
|
package/bin/lib/launcher.mjs
CHANGED
|
@@ -327,7 +327,6 @@ export function formatUsage() {
|
|
|
327
327
|
' -h, --help print this help and exit',
|
|
328
328
|
'',
|
|
329
329
|
'Environment:',
|
|
330
|
-
' DSH_OPENTUI_INPROC=0 use the legacy remote thin-client seam instead of the default in-process bridge (escape hatch); unset or 1 = bridge',
|
|
331
330
|
' DSH_OPENTUI_BOOT_TIMEOUT_MS host cold-start budget in ms (CLI flag wins)',
|
|
332
331
|
' DSH_OPENTUI_MUX_TIMEOUT_MS mux readiness budget in ms (CLI flag wins)',
|
|
333
332
|
' DSH_OPENTUI_CONNECT_TIMEOUT_MS first-connect budget in ms (CLI flag wins)',
|