@alexkroman1/aai-cli 0.9.0 → 0.9.2
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/{_build-p1HHkdon.mjs → _build-Dw66C1m4.mjs} +1 -1
- package/dist/{_discover-BzlCDVZ6.mjs → _discover-DsorPpR_.mjs} +3 -3
- package/dist/{_server-common-qLA1QU2C.mjs → _server-common-CpK4rWGs.mjs} +1 -1
- package/dist/cli.mjs +11 -11
- package/dist/{deploy-KyNJaoP5.mjs → deploy-D_TBrC3r.mjs} +2 -2
- package/dist/{dev-DBFvKyzk.mjs → dev-DhHd1FRP.mjs} +3 -3
- package/dist/{init-BWG5OrQa.mjs → init-z8-W0Q1u.mjs} +2 -2
- package/dist/{rag-BnCMnccf.mjs → rag-D0xqGIrS.mjs} +1 -1
- package/dist/{secret-CzeHIGzE.mjs → secret-BQl3zBOS.mjs} +1 -1
- package/dist/{start-C1qkhU4O.mjs → start-Df8c2ciS.mjs} +2 -2
- package/package.json +4 -2
- package/templates/_shared/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as loadAgent } from "./_discover-
|
|
2
|
+
import { o as loadAgent } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand } from "./_ui-kJIua5L9.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
@@ -123,9 +123,9 @@ async function getServerInfo(cwd, explicitServer, explicitApiKey) {
|
|
|
123
123
|
/** Check if the CLI is running from the monorepo (dev mode). */
|
|
124
124
|
function isDevMode() {
|
|
125
125
|
const cliDir = path.dirname(fileURLToPath(import.meta.url));
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
return existsSync(path.join(
|
|
126
|
+
const root1 = path.resolve(cliDir, "../..");
|
|
127
|
+
const root2 = path.resolve(cliDir, "../../..");
|
|
128
|
+
return existsSync(path.join(root1, "pnpm-workspace.yaml")) || existsSync(path.join(root2, "pnpm-workspace.yaml"));
|
|
129
129
|
}
|
|
130
130
|
/** Resolve the server URL from an explicit value, project config, or default. */
|
|
131
131
|
function resolveServerUrl(explicit, configUrl) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as resolveCwd, r as getApiKey, t as fileExists } from "./_discover-
|
|
2
|
+
import { c as resolveCwd, r as getApiKey, t as fileExists } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -16,7 +16,7 @@ function findPkgJson(dir) {
|
|
|
16
16
|
const VERSION = JSON.parse(findPkgJson(cliDir)).version;
|
|
17
17
|
async function ensureAgent(cwd, yes) {
|
|
18
18
|
if (!await fileExists(path.join(cwd, "agent.ts"))) {
|
|
19
|
-
const { runInitCommand } = await import("./init-
|
|
19
|
+
const { runInitCommand } = await import("./init-z8-W0Q1u.mjs");
|
|
20
20
|
await runInitCommand({ yes }, { quiet: true });
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -56,7 +56,7 @@ const init = defineCommand({
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
async run({ args }) {
|
|
59
|
-
const { runInitCommand } = await import("./init-
|
|
59
|
+
const { runInitCommand } = await import("./init-z8-W0Q1u.mjs");
|
|
60
60
|
await runInitCommand({
|
|
61
61
|
dir: args.dir,
|
|
62
62
|
template: args.template,
|
|
@@ -93,7 +93,7 @@ const dev = defineCommand({
|
|
|
93
93
|
const cwd = resolveCwd();
|
|
94
94
|
await ensureAgent(cwd, args.yes);
|
|
95
95
|
await getApiKey();
|
|
96
|
-
const { runDevCommand } = await import("./dev-
|
|
96
|
+
const { runDevCommand } = await import("./dev-DhHd1FRP.mjs");
|
|
97
97
|
await runDevCommand({
|
|
98
98
|
cwd,
|
|
99
99
|
port: args.port,
|
|
@@ -114,7 +114,7 @@ const build = defineCommand({
|
|
|
114
114
|
async run({ args }) {
|
|
115
115
|
const cwd = resolveCwd();
|
|
116
116
|
await ensureAgent(cwd, args.yes);
|
|
117
|
-
const { runBuildCommand } = await import("./_build-
|
|
117
|
+
const { runBuildCommand } = await import("./_build-Dw66C1m4.mjs");
|
|
118
118
|
await runBuildCommand(cwd);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
@@ -142,7 +142,7 @@ const deploy = defineCommand({
|
|
|
142
142
|
async run({ args }) {
|
|
143
143
|
const cwd = resolveCwd();
|
|
144
144
|
await ensureAgent(cwd, args.yes);
|
|
145
|
-
const { runDeployCommand } = await import("./deploy-
|
|
145
|
+
const { runDeployCommand } = await import("./deploy-D_TBrC3r.mjs");
|
|
146
146
|
await runDeployCommand({
|
|
147
147
|
cwd,
|
|
148
148
|
...args.server ? { server: args.server } : {},
|
|
@@ -171,7 +171,7 @@ const start = defineCommand({
|
|
|
171
171
|
async run({ args }) {
|
|
172
172
|
const cwd = resolveCwd();
|
|
173
173
|
await getApiKey();
|
|
174
|
-
const { runStartCommand } = await import("./start-
|
|
174
|
+
const { runStartCommand } = await import("./start-Df8c2ciS.mjs");
|
|
175
175
|
await runStartCommand({
|
|
176
176
|
cwd,
|
|
177
177
|
port: args.port
|
|
@@ -197,7 +197,7 @@ const secret = defineCommand({
|
|
|
197
197
|
async run({ args }) {
|
|
198
198
|
const cwd = resolveCwd();
|
|
199
199
|
await getApiKey();
|
|
200
|
-
const { runSecretPut } = await import("./secret-
|
|
200
|
+
const { runSecretPut } = await import("./secret-BQl3zBOS.mjs");
|
|
201
201
|
await runSecretPut(cwd, args.name);
|
|
202
202
|
}
|
|
203
203
|
}),
|
|
@@ -214,7 +214,7 @@ const secret = defineCommand({
|
|
|
214
214
|
async run({ args }) {
|
|
215
215
|
const cwd = resolveCwd();
|
|
216
216
|
await getApiKey();
|
|
217
|
-
const { runSecretDelete } = await import("./secret-
|
|
217
|
+
const { runSecretDelete } = await import("./secret-BQl3zBOS.mjs");
|
|
218
218
|
await runSecretDelete(cwd, args.name);
|
|
219
219
|
}
|
|
220
220
|
}),
|
|
@@ -226,7 +226,7 @@ const secret = defineCommand({
|
|
|
226
226
|
async run() {
|
|
227
227
|
const cwd = resolveCwd();
|
|
228
228
|
await getApiKey();
|
|
229
|
-
const { runSecretList } = await import("./secret-
|
|
229
|
+
const { runSecretList } = await import("./secret-BQl3zBOS.mjs");
|
|
230
230
|
await runSecretList(cwd);
|
|
231
231
|
}
|
|
232
232
|
})
|
|
@@ -262,7 +262,7 @@ const rag = defineCommand({
|
|
|
262
262
|
async run({ args }) {
|
|
263
263
|
const cwd = resolveCwd();
|
|
264
264
|
await getApiKey();
|
|
265
|
-
const { runRagCommand } = await import("./rag-
|
|
265
|
+
const { runRagCommand } = await import("./rag-D0xqGIrS.mjs");
|
|
266
266
|
await runRagCommand({
|
|
267
267
|
url: args.url,
|
|
268
268
|
cwd,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { l as resolveServerUrl, n as generateSlug, r as getApiKey, s as readProjectConfig, u as writeProjectConfig } from "./_discover-
|
|
2
|
+
import { l as resolveServerUrl, n as generateSlug, r as getApiKey, s as readProjectConfig, u as writeProjectConfig } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand, o as stepInfo } from "./_ui-kJIua5L9.mjs";
|
|
4
|
-
import { buildAgentBundle } from "./_build-
|
|
4
|
+
import { buildAgentBundle } from "./_build-Dw66C1m4.mjs";
|
|
5
5
|
//#region _deploy.ts
|
|
6
6
|
async function attemptDeploy(fetchFn, url, slug, apiKey, env, worker, clientFiles) {
|
|
7
7
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./_discover-
|
|
2
|
+
import "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand, n as info } from "./_ui-kJIua5L9.mjs";
|
|
4
|
-
import { buildAgentBundle } from "./_build-
|
|
5
|
-
import { n as loadAgentDef, r as resolveServerEnv, t as bootServer } from "./_server-common-
|
|
4
|
+
import { buildAgentBundle } from "./_build-Dw66C1m4.mjs";
|
|
5
|
+
import { n as loadAgentDef, r as resolveServerEnv, t as bootServer } from "./_server-common-CpK4rWGs.mjs";
|
|
6
6
|
//#region dev.ts
|
|
7
7
|
async function _startDevServer(cwd, port, log, opts) {
|
|
8
8
|
const bundle = await buildAgentBundle(cwd, log);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as isDevMode, c as resolveCwd, f as askText, r as getApiKey, t as fileExists } from "./_discover-
|
|
2
|
+
import { a as isDevMode, c as resolveCwd, f as askText, r as getApiKey, t as fileExists } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand, r as interactive, s as warn } from "./_ui-kJIua5L9.mjs";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -56,7 +56,7 @@ async function runInitCommand(opts, extra) {
|
|
|
56
56
|
process.chdir(cwd);
|
|
57
57
|
delete process.env.INIT_CWD;
|
|
58
58
|
if (!(opts.skipDeploy || extra?.quiet)) {
|
|
59
|
-
const { runDeployCommand } = await import("./deploy-
|
|
59
|
+
const { runDeployCommand } = await import("./deploy-D_TBrC3r.mjs");
|
|
60
60
|
await runDeployCommand({ cwd });
|
|
61
61
|
}
|
|
62
62
|
return cwd;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as getServerInfo } from "./_discover-
|
|
2
|
+
import { i as getServerInfo } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand, n as info, s as warn, t as detail } from "./_ui-kJIua5L9.mjs";
|
|
4
4
|
import { errorMessage } from "@alexkroman1/aai/utils";
|
|
5
5
|
import pLimit from "p-limit";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as askPassword, i as getServerInfo } from "./_discover-
|
|
2
|
+
import { d as askPassword, i as getServerInfo } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand, o as stepInfo, t as detail } from "./_ui-kJIua5L9.mjs";
|
|
4
4
|
//#region secret.ts
|
|
5
5
|
async function apiFetch(cwd, pathSuffix, init) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as fileExists } from "./_discover-
|
|
2
|
+
import { t as fileExists } from "./_discover-DsorPpR_.mjs";
|
|
3
3
|
import { a as step, i as runCommand } from "./_ui-kJIua5L9.mjs";
|
|
4
|
-
import { n as loadAgentDef, r as resolveServerEnv, t as bootServer } from "./_server-common-
|
|
4
|
+
import { n as loadAgentDef, r as resolveServerEnv, t as bootServer } from "./_server-common-CpK4rWGs.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region start.ts
|
|
7
7
|
async function _startProductionServer(cwd, port, log) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aai": "dist/cli.mjs"
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"templates"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@hono/node-server": "^1.19.11",
|
|
14
|
+
"hono": "^4.12.9",
|
|
13
15
|
"@chonkiejs/core": "^0.0.8",
|
|
14
16
|
"@clack/prompts": "^1.1.0",
|
|
15
17
|
"@preact/preset-vite": "^2.10.5",
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
"picocolors": "^1.1.1",
|
|
21
23
|
"vite": "^8.0.2",
|
|
22
24
|
"zod": "^4.3.6",
|
|
23
|
-
"@alexkroman1/aai": "0.9.
|
|
25
|
+
"@alexkroman1/aai": "0.9.2"
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
26
28
|
"playwright": "^1.58.2",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"lint:fix": "biome check --write ."
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@alexkroman1/aai": "0.9.
|
|
12
|
-
"@alexkroman1/aai-ui": "0.9.
|
|
11
|
+
"@alexkroman1/aai": "0.9.2",
|
|
12
|
+
"@alexkroman1/aai-ui": "0.9.2",
|
|
13
13
|
"@preact/signals": "^2.8.2",
|
|
14
14
|
"preact": "^10.29.0",
|
|
15
15
|
"tailwindcss": "^4.2.1",
|