@arcteninc/core 0.0.113 → 0.0.115
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/index.cjs +6 -4
- package/dist/index.mjs +231 -227
- package/dist/utils/extract-tool-metadata.d.ts.map +1 -1
- package/package.json +1 -1
- package/scripts/arcten-cli.cjs +17 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-tool-metadata.d.ts","sourceRoot":"","sources":["../../src/utils/extract-tool-metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,oBAAoB,eAA6C,CAAC;AAE/E;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC,CAGnF;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;CACjB;AAGD,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AA+DD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,EAAE,EACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,iBAAiB,GAAG,IAAI,GACnF,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"extract-tool-metadata.d.ts","sourceRoot":"","sources":["../../src/utils/extract-tool-metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,oBAAoB,eAA6C,CAAC;AAE/E;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC,CAGnF;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;CACjB;AAGD,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AA+DD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,EAAE,EACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,iBAAiB,GAAG,IAAI,GACnF,YAAY,EAAE,CA2EhB"}
|
package/package.json
CHANGED
package/scripts/arcten-cli.cjs
CHANGED
|
@@ -18,6 +18,7 @@ const commands = {
|
|
|
18
18
|
'tools': 'extract-types', // Alias
|
|
19
19
|
'setup': 'extract-types', // Alias - better name for extract-types
|
|
20
20
|
'update': 'update',
|
|
21
|
+
'agent': 'agent-builder',
|
|
21
22
|
'help': showHelp,
|
|
22
23
|
'--help': showHelp,
|
|
23
24
|
'-h': showHelp,
|
|
@@ -33,6 +34,9 @@ Commands:
|
|
|
33
34
|
extract-types, tools, setup Extract tool metadata from your project
|
|
34
35
|
Aliases: arcten tools, arcten setup
|
|
35
36
|
|
|
37
|
+
agent Agent builder sync (subcommands: sync, pull, check)
|
|
38
|
+
Example: arcten agent sync --project proj_123 --file .arcten/tool-types.json
|
|
39
|
+
|
|
36
40
|
update Update @arcteninc/core to latest version
|
|
37
41
|
Updates package.json and shows next steps
|
|
38
42
|
|
|
@@ -50,15 +54,23 @@ For more information, visit https://github.com/arcteninc/core
|
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
function main() {
|
|
53
|
-
|
|
57
|
+
let args = process.argv.slice(2);
|
|
54
58
|
|
|
55
59
|
if (args.length === 0) {
|
|
56
60
|
showHelp();
|
|
57
61
|
return;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
let command = args[0];
|
|
65
|
+
let commandArgs = args.slice(1);
|
|
66
|
+
|
|
67
|
+
if (command && command.includes(":")) {
|
|
68
|
+
const [base, sub] = command.split(":");
|
|
69
|
+
if (base === 'agent' && sub) {
|
|
70
|
+
command = base;
|
|
71
|
+
commandArgs = [sub, ...commandArgs];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
62
74
|
|
|
63
75
|
if (!commands[command]) {
|
|
64
76
|
console.error(`❌ Unknown command: ${command}`);
|
|
@@ -85,6 +97,8 @@ function main() {
|
|
|
85
97
|
} else if (commandHandler === 'extract-types') {
|
|
86
98
|
// For extract-types/tools/setup, use the wrapper script which handles TypeScript execution
|
|
87
99
|
scriptPath = path.join(__dirname, 'cli-extract-types-auto-wrapper.js');
|
|
100
|
+
} else if (commandHandler === 'agent-builder') {
|
|
101
|
+
scriptPath = path.join(__dirname, 'agent-builder.js');
|
|
88
102
|
} else {
|
|
89
103
|
console.error(`❌ Unknown command handler: ${commandHandler}`);
|
|
90
104
|
process.exit(1);
|