create-principles-disciple 1.156.2 → 1.157.2
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/_release/product-identity.json +2 -2
- package/codex-adapter/dist/worker/workspace-worker.d.ts +11 -3
- package/codex-adapter/dist/worker/workspace-worker.js +30 -16
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/models/OwnerDecisionConsoleModel.js +33 -1
- package/console/dist/web/assets/app.js +3 -3
- package/core/dist/runtime/adversarial-loop.d.ts +8 -0
- package/core/dist/runtime/adversarial-loop.d.ts.map +1 -1
- package/core/dist/runtime/adversarial-loop.js +420 -45
- package/core/dist/runtime/adversarial-loop.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +3 -3
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/feature-flags/plugin-surface-registry.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/plugin-surface-registry.js +0 -16
- package/core/dist/runtime/feature-flags/plugin-surface-registry.js.map +1 -1
- package/core/dist/runtime/index.d.ts +4 -0
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +10 -0
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/internalization/artificer-runner.d.ts +9 -0
- package/core/dist/runtime/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/artificer-runner.js +52 -0
- package/core/dist/runtime/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime/internalization/correlation-lineage.d.ts +16 -3
- package/core/dist/runtime/internalization/correlation-lineage.d.ts.map +1 -1
- package/core/dist/runtime/internalization/correlation-lineage.js +4 -4
- package/core/dist/runtime/internalization/correlation-lineage.js.map +1 -1
- package/core/dist/runtime/internalization/evaluator-runner.d.ts +35 -0
- package/core/dist/runtime/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/evaluator-runner.js +390 -91
- package/core/dist/runtime/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +40 -13
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.js +520 -199
- package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime/internalization/internalization-transition-decision.js +1 -1
- package/core/dist/runtime/internalization/internalization-transition-decision.js.map +1 -1
- package/core/dist/runtime/internalization/owner-resolution-service.d.ts.map +1 -1
- package/core/dist/runtime/internalization/owner-resolution-service.js +10 -8
- package/core/dist/runtime/internalization/owner-resolution-service.js.map +1 -1
- package/core/dist/runtime/internalization/owner-review.d.ts +2 -0
- package/core/dist/runtime/internalization/owner-review.d.ts.map +1 -1
- package/core/dist/runtime/internalization/owner-review.js +17 -11
- package/core/dist/runtime/internalization/owner-review.js.map +1 -1
- package/core/dist/runtime/internalization/peer-runner-contracts.d.ts +2 -0
- package/core/dist/runtime/internalization/peer-runner-contracts.d.ts.map +1 -1
- package/core/dist/runtime/internalization/peer-runner-contracts.js.map +1 -1
- package/core/dist/runtime/internalization/pitask-metadata.d.ts +36 -1
- package/core/dist/runtime/internalization/pitask-metadata.d.ts.map +1 -1
- package/core/dist/runtime/internalization/pitask-metadata.js +23 -2
- package/core/dist/runtime/internalization/pitask-metadata.js.map +1 -1
- package/core/dist/runtime/internalization/repair-create.d.ts +73 -0
- package/core/dist/runtime/internalization/repair-create.d.ts.map +1 -0
- package/core/dist/runtime/internalization/repair-create.js +200 -0
- package/core/dist/runtime/internalization/repair-create.js.map +1 -0
- package/core/dist/runtime/internalization/repair-lineage-backfill.d.ts +94 -0
- package/core/dist/runtime/internalization/repair-lineage-backfill.d.ts.map +1 -0
- package/core/dist/runtime/internalization/repair-lineage-backfill.js +123 -0
- package/core/dist/runtime/internalization/repair-lineage-backfill.js.map +1 -0
- package/core/dist/runtime/internalization/repair-task-identity.d.ts +99 -4
- package/core/dist/runtime/internalization/repair-task-identity.d.ts.map +1 -1
- package/core/dist/runtime/internalization/repair-task-identity.js +225 -7
- package/core/dist/runtime/internalization/repair-task-identity.js.map +1 -1
- package/core/dist/runtime/internalization/revision-reopen.d.ts +56 -1
- package/core/dist/runtime/internalization/revision-reopen.d.ts.map +1 -1
- package/core/dist/runtime/internalization/revision-reopen.js +82 -39
- package/core/dist/runtime/internalization/revision-reopen.js.map +1 -1
- package/core/dist/runtime/internalization/rollout-reviewer-runner.d.ts +0 -7
- package/core/dist/runtime/internalization/rollout-reviewer-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/rollout-reviewer-runner.js +13 -68
- package/core/dist/runtime/internalization/rollout-reviewer-runner.js.map +1 -1
- package/core/dist/runtime/internalization/successor-create.d.ts +69 -0
- package/core/dist/runtime/internalization/successor-create.d.ts.map +1 -0
- package/core/dist/runtime/internalization/successor-create.js +173 -0
- package/core/dist/runtime/internalization/successor-create.js.map +1 -0
- package/core/dist/runtime/internalization/successor-lookup.d.ts +50 -0
- package/core/dist/runtime/internalization/successor-lookup.d.ts.map +1 -0
- package/core/dist/runtime/internalization/successor-lookup.js +213 -0
- package/core/dist/runtime/internalization/successor-lookup.js.map +1 -0
- package/core/dist/runtime/runner/succeeded-result-recovery.d.ts +58 -0
- package/core/dist/runtime/runner/succeeded-result-recovery.d.ts.map +1 -0
- package/core/dist/runtime/runner/succeeded-result-recovery.js +117 -0
- package/core/dist/runtime/runner/succeeded-result-recovery.js.map +1 -0
- package/core/dist/runtime/store/runtime-state-manager.d.ts +1 -0
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.js +4 -0
- package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.d.ts +3 -3
- package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.js +52 -0
- package/core/dist/runtime/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts +3 -0
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.js +204 -135
- package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/task-store.d.ts +17 -0
- package/core/dist/runtime/store/task/task-store.d.ts.map +1 -1
- package/core/dist/telemetry-event.d.ts +2 -2
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +4 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts +69 -11
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +432 -120
- package/dist/installer.js.map +1 -1
- package/dist/service-host-bridge.d.ts +0 -5
- package/dist/service-host-bridge.d.ts.map +1 -1
- package/dist/service-host-bridge.js.map +1 -1
- package/dist/service-host-provisioning.d.ts +123 -18
- package/dist/service-host-provisioning.d.ts.map +1 -1
- package/dist/service-host-provisioning.js +645 -77
- package/dist/service-host-provisioning.js.map +1 -1
- package/dist/utils/env.d.ts +9 -0
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +269 -49
- package/dist/utils/env.js.map +1 -1
- package/host-runtime/dist/codex-worker-status.d.ts +6 -4
- package/host-runtime/dist/codex-worker-status.js +7 -5
- package/host-runtime/dist/diagnostician-auto-run.js +2 -2
- package/host-runtime/dist/governance-signal-admission.d.ts +2 -1
- package/host-runtime/dist/governance-signal-admission.js +2 -1
- package/host-runtime/dist/index.d.ts +4 -2
- package/host-runtime/dist/index.js +6 -2
- package/host-runtime/dist/internalization-consumer-cycle.d.ts +13 -106
- package/host-runtime/dist/internalization-consumer-cycle.js +21 -99
- package/host-runtime/dist/internalization-consumer-governance.d.ts +3 -3
- package/host-runtime/dist/internalization-consumer-governance.js +17 -96
- package/host-runtime/dist/internalization-task-executor.d.ts +127 -0
- package/host-runtime/dist/internalization-task-executor.js +121 -0
- package/host-runtime/dist/workbuddy-worker-status.d.ts +6 -3
- package/host-runtime/dist/workbuddy-worker-status.js +7 -4
- package/host-runtime/dist/workspace-telemetry-emitter.js +1 -1
- package/host-runtime/package.json +1 -1
- package/install-layout/dist/background-execution-transition.d.ts +25 -29
- package/install-layout/dist/background-execution-transition.js +90 -138
- package/install-layout/dist/index.d.ts +45 -33
- package/install-layout/dist/index.js +24 -18
- package/install-layout/package.json +1 -1
- package/package.json +5 -4
- package/pd-cli/dist/commands/codex-worker.d.ts +7 -3
- package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-worker.js +125 -101
- package/pd-cli/dist/commands/codex-worker.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +148 -130
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +4 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
- package/pd-cli/dist/commands/service-run-once.d.ts +12 -27
- package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/service-run-once.js +15 -206
- package/pd-cli/dist/commands/service-run-once.js.map +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.d.ts +7 -2
- package/pd-cli/dist/commands/workbuddy-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.js +133 -99
- package/pd-cli/dist/commands/workbuddy-worker.js.map +1 -1
- package/pd-cli/dist/commands/worker-service-host-gate.d.ts +38 -0
- package/pd-cli/dist/commands/worker-service-host-gate.d.ts.map +1 -0
- package/pd-cli/dist/commands/worker-service-host-gate.js +110 -0
- package/pd-cli/dist/commands/worker-service-host-gate.js.map +1 -0
- package/pd-cli/dist/program.d.ts.map +1 -1
- package/pd-cli/dist/program.js +20 -84
- package/pd-cli/dist/program.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +198 -142
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/pd-cli/dist/services/service-host/coordinator-common.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/coordinator-common.js +4 -5
- package/pd-cli/dist/services/service-host/coordinator-common.js.map +1 -1
- package/pd-cli/dist/services/service-host/index.d.ts +7 -10
- package/pd-cli/dist/services/service-host/index.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/index.js +8 -11
- package/pd-cli/dist/services/service-host/index.js.map +1 -1
- package/pd-cli/dist/services/service-host/install-identity.d.ts +5 -5
- package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/managed-run.js +19 -22
- package/pd-cli/dist/services/service-host/managed-run.js.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/linux.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/linux.js +21 -2
- package/pd-cli/dist/services/service-host/scheduler/linux.js.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +1 -1
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/service-status.js +0 -2
- package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +7 -51
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js +3 -3
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts +0 -10
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/worker-adapter.js +4 -12
- package/pd-cli/dist/services/service-host/worker-adapter.js.map +1 -1
- package/pd-cli/dist/services/service-host/worker-env.d.ts +1 -1
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts +5 -7
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/workspace-dispatch.js +1 -3
- package/pd-cli/dist/services/service-host/workspace-dispatch.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +616 -1319
- package/plugin/dist/core/openclaw-tool-declaration.d.ts +13 -0
- package/plugin/dist/index.d.ts +0 -9
- package/plugin/dist/openclaw-worker.d.ts +21 -8
- package/plugin/dist/openclaw-worker.js +267 -267
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/release-manager/dist/installer.js +432 -120
- package/release-manager/dist/service-host-provisioning.js +645 -77
- package/release-manager/dist/utils/env.js +269 -49
- package/release-manager/package.json +3 -2
- package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +9 -1
- package/workbuddy-adapter/dist/worker/workspace-worker.js +21 -9
- package/workbuddy-adapter/package.json +1 -1
- package/pd-cli/dist/commands/service-handover.d.ts +0 -12
- package/pd-cli/dist/commands/service-handover.d.ts.map +0 -1
- package/pd-cli/dist/commands/service-handover.js +0 -117
- package/pd-cli/dist/commands/service-handover.js.map +0 -1
- package/pd-cli/dist/commands/worker-drain.d.ts +0 -7
- package/pd-cli/dist/commands/worker-drain.d.ts.map +0 -1
- package/pd-cli/dist/commands/worker-drain.js +0 -51
- package/pd-cli/dist/commands/worker-drain.js.map +0 -1
- package/pd-cli/dist/services/service-host/handover-claims.d.ts +0 -14
- package/pd-cli/dist/services/service-host/handover-claims.d.ts.map +0 -1
- package/pd-cli/dist/services/service-host/handover-claims.js +0 -50
- package/pd-cli/dist/services/service-host/handover-claims.js.map +0 -1
- package/pd-cli/dist/services/service-host/shadow-run.d.ts +0 -87
- package/pd-cli/dist/services/service-host/shadow-run.d.ts.map +0 -1
- package/pd-cli/dist/services/service-host/shadow-run.js +0 -549
- package/pd-cli/dist/services/service-host/shadow-run.js.map +0 -1
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts +0 -190
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts.map +0 -1
- package/pd-cli/dist/services/service-host/workspace-handover.js +0 -1393
- package/pd-cli/dist/services/service-host/workspace-handover.js.map +0 -1
- package/plugin/dist/service/gateway-consumer-lease.d.ts +0 -142
- package/plugin/dist/service/gateway-quiesce-ack.d.ts +0 -40
- package/plugin/dist/service/internalization-auto-consumer-service.d.ts +0 -100
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { type WorkspaceBackgroundOwnership } from '@principles/install-layout';
|
|
2
|
-
export declare const DEFAULT_HANDOVER_ACK_WAIT_MS: number;
|
|
3
|
-
export declare const DEFAULT_HANDOVER_STEP_TIMEOUT_MS: number;
|
|
4
|
-
export declare const DEFAULT_ROLLBACK_RESUME_WAIT_MS = 90000;
|
|
5
|
-
/**
|
|
6
|
-
* Bounded wait for the last in-flight worker cycle to release the workspace
|
|
7
|
-
* run mutex during rollback (PRI-1282 P1-1). Matches the consumer cycle's
|
|
8
|
-
* own bound; on expiry the workspace stays rollback_pending and resumable.
|
|
9
|
-
*/
|
|
10
|
-
export declare const DEFAULT_ROLLBACK_DRAIN_WAIT_MS: number;
|
|
11
|
-
declare const HANDOVER_EVIDENCE_SCHEMA = "pd.service-handover-evidence.v1";
|
|
12
|
-
declare const HANDOVER_INTENT_SCHEMA = "pd.service-handover-intent.v1";
|
|
13
|
-
export interface HandoverContextInput {
|
|
14
|
-
readonly pdHomeOverride?: string;
|
|
15
|
-
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
16
|
-
readonly ackWaitMs?: number;
|
|
17
|
-
readonly stepTimeoutMs?: number;
|
|
18
|
-
readonly signal?: AbortSignal;
|
|
19
|
-
/**
|
|
20
|
-
* Test seam: the scheduler-enabled probe the handover runs before the CAS
|
|
21
|
-
* flip (default: real `runSchedulerLifecycle('status', …)`).
|
|
22
|
-
*/
|
|
23
|
-
readonly probes?: {
|
|
24
|
-
readonly schedulerStatus?: () => Promise<{
|
|
25
|
-
ok: true;
|
|
26
|
-
registered: boolean | null;
|
|
27
|
-
enabled: boolean | null;
|
|
28
|
-
} | {
|
|
29
|
-
ok: false;
|
|
30
|
-
reason: string;
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Test seam: mints the operationId for a FRESH operation (never used
|
|
34
|
-
* when a marker or --resume names one — explicit resume only continues
|
|
35
|
-
* a real in-flight operation, per PRI-1282 r4 §5).
|
|
36
|
-
*/
|
|
37
|
-
readonly mintOperationId?: (kind: 'handover' | 'rollback') => string;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export type HandoverContext = {
|
|
41
|
-
ok: true;
|
|
42
|
-
pdHome: string;
|
|
43
|
-
homeDir: string;
|
|
44
|
-
manifestPath: string;
|
|
45
|
-
workspaceDir: string;
|
|
46
|
-
} | {
|
|
47
|
-
ok: false;
|
|
48
|
-
reason: string;
|
|
49
|
-
nextAction: string;
|
|
50
|
-
};
|
|
51
|
-
export declare function establishHandoverContext(workspaceDir: string, input: HandoverContextInput): HandoverContext;
|
|
52
|
-
export declare function handoverEvidencePath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
53
|
-
export interface HandoverEvidence {
|
|
54
|
-
schemaVersion: typeof HANDOVER_EVIDENCE_SCHEMA;
|
|
55
|
-
kind: 'handover' | 'rollback';
|
|
56
|
-
operationId: string;
|
|
57
|
-
workspaceDir: string;
|
|
58
|
-
startedAt: string;
|
|
59
|
-
completedAt: string;
|
|
60
|
-
outcome: 'completed' | 'aborted' | 'failed';
|
|
61
|
-
steps: readonly {
|
|
62
|
-
step: string;
|
|
63
|
-
at: string;
|
|
64
|
-
outcome: string;
|
|
65
|
-
detail?: string;
|
|
66
|
-
}[];
|
|
67
|
-
finalOwnership: WorkspaceBackgroundOwnership;
|
|
68
|
-
}
|
|
69
|
-
export declare function writeHandoverEvidence(evidence: HandoverEvidence, pdHome: string): {
|
|
70
|
-
ok: boolean;
|
|
71
|
-
path: string;
|
|
72
|
-
reason?: string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Read + field-validate the write-once evidence document (rc-2/rc-3:
|
|
76
|
-
* untrusted JSON until proven — an unreadable or malformed document is
|
|
77
|
-
* null, i.e. "no evidence", and the caller fails closed).
|
|
78
|
-
*/
|
|
79
|
-
export declare function readHandoverEvidence(pdHome: string, canonicalDir: string, operationId: string): HandoverEvidence | null;
|
|
80
|
-
/**
|
|
81
|
-
* The persisted commit INTENT written BEFORE the CAS flip: the steady-state
|
|
82
|
-
* `service_host_owned` marker deliberately clears `operationId`, so a run
|
|
83
|
-
* killed between the flip and the evidence write would otherwise be
|
|
84
|
-
* unattributable and unresumable. The intent is the auditable "this
|
|
85
|
-
* operation committed generation N" fact the resume path verifies against
|
|
86
|
-
* workspace + operationId + committed generation.
|
|
87
|
-
*
|
|
88
|
-
* Lifecycle / versioning policy (PRI-1282 review — the intent file IS
|
|
89
|
-
* persisted state and must be declared): one `<opId>.intent.json` per
|
|
90
|
-
* operation lives next to that operation's evidence document under
|
|
91
|
-
* `<pdHome>/service/handover/<wskey>/`; it is retained with the evidence
|
|
92
|
-
* directory for audit, and `schemaVersion` (`pd.service-handover-intent.v1`)
|
|
93
|
-
* is the compatibility contract — a reader ignores files whose
|
|
94
|
-
* schemaVersion it does not know, and a format change bumps the suffix
|
|
95
|
-
* rather than mutating in place. The intent is process EVIDENCE, never an
|
|
96
|
-
* ownership authority: deleting it only loses resumability attribution,
|
|
97
|
-
* never ownership (the install manifest stays the single source).
|
|
98
|
-
*/
|
|
99
|
-
export interface HandoverCommitIntent {
|
|
100
|
-
schemaVersion: typeof HANDOVER_INTENT_SCHEMA;
|
|
101
|
-
kind: 'handover';
|
|
102
|
-
operationId: string;
|
|
103
|
-
workspaceDir: string;
|
|
104
|
-
preparingGeneration: number;
|
|
105
|
-
committedGeneration: number;
|
|
106
|
-
writtenAt: string;
|
|
107
|
-
}
|
|
108
|
-
export declare function handoverIntentPath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
109
|
-
export declare function writeHandoverIntent(intent: HandoverCommitIntent, pdHome: string): {
|
|
110
|
-
ok: boolean;
|
|
111
|
-
path: string;
|
|
112
|
-
reason?: string;
|
|
113
|
-
};
|
|
114
|
-
/** Read + field-validate a persisted commit intent (null = absent/untrusted). */
|
|
115
|
-
export declare function readHandoverIntent(pdHome: string, canonicalDir: string, operationId: string): HandoverCommitIntent | null;
|
|
116
|
-
declare const ROLLBACK_INTENT_SCHEMA = "pd.service-rollback-intent.v1";
|
|
117
|
-
export interface RollbackCommitIntent {
|
|
118
|
-
schemaVersion: typeof ROLLBACK_INTENT_SCHEMA;
|
|
119
|
-
kind: 'rollback';
|
|
120
|
-
operationId: string;
|
|
121
|
-
workspaceDir: string;
|
|
122
|
-
/** Generation of the rollback_pending marker this intent belongs to. */
|
|
123
|
-
pendingGeneration: number;
|
|
124
|
-
/** Generation complete_rollback commits (pendingGeneration + 1). */
|
|
125
|
-
committedGeneration: number;
|
|
126
|
-
writtenAt: string;
|
|
127
|
-
}
|
|
128
|
-
export declare function rollbackIntentPath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
129
|
-
export declare function writeRollbackIntent(intent: RollbackCommitIntent, pdHome: string): {
|
|
130
|
-
ok: boolean;
|
|
131
|
-
path: string;
|
|
132
|
-
reason?: string;
|
|
133
|
-
};
|
|
134
|
-
/** Read + field-validate a persisted rollback intent (null = absent/untrusted). */
|
|
135
|
-
export declare function readRollbackIntent(pdHome: string, canonicalDir: string, operationId: string): RollbackCommitIntent | null;
|
|
136
|
-
export interface HandoverRunOptions extends HandoverContextInput {
|
|
137
|
-
readonly resumeOperationId?: string;
|
|
138
|
-
/** Abort an in-flight handover_preparing back to legacy_owned. */
|
|
139
|
-
readonly abort?: boolean;
|
|
140
|
-
}
|
|
141
|
-
export type HandoverRunResult = {
|
|
142
|
-
ok: true;
|
|
143
|
-
outcome: 'completed';
|
|
144
|
-
operationId: string;
|
|
145
|
-
workspaceDir: string;
|
|
146
|
-
generation: number;
|
|
147
|
-
readiness: 'ready';
|
|
148
|
-
quiesceAck: {
|
|
149
|
-
operationId: string;
|
|
150
|
-
generation: number;
|
|
151
|
-
outcome: string;
|
|
152
|
-
startedVia: string;
|
|
153
|
-
};
|
|
154
|
-
workerCycle: {
|
|
155
|
-
mode: string;
|
|
156
|
-
exitCode: number | null;
|
|
157
|
-
evidencePath: string;
|
|
158
|
-
};
|
|
159
|
-
evidencePath: string;
|
|
160
|
-
} | {
|
|
161
|
-
ok: false;
|
|
162
|
-
outcome: 'aborted' | 'blocked' | 'failed';
|
|
163
|
-
reason: string;
|
|
164
|
-
nextAction: string;
|
|
165
|
-
operationId?: string;
|
|
166
|
-
detail?: unknown;
|
|
167
|
-
};
|
|
168
|
-
export declare function runWorkspaceHandover(workspaceDir: string, options: HandoverRunOptions): Promise<HandoverRunResult>;
|
|
169
|
-
export type RollbackRunResult = {
|
|
170
|
-
ok: true;
|
|
171
|
-
outcome: 'completed';
|
|
172
|
-
operationId: string;
|
|
173
|
-
workspaceDir: string;
|
|
174
|
-
generation: number;
|
|
175
|
-
gatewayResumption: 'observed' | 'not_verified_gateway_not_running';
|
|
176
|
-
evidencePath: string;
|
|
177
|
-
} | {
|
|
178
|
-
ok: false;
|
|
179
|
-
outcome: 'blocked' | 'failed';
|
|
180
|
-
reason: string;
|
|
181
|
-
nextAction: string;
|
|
182
|
-
operationId?: string;
|
|
183
|
-
};
|
|
184
|
-
export interface RollbackRunOptions extends HandoverContextInput {
|
|
185
|
-
/** Continue a named rollback operation (PRI-1282 r4 §8). */
|
|
186
|
-
readonly resumeOperationId?: string;
|
|
187
|
-
}
|
|
188
|
-
export declare function runWorkspaceRollback(workspaceDir: string, options: RollbackRunOptions): Promise<RollbackRunResult>;
|
|
189
|
-
export {};
|
|
190
|
-
//# sourceMappingURL=workspace-handover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-handover.d.ts","sourceRoot":"","sources":["../../../src/services/service-host/workspace-handover.ts"],"names":[],"mappings":"AAqCA,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,4BAA4B,CAAC;AAcpC,eAAO,MAAM,4BAA4B,QAAc,CAAC;AACxD,eAAO,MAAM,gCAAgC,QAAa,CAAC;AAC3D,eAAO,MAAM,+BAA+B,QAAS,CAAC;AACtD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,QAAc,CAAC;AAC1D,QAAA,MAAM,wBAAwB,oCAAoC,CAAC;AACnE,QAAA,MAAM,sBAAsB,kCAAkC,CAAC;AAI/D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,OAAO,CACpC;YAAE,EAAE,EAAE,IAAI,CAAC;YAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;YAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;SAAE,GACjE;YAAE,EAAE,EAAE,KAAK,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAChC,CAAC;QACF;;;;WAIG;QACH,QAAQ,CAAC,eAAe,CAAC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