@openagents-org/agent-launcher 0.2.125 → 0.2.127

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.125",
3
+ "version": "0.2.127",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -390,7 +390,7 @@ class ClaudeAdapter extends BaseAdapter {
390
390
  const cmd = [claudeBin, '-p', prompt, '--output-format', 'stream-json', '--verbose'];
391
391
 
392
392
  cmd.push('--append-system-prompt', systemPrompt);
393
- cmd.push('--disallowedTools', 'AskUserQuestion', 'TodoWrite');
393
+ cmd.push('--disallowedTools', 'AskUserQuestion', 'CronCreate', 'CronDelete', 'CronList', 'ScheduleWakeup');
394
394
 
395
395
  // Resume existing conversation (skipped on retry after stale session)
396
396
  const sessionId = this._channelSessions[channelName];
@@ -748,6 +748,18 @@ class ClaudeAdapter extends BaseAdapter {
748
748
  lastResponseText.length = 0;
749
749
  const toolName = block.name || '';
750
750
 
751
+ // Intercept TodoWrite: forward to workspace API so it emits a chat event
752
+ if (toolName === 'TodoWrite' && block.input && block.input.todos) {
753
+ try {
754
+ const wsTodos = block.input.todos.map((t) => ({
755
+ content: t.content,
756
+ status: t.status || 'pending',
757
+ assignee: t.assignee,
758
+ }));
759
+ await this.sendTodos(msgChannel, wsTodos);
760
+ } catch {}
761
+ }
762
+
751
763
  // Format tool input as readable text
752
764
  let inputPreview = '';
753
765
  if (block.input && typeof block.input === 'object') {
@@ -345,6 +345,13 @@ function buildClaudeSystemPrompt({ agentName, workspaceId, channelName, mode = '
345
345
  'The to-do list lets the user track your progress in real time.\n'
346
346
  );
347
347
 
348
+ parts.push(
349
+ '\nIMPORTANT: Do NOT use built-in scheduling tools (CronCreate, CronDelete, ' +
350
+ 'CronList, ScheduleWakeup). For timers, routines, and recurring tasks, ' +
351
+ 'ALWAYS use the workspace REST API (curl commands in your skill instructions). ' +
352
+ 'Built-in scheduling is local-only and won\'t appear in the workspace.\n'
353
+ );
354
+
348
355
  return parts.join('\n');
349
356
  }
350
357