@yu_robotics/remote-cli 1.6.243 → 1.6.247
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 +1 -0
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +86 -26
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/executor/AgyExecutor.d.ts +39 -2
- package/dist/executor/AgyExecutor.d.ts.map +1 -1
- package/dist/executor/AgyExecutor.js +383 -38
- package/dist/executor/AgyExecutor.js.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.d.ts +1 -0
- package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.js +24 -15
- package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
- package/dist/executor/DshExecutor.d.ts +1 -0
- package/dist/executor/DshExecutor.d.ts.map +1 -1
- package/dist/executor/IExecutor.d.ts +3 -1
- package/dist/executor/IExecutor.d.ts.map +1 -1
- package/dist/executor/acp/AcpClient.d.ts +5 -0
- package/dist/executor/acp/AcpClient.d.ts.map +1 -1
- package/dist/executor/acp/AcpClient.js +19 -1
- package/dist/executor/acp/AcpClient.js.map +1 -1
- package/dist/executor/agy/AgyAcpRuntime.d.ts +82 -0
- package/dist/executor/agy/AgyAcpRuntime.d.ts.map +1 -0
- package/dist/executor/agy/AgyAcpRuntime.js +390 -0
- package/dist/executor/agy/AgyAcpRuntime.js.map +1 -0
- package/dist/executor/index.d.ts.map +1 -1
- package/dist/executor/index.js +2 -1
- package/dist/executor/index.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/managed/tools.d.ts +4 -4
- package/dist/scheduling/ReviewedNativeCleanup.d.ts +2 -0
- package/dist/scheduling/ReviewedNativeCleanup.d.ts.map +1 -1
- package/dist/scheduling/ReviewedNativeCleanup.js.map +1 -1
- package/dist/scheduling/ScheduleCapabilities.d.ts +4 -4
- package/dist/scheduling/ScheduleCapabilities.d.ts.map +1 -1
- package/dist/scheduling/ScheduleCapabilities.js +6 -6
- package/dist/scheduling/ScheduleCapabilities.js.map +1 -1
- package/dist/scheduling/ScheduleCleanup.d.ts +31 -0
- package/dist/scheduling/ScheduleCleanup.d.ts.map +1 -0
- package/dist/scheduling/ScheduleCleanup.js +42 -0
- package/dist/scheduling/ScheduleCleanup.js.map +1 -0
- package/dist/scheduling/ScheduleCommand.d.ts +1 -0
- package/dist/scheduling/ScheduleCommand.d.ts.map +1 -1
- package/dist/scheduling/ScheduleCommand.js +9 -3
- package/dist/scheduling/ScheduleCommand.js.map +1 -1
- package/dist/scheduling/SchedulePurgeVerification.d.ts +2 -1
- package/dist/scheduling/SchedulePurgeVerification.d.ts.map +1 -1
- package/dist/scheduling/SchedulePurgeVerification.js +61 -5
- package/dist/scheduling/SchedulePurgeVerification.js.map +1 -1
- package/dist/scheduling/ScheduleService.d.ts +29 -4
- package/dist/scheduling/ScheduleService.d.ts.map +1 -1
- package/dist/scheduling/ScheduleService.js +305 -50
- package/dist/scheduling/ScheduleService.js.map +1 -1
- package/dist/scheduling/ScheduleToolScope.d.ts +12 -0
- package/dist/scheduling/ScheduleToolScope.d.ts.map +1 -1
- package/dist/scheduling/ScheduleToolScope.js +7 -2
- package/dist/scheduling/ScheduleToolScope.js.map +1 -1
- package/dist/scheduling/agy/AgyCheckpoint.d.ts +35 -0
- package/dist/scheduling/agy/AgyCheckpoint.d.ts.map +1 -0
- package/dist/scheduling/agy/AgyCheckpoint.js +160 -0
- package/dist/scheduling/agy/AgyCheckpoint.js.map +1 -0
- package/dist/scheduling/agy/AgyHookRelay.d.ts +33 -0
- package/dist/scheduling/agy/AgyHookRelay.d.ts.map +1 -0
- package/dist/scheduling/agy/AgyHookRelay.js +274 -0
- package/dist/scheduling/agy/AgyHookRelay.js.map +1 -0
- package/dist/scheduling/agy/AgyScheduleHost.d.ts +42 -0
- package/dist/scheduling/agy/AgyScheduleHost.d.ts.map +1 -0
- package/dist/scheduling/agy/AgyScheduleHost.js +121 -0
- package/dist/scheduling/agy/AgyScheduleHost.js.map +1 -0
- package/dist/scheduling/agy/AgySessionSchedules.d.ts +109 -0
- package/dist/scheduling/agy/AgySessionSchedules.d.ts.map +1 -0
- package/dist/scheduling/agy/AgySessionSchedules.js +476 -0
- package/dist/scheduling/agy/AgySessionSchedules.js.map +1 -0
- package/dist/scheduling/agy/hookClient.d.ts +4 -0
- package/dist/scheduling/agy/hookClient.d.ts.map +1 -0
- package/dist/scheduling/agy/hookClient.js +62 -0
- package/dist/scheduling/agy/hookClient.js.map +1 -0
- package/dist/scheduling/agy/transcript.d.ts +36 -0
- package/dist/scheduling/agy/transcript.d.ts.map +1 -0
- package/dist/scheduling/agy/transcript.js +108 -0
- package/dist/scheduling/agy/transcript.js.map +1 -0
- 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 +40 -21
- package/dist/scheduling/claude/ClaudeSessionSchedules.js.map +1 -1
- package/dist/scheduling/toolContract.d.ts +2 -2
- package/dist/scheduling/toolContract.js +2 -2
- package/dist/scheduling/toolContract.js.map +1 -1
- package/dist/scheduling/types.d.ts +10 -2
- package/dist/scheduling/types.d.ts.map +1 -1
- package/dist/scheduling/types.js.map +1 -1
- package/dist/thread/ThreadManager.d.ts.map +1 -1
- package/dist/thread/ThreadManager.js +33 -0
- package/dist/thread/ThreadManager.js.map +1 -1
- package/dist/types/ScheduleCards.d.ts +1 -1
- package/dist/types/ScheduleCards.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
package/dist/managed/tools.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare function managedTools(connection?: Pick<ManagedToolConnection, 'g
|
|
|
114
114
|
};
|
|
115
115
|
} | {
|
|
116
116
|
readonly name: "remote_cli_schedule_cleanup_delete";
|
|
117
|
-
readonly description: "Delete exact eligible native definitions from a current cleanup review when the user requests cleanup. The agent may call this directly; no extra human confirmation is required. Preserve the review token, selected nativeIds and requestId on retries. Scope, expiry, inventory and backend capabilities are rechecked. Follow each returned nativeAction exactly and inspect remote_cli_schedule_operation until terminal; pending is not success. Success confirms definition absence on this host, not that unknown predecessor work stopped. Use schedule purge separately for managed history; unsupported or unattributed
|
|
117
|
+
readonly description: "Delete exact eligible native definitions from a current cleanup review when the user requests cleanup. The agent may call this directly; no extra human confirmation is required. Preserve the review token, selected nativeIds and requestId on retries. Scope, expiry, inventory and backend capabilities are rechecked. Follow each returned nativeAction exactly and inspect remote_cli_schedule_operation until terminal; pending is not success. Success confirms definition absence on this host, not that unknown predecessor work stopped. Use schedule purge separately for managed history; unsupported or unattributed native cleanup remains explicitly unresolved independently of history removal.";
|
|
118
118
|
readonly inputSchema: {
|
|
119
119
|
type: string;
|
|
120
120
|
properties: Record<string, unknown>;
|
|
@@ -123,7 +123,7 @@ export declare function managedTools(connection?: Pick<ManagedToolConnection, 'g
|
|
|
123
123
|
};
|
|
124
124
|
} | {
|
|
125
125
|
readonly name: "remote_cli_schedule_purge";
|
|
126
|
-
readonly description: "On the user request, cancel selected owned managed tasks and erase
|
|
126
|
+
readonly description: "On the user request, cancel selected owned managed tasks and erase eligible owned history and queued output even when legacy attribution is missing. No extra human confirmation is required. Select exact scheduleIds or all current-conversation records and unresolved cleanup entries. History removal does not imply native absence. List shows remaining nativeCleanupUnresolved; retry those managed IDs with a new requestId. If the user explicitly asks to forget residual cleanup tracking, use exact scheduleIds and forgetUnresolved:true after history is removed. This only forgets tracking, retains replay fences, and does not verify native absence or stop unknown work. Report forgottenCleanupIds and warning; never use this option for all:true or to cancel live history. Inspect purge.historyRemovedIds, nativeCleanupUnresolved, alreadyRemovedIds, pending and errors: operation completion does not mean every task was removed. Retry only unresolved selectedIds with a new requestId after a completed attempt; reuse the original requestId while pending or after a lost reply. Does not discover native-only tasks: use native cleanup review and deletion for those. Never infer native absence from terminal catalog state.";
|
|
127
127
|
readonly inputSchema: {
|
|
128
128
|
type: string;
|
|
129
129
|
properties: Record<string, unknown>;
|
|
@@ -255,7 +255,7 @@ export declare function environmentTools(): ({
|
|
|
255
255
|
};
|
|
256
256
|
} | {
|
|
257
257
|
readonly name: "remote_cli_schedule_cleanup_delete";
|
|
258
|
-
readonly description: "Delete exact eligible native definitions from a current cleanup review when the user requests cleanup. The agent may call this directly; no extra human confirmation is required. Preserve the review token, selected nativeIds and requestId on retries. Scope, expiry, inventory and backend capabilities are rechecked. Follow each returned nativeAction exactly and inspect remote_cli_schedule_operation until terminal; pending is not success. Success confirms definition absence on this host, not that unknown predecessor work stopped. Use schedule purge separately for managed history; unsupported or unattributed
|
|
258
|
+
readonly description: "Delete exact eligible native definitions from a current cleanup review when the user requests cleanup. The agent may call this directly; no extra human confirmation is required. Preserve the review token, selected nativeIds and requestId on retries. Scope, expiry, inventory and backend capabilities are rechecked. Follow each returned nativeAction exactly and inspect remote_cli_schedule_operation until terminal; pending is not success. Success confirms definition absence on this host, not that unknown predecessor work stopped. Use schedule purge separately for managed history; unsupported or unattributed native cleanup remains explicitly unresolved independently of history removal.";
|
|
259
259
|
readonly inputSchema: {
|
|
260
260
|
type: string;
|
|
261
261
|
properties: Record<string, unknown>;
|
|
@@ -264,7 +264,7 @@ export declare function environmentTools(): ({
|
|
|
264
264
|
};
|
|
265
265
|
} | {
|
|
266
266
|
readonly name: "remote_cli_schedule_purge";
|
|
267
|
-
readonly description: "On the user request, cancel selected owned managed tasks and erase
|
|
267
|
+
readonly description: "On the user request, cancel selected owned managed tasks and erase eligible owned history and queued output even when legacy attribution is missing. No extra human confirmation is required. Select exact scheduleIds or all current-conversation records and unresolved cleanup entries. History removal does not imply native absence. List shows remaining nativeCleanupUnresolved; retry those managed IDs with a new requestId. If the user explicitly asks to forget residual cleanup tracking, use exact scheduleIds and forgetUnresolved:true after history is removed. This only forgets tracking, retains replay fences, and does not verify native absence or stop unknown work. Report forgottenCleanupIds and warning; never use this option for all:true or to cancel live history. Inspect purge.historyRemovedIds, nativeCleanupUnresolved, alreadyRemovedIds, pending and errors: operation completion does not mean every task was removed. Retry only unresolved selectedIds with a new requestId after a completed attempt; reuse the original requestId while pending or after a lost reply. Does not discover native-only tasks: use native cleanup review and deletion for those. Never infer native absence from terminal catalog state.";
|
|
268
268
|
readonly inputSchema: {
|
|
269
269
|
type: string;
|
|
270
270
|
properties: Record<string, unknown>;
|
|
@@ -13,6 +13,8 @@ export interface NativeCleanupSession {
|
|
|
13
13
|
/** Framework-captured location and retirement proof, never model arguments. */
|
|
14
14
|
cwd?: string;
|
|
15
15
|
retirementConfirmed?(): boolean;
|
|
16
|
+
/** Unsettled mutation receipts retain their operational record. */
|
|
17
|
+
mutationPending?(): boolean;
|
|
16
18
|
current(): boolean;
|
|
17
19
|
inventory(): Promise<NativeCleanupDefinition[]>;
|
|
18
20
|
remove(target: NativeCleanupDefinition): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewedNativeCleanup.d.ts","sourceRoot":"","sources":["../../src/scheduling/ReviewedNativeCleanup.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IACjF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD,MAAM,WAAW,oBAAoB;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C"}
|
|
@@ -12,8 +12,8 @@ export declare const NATIVE_SCHEDULE_CAPABILITIES: {
|
|
|
12
12
|
};
|
|
13
13
|
readonly agy: {
|
|
14
14
|
readonly label: "AGY";
|
|
15
|
-
readonly supported:
|
|
16
|
-
readonly detail: "
|
|
15
|
+
readonly supported: true;
|
|
16
|
+
readonly detail: "Fresh or clean-checkpointed original ACP conversations, after native hook/receipt qualification. Saved stream-json conversations without a trusted checkpoint and managed workers stay on their compatible transport. Native once/cron, exact cancellation and idle batch delivery are supported; cron timezone must match the host. Foreground cancellation and orderly restart can restore never-fired future definitions only after exact host retirement before every possible first wake, with no unknown queued work. Due work, dirty exits and ambiguous operations remain blocked with ownership retained. No executable-version gate.";
|
|
17
17
|
};
|
|
18
18
|
readonly dsh: {
|
|
19
19
|
readonly label: "DSH";
|
|
@@ -42,9 +42,9 @@ export declare const NATIVE_SCHEDULE_CAPABILITIES: {
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
/** Historical catalog/result identities remain readable when new creation is disabled. */
|
|
45
|
-
export type NativeScheduleBackend = 'claude' | 'dsh';
|
|
45
|
+
export type NativeScheduleBackend = 'claude' | 'dsh' | 'agy';
|
|
46
46
|
export declare function isNativeScheduleBackend(value: unknown): value is NativeScheduleBackend;
|
|
47
|
-
/**
|
|
47
|
+
/** Foreground product admission; catalog identity and installed provider support are separate. */
|
|
48
48
|
export declare function assertNativeScheduleBackend(backend: string): asserts backend is NativeScheduleBackend;
|
|
49
49
|
/** Product capabilities are deliberately distinct from an available adapter. */
|
|
50
50
|
export declare const SCHEDULE_CAPABILITIES: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleCapabilities.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleCapabilities.ts"],"names":[],"mappings":"AAQA,sFAAsF;AACtF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCkB,CAAC;AAE5D,0FAA0F;AAC1F,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduleCapabilities.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleCapabilities.ts"],"names":[],"mappings":"AAQA,sFAAsF;AACtF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCkB,CAAC;AAE5D,0FAA0F;AAC1F,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC;AAE7D,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAEtF;AAED,kGAAkG;AAClG,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,IAAI,qBAAqB,CAQrG;AAED,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,QAUtB,CAAC"}
|
|
@@ -14,8 +14,8 @@ exports.NATIVE_SCHEDULE_CAPABILITIES = {
|
|
|
14
14
|
detail: 'Codex 0.167.0 app-server delegates automation tools to its client; it has no native scheduled-job engine. In-turn sleep is not a managed schedule.',
|
|
15
15
|
},
|
|
16
16
|
agy: {
|
|
17
|
-
label: 'AGY', supported:
|
|
18
|
-
detail: '
|
|
17
|
+
label: 'AGY', supported: true,
|
|
18
|
+
detail: 'Fresh or clean-checkpointed original ACP conversations, after native hook/receipt qualification. Saved stream-json conversations without a trusted checkpoint and managed workers stay on their compatible transport. Native once/cron, exact cancellation and idle batch delivery are supported; cron timezone must match the host. Foreground cancellation and orderly restart can restore never-fired future definitions only after exact host retirement before every possible first wake, with no unknown queued work. Due work, dirty exits and ambiguous operations remain blocked with ownership retained. No executable-version gate.',
|
|
19
19
|
},
|
|
20
20
|
dsh: {
|
|
21
21
|
label: 'DSH', supported: true,
|
|
@@ -39,15 +39,15 @@ exports.NATIVE_SCHEDULE_CAPABILITIES = {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
function isNativeScheduleBackend(value) {
|
|
42
|
-
return value === 'claude' || value === 'dsh';
|
|
42
|
+
return value === 'claude' || value === 'dsh' || value === 'agy';
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
44
|
+
/** Foreground product admission; catalog identity and installed provider support are separate. */
|
|
45
45
|
function assertNativeScheduleBackend(backend) {
|
|
46
46
|
if (!Object.hasOwn(exports.NATIVE_SCHEDULE_CAPABILITIES, backend)) {
|
|
47
47
|
throw new Error('Native scheduling is temporarily unsupported for this unknown backend. Use /schedule capabilities to inspect supported backends.');
|
|
48
48
|
}
|
|
49
49
|
const capability = exports.NATIVE_SCHEDULE_CAPABILITIES[backend];
|
|
50
|
-
if (!isNativeScheduleBackend(backend)) {
|
|
50
|
+
if (!isNativeScheduleBackend(backend) || !capability.supported) {
|
|
51
51
|
throw new Error(`${capability.label} scheduling is temporarily unsupported. ${capability.detail} Use /schedule capabilities to inspect supported backends.`);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ exports.SCHEDULE_CAPABILITIES = [
|
|
|
56
56
|
'Native scheduling adapters:',
|
|
57
57
|
...Object.values(exports.NATIVE_SCHEDULE_CAPABILITIES).map(capability => `- ${capability.label}: ${capability.supported ? 'supported (runtime checks required)' : 'temporarily unsupported'}. ${capability.detail}`),
|
|
58
58
|
'',
|
|
59
|
-
'Claude and DSH tasks share their original native conversation and later chat messages. Separate schedules in that thread share context; no transcript copy is made.',
|
|
59
|
+
'Claude, fresh AGY ACP and DSH tasks share their original native conversation and later chat messages. Separate schedules in that thread share context; no transcript copy is made.',
|
|
60
60
|
'The native backend owns timing. No Router timer or periodic model polling is used.',
|
|
61
61
|
'Keep the CLI running for native timing. Claude jobs with verified native runtime capabilities and DSH jobs recover after verified orderly handoff in the original session. New Claude recurring jobs can also adopt exact native definitions after verified same-machine reboot. Same-boot crashes, unexplained missing definitions and uncertain one-shots remain blocked.',
|
|
62
62
|
'Restart recovery is a separate provider capability. Eligible waiting jobs permit verified handoff before automatic upgrades. Claude may skip fired but not-yet-admitted occurrences; admitted execution and background work must drain. DSH drains queued work. Running or unconfirmed work still blocks upgrades. Expired one-shots are not run late and missed cron firings are not replayed.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleCapabilities.js","sourceRoot":"","sources":["../../src/scheduling/ScheduleCapabilities.ts"],"names":[],"mappings":";;;AA+CA,0DAEC;AAGD,kEAQC;AApDD,sFAAsF;AACzE,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI;QAChC,MAAM,EAAE,yOAAyO;KAClP;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK;QAChC,MAAM,EAAE,oJAAoJ;KAC7J;IACD,GAAG,EAAE;QACH,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"ScheduleCapabilities.js","sourceRoot":"","sources":["../../src/scheduling/ScheduleCapabilities.ts"],"names":[],"mappings":";;;AA+CA,0DAEC;AAGD,kEAQC;AApDD,sFAAsF;AACzE,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI;QAChC,MAAM,EAAE,yOAAyO;KAClP;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK;QAChC,MAAM,EAAE,oJAAoJ;KAC7J;IACD,GAAG,EAAE;QACH,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI;QAC7B,MAAM,EAAE,gnBAAgnB;KACznB;IACD,GAAG,EAAE;QACH,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI;QAC7B,MAAM,EAAE,yPAAyP;KAClQ;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK;QAC/B,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,oLAAoL;IACpL,oFAAoF;IACpF,6WAA6W;IAC7W,iYAAiY;IACjY,4HAA4H;CAC7H,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ScheduleOwner, ScheduleRecord, ScheduleRule } from './types';
|
|
2
|
+
export type CleanupReason = 'native_absence_unknown' | 'predecessor_unknown' | 'unattributed';
|
|
3
|
+
/** Deletion-only selector. No prompt, output, execution options or recovery permission. */
|
|
4
|
+
export interface ScheduleCleanupRecord extends ScheduleOwner {
|
|
5
|
+
id: string;
|
|
6
|
+
historyRemoved: true;
|
|
7
|
+
backend: ScheduleRecord['backend'];
|
|
8
|
+
cwd: string;
|
|
9
|
+
nativeId?: string;
|
|
10
|
+
reason: CleanupReason;
|
|
11
|
+
attribution?: {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
marker?: string;
|
|
14
|
+
promptHash: string;
|
|
15
|
+
rule: ScheduleRule;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function cleanupDetail(reason: CleanupReason): string;
|
|
19
|
+
export declare function promptHash(prompt: string): string;
|
|
20
|
+
export declare function cleanupRecord(record: ScheduleRecord, reason: CleanupReason): ScheduleCleanupRecord;
|
|
21
|
+
export declare function cleanupSummary(record: ScheduleCleanupRecord): {
|
|
22
|
+
sessionId?: string | undefined;
|
|
23
|
+
nativeId?: string | undefined;
|
|
24
|
+
id: string;
|
|
25
|
+
backend: import("./ScheduleCapabilities").NativeScheduleBackend;
|
|
26
|
+
historyRemoved: true;
|
|
27
|
+
reason: CleanupReason;
|
|
28
|
+
detail: string;
|
|
29
|
+
};
|
|
30
|
+
export type ScheduleCleanupSummary = ReturnType<typeof cleanupSummary>;
|
|
31
|
+
//# sourceMappingURL=ScheduleCleanup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleCleanup.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleCleanup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,cAAc,CAAC;AAC9F,2FAA2F;AAC3F,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,IAAI,CAAC;IACrB,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC;CAC9F;AACD,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAI3D;AACD,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAA8D;AAEhH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,GAAG,qBAAqB,CAmBlG;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,qBAAqB;;;;;;;;EAI3D;AACD,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cleanupDetail = cleanupDetail;
|
|
4
|
+
exports.promptHash = promptHash;
|
|
5
|
+
exports.cleanupRecord = cleanupRecord;
|
|
6
|
+
exports.cleanupSummary = cleanupSummary;
|
|
7
|
+
const node_crypto_1 = require("node:crypto");
|
|
8
|
+
function cleanupDetail(reason) {
|
|
9
|
+
if (reason === 'unattributed')
|
|
10
|
+
return 'History removed; native cleanup unresolved: original session/definition attribution is missing. Review native tasks in the original bound session and delete exact selected definitions. No account/session search or global absence is implied.';
|
|
11
|
+
if (reason === 'predecessor_unknown')
|
|
12
|
+
return 'History removed; native cleanup unresolved: predecessor or admitted work is unconfirmed. Retry these managed IDs after framework retirement proof becomes available.';
|
|
13
|
+
return 'History removed; native cleanup unresolved: exact native absence is unconfirmed. Retry these managed IDs in the original bound session or use native cleanup review/delete.';
|
|
14
|
+
}
|
|
15
|
+
function promptHash(prompt) { return (0, node_crypto_1.createHash)('sha256').update(prompt).digest('hex'); }
|
|
16
|
+
function cleanupRecord(record, reason) {
|
|
17
|
+
const result = { id: record.id, threadId: record.threadId, openId: record.openId,
|
|
18
|
+
generation: record.generation, backend: record.backend, cwd: record.cwd, historyRemoved: true, reason,
|
|
19
|
+
...(record.nativeId ? { nativeId: record.nativeId } : {}) };
|
|
20
|
+
// Do not carry opaque provider JSON into the deletion ledger. Only supported
|
|
21
|
+
// session selectors are retained, with an irreversible exact prompt digest.
|
|
22
|
+
try {
|
|
23
|
+
const identity = JSON.parse(record.recovery?.identity ?? 'null');
|
|
24
|
+
const provider = record.backend === 'claude' ? 'claude-session-skip-unadmitted-v1' : 'dsh-session-orderly-v1';
|
|
25
|
+
if ((record.backend === 'claude' || record.backend === 'dsh') && record.recovery?.provider === provider && record.recovery.strategy === 'reconstruct'
|
|
26
|
+
&& identity?.threadId === record.threadId && identity.cwd === record.cwd
|
|
27
|
+
&& typeof identity.sessionId === 'string' && identity.sessionId.length > 0 && identity.sessionId.length <= 256
|
|
28
|
+
&& !/[\x00-\x1f\x7f]/.test(identity.sessionId)
|
|
29
|
+
&& (record.backend !== 'claude' || /^[a-f0-9-]{36}$/.test(identity.marker ?? ''))) {
|
|
30
|
+
result.attribution = { sessionId: identity.sessionId, promptHash: promptHash(record.prompt), rule: structuredClone(record.rule),
|
|
31
|
+
...(record.backend === 'claude' ? { marker: identity.marker } : {}) };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch { /* Missing or malformed legacy attribution is not invented. */ }
|
|
35
|
+
return result;
|
|
36
|
+
}
|
|
37
|
+
function cleanupSummary(record) {
|
|
38
|
+
return { id: record.id, backend: record.backend, historyRemoved: true, reason: record.reason,
|
|
39
|
+
detail: cleanupDetail(record.reason), ...(record.nativeId ? { nativeId: record.nativeId } : {}),
|
|
40
|
+
...(record.attribution ? { sessionId: record.attribution.sessionId } : {}) };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ScheduleCleanup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleCleanup.js","sourceRoot":"","sources":["../../src/scheduling/ScheduleCleanup.ts"],"names":[],"mappings":";;AAcA,sCAIC;AACD,gCAAgH;AAEhH,sCAmBC;AAED,wCAIC;AA9CD,6CAAyC;AAczC,SAAgB,aAAa,CAAC,MAAqB;IACjD,IAAI,MAAM,KAAK,cAAc;QAAE,OAAO,kPAAkP,CAAC;IACzR,IAAI,MAAM,KAAK,qBAAqB;QAAE,OAAO,sKAAsK,CAAC;IACpN,OAAO,6KAA6K,CAAC;AACvL,CAAC;AACD,SAAgB,UAAU,CAAC,MAAc,IAAY,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEhH,SAAgB,aAAa,CAAC,MAAsB,EAAE,MAAqB;IACzE,MAAM,MAAM,GAA0B,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM;QACrG,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM;QACrG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AG,CAAC,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;IAAC,MAAM,CAAC,CAAC,8DAA8D,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,cAAc,CAAC,MAA6B;IAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,EAAE,IAAa,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM;QACnG,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/F,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AACjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleCommand.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,QAAY,CAAC;AACnD,eAAO,MAAM,qBAAqB,QAA4B,CAAC;AAC/D,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ScheduleCommand.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB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gB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAa7E;AAaD,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,SAAa,GAAG,eAAe,GAAG,SAAS,CAqDrG"}
|
|
@@ -15,6 +15,7 @@ exports.SCHEDULE_USAGE = [
|
|
|
15
15
|
'/schedule list',
|
|
16
16
|
'/schedule cancel <id>',
|
|
17
17
|
'/schedule purge <managed-id,...|all>',
|
|
18
|
+
'/schedule purge <managed-id,...> --forget-unresolved',
|
|
18
19
|
'/schedule cleanup review [native-id,...]',
|
|
19
20
|
'/schedule cleanup confirm <review-token> <request-id> <native-id,...>',
|
|
20
21
|
'/schedule after <positive integer><m|h|d> -- <prompt>',
|
|
@@ -150,15 +151,20 @@ function parseScheduleCommand(content, nowMs = Date.now()) {
|
|
|
150
151
|
ids.forEach(validateScheduleId);
|
|
151
152
|
return { kind: 'cleanup-confirm', token: confirm[1], requestId: confirm[2], ids };
|
|
152
153
|
}
|
|
153
|
-
const purge = /^purge\s+(\S+)
|
|
154
|
+
const purge = /^purge\s+(\S+)(\s+--forget-unresolved)?$/.exec(args);
|
|
154
155
|
if (purge) {
|
|
155
|
-
if (purge[1] === '
|
|
156
|
+
if (purge[1] === '--forget-unresolved')
|
|
157
|
+
throw new Error('Forgetting unresolved cleanup requires exact managed IDs.');
|
|
158
|
+
if (purge[1] === 'all') {
|
|
159
|
+
if (purge[2])
|
|
160
|
+
throw new Error('Forgetting unresolved cleanup requires exact managed IDs.');
|
|
156
161
|
return { kind: 'purge', selection: { all: true } };
|
|
162
|
+
}
|
|
157
163
|
const ids = purge[1].split(',');
|
|
158
164
|
ids.forEach(validateScheduleId);
|
|
159
165
|
if (new Set(ids).size !== ids.length || ids.length > 500)
|
|
160
166
|
throw new Error('Invalid purge selection.');
|
|
161
|
-
return { kind: 'purge', selection: { ids } };
|
|
167
|
+
return { kind: 'purge', selection: { ids, ...(purge[2] ? { forgetUnresolved: true } : {}) } };
|
|
162
168
|
}
|
|
163
169
|
const cancel = /^cancel\s+(\S+)$/.exec(args);
|
|
164
170
|
if (cancel) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleCommand.js","sourceRoot":"","sources":["../../src/scheduling/ScheduleCommand.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ScheduleCommand.js","sourceRoot":"","sources":["../../src/scheduling/ScheduleCommand.ts"],"names":[],"mappings":";;;AA8BA,gDAKC;AAED,wDAKC;AAGD,oDA8BC;AAGD,wDAeC;AAED,oDAaC;AAcD,oDAqDC;AA7KY,QAAA,yBAAyB,GAAG,EAAE,GAAG,IAAI,CAAC;AACtC,QAAA,qBAAqB,GAAG,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAClD,QAAA,cAAc,GAAG;IAC5B,WAAW;IACX,wBAAwB;IACxB,gBAAgB;IAChB,uBAAuB;IACvB,sCAAsC;IACtC,sDAAsD;IACtD,0CAA0C;IAC1C,uEAAuE;IACvE,uDAAuD;IACvD,2DAA2D;IAC3D,yEAAyE;IACzE,0HAA0H;IAC1H,mFAAmF;IACnF,qFAAqF;CACtF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAWb,SAAgB,kBAAkB,CAAC,EAAW;IAC5C,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC;WAC3D,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;IAC7F,CAAC;AACH,CAAC;AAED,SAAgB,sBAAsB,CAAC,MAAe;IACpD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,MAAM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,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,CAAC;;YAAM,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAC7E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,2BAA2B,EAAE,CAAC;IAC5G,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type ScheduleCleanupRecord } from './ScheduleCleanup';
|
|
1
2
|
import { type NativeCleanupSession } from './ReviewedNativeCleanup';
|
|
2
3
|
import type { SchedulePurgeEvidence } from './ScheduleService';
|
|
3
4
|
import type { ScheduleRecord } from './types';
|
|
4
5
|
/** Called only inside the framework's bound native cleanup lease. An empty
|
|
5
6
|
* inventory is useful only with original session attribution and retirement. */
|
|
6
|
-
export declare function verifySchedulePurge<T>(record: Readonly<ScheduleRecord>, host: NativeCleanupSession | undefined, current: () => boolean, accept: (evidence: SchedulePurgeEvidence) => Promise<T>): Promise<T>;
|
|
7
|
+
export declare function verifySchedulePurge<T>(record: Readonly<ScheduleRecord | ScheduleCleanupRecord>, host: NativeCleanupSession | undefined, current: () => boolean, accept: (evidence: SchedulePurgeEvidence) => Promise<T>): Promise<T>;
|
|
7
8
|
//# sourceMappingURL=SchedulePurgeVerification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulePurgeVerification.d.ts","sourceRoot":"","sources":["../../src/scheduling/SchedulePurgeVerification.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulePurgeVerification.d.ts","sourceRoot":"","sources":["../../src/scheduling/SchedulePurgeVerification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACxG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;gFACgF;AAChF,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,cAAc,GAAG,qBAAqB,CAAC,EAAE,IAAI,EAAE,oBAAoB,GAAG,SAAS,EAC3I,OAAO,EAAE,MAAM,OAAO,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA6B7F"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.verifySchedulePurge = verifySchedulePurge;
|
|
4
|
+
const ScheduleCleanup_1 = require("./ScheduleCleanup");
|
|
4
5
|
const ReviewedNativeCleanup_1 = require("./ReviewedNativeCleanup");
|
|
5
6
|
/** Called only inside the framework's bound native cleanup lease. An empty
|
|
6
7
|
* inventory is useful only with original session attribution and retirement. */
|
|
7
8
|
async function verifySchedulePurge(record, host, current, accept) {
|
|
8
|
-
const unresolved = (reason, detail) => accept({ status: 'unresolved', reason, detail });
|
|
9
|
+
const unresolved = (reason, detail) => accept(host?.mutationPending?.() ? { status: 'unresolved', reason: 'operation_pending', detail: 'A native mutation receipt is unsettled; retry after reconciliation.' } : { status: 'unresolved', reason, detail });
|
|
10
|
+
if (host?.mutationPending?.())
|
|
11
|
+
return unresolved('native_absence_unknown', 'Native mutation pending.');
|
|
12
|
+
if ('historyRemoved' in record)
|
|
13
|
+
return verifyCleanup(record, host, current, accept);
|
|
9
14
|
if (!record.recovery || !record.nativeId)
|
|
10
|
-
return unresolved('unattributed', 'Original native session/definition attribution is missing. Review and delete selected native definitions in the original bound session; an empty different session cannot
|
|
15
|
+
return unresolved('unattributed', 'Original native session/definition attribution is missing. Review and delete selected native definitions in the original bound session; an empty different session cannot prove native absence.');
|
|
11
16
|
if (record.backend !== 'claude')
|
|
12
17
|
return unresolved('predecessor_unknown', 'This backend requires its original live cancellation handle or a saved confirmed cleanup/clean-handoff receipt. Current-session inventory cannot prove predecessor retirement.');
|
|
13
18
|
let identity;
|
|
@@ -20,7 +25,7 @@ async function verifySchedulePurge(record, host, current, accept) {
|
|
|
20
25
|
if (!identity || !/^[a-f0-9-]{36}$/.test(identity.marker ?? '') || !identity.sessionId
|
|
21
26
|
|| identity.threadId !== record.threadId || identity.cwd !== record.cwd
|
|
22
27
|
|| record.recovery.provider !== 'claude-session-skip-unadmitted-v1' || record.recovery.strategy !== 'reconstruct') {
|
|
23
|
-
return unresolved('unattributed', 'Original native definition attribution is incomplete or incompatible;
|
|
28
|
+
return unresolved('unattributed', 'Original native definition attribution is incomplete or incompatible; native absence remains unknown.');
|
|
24
29
|
}
|
|
25
30
|
if (!host || identity.sessionId !== host.sessionId || record.cwd !== host.cwd)
|
|
26
31
|
return unresolved('unattributed', 'Select the original Claude thread/session and working directory, then retry these managed IDs. No other native sessions are searched.');
|
|
@@ -34,7 +39,58 @@ async function verifySchedulePurge(record, host, current, accept) {
|
|
|
34
39
|
if (entries.some(entry => entry.id === record.nativeId || entry.prompt.includes(marker)))
|
|
35
40
|
return unresolved('native_absence_unknown', 'The original native ID or marker is still present. Use cleanup review/delete for the exact definition, then retry these managed IDs; siblings are never swept.');
|
|
36
41
|
if (!host.retirementConfirmed?.())
|
|
37
|
-
return unresolved('predecessor_unknown', 'Fresh original-session inventory confirms definition absence, but predecessor or admitted work is unconfirmed. Cancellation intent is saved;
|
|
38
|
-
return accept({ status: 'verified', isCurrent: () => valid() && host.retirementConfirmed?.() === true });
|
|
42
|
+
return unresolved('predecessor_unknown', 'Fresh original-session inventory confirms definition absence, but predecessor or admitted work is unconfirmed. Cancellation intent is saved; native cleanup remains unresolved until framework retirement proof is available.');
|
|
43
|
+
return accept({ status: 'verified', isCurrent: () => valid() && !host.mutationPending?.() && host.retirementConfirmed?.() === true });
|
|
44
|
+
}
|
|
45
|
+
/** A digest preserves exact deletion attribution after user text has been erased.
|
|
46
|
+
* This callback has no execution or recovery path and never searches sessions. */
|
|
47
|
+
async function verifyCleanup(record, host, current, accept) {
|
|
48
|
+
const unresolved = (reason) => accept({ status: 'unresolved', reason, detail: 'History is already removed; native cleanup remains unresolved.' });
|
|
49
|
+
const a = record.attribution;
|
|
50
|
+
if (!a || !record.nativeId)
|
|
51
|
+
return unresolved('unattributed');
|
|
52
|
+
if (record.backend !== 'claude')
|
|
53
|
+
return unresolved('predecessor_unknown');
|
|
54
|
+
if (!host || host.sessionId !== a.sessionId || host.cwd !== record.cwd)
|
|
55
|
+
return unresolved('unattributed');
|
|
56
|
+
const valid = () => current() && host.current() && host.sessionId === a.sessionId && host.cwd === record.cwd;
|
|
57
|
+
const inventory = async () => {
|
|
58
|
+
if (!valid())
|
|
59
|
+
throw new Error('Schedule cleanup context changed before inventory.');
|
|
60
|
+
const entries = (0, ReviewedNativeCleanup_1.cleanupInventory)({ jobs: await host.inventory() });
|
|
61
|
+
if (!valid())
|
|
62
|
+
throw new Error('Schedule cleanup context changed during inventory.');
|
|
63
|
+
return entries;
|
|
64
|
+
};
|
|
65
|
+
const marker = `[remote-cli:${a.marker}]`;
|
|
66
|
+
const entries = await inventory();
|
|
67
|
+
const identity = (rows) => (0, ReviewedNativeCleanup_1.cleanupCanonical)(rows.map(({ nextFireAt: _forecast, ...definition }) => definition));
|
|
68
|
+
const matches = entries.filter(entry => entry.id === record.nativeId || entry.prompt.includes(marker));
|
|
69
|
+
if (matches.length) {
|
|
70
|
+
const target = matches[0];
|
|
71
|
+
const prefix = marker + '\n';
|
|
72
|
+
// One-shot cron uses the native host timezone, which legacy catalogs did
|
|
73
|
+
// not record. Preserve its selector, but require fresh reviewed deletion.
|
|
74
|
+
if (a.rule.kind !== 'cron')
|
|
75
|
+
return unresolved('native_absence_unknown');
|
|
76
|
+
if (matches.length !== 1 || target.id !== record.nativeId || target.durable !== false
|
|
77
|
+
|| !target.prompt.startsWith(prefix) || (0, ScheduleCleanup_1.promptHash)(target.prompt.slice(prefix.length)) !== a.promptHash
|
|
78
|
+
|| (target.recurring ?? false) !== true || target.cron !== a.rule.expression.trim().split(/\s+/).join(' '))
|
|
79
|
+
return unresolved('native_absence_unknown');
|
|
80
|
+
// Compare complete fresh inventories, including siblings, before and after
|
|
81
|
+
// exact deletion. Advancing timer forecasts do not change definitions.
|
|
82
|
+
if (identity(await inventory()) !== identity(entries))
|
|
83
|
+
return unresolved('native_absence_unknown');
|
|
84
|
+
try {
|
|
85
|
+
await host.remove(target);
|
|
86
|
+
}
|
|
87
|
+
catch { /* Reconcile an ambiguous receipt only through authoritative absence. */ }
|
|
88
|
+
const after = await inventory();
|
|
89
|
+
if (identity(after) !== identity(entries.filter(entry => entry.id !== target.id)))
|
|
90
|
+
return unresolved('native_absence_unknown');
|
|
91
|
+
}
|
|
92
|
+
if (!host.retirementConfirmed?.())
|
|
93
|
+
return unresolved('predecessor_unknown');
|
|
94
|
+
return accept({ status: 'verified', isCurrent: () => valid() && !host.mutationPending?.() && host.retirementConfirmed?.() === true });
|
|
39
95
|
}
|
|
40
96
|
//# sourceMappingURL=SchedulePurgeVerification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulePurgeVerification.js","sourceRoot":"","sources":["../../src/scheduling/SchedulePurgeVerification.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SchedulePurgeVerification.js","sourceRoot":"","sources":["../../src/scheduling/SchedulePurgeVerification.ts"],"names":[],"mappings":";;AAOA,kDA8BC;AArCD,uDAA2E;AAC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Summary, type ScheduleCleanupRecord } from './ScheduleCleanup';
|
|
1
2
|
import type { NativeScheduleInput, NativeScheduleProvider, ScheduleDelivery, ScheduleOwner, ScheduleRecord } from './types';
|
|
2
3
|
export declare const SCHEDULE_CATALOG_FILE = "schedule-catalog.json";
|
|
3
4
|
export type SchedulePurgeSelection = {
|
|
4
5
|
ids: readonly string[];
|
|
6
|
+
forgetUnresolved?: true;
|
|
5
7
|
} | {
|
|
6
8
|
all: true;
|
|
7
9
|
};
|
|
@@ -20,7 +22,14 @@ export type SchedulePurgeEvidence = {
|
|
|
20
22
|
export interface SchedulePurgeResult {
|
|
21
23
|
/** Freeze these IDs for retries of an all-owner request. */
|
|
22
24
|
selectedIds: string[];
|
|
25
|
+
status: 'complete' | 'partial';
|
|
26
|
+
/** History deletion only; inspect nativeCleanupUnresolved before claiming complete cleanup. */
|
|
23
27
|
removedIds: string[];
|
|
28
|
+
historyRemovedIds: string[];
|
|
29
|
+
nativeCleanupUnresolved: ScheduleCleanupSummary[];
|
|
30
|
+
/** Explicitly forgotten tracking only; never a native absence or retirement receipt. */
|
|
31
|
+
forgottenCleanupIds?: string[];
|
|
32
|
+
warning?: string;
|
|
24
33
|
alreadyRemovedIds: string[];
|
|
25
34
|
pending: {
|
|
26
35
|
id: string;
|
|
@@ -38,6 +47,8 @@ export interface ScheduleServiceOptions {
|
|
|
38
47
|
/** Reject when disconnected or not delivered. Success is not an exactly-once receipt. */
|
|
39
48
|
deliver: (delivery: ScheduleDelivery) => Promise<void>;
|
|
40
49
|
isOwnerCurrent: (owner: ScheduleOwner) => boolean;
|
|
50
|
+
/** Framework observation of late native mutations, never model-supplied proof. */
|
|
51
|
+
isNativeMutationPending?: (owner: ScheduleOwner) => boolean;
|
|
41
52
|
now?: () => number;
|
|
42
53
|
/** Current configuration/directory/session policy, checked before native recovery. */
|
|
43
54
|
canRecover?: (record: ScheduleRecord) => boolean;
|
|
@@ -48,7 +59,7 @@ export interface ScheduleServiceOptions {
|
|
|
48
59
|
* Installed by trusted framework wiring. Must not recreate jobs, infer session
|
|
49
60
|
* attribution from short IDs, or treat local absence as predecessor quiescence.
|
|
50
61
|
* A verified result remains valid only while its captured lease is current. */
|
|
51
|
-
withPurgeVerification?<T>(record: Readonly<ScheduleRecord>, context: {
|
|
62
|
+
withPurgeVerification?<T>(record: Readonly<ScheduleRecord | ScheduleCleanupRecord>, context: {
|
|
52
63
|
isCurrent(): boolean;
|
|
53
64
|
}, accept: (evidence: SchedulePurgeEvidence) => Promise<T>): Promise<T>;
|
|
54
65
|
maxLiveSchedules?: number;
|
|
@@ -74,6 +85,8 @@ export declare class ScheduleService {
|
|
|
74
85
|
private runtimes;
|
|
75
86
|
private retainedCancellations;
|
|
76
87
|
private purged;
|
|
88
|
+
private cleanup;
|
|
89
|
+
private purgeRequests;
|
|
77
90
|
private purges;
|
|
78
91
|
private recordOperations;
|
|
79
92
|
private delivering;
|
|
@@ -106,10 +119,22 @@ export declare class ScheduleService {
|
|
|
106
119
|
private createSchedule;
|
|
107
120
|
/** Catalog lookup only; this does not probe or recreate native jobs. */
|
|
108
121
|
list(owner: ScheduleOwner): Promise<ScheduleRecord[]>;
|
|
109
|
-
/**
|
|
110
|
-
|
|
111
|
-
|
|
122
|
+
/** Operational deletion ledger, separate from user history and never recoverable. */
|
|
123
|
+
listCleanup(owner: ScheduleOwner): Promise<ScheduleCleanupRecord[]>;
|
|
124
|
+
/** Preserve the last known original-session route while deletion is unresolved. */
|
|
125
|
+
hasCleanupContext(threadId: string): boolean;
|
|
126
|
+
/** Freeze production request selection durably before acquiring a native lease.
|
|
127
|
+
* Keys bind authenticated ownership and the framework operation ID, not model proof. */
|
|
128
|
+
freezePurgeSelection(owner: ScheduleOwner, selection: SchedulePurgeSelection, requestId: string, isCurrent: () => boolean): Promise<string[]>;
|
|
129
|
+
private purgeIds;
|
|
130
|
+
/** Cancel first. Remove eligible history independently of unresolved native
|
|
131
|
+
* absence, preserving a minimal deletion ledger and permanent replay fence. */
|
|
132
|
+
purge(owner: ScheduleOwner, selection: SchedulePurgeSelection, isCurrent?: () => boolean): Promise<SchedulePurgeResult>;
|
|
112
133
|
private purgeSelected;
|
|
134
|
+
/** User-requested metadata erasure, not verification or native mutation. The
|
|
135
|
+
* permanent ID/owner fence survives even when the deletion selector is gone. */
|
|
136
|
+
private forgetCleanup;
|
|
137
|
+
private retryCleanup;
|
|
113
138
|
private purgeRecord;
|
|
114
139
|
/** Includes terminal jobs whose native process exit is still unconfirmed. */
|
|
115
140
|
hasActiveSchedules(threadId?: string): boolean;
|