@agent-smith/cli 0.0.41 → 0.0.42
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.js +0 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/dist/state/state.js +5 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/main.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ import { executeWorkflowCmd } from "./cmd/lib/workflows/cmd.js";
|
|
|
5
5
|
import { writeToClipboard } from "./cmd/sys/clipboard.js";
|
|
6
6
|
import { pingCmd } from "./cmd/clicmds/cmds.js";
|
|
7
7
|
import { initAgent } from "./agent.js";
|
|
8
|
-
|
|
8
|
+
import { initState } from "./state/state.js";
|
|
9
|
+
export { execute, run, pingCmd, executeWorkflowCmd, executeActionCmd, executeTaskCmd, writeToClipboard, initAgent, initState, };
|
package/dist/main.js
CHANGED
|
@@ -5,4 +5,5 @@ import { executeWorkflowCmd } from "./cmd/lib/workflows/cmd.js";
|
|
|
5
5
|
import { writeToClipboard } from "./cmd/sys/clipboard.js";
|
|
6
6
|
import { pingCmd } from "./cmd/clicmds/cmds.js";
|
|
7
7
|
import { initAgent } from "./agent.js";
|
|
8
|
-
|
|
8
|
+
import { initState } from "./state/state.js";
|
|
9
|
+
export { execute, run, pingCmd, executeWorkflowCmd, executeActionCmd, executeTaskCmd, writeToClipboard, initAgent, initState, };
|
package/dist/state/state.js
CHANGED
|
@@ -15,6 +15,7 @@ const isDebug = ref(false);
|
|
|
15
15
|
const isVerbose = ref(false);
|
|
16
16
|
const isShowTokens = ref(false);
|
|
17
17
|
const promptfilePath = ref("");
|
|
18
|
+
const isStateReady = ref(false);
|
|
18
19
|
const lastCmd = reactive({
|
|
19
20
|
name: "",
|
|
20
21
|
args: [],
|
|
@@ -36,7 +37,11 @@ async function initFeatures() {
|
|
|
36
37
|
promptfilePath.value = readPromptFilePath();
|
|
37
38
|
}
|
|
38
39
|
async function initState() {
|
|
40
|
+
if (isStateReady.value) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
39
43
|
initConf();
|
|
40
44
|
await initFeatures();
|
|
45
|
+
isStateReady.value = true;
|
|
41
46
|
}
|
|
42
47
|
export { inputMode, outputMode, isChatMode, isShowTokens, runMode, formatMode, lastCmd, isDebug, isVerbose, promptfilePath, initState, initFeatures, pyShell, };
|
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.42",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"buildrl": "rm -rf dist/* && rollup -c",
|
|
8
8
|
"build": "rm -rf dist/* && tsc --noCheck",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@agent-smith/brain": "^0.0.41",
|
|
14
14
|
"@agent-smith/jobs": "^0.0.14",
|
|
15
|
-
"@agent-smith/lmtask": "^0.0.
|
|
15
|
+
"@agent-smith/lmtask": "^0.0.34",
|
|
16
16
|
"@agent-smith/tfm": "^0.1.2",
|
|
17
17
|
"@inquirer/prompts": "^7.4.0",
|
|
18
18
|
"@inquirer/select": "^4.1.0",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"clipboardy": "^4.0.0",
|
|
23
23
|
"commander": "^13.1.0",
|
|
24
24
|
"marked-terminal": "^7.3.0",
|
|
25
|
-
"modprompt": "^0.10.
|
|
25
|
+
"modprompt": "^0.10.9",
|
|
26
26
|
"python-shell": "^5.0.0",
|
|
27
|
-
"yaml": "^2.7.
|
|
27
|
+
"yaml": "^2.7.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@agent-smith/tmem-jobs": "^0.0.4",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
35
35
|
"@types/better-sqlite3": "^7.6.12",
|
|
36
36
|
"@types/marked-terminal": "^6.1.1",
|
|
37
|
-
"@types/node": "^22.13.
|
|
37
|
+
"@types/node": "^22.13.14",
|
|
38
38
|
"restmix": "^0.5.0",
|
|
39
|
-
"rollup": "^4.
|
|
39
|
+
"rollup": "^4.38.0",
|
|
40
40
|
"ts-node": "^10.9.2",
|
|
41
41
|
"tslib": "2.8.1",
|
|
42
42
|
"typescript": "^5.8.2"
|