@agent-smith/cli 0.0.21 → 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.
- package/dist/cmd/clicmds/cmds.js +9 -5
- package/dist/cmd/cmds.d.ts +1 -1
- package/dist/cmd/cmds.js +5 -4
- package/dist/cmd/lib/execute_action.js +7 -3
- package/dist/cmd/lib/execute_task.js +16 -13
- package/dist/cmd/lib/utils.d.ts +2 -1
- package/dist/cmd/lib/utils.js +17 -3
- package/dist/conf.d.ts +4 -1
- package/dist/conf.js +7 -3
- package/dist/db/read.d.ts +2 -1
- package/dist/db/read.js +15 -6
- package/dist/db/write.d.ts +2 -2
- package/dist/db/write.js +6 -10
- package/dist/interfaces.d.ts +3 -3
- package/dist/main.d.ts +3 -1
- package/dist/main.js +3 -1
- package/dist/state/chat.d.ts +25 -0
- package/dist/state/chat.js +3 -0
- package/dist/state/state.js +2 -1
- package/package.json +11 -11
package/dist/cmd/clicmds/cmds.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { formatMode, isChatMode } from "../../state/state.js";
|
|
1
|
+
import { formatMode, isChatMode, promptfile } from "../../state/state.js";
|
|
2
2
|
import { getFeatureSpec, readFeaturesDirs } from "../../state/features.js";
|
|
3
3
|
import { readAliases, readFeatures } from "../../db/read.js";
|
|
4
|
-
import { cleanupFeaturePaths, updateAliases, updateFeatures } from "../../db/write.js";
|
|
4
|
+
import { cleanupFeaturePaths, updateAliases, updateFeatures, updatePromptfilePath } from "../../db/write.js";
|
|
5
5
|
import { processConfPath } from "../../conf.js";
|
|
6
6
|
import { executeActionCmd } from "../lib/execute_action.js";
|
|
7
7
|
import { initAgent, marked, taskBuilder } from "../../agent.js";
|
|
@@ -94,11 +94,15 @@ async function _updateConfCmd(args = [], options) {
|
|
|
94
94
|
console.warn("Provide a config.yml file path");
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
const { paths, pf } = await processConfPath(args[0]);
|
|
98
|
+
if (pf.length > 0) {
|
|
99
|
+
updatePromptfilePath(pf);
|
|
100
|
+
promptfile.value = pf;
|
|
101
|
+
}
|
|
102
|
+
const feats = readFeaturesDirs(paths);
|
|
99
103
|
updateFeatures(feats);
|
|
100
104
|
updateAliases(feats);
|
|
101
|
-
const deleted = cleanupFeaturePaths(
|
|
105
|
+
const deleted = cleanupFeaturePaths(paths);
|
|
102
106
|
for (const el of deleted) {
|
|
103
107
|
console.log("- [feature path]", el);
|
|
104
108
|
}
|
package/dist/cmd/cmds.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
79
|
-
;
|
|
80
|
+
export { buildCmds, chat, initCliCmds, parseCmd, runCmd };
|
|
@@ -4,7 +4,7 @@ import { readYmlAction } from "../sys/read_yml_action.js";
|
|
|
4
4
|
import { execute } from "../sys/execute.js";
|
|
5
5
|
import { runPyScript } from "../sys/run_python.js";
|
|
6
6
|
import { pyShell } from "../../state/state.js";
|
|
7
|
-
import { processOutput } from "./utils.js";
|
|
7
|
+
import { parseInputOptions, processOutput } from "./utils.js";
|
|
8
8
|
function _systemAction(path) {
|
|
9
9
|
const action = useAgentTask({
|
|
10
10
|
id: "system_action",
|
|
@@ -32,7 +32,7 @@ async function executeActionCmd(args = [], options = {}, quiet = false) {
|
|
|
32
32
|
const name = args.shift();
|
|
33
33
|
const { found, path, ext } = getFeatureSpec(name, "action");
|
|
34
34
|
if (!found) {
|
|
35
|
-
return { ok: false, data: {}, error: "
|
|
35
|
+
return { ok: false, data: {}, error: "Action not found" };
|
|
36
36
|
}
|
|
37
37
|
let act;
|
|
38
38
|
switch (ext) {
|
|
@@ -49,7 +49,11 @@ async function executeActionCmd(args = [], options = {}, quiet = false) {
|
|
|
49
49
|
default:
|
|
50
50
|
throw new Error(`Action ext ${ext} not implemented`);
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const input = await parseInputOptions(options);
|
|
53
|
+
if (input) {
|
|
54
|
+
args.push(input);
|
|
55
|
+
}
|
|
56
|
+
const res = await act.run(args, {});
|
|
53
57
|
if (!quiet) {
|
|
54
58
|
console.log(res.data);
|
|
55
59
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { brain, initAgent, taskBuilder } from "../../agent.js";
|
|
2
2
|
import { getFeatureSpec } from "../../state/features.js";
|
|
3
|
-
import {
|
|
4
|
-
import { initTaskVars,
|
|
5
|
-
import { readClipboard } from "../sys/clipboard.js";
|
|
3
|
+
import { isChatMode, isDebug } from "../../state/state.js";
|
|
4
|
+
import { initTaskVars, parseInputOptions, readTask } from "./utils.js";
|
|
6
5
|
async function executeTaskCmd(args = [], options = {}) {
|
|
7
6
|
await initAgent();
|
|
8
7
|
if (isDebug.value) {
|
|
@@ -11,17 +10,14 @@ async function executeTaskCmd(args = [], options = {}) {
|
|
|
11
10
|
}
|
|
12
11
|
const name = args.shift();
|
|
13
12
|
const params = args.filter((x) => x.length > 0);
|
|
14
|
-
let pr;
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
else if (params.length > 0) {
|
|
22
|
-
pr = params.shift();
|
|
13
|
+
let pr = await parseInputOptions(options);
|
|
14
|
+
if (!pr) {
|
|
15
|
+
const p = params.shift();
|
|
16
|
+
if (p) {
|
|
17
|
+
pr = p;
|
|
18
|
+
}
|
|
23
19
|
}
|
|
24
|
-
|
|
20
|
+
if (!pr) {
|
|
25
21
|
throw new Error("Please provide a prompt");
|
|
26
22
|
}
|
|
27
23
|
const { found, path } = getFeatureSpec(name, "task");
|
|
@@ -52,7 +48,14 @@ async function executeTaskCmd(args = [], options = {}) {
|
|
|
52
48
|
throw new Error("No expert found for model " + m);
|
|
53
49
|
}
|
|
54
50
|
ex.checkStatus();
|
|
51
|
+
let i = 0;
|
|
55
52
|
ex.backend.setOnToken((t) => {
|
|
53
|
+
if (i == 0) {
|
|
54
|
+
if (t == "\n\n") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
++i;
|
|
56
59
|
process.stdout.write(t);
|
|
57
60
|
});
|
|
58
61
|
conf.expert = ex;
|
package/dist/cmd/lib/utils.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ declare function initTaskVars(args: Array<any>): {
|
|
|
10
10
|
conf: Record<string, any>;
|
|
11
11
|
vars: Record<string, any>;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare function parseInputOptions(options: any): Promise<string | null>;
|
|
14
|
+
export { readPromptFile, processOutput, setOptions, readTask, readTasksDir, initTaskVars, parseInputOptions, };
|
package/dist/cmd/lib/utils.js
CHANGED
|
@@ -20,8 +20,12 @@ async function setOptions(args = [], options) {
|
|
|
20
20
|
return args;
|
|
21
21
|
}
|
|
22
22
|
function readPromptFile() {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
try {
|
|
24
|
+
return fs.readFileSync(promptfile.value, 'utf8');
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
25
29
|
}
|
|
26
30
|
async function processOutput(res) {
|
|
27
31
|
if (!(outputMode.value == "clipboard")) {
|
|
@@ -102,4 +106,14 @@ function initTaskVars(args) {
|
|
|
102
106
|
});
|
|
103
107
|
return { conf, vars };
|
|
104
108
|
}
|
|
105
|
-
|
|
109
|
+
async function parseInputOptions(options) {
|
|
110
|
+
let out = null;
|
|
111
|
+
if (options?.Ic == true || inputMode.value == "clipboard") {
|
|
112
|
+
out = await readClipboard();
|
|
113
|
+
}
|
|
114
|
+
else if (options.Pf || inputMode.value == "promptfile") {
|
|
115
|
+
out = readPromptFile();
|
|
116
|
+
}
|
|
117
|
+
return out;
|
|
118
|
+
}
|
|
119
|
+
export { readPromptFile, processOutput, setOptions, readTask, readTasksDir, initTaskVars, parseInputOptions, };
|
package/dist/conf.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
declare const confDir: string;
|
|
2
2
|
declare const dbPath: string;
|
|
3
3
|
declare function createConfDirIfNotExists(): boolean;
|
|
4
|
-
declare function processConfPath(confPath: string): Promise<
|
|
4
|
+
declare function processConfPath(confPath: string): Promise<{
|
|
5
|
+
paths: Array<string>;
|
|
6
|
+
pf: string;
|
|
7
|
+
}>;
|
|
5
8
|
export { confDir, dbPath, createConfDirIfNotExists, processConfPath, };
|
package/dist/conf.js
CHANGED
|
@@ -18,7 +18,7 @@ async function processConfPath(confPath) {
|
|
|
18
18
|
console.warn(`Config file ${confPath} not found`);
|
|
19
19
|
}
|
|
20
20
|
const allPaths = new Array();
|
|
21
|
-
if (
|
|
21
|
+
if (data?.features) {
|
|
22
22
|
allPaths.push(...data.features);
|
|
23
23
|
const fts = new Array();
|
|
24
24
|
data.features.forEach((f) => {
|
|
@@ -28,13 +28,17 @@ async function processConfPath(confPath) {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
if (
|
|
31
|
+
if (data?.plugins) {
|
|
32
32
|
const plugins = await buildPluginsPaths(data.plugins);
|
|
33
33
|
plugins.forEach((_pl) => {
|
|
34
34
|
allPaths.push(_pl.path);
|
|
35
35
|
insertPluginIfNotExists(_pl.name, _pl.path);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
let pf = "";
|
|
39
|
+
if (data.promptfile) {
|
|
40
|
+
pf = data.promptfile;
|
|
41
|
+
}
|
|
42
|
+
return { paths: allPaths, pf: pf };
|
|
39
43
|
}
|
|
40
44
|
export { confDir, dbPath, createConfDirIfNotExists, processConfPath, };
|
package/dist/db/read.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ declare function readFeature(name: string, type: FeatureType): {
|
|
|
10
10
|
found: boolean;
|
|
11
11
|
feature: FeatureSpec;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare function readPromptFile(): string;
|
|
14
|
+
export { readFeatures, readFeaturePaths, readFeature, readPlugins, readAliases, readPromptFile };
|
package/dist/db/read.js
CHANGED
|
@@ -17,7 +17,7 @@ function readPlugins() {
|
|
|
17
17
|
});
|
|
18
18
|
return f;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _readFeaturesType(type) {
|
|
21
21
|
const stmt = db.prepare(`SELECT name, path FROM ${type}`);
|
|
22
22
|
const data = stmt.all();
|
|
23
23
|
let f = {};
|
|
@@ -28,10 +28,10 @@ function readFeaturesType(type) {
|
|
|
28
28
|
}
|
|
29
29
|
function readFeatures() {
|
|
30
30
|
const feats = { task: {}, job: {}, action: {}, cmd: {} };
|
|
31
|
-
feats.task =
|
|
32
|
-
feats.job =
|
|
33
|
-
feats.action =
|
|
34
|
-
feats.cmd =
|
|
31
|
+
feats.task = _readFeaturesType("task");
|
|
32
|
+
feats.job = _readFeaturesType("job");
|
|
33
|
+
feats.action = _readFeaturesType("action");
|
|
34
|
+
feats.cmd = _readFeaturesType("cmd");
|
|
35
35
|
return feats;
|
|
36
36
|
}
|
|
37
37
|
function readAliases() {
|
|
@@ -59,4 +59,13 @@ function readFeature(name, type) {
|
|
|
59
59
|
}
|
|
60
60
|
return { found: false, feature: {} };
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
function readPromptFile() {
|
|
63
|
+
const stmt1 = db.prepare("SELECT * FROM filepath WHERE name = ?");
|
|
64
|
+
const result = stmt1.get("promptfile");
|
|
65
|
+
let res = "";
|
|
66
|
+
if (result?.id) {
|
|
67
|
+
res = result.path;
|
|
68
|
+
}
|
|
69
|
+
return res;
|
|
70
|
+
}
|
|
71
|
+
export { readFeatures, readFeaturePaths, readFeature, readPlugins, readAliases, readPromptFile };
|
package/dist/db/write.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Features } from "../interfaces.js";
|
|
2
|
-
declare function
|
|
2
|
+
declare function updatePromptfilePath(pf: string): void;
|
|
3
3
|
declare function insertFeaturesPathIfNotExists(path: string): boolean;
|
|
4
4
|
declare function insertPluginIfNotExists(n: string, p: string): boolean;
|
|
5
5
|
declare function cleanupFeaturePaths(paths: Array<string>): Array<string>;
|
|
6
6
|
declare function updateAliases(feats: Features): void;
|
|
7
7
|
declare function updateFeatures(feats: Features): void;
|
|
8
|
-
export {
|
|
8
|
+
export { updatePromptfilePath, insertFeaturesPathIfNotExists, insertPluginIfNotExists, updateFeatures, updateAliases, cleanupFeaturePaths, };
|
package/dist/db/write.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { db } from "./db.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (const [k, v] of Object.entries(defaultFilepaths)) {
|
|
8
|
-
const stmt = db.prepare("INSERT INTO filepath (name, path) VALUES (?, ?)");
|
|
9
|
-
stmt.run(k, v);
|
|
10
|
-
}
|
|
2
|
+
function updatePromptfilePath(pf) {
|
|
3
|
+
const deleteStmt = db.prepare("DELETE FROM featurespath WHERE path = ?");
|
|
4
|
+
deleteStmt.run("promptfile");
|
|
5
|
+
const stmt = db.prepare("INSERT INTO filepath (name, path) VALUES (?, ?)");
|
|
6
|
+
stmt.run("promptfile", pf);
|
|
11
7
|
}
|
|
12
8
|
function insertFeaturesPathIfNotExists(path) {
|
|
13
9
|
const stmt1 = db.prepare("SELECT * FROM featurespath WHERE path = ?");
|
|
@@ -93,4 +89,4 @@ function updateFeatures(feats) {
|
|
|
93
89
|
upsertAndCleanFeatures(feats.action, "action");
|
|
94
90
|
upsertAndCleanFeatures(feats.cmd, "cmd");
|
|
95
91
|
}
|
|
96
|
-
export {
|
|
92
|
+
export { updatePromptfilePath, insertFeaturesPathIfNotExists, insertPluginIfNotExists, updateFeatures, updateAliases, cleanupFeaturePaths, };
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ interface Features {
|
|
|
31
31
|
}>;
|
|
32
32
|
}
|
|
33
33
|
interface ConfigFile {
|
|
34
|
-
promptfile
|
|
35
|
-
features
|
|
36
|
-
plugins
|
|
34
|
+
promptfile?: string;
|
|
35
|
+
features?: Array<string>;
|
|
36
|
+
plugins?: Array<string>;
|
|
37
37
|
}
|
|
38
38
|
type CmdExecutor = (args: Array<string>, options: any) => Promise<any>;
|
|
39
39
|
type InputMode = "manual" | "promptfile" | "clipboard";
|
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, };
|
package/dist/state/state.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { reactive, ref } from "@vue/reactivity";
|
|
2
2
|
import { createConfDirIfNotExists, confDir } from "../conf.js";
|
|
3
3
|
import { initDb } from "../db/db.js";
|
|
4
|
-
import { readFeaturePaths } from "../db/read.js";
|
|
4
|
+
import { readFeaturePaths, readPromptFile } from "../db/read.js";
|
|
5
5
|
import { updateAliases, updateFeatures } from "../db/write.js";
|
|
6
6
|
import { readFeaturesDirs } from "./features.js";
|
|
7
7
|
import { readPluginsPaths } from "./plugins.js";
|
|
@@ -31,6 +31,7 @@ async function initFeatures() {
|
|
|
31
31
|
const feats = readFeaturesDirs(p);
|
|
32
32
|
updateFeatures(feats);
|
|
33
33
|
updateAliases(feats);
|
|
34
|
+
promptfile.value = readPromptFile();
|
|
34
35
|
}
|
|
35
36
|
async function initState() {
|
|
36
37
|
initConf();
|
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.23",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"buildrl": "rm -rf dist/* && rollup -c",
|
|
8
8
|
"build": "rm -rf dist/* && tsc",
|
|
@@ -12,18 +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.
|
|
16
|
-
"@
|
|
17
|
-
"@inquirer/
|
|
18
|
-
"@
|
|
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
|
-
"draftlog": "^1.0.13",
|
|
23
23
|
"marked-terminal": "^7.2.1",
|
|
24
24
|
"modprompt": "^0.9.1",
|
|
25
25
|
"python-shell": "^5.0.0",
|
|
26
|
-
"yaml": "^2.6.
|
|
26
|
+
"yaml": "^2.6.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@agent-smith/tmem-jobs": "^0.0.4",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@locallm/types": "^0.1.5",
|
|
32
32
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
33
33
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
34
|
-
"@types/better-sqlite3": "^7.6.
|
|
34
|
+
"@types/better-sqlite3": "^7.6.12",
|
|
35
35
|
"@types/marked-terminal": "^6.1.1",
|
|
36
|
-
"@types/node": "^22.
|
|
36
|
+
"@types/node": "^22.9.1",
|
|
37
37
|
"restmix": "^0.5.0",
|
|
38
|
-
"rollup": "^4.
|
|
38
|
+
"rollup": "^4.27.3",
|
|
39
39
|
"ts-node": "^10.9.2",
|
|
40
|
-
"tslib": "2.8.
|
|
40
|
+
"tslib": "2.8.1",
|
|
41
41
|
"typescript": "^5.6.3"
|
|
42
42
|
},
|
|
43
43
|
"type": "module",
|