@jini-ai/cli 0.7.3-next.3 → 0.7.4
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/CHANGELOG.md +7 -0
- package/dist/run-command.js +2 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @jini-ai/cli
|
|
2
2
|
|
|
3
|
+
## 0.7.4
|
|
4
|
+
|
|
5
|
+
### Changes
|
|
6
|
+
|
|
7
|
+
- Add bounded stdin and quiet-line readers that stop when their input closes.
|
|
8
|
+
- Accept injected writer and operating-system ports and remove the unused platform dependency.
|
|
9
|
+
|
|
3
10
|
## 0.7.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/run-command.js
CHANGED
|
@@ -168,8 +168,7 @@ export async function watchRunEvents({ baseUrl, runId, args }, deps = {}) {
|
|
|
168
168
|
const write = deps.write ?? defaultWrite;
|
|
169
169
|
const resp = await fetchImpl(`${baseUrl}/api/runs/${encodeURIComponent(runId)}/events`, { headers });
|
|
170
170
|
if (!resp.ok || resp.body === null) {
|
|
171
|
-
|
|
172
|
-
return;
|
|
171
|
+
return structuredHttpFailure({ resp }, { fallbackCode: 'daemon-not-running', ...errorOptions({ deps }) });
|
|
173
172
|
}
|
|
174
173
|
try {
|
|
175
174
|
await writeEventsUntilEnd({ body: resp.body, write });
|
|
@@ -178,8 +177,7 @@ export async function watchRunEvents({ baseUrl, runId, args }, deps = {}) {
|
|
|
178
177
|
// A broken/hostile stream (e.g. the unbounded-buffer guard above) must exit through the same
|
|
179
178
|
// structured contract as every other failure here, not surface as an unhandled rejection.
|
|
180
179
|
const message = error instanceof Error ? error.message : String(error);
|
|
181
|
-
exitWithStructuredError({ code: 'daemon-not-running', message: sanitizeUntrustedText({ text: message }) }, errorOptions({ deps }));
|
|
182
|
-
return;
|
|
180
|
+
return exitWithStructuredError({ code: 'daemon-not-running', message: sanitizeUntrustedText({ text: message }) }, errorOptions({ deps }));
|
|
183
181
|
}
|
|
184
182
|
}
|
|
185
183
|
/** `last-event-id` from a non-empty `--after-cursor`, so a reconnect resumes after that cursor; no header otherwise. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "CLI transport shell for driving a Jini daemon over HTTP: flag parsing, daemon-URL resolution, local daemon discovery, and a pluggable command registry.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"commander": "^15.0.0",
|
|
57
|
-
"@jini-ai/sidecar": "0.7.
|
|
58
|
-
"@jini-ai/core": "0.7.
|
|
57
|
+
"@jini-ai/sidecar": "0.7.4",
|
|
58
|
+
"@jini-ai/core": "0.7.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@jini-ai/
|
|
62
|
-
"@jini-ai/
|
|
61
|
+
"@jini-ai/sidecar": "^0.7.4",
|
|
62
|
+
"@jini-ai/core": "^0.7.4"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsc -p tsconfig.json && chmod +x dist/main.js",
|