@supaku/agentfactory-cli 0.4.4 → 0.4.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=subpath-exports.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subpath-exports.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/subpath-exports.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ /**
3
+ * Subpath export resolution tests.
4
+ *
5
+ * Verifies that every subpath export defined in package.json resolves
6
+ * to a module that exports the expected function. These tests catch:
7
+ * - Missing `default` condition in exports map (breaks tsx/CJS loaders)
8
+ * - Mismatched file paths between exports map and built output
9
+ * - Missing or renamed function exports
10
+ */
11
+ describe('@supaku/agentfactory-cli subpath exports', () => {
12
+ it('exports runOrchestrator from ./orchestrator', async () => {
13
+ const mod = await import('../lib/orchestrator-runner.js');
14
+ expect(mod.runOrchestrator).toBeDefined();
15
+ expect(typeof mod.runOrchestrator).toBe('function');
16
+ });
17
+ it('exports runWorker from ./worker', async () => {
18
+ const mod = await import('../lib/worker-runner.js');
19
+ expect(mod.runWorker).toBeDefined();
20
+ expect(typeof mod.runWorker).toBe('function');
21
+ });
22
+ it('exports runWorkerFleet from ./worker-fleet', async () => {
23
+ const mod = await import('../lib/worker-fleet-runner.js');
24
+ expect(mod.runWorkerFleet).toBeDefined();
25
+ expect(typeof mod.runWorkerFleet).toBe('function');
26
+ });
27
+ it('exports runCleanup from ./cleanup', async () => {
28
+ const mod = await import('../lib/cleanup-runner.js');
29
+ expect(mod.runCleanup).toBeDefined();
30
+ expect(typeof mod.runCleanup).toBe('function');
31
+ });
32
+ it('exports runQueueAdmin from ./queue-admin', async () => {
33
+ const mod = await import('../lib/queue-admin-runner.js');
34
+ expect(mod.runQueueAdmin).toBeDefined();
35
+ expect(typeof mod.runQueueAdmin).toBe('function');
36
+ });
37
+ it('exports runLogAnalyzer from ./analyze-logs', async () => {
38
+ const mod = await import('../lib/analyze-logs-runner.js');
39
+ expect(mod.runLogAnalyzer).toBeDefined();
40
+ expect(typeof mod.runLogAnalyzer).toBe('function');
41
+ });
42
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supaku/agentfactory-cli",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "type": "module",
5
5
  "description": "CLI tools for AgentFactory — local orchestrator, remote worker, queue admin",
6
6
  "author": "Supaku (https://supaku.com)",
@@ -46,27 +46,33 @@
46
46
  },
47
47
  "./orchestrator": {
48
48
  "types": "./dist/src/lib/orchestrator-runner.d.ts",
49
- "import": "./dist/src/lib/orchestrator-runner.js"
49
+ "import": "./dist/src/lib/orchestrator-runner.js",
50
+ "default": "./dist/src/lib/orchestrator-runner.js"
50
51
  },
51
52
  "./cleanup": {
52
53
  "types": "./dist/src/lib/cleanup-runner.d.ts",
53
- "import": "./dist/src/lib/cleanup-runner.js"
54
+ "import": "./dist/src/lib/cleanup-runner.js",
55
+ "default": "./dist/src/lib/cleanup-runner.js"
54
56
  },
55
57
  "./worker": {
56
58
  "types": "./dist/src/lib/worker-runner.d.ts",
57
- "import": "./dist/src/lib/worker-runner.js"
59
+ "import": "./dist/src/lib/worker-runner.js",
60
+ "default": "./dist/src/lib/worker-runner.js"
58
61
  },
59
62
  "./worker-fleet": {
60
63
  "types": "./dist/src/lib/worker-fleet-runner.d.ts",
61
- "import": "./dist/src/lib/worker-fleet-runner.js"
64
+ "import": "./dist/src/lib/worker-fleet-runner.js",
65
+ "default": "./dist/src/lib/worker-fleet-runner.js"
62
66
  },
63
67
  "./queue-admin": {
64
68
  "types": "./dist/src/lib/queue-admin-runner.d.ts",
65
- "import": "./dist/src/lib/queue-admin-runner.js"
69
+ "import": "./dist/src/lib/queue-admin-runner.js",
70
+ "default": "./dist/src/lib/queue-admin-runner.js"
66
71
  },
67
72
  "./analyze-logs": {
68
73
  "types": "./dist/src/lib/analyze-logs-runner.d.ts",
69
- "import": "./dist/src/lib/analyze-logs-runner.js"
74
+ "import": "./dist/src/lib/analyze-logs-runner.js",
75
+ "default": "./dist/src/lib/analyze-logs-runner.js"
70
76
  }
71
77
  },
72
78
  "files": [
@@ -76,17 +82,20 @@
76
82
  ],
77
83
  "dependencies": {
78
84
  "dotenv": "^17.2.3",
79
- "@supaku/agentfactory": "0.4.4",
80
- "@supaku/agentfactory-linear": "0.4.4",
81
- "@supaku/agentfactory-server": "0.4.4"
85
+ "@supaku/agentfactory": "0.4.6",
86
+ "@supaku/agentfactory-linear": "0.4.6",
87
+ "@supaku/agentfactory-server": "0.4.6"
82
88
  },
83
89
  "devDependencies": {
84
90
  "@types/node": "^22.5.4",
85
- "typescript": "^5.7.3"
91
+ "typescript": "^5.7.3",
92
+ "vitest": "^3.2.3"
86
93
  },
87
94
  "scripts": {
88
95
  "build": "tsc",
89
96
  "typecheck": "tsc --noEmit",
97
+ "test": "vitest run",
98
+ "test:watch": "vitest",
90
99
  "clean": "rm -rf dist"
91
100
  }
92
101
  }