@openacp/cli 0.4.1 → 0.4.2

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/README.md CHANGED
@@ -57,7 +57,7 @@ First run launches an [interactive setup wizard](docs/guide/getting-started.md)
57
57
  | Command | Description |
58
58
  |---------|-------------|
59
59
  | `/new [agent] [workspace]` | Create a new session |
60
- | `/new_chat` | New session, same agent & workspace |
60
+ | `/newchat` | New session, same agent & workspace |
61
61
  | `/cancel` | Cancel current session |
62
62
  | `/status` | Show session or system status |
63
63
  | `/agents` | List available agents |
@@ -2044,7 +2044,7 @@ import { nanoid as nanoid2 } from "nanoid";
2044
2044
  var log7 = createChildLogger({ module: "telegram-commands" });
2045
2045
  function setupCommands(bot, core, chatId, assistant) {
2046
2046
  bot.command("new", (ctx) => handleNew(ctx, core, chatId, assistant));
2047
- bot.command("new_chat", (ctx) => handleNewChat(ctx, core, chatId));
2047
+ bot.command("newchat", (ctx) => handleNewChat(ctx, core, chatId));
2048
2048
  bot.command("cancel", (ctx) => handleCancel(ctx, core, assistant));
2049
2049
  bot.command("status", (ctx) => handleStatus(ctx, core));
2050
2050
  bot.command("agents", (ctx) => handleAgents(ctx, core));
@@ -2056,7 +2056,7 @@ function setupCommands(bot, core, chatId, assistant) {
2056
2056
  bot.command("update", (ctx) => handleUpdate(ctx, core));
2057
2057
  }
2058
2058
  function buildMenuKeyboard() {
2059
- return new InlineKeyboard().text("\u{1F195} New Session", "m:new").text("\u{1F4AC} New Chat", "m:new_chat").row().text("\u26D4 Cancel", "m:cancel").text("\u{1F4CA} Status", "m:status").row().text("\u{1F916} Agents", "m:agents").text("\u2753 Help", "m:help").row().text("\u{1F504} Restart", "m:restart").text("\u2B06\uFE0F Update", "m:update");
2059
+ return new InlineKeyboard().text("\u{1F195} New Session", "m:new").text("\u{1F4AC} New Chat", "m:newchat").row().text("\u26D4 Cancel", "m:cancel").text("\u{1F4CA} Status", "m:status").row().text("\u{1F916} Agents", "m:agents").text("\u2753 Help", "m:help").row().text("\u{1F504} Restart", "m:restart").text("\u2B06\uFE0F Update", "m:update");
2060
2060
  }
2061
2061
  function setupMenuCallbacks(bot, core, chatId) {
2062
2062
  bot.callbackQuery(/^m:/, async (ctx) => {
@@ -2069,7 +2069,7 @@ function setupMenuCallbacks(bot, core, chatId) {
2069
2069
  case "m:new":
2070
2070
  await handleNew(ctx, core, chatId);
2071
2071
  break;
2072
- case "m:new_chat":
2072
+ case "m:newchat":
2073
2073
  await handleNewChat(ctx, core, chatId);
2074
2074
  break;
2075
2075
  case "m:cancel":
@@ -2166,7 +2166,7 @@ async function handleNewChat(ctx, core, chatId) {
2166
2166
  const threadId = ctx.message?.message_thread_id;
2167
2167
  if (!threadId) {
2168
2168
  await ctx.reply(
2169
- "Use /new_chat inside a session topic to inherit its config.",
2169
+ "Use /newchat inside a session topic to inherit its config.",
2170
2170
  { parse_mode: "HTML" }
2171
2171
  );
2172
2172
  return;
@@ -2328,7 +2328,7 @@ async function handleHelp(ctx) {
2328
2328
  `<b>OpenACP Commands:</b>
2329
2329
 
2330
2330
  /new [agent] [workspace] \u2014 Create new session
2331
- /new_chat \u2014 New chat, same agent &amp; workspace
2331
+ /newchat \u2014 New chat, same agent &amp; workspace
2332
2332
  /cancel \u2014 Cancel current session
2333
2333
  /status \u2014 Show session/system status
2334
2334
  /agents \u2014 List available agents
@@ -2539,7 +2539,7 @@ async function executeCancelSession(core, excludeSessionId) {
2539
2539
  }
2540
2540
  var STATIC_COMMANDS = [
2541
2541
  { command: "new", description: "Create new session" },
2542
- { command: "new_chat", description: "New chat, same agent & workspace" },
2542
+ { command: "newchat", description: "New chat, same agent & workspace" },
2543
2543
  { command: "cancel", description: "Cancel current session" },
2544
2544
  { command: "status", description: "Show status" },
2545
2545
  { command: "agents", description: "List available agents" },
@@ -2669,7 +2669,7 @@ When a user wants to create a session, guide them through:
2669
2669
 
2670
2670
  Commands reference:
2671
2671
  - /new [agent] [workspace] \u2014 Create new session
2672
- - /new_chat \u2014 New chat with same agent & workspace
2672
+ - /newchat \u2014 New chat with same agent & workspace
2673
2673
  - /cancel \u2014 Cancel current session
2674
2674
  - /status \u2014 Show status
2675
2675
  - /agents \u2014 List agents
@@ -3849,4 +3849,4 @@ export {
3849
3849
  ApiServer,
3850
3850
  TelegramAdapter
3851
3851
  };
3852
- //# sourceMappingURL=chunk-YD7ILGA6.js.map
3852
+ //# sourceMappingURL=chunk-WXPN5UOT.js.map