Skip to content

Commit d32bf5d

Browse files
committed
Update Inference plugin to use new argument parsing and bump dependencies
- Updated `prequery.js` to use `parseArgs` from `@agent-smith/cli` instead of `parseInferenceArgs` - Bumped version to 0.0.6 - Updated dependencies: - `@agent-smith/cli` from ^0.0.51 to ^0.0.57 - `@agent-smith/feat-models` from ^0.0.5 to ^0.0.7
1 parent b8cd0ec commit d32bf5d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/features/inference/dist/adaptaters/prequery.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { parseInferenceArgs } from "@agent-smith/cli";
1+
import { parseArgs } from "@agent-smith/cli";
22

3-
async function action(args) {
4-
const { inferenceVars, currentArgs } = parseInferenceArgs(args);
5-
const res = { prompt: currentArgs.join(" "), ...inferenceVars };
3+
async function action(_args) {
4+
const { conf, vars, args } = parseArgs(_args);
5+
const res = { prompt: args.join(" "), ...vars, ...conf };
66
return res;
77
}
88

packages/features/inference/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@agent-smith/feat-inference",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Inference features for Agent Smith cli",
55
"repository": "https://github.com/synw/agent-smith",
66
"dependencies": {
7-
"@agent-smith/cli": "^0.0.51",
8-
"@agent-smith/feat-models": "^0.0.5"
7+
"@agent-smith/cli": "^0.0.57",
8+
"@agent-smith/feat-models": "^0.0.7"
99
},
1010
"type": "module",
1111
"files": [

0 commit comments

Comments
 (0)