@alexkroman1/aai-cli 0.15.1 → 0.15.3
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.mjs
CHANGED
|
@@ -425,7 +425,7 @@ const dirArg = {
|
|
|
425
425
|
*/
|
|
426
426
|
const REAL_EXECUTORS = {
|
|
427
427
|
secret: () => import("./secret-DPdPEet2.mjs"),
|
|
428
|
-
logs: () => import("./logs-
|
|
428
|
+
logs: () => import("./logs-CkmFdSbr.mjs")
|
|
429
429
|
};
|
|
430
430
|
/**
|
|
431
431
|
* Build `aai secret` and `aai logs` over `load`. The seam a spec hands fake
|
|
@@ -5,6 +5,7 @@ import { p as checkedResponse } from "./_studio-B5m4jBTD.mjs";
|
|
|
5
5
|
import { r as slugRequestOn, t as REAL_PLATFORM } from "./_slug-api-BnmTHtjd.mjs";
|
|
6
6
|
import { isRecord, omitUndefined } from "@alexkroman1/aai/utils";
|
|
7
7
|
import { sleep } from "@alexkroman1/aai/internal";
|
|
8
|
+
import { formatLogTime } from "@alexkroman1/aai/host-internal";
|
|
8
9
|
//#region src/logs.ts
|
|
9
10
|
/**
|
|
10
11
|
* `aai logs` — what the deployed agent has printed.
|
|
@@ -30,16 +31,10 @@ const FOLLOW_POLL_MS = 1e3;
|
|
|
30
31
|
function isLogsPage(value) {
|
|
31
32
|
return isRecord(value) && Array.isArray(value.lines) && typeof value.cursor === "number" && typeof value.running === "boolean";
|
|
32
33
|
}
|
|
33
|
-
/** `HH:MM:SS.mmm`, local — the same shape the studio pane prints. */
|
|
34
|
-
function formatTime(at) {
|
|
35
|
-
const d = new Date(at);
|
|
36
|
-
const pad = (n, width = 2) => String(n).padStart(width, "0");
|
|
37
|
-
return `${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}.${pad(d.getMilliseconds(), 3)}`;
|
|
38
|
-
}
|
|
39
34
|
/** One rendered line: time, then the text. `stderr` is called out by name. */
|
|
40
35
|
function formatLine(line) {
|
|
41
36
|
const mark = line.stream === "stderr" ? " ERR" : "";
|
|
42
|
-
return `${
|
|
37
|
+
return `${formatLogTime(line.at)}${mark} ${line.text}`;
|
|
43
38
|
}
|
|
44
39
|
/**
|
|
45
40
|
* One page, against a target resolved ONCE by the caller.
|
|
@@ -99,4 +94,4 @@ function printPage(page, ui) {
|
|
|
99
94
|
return page.lines.length;
|
|
100
95
|
}
|
|
101
96
|
//#endregion
|
|
102
|
-
export { FOLLOW_POLL_MS, executeLogs, formatLine
|
|
97
|
+
export { FOLLOW_POLL_MS, executeLogs, formatLine };
|
package/dist/logs.d.ts
CHANGED
|
@@ -45,8 +45,6 @@ export type LogsOpts = {
|
|
|
45
45
|
/** Stops a `--follow` loop. Tests pass one; the CLI leaves it to Ctrl-C. */
|
|
46
46
|
signal?: AbortSignal | undefined;
|
|
47
47
|
};
|
|
48
|
-
/** `HH:MM:SS.mmm`, local — the same shape the studio pane prints. */
|
|
49
|
-
export declare function formatTime(at: number): string;
|
|
50
48
|
/** One rendered line: time, then the text. `stderr` is called out by name. */
|
|
51
49
|
export declare function formatLine(line: LogLine): string;
|
|
52
50
|
type LogsData = {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"publish:agent": "aai publish"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alexkroman1/aai": "^0.15.
|
|
19
|
-
"@alexkroman1/aai-cli": "^0.15.
|
|
20
|
-
"@alexkroman1/aai-runtime": "^0.15.
|
|
21
|
-
"@alexkroman1/aai-ui": "^0.15.
|
|
18
|
+
"@alexkroman1/aai": "^0.15.3",
|
|
19
|
+
"@alexkroman1/aai-cli": "^0.15.3",
|
|
20
|
+
"@alexkroman1/aai-runtime": "^0.15.3",
|
|
21
|
+
"@alexkroman1/aai-ui": "^0.15.3",
|
|
22
22
|
"react": "^19.3.0",
|
|
23
23
|
"react-dom": "^19.3.0",
|
|
24
24
|
"tailwindcss": "^4.0.0",
|
|
@@ -356,7 +356,9 @@ export function App(): ReactNode {
|
|
|
356
356
|
</header>
|
|
357
357
|
|
|
358
358
|
<label className="flex flex-col gap-1 text-sm md:max-w-md">
|
|
359
|
-
|
|
359
|
+
<span>
|
|
360
|
+
API key (the agent's <code>CALLS_API_KEY</code>)
|
|
361
|
+
</span>
|
|
360
362
|
<input
|
|
361
363
|
className="rounded-md border border-aai-border bg-aai-bg px-3 py-2 font-mono text-sm text-aai-text"
|
|
362
364
|
type="password"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"vite": "^8.3.1",
|
|
59
59
|
"xstate": "^5.33.2",
|
|
60
60
|
"zod": "^4.6.5",
|
|
61
|
-
"@alexkroman1/aai": "0.15.
|
|
62
|
-
"@alexkroman1/aai-
|
|
63
|
-
"@alexkroman1/aai-
|
|
61
|
+
"@alexkroman1/aai": "0.15.3",
|
|
62
|
+
"@alexkroman1/aai-ui": "0.15.3",
|
|
63
|
+
"@alexkroman1/aai-runtime": "0.15.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"playwright": "^1.63.0",
|