@agent-smith/cli 0.0.25 → 0.0.27

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.
@@ -3,7 +3,7 @@ import { default as fs } from "fs";
3
3
  import { useAgentJob } from "@agent-smith/jobs";
4
4
  import { brain, marked, taskBuilder } from '../../agent.js';
5
5
  import { getFeatureSpec } from '../../state/features.js';
6
- import { formatMode } from '../../state/state.js';
6
+ import { formatMode, isDebug } from '../../state/state.js';
7
7
  import { initTaskVars, readTask } from './utils.js';
8
8
  async function executeJobCmd(name, args = [], options = {}) {
9
9
  const { job, found } = await _dispatchReadJob(name);
@@ -32,10 +32,12 @@ async function executeJobCmd(name, args = [], options = {}) {
32
32
  let conf = {};
33
33
  let vars = {};
34
34
  const tv = initTaskVars(args, taskSpec?.inferParams ? taskSpec.inferParams : {});
35
- console.log("TIP", taskSpec.inferParams);
36
- console.log("IP", tv.conf.inferParams);
37
35
  conf = tv.conf;
38
36
  vars = i == 0 ? tv.vars : params;
37
+ if (isDebug.value) {
38
+ console.log("Task conf:", conf);
39
+ console.log("Task vars:", vars);
40
+ }
39
41
  if (conf?.model) {
40
42
  m = conf.model;
41
43
  }
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.25",
5
+ "version": "0.0.27",
6
6
  "scripts": {
7
7
  "buildrl": "rm -rf dist/* && rollup -c",
8
8
  "build": "rm -rf dist/* && tsc",