@agentage/cli 0.1.0 → 0.1.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.
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.test.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.test.js +1 -1
- package/dist/schemas/agent.schema.d.ts +14 -2
- package/dist/schemas/agent.schema.d.ts.map +1 -1
- package/dist/schemas/agent.schema.js +1 -1
- package/dist/schemas/agent.schema.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Command } from 'commander';
|
|
|
3
3
|
import { initCommand } from './commands/init.js';
|
|
4
4
|
import { listCommand } from './commands/list.js';
|
|
5
5
|
import { runCommand } from './commands/run.js';
|
|
6
|
-
import { version } from './index';
|
|
6
|
+
import { version } from './index.js';
|
|
7
7
|
const program = new Command();
|
|
8
8
|
program
|
|
9
9
|
.name('agentkit')
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,UAAU,CAAC;KAChB,WAAW,CAAC,qDAAqD,CAAC;KAClE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,wBAAwB,CAAC;KACrC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;KAChC,MAAM,CAAC,WAAW,CAAC,CAAC;AAEvB,OAAO;KACJ,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,cAAc,CAAC;KAC3B,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;KAChC,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAC;KACnD,MAAM,CAAC,UAAU,CAAC,CAAC;AAEtB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAE3E,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/dist/cli.test.js
CHANGED
|
@@ -18,7 +18,7 @@ describe('CLI Commands', () => {
|
|
|
18
18
|
const output = execSync(`tsx ${CLI_PATH} --version`, {
|
|
19
19
|
encoding: 'utf-8',
|
|
20
20
|
});
|
|
21
|
-
expect(output.trim()).toBe('0.1.
|
|
21
|
+
expect(output.trim()).toBe('0.1.2');
|
|
22
22
|
});
|
|
23
23
|
test('CLI shows help', () => {
|
|
24
24
|
const output = execSync(`tsx ${CLI_PATH} --help`, {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { greet, version } from './index.js';
|
|
2
2
|
describe('CLI Package', () => {
|
|
3
3
|
test('version is defined', () => {
|
|
4
|
-
expect(version).toBe('0.1.
|
|
4
|
+
expect(version).toBe('0.1.2');
|
|
5
5
|
});
|
|
6
6
|
test('greet returns correct message', () => {
|
|
7
7
|
expect(greet()).toBe('Hello from AgentKit CLI!');
|
|
@@ -3,8 +3,20 @@ export declare const agentYamlSchema: z.ZodObject<{
|
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
model: z.ZodDefault<z.ZodString>;
|
|
5
5
|
instructions: z.ZodString;
|
|
6
|
-
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6
|
+
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7
7
|
variables: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
8
|
-
}, z.
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
model: string;
|
|
11
|
+
instructions: string;
|
|
12
|
+
tools: string[];
|
|
13
|
+
variables: Record<string, string>;
|
|
14
|
+
}, {
|
|
15
|
+
name: string;
|
|
16
|
+
instructions: string;
|
|
17
|
+
model?: string | undefined;
|
|
18
|
+
tools?: string[] | undefined;
|
|
19
|
+
variables?: Record<string, string> | undefined;
|
|
20
|
+
}>;
|
|
9
21
|
export type AgentYaml = z.infer<typeof agentYamlSchema>;
|
|
10
22
|
//# sourceMappingURL=agent.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/agent.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"agent.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/agent.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -4,6 +4,6 @@ export const agentYamlSchema = z.object({
|
|
|
4
4
|
model: z.string().default('gpt-4'),
|
|
5
5
|
instructions: z.string().min(1),
|
|
6
6
|
tools: z.array(z.string()).optional().default([]),
|
|
7
|
-
variables: z.record(z.string()
|
|
7
|
+
variables: z.record(z.string()).optional().default({}),
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=agent.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.schema.js","sourceRoot":"","sources":["../../src/schemas/agent.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.schema.js","sourceRoot":"","sources":["../../src/schemas/agent.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI tool for creating and running AI agents locally",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"inquirer": "^12.10.0",
|
|
53
53
|
"js-yaml": "^4.1.0",
|
|
54
54
|
"yaml": "^2.8.1",
|
|
55
|
-
"zod": "
|
|
55
|
+
"zod": "3.25.76"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/inquirer": "^9.0.9",
|