@alexkroman1/aai-cli 0.12.0 → 0.12.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.
|
@@ -65,8 +65,15 @@ async function bundleAgent(agent, opts) {
|
|
|
65
65
|
ssr: path.join(agent.dir, "agent.ts"),
|
|
66
66
|
outDir: buildDir,
|
|
67
67
|
emptyOutDir: true,
|
|
68
|
-
rollupOptions: {
|
|
69
|
-
|
|
68
|
+
rollupOptions: {
|
|
69
|
+
external: ["zod"],
|
|
70
|
+
output: {
|
|
71
|
+
entryFileNames: "worker.js",
|
|
72
|
+
paths: { zod: "/app/_zod.mjs" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
ssr: { external: ["zod"] }
|
|
70
77
|
});
|
|
71
78
|
} catch (err) {
|
|
72
79
|
throw new BundleError(errorMessage(err), { cause: err });
|
package/dist/cli.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function findPkgJson(dir) {
|
|
|
35
35
|
const VERSION = JSON.parse(findPkgJson(cliDir)).version;
|
|
36
36
|
async function ensureAgent(cwd, yes) {
|
|
37
37
|
if (!await fileExists(path.join(cwd, "agent.ts"))) {
|
|
38
|
-
const { runInitCommand } = await import("./init-
|
|
38
|
+
const { runInitCommand } = await import("./init-DTfpWUv8.mjs");
|
|
39
39
|
return runInitCommand({ yes }, { quiet: true });
|
|
40
40
|
}
|
|
41
41
|
return cwd;
|
|
@@ -79,7 +79,7 @@ const init = defineCommand({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
async run({ args }) {
|
|
82
|
-
const { runInitCommand } = await import("./init-
|
|
82
|
+
const { runInitCommand } = await import("./init-DTfpWUv8.mjs");
|
|
83
83
|
await runInitCommand({
|
|
84
84
|
dir: args.dir,
|
|
85
85
|
template: args.template,
|
|
@@ -140,7 +140,7 @@ const build = defineCommand({
|
|
|
140
140
|
const { runVitest } = await import("./test-CYoqKJP0.mjs");
|
|
141
141
|
runVitest(cwd);
|
|
142
142
|
}
|
|
143
|
-
const { runBuildCommand } = await import("./_bundler-
|
|
143
|
+
const { runBuildCommand } = await import("./_bundler-2yKukgnU.mjs");
|
|
144
144
|
await runBuildCommand(cwd);
|
|
145
145
|
}
|
|
146
146
|
});
|
|
@@ -159,7 +159,7 @@ const deploy = defineCommand({
|
|
|
159
159
|
},
|
|
160
160
|
async run({ args }) {
|
|
161
161
|
const cwd = await setup(args, { agent: true });
|
|
162
|
-
const { runDeployCommand } = await import("./deploy-
|
|
162
|
+
const { runDeployCommand } = await import("./deploy-CnscqVZv.mjs");
|
|
163
163
|
try {
|
|
164
164
|
await runDeployCommand({
|
|
165
165
|
cwd,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as getApiKey, c as readProjectConfig, d as writeProjectConfig, i as generateSlug, u as resolveServerUrl } from "./_discover-a8yIuqEp.mjs";
|
|
3
|
-
import { buildAgentBundle } from "./_bundler-
|
|
3
|
+
import { buildAgentBundle } from "./_bundler-2yKukgnU.mjs";
|
|
4
4
|
import { fmtUrl, log } from "./_ui-DWGXImbO.mjs";
|
|
5
5
|
import { n as apiError, r as apiRequest, t as HINT_INVALID_API_KEY } from "./_api-client-H4MFOr8j.mjs";
|
|
6
6
|
//#region _deploy.ts
|
|
@@ -100,7 +100,7 @@ async function runInitCommand(opts, extra) {
|
|
|
100
100
|
s.stop("Project created");
|
|
101
101
|
await installDeps(cwd, pm);
|
|
102
102
|
if (!(opts.skipDeploy || extra?.quiet)) {
|
|
103
|
-
const { runDeployCommand } = await import("./deploy-
|
|
103
|
+
const { runDeployCommand } = await import("./deploy-CnscqVZv.mjs");
|
|
104
104
|
await runDeployCommand({ cwd });
|
|
105
105
|
}
|
|
106
106
|
if (!extra?.quiet) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai-cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aai": "dist/cli.mjs"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"human-id": "^4.1.3",
|
|
17
17
|
"vite": "^8.0.3",
|
|
18
18
|
"zod": "^4.3.6",
|
|
19
|
-
"@alexkroman1/aai": "0.12.
|
|
19
|
+
"@alexkroman1/aai": "0.12.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"playwright": "^1.58.2",
|