@agent-native/core 0.228.0-nightly-20261112182539 → 0.228.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/dist/cli/index.d.ts +7 -1
- package/dist/cli/index.js +17 -1
- package/dist/framework-package-versions.json +11 -11
- package/package.json +4 -4
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The exit status the CLI reports for a finished child (57526).
|
|
4
|
+
*
|
|
5
|
+
* `code ?? 0` made a child killed by a signal look successful, so a SIGKILLed `tsc` passed a preflight that then shipped. A signal exit is 128 plus the
|
|
6
|
+
* signal's number, the shell convention: nonzero for a caller that only asks "did it fail", and still the signal for a caller that asks which.
|
|
7
|
+
*/
|
|
8
|
+
export declare function childExitCode(code: number | null, signal: NodeJS.Signals | string | null): number;
|
package/dist/cli/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { execFileSync, execSync, spawn } from "child_process";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
|
+
import os from "os";
|
|
5
6
|
import path from "path";
|
|
6
7
|
import { fileURLToPath } from "url";
|
|
7
8
|
import { clearAgentNativeNitroPresetMarker, resolveAgentNativeNitroPreset, } from "../deploy/nitro-preset.js";
|
|
@@ -273,9 +274,24 @@ function extractNodeInspectFlag(args) {
|
|
|
273
274
|
}
|
|
274
275
|
return { inspectFlag, rest };
|
|
275
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* The exit status the CLI reports for a finished child (57526).
|
|
279
|
+
*
|
|
280
|
+
* `code ?? 0` made a child killed by a signal look successful, so a SIGKILLed `tsc` passed a preflight that then shipped. A signal exit is 128 plus the
|
|
281
|
+
* signal's number, the shell convention: nonzero for a caller that only asks "did it fail", and still the signal for a caller that asks which.
|
|
282
|
+
*/
|
|
283
|
+
export function childExitCode(code, signal) {
|
|
284
|
+
if (signal) {
|
|
285
|
+
const number = typeof signal === "string"
|
|
286
|
+
? os.constants.signals[signal]
|
|
287
|
+
: undefined;
|
|
288
|
+
return typeof number === "number" ? 128 + number : 1;
|
|
289
|
+
}
|
|
290
|
+
return code ?? 1;
|
|
291
|
+
}
|
|
276
292
|
function run(cmd, cmdArgs, opts) {
|
|
277
293
|
const child = spawn(cmd, cmdArgs, cliSpawnOptions(opts));
|
|
278
|
-
child.on("exit", (code) => process.exit(code
|
|
294
|
+
child.on("exit", (code, signal) => process.exit(childExitCode(code, signal)));
|
|
279
295
|
for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
|
|
280
296
|
process.on(sig, () => {
|
|
281
297
|
child.kill(sig);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@agent-native/agentkit": "0.228.0
|
|
2
|
+
"@agent-native/agentkit": "0.228.0",
|
|
3
3
|
"@agent-native/code-agents-ui": "0.1.75",
|
|
4
|
-
"@agent-native/core": "0.228.0
|
|
5
|
-
"@agent-native/core-corpus": "0.228.0
|
|
6
|
-
"@agent-native/creative-context": "0.8.
|
|
7
|
-
"@agent-native/dispatch": "0.42.5
|
|
4
|
+
"@agent-native/core": "0.228.0",
|
|
5
|
+
"@agent-native/core-corpus": "0.228.0",
|
|
6
|
+
"@agent-native/creative-context": "0.8.70",
|
|
7
|
+
"@agent-native/dispatch": "0.42.5",
|
|
8
8
|
"@agent-native/embedding": "0.2.0",
|
|
9
9
|
"@agent-native/migrate": "0.0.7",
|
|
10
|
-
"@agent-native/otel": "0.1.
|
|
11
|
-
"@agent-native/pinpoint": "0.1.
|
|
12
|
-
"@agent-native/recap-cli": "0.5.101
|
|
13
|
-
"@agent-native/scheduling": "0.2.57
|
|
10
|
+
"@agent-native/otel": "0.1.37",
|
|
11
|
+
"@agent-native/pinpoint": "0.1.113",
|
|
12
|
+
"@agent-native/recap-cli": "0.5.101",
|
|
13
|
+
"@agent-native/scheduling": "0.2.57",
|
|
14
14
|
"@agent-native/shared-app-config": "0.1.2",
|
|
15
|
-
"@agent-native/skills": "0.4.5
|
|
16
|
-
"@agent-native/toolkit": "0.228.0
|
|
15
|
+
"@agent-native/skills": "0.4.5",
|
|
16
|
+
"@agent-native/toolkit": "0.228.0"
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.228.0
|
|
3
|
+
"version": "0.228.0",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -771,8 +771,8 @@
|
|
|
771
771
|
"yaml": "^2.9.0",
|
|
772
772
|
"yjs": "^13.6.33",
|
|
773
773
|
"zod": "^4.3.6",
|
|
774
|
-
"@agent-native/agentkit": "^0.228.0
|
|
775
|
-
"@agent-native/recap-cli": "^0.5.101
|
|
774
|
+
"@agent-native/agentkit": "^0.228.0",
|
|
775
|
+
"@agent-native/recap-cli": "^0.5.101"
|
|
776
776
|
},
|
|
777
777
|
"devDependencies": {
|
|
778
778
|
"@ai-sdk/anthropic": "^3.0.71",
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"xlsx": "^0.18.5"
|
|
846
846
|
},
|
|
847
847
|
"peerDependencies": {
|
|
848
|
-
"@agent-native/core-corpus": "0.
|
|
848
|
+
"@agent-native/core-corpus": ">=0.196.0",
|
|
849
849
|
"@ai-sdk/anthropic": ">=3",
|
|
850
850
|
"@ai-sdk/cohere": ">=3",
|
|
851
851
|
"@ai-sdk/google": ">=3",
|