@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.
@@ -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
- '/restart-bot — Restart the bot service',
61
+ '/restart_bot — Restart the bot service',
62
62
  '',
63
63
  'Or just send any text as a coding task.',
64
64
  ];
@@ -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('restart-bot').setDescription('Restart the bot service'),
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
- '/restart-bot — Restart the bot service',
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 'restart-bot': {
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'], {
@@ -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('restart-bot', (ctx) => handleRestartBot(cmdCtx(ctx)));
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');
@@ -60,7 +60,7 @@ export const runtimeCommands = [
60
60
  },
61
61
  },
62
62
  {
63
- name: '/restart-bot',
63
+ name: '/restart_bot',
64
64
  description: 'Restart the idlehands-bot service',
65
65
  async execute() {
66
66
  const { spawn } = await import('node:child_process');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visorcraft/idlehands",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "description": "Local-first coding agent CLI for OpenAI-compatible endpoints",
6
6
  "license": "MIT",