@hasna/todos 0.15.19 → 0.15.20
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/cli/cloud-router.d.ts +20 -1
- package/dist/cli/cloud-router.d.ts.map +1 -1
- package/dist/cli/commands/query-commands.d.ts.map +1 -1
- package/dist/cli/commands/task-commands.d.ts.map +1 -1
- package/dist/cli/index.js +851 -47
- package/dist/cli/stage-a.d.ts +21 -10
- package/dist/cli/stage-a.d.ts.map +1 -1
- package/dist/contracts.js +228 -16
- package/dist/db/audit.d.ts +8 -0
- package/dist/db/audit.d.ts.map +1 -1
- package/dist/db/task-lifecycle.d.ts +7 -1
- package/dist/db/task-lifecycle.d.ts.map +1 -1
- package/dist/db/tasks.d.ts +1 -1
- package/dist/db/tasks.d.ts.map +1 -1
- package/dist/index.js +479 -20
- package/dist/lib/cli-help.d.ts +3 -2
- package/dist/lib/cli-help.d.ts.map +1 -1
- package/dist/lib/stale-lock-handoff.d.ts +25 -0
- package/dist/lib/stale-lock-handoff.d.ts.map +1 -0
- package/dist/mcp/index.js +702 -36
- package/dist/mcp.js +3 -1
- package/dist/project-registration.js +1147 -686
- package/dist/registry.js +228 -16
- package/dist/release-provenance.json +5 -5
- package/dist/sdk/index.js +7 -0
- package/dist/sdk/v1.generated.d.ts +27 -0
- package/dist/sdk/v1.generated.d.ts.map +1 -1
- package/dist/server/index.js +1035 -369
- package/dist/server/openapi.d.ts +182 -0
- package/dist/server/openapi.d.ts.map +1 -1
- package/dist/server/v1.d.ts.map +1 -1
- package/dist/storage/audit-history-import.d.ts +14 -0
- package/dist/storage/audit-history-import.d.ts.map +1 -0
- package/dist/storage/interfaces.d.ts +12 -1
- package/dist/storage/interfaces.d.ts.map +1 -1
- package/dist/storage/local-sqlite.d.ts.map +1 -1
- package/dist/storage/postgres-adapter.d.ts.map +1 -1
- package/dist/storage/sqlite-snapshot.d.ts.map +1 -1
- package/dist/storage.js +476 -19
- package/dist/task-manifest.js +11 -1
- package/dist/types/index.d.ts +43 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type StaleLockHandoffInput, type StaleLockHandoffReceipt, type Task, type TaskHistory } from "../types/index.js";
|
|
2
|
+
export declare const STALE_LOCK_HANDOFF_SCHEMA_VERSION: "todos.stale-lock-handoff.v1";
|
|
3
|
+
export declare const STALE_LOCK_HANDOFF_ACTION = "stale_lock_handoff";
|
|
4
|
+
export declare const STALE_LOCK_HANDOFF_FIELD = "lock";
|
|
5
|
+
export interface PreparedStaleLockHandoff extends StaleLockHandoffInput {
|
|
6
|
+
task_id: string;
|
|
7
|
+
actor: string;
|
|
8
|
+
expected_holder: string;
|
|
9
|
+
expected_lock_version: string;
|
|
10
|
+
new_holder: string;
|
|
11
|
+
reason: string;
|
|
12
|
+
operation_timestamp: string;
|
|
13
|
+
stale_cutoff: string;
|
|
14
|
+
receipt_id: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function normalizeExactTaskId(value: unknown): string;
|
|
17
|
+
export declare function prepareStaleLockHandoff(input: StaleLockHandoffInput, options?: {
|
|
18
|
+
now?: string;
|
|
19
|
+
receiptId?: string;
|
|
20
|
+
}): PreparedStaleLockHandoff;
|
|
21
|
+
export declare function buildStaleLockHandoffReceipt(input: PreparedStaleLockHandoff): StaleLockHandoffReceipt;
|
|
22
|
+
export declare function staleLockHandoffHistory(receipt: StaleLockHandoffReceipt, machineId: string | null): TaskHistory;
|
|
23
|
+
export declare function receiptFromStaleLockHandoffHistory(history: TaskHistory): StaleLockHandoffReceipt | null;
|
|
24
|
+
export declare function throwStaleLockHandoffConflict(task: Task, input: Pick<PreparedStaleLockHandoff, "task_id" | "expected_holder" | "expected_lock_version" | "stale_cutoff">): never;
|
|
25
|
+
//# sourceMappingURL=stale-lock-handoff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stale-lock-handoff.d.ts","sourceRoot":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