@yu_robotics/remote-cli 1.6.234 → 1.6.235

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.
Files changed (82) hide show
  1. package/dist/client/MessageHandler.d.ts.map +1 -1
  2. package/dist/client/MessageHandler.js +77 -11
  3. package/dist/client/MessageHandler.js.map +1 -1
  4. package/dist/executor/AcpExecutor.d.ts +13 -1
  5. package/dist/executor/AcpExecutor.d.ts.map +1 -1
  6. package/dist/executor/AcpExecutor.js +18 -2
  7. package/dist/executor/AcpExecutor.js.map +1 -1
  8. package/dist/executor/ClaudePersistentExecutor.d.ts +14 -0
  9. package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
  10. package/dist/executor/ClaudePersistentExecutor.js +184 -10
  11. package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
  12. package/dist/executor/DshExecutor.d.ts +1 -0
  13. package/dist/executor/DshExecutor.d.ts.map +1 -1
  14. package/dist/executor/DshExecutor.js +14 -0
  15. package/dist/executor/DshExecutor.js.map +1 -1
  16. package/dist/executor/IExecutor.d.ts +5 -0
  17. package/dist/executor/IExecutor.d.ts.map +1 -1
  18. package/dist/executor/acp/AcpClient.d.ts +4 -3
  19. package/dist/executor/acp/AcpClient.d.ts.map +1 -1
  20. package/dist/executor/acp/AcpClient.js.map +1 -1
  21. package/dist/executor/dsh/DshAcpClient.d.ts +9 -0
  22. package/dist/executor/dsh/DshAcpClient.d.ts.map +1 -1
  23. package/dist/executor/dsh/DshAcpClient.js +72 -2
  24. package/dist/executor/dsh/DshAcpClient.js.map +1 -1
  25. package/dist/executor/dsh/DshPrivacy.d.ts +1 -1
  26. package/dist/executor/dsh/DshPrivacy.d.ts.map +1 -1
  27. package/dist/executor/dsh/DshPrivacy.js +3 -3
  28. package/dist/executor/dsh/DshPrivacy.js.map +1 -1
  29. package/dist/maintenance/release-notes.json +1 -1
  30. package/dist/managed/tools.d.ts +2 -2
  31. package/dist/scheduling/ScheduleCapabilities.d.ts +5 -7
  32. package/dist/scheduling/ScheduleCapabilities.d.ts.map +1 -1
  33. package/dist/scheduling/ScheduleCapabilities.js +6 -7
  34. package/dist/scheduling/ScheduleCapabilities.js.map +1 -1
  35. package/dist/scheduling/ScheduleCommand.js +1 -1
  36. package/dist/scheduling/ScheduleCommand.js.map +1 -1
  37. package/dist/scheduling/ScheduleService.d.ts.map +1 -1
  38. package/dist/scheduling/ScheduleService.js +40 -16
  39. package/dist/scheduling/ScheduleService.js.map +1 -1
  40. package/dist/scheduling/ScheduleToolScope.d.ts +1 -0
  41. package/dist/scheduling/ScheduleToolScope.d.ts.map +1 -1
  42. package/dist/scheduling/ScheduleToolScope.js +3 -1
  43. package/dist/scheduling/ScheduleToolScope.js.map +1 -1
  44. package/dist/scheduling/claude/ClaudeSessionSchedules.d.ts +82 -0
  45. package/dist/scheduling/claude/ClaudeSessionSchedules.d.ts.map +1 -0
  46. package/dist/scheduling/claude/ClaudeSessionSchedules.js +457 -0
  47. package/dist/scheduling/claude/ClaudeSessionSchedules.js.map +1 -0
  48. package/dist/scheduling/dsh/SessionScheduleBridge.d.ts +35 -0
  49. package/dist/scheduling/dsh/SessionScheduleBridge.d.ts.map +1 -0
  50. package/dist/scheduling/dsh/SessionScheduleBridge.js +300 -0
  51. package/dist/scheduling/dsh/SessionScheduleBridge.js.map +1 -0
  52. package/dist/scheduling/dsh/SessionScheduleClient.d.ts +15 -0
  53. package/dist/scheduling/dsh/SessionScheduleClient.d.ts.map +1 -0
  54. package/dist/scheduling/dsh/SessionScheduleClient.js +182 -0
  55. package/dist/scheduling/dsh/SessionScheduleClient.js.map +1 -0
  56. package/dist/scheduling/dsh/SessionScheduleStorage.d.ts +8 -0
  57. package/dist/scheduling/dsh/SessionScheduleStorage.d.ts.map +1 -0
  58. package/dist/scheduling/dsh/SessionScheduleStorage.js +34 -0
  59. package/dist/scheduling/dsh/SessionScheduleStorage.js.map +1 -0
  60. package/dist/scheduling/dsh/sessionLaunch.d.ts +3 -0
  61. package/dist/scheduling/dsh/sessionLaunch.d.ts.map +1 -0
  62. package/dist/scheduling/dsh/sessionLaunch.js +22 -0
  63. package/dist/scheduling/dsh/sessionLaunch.js.map +1 -0
  64. package/dist/scheduling/dsh/sessionProtocol.d.ts +4 -0
  65. package/dist/scheduling/dsh/sessionProtocol.d.ts.map +1 -0
  66. package/dist/scheduling/dsh/sessionProtocol.js +7 -0
  67. package/dist/scheduling/dsh/sessionProtocol.js.map +1 -0
  68. package/dist/scheduling/toolContract.d.ts +1 -1
  69. package/dist/scheduling/toolContract.js +2 -2
  70. package/dist/scheduling/toolContract.js.map +1 -1
  71. package/dist/scheduling/types.d.ts +11 -2
  72. package/dist/scheduling/types.d.ts.map +1 -1
  73. package/dist/scheduling/types.js.map +1 -1
  74. package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
  75. package/native/prebuilds/darwin-arm64/manifest.json +1 -1
  76. package/native/prebuilds/darwin-x64/managed_native.node +0 -0
  77. package/native/prebuilds/darwin-x64/manifest.json +1 -1
  78. package/native/prebuilds/win32-arm64/managed_native.node +0 -0
  79. package/native/prebuilds/win32-arm64/manifest.json +1 -1
  80. package/native/prebuilds/win32-x64/managed_native.node +0 -0
  81. package/native/prebuilds/win32-x64/manifest.json +1 -1
  82. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAgK,MAAM,UAAU,CAAC;AACzM,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAqIxD;;GAEG;AACH,MAAM,WAAW,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,CAAC,kBAAkB;IAW1B,OAAO,CAAC,iBAAiB;IASzB,8FAA8F;YAChF,gBAAgB;IAmB9B,OAAO,CAAC,mBAAmB;YAkDb,eAAe;YASf,mBAAmB;IAMjC,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,uBAAuB;IAc/B,qGAAqG;YACvF,oBAAoB;YA+EpB,qBAAqB;IAoCnC,8EAA8E;YAChE,sBAAsB;IAepC,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,gBAAgB;IAYxB,uFAAuF;YACzE,sBAAsB;IAsBpC,mFAAmF;YACrE,eAAe;YAuDf,mBAAmB;IA0BjC,OAAO,CAAC,YAAY;YAUN,cAAc;YAuBd,oBAAoB;IAgHlC;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAiC/B"}
