@ouro.bot/cli 0.1.0-alpha.357 → 0.1.0-alpha.358

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/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.358",
6
+ "changes": [
7
+ "Removed `/new` slash command from CLI (kept on Teams). Made `dispatch()` channel-aware so commands only fire on their registered channels."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.357",
6
12
  "changes": [
@@ -799,14 +799,6 @@ async function runCliSession(options) {
799
799
  if (dispatchResult.result.action === "exit") {
800
800
  break;
801
801
  }
802
- else if (dispatchResult.result.action === "new") {
803
- messages.length = 0;
804
- messages.push({ role: "system", content: await (0, prompt_1.buildSystem)("cli") });
805
- await options.onNewSession?.();
806
- // eslint-disable-next-line no-console -- terminal UX: session cleared
807
- console.log("session cleared");
808
- continue;
809
- }
810
802
  else if (dispatchResult.result.action === "response") {
811
803
  display.text(dispatchResult.result.message || "");
812
804
  continue;
@@ -839,14 +831,6 @@ async function runCliSession(options) {
839
831
  if (result.commandAction === "exit") {
840
832
  break;
841
833
  }
842
- else if (result.commandAction === "new") {
843
- messages.length = 0;
844
- messages.push({ role: "system", content: await (0, prompt_1.buildSystem)("cli") });
845
- await options.onNewSession?.();
846
- // eslint-disable-next-line no-console -- terminal UX: session cleared
847
- console.log("session cleared");
848
- continue;
849
- }
850
834
  // For "response" commands: the pipeline already emitted the response via onTextChunk
851
835
  cliCallbacks.flushMarkdown();
852
836
  continue;
@@ -1109,9 +1093,6 @@ async function main(agentName, options) {
1109
1093
  }
1110
1094
  return { usage: result.usage, turnOutcome: result.turnOutcome, commandAction: result.commandAction };
1111
1095
  },
1112
- onNewSession: () => {
1113
- (0, context_1.deleteSession)(sessPath);
1114
- },
1115
1096
  });
1116
1097
  }
1117
1098
  finally {
@@ -25,7 +25,7 @@ function createCommandRegistry() {
25
25
  },
26
26
  dispatch(name, ctx) {
27
27
  const cmd = commands.get(name);
28
- if (!cmd)
28
+ if (!cmd || !cmd.channels.includes(ctx.channel))
29
29
  return { handled: false };
30
30
  return { handled: true, result: cmd.handler(ctx) };
31
31
  },
@@ -63,7 +63,7 @@ function registerDefaultCommands(registry) {
63
63
  registry.register({
64
64
  name: "new",
65
65
  description: "start a new conversation",
66
- channels: ["cli", "teams"],
66
+ channels: ["teams"],
67
67
  handler: () => ({ action: "new" }),
68
68
  });
69
69
  registry.register({
@@ -97,7 +97,6 @@ function registerDefaultCommands(registry) {
97
97
  "Commands:",
98
98
  " /help this help",
99
99
  " /commands list all commands",
100
- " /new start a new conversation",
101
100
  " /exit quit",
102
101
  ].join("\n"),
103
102
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.357",
3
+ "version": "0.1.0-alpha.358",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",