@yu_robotics/remote-cli 1.6.241 → 1.6.242
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/client/MessageHandler.d.ts +5 -2
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +81 -3
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/managed/tools.d.ts +38 -2
- package/dist/managed/tools.d.ts.map +1 -1
- package/dist/scheduling/ScheduleCommand.d.ts +7 -0
- package/dist/scheduling/ScheduleCommand.d.ts.map +1 -1
- package/dist/scheduling/ScheduleCommand.js +11 -0
- package/dist/scheduling/ScheduleCommand.js.map +1 -1
- package/dist/scheduling/ScheduleService.d.ts +50 -0
- package/dist/scheduling/ScheduleService.d.ts.map +1 -1
- package/dist/scheduling/ScheduleService.js +249 -17
- package/dist/scheduling/ScheduleService.js.map +1 -1
- package/dist/scheduling/ScheduleToolScope.d.ts +13 -0
- package/dist/scheduling/ScheduleToolScope.d.ts.map +1 -1
- package/dist/scheduling/ScheduleToolScope.js +33 -0
- package/dist/scheduling/ScheduleToolScope.js.map +1 -1
- package/dist/scheduling/claude/ClaudeSessionSchedules.d.ts +1 -0
- package/dist/scheduling/claude/ClaudeSessionSchedules.d.ts.map +1 -1
- package/dist/scheduling/claude/ClaudeSessionSchedules.js +19 -1
- package/dist/scheduling/claude/ClaudeSessionSchedules.js.map +1 -1
- package/dist/scheduling/toolContract.d.ts +19 -1
- package/dist/scheduling/toolContract.d.ts.map +1 -1
- package/dist/scheduling/toolContract.js +4 -2
- package/dist/scheduling/toolContract.js.map +1 -1
- package/dist/scheduling/types.d.ts +3 -0
- package/dist/scheduling/types.d.ts.map +1 -1
- package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
- package/native/prebuilds/darwin-arm64/manifest.json +1 -1
- package/native/prebuilds/darwin-x64/managed_native.node +0 -0
- package/native/prebuilds/darwin-x64/manifest.json +1 -1
- package/native/prebuilds/win32-arm64/managed_native.node +0 -0
- package/native/prebuilds/win32-arm64/manifest.json +1 -1
- package/native/prebuilds/win32-x64/managed_native.node +0 -0
- package/native/prebuilds/win32-x64/manifest.json +1 -1
- package/package.json +1 -1
|
@@ -234,8 +234,11 @@ export declare class MessageHandler {
|
|
|
234
234
|
private deliverScheduleToolCard;
|
|
235
235
|
/** Shared admission for slash commands and scoped model tools. Native providers alone own timing. */
|
|
236
236
|
private runScheduleOperation;
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
237
|
+
/** Purge shares native operation admission with cancellation; only the service
|
|
238
|
+
* decides whether verified retirement permits history removal. */
|
|
239
|
+
private runSchedulePurge;
|
|
240
|
+
/** Authenticated text and scoped model tools share exact reviewed deletion.
|
|
241
|
+
* Native identity and inventory checks remain independent of the caller. */
|
|
239
242
|
private runReviewedNativeCleanup;
|
|
240
243
|
private handleScheduleCommand;
|
|
241
244
|
/** Shared card/text Apply path. Callers hold exclusive settings admission. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AAYA,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,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,qBAAa,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oBAAoB;IAY5B,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,sBAAsB;IAuB9B,iFAAiF;IACjF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,sBAAsB;IAyB9B,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,qBAAqB;IAmB7B,OAAO,CAAC,YAAY;IA+DpB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,iBAAiB;IASzB,uFAAuF;IACjF,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAa7C,0FAA0F;YAC5E,gBAAgB;IA0B9B,OAAO,CAAC,mBAAmB;YAiGb,eAAe;YASf,mBAAmB;IAMjC,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,uBAAuB;IAc/B,qGAAqG;YACvF,oBAAoB;IAyGlC;sEACkE;YACpD,gBAAgB;IAmD9B;gFAC4E;YAC9D,wBAAwB;YA+DxB,qBAAqB;IAoEnC,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;CA0C/B"}
|
|
@@ -2726,6 +2726,8 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2726
2726
|
}
|
|
2727
2727
|
scheduleScope = this.scheduleToolOperations.scope({ owner, messageId, backend, current: context.current,
|
|
2728
2728
|
nativeAction: id => executor.nativeScheduleAction?.(id),
|
|
2729
|
+
deleteCleanup: (command, id) => this.runReviewedNativeCleanup(owner, command, id, context.current),
|
|
2730
|
+
purge: (selection, id) => this.runSchedulePurge(owner, selection, id, context.current),
|
|
2729
2731
|
reviewCleanup: id => this.runReviewedNativeCleanup(owner, { kind: 'cleanup-review' }, id, context.current),
|
|
2730
2732
|
run: (command, id) => this.runScheduleOperation(owner, command, id, context),
|
|
2731
2733
|
present: async (records, operationId) => {
|
|
@@ -3786,8 +3788,72 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
3786
3788
|
}
|
|
3787
3789
|
}
|
|
3788
3790
|
}
|
|
3789
|
-
/**
|
|
3790
|
-
*
|
|
3791
|
+
/** Purge shares native operation admission with cancellation; only the service
|
|
3792
|
+
* decides whether verified retirement permits history removal. */
|
|
3793
|
+
async runSchedulePurge(owner, selection, id, inTurnCurrent) {
|
|
3794
|
+
const epoch = this.imageConnectionEpoch;
|
|
3795
|
+
const backend = this.threadPool.getBackendKey(owner.threadId);
|
|
3796
|
+
const executor = this.threadPool.getExecutor(owner.threadId);
|
|
3797
|
+
const settings = () => JSON.stringify([this.executorConfiguration(), this.threadManager.getThread(owner.threadId)?.models,
|
|
3798
|
+
this.threadManager.getThread(owner.threadId)?.model, this.threadManager.getThread(owner.threadId)?.efforts]);
|
|
3799
|
+
const capturedSettings = settings();
|
|
3800
|
+
const current = () => {
|
|
3801
|
+
try {
|
|
3802
|
+
return !this.isDestroyed && !this.automaticUpdateInProgress && this.wsClient.isConnected()
|
|
3803
|
+
&& epoch === this.imageConnectionEpoch && this.scheduleGeneration(owner.threadId) === owner.generation
|
|
3804
|
+
&& !this.scheduleRecoveryThreads.has(owner.threadId) && !this.abortOperations.has(owner.threadId)
|
|
3805
|
+
&& this.threadPool.getBackendKey(owner.threadId) === backend
|
|
3806
|
+
&& this.threadPool.getExistingExecutor(owner.threadId) === executor
|
|
3807
|
+
&& capturedSettings === settings() && (!inTurnCurrent || inTurnCurrent());
|
|
3808
|
+
}
|
|
3809
|
+
catch {
|
|
3810
|
+
return false;
|
|
3811
|
+
}
|
|
3812
|
+
};
|
|
3813
|
+
if (!owner.openId || !current() || this.scheduleManagement.has(owner.threadId)
|
|
3814
|
+
|| !inTurnCurrent && (this.threadPool.isThreadBusy(owner.threadId) || executor.isBusy?.()
|
|
3815
|
+
|| this.hasThreadQueueState(owner.threadId) || this.coordinatorPreparations.has(owner.threadId))) {
|
|
3816
|
+
throw new Error('Schedule purge is unavailable while this thread is busy, disconnected or changing.');
|
|
3817
|
+
}
|
|
3818
|
+
this.scheduleManagement.add(owner.threadId);
|
|
3819
|
+
try {
|
|
3820
|
+
const service = await this.initializeSchedules();
|
|
3821
|
+
if (!current())
|
|
3822
|
+
throw new Error('Schedule purge context changed.');
|
|
3823
|
+
// Freeze all before native calls; retries of this operation must not select new tasks.
|
|
3824
|
+
const ids = 'all' in selection ? (await service.list(owner)).map(record => record.id) : [...selection.ids];
|
|
3825
|
+
const run = async () => {
|
|
3826
|
+
if (!current())
|
|
3827
|
+
throw new Error('Schedule purge context changed before cleanup.');
|
|
3828
|
+
const result = await service.purge(owner, { ids });
|
|
3829
|
+
if (result.removedIds.length)
|
|
3830
|
+
this.scheduleCards.invalidate();
|
|
3831
|
+
return result;
|
|
3832
|
+
};
|
|
3833
|
+
const records = await service.list(owner);
|
|
3834
|
+
const needsNative = backend === 'claude' && records.some(record => ids.includes(record.id)
|
|
3835
|
+
&& record.backend === 'claude' && service.canCancel(owner, record.id));
|
|
3836
|
+
if (!needsNative)
|
|
3837
|
+
return await run();
|
|
3838
|
+
if (!executor.withNativeScheduleOperation)
|
|
3839
|
+
throw new Error('Native cleanup admission is unavailable.');
|
|
3840
|
+
if (!inTurnCurrent && executor.configureManagedTools) {
|
|
3841
|
+
const bridge = this.delegationBridges.get(owner.threadId) ?? new DelegationBridge_1.DelegationBridge();
|
|
3842
|
+
this.delegationBridges.set(owner.threadId, bridge);
|
|
3843
|
+
const thread = this.threadManager.getThread(owner.threadId);
|
|
3844
|
+
const connection = await bridge.start(thread && (0, DelegationSettings_1.isDelegationEnabled)(thread) ? ['delegation', 'scheduling'] : ['scheduling']);
|
|
3845
|
+
if (!current())
|
|
3846
|
+
throw new Error('Schedule purge owner changed.');
|
|
3847
|
+
await executor.configureManagedTools(connection);
|
|
3848
|
+
}
|
|
3849
|
+
return await executor.withNativeScheduleOperation(id, current, run, !!inTurnCurrent);
|
|
3850
|
+
}
|
|
3851
|
+
finally {
|
|
3852
|
+
this.scheduleManagement.delete(owner.threadId);
|
|
3853
|
+
}
|
|
3854
|
+
}
|
|
3855
|
+
/** Authenticated text and scoped model tools share exact reviewed deletion.
|
|
3856
|
+
* Native identity and inventory checks remain independent of the caller. */
|
|
3791
3857
|
async runReviewedNativeCleanup(owner, command, requestId, inTurnCurrent) {
|
|
3792
3858
|
const threadId = owner.threadId, epoch = this.imageConnectionEpoch;
|
|
3793
3859
|
const executor = this.threadPool.getExecutor(threadId);
|
|
@@ -3902,7 +3968,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
3902
3968
|
const eligible = result.candidates.filter(entry => !result.blockedIds.includes(entry.id));
|
|
3903
3969
|
const entries = result.candidates.map(entry => `${entry.id} — ${entry.cron} (${entry.recurring ? 'recurring' : 'one-shot'}; ${entry.durable === false ? 'session-only' : 'project-persisted; deletion unavailable here'})\n${entry.prompt}`);
|
|
3904
3970
|
const confirmation = eligible.length
|
|
3905
|
-
? `
|
|
3971
|
+
? `An agent can delete eligible tasks with remote_cli_schedule_cleanup_delete using this review token and exact native IDs. You may also use this command; keep only the desired IDs:\n/schedule cleanup confirm ${result.token} cleanup-${result.token} ${eligible.map(entry => entry.id).join(',')}\nIf the reply is lost, resend the identical command.`
|
|
3906
3972
|
: 'No eligible tasks to delete in this review.';
|
|
3907
3973
|
output = `${result.warning}\nBound native session: ${result.sessionId}\nReview expires: ${result.expiresAt}\n\n${entries.join('\n\n') || 'No native tasks in this session.'}\n\n${confirmation}`;
|
|
3908
3974
|
}
|
|
@@ -3911,6 +3977,18 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
3911
3977
|
respond({ success: true, output });
|
|
3912
3978
|
return;
|
|
3913
3979
|
}
|
|
3980
|
+
if (command.kind === 'purge') {
|
|
3981
|
+
const result = await this.runSchedulePurge(owner, command.selection, (0, crypto_1.createHash)('sha256').update(message.messageId ?? (0, uuid_1.v4)()).digest('hex'));
|
|
3982
|
+
const lines = [`Removed history: ${result.removedIds.join(', ') || 'none'}.`,
|
|
3983
|
+
`Already removed: ${result.alreadyRemovedIds.join(', ') || 'none'}.`,
|
|
3984
|
+
...result.pending.map(entry => `Pending ${entry.id}: ${entry.detail}`),
|
|
3985
|
+
...result.errors.map(entry => `Failed ${entry.id}: ${entry.error}`)];
|
|
3986
|
+
if (result.pending.length || result.errors.length)
|
|
3987
|
+
lines.push('Cleanup is incomplete. Retry only the unresolved managed IDs; do not infer native absence from history state.');
|
|
3988
|
+
lines.push('Native-only definitions require native cleanup review and deletion in their original session.');
|
|
3989
|
+
respond({ success: !result.pending.length && !result.errors.length, output: lines.join('\n') });
|
|
3990
|
+
return;
|
|
3991
|
+
}
|
|
3914
3992
|
const storedOnly = command.kind === 'list' && this.threadPool.getExistingExecutor(threadId)?.hasPendingCancellation?.();
|
|
3915
3993
|
const updateSnapshot = this.automaticUpdateInProgress && command.kind === 'list';
|
|
3916
3994
|
const records = updateSnapshot ? await this.schedules?.list(owner) ?? []
|