@agent-smith/cli 0.0.22 → 0.0.23

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.
@@ -4,4 +4,4 @@ declare function initCliCmds(): Promise<void>;
4
4
  declare function runCmd(cmdName: string, args?: Array<string>): Promise<void>;
5
5
  declare function buildCmds(): Promise<Command>;
6
6
  declare function parseCmd(): Promise<void>;
7
- export { buildCmds, initCliCmds, parseCmd, runCmd, chat };
7
+ export { buildCmds, chat, initCliCmds, parseCmd, runCmd };
package/dist/cmd/cmds.js CHANGED
@@ -1,11 +1,13 @@
1
1
  import { input } from "@inquirer/prompts";
2
+ import { toRaw } from "@vue/reactivity";
2
3
  import { Command } from "commander";
3
4
  import { brain } from "../agent.js";
5
+ import { query } from "../cli.js";
6
+ import { chatInferenceParams } from "../state/chat.js";
4
7
  import { isChatMode, lastCmd, runMode } from "../state/state.js";
5
8
  import { cmds, initAliases, initCmds } from "./clicmds/cmds.js";
6
9
  import { modes } from "./clicmds/modes.js";
7
10
  import { processOutput, setOptions } from "./lib/utils.js";
8
- import { query } from "../cli.js";
9
11
  let cliCmds = {};
10
12
  async function chat() {
11
13
  const data = { message: '>', default: "" };
@@ -19,7 +21,7 @@ async function chat() {
19
21
  await query();
20
22
  }
21
23
  }
22
- await brain.ex.think(prompt);
24
+ await brain.ex.think(prompt, toRaw(chatInferenceParams));
23
25
  console.log();
24
26
  await chat();
25
27
  }
@@ -75,5 +77,4 @@ async function parseCmd() {
75
77
  await chat();
76
78
  }
77
79
  }
78
- export { buildCmds, initCliCmds, parseCmd, runCmd, chat };
79
- ;
80
+ export { buildCmds, chat, initCliCmds, parseCmd, runCmd };
package/dist/main.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { execute, run } from "./cmd/sys/execute.js";
2
2
  import { executeJobCmd } from "./cmd/lib/execute_job.js";
3
+ import { executeActionCmd } from "./cmd/lib/execute_action.js";
4
+ import { executeTaskCmd } from "./cmd/lib/execute_task.js";
3
5
  import { writeToClipboard } from "./cmd/sys/clipboard.js";
4
6
  import { pingCmd } from "./cmd/clicmds/cmds.js";
5
7
  import { initAgent } from "./agent.js";
6
- export { execute, run, pingCmd, executeJobCmd, writeToClipboard, initAgent, };
8
+ export { execute, run, pingCmd, executeJobCmd, executeActionCmd, executeTaskCmd, writeToClipboard, initAgent, };
package/dist/main.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { execute, run } from "./cmd/sys/execute.js";
2
2
  import { executeJobCmd } from "./cmd/lib/execute_job.js";
3
+ import { executeActionCmd } from "./cmd/lib/execute_action.js";
4
+ import { executeTaskCmd } from "./cmd/lib/execute_task.js";
3
5
  import { writeToClipboard } from "./cmd/sys/clipboard.js";
4
6
  import { pingCmd } from "./cmd/clicmds/cmds.js";
5
7
  import { initAgent } from "./agent.js";
6
- export { execute, run, pingCmd, executeJobCmd, writeToClipboard, initAgent, };
8
+ export { execute, run, pingCmd, executeJobCmd, executeActionCmd, executeTaskCmd, writeToClipboard, initAgent, };
@@ -0,0 +1,25 @@
1
+ declare const chatInferenceParams: {
2
+ stream?: boolean | undefined;
3
+ model?: {
4
+ name: string;
5
+ ctx: number;
6
+ info?: {
7
+ size: string;
8
+ quant: string;
9
+ } | undefined;
10
+ extra?: Record<string, any> | undefined;
11
+ } | undefined;
12
+ template?: string | undefined;
13
+ max_tokens?: number | undefined;
14
+ top_k?: number | undefined;
15
+ top_p?: number | undefined;
16
+ min_p?: number | undefined;
17
+ temperature?: number | undefined;
18
+ repeat_penalty?: number | undefined;
19
+ tfs?: number | undefined;
20
+ stop?: Array<string> | undefined;
21
+ grammar?: string | undefined;
22
+ images?: Array<string> | undefined;
23
+ extra?: Record<string, any> | undefined;
24
+ };
25
+ export { chatInferenceParams, };
@@ -0,0 +1,3 @@
1
+ import { reactive } from "@vue/reactivity";
2
+ const chatInferenceParams = reactive({ temperature: 0.2, min_p: 0.05, max_tokens: 2048 });
3
+ export { chatInferenceParams, };
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.22",
5
+ "version": "0.0.23",
6
6
  "scripts": {
7
7
  "buildrl": "rm -rf dist/* && rollup -c",
8
8
  "build": "rm -rf dist/* && tsc",
@@ -12,17 +12,18 @@
12
12
  "dependencies": {
13
13
  "@agent-smith/brain": "^0.0.33",
14
14
  "@agent-smith/jobs": "^0.0.11",
15
- "@agent-smith/lmtask": "^0.0.24",
16
- "@inquirer/prompts": "^7.0.1",
17
- "@inquirer/select": "^4.0.1",
18
- "@vue/reactivity": "^3.5.12",
15
+ "@agent-smith/lmtask": "^0.0.25",
16
+ "@agent-smith/tfm": "^0.1.1",
17
+ "@inquirer/prompts": "^7.1.0",
18
+ "@inquirer/select": "^4.0.2",
19
+ "@vue/reactivity": "^3.5.13",
19
20
  "better-sqlite3": "^11.5.0",
20
21
  "clipboardy": "^4.0.0",
21
22
  "commander": "^12.1.0",
22
23
  "marked-terminal": "^7.2.1",
23
24
  "modprompt": "^0.9.1",
24
25
  "python-shell": "^5.0.0",
25
- "yaml": "^2.6.0"
26
+ "yaml": "^2.6.1"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@agent-smith/tmem-jobs": "^0.0.4",
@@ -30,13 +31,13 @@
30
31
  "@locallm/types": "^0.1.5",
31
32
  "@rollup/plugin-node-resolve": "^15.3.0",
32
33
  "@rollup/plugin-typescript": "^12.1.1",
33
- "@types/better-sqlite3": "^7.6.11",
34
+ "@types/better-sqlite3": "^7.6.12",
34
35
  "@types/marked-terminal": "^6.1.1",
35
- "@types/node": "^22.8.5",
36
+ "@types/node": "^22.9.1",
36
37
  "restmix": "^0.5.0",
37
- "rollup": "^4.24.3",
38
+ "rollup": "^4.27.3",
38
39
  "ts-node": "^10.9.2",
39
- "tslib": "2.8.0",
40
+ "tslib": "2.8.1",
40
41
  "typescript": "^5.6.3"
41
42
  },
42
43
  "type": "module",