@visorcraft/idlehands 1.2.6 → 1.2.7
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/dist/bot/commands.js
CHANGED
|
@@ -58,7 +58,7 @@ export async function handleHelp({ ctx }) {
|
|
|
58
58
|
'/anton status — Show task runner progress',
|
|
59
59
|
'/anton stop — Stop task runner',
|
|
60
60
|
'/anton last — Show last run results',
|
|
61
|
-
'/
|
|
61
|
+
'/restart_bot — Restart the bot service',
|
|
62
62
|
'',
|
|
63
63
|
'Or just send any text as a coding task.',
|
|
64
64
|
];
|
package/dist/bot/discord.js
CHANGED
|
@@ -621,7 +621,7 @@ When you escalate, your request will be re-run on a more capable model.`;
|
|
|
621
621
|
.setDescription('Escalate to a larger model')
|
|
622
622
|
.addStringOption((option) => option.setName('model').setDescription('Model name or "next"').setRequired(false)),
|
|
623
623
|
new SlashCommandBuilder().setName('deescalate').setDescription('Return to base model'),
|
|
624
|
-
new SlashCommandBuilder().setName('
|
|
624
|
+
new SlashCommandBuilder().setName('restart_bot').setDescription('Restart the bot service'),
|
|
625
625
|
].map((cmd) => cmd.toJSON());
|
|
626
626
|
const rest = new REST({ version: '10' }).setToken(token);
|
|
627
627
|
// Register globally (takes up to 1 hour to propagate) or per-guild (instant)
|
|
@@ -687,7 +687,7 @@ When you escalate, your request will be re-run on a more capable model.`;
|
|
|
687
687
|
'/agents — List all configured agents',
|
|
688
688
|
'/cancel — Abort running task',
|
|
689
689
|
'/reset — Full session reset',
|
|
690
|
-
'/
|
|
690
|
+
'/restart_bot — Restart the bot service',
|
|
691
691
|
];
|
|
692
692
|
await interaction.reply(lines.join('\n'));
|
|
693
693
|
break;
|
|
@@ -847,7 +847,7 @@ When you escalate, your request will be re-run on a more capable model.`;
|
|
|
847
847
|
await interaction.reply(`✅ Returned to base model: \`${baseModel}\``);
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
|
-
case '
|
|
850
|
+
case 'restart_bot': {
|
|
851
851
|
const { spawn } = await import('node:child_process');
|
|
852
852
|
await interaction.reply('🔄 Restarting idlehands-bot service...');
|
|
853
853
|
spawn('systemctl', ['--user', 'restart', 'idlehands-bot'], {
|
package/dist/bot/telegram.js
CHANGED
|
@@ -443,7 +443,7 @@ export async function startTelegramBot(config, botConfig) {
|
|
|
443
443
|
bot.command('agents', (ctx) => handleAgents(cmdCtx(ctx)));
|
|
444
444
|
bot.command('escalate', (ctx) => handleEscalate(cmdCtx(ctx)));
|
|
445
445
|
bot.command('deescalate', (ctx) => handleDeescalate(cmdCtx(ctx)));
|
|
446
|
-
bot.command('
|
|
446
|
+
bot.command('restart_bot', (ctx) => handleRestartBot(cmdCtx(ctx)));
|
|
447
447
|
bot.command('hosts', async (ctx) => {
|
|
448
448
|
try {
|
|
449
449
|
const { loadRuntimes, redactConfig } = await import('../runtime/store.js');
|