@agent-smith/cli 0.0.19 → 0.0.20
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/cmd/cmds.js +2 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/package.json +1 -1
package/dist/cmd/cmds.js
CHANGED
|
@@ -41,7 +41,8 @@ async function runCmd(cmdName, args = []) {
|
|
|
41
41
|
async function buildCmds() {
|
|
42
42
|
const program = new Command();
|
|
43
43
|
const aliases = initAliases();
|
|
44
|
-
|
|
44
|
+
const excmds = await initCmds();
|
|
45
|
+
for (const [name, spec] of Object.entries({ ...cmds, ...excmds, ...aliases })) {
|
|
45
46
|
const cmd = program.command(name);
|
|
46
47
|
const _cmd = async (args = [], options = {}) => {
|
|
47
48
|
const _args = await setOptions(args, options);
|
package/dist/main.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ import { execute, run } from "./cmd/sys/execute.js";
|
|
|
2
2
|
import { executeJobCmd } from "./cmd/lib/execute_job.js";
|
|
3
3
|
import { writeToClipboard } from "./cmd/sys/clipboard.js";
|
|
4
4
|
import { pingCmd } from "./cmd/clicmds/cmds.js";
|
|
5
|
-
|
|
5
|
+
import { initAgent } from "./agent.js";
|
|
6
|
+
export { execute, run, pingCmd, executeJobCmd, writeToClipboard, initAgent, };
|
package/dist/main.js
CHANGED
|
@@ -2,4 +2,5 @@ import { execute, run } from "./cmd/sys/execute.js";
|
|
|
2
2
|
import { executeJobCmd } from "./cmd/lib/execute_job.js";
|
|
3
3
|
import { writeToClipboard } from "./cmd/sys/clipboard.js";
|
|
4
4
|
import { pingCmd } from "./cmd/clicmds/cmds.js";
|
|
5
|
-
|
|
5
|
+
import { initAgent } from "./agent.js";
|
|
6
|
+
export { execute, run, pingCmd, executeJobCmd, writeToClipboard, initAgent, };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@agent-smith/cli",
|
|
3
3
|
"description": "Agent Smith: terminal client for language model agents",
|
|
4
4
|
"repository": "https://github.com/synw/agent-smith",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.20",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"buildrl": "rm -rf dist/* && rollup -c",
|
|
8
8
|
"build": "rm -rf dist/* && tsc",
|