@songtonyli/dsh-cli 0.1.65 → 0.1.66
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/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-otel/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +977 -16
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +2 -0
- package/node_modules/execa/lib/arguments/command-file.js +55 -23
- package/node_modules/execa/lib/arguments/command.js +2 -1
- package/node_modules/execa/lib/arguments/cwd.js +10 -6
- package/node_modules/execa/lib/arguments/encoding-option.js +11 -0
- package/node_modules/execa/lib/arguments/escape.js +2 -2
- package/node_modules/execa/lib/arguments/fd-options.js +3 -7
- package/node_modules/execa/lib/arguments/options.js +13 -3
- package/node_modules/execa/lib/arguments/specific.js +2 -1
- package/node_modules/execa/lib/convert/duplex.js +3 -1
- package/node_modules/execa/lib/convert/iterable.js +3 -5
- package/node_modules/execa/lib/convert/readable.js +3 -1
- package/node_modules/execa/lib/convert/writable.js +8 -4
- package/node_modules/execa/lib/io/contents.js +8 -11
- package/node_modules/execa/lib/io/input-sync.js +8 -5
- package/node_modules/execa/lib/io/max-buffer.js +41 -28
- package/node_modules/execa/lib/io/output-sync.js +64 -40
- package/node_modules/execa/lib/io/strip-newline.js +4 -3
- package/node_modules/execa/lib/ipc/buffer-messages.js +12 -2
- package/node_modules/execa/lib/ipc/get-each.js +8 -2
- package/node_modules/execa/lib/ipc/get-one.js +3 -1
- package/node_modules/execa/lib/ipc/graceful.js +3 -2
- package/node_modules/execa/lib/ipc/incoming.js +10 -3
- package/node_modules/execa/lib/ipc/ipc-input.js +7 -2
- package/node_modules/execa/lib/ipc/send.js +3 -1
- package/node_modules/execa/lib/ipc/strict.js +13 -7
- package/node_modules/execa/lib/ipc/validation.js +1 -1
- package/node_modules/execa/lib/methods/bind.js +2 -8
- package/node_modules/execa/lib/methods/create.js +3 -1
- package/node_modules/execa/lib/methods/main-async.js +21 -11
- package/node_modules/execa/lib/methods/main-sync.js +7 -5
- package/node_modules/execa/lib/methods/node.js +1 -1
- package/node_modules/execa/lib/methods/script.js +1 -1
- package/node_modules/execa/lib/methods/template.js +24 -5
- package/node_modules/execa/lib/pipe/pipe-arguments.js +36 -5
- package/node_modules/execa/lib/pipe/throw.js +5 -3
- package/node_modules/execa/lib/resolve/all-async.js +43 -19
- package/node_modules/execa/lib/resolve/all-sync.js +27 -15
- package/node_modules/execa/lib/resolve/exit-sync.js +13 -5
- package/node_modules/execa/lib/resolve/stdio.js +2 -1
- package/node_modules/execa/lib/resolve/wait-stream.js +12 -2
- package/node_modules/execa/lib/resolve/wait-subprocess.js +3 -1
- package/node_modules/execa/lib/return/early-error.js +58 -21
- package/node_modules/execa/lib/return/message.js +2 -10
- package/node_modules/execa/lib/return/reject.js +1 -1
- package/node_modules/execa/lib/stdio/direction.js +36 -5
- package/node_modules/execa/lib/stdio/duplicate.js +26 -16
- package/node_modules/execa/lib/stdio/handle-async.js +6 -0
- package/node_modules/execa/lib/stdio/handle-sync.js +5 -3
- package/node_modules/execa/lib/stdio/handle.js +47 -24
- package/node_modules/execa/lib/stdio/native.js +3 -6
- package/node_modules/execa/lib/stdio/stdio-option.js +13 -18
- package/node_modules/execa/lib/stdio/type.js +2 -10
- package/node_modules/execa/lib/terminate/cancel.js +7 -0
- package/node_modules/execa/lib/terminate/kill-descendants.js +20 -4
- package/node_modules/execa/lib/transform/encoding-transform.js +15 -0
- package/node_modules/execa/lib/transform/generator.js +13 -2
- package/node_modules/execa/lib/transform/split.js +37 -23
- package/node_modules/execa/lib/utils/options.js +9 -0
- package/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/node_modules/execa/lib/utils/uint-array.js +1 -7
- package/node_modules/execa/lib/verbose/log.js +3 -6
- package/node_modules/execa/lib/verbose/output.js +3 -1
- package/node_modules/execa/package.json +51 -48
- package/package.json +2 -2
|
@@ -43,12 +43,9 @@ const getPrintedLine = verboseObject => {
|
|
|
43
43
|
return {verboseLine, verboseObject};
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
// Serialize any type to a line string, for logging
|
|
46
|
+
// Serialize any type to a line string, for logging.
|
|
47
|
+
// Tabs are escaped by `escapeLines()`, like any other control character.
|
|
47
48
|
export const serializeVerboseMessage = message => {
|
|
48
49
|
const messageString = typeof message === 'string' ? message : inspect(message);
|
|
49
|
-
|
|
50
|
-
return escapedMessage.replaceAll('\t', () => ' '.repeat(TAB_SIZE));
|
|
50
|
+
return escapeLines(messageString);
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
// Same as `util.inspect()`
|
|
54
|
-
const TAB_SIZE = 2;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {BINARY_ENCODINGS} from '../arguments/encoding-option.js';
|
|
2
2
|
import {TRANSFORM_TYPES} from '../stdio/type.js';
|
|
3
|
+
import {isAllStream} from '../utils/standard-stream.js';
|
|
3
4
|
import {verboseLog, serializeVerboseMessage} from './log.js';
|
|
4
5
|
import {isFullVerbose} from './values.js';
|
|
5
6
|
|
|
@@ -45,8 +46,9 @@ export const logLinesSync = (linesArray, fdNumber, verboseInfo) => {
|
|
|
45
46
|
// For example, `subprocess.stdout.pipe(process.stdin)` would print each line twice.
|
|
46
47
|
// - When chaining subprocesses with `subprocess.pipe(otherSubprocess)`, only the last one should print its output.
|
|
47
48
|
// Detecting whether `.pipe()` is impossible without monkey-patching it, so we use the following undocumented property.
|
|
49
|
+
// The pipe into `subprocess.all` is done by Execa itself, so it only counts when `subprocess.all` is itself piped, e.g. `subprocess.all.pipe(process.stdout)`.
|
|
48
50
|
// This is not a critical behavior since changes of the following property would only make `verbose` more verbose.
|
|
49
|
-
const isPipingStream = stream => stream._readableState.pipes.
|
|
51
|
+
const isPipingStream = stream => stream._readableState.pipes.some(pipe => !isAllStream(pipe) || isPipingStream(pipe));
|
|
50
52
|
|
|
51
53
|
// When `verbose` is `full`, print stdout|stderr
|
|
52
54
|
const logLine = (line, fdNumber, verboseInfo) => {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "execa",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Process execution for humans",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/execa",
|
|
7
7
|
"funding": "https://github.com/sindresorhus/execa?sponsor=1",
|
|
8
|
-
"author":
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
8
|
+
"author": "Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)",
|
|
13
9
|
"type": "module",
|
|
14
10
|
"exports": {
|
|
15
11
|
"types": "./index.d.ts",
|
|
@@ -52,16 +48,15 @@
|
|
|
52
48
|
"is-plain-obj": "^4.1.0",
|
|
53
49
|
"is-stream": "^4.0.1",
|
|
54
50
|
"npm-run-path": "^6.0.0",
|
|
55
|
-
"pretty-ms": "^9.3.
|
|
51
|
+
"pretty-ms": "^9.3.1",
|
|
56
52
|
"signal-exit": "^4.1.0",
|
|
57
53
|
"strip-final-newline": "^4.0.0",
|
|
58
54
|
"which-command": "^0.1.0",
|
|
59
|
-
"yoctocolors": "^2.
|
|
55
|
+
"yoctocolors": "^2.2.0"
|
|
60
56
|
},
|
|
61
57
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^26.
|
|
63
|
-
"
|
|
64
|
-
"c8": "^11.0.0",
|
|
58
|
+
"@types/node": "^26.6.2",
|
|
59
|
+
"c8": "^12.0.0",
|
|
65
60
|
"get-node": "^15.0.4",
|
|
66
61
|
"is-in-ci": "^2.0.0",
|
|
67
62
|
"is-running": "^2.1.0",
|
|
@@ -71,7 +66,7 @@
|
|
|
71
66
|
"tempfile": "^6.0.1",
|
|
72
67
|
"tsd": "^0.33.0",
|
|
73
68
|
"typescript": "^6.0.3",
|
|
74
|
-
"xo": "^
|
|
69
|
+
"xo": "^5.0.1"
|
|
75
70
|
},
|
|
76
71
|
"c8": {
|
|
77
72
|
"reporter": [
|
|
@@ -84,41 +79,49 @@
|
|
|
84
79
|
"**/test/**"
|
|
85
80
|
]
|
|
86
81
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
82
|
+
"xo": [
|
|
83
|
+
{
|
|
84
|
+
"rules": {
|
|
85
|
+
"unicorn/no-empty-file": "off",
|
|
86
|
+
"unicorn/prefer-string-raw": "off",
|
|
87
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
88
|
+
"unicorn/no-useless-template-literals": "off",
|
|
89
|
+
"require-unicode-regexp": "off",
|
|
90
|
+
"@stylistic/max-len": "off",
|
|
91
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
92
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
93
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
94
|
+
"@typescript-eslint/await-thenable": "off",
|
|
95
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
96
|
+
"@typescript-eslint/no-restricted-types": "off",
|
|
97
|
+
"no-shadow": "off",
|
|
98
|
+
"unicorn/no-computed-property-existence-check": "off",
|
|
99
|
+
"unicorn/max-nested-calls": "off",
|
|
100
|
+
"unicorn/no-array-sort": "off",
|
|
101
|
+
"unicorn/prefer-minimal-ternary": "off",
|
|
102
|
+
"unicorn/no-array-reverse": "off",
|
|
103
|
+
"unicorn/no-array-from-fill": "off",
|
|
104
|
+
"unicorn/prefer-number-is-safe-integer": "off",
|
|
105
|
+
"unicorn/require-array-sort-compare": "off",
|
|
106
|
+
"@typescript-eslint/ban-types": "off",
|
|
107
|
+
"regexp/strict": "off",
|
|
108
|
+
"unicorn/require-module-specifiers": "off",
|
|
109
|
+
"jsdoc/require-asterisk-prefix": "off",
|
|
110
|
+
"node-test/require-assertion": "off",
|
|
111
|
+
"node-test/no-import-test-files": "off",
|
|
112
|
+
"node-test/no-conditional-tests": "off",
|
|
113
|
+
"node-test/prefer-test-context-assert": "off",
|
|
114
|
+
"node-test/no-process-env-mutation": "off",
|
|
115
|
+
"node-test/no-useless-assertion": "off"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"files": [
|
|
120
|
+
"**/*.md"
|
|
121
|
+
],
|
|
122
|
+
"rules": {
|
|
123
|
+
"markdown/fenced-code-language": "off"
|
|
124
|
+
}
|
|
122
125
|
}
|
|
123
|
-
|
|
126
|
+
]
|
|
124
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@songtonyli/dsh-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "The dsh terminal agent: an interactive TUI over the DeepSeek Harness, with its whole Node runtime bundled in one install.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"etag": "1.8.1",
|
|
449
449
|
"eventsource": "3.0.7",
|
|
450
450
|
"eventsource-parser": "3.1.1",
|
|
451
|
-
"execa": "10.0
|
|
451
|
+
"execa": "10.1.0",
|
|
452
452
|
"extend": "3.0.2",
|
|
453
453
|
"fast-deep-equal": "3.1.3",
|
|
454
454
|
"fast-sha256": "1.3.0",
|