@alexkroman1/aai-cli 1.3.1 → 1.3.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.
|
@@ -4,6 +4,7 @@ import { existsSync } from "node:fs";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
|
+
import os from "node:os";
|
|
7
8
|
import { downloadTemplate } from "giget";
|
|
8
9
|
//#region _templates.ts
|
|
9
10
|
const GIGET_SOURCE = "github:alexkroman/agent/packages/aai-templates";
|
|
@@ -21,7 +22,9 @@ function resolveLocalTemplatesDir() {
|
|
|
21
22
|
async function resolveTemplatesDir() {
|
|
22
23
|
if (process.env.AAI_TEMPLATES_DIR) return process.env.AAI_TEMPLATES_DIR;
|
|
23
24
|
if (isDevMode()) return resolveLocalTemplatesDir();
|
|
25
|
+
const extractDir = await fs.mkdtemp(path.join(os.tmpdir(), "aai-templates-"));
|
|
24
26
|
const { dir } = await downloadTemplate(`${GIGET_SOURCE}#${GIGET_REF}`, {
|
|
27
|
+
dir: extractDir,
|
|
25
28
|
force: true,
|
|
26
29
|
forceClean: true
|
|
27
30
|
});
|
package/dist/cli.mjs
CHANGED
|
@@ -113,7 +113,7 @@ const init = defineCommand({
|
|
|
113
113
|
},
|
|
114
114
|
async run({ args }) {
|
|
115
115
|
await runCommand(args, async (mode) => {
|
|
116
|
-
const { executeInit } = await import("./init-
|
|
116
|
+
const { executeInit } = await import("./init-GWTdzrrm.mjs");
|
|
117
117
|
return executeInit({
|
|
118
118
|
dir: args.dir,
|
|
119
119
|
force: args.force,
|
|
@@ -133,7 +133,7 @@ async function tryDeploy(cwd, server, monorepoRoot) {
|
|
|
133
133
|
}
|
|
134
134
|
/** Scaffold the project, optionally showing a spinner. */
|
|
135
135
|
async function scaffoldProject(dir, cwd, template, silent) {
|
|
136
|
-
const { runInit } = await import("./_init-
|
|
136
|
+
const { runInit } = await import("./_init-Bh5etNEh.mjs");
|
|
137
137
|
if (silent) {
|
|
138
138
|
await runInit({
|
|
139
139
|
targetDir: cwd,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aai": "dist/cli.mjs"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"p-debounce": "^5.1.0",
|
|
24
24
|
"vite": "^8.0.8",
|
|
25
25
|
"zod": "^4.3.6",
|
|
26
|
-
"@alexkroman1/aai-ui": "1.3.
|
|
27
|
-
"@alexkroman1/aai": "1.3.
|
|
26
|
+
"@alexkroman1/aai-ui": "1.3.2",
|
|
27
|
+
"@alexkroman1/aai": "1.3.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"get-port": "^7.2.0",
|