@hazeljs/cli 2.0.4 → 2.0.5
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/cli-manifest.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "Machine-readable manifest of all CLI commands and options for LLM agent tool-use",
|
|
5
5
|
"cli": {
|
|
6
6
|
"name": "hazel",
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.5",
|
|
8
8
|
"description": "CLI for generating HazelJS components and applications"
|
|
9
9
|
},
|
|
10
10
|
"commands": [
|
|
@@ -197,7 +197,6 @@ Use lookupOrder for facts. Call processRefund only after lookup. Be concise.`,
|
|
|
197
197
|
},
|
|
198
198
|
dependencies: {
|
|
199
199
|
'@hazeljs/agent': '^1.0.6',
|
|
200
|
-
'reflect-metadata': '^0.2.2',
|
|
201
200
|
},
|
|
202
201
|
devDependencies: {
|
|
203
202
|
'@types/node': '^20.19.39',
|
|
@@ -232,8 +231,7 @@ export function getOrder(id: string): Order | undefined {
|
|
|
232
231
|
return ORDERS[id.toUpperCase()];
|
|
233
232
|
}
|
|
234
233
|
`,
|
|
235
|
-
'src/support.agent.ts': `import '
|
|
236
|
-
import { Agent, Tool } from '@hazeljs/agent';
|
|
234
|
+
'src/support.agent.ts': `import { Agent, Tool } from '@hazeljs/agent';
|
|
237
235
|
import { getOrder } from './orders';
|
|
238
236
|
|
|
239
237
|
@Agent({
|
|
@@ -274,7 +272,6 @@ export class SupportAgent {
|
|
|
274
272
|
* Mini Agent OS app — real tools (not DNA stubs).
|
|
275
273
|
* DNA in dna/ can be hot-reloaded / store-installed for prompt+policy overlays.
|
|
276
274
|
*/
|
|
277
|
-
import 'reflect-metadata';
|
|
278
275
|
import {
|
|
279
276
|
AgentRuntime,
|
|
280
277
|
AgentEventType,
|
|
@@ -89,6 +89,12 @@ describe('agent templates scaffold', () => {
|
|
|
89
89
|
expect(fs.existsSync(path.join(dest, 'src/support.agent.ts'))).toBe(true);
|
|
90
90
|
expect(fs.existsSync(path.join(dest, 'src/main.ts'))).toBe(true);
|
|
91
91
|
expect(fs.existsSync(path.join(dest, 'dna/agent.marketplace.json'))).toBe(true);
|
|
92
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(dest, 'package.json'), 'utf8'));
|
|
93
|
+
expect(pkg.dependencies['reflect-metadata']).toBeUndefined();
|
|
94
|
+
const main = fs.readFileSync(path.join(dest, 'src/main.ts'), 'utf8');
|
|
95
|
+
const agent = fs.readFileSync(path.join(dest, 'src/support.agent.ts'), 'utf8');
|
|
96
|
+
expect(main).not.toMatch(/reflect-metadata/);
|
|
97
|
+
expect(agent).not.toMatch(/reflect-metadata/);
|
|
92
98
|
});
|
|
93
99
|
it('scaffolds skillgate with openapi sample', () => {
|
|
94
100
|
const dest = path.join(tmp, 'sg-demo');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Command-line interface for scaffolding and generating HazelJS applications and components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"mustache": "^4.2.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@hazeljs/eval": "^2.0.
|
|
35
|
-
"@hazeljs/benchmark": "^2.0.
|
|
36
|
-
"@hazeljs/agent": "^2.0.
|
|
37
|
-
"@hazeljs/skillgate": "^2.0.
|
|
38
|
-
"@hazeljs/agent-gatekeeper": "^2.0.
|
|
34
|
+
"@hazeljs/eval": "^2.0.5",
|
|
35
|
+
"@hazeljs/benchmark": "^2.0.5",
|
|
36
|
+
"@hazeljs/agent": "^2.0.5",
|
|
37
|
+
"@hazeljs/skillgate": "^2.0.5",
|
|
38
|
+
"@hazeljs/agent-gatekeeper": "^2.0.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@hazeljs/eval": {
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@hazeljs/eval": "^2.0.
|
|
59
|
-
"@hazeljs/benchmark": "^2.0.
|
|
60
|
-
"@hazeljs/agent": "^2.0.
|
|
61
|
-
"@hazeljs/skillgate": "^2.0.
|
|
62
|
-
"@hazeljs/agent-gatekeeper": "^2.0.
|
|
58
|
+
"@hazeljs/eval": "^2.0.5",
|
|
59
|
+
"@hazeljs/benchmark": "^2.0.5",
|
|
60
|
+
"@hazeljs/agent": "^2.0.5",
|
|
61
|
+
"@hazeljs/skillgate": "^2.0.5",
|
|
62
|
+
"@hazeljs/agent-gatekeeper": "^2.0.5",
|
|
63
63
|
"@types/inquirer": "^8.2.10",
|
|
64
64
|
"@types/mustache": "^4.2.5",
|
|
65
65
|
"typescript": "^6.0.3"
|