@agent-smith/cli 0.0.48 → 0.0.49

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.
@@ -29,7 +29,7 @@ const modes = {
29
29
  },
30
30
  "-c": {
31
31
  cmd: async () => {
32
- isChatMode.value = !isChatMode;
32
+ isChatMode.value = !isChatMode.value;
33
33
  if (runMode.value == "cli") {
34
34
  console.log("Chat mode is", isChatMode.value ? "on" : "off");
35
35
  }
package/dist/cmd/cmds.js CHANGED
@@ -73,6 +73,7 @@ async function buildCmds() {
73
73
  async function parseCmd() {
74
74
  const program = await buildCmds();
75
75
  await program.parseAsync();
76
+ console.log("CHAT MODE", isChatMode.value);
76
77
  if (isChatMode.value) {
77
78
  await chat();
78
79
  }
@@ -4,6 +4,7 @@ import { readClipboard, writeToClipboard } from "../sys/clipboard.js";
4
4
  import { readFile } from "../sys/read.js";
5
5
  import { marked } from "../../agent.js";
6
6
  async function setOptions(args = [], options) {
7
+ console.log("Opts", options);
7
8
  for (const k of Object.keys(options)) {
8
9
  let opt;
9
10
  if (k.length == 1) {
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.48",
5
+ "version": "0.0.49",
6
6
  "scripts": {
7
7
  "buildrl": "rm -rf dist/* && rollup -c",
8
8
  "build": "rm -rf dist/* && tsc",