@aexhq/cli 0.25.2 → 0.26.1
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 +12 -0
- package/dist/index.d.ts +2 -7
- package/dist/index.js +233 -7
- package/package.json +26 -29
- package/LICENSE +0 -201
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -51
- package/dist/cli.js.map +0 -1
- package/dist/cli.mjs +0 -4685
- package/dist/cli.mjs.sha256 +0 -1
- package/dist/host/cancel.d.ts +0 -3
- package/dist/host/cancel.js +0 -30
- package/dist/host/cancel.js.map +0 -1
- package/dist/host/common.d.ts +0 -135
- package/dist/host/common.js +0 -281
- package/dist/host/common.js.map +0 -1
- package/dist/host/delete-asset.d.ts +0 -3
- package/dist/host/delete-asset.js +0 -34
- package/dist/host/delete-asset.js.map +0 -1
- package/dist/host/delete.d.ts +0 -3
- package/dist/host/delete.js +0 -30
- package/dist/host/delete.js.map +0 -1
- package/dist/host/download.d.ts +0 -3
- package/dist/host/download.js +0 -80
- package/dist/host/download.js.map +0 -1
- package/dist/host/events.d.ts +0 -3
- package/dist/host/events.js +0 -97
- package/dist/host/events.js.map +0 -1
- package/dist/host/index.d.ts +0 -17
- package/dist/host/index.js +0 -18
- package/dist/host/index.js.map +0 -1
- package/dist/host/outputs.d.ts +0 -3
- package/dist/host/outputs.js +0 -36
- package/dist/host/outputs.js.map +0 -1
- package/dist/host/run-cmd.d.ts +0 -3
- package/dist/host/run-cmd.js +0 -565
- package/dist/host/run-cmd.js.map +0 -1
- package/dist/host/skills-cmd.d.ts +0 -3
- package/dist/host/skills-cmd.js +0 -304
- package/dist/host/skills-cmd.js.map +0 -1
- package/dist/host/status.d.ts +0 -3
- package/dist/host/status.js +0 -31
- package/dist/host/status.js.map +0 -1
- package/dist/host/wait.d.ts +0 -3
- package/dist/host/wait.js +0 -88
- package/dist/host/wait.js.map +0 -1
- package/dist/host/whoami.d.ts +0 -3
- package/dist/host/whoami.js +0 -33
- package/dist/host/whoami.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts +0 -53
- package/dist/internal.js +0 -10
- package/dist/internal.js.map +0 -1
- package/dist/outputs-sync.d.ts +0 -24
- package/dist/outputs-sync.js +0 -70
- package/dist/outputs-sync.js.map +0 -1
- package/dist/proxy.d.ts +0 -16
- package/dist/proxy.js +0 -316
- package/dist/proxy.js.map +0 -1
- package/dist/run.d.ts +0 -10
- package/dist/run.js +0 -167
- package/dist/run.js.map +0 -1
- package/dist/runtime.d.ts +0 -5
- package/dist/runtime.js +0 -4
- package/dist/runtime.js.map +0 -1
- package/scripts/finalize-bundle.mjs +0 -72
- package/src/cli.ts +0 -51
- package/src/host/cancel.ts +0 -39
- package/src/host/common.ts +0 -329
- package/src/host/delete-asset.ts +0 -43
- package/src/host/delete.ts +0 -39
- package/src/host/download.ts +0 -97
- package/src/host/events.ts +0 -113
- package/src/host/index.ts +0 -25
- package/src/host/outputs.ts +0 -45
- package/src/host/run-cmd.ts +0 -594
- package/src/host/skills-cmd.ts +0 -317
- package/src/host/status.ts +0 -40
- package/src/host/wait.ts +0 -110
- package/src/host/whoami.ts +0 -42
- package/src/index.ts +0 -7
- package/src/internal.ts +0 -63
- package/src/outputs-sync.ts +0 -76
- package/src/proxy.ts +0 -359
- package/src/run.ts +0 -188
- package/src/runtime.ts +0 -15
- package/test/cli.test.ts +0 -519
- package/test/host.test.ts +0 -1154
- package/test/no-env-vars.test.ts +0 -59
- package/test/outputs-sync.test.ts +0 -107
- package/tsconfig.build.json +0 -9
- package/tsconfig.json +0 -4
- package/vitest.config.ts +0 -14
package/dist/host/events.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `aex events <run-id> [--follow] [--transport=auto|sse|polling]`
|
|
3
|
-
*
|
|
4
|
-
* Without `--follow`: lists events recorded so far and exits.
|
|
5
|
-
*
|
|
6
|
-
* With `--follow`: polls the coordinator-backed `/events` endpoint and
|
|
7
|
-
* prints new events as NDJSON until the run reaches a terminal status.
|
|
8
|
-
*/
|
|
9
|
-
import { operations, TERMINAL_RUN_STATUSES } from "@aexhq/contracts";
|
|
10
|
-
import { SUCCESS, TIMEOUT_ERR, USAGE_ERR, emitJsonError, makeHttpClient, parseCommonHostFlags, parseDuration, refuseInsideManagedRun, takeBooleanFlag, takeOptionFlag } from "./common.js";
|
|
11
|
-
// Membership-tested against the loose `string` run status from the BFF, so we
|
|
12
|
-
// back it with the canonical terminal set rather than a drift-prone local list.
|
|
13
|
-
const TERMINAL_STATUSES = new Set(TERMINAL_RUN_STATUSES);
|
|
14
|
-
export async function runEventsCmd(io, argv) {
|
|
15
|
-
if (await refuseInsideManagedRun(io, "events"))
|
|
16
|
-
return USAGE_ERR;
|
|
17
|
-
const common = parseCommonHostFlags(argv);
|
|
18
|
-
if (!common.ok) {
|
|
19
|
-
io.stderr(`${common.reason}\n`);
|
|
20
|
-
return USAGE_ERR;
|
|
21
|
-
}
|
|
22
|
-
const followResult = takeBooleanFlag(common.rest, "--follow");
|
|
23
|
-
const timeoutFlag = takeOptionFlag(followResult.remaining, "--timeout");
|
|
24
|
-
let timeoutMs = null;
|
|
25
|
-
if (timeoutFlag.value !== undefined) {
|
|
26
|
-
const parsed = parseDuration(timeoutFlag.value);
|
|
27
|
-
if (parsed.error) {
|
|
28
|
-
io.stderr(`--timeout: ${parsed.error}\n`);
|
|
29
|
-
return USAGE_ERR;
|
|
30
|
-
}
|
|
31
|
-
timeoutMs = parsed.ms;
|
|
32
|
-
}
|
|
33
|
-
const positional = timeoutFlag.remaining.filter((arg) => !arg.startsWith("--"));
|
|
34
|
-
if (positional.length !== 1) {
|
|
35
|
-
io.stderr("usage: aex events <run-id> [--follow] [--timeout <dur>] [common flags]\n");
|
|
36
|
-
return USAGE_ERR;
|
|
37
|
-
}
|
|
38
|
-
const runId = positional[0];
|
|
39
|
-
const http = makeHttpClient(io, common.flags);
|
|
40
|
-
if (!followResult.present) {
|
|
41
|
-
try {
|
|
42
|
-
const events = await operations.listRunEvents(http, runId);
|
|
43
|
-
for (const event of events) {
|
|
44
|
-
io.stdout(JSON.stringify(event) + "\n");
|
|
45
|
-
}
|
|
46
|
-
return SUCCESS;
|
|
47
|
-
}
|
|
48
|
-
catch (err) {
|
|
49
|
-
return emitJsonError(io, "events_failed", err.message ?? "event fetch failed", { runId });
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const seen = new Set();
|
|
53
|
-
const deadline = timeoutMs === null ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
|
|
54
|
-
// Follow: poll the coordinator-backed /events endpoint until terminal.
|
|
55
|
-
while (true) {
|
|
56
|
-
let events;
|
|
57
|
-
try {
|
|
58
|
-
events = await operations.listRunEvents(http, runId);
|
|
59
|
-
}
|
|
60
|
-
catch (err) {
|
|
61
|
-
io.stderr(`(transient) event poll failed: ${err.message}\n`);
|
|
62
|
-
if (Date.now() >= deadline)
|
|
63
|
-
return emitTimeout(io, runId, timeoutMs);
|
|
64
|
-
await sleep(2000);
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
for (const event of events) {
|
|
68
|
-
if (!seen.has(event.id)) {
|
|
69
|
-
seen.add(event.id);
|
|
70
|
-
io.stdout(JSON.stringify(event) + "\n");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
try {
|
|
74
|
-
const run = await operations.getRun(http, runId);
|
|
75
|
-
if (TERMINAL_STATUSES.has(run.status)) {
|
|
76
|
-
return SUCCESS;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (err) {
|
|
80
|
-
io.stderr(`(transient) status poll failed: ${err.message}\n`);
|
|
81
|
-
}
|
|
82
|
-
if (Date.now() >= deadline)
|
|
83
|
-
return emitTimeout(io, runId, timeoutMs);
|
|
84
|
-
await sleep(2000);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// Emit the timeout JSON error (RUNTIME_ERR side effect) but return the
|
|
88
|
-
// dedicated TIMEOUT_ERR code so scripts can distinguish a follow that ran
|
|
89
|
-
// out of time from a transport failure.
|
|
90
|
-
function emitTimeout(io, runId, timeoutMs) {
|
|
91
|
-
emitJsonError(io, "events_follow_timeout", `timed out after ${timeoutMs}ms following run events`, { runId });
|
|
92
|
-
return TIMEOUT_ERR;
|
|
93
|
-
}
|
|
94
|
-
function sleep(ms) {
|
|
95
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=events.js.map
|
package/dist/host/events.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/host/events.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,EAEL,OAAO,EACP,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,8EAA8E;AAC9E,gFAAgF;AAChF,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS,qBAAqB,CAAC,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EAAS,EAAE,IAAuB;IACnE,IAAI,MAAM,sBAAsB,CAAC,EAAE,EAAE,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAEjE,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,EAAE,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,cAAc,C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gBACtC,OAAO,OAAO,CAAC;YACjB,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,EAAE,CAAC,MAAM,CAAC,mCAAoC,GAAa,CAAC,OAAO,IAAI,CAAC,CAAC;QAC3E,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,QAAQ;YAAE,OAAO,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QACrE,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;AACH,CAAC;AAED,uEAAuE;AACvE,0EAA0E;AAC1E,wCAAwC;AACxC,SAAS,WAAW,CAAC,EAAS,EAAE,KAAa,EAAE,SAAwB;IACrE,aAAa,CAAC,EAAE,EAAE,uBAAuB,EAAE,mBAAmB,SAAS,yBAAyB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7G,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
|
package/dist/host/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Barrel for the host-side subcommand surface. Tests and the dispatcher
|
|
3
|
-
* import from here so the per-file structure stays an implementation
|
|
4
|
-
* detail.
|
|
5
|
-
*/
|
|
6
|
-
export { runRunCmd } from "./run-cmd.js";
|
|
7
|
-
export { runSkillsCmd } from "./skills-cmd.js";
|
|
8
|
-
export { runStatusCmd } from "./status.js";
|
|
9
|
-
export { runWaitCmd } from "./wait.js";
|
|
10
|
-
export { runEventsCmd } from "./events.js";
|
|
11
|
-
export { runOutputsCmd } from "./outputs.js";
|
|
12
|
-
export { runDownloadCmd } from "./download.js";
|
|
13
|
-
export { runCancelCmd } from "./cancel.js";
|
|
14
|
-
export { runDeleteCmd } from "./delete.js";
|
|
15
|
-
export { runDeleteAssetCmd } from "./delete-asset.js";
|
|
16
|
-
export { runWhoamiCmd } from "./whoami.js";
|
|
17
|
-
export { type CliExitCode, SUCCESS, USAGE_ERR, RUNTIME_ERR, TIMEOUT_ERR, parseCommonHostFlags, refuseInsideManagedRun } from "./common.js";
|
package/dist/host/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Barrel for the host-side subcommand surface. Tests and the dispatcher
|
|
3
|
-
* import from here so the per-file structure stays an implementation
|
|
4
|
-
* detail.
|
|
5
|
-
*/
|
|
6
|
-
export { runRunCmd } from "./run-cmd.js";
|
|
7
|
-
export { runSkillsCmd } from "./skills-cmd.js";
|
|
8
|
-
export { runStatusCmd } from "./status.js";
|
|
9
|
-
export { runWaitCmd } from "./wait.js";
|
|
10
|
-
export { runEventsCmd } from "./events.js";
|
|
11
|
-
export { runOutputsCmd } from "./outputs.js";
|
|
12
|
-
export { runDownloadCmd } from "./download.js";
|
|
13
|
-
export { runCancelCmd } from "./cancel.js";
|
|
14
|
-
export { runDeleteCmd } from "./delete.js";
|
|
15
|
-
export { runDeleteAssetCmd } from "./delete-asset.js";
|
|
16
|
-
export { runWhoamiCmd } from "./whoami.js";
|
|
17
|
-
export { SUCCESS, USAGE_ERR, RUNTIME_ERR, TIMEOUT_ERR, parseCommonHostFlags, refuseInsideManagedRun } from "./common.js";
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/host/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/host/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAEL,OAAO,EACP,SAAS,EACT,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,aAAa,CAAC"}
|
package/dist/host/outputs.d.ts
DELETED
package/dist/host/outputs.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `aex outputs <run-id>` — list captured outputs for a run.
|
|
3
|
-
* Prints one Output as JSON per line.
|
|
4
|
-
*
|
|
5
|
-
* `aex download <run-id> <output-id> [--out path]` is in a
|
|
6
|
-
* separate file (download.ts) to keep concerns tight.
|
|
7
|
-
*/
|
|
8
|
-
import { operations } from "@aexhq/contracts";
|
|
9
|
-
import { SUCCESS, USAGE_ERR, emitJsonError, makeHttpClient, parseCommonHostFlags, refuseInsideManagedRun } from "./common.js";
|
|
10
|
-
export async function runOutputsCmd(io, argv) {
|
|
11
|
-
if (await refuseInsideManagedRun(io, "outputs"))
|
|
12
|
-
return USAGE_ERR;
|
|
13
|
-
const common = parseCommonHostFlags(argv);
|
|
14
|
-
if (!common.ok) {
|
|
15
|
-
io.stderr(`${common.reason}\n`);
|
|
16
|
-
return USAGE_ERR;
|
|
17
|
-
}
|
|
18
|
-
const positional = common.rest.filter((arg) => !arg.startsWith("--"));
|
|
19
|
-
if (positional.length !== 1) {
|
|
20
|
-
io.stderr("usage: aex outputs <run-id> [common flags]\n");
|
|
21
|
-
return USAGE_ERR;
|
|
22
|
-
}
|
|
23
|
-
const runId = positional[0];
|
|
24
|
-
const http = makeHttpClient(io, common.flags);
|
|
25
|
-
try {
|
|
26
|
-
const outputs = await operations.listOutputs(http, runId);
|
|
27
|
-
for (const out of outputs) {
|
|
28
|
-
io.stdout(JSON.stringify(out) + "\n");
|
|
29
|
-
}
|
|
30
|
-
return SUCCESS;
|
|
31
|
-
}
|
|
32
|
-
catch (err) {
|
|
33
|
-
return emitJsonError(io, "outputs_failed", err.message ?? "outputs fetch failed", { runId });
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=outputs.js.map
|
package/dist/host/outputs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputs.js","sourceRoot":"","sources":["../../src/host/outputs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAEL,OAAO,EACP,SAAS,EACT,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAAS,EAAE,IAAuB;IACpE,IAAI,MAAM,sBAAsB,CAAC,EAAE,EAAE,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAElE,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,EAAE,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACtE,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,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