@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 +1 -1
- package/dist/{chunk-YD7ILGA6.js → chunk-WXPN5UOT.js} +8 -8
- package/dist/chunk-WXPN5UOT.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{main-OUVYNLZN.js → main-5QGMP7VG.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-YD7ILGA6.js.map +0 -1
- /package/dist/{main-OUVYNLZN.js.map → main-5QGMP7VG.js.map} +0 -0
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
|
-
| `/
|
|
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("
|
|
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:
|
|
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:
|
|
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 /
|
|
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
|
-
/
|
|
2331
|
+
/newchat \u2014 New chat, same agent & 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: "
|
|
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
|
-
- /
|
|
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-
|
|
3852
|
+
//# sourceMappingURL=chunk-WXPN5UOT.js.map
|