@alexkroman1/aai-cli 0.15.2 → 0.15.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/dist/{_bundler-B6v31ROV.mjs → _bundler-DCuNHjDF.mjs} +1 -1
- package/dist/_default-html.d.ts +1 -1
- package/dist/{_dev-server-mHw_an61.mjs → _dev-server-B4ZiXbZj.mjs} +2 -2
- package/dist/{build-CKhanHVv.mjs → build-BnXLgfk-.mjs} +1 -1
- package/dist/cli.mjs +5 -5
- package/dist/{client-bundler-DZ_Zoznn.mjs → client-bundler-DE-AGdm7.mjs} +1 -1
- package/dist/client-bundler.mjs +1 -1
- package/dist/{console-JZnt9Ak6.mjs → console-Bp1kSqz_.mjs} +2 -2
- package/dist/{deploy-CbA8Ibiu.mjs → deploy-eWDoiwvn.mjs} +1 -1
- package/dist/{dev-Ci6tvUSa.mjs → dev-CxZsZsOL.mjs} +1 -1
- package/dist/{logs-BeLJUZBn.mjs → logs-CkmFdSbr.mjs} +3 -8
- package/dist/logs.d.ts +0 -2
- package/dist/scaffold/package.json +4 -4
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { g as validateAgentExport } from "./_utils-BVLdBvdT.mjs";
|
|
3
|
-
import { t as buildClient } from "./client-bundler-
|
|
3
|
+
import { t as buildClient } from "./client-bundler-DE-AGdm7.mjs";
|
|
4
4
|
import { buildWorker } from "./worker-bundler.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/_default-html.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ViteDevServer } from "vite";
|
|
2
|
-
export declare const DEFAULT_HTML = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, viewport-fit=cover\" />\n <title>aai</title>\n <link rel=\"icon\" href=\"./favicon.ico\" />\n <style>html, body { background: #
|
|
2
|
+
export declare const DEFAULT_HTML = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, viewport-fit=cover\" />\n <title>aai</title>\n <link rel=\"icon\" href=\"./favicon.ico\" />\n <style>html, body { background: #FAFAFA; margin: 0; }</style>\n </head>\n <body>\n <main id=\"app\"></main>\n <script type=\"module\" src=\"./client.tsx\"></script>\n </body>\n</html>";
|
|
3
3
|
/** The one middleware {@link fallbackHtmlPlugin} installs, typed to what it touches. */
|
|
4
4
|
export type FallbackHtmlMiddleware = (req: {
|
|
5
5
|
url?: string | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as defaultUi } from "./_ui-Coe0zwmm.mjs";
|
|
3
3
|
import { a as errorCode, s as errorMessage$1 } from "./_utils-BVLdBvdT.mjs";
|
|
4
|
-
import { n as fallbackHtmlPlugin, r as defaultClientPlugins } from "./client-bundler-
|
|
4
|
+
import { n as fallbackHtmlPlugin, r as defaultClientPlugins } from "./client-bundler-DE-AGdm7.mjs";
|
|
5
5
|
import { r as devSourceViteConfig, t as DEDUPED_PEERS } from "./_vite-env-BiyJ0GQH.mjs";
|
|
6
6
|
import { buildWorker } from "./worker-bundler.mjs";
|
|
7
7
|
import { typecheckProject } from "./typecheck.mjs";
|
|
8
8
|
import { n as ensureApiKey } from "./_config-mq1I5Cva.mjs";
|
|
9
9
|
import { t as resolveDenoRunCode } from "./_run-code-deno-C0AtfHeH.mjs";
|
|
10
10
|
import { i as resolveServerEnv } from "./_server-common-CVXIeWrY.mjs";
|
|
11
|
-
import { n as createWorkerEvaluator } from "./_bundler-
|
|
11
|
+
import { n as createWorkerEvaluator } from "./_bundler-DCuNHjDF.mjs";
|
|
12
12
|
import { i as hostModeEnv, n as devBindHost, r as devWatchEnabled, t as createDevLogger } from "./_dev-env-D9Uy5wNt.mjs";
|
|
13
13
|
import { existsSync, statSync } from "node:fs";
|
|
14
14
|
import path from "node:path";
|
|
@@ -5,7 +5,7 @@ import { t as defaultUi } from "./_ui-Coe0zwmm.mjs";
|
|
|
5
5
|
import { n as withPreservedNodeEnv } from "./_vite-env-BiyJ0GQH.mjs";
|
|
6
6
|
import { n as WORKER_ARTIFACT_REL, t as CLIENT_ARTIFACT_REL } from "./_artifacts-BJOYGQPp.mjs";
|
|
7
7
|
import { r as declaredEnvNames, t as DEPLOY_ENV_DECLARATION_FILE } from "./_server-common-CVXIeWrY.mjs";
|
|
8
|
-
import { i as evalWorkerConfig, r as evalWorkerBundle, t as buildAgentBundle } from "./_bundler-
|
|
8
|
+
import { i as evalWorkerConfig, r as evalWorkerBundle, t as buildAgentBundle } from "./_bundler-DCuNHjDF.mjs";
|
|
9
9
|
import { assertTypechecks } from "./_typecheck-gate-CcX2gLJZ.mjs";
|
|
10
10
|
import { n as classifyVitestError, r as runVitest } from "./_vitest-runner-CKI8_K1b.mjs";
|
|
11
11
|
import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CLxFQ5ox.mjs";
|
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
|
|
@@ -892,7 +892,7 @@ const dev = defineExec({
|
|
|
892
892
|
},
|
|
893
893
|
cwd: "agent",
|
|
894
894
|
async run({ args, cwd, ui }) {
|
|
895
|
-
const { executeDev } = await import("./dev-
|
|
895
|
+
const { executeDev } = await import("./dev-CxZsZsOL.mjs");
|
|
896
896
|
return executeDev({
|
|
897
897
|
cwd,
|
|
898
898
|
port: args.port,
|
|
@@ -913,7 +913,7 @@ const consoleCommand = defineExec({
|
|
|
913
913
|
} },
|
|
914
914
|
cwd: "agent",
|
|
915
915
|
async run({ args, cwd, mode, ui }) {
|
|
916
|
-
const { executeConsole } = await import("./console-
|
|
916
|
+
const { executeConsole } = await import("./console-Bp1kSqz_.mjs");
|
|
917
917
|
return executeConsole({
|
|
918
918
|
cwd,
|
|
919
919
|
verbose: args.verbose,
|
|
@@ -1003,7 +1003,7 @@ const build = defineExec({
|
|
|
1003
1003
|
},
|
|
1004
1004
|
cwd: "agent",
|
|
1005
1005
|
async run({ args, cwd, ui }) {
|
|
1006
|
-
const { executeBuild } = await import("./build-
|
|
1006
|
+
const { executeBuild } = await import("./build-BnXLgfk-.mjs");
|
|
1007
1007
|
return executeBuild({
|
|
1008
1008
|
cwd,
|
|
1009
1009
|
skipTests: args["skip-tests"],
|
|
@@ -1031,7 +1031,7 @@ const deploy = defineExec({
|
|
|
1031
1031
|
},
|
|
1032
1032
|
cwd: "agent",
|
|
1033
1033
|
async run({ args, cwd, ui }) {
|
|
1034
|
-
const { executeDeploy } = await import("./deploy-
|
|
1034
|
+
const { executeDeploy } = await import("./deploy-eWDoiwvn.mjs");
|
|
1035
1035
|
return executeDeploy({
|
|
1036
1036
|
cwd,
|
|
1037
1037
|
server: args.server,
|
|
@@ -129,7 +129,7 @@ const DEFAULT_HTML = `<!DOCTYPE html>
|
|
|
129
129
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
130
130
|
<title>aai</title>
|
|
131
131
|
<link rel="icon" href="./favicon.ico" />
|
|
132
|
-
<style>html, body { background: #
|
|
132
|
+
<style>html, body { background: #FAFAFA; margin: 0; }</style>
|
|
133
133
|
</head>
|
|
134
134
|
<body>
|
|
135
135
|
<main id="app"></main>
|
package/dist/client-bundler.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { a as ok, n as fail } from "./_output-DBP9Op_d.mjs";
|
|
3
3
|
import { t as defaultUi } from "./_ui-Coe0zwmm.mjs";
|
|
4
4
|
import { o as errorDetail, s as errorMessage } from "./_utils-BVLdBvdT.mjs";
|
|
5
|
-
import { n as createWorkerEvaluator } from "./_bundler-
|
|
6
|
-
import { loadWorker, t as resolveAgentEnv } from "./_dev-server-
|
|
5
|
+
import { n as createWorkerEvaluator } from "./_bundler-DCuNHjDF.mjs";
|
|
6
|
+
import { loadWorker, t as resolveAgentEnv } from "./_dev-server-B4ZiXbZj.mjs";
|
|
7
7
|
import { styleText } from "node:util";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { connectSession, createRuntime, ensureSessionStateSchema, ensureWorkflowJournalSchema } from "@alexkroman1/aai-runtime";
|
|
@@ -4,7 +4,7 @@ import { n as fmtUrl, t as defaultUi } from "./_ui-Coe0zwmm.mjs";
|
|
|
4
4
|
import { s as errorMessage$1 } from "./_utils-BVLdBvdT.mjs";
|
|
5
5
|
import { s as updateProjectConfig } from "./_config-mq1I5Cva.mjs";
|
|
6
6
|
import { i as resolveServerEnv } from "./_server-common-CVXIeWrY.mjs";
|
|
7
|
-
import { i as evalWorkerConfig, t as buildAgentBundle } from "./_bundler-
|
|
7
|
+
import { i as evalWorkerConfig, t as buildAgentBundle } from "./_bundler-DCuNHjDF.mjs";
|
|
8
8
|
import { o as resolveDeployTarget } from "./_agent-BopNO5Bq.mjs";
|
|
9
9
|
import { assertTypechecks } from "./_typecheck-gate-CcX2gLJZ.mjs";
|
|
10
10
|
import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CLxFQ5ox.mjs";
|
|
@@ -164,7 +164,7 @@ async function resolveDevDeps(deps) {
|
|
|
164
164
|
ui: deps.ui ?? defaultUi,
|
|
165
165
|
startQuickTunnel: deps.startQuickTunnel ?? startQuickTunnel,
|
|
166
166
|
runPublicUrlHook: deps.runPublicUrlHook ?? runPublicUrlHook,
|
|
167
|
-
startDevServer: deps.startDevServer ?? (await import("./_dev-server-
|
|
167
|
+
startDevServer: deps.startDevServer ?? (await import("./_dev-server-B4ZiXbZj.mjs")).startDevServer
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
@@ -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.4",
|
|
19
|
+
"@alexkroman1/aai-cli": "^0.15.4",
|
|
20
|
+
"@alexkroman1/aai-runtime": "^0.15.4",
|
|
21
|
+
"@alexkroman1/aai-ui": "^0.15.4",
|
|
22
22
|
"react": "^19.3.0",
|
|
23
23
|
"react-dom": "^19.3.0",
|
|
24
24
|
"tailwindcss": "^4.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
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-runtime": "0.15.
|
|
63
|
-
"@alexkroman1/aai-ui": "0.15.
|
|
61
|
+
"@alexkroman1/aai": "0.15.4",
|
|
62
|
+
"@alexkroman1/aai-runtime": "0.15.4",
|
|
63
|
+
"@alexkroman1/aai-ui": "0.15.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"playwright": "^1.63.0",
|