@alexkroman1/aai-cli 0.9.0 → 0.9.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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { o as loadAgent } from "./_discover-BzlCDVZ6.mjs";
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 packagesDir = path.resolve(cliDir, "..");
127
- const altPackagesDir = path.resolve(cliDir, "../..");
128
- return existsSync(path.join(packagesDir, "aai", "package.json")) || existsSync(path.join(altPackagesDir, "aai", "package.json"));
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) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as getApiKey } from "./_discover-BzlCDVZ6.mjs";
2
+ import { r as getApiKey } from "./_discover-DsorPpR_.mjs";
3
3
  import path from "node:path";
4
4
  import fs from "node:fs/promises";
5
5
  //#region _server-common.ts
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-BzlCDVZ6.mjs";
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-BWG5OrQa.mjs");
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-BWG5OrQa.mjs");
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-DBFvKyzk.mjs");
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-p1HHkdon.mjs");
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-KyNJaoP5.mjs");
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-C1qkhU4O.mjs");
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-CzeHIGzE.mjs");
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-CzeHIGzE.mjs");
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-CzeHIGzE.mjs");
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-BnCMnccf.mjs");
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-BzlCDVZ6.mjs";
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-p1HHkdon.mjs";
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-BzlCDVZ6.mjs";
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-p1HHkdon.mjs";
5
- import { n as loadAgentDef, r as resolveServerEnv, t as bootServer } from "./_server-common-qLA1QU2C.mjs";
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-BzlCDVZ6.mjs";
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-KyNJaoP5.mjs");
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-BzlCDVZ6.mjs";
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-BzlCDVZ6.mjs";
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-BzlCDVZ6.mjs";
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-qLA1QU2C.mjs";
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.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "aai": "dist/cli.mjs"
@@ -20,7 +20,7 @@
20
20
  "picocolors": "^1.1.1",
21
21
  "vite": "^8.0.2",
22
22
  "zod": "^4.3.6",
23
- "@alexkroman1/aai": "0.9.0"
23
+ "@alexkroman1/aai": "0.9.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "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.0",
12
- "@alexkroman1/aai-ui": "0.9.0",
11
+ "@alexkroman1/aai": "0.9.1",
12
+ "@alexkroman1/aai-ui": "0.9.1",
13
13
  "@preact/signals": "^2.8.2",
14
14
  "preact": "^10.29.0",
15
15
  "tailwindcss": "^4.2.1",