@@ -55,8 +55,6 @@ const adapters_1 = require("../session/adapters");
55
55
  const PiSessionCatalog_1 = require("../session/adapters/PiSessionCatalog");
56
56
  const SessionControl_1 = require("../session/SessionControl");
57
57
  const ScheduleService_1 = require("../scheduling/ScheduleService");
58
- const ClaudeNativeScheduleProvider_1 = require("../scheduling/ClaudeNativeScheduleProvider");
59
- const DshNativeScheduleProvider_1 = require("../scheduling/DshNativeScheduleProvider");
60
58
  const ScheduleDeliveryClient_1 = require("../scheduling/ScheduleDeliveryClient");
61
59
  const ScheduleCommand_1 = require("../scheduling/ScheduleCommand");
62
60
  const ScheduleCapabilities_1 = require("../scheduling/ScheduleCapabilities");
@@ -253,7 +251,20 @@ class MessageHandler {
253
251
  throw new Error('Schedule controls are busy.');
254
252
  this.scheduleManagement.add(owner.threadId);
255
253
  try {
256
- return await body();
254
+ const executor = this.threadPool.getExecutor(owner.threadId);
255
+ if (this.threadPool.getBackendKey(owner.threadId) !== 'claude' || !executor.withNativeScheduleOperation
256
+ || !this.schedules.hasActiveSchedules(owner.threadId))
257
+ return await body();
258
+ const epoch = this.imageConnectionEpoch;
259
+ return await executor.withNativeScheduleOperation((0, uuid_1.v4)(), () => {
260
+ try {
261
+ return !this.isDestroyed && this.wsClient.isConnected() && epoch === this.imageConnectionEpoch
262
+ && this.scheduleGeneration(owner.threadId) === owner.generation;
263
+ }
264
+ catch {
265
+ return false;
266
+ }
267
+ }, body, false);
257
268
  }
258
269
  finally {
259
270
  this.scheduleManagement.delete(owner.threadId);
@@ -2608,6 +2619,7 @@ You can also use natural language commands to control Claude Code CLI.`,
2608
2619
  assertCurrent();
2609
2620
  }
2610
2621
  scheduleScope = this.scheduleToolOperations.scope({ owner, messageId, backend, current: context.current,
2622
+ nativeAction: id => executor.nativeScheduleAction?.(id),
2611
2623
  run: (command, id) => this.runScheduleOperation(owner, command, id, context),
2612
2624
  present: async (records, operationId) => {
2613
2625
  if (!context.current() || !this.scheduleToolCardsSupported)
@@ -3347,13 +3359,37 @@ You can also use natural language commands to control Claude Code CLI.`,
3347
3359
  const directory = this.scheduleDirectory();
3348
3360
  if (!directory)
3349
3361
  throw new Error('Local schedule storage is unavailable.');
3350
- const providers = { claude: new ClaudeNativeScheduleProvider_1.ClaudeNativeScheduleProvider(), dsh: new DshNativeScheduleProvider_1.DshNativeScheduleProvider() };
3351
3362
  const service = new ScheduleService_1.ScheduleService({
3352
3363
  directory,
3353
3364
  provider: { create: (input, onEvent) => {
3354
3365
  const backend = input.backend === undefined ? 'claude' : input.backend;
3355
3366
  (0, ScheduleCapabilities_1.assertNativeScheduleBackend)(backend);
3356
- return providers[backend].create(input, onEvent);
3367
+ if (!input.threadId)
3368
+ throw new Error('Native scheduling requires the original thread.');
3369
+ if (this.threadPool.getBackendKey(input.threadId) !== backend)
3370
+ throw new Error('Foreground scheduling backend changed before native admission.');
3371
+ const executor = this.threadPool.getExecutor(input.threadId);
3372
+ if (!executor.createNativeSchedule)
3373
+ throw new Error('The original executor does not support native session scheduling.');
3374
+ const generation = this.scheduleGeneration(input.threadId);
3375
+ return executor.createNativeSchedule(input, event => {
3376
+ onEvent(event);
3377
+ // A foreground message confirmed into the thread queue while an
3378
+ // autonomous native occurrence was running must be retried when
3379
+ // that occurrence reaches a terminal state. The executor's own
3380
+ // queue wake does not know about MessageHandler's queue.
3381
+ if (event.type === 'completed' || (event.type === 'stopped' && event.exitConfirmed !== false)) {
3382
+ queueMicrotask(() => { void this.startNextQueuedCommand(input.threadId); });
3383
+ }
3384
+ }, () => {
3385
+ try {
3386
+ return !this.isDestroyed && this.scheduleGeneration(input.threadId) === generation
3387
+ && this.threadPool.getBackendKey(input.threadId) === backend;
3388
+ }
3389
+ catch {
3390
+ return false;
3391
+ }
3392
+ });
3357
3393
  } },
3358
3394
  isOwnerCurrent: owner => {
3359
3395
  // Shutdown blocks delivery separately; it does not invalidate persisted ownership.
@@ -3423,7 +3459,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3423
3459
  });
3424
3460
  }
3425
3461
  /** Shared admission for slash commands and scoped model tools. Native providers alone own timing. */
3426
- async runScheduleOperation(owner, command, id = (0, uuid_1.v4)(), context) {
3462
+ async runScheduleOperation(owner, command, id = (0, uuid_1.v4)(), context, nativeBound = false) {
3427
3463
  const current = () => {
3428
3464
  try {
3429
3465
  return !this.isDestroyed && this.scheduleGeneration(owner.threadId) === owner.generation && (!context || context.current());
@@ -3435,7 +3471,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3435
3471
  const check = () => { if (!current() || this.automaticUpdateInProgress)
3436
3472
  throw new Error('Scheduling context changed or client is shutting down/updating.'); };
3437
3473
  check();
3438
- if (this.scheduleManagement.has(owner.threadId))
3474
+ if (!nativeBound && this.scheduleManagement.has(owner.threadId))
3439
3475
  throw new Error('A schedule operation is already in progress for this thread.');
3440
3476
  this.scheduleManagement.add(owner.threadId);
3441
3477
  try {
@@ -3449,6 +3485,23 @@ You can also use natural language commands to control Claude Code CLI.`,
3449
3485
  throw new Error('This native scheduling adapter does not support restricted Claude sandboxes. No schedule was created and sandbox settings were not changed.');
3450
3486
  }
3451
3487
  }
3488
+ if (!nativeBound && backend === 'claude' && (command.kind === 'create' || this.schedules?.hasActiveSchedules(owner.threadId))) {
3489
+ const executor = this.threadPool.getExecutor(owner.threadId);
3490
+ if (!executor.withNativeScheduleOperation)
3491
+ throw new Error('Shared native session scheduling is unavailable.');
3492
+ if (!context && command.kind === 'create' && executor.configureManagedTools) {
3493
+ // Install the same bridge the next ordinary turn will use before a
3494
+ // slash-created native job exists. That turn must not recycle its host.
3495
+ const bridge = this.delegationBridges.get(owner.threadId) ?? new DelegationBridge_1.DelegationBridge();
3496
+ this.delegationBridges.set(owner.threadId, bridge);
3497
+ const thread = this.threadManager.getThread(owner.threadId);
3498
+ const connection = await bridge.start(thread && (0, DelegationSettings_1.isDelegationEnabled)(thread) ? ['delegation', 'scheduling'] : ['scheduling']);
3499
+ check();
3500
+ await executor.configureManagedTools(connection);
3501
+ check();
3502
+ }
3503
+ return await executor.withNativeScheduleOperation(id, current, () => this.runScheduleOperation(owner, command, id, context, true), !!context);
3504
+ }
3452
3505
  const service = await this.initializeSchedules();
3453
3506
  check();
3454
3507
  if (command.kind === 'list') {
@@ -3472,7 +3525,18 @@ You can also use natural language commands to control Claude Code CLI.`,
3472
3525
  throw new Error('This thread has schedules belonging to a different owner.');
3473
3526
  check();
3474
3527
  this.scheduleOwners.set(owner.threadId, owner);
3475
- const record = await service.create(owner, { id, backend, cwd, rule: command.rule, prompt: command.prompt,
3528
+ if (!context && backend !== 'claude') {
3529
+ const executor = this.threadPool.getExecutor(owner.threadId);
3530
+ if (executor.configureManagedTools) {
3531
+ const bridge = this.delegationBridges.get(owner.threadId) ?? new DelegationBridge_1.DelegationBridge();
3532
+ this.delegationBridges.set(owner.threadId, bridge);
3533
+ const connection = await bridge.start((0, DelegationSettings_1.isDelegationEnabled)(thread) ? ['delegation', 'scheduling'] : ['scheduling']);
3534
+ check();
3535
+ await executor.configureManagedTools(connection);
3536
+ check();
3537
+ }
3538
+ }
3539
+ const record = await service.create(owner, { id, threadId: owner.threadId, backend, cwd, rule: command.rule, prompt: command.prompt,
3476
3540
  command: config[backend]?.command,
3477
3541
  model: context ? context.model : thread.models?.[backend] ?? (backend === 'claude' ? thread.model || undefined : config.dsh?.model),
3478
3542
  effort: context ? context.effort : thread.efforts?.[backend] });
@@ -3483,8 +3547,10 @@ You can also use natural language commands to control Claude Code CLI.`,
3483
3547
  return [record];
3484
3548
  }
3485
3549
  finally {
3486
- this.scheduleManagement.delete(owner.threadId);
3487
- await this.activeSchedules(owner.threadId).catch(() => undefined);
3550
+ if (!nativeBound) {
3551
+ this.scheduleManagement.delete(owner.threadId);
3552
+ await this.activeSchedules(owner.threadId).catch(() => undefined);
3553
+ }
3488
3554
  }
3489
3555
  }
3490
3556
  async handleScheduleCommand(message, threadId) {
@@ -3530,7 +3596,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3530
3596
  const lifecycle = record.backend === 'claude'
3531
3597
  ? 'Schedules are lost when the native process exits; recurring tasks expire after seven days.'
3532
3598
  : 'Native job storage is isolated and is never automatically reopened after process exit.';
3533
- output = `Schedule ${record.id}: ${record.state}.\n${record.rule.kind === 'once' ? record.rule.at : `${record.rule.expression} (${record.rule.timezone})`}\n\nRuns in its own ${ScheduleCapabilities_1.NATIVE_SCHEDULE_CAPABILITIES[record.backend].label} session and returns results to this thread. Keep the CLI running; native timing is approximate. ${lifecycle}\nUse /schedule list or /schedule cancel ${record.id}.`;
3599
+ output = `Schedule ${record.id}: ${record.state}.\n${record.rule.kind === 'once' ? record.rule.at : `${record.rule.expression} (${record.rule.timezone})`}\n\nRuns in this thread's foreground ${ScheduleCapabilities_1.NATIVE_SCHEDULE_CAPABILITIES[record.backend].label} conversation and returns results here. Keep the CLI running; native timing is approximate. ${lifecycle}\nUse /schedule list or /schedule cancel ${record.id}.`;
3534
3600
  }
3535
3601
  respond({ success: true, scheduleMenu: menuFor(owner, records), output });
3536
3602
  }