@agentuity/cli 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworks.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/frameworks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"frameworks.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/frameworks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAmBH,MAAM,WAAW,iBAAiB;IACjC,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IAEhD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAGnE;AAID,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,EA8H/C,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAE9E"}
|
|
@@ -10,15 +10,28 @@
|
|
|
10
10
|
* inline code snippets and produces complete, working files.
|
|
11
11
|
*/
|
|
12
12
|
import { join } from 'node:path';
|
|
13
|
-
import { cpSync } from 'node:fs';
|
|
14
|
-
// Resolve the templates directory relative to this file
|
|
15
|
-
|
|
13
|
+
import { cpSync, existsSync } from 'node:fs';
|
|
14
|
+
// Resolve the templates directory relative to this file.
|
|
15
|
+
// When running from src/ (via bun), import.meta.dir is src/cmd/project/.
|
|
16
|
+
// When running from dist/ (via compiled JS), import.meta.dir is dist/cmd/project/.
|
|
17
|
+
// Templates live under src/cmd/project/templates/ but are also shipped
|
|
18
|
+
// in the npm package at that path. We check both locations.
|
|
19
|
+
const templatesDir = (() => {
|
|
20
|
+
const srcDir = join(import.meta.dir, 'templates');
|
|
21
|
+
if (existsSync(join(srcDir, 'nextjs')))
|
|
22
|
+
return srcDir;
|
|
23
|
+
// Fallback: from dist/cmd/project/ → src/cmd/project/templates/
|
|
24
|
+
const fallbackDir = join(import.meta.dir, '..', '..', 'src', 'cmd', 'project', 'templates');
|
|
25
|
+
if (existsSync(join(fallbackDir, 'nextjs')))
|
|
26
|
+
return fallbackDir;
|
|
27
|
+
return srcDir; // will fail with a clear error if neither exists
|
|
28
|
+
})();
|
|
16
29
|
/**
|
|
17
30
|
* Apply a template overlay directory on top of a scaffolded project.
|
|
18
31
|
*/
|
|
19
32
|
export function applyOverlay(dest, overlayDir) {
|
|
20
33
|
const overlayPath = join(templatesDir, overlayDir);
|
|
21
|
-
cpSync(overlayPath, dest, { recursive: true, dereference: true });
|
|
34
|
+
cpSync(overlayPath, dest, { recursive: true, dereference: true, force: true });
|
|
22
35
|
}
|
|
23
36
|
// ─── Framework Catalog ───────────────────────────────────────────────────────
|
|
24
37
|
export const frameworkCatalog = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworks.js","sourceRoot":"","sources":["../../../src/cmd/project/frameworks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"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BAAkB,CAAC,IAAY;IAC9C,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACtD,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -689,12 +689,12 @@ export declare const BuildMetadataSchema: z.ZodObject<{
|
|
|
689
689
|
version: z.ZodString;
|
|
690
690
|
type: z.ZodEnum<{
|
|
691
691
|
email: "email";
|
|
692
|
-
websocket: "websocket";
|
|
693
692
|
stream: "stream";
|
|
693
|
+
websocket: "websocket";
|
|
694
|
+
sse: "sse";
|
|
694
695
|
api: "api";
|
|
695
696
|
sms: "sms";
|
|
696
697
|
cron: "cron";
|
|
697
|
-
sse: "sse";
|
|
698
698
|
}>;
|
|
699
699
|
agentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
700
700
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -832,9 +832,9 @@ export declare const DeployOptionsSchema: z.ZodObject<{
|
|
|
832
832
|
webhook: "webhook";
|
|
833
833
|
}>>>;
|
|
834
834
|
event: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
835
|
-
push: "push";
|
|
836
835
|
workflow: "workflow";
|
|
837
836
|
pull_request: "pull_request";
|
|
837
|
+
push: "push";
|
|
838
838
|
manual: "manual";
|
|
839
839
|
}>>>;
|
|
840
840
|
pullRequestNumber: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
2
|
+
"name": "@agentuity/cli",
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"author": "Agentuity employees and contributors",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"agentuity": "./bin/cli.ts"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./vite-plugin": {
|
|
18
|
+
"import": "./dist/cmd/build/vite/index.js",
|
|
19
|
+
"types": "./dist/cmd/build/vite/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"AGENTS.md",
|
|
24
|
+
"README.md",
|
|
25
|
+
"src",
|
|
26
|
+
"dist",
|
|
27
|
+
"bin"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
31
|
+
"build": "bunx tsc --build --force",
|
|
32
|
+
"typecheck": "bunx tsc --noEmit",
|
|
33
|
+
"test": "bun scripts/test-create-flow.ts && bun scripts/test-exit-codes.ts && bun scripts/test-response-schema.ts && bun scripts/test-batch-reporting.ts && bun scripts/test-response-envelope.ts && bun scripts/test-concurrent-sessions.ts",
|
|
34
|
+
"test:create": "bun scripts/test-create-flow.ts",
|
|
35
|
+
"test:exit-codes": "bun scripts/test-exit-codes.ts",
|
|
36
|
+
"test:response-schema": "bun scripts/test-response-schema.ts",
|
|
37
|
+
"test:batch": "bun scripts/test-batch-reporting.ts",
|
|
38
|
+
"test:envelope": "bun scripts/test-response-envelope.ts",
|
|
39
|
+
"test:bundled-create": "bun scripts/test-bundled-create.ts",
|
|
40
|
+
"test:concurrent-sessions": "bun scripts/test-concurrent-sessions.ts",
|
|
41
|
+
"prepublishOnly": "bun run clean && bun run build"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@agentuity/auth": "3.0.0-alpha.6",
|
|
45
|
+
"@agentuity/coder-tui": "3.0.0-alpha.6",
|
|
46
|
+
"@agentuity/core": "3.0.0-alpha.6",
|
|
47
|
+
"@agentuity/frontend": "3.0.0-alpha.6",
|
|
48
|
+
"@agentuity/server": "3.0.0-alpha.6",
|
|
49
|
+
"@datasert/cronjs-parser": "^1.4.0",
|
|
50
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
51
|
+
"acorn-loose": "^8.5.2",
|
|
52
|
+
"adm-zip": "^0.5.16",
|
|
53
|
+
"archiver": "^7.0.1",
|
|
54
|
+
"astring": "^1.9.0",
|
|
55
|
+
"cli-table3": "^0.6.5",
|
|
56
|
+
"commander": "^14.0.2",
|
|
57
|
+
"enquirer": "^2.4.1",
|
|
58
|
+
"git-url-parse": "^16.1.0",
|
|
59
|
+
"json-colorizer": "^3.0.1",
|
|
60
|
+
"tar": "^7.5.2",
|
|
61
|
+
"tar-fs": "^3.1.1",
|
|
62
|
+
"typescript": "^5.9.0",
|
|
63
|
+
"vite": "^7.2.7",
|
|
64
|
+
"zod": "^4.3.5"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@agentuity/test-utils": "3.0.0-alpha.6",
|
|
68
|
+
"@types/adm-zip": "^0.5.7",
|
|
69
|
+
"@types/archiver": "^7.0.0",
|
|
70
|
+
"@types/bun": "latest",
|
|
71
|
+
"@types/tar-fs": "^2.0.4",
|
|
72
|
+
"bun-plugin-tailwind": "^0.1.2",
|
|
73
|
+
"bun-types": "latest",
|
|
74
|
+
"hono": "^4.7.13",
|
|
75
|
+
"tailwindcss": "^4.1.18"
|
|
76
|
+
},
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
},
|
|
80
|
+
"sideEffects": false,
|
|
81
|
+
"repository": {
|
|
82
|
+
"type": "git",
|
|
83
|
+
"url": "https://github.com/agentuity/sdk.git",
|
|
84
|
+
"directory": "packages/cli"
|
|
85
|
+
}
|
|
86
86
|
}
|
|
@@ -11,10 +11,21 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { join } from 'node:path';
|
|
14
|
-
import { cpSync } from 'node:fs';
|
|
14
|
+
import { cpSync, existsSync } from 'node:fs';
|
|
15
15
|
|
|
16
|
-
// Resolve the templates directory relative to this file
|
|
17
|
-
|
|
16
|
+
// Resolve the templates directory relative to this file.
|
|
17
|
+
// When running from src/ (via bun), import.meta.dir is src/cmd/project/.
|
|
18
|
+
// When running from dist/ (via compiled JS), import.meta.dir is dist/cmd/project/.
|
|
19
|
+
// Templates live under src/cmd/project/templates/ but are also shipped
|
|
20
|
+
// in the npm package at that path. We check both locations.
|
|
21
|
+
const templatesDir = (() => {
|
|
22
|
+
const srcDir = join(import.meta.dir, 'templates');
|
|
23
|
+
if (existsSync(join(srcDir, 'nextjs'))) return srcDir;
|
|
24
|
+
// Fallback: from dist/cmd/project/ → src/cmd/project/templates/
|
|
25
|
+
const fallbackDir = join(import.meta.dir, '..', '..', 'src', 'cmd', 'project', 'templates');
|
|
26
|
+
if (existsSync(join(fallbackDir, 'nextjs'))) return fallbackDir;
|
|
27
|
+
return srcDir; // will fail with a clear error if neither exists
|
|
28
|
+
})();
|
|
18
29
|
|
|
19
30
|
export interface FrameworkScaffold {
|
|
20
31
|
/** Unique slug (matches detect/frameworks.ts where applicable) */
|
|
@@ -66,7 +77,7 @@ export interface FrameworkScaffold {
|
|
|
66
77
|
*/
|
|
67
78
|
export function applyOverlay(dest: string, overlayDir: string): void {
|
|
68
79
|
const overlayPath = join(templatesDir, overlayDir);
|
|
69
|
-
cpSync(overlayPath, dest, { recursive: true, dereference: true });
|
|
80
|
+
cpSync(overlayPath, dest, { recursive: true, dereference: true, force: true });
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
// ─── Framework Catalog ───────────────────────────────────────────────────────
|