@blxzer/pactile 0.6.0-beta.2 → 0.6.0-beta.4
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/README.md +93 -84
- package/README.zh-CN.md +90 -81
- package/dist/bin/compat-warning.d.ts +2 -0
- package/dist/bin/compat-warning.d.ts.map +1 -0
- package/dist/bin/compat-warning.js +8 -0
- package/dist/bin/compat-warning.js.map +1 -0
- package/dist/bin/cstl.d.ts +3 -0
- package/dist/bin/cstl.d.ts.map +1 -0
- package/{bin → dist/bin}/cstl.js +2 -3
- package/dist/bin/cstl.js.map +1 -0
- package/dist/bin/pactile.d.ts +3 -0
- package/dist/bin/pactile.d.ts.map +1 -0
- package/dist/bin/pactile.js +4 -0
- package/dist/bin/pactile.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +77 -17
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/capability.d.ts +3 -0
- package/dist/commands/capability.d.ts.map +1 -0
- package/dist/commands/capability.js +129 -0
- package/dist/commands/capability.js.map +1 -0
- package/dist/commands/codex.d.ts.map +1 -1
- package/dist/commands/codex.js +54 -6
- package/dist/commands/codex.js.map +1 -1
- package/dist/commands/context.d.ts +2 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +367 -41
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/detach.d.ts.map +1 -1
- package/dist/commands/detach.js +5 -4
- package/dist/commands/detach.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +615 -259
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/legacy-task.d.ts +3 -0
- package/dist/commands/legacy-task.d.ts.map +1 -0
- package/dist/commands/legacy-task.js +295 -0
- package/dist/commands/legacy-task.js.map +1 -0
- package/dist/commands/pi.d.ts +3 -2
- package/dist/commands/pi.d.ts.map +1 -1
- package/dist/commands/pi.js +333 -10
- package/dist/commands/pi.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +148 -24
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/task-schedule.d.ts +17 -0
- package/dist/commands/task-schedule.d.ts.map +1 -0
- package/dist/commands/task-schedule.js +395 -0
- package/dist/commands/task-schedule.js.map +1 -0
- package/dist/commands/task-verify-plan.d.ts +3 -0
- package/dist/commands/task-verify-plan.d.ts.map +1 -0
- package/dist/commands/task-verify-plan.js +503 -0
- package/dist/commands/task-verify-plan.js.map +1 -0
- package/dist/commands/task-worktree-close.d.ts +4 -0
- package/dist/commands/task-worktree-close.d.ts.map +1 -0
- package/dist/commands/task-worktree-close.js +81 -0
- package/dist/commands/task-worktree-close.js.map +1 -0
- package/dist/commands/task.d.ts +3 -0
- package/dist/commands/task.d.ts.map +1 -1
- package/dist/commands/task.js +1373 -184
- package/dist/commands/task.js.map +1 -1
- package/dist/commands/tile-selection.d.ts +3 -0
- package/dist/commands/tile-selection.d.ts.map +1 -0
- package/dist/commands/tile-selection.js +174 -0
- package/dist/commands/tile-selection.js.map +1 -0
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +80 -55
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/worktree.d.ts +4 -0
- package/dist/commands/worktree.d.ts.map +1 -0
- package/dist/commands/worktree.js +198 -0
- package/dist/commands/worktree.js.map +1 -0
- package/dist/configurators/shared.js +1 -1
- package/dist/configurators/shared.js.map +1 -1
- package/dist/core/compat/environment.d.ts +0 -1
- package/dist/core/compat/environment.d.ts.map +1 -1
- package/dist/core/compat/environment.js +1 -9
- package/dist/core/compat/environment.js.map +1 -1
- package/dist/core/pactile/bounded-capabilities.d.ts +127 -0
- package/dist/core/pactile/bounded-capabilities.d.ts.map +1 -0
- package/dist/core/pactile/bounded-capabilities.js +188 -0
- package/dist/core/pactile/bounded-capabilities.js.map +1 -0
- package/dist/core/pactile/index.d.ts +1 -0
- package/dist/core/pactile/index.d.ts.map +1 -1
- package/dist/core/pactile/index.js +1 -0
- package/dist/core/pactile/index.js.map +1 -1
- package/dist/core/task/index.d.ts +4 -2
- package/dist/core/task/index.d.ts.map +1 -1
- package/dist/core/task/index.js +2 -1
- package/dist/core/task/index.js.map +1 -1
- package/dist/core/task/kernel-cli.d.ts +14 -1
- package/dist/core/task/kernel-cli.d.ts.map +1 -1
- package/dist/core/task/kernel-cli.js +128 -0
- package/dist/core/task/kernel-cli.js.map +1 -1
- package/dist/core/task/kernel-contract.d.ts +6 -3
- package/dist/core/task/kernel-contract.d.ts.map +1 -1
- package/dist/core/task/kernel-contract.js +71 -23
- package/dist/core/task/kernel-contract.js.map +1 -1
- package/dist/core/task/kernel-store.d.ts +6 -0
- package/dist/core/task/kernel-store.d.ts.map +1 -1
- package/dist/core/task/kernel-store.js +54 -2
- package/dist/core/task/kernel-store.js.map +1 -1
- package/dist/core/task/legacy-task-migration-reader.d.ts +137 -0
- package/dist/core/task/legacy-task-migration-reader.d.ts.map +1 -0
- package/dist/core/task/legacy-task-migration-reader.js +512 -0
- package/dist/core/task/legacy-task-migration-reader.js.map +1 -0
- package/dist/core/task/legacy-task-migration.d.ts +105 -0
- package/dist/core/task/legacy-task-migration.d.ts.map +1 -0
- package/dist/core/task/legacy-task-migration.js +562 -0
- package/dist/core/task/legacy-task-migration.js.map +1 -0
- package/dist/core/task/legacy-task-overlay-durable-io.d.ts +18 -0
- package/dist/core/task/legacy-task-overlay-durable-io.d.ts.map +1 -0
- package/dist/core/task/legacy-task-overlay-durable-io.js +66 -0
- package/dist/core/task/legacy-task-overlay-durable-io.js.map +1 -0
- package/dist/core/task/legacy-task-reconciliation-reader.d.ts +26 -0
- package/dist/core/task/legacy-task-reconciliation-reader.d.ts.map +1 -0
- package/dist/core/task/legacy-task-reconciliation-reader.js +324 -0
- package/dist/core/task/legacy-task-reconciliation-reader.js.map +1 -0
- package/dist/core/task/legacy-task-v2-import.d.ts +67 -0
- package/dist/core/task/legacy-task-v2-import.d.ts.map +1 -0
- package/dist/core/task/legacy-task-v2-import.js +1046 -0
- package/dist/core/task/legacy-task-v2-import.js.map +1 -0
- package/dist/core/task/project-file-observer.d.ts +46 -0
- package/dist/core/task/project-file-observer.d.ts.map +1 -0
- package/dist/core/task/project-file-observer.js +618 -0
- package/dist/core/task/project-file-observer.js.map +1 -0
- package/dist/core/task/start-authority.d.ts +14 -0
- package/dist/core/task/start-authority.d.ts.map +1 -0
- package/dist/core/task/start-authority.js +146 -0
- package/dist/core/task/start-authority.js.map +1 -0
- package/dist/core/task/strategy.d.ts +24 -0
- package/dist/core/task/strategy.d.ts.map +1 -0
- package/dist/core/task/strategy.js +136 -0
- package/dist/core/task/strategy.js.map +1 -0
- package/dist/core/task/task-candidate-observer.d.ts +111 -0
- package/dist/core/task/task-candidate-observer.d.ts.map +1 -0
- package/dist/core/task/task-candidate-observer.js +762 -0
- package/dist/core/task/task-candidate-observer.js.map +1 -0
- package/dist/core/task/task-kernel-close.d.ts +5 -0
- package/dist/core/task/task-kernel-close.d.ts.map +1 -0
- package/dist/core/task/task-kernel-close.js +367 -0
- package/dist/core/task/task-kernel-close.js.map +1 -0
- package/dist/core/task/task-kernel-dependencies.d.ts +3 -0
- package/dist/core/task/task-kernel-dependencies.d.ts.map +1 -0
- package/dist/core/task/task-kernel-dependencies.js +24 -0
- package/dist/core/task/task-kernel-dependencies.js.map +1 -0
- package/dist/core/task/task-kernel-host.d.ts +5 -0
- package/dist/core/task/task-kernel-host.d.ts.map +1 -0
- package/dist/core/task/task-kernel-host.js +136 -0
- package/dist/core/task/task-kernel-host.js.map +1 -0
- package/dist/core/task/task-kernel-paths.d.ts +19 -0
- package/dist/core/task/task-kernel-paths.d.ts.map +1 -0
- package/dist/core/task/task-kernel-paths.js +237 -0
- package/dist/core/task/task-kernel-paths.js.map +1 -0
- package/dist/core/task/task-kernel-reviews.d.ts +3 -0
- package/dist/core/task/task-kernel-reviews.d.ts.map +1 -0
- package/dist/core/task/task-kernel-reviews.js +100 -0
- package/dist/core/task/task-kernel-reviews.js.map +1 -0
- package/dist/core/task/task-kernel-runs.d.ts +5 -0
- package/dist/core/task/task-kernel-runs.d.ts.map +1 -0
- package/dist/core/task/task-kernel-runs.js +196 -0
- package/dist/core/task/task-kernel-runs.js.map +1 -0
- package/dist/core/task/task-kernel-schema.d.ts +29 -0
- package/dist/core/task/task-kernel-schema.d.ts.map +1 -0
- package/dist/core/task/task-kernel-schema.js +1169 -0
- package/dist/core/task/task-kernel-schema.js.map +1 -0
- package/dist/core/task/task-kernel-store-v2.d.ts +33 -0
- package/dist/core/task/task-kernel-store-v2.d.ts.map +1 -0
- package/dist/core/task/task-kernel-store-v2.js +574 -0
- package/dist/core/task/task-kernel-store-v2.js.map +1 -0
- package/dist/core/task/task-kernel-types.d.ts +585 -0
- package/dist/core/task/task-kernel-types.d.ts.map +1 -0
- package/dist/core/task/task-kernel-types.js +31 -0
- package/dist/core/task/task-kernel-types.js.map +1 -0
- package/dist/core/task/task-kernel-workspaces.d.ts +10 -0
- package/dist/core/task/task-kernel-workspaces.d.ts.map +1 -0
- package/dist/core/task/task-kernel-workspaces.js +250 -0
- package/dist/core/task/task-kernel-workspaces.js.map +1 -0
- package/dist/core/task/task-kernel-write-set.d.ts +3 -0
- package/dist/core/task/task-kernel-write-set.d.ts.map +1 -0
- package/dist/core/task/task-kernel-write-set.js +12 -0
- package/dist/core/task/task-kernel-write-set.js.map +1 -0
- package/dist/core/task/task-kernel.d.ts +19 -0
- package/dist/core/task/task-kernel.d.ts.map +1 -0
- package/dist/core/task/task-kernel.js +17 -0
- package/dist/core/task/task-kernel.js.map +1 -0
- package/dist/core/task/task-pull-request-observer.d.ts +25 -0
- package/dist/core/task/task-pull-request-observer.d.ts.map +1 -0
- package/dist/core/task/task-pull-request-observer.js +187 -0
- package/dist/core/task/task-pull-request-observer.js.map +1 -0
- package/dist/core/task/task-review-evidence.d.ts +27 -0
- package/dist/core/task/task-review-evidence.d.ts.map +1 -0
- package/dist/core/task/task-review-evidence.js +383 -0
- package/dist/core/task/task-review-evidence.js.map +1 -0
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +5 -3
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/manifests/0.6.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.4.json +9 -0
- package/dist/pactile/artifacts/documents.d.ts +72 -0
- package/dist/pactile/artifacts/documents.d.ts.map +1 -0
- package/dist/pactile/artifacts/documents.js +406 -0
- package/dist/pactile/artifacts/documents.js.map +1 -0
- package/dist/pactile/artifacts/index.d.ts +6 -0
- package/dist/pactile/artifacts/index.d.ts.map +1 -0
- package/dist/pactile/artifacts/index.js +6 -0
- package/dist/pactile/artifacts/index.js.map +1 -0
- package/dist/pactile/artifacts/projection.d.ts +50 -0
- package/dist/pactile/artifacts/projection.d.ts.map +1 -0
- package/dist/pactile/artifacts/projection.js +139 -0
- package/dist/pactile/artifacts/projection.js.map +1 -0
- package/dist/pactile/artifacts/reader.d.ts +20 -0
- package/dist/pactile/artifacts/reader.d.ts.map +1 -0
- package/dist/pactile/artifacts/reader.js +559 -0
- package/dist/pactile/artifacts/reader.js.map +1 -0
- package/dist/pactile/artifacts/schema.d.ts +4 -0
- package/dist/pactile/artifacts/schema.d.ts.map +1 -0
- package/dist/pactile/artifacts/schema.js +217 -0
- package/dist/pactile/artifacts/schema.js.map +1 -0
- package/dist/pactile/artifacts/types.d.ts +66 -0
- package/dist/pactile/artifacts/types.d.ts.map +1 -0
- package/dist/pactile/artifacts/types.js +45 -0
- package/dist/pactile/artifacts/types.js.map +1 -0
- package/dist/pactile/capabilities/claim.d.ts +3 -0
- package/dist/pactile/capabilities/claim.d.ts.map +1 -0
- package/dist/pactile/capabilities/claim.js +97 -0
- package/dist/pactile/capabilities/claim.js.map +1 -0
- package/dist/pactile/capabilities/command.d.ts +6 -0
- package/dist/pactile/capabilities/command.d.ts.map +1 -0
- package/dist/pactile/capabilities/command.js +253 -0
- package/dist/pactile/capabilities/command.js.map +1 -0
- package/dist/pactile/capabilities/discover.d.ts +6 -0
- package/dist/pactile/capabilities/discover.d.ts.map +1 -0
- package/dist/pactile/capabilities/discover.js +48 -0
- package/dist/pactile/capabilities/discover.js.map +1 -0
- package/dist/pactile/capabilities/node.d.ts +15 -0
- package/dist/pactile/capabilities/node.d.ts.map +1 -0
- package/dist/pactile/capabilities/node.js +292 -0
- package/dist/pactile/capabilities/node.js.map +1 -0
- package/dist/pactile/capabilities/read.d.ts +6 -0
- package/dist/pactile/capabilities/read.d.ts.map +1 -0
- package/dist/pactile/capabilities/read.js +100 -0
- package/dist/pactile/capabilities/read.js.map +1 -0
- package/dist/pactile/capabilities/receipts.d.ts +17 -0
- package/dist/pactile/capabilities/receipts.d.ts.map +1 -0
- package/dist/pactile/capabilities/receipts.js +90 -0
- package/dist/pactile/capabilities/receipts.js.map +1 -0
- package/dist/pactile/capabilities/search.d.ts +6 -0
- package/dist/pactile/capabilities/search.d.ts.map +1 -0
- package/dist/pactile/capabilities/search.js +181 -0
- package/dist/pactile/capabilities/search.js.map +1 -0
- package/dist/pactile/capabilities/shared.d.ts +29 -0
- package/dist/pactile/capabilities/shared.d.ts.map +1 -0
- package/dist/pactile/capabilities/shared.js +134 -0
- package/dist/pactile/capabilities/shared.js.map +1 -0
- package/dist/pactile/capabilities/workspace.d.ts +19 -0
- package/dist/pactile/capabilities/workspace.d.ts.map +1 -0
- package/dist/pactile/capabilities/workspace.js +273 -0
- package/dist/pactile/capabilities/workspace.js.map +1 -0
- package/dist/pactile/codex/bridge.d.ts +105 -2
- package/dist/pactile/codex/bridge.d.ts.map +1 -1
- package/dist/pactile/codex/bridge.js +1266 -92
- package/dist/pactile/codex/bridge.js.map +1 -1
- package/dist/pactile/codex/dispatch-stop-proof.d.ts +43 -0
- package/dist/pactile/codex/dispatch-stop-proof.d.ts.map +1 -0
- package/dist/pactile/codex/dispatch-stop-proof.js +177 -0
- package/dist/pactile/codex/dispatch-stop-proof.js.map +1 -0
- package/dist/pactile/codex/host-stop.d.ts +47 -0
- package/dist/pactile/codex/host-stop.d.ts.map +1 -0
- package/dist/pactile/codex/host-stop.js +344 -0
- package/dist/pactile/codex/host-stop.js.map +1 -0
- package/dist/pactile/coordination/index.d.ts +4 -0
- package/dist/pactile/coordination/index.d.ts.map +1 -0
- package/dist/pactile/coordination/index.js +4 -0
- package/dist/pactile/coordination/index.js.map +1 -0
- package/dist/pactile/coordination/journal.d.ts +10 -0
- package/dist/pactile/coordination/journal.d.ts.map +1 -0
- package/dist/pactile/coordination/journal.js +255 -0
- package/dist/pactile/coordination/journal.js.map +1 -0
- package/dist/pactile/coordination/kernel-resume.d.ts +8 -0
- package/dist/pactile/coordination/kernel-resume.d.ts.map +1 -0
- package/dist/pactile/coordination/kernel-resume.js +87 -0
- package/dist/pactile/coordination/kernel-resume.js.map +1 -0
- package/dist/pactile/coordination/model.d.ts +553 -0
- package/dist/pactile/coordination/model.d.ts.map +1 -0
- package/dist/pactile/coordination/model.js +239 -0
- package/dist/pactile/coordination/model.js.map +1 -0
- package/dist/pactile/coordination/state.d.ts +46 -0
- package/dist/pactile/coordination/state.d.ts.map +1 -0
- package/dist/pactile/coordination/state.js +301 -0
- package/dist/pactile/coordination/state.js.map +1 -0
- package/dist/pactile/coordination/store.d.ts +94 -0
- package/dist/pactile/coordination/store.d.ts.map +1 -0
- package/dist/pactile/coordination/store.js +396 -0
- package/dist/pactile/coordination/store.js.map +1 -0
- package/dist/pactile/index.d.ts +7 -1
- package/dist/pactile/index.d.ts.map +1 -1
- package/dist/pactile/index.js +7 -1
- package/dist/pactile/index.js.map +1 -1
- package/dist/pactile/jev/contracts.d.ts +104 -0
- package/dist/pactile/jev/contracts.d.ts.map +1 -0
- package/dist/pactile/jev/contracts.js +53 -0
- package/dist/pactile/jev/contracts.js.map +1 -0
- package/dist/pactile/jev/decision.d.ts +58 -0
- package/dist/pactile/jev/decision.d.ts.map +1 -0
- package/dist/pactile/jev/decision.js +149 -0
- package/dist/pactile/jev/decision.js.map +1 -0
- package/dist/pactile/jev/http.d.ts +25 -0
- package/dist/pactile/jev/http.d.ts.map +1 -0
- package/dist/pactile/jev/http.js +234 -0
- package/dist/pactile/jev/http.js.map +1 -0
- package/dist/pactile/jev/index.d.ts +8 -0
- package/dist/pactile/jev/index.d.ts.map +1 -0
- package/dist/pactile/jev/index.js +4 -0
- package/dist/pactile/jev/index.js.map +1 -0
- package/dist/pactile/jev/outbound.d.ts +15 -0
- package/dist/pactile/jev/outbound.d.ts.map +1 -0
- package/dist/pactile/jev/outbound.js +264 -0
- package/dist/pactile/jev/outbound.js.map +1 -0
- package/dist/pactile/jev/project-policy.d.ts +10 -0
- package/dist/pactile/jev/project-policy.d.ts.map +1 -0
- package/dist/pactile/jev/project-policy.js +53 -0
- package/dist/pactile/jev/project-policy.js.map +1 -0
- package/dist/pactile/jev/response.d.ts +17 -0
- package/dist/pactile/jev/response.d.ts.map +1 -0
- package/dist/pactile/jev/response.js +280 -0
- package/dist/pactile/jev/response.js.map +1 -0
- package/dist/pactile/jev/scheduler-advice.d.ts +92 -0
- package/dist/pactile/jev/scheduler-advice.d.ts.map +1 -0
- package/dist/pactile/jev/scheduler-advice.js +323 -0
- package/dist/pactile/jev/scheduler-advice.js.map +1 -0
- package/dist/pactile/jev/transport.d.ts +6 -0
- package/dist/pactile/jev/transport.d.ts.map +1 -0
- package/dist/pactile/jev/transport.js +87 -0
- package/dist/pactile/jev/transport.js.map +1 -0
- package/dist/pactile/lifecycle/deferred-live.d.ts +17 -0
- package/dist/pactile/lifecycle/deferred-live.d.ts.map +1 -0
- package/dist/pactile/lifecycle/deferred-live.js +173 -0
- package/dist/pactile/lifecycle/deferred-live.js.map +1 -0
- package/dist/pactile/lifecycle/legacy-import.d.ts +1 -1
- package/dist/pactile/lifecycle/legacy-import.js +3 -3
- package/dist/pactile/lifecycle/legacy-import.js.map +1 -1
- package/dist/pactile/lifecycle/project-files.d.ts.map +1 -1
- package/dist/pactile/lifecycle/project-files.js +1 -0
- package/dist/pactile/lifecycle/project-files.js.map +1 -1
- package/dist/pactile/migration/legacy-task-batch-generation.d.ts +23 -0
- package/dist/pactile/migration/legacy-task-batch-generation.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-generation.js +102 -0
- package/dist/pactile/migration/legacy-task-batch-generation.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-io.d.ts +9 -0
- package/dist/pactile/migration/legacy-task-batch-io.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-io.js +208 -0
- package/dist/pactile/migration/legacy-task-batch-io.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-journal.d.ts +6 -0
- package/dist/pactile/migration/legacy-task-batch-journal.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-journal.js +121 -0
- package/dist/pactile/migration/legacy-task-batch-journal.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-orchestrator.d.ts +18 -0
- package/dist/pactile/migration/legacy-task-batch-orchestrator.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-orchestrator.js +634 -0
- package/dist/pactile/migration/legacy-task-batch-orchestrator.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-source.d.ts +8 -0
- package/dist/pactile/migration/legacy-task-batch-source.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-source.js +158 -0
- package/dist/pactile/migration/legacy-task-batch-source.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-types.d.ts +127 -0
- package/dist/pactile/migration/legacy-task-batch-types.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch-types.js +127 -0
- package/dist/pactile/migration/legacy-task-batch-types.js.map +1 -0
- package/dist/pactile/migration/legacy-task-batch.d.ts +3 -0
- package/dist/pactile/migration/legacy-task-batch.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-batch.js +2 -0
- package/dist/pactile/migration/legacy-task-batch.js.map +1 -0
- package/dist/pactile/migration/legacy-task-held-source-reader.d.ts +27 -0
- package/dist/pactile/migration/legacy-task-held-source-reader.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-held-source-reader.js +261 -0
- package/dist/pactile/migration/legacy-task-held-source-reader.js.map +1 -0
- package/dist/pactile/migration/legacy-task-reconciliation.d.ts +46 -0
- package/dist/pactile/migration/legacy-task-reconciliation.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-reconciliation.js +589 -0
- package/dist/pactile/migration/legacy-task-reconciliation.js.map +1 -0
- package/dist/pactile/migration/legacy-task-update.d.ts +19 -0
- package/dist/pactile/migration/legacy-task-update.d.ts.map +1 -0
- package/dist/pactile/migration/legacy-task-update.js +164 -0
- package/dist/pactile/migration/legacy-task-update.js.map +1 -0
- package/dist/pactile/parallel/batch.d.ts +21 -2
- package/dist/pactile/parallel/batch.d.ts.map +1 -1
- package/dist/pactile/parallel/batch.js +271 -50
- package/dist/pactile/parallel/batch.js.map +1 -1
- package/dist/pactile/parallel/policy.d.ts +1 -1
- package/dist/pactile/parallel/policy.d.ts.map +1 -1
- package/dist/pactile/parallel/policy.js +130 -102
- package/dist/pactile/parallel/policy.js.map +1 -1
- package/dist/pactile/pi/bridge.d.ts +139 -2
- package/dist/pactile/pi/bridge.d.ts.map +1 -1
- package/dist/pactile/pi/bridge.js +1317 -106
- package/dist/pactile/pi/bridge.js.map +1 -1
- package/dist/pactile/pi/rpc.d.ts +23 -4
- package/dist/pactile/pi/rpc.d.ts.map +1 -1
- package/dist/pactile/pi/rpc.js +243 -42
- package/dist/pactile/pi/rpc.js.map +1 -1
- package/dist/pactile/pi/v2-dispatch.d.ts +113 -0
- package/dist/pactile/pi/v2-dispatch.d.ts.map +1 -0
- package/dist/pactile/pi/v2-dispatch.js +919 -0
- package/dist/pactile/pi/v2-dispatch.js.map +1 -0
- package/dist/pactile/projection/planner.js +1 -1
- package/dist/pactile/projection/planner.js.map +1 -1
- package/dist/pactile/registry.d.ts +63 -1
- package/dist/pactile/registry.d.ts.map +1 -1
- package/dist/pactile/registry.js +633 -4
- package/dist/pactile/registry.js.map +1 -1
- package/dist/pactile/retrieval/index.d.ts +1 -0
- package/dist/pactile/retrieval/index.d.ts.map +1 -1
- package/dist/pactile/retrieval/index.js +1 -0
- package/dist/pactile/retrieval/index.js.map +1 -1
- package/dist/pactile/retrieval/jev-planning.d.ts +28 -0
- package/dist/pactile/retrieval/jev-planning.d.ts.map +1 -0
- package/dist/pactile/retrieval/jev-planning.js +96 -0
- package/dist/pactile/retrieval/jev-planning.js.map +1 -0
- package/dist/pactile/review/contract.d.ts +232 -0
- package/dist/pactile/review/contract.d.ts.map +1 -0
- package/dist/pactile/review/contract.js +695 -0
- package/dist/pactile/review/contract.js.map +1 -0
- package/dist/pactile/review/escalation-artifacts.d.ts +41 -0
- package/dist/pactile/review/escalation-artifacts.d.ts.map +1 -0
- package/dist/pactile/review/escalation-artifacts.js +415 -0
- package/dist/pactile/review/escalation-artifacts.js.map +1 -0
- package/dist/pactile/review/escalation-contract.d.ts +115 -0
- package/dist/pactile/review/escalation-contract.d.ts.map +1 -0
- package/dist/pactile/review/escalation-contract.js +151 -0
- package/dist/pactile/review/escalation-contract.js.map +1 -0
- package/dist/pactile/review/escalation-finalize.d.ts +14 -0
- package/dist/pactile/review/escalation-finalize.d.ts.map +1 -0
- package/dist/pactile/review/escalation-finalize.js +319 -0
- package/dist/pactile/review/escalation-finalize.js.map +1 -0
- package/dist/pactile/review/escalation-reply.d.ts +10 -0
- package/dist/pactile/review/escalation-reply.d.ts.map +1 -0
- package/dist/pactile/review/escalation-reply.js +61 -0
- package/dist/pactile/review/escalation-reply.js.map +1 -0
- package/dist/pactile/review/escalation-transport.d.ts +32 -0
- package/dist/pactile/review/escalation-transport.d.ts.map +1 -0
- package/dist/pactile/review/escalation-transport.js +216 -0
- package/dist/pactile/review/escalation-transport.js.map +1 -0
- package/dist/pactile/review/escalation.d.ts +7 -0
- package/dist/pactile/review/escalation.d.ts.map +1 -0
- package/dist/pactile/review/escalation.js +6 -0
- package/dist/pactile/review/escalation.js.map +1 -0
- package/dist/pactile/review/evidence.d.ts +25 -0
- package/dist/pactile/review/evidence.d.ts.map +1 -0
- package/dist/pactile/review/evidence.js +58 -0
- package/dist/pactile/review/evidence.js.map +1 -0
- package/dist/pactile/review/jev-escalation-advice.d.ts +77 -0
- package/dist/pactile/review/jev-escalation-advice.d.ts.map +1 -0
- package/dist/pactile/review/jev-escalation-advice.js +358 -0
- package/dist/pactile/review/jev-escalation-advice.js.map +1 -0
- package/dist/pactile/scheduler/index.d.ts +6 -0
- package/dist/pactile/scheduler/index.d.ts.map +1 -0
- package/dist/pactile/scheduler/index.js +5 -0
- package/dist/pactile/scheduler/index.js.map +1 -0
- package/dist/pactile/scheduler/project-lease-store.d.ts +35 -0
- package/dist/pactile/scheduler/project-lease-store.d.ts.map +1 -0
- package/dist/pactile/scheduler/project-lease-store.js +189 -0
- package/dist/pactile/scheduler/project-lease-store.js.map +1 -0
- package/dist/pactile/scheduler/scheduler.d.ts +91 -0
- package/dist/pactile/scheduler/scheduler.d.ts.map +1 -0
- package/dist/pactile/scheduler/scheduler.js +589 -0
- package/dist/pactile/scheduler/scheduler.js.map +1 -0
- package/dist/pactile/scheduler/task-kernel-admission.d.ts +173 -0
- package/dist/pactile/scheduler/task-kernel-admission.d.ts.map +1 -0
- package/dist/pactile/scheduler/task-kernel-admission.js +1560 -0
- package/dist/pactile/scheduler/task-kernel-admission.js.map +1 -0
- package/dist/pactile/scheduler/task-kernel-wave-dispatch.d.ts +184 -0
- package/dist/pactile/scheduler/task-kernel-wave-dispatch.d.ts.map +1 -0
- package/dist/pactile/scheduler/task-kernel-wave-dispatch.js +952 -0
- package/dist/pactile/scheduler/task-kernel-wave-dispatch.js.map +1 -0
- package/dist/pactile/scheduler/task-map-scheduler.d.ts +116 -0
- package/dist/pactile/scheduler/task-map-scheduler.d.ts.map +1 -0
- package/dist/pactile/scheduler/task-map-scheduler.js +1448 -0
- package/dist/pactile/scheduler/task-map-scheduler.js.map +1 -0
- package/dist/pactile/scheduler/task-run-dispatch-state.d.ts +7 -0
- package/dist/pactile/scheduler/task-run-dispatch-state.d.ts.map +1 -0
- package/dist/pactile/scheduler/task-run-dispatch-state.js +69 -0
- package/dist/pactile/scheduler/task-run-dispatch-state.js.map +1 -0
- package/dist/pactile/task/authorization.d.ts +3 -0
- package/dist/pactile/task/authorization.d.ts.map +1 -0
- package/dist/pactile/task/authorization.js +43 -0
- package/dist/pactile/task/authorization.js.map +1 -0
- package/dist/pactile/task/creation.d.ts +22 -0
- package/dist/pactile/task/creation.d.ts.map +1 -0
- package/dist/pactile/task/creation.js +95 -0
- package/dist/pactile/task/creation.js.map +1 -0
- package/dist/pactile/task/guards.d.ts +1 -4
- package/dist/pactile/task/guards.d.ts.map +1 -1
- package/dist/pactile/task/guards.js +5 -57
- package/dist/pactile/task/guards.js.map +1 -1
- package/dist/pactile/task/session-jev-receipt.d.ts +58 -0
- package/dist/pactile/task/session-jev-receipt.d.ts.map +1 -0
- package/dist/pactile/task/session-jev-receipt.js +375 -0
- package/dist/pactile/task/session-jev-receipt.js.map +1 -0
- package/dist/pactile/task/session-jev.d.ts +7 -0
- package/dist/pactile/task/session-jev.d.ts.map +1 -0
- package/dist/pactile/task/session-jev.js +217 -0
- package/dist/pactile/task/session-jev.js.map +1 -0
- package/dist/pactile/task/session-pack.d.ts.map +1 -1
- package/dist/pactile/task/session-pack.js +155 -16
- package/dist/pactile/task/session-pack.js.map +1 -1
- package/dist/pactile/task/session-retrieval-jev-receipt.d.ts +49 -0
- package/dist/pactile/task/session-retrieval-jev-receipt.d.ts.map +1 -0
- package/dist/pactile/task/session-retrieval-jev-receipt.js +97 -0
- package/dist/pactile/task/session-retrieval-jev-receipt.js.map +1 -0
- package/dist/pactile/task/session-retrieval-jev.d.ts +8 -0
- package/dist/pactile/task/session-retrieval-jev.d.ts.map +1 -0
- package/dist/pactile/task/session-retrieval-jev.js +352 -0
- package/dist/pactile/task/session-retrieval-jev.js.map +1 -0
- package/dist/pactile/task/strategy.d.ts +1 -23
- package/dist/pactile/task/strategy.d.ts.map +1 -1
- package/dist/pactile/task/strategy.js +2 -135
- package/dist/pactile/task/strategy.js.map +1 -1
- package/dist/pactile/tiles/jev-selection.d.ts +44 -0
- package/dist/pactile/tiles/jev-selection.d.ts.map +1 -0
- package/dist/pactile/tiles/jev-selection.js +210 -0
- package/dist/pactile/tiles/jev-selection.js.map +1 -0
- package/dist/pactile/tiles/safe-yaml.d.ts +5 -1
- package/dist/pactile/tiles/safe-yaml.d.ts.map +1 -1
- package/dist/pactile/tiles/safe-yaml.js +8 -8
- package/dist/pactile/tiles/safe-yaml.js.map +1 -1
- package/dist/pactile/tiles/selection-receipts.d.ts +71 -0
- package/dist/pactile/tiles/selection-receipts.d.ts.map +1 -0
- package/dist/pactile/tiles/selection-receipts.js +319 -0
- package/dist/pactile/tiles/selection-receipts.js.map +1 -0
- package/dist/pactile/tiles/selection.d.ts +185 -0
- package/dist/pactile/tiles/selection.d.ts.map +1 -0
- package/dist/pactile/tiles/selection.js +985 -0
- package/dist/pactile/tiles/selection.js.map +1 -0
- package/dist/pactile/verification/git-observer.d.ts +3 -0
- package/dist/pactile/verification/git-observer.d.ts.map +1 -0
- package/dist/pactile/verification/git-observer.js +3 -0
- package/dist/pactile/verification/git-observer.js.map +1 -0
- package/dist/pactile/verification/index.d.ts +11 -0
- package/dist/pactile/verification/index.d.ts.map +1 -0
- package/dist/pactile/verification/index.js +6 -0
- package/dist/pactile/verification/index.js.map +1 -0
- package/dist/pactile/verification/jev-advice.d.ts +78 -0
- package/dist/pactile/verification/jev-advice.d.ts.map +1 -0
- package/dist/pactile/verification/jev-advice.js +397 -0
- package/dist/pactile/verification/jev-advice.js.map +1 -0
- package/dist/pactile/verification/planner.d.ts +15 -0
- package/dist/pactile/verification/planner.d.ts.map +1 -0
- package/dist/pactile/verification/planner.js +412 -0
- package/dist/pactile/verification/planner.js.map +1 -0
- package/dist/pactile/verification/receipt.d.ts +101 -0
- package/dist/pactile/verification/receipt.d.ts.map +1 -0
- package/dist/pactile/verification/receipt.js +400 -0
- package/dist/pactile/verification/receipt.js.map +1 -0
- package/dist/pactile/verification/types.d.ts +72 -0
- package/dist/pactile/verification/types.d.ts.map +1 -0
- package/dist/pactile/verification/types.js +21 -0
- package/dist/pactile/verification/types.js.map +1 -0
- package/dist/pactile/worktree/git-probe.d.ts +32 -0
- package/dist/pactile/worktree/git-probe.d.ts.map +1 -0
- package/dist/pactile/worktree/git-probe.js +336 -0
- package/dist/pactile/worktree/git-probe.js.map +1 -0
- package/dist/pactile/worktree/git-removal.d.ts +3 -0
- package/dist/pactile/worktree/git-removal.d.ts.map +1 -0
- package/dist/pactile/worktree/git-removal.js +11 -0
- package/dist/pactile/worktree/git-removal.js.map +1 -0
- package/dist/pactile/worktree/index.d.ts +2 -0
- package/dist/pactile/worktree/index.d.ts.map +1 -0
- package/dist/pactile/worktree/index.js +2 -0
- package/dist/pactile/worktree/index.js.map +1 -0
- package/dist/pactile/worktree/integration-evidence.d.ts +80 -0
- package/dist/pactile/worktree/integration-evidence.d.ts.map +1 -0
- package/dist/pactile/worktree/integration-evidence.js +166 -0
- package/dist/pactile/worktree/integration-evidence.js.map +1 -0
- package/dist/pactile/worktree/manager-core.d.ts +50 -0
- package/dist/pactile/worktree/manager-core.d.ts.map +1 -0
- package/dist/pactile/worktree/manager-core.js +359 -0
- package/dist/pactile/worktree/manager-core.js.map +1 -0
- package/dist/pactile/worktree/manager-provenance.d.ts +32 -0
- package/dist/pactile/worktree/manager-provenance.d.ts.map +1 -0
- package/dist/pactile/worktree/manager-provenance.js +409 -0
- package/dist/pactile/worktree/manager-provenance.js.map +1 -0
- package/dist/pactile/worktree/manager-types.d.ts +84 -0
- package/dist/pactile/worktree/manager-types.d.ts.map +1 -0
- package/dist/pactile/worktree/manager-types.js +11 -0
- package/dist/pactile/worktree/manager-types.js.map +1 -0
- package/dist/pactile/worktree/manager.d.ts +10 -0
- package/dist/pactile/worktree/manager.d.ts.map +1 -0
- package/dist/pactile/worktree/manager.js +6 -0
- package/dist/pactile/worktree/manager.js.map +1 -0
- package/dist/pactile/worktree/run-workspace-cleanup.d.ts +10 -0
- package/dist/pactile/worktree/run-workspace-cleanup.d.ts.map +1 -0
- package/dist/pactile/worktree/run-workspace-cleanup.js +695 -0
- package/dist/pactile/worktree/run-workspace-cleanup.js.map +1 -0
- package/dist/pactile/worktree/run-workspace-lifecycle.d.ts +65 -0
- package/dist/pactile/worktree/run-workspace-lifecycle.d.ts.map +1 -0
- package/dist/pactile/worktree/run-workspace-lifecycle.js +276 -0
- package/dist/pactile/worktree/run-workspace-lifecycle.js.map +1 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-hooks.md +1 -1
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/generated-files.md +1 -1
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/hooks-and-settings.md +1 -1
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/overview.md +1 -1
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/platform-map.md +1 -1
- package/dist/templates/common/bundled-skills/smart-search-cli/SKILL.md +2 -0
- package/dist/templates/common/skills/brainstorm.md +19 -13
- package/dist/templates/markdown/agents.md +2 -2
- package/dist/templates/markdown/framework/execution-strategy.md.txt +1 -1
- package/dist/templates/markdown/framework/index.md.txt +1 -1
- package/dist/templates/markdown/framework/parallel-first-execution.md.txt +17 -105
- package/dist/templates/markdown/framework/prd-grill-frontier.md.txt +3 -3
- package/dist/templates/markdown/framework/release-boundary.md.txt +9 -10
- package/dist/templates/markdown/framework/retrieval-daily-guide.md.txt +1 -1
- package/dist/templates/pactile/CONTEXT.md +48 -36
- package/dist/templates/pactile/modules/approval-personal/contract.md +12 -24
- package/dist/templates/pactile/modules/close-basic/contract.md +15 -18
- package/dist/templates/pactile/modules/debug-recovery/contract.md +4 -4
- package/dist/templates/pactile/modules/define-basic/contract.md +15 -19
- package/dist/templates/pactile/modules/define-extended/contract.md +3 -3
- package/dist/templates/pactile/modules/execute-agent/contract.md +11 -19
- package/dist/templates/pactile/modules/intake-basic/contract.md +16 -13
- package/dist/templates/pactile/modules/verify-basic/contract.md +11 -20
- package/dist/templates/pactile/tasks/templates/release-execution/design.md +5 -5
- package/dist/templates/pactile/tasks/templates/release-readiness/design.md +6 -6
- package/dist/templates/pactile/tasks/templates/release-readiness/handoff-template.md +8 -2
- package/dist/templates/pactile/workflow.md +37 -41
- package/dist/templates/template-utils.d.ts +1 -2
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +2 -13
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/types/ai-tools.d.ts +1 -1
- package/dist/types/ai-tools.js +1 -1
- package/dist/utils/manifest-prune.js +1 -1
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/p36-upgrade.d.ts +2 -2
- package/dist/utils/p36-upgrade.d.ts.map +1 -1
- package/dist/utils/p36-upgrade.js +2 -10
- package/dist/utils/p36-upgrade.js.map +1 -1
- package/dist/utils/post-update-smoke.js +1 -1
- package/dist/utils/post-update-smoke.js.map +1 -1
- package/dist/utils/readiness.d.ts +2 -2
- package/dist/utils/readiness.js +2 -2
- package/dist/utils/uninstall-scrubbers.js +1 -1
- package/dist/utils/workflow-dir.d.ts +1 -1
- package/dist/utils/workflow-dir.d.ts.map +1 -1
- package/dist/utils/workflow-dir.js +1 -1
- package/dist/utils/workflow-dir.js.map +1 -1
- package/package.json +42 -37
- package/CHANGELOG.md +0 -651
- package/bin/compat-warning.js +0 -11
- package/bin/pactile.js +0 -3
- package/bin/smart-search.js +0 -38
- package/dist/migrations/manifests/0.1.0.json +0 -9
- package/dist/migrations/manifests/0.1.1.json +0 -9
- package/dist/migrations/manifests/0.1.2.json +0 -9
- package/dist/migrations/manifests/0.1.3.json +0 -9
- package/dist/migrations/manifests/0.1.4.json +0 -9
- package/dist/migrations/manifests/0.2.1.json +0 -9
- package/dist/migrations/manifests/0.2.10.json +0 -374
- package/dist/migrations/manifests/0.2.2.json +0 -9
- package/dist/migrations/manifests/0.2.3.json +0 -9
- package/dist/migrations/manifests/0.2.4.json +0 -9
- package/dist/migrations/manifests/0.2.5.json +0 -9
- package/dist/migrations/manifests/0.2.6.json +0 -9
- package/dist/migrations/manifests/0.2.7.json +0 -9
- package/dist/migrations/manifests/0.2.8.json +0 -9
- package/dist/migrations/manifests/0.2.9.json +0 -9
- package/dist/migrations/manifests/0.3.0.json +0 -89
- package/dist/migrations/manifests/0.3.1.json +0 -32
- package/dist/migrations/manifests/0.3.2.json +0 -16
- package/dist/migrations/manifests/0.3.3.json +0 -9
- package/dist/migrations/manifests/0.3.4.json +0 -9
- package/dist/migrations/manifests/0.3.5.json +0 -9
- package/dist/migrations/manifests/0.3.6.json +0 -9
- package/dist/migrations/manifests/0.4.0.json +0 -9
- package/dist/migrations/manifests/0.4.1.json +0 -9
- package/dist/migrations/manifests/0.4.2.json +0 -9
- package/dist/migrations/manifests/0.4.3.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.0.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.1.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.2.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.3.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.4.json +0 -9
- package/dist/migrations/manifests/0.5.0-beta.5.json +0 -9
- package/dist/migrations/manifests/0.5.0.json +0 -9
- package/dist/pactile/compat/retired-alternate-client.d.ts +0 -42
- package/dist/pactile/compat/retired-alternate-client.d.ts.map +0 -1
- package/dist/pactile/compat/retired-alternate-client.js +0 -153
- package/dist/pactile/compat/retired-alternate-client.js.map +0 -1
- package/dist/pactile/compat/update-residue.d.ts +0 -4
- package/dist/pactile/compat/update-residue.d.ts.map +0 -1
- package/dist/pactile/compat/update-residue.js +0 -55
- package/dist/pactile/compat/update-residue.js.map +0 -1
- package/dist/utils/cursor-retrieval-env.d.ts +0 -17
- package/dist/utils/cursor-retrieval-env.d.ts.map +0 -1
- package/dist/utils/cursor-retrieval-env.js +0 -19
- package/dist/utils/cursor-retrieval-env.js.map +0 -1
- package/dist/utils/proxy.d.ts +0 -25
- package/dist/utils/proxy.d.ts.map +0 -1
- package/dist/utils/proxy.js +0 -60
- package/dist/utils/proxy.js.map +0 -1
- package/scripts/postinstall.js +0 -6
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { createJevDecisionFacadeV1, } from "../jev/decision.js";
|
|
5
|
+
import { JEV_ORIGIN_V1, } from "../jev/contracts.js";
|
|
6
|
+
import { projectJevConfidenceReceiptV1 } from "../jev/response.js";
|
|
7
|
+
import { resolveJevProjectEgressPolicyV1 } from "../jev/project-policy.js";
|
|
8
|
+
export const PI_REVIEW_ROUTING_QUESTION_ID_V1 = "append_codex_review";
|
|
9
|
+
export const PI_REVIEW_ROUTING_CONFIDENCE_THRESHOLD_V1 = 0.65;
|
|
10
|
+
const ROUTING_QUESTIONS = Object.freeze({
|
|
11
|
+
[PI_REVIEW_ROUTING_QUESTION_ID_V1]: Object.freeze({
|
|
12
|
+
type: "choice",
|
|
13
|
+
instructions: "Based only on the structured Pi Review risk signals, would an additional Codex read-only review materially improve the next decision? Account for Codex quota and review latency.",
|
|
14
|
+
criteria: Object.freeze({
|
|
15
|
+
"append-codex-review": "Add an optional second review when multiple findings or review areas make an independent judgment valuable.",
|
|
16
|
+
"keep-pi-review": "Keep Pi Review when the findings clearly call for implementation changes; avoid unnecessary Codex cost.",
|
|
17
|
+
}),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
/** Only validated enum values and counts leave the project; model-authored prose stays local. */
|
|
21
|
+
function reviewRiskSummary(review) {
|
|
22
|
+
const coverage = Object.entries(review.coverage).map(([area, value]) => ({
|
|
23
|
+
area,
|
|
24
|
+
status: value.status,
|
|
25
|
+
confidence: value.confidence,
|
|
26
|
+
}));
|
|
27
|
+
const findings = {
|
|
28
|
+
total: review.findings.length,
|
|
29
|
+
highImpact: review.findings.filter((item) => item.impact === "high").length,
|
|
30
|
+
blockerSeverity: review.findings.filter((item) => item.severity === "blocker").length,
|
|
31
|
+
lowConfidence: review.findings.filter((item) => item.confidence === "low").length,
|
|
32
|
+
disputed: review.findings.filter((item) => item.disputed).length,
|
|
33
|
+
};
|
|
34
|
+
return JSON.stringify({
|
|
35
|
+
purpose: "Decide whether a separate read-only Codex Review would help after this non-passing independent Pi Review.",
|
|
36
|
+
verdict: review.verdict,
|
|
37
|
+
coverage,
|
|
38
|
+
findings,
|
|
39
|
+
blockers: review.blockers.length,
|
|
40
|
+
unresolvedQuestions: review.unresolvedQuestions.length,
|
|
41
|
+
mandatoryEscalation: review.escalation.required,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function routingRequest(review) {
|
|
45
|
+
return {
|
|
46
|
+
taskSummary: reviewRiskSummary(review),
|
|
47
|
+
questions: ROUTING_QUESTIONS,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function routingProviderPayload(request) {
|
|
51
|
+
return {
|
|
52
|
+
state: { taskSummary: request.taskSummary, sourceSnippets: [] },
|
|
53
|
+
model: "jev-latest",
|
|
54
|
+
questions: request.questions,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function sha256(value) {
|
|
58
|
+
return createHash("sha256").update(value).digest("hex");
|
|
59
|
+
}
|
|
60
|
+
function policyStatus(policy) {
|
|
61
|
+
return policy.allowed ? policy.source : policy.reasonCode;
|
|
62
|
+
}
|
|
63
|
+
function unavailableConfidence() {
|
|
64
|
+
return projectJevConfidenceReceiptV1({}, [PI_REVIEW_ROUTING_QUESTION_ID_V1]);
|
|
65
|
+
}
|
|
66
|
+
function receiptPath(taskDir, ref) {
|
|
67
|
+
const task = fs.realpathSync(taskDir);
|
|
68
|
+
if (path.isAbsolute(ref) || ref.includes("\0"))
|
|
69
|
+
throw new Error("Pi Review Jev advice reference is invalid");
|
|
70
|
+
const file = path.resolve(task, ref);
|
|
71
|
+
const relative = path.relative(task, file);
|
|
72
|
+
if (!relative || relative.startsWith("..") || path.isAbsolute(relative))
|
|
73
|
+
throw new Error("Pi Review Jev advice reference escapes the Task directory");
|
|
74
|
+
return file;
|
|
75
|
+
}
|
|
76
|
+
function persistReceipt(taskDir, fields) {
|
|
77
|
+
const core = { ...fields };
|
|
78
|
+
const contentFingerprint = sha256(JSON.stringify(core));
|
|
79
|
+
const receipt = { ...core, contentFingerprint };
|
|
80
|
+
const ref = `pi-bridge/jev-review-advice/${fields.binding.piRunId}.json`;
|
|
81
|
+
const file = receiptPath(taskDir, ref);
|
|
82
|
+
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
83
|
+
const task = fs.realpathSync(taskDir);
|
|
84
|
+
const directory = fs.realpathSync(path.dirname(file));
|
|
85
|
+
const relative = path.relative(task, directory);
|
|
86
|
+
if (!relative || relative.startsWith("..") || path.isAbsolute(relative))
|
|
87
|
+
throw new Error("Pi Review Jev advice directory escapes the Task directory");
|
|
88
|
+
const bytes = Buffer.from(`${JSON.stringify(receipt, null, 2)}\n`, "utf8");
|
|
89
|
+
fs.writeFileSync(file, bytes, { encoding: "utf8", flag: "wx", mode: 0o600 });
|
|
90
|
+
return {
|
|
91
|
+
ref,
|
|
92
|
+
sha256: sha256(bytes),
|
|
93
|
+
receipt,
|
|
94
|
+
prepareOptionalEscalation: receipt.recommendationDisposition === "adopted" &&
|
|
95
|
+
receipt.escalationAction === "append-codex-review",
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function requestEgress(allowed) {
|
|
99
|
+
return {
|
|
100
|
+
network: "project-authorized",
|
|
101
|
+
privacy: "project-approved-egress",
|
|
102
|
+
credentials: "project-authorized",
|
|
103
|
+
destination: JEV_ORIGIN_V1,
|
|
104
|
+
egressDestinations: allowed ? [JEV_ORIGIN_V1] : [],
|
|
105
|
+
contentDecision: "task-summary-approved",
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function transportAudit(result) {
|
|
109
|
+
const transport = result?.receipt.transport;
|
|
110
|
+
return {
|
|
111
|
+
outcome: transport?.outcome ?? "skipped",
|
|
112
|
+
reasonCode: transport?.reasonCode ?? null,
|
|
113
|
+
attempts: transport?.attempts ?? 0,
|
|
114
|
+
latencyMs: transport?.latencyMs ?? 0,
|
|
115
|
+
httpStatus: transport?.httpStatus ?? null,
|
|
116
|
+
requestId: transport?.requestId ?? null,
|
|
117
|
+
model: transport?.model ?? null,
|
|
118
|
+
inputTokens: transport?.inputTokens ?? null,
|
|
119
|
+
outputTokens: transport?.outputTokens ?? null,
|
|
120
|
+
estimatedInputCostMicrousd: transport?.estimatedInputCostMicrousd ?? null,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function unexpectedFallback() {
|
|
124
|
+
const confidence = unavailableConfidence();
|
|
125
|
+
return {
|
|
126
|
+
node: "review-routing",
|
|
127
|
+
status: "fallback",
|
|
128
|
+
answers: null,
|
|
129
|
+
fallback: {
|
|
130
|
+
reasonCode: "transport-error",
|
|
131
|
+
explanation: "Jev advice failed locally; the Pi Review route was kept.",
|
|
132
|
+
},
|
|
133
|
+
receipt: {
|
|
134
|
+
schemaVersion: 1,
|
|
135
|
+
node: "review-routing",
|
|
136
|
+
transport: {
|
|
137
|
+
provider: "typesafe-jev",
|
|
138
|
+
outcome: "fallback",
|
|
139
|
+
reasonCode: "transport-error",
|
|
140
|
+
attempts: 0,
|
|
141
|
+
latencyMs: 0,
|
|
142
|
+
httpStatus: null,
|
|
143
|
+
requestId: null,
|
|
144
|
+
model: null,
|
|
145
|
+
inputTokens: null,
|
|
146
|
+
outputTokens: null,
|
|
147
|
+
estimatedInputCostMicrousd: null,
|
|
148
|
+
confidence,
|
|
149
|
+
},
|
|
150
|
+
budget: {
|
|
151
|
+
maxDecisions: 1,
|
|
152
|
+
decisionsUsed: 0,
|
|
153
|
+
decisionsRemaining: 1,
|
|
154
|
+
maximumHttpAttempts: 1,
|
|
155
|
+
observedEstimatedInputCostMicrousd: 0,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Suggest an optional second review using only bounded, non-sensitive risk signals.
|
|
162
|
+
* Hard-rule and PASS cases are persisted as local skip receipts without calling Jev.
|
|
163
|
+
*/
|
|
164
|
+
export async function createPiReviewRoutingAdviceV1(input) {
|
|
165
|
+
const request = routingRequest(input.review);
|
|
166
|
+
const providerPayload = JSON.stringify(routingProviderPayload(request));
|
|
167
|
+
const inputBytes = Buffer.byteLength(providerPayload, "utf8");
|
|
168
|
+
const inputSha256 = sha256(providerPayload);
|
|
169
|
+
const before = resolveJevProjectEgressPolicyV1(input.root);
|
|
170
|
+
if (input.skipReason) {
|
|
171
|
+
const reason = input.skipReason;
|
|
172
|
+
return persistReceipt(input.taskDir, {
|
|
173
|
+
schemaVersion: 1,
|
|
174
|
+
source: "pactile-pi-review-routing-advice-v1",
|
|
175
|
+
status: "skipped",
|
|
176
|
+
binding: input.binding,
|
|
177
|
+
request: { inputSha256, inputBytes, sentInputSha256: null },
|
|
178
|
+
recommendationDisposition: "skipped",
|
|
179
|
+
escalationAction: "not-applicable",
|
|
180
|
+
basis: reason,
|
|
181
|
+
recommendation: null,
|
|
182
|
+
confidence: unavailableConfidence(),
|
|
183
|
+
projectEgressPolicy: {
|
|
184
|
+
before: policyStatus(before),
|
|
185
|
+
after: policyStatus(before),
|
|
186
|
+
changed: false,
|
|
187
|
+
},
|
|
188
|
+
transport: transportAudit(null),
|
|
189
|
+
recordedAt: new Date().toISOString(),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
const explicitlyDisabled = process.env.PACTILE_JEV_ENABLED?.trim().toLowerCase() === "false";
|
|
193
|
+
const facade = createJevDecisionFacadeV1({
|
|
194
|
+
...(explicitlyDisabled ? { enabled: false } : {}),
|
|
195
|
+
maxDecisions: 1,
|
|
196
|
+
maxDeadlineMs: 2_500,
|
|
197
|
+
transport: {
|
|
198
|
+
apiKey: process.env.PACTILE_JEV_API_KEY,
|
|
199
|
+
deadlineMs: 2_500,
|
|
200
|
+
maxRetries: 0,
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
let result;
|
|
204
|
+
try {
|
|
205
|
+
result = await facade.decide({
|
|
206
|
+
node: "review-routing",
|
|
207
|
+
request,
|
|
208
|
+
options: {
|
|
209
|
+
egress: requestEgress(before.allowed),
|
|
210
|
+
minimumDecisionConfidence: PI_REVIEW_ROUTING_CONFIDENCE_THRESHOLD_V1,
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
catch {
|
|
215
|
+
result = unexpectedFallback();
|
|
216
|
+
}
|
|
217
|
+
const after = resolveJevProjectEgressPolicyV1(input.root);
|
|
218
|
+
const policyChanged = JSON.stringify(policyStatus(before)) !==
|
|
219
|
+
JSON.stringify(policyStatus(after));
|
|
220
|
+
let stillCurrent = true;
|
|
221
|
+
try {
|
|
222
|
+
stillCurrent = input.isStillCurrent?.() ?? true;
|
|
223
|
+
}
|
|
224
|
+
catch {
|
|
225
|
+
stillCurrent = false;
|
|
226
|
+
}
|
|
227
|
+
const answer = result.status === "answered"
|
|
228
|
+
? result.answers[PI_REVIEW_ROUTING_QUESTION_ID_V1]
|
|
229
|
+
: undefined;
|
|
230
|
+
const recommendation = answer?.type === "choice" &&
|
|
231
|
+
(answer.choice === "append-codex-review" ||
|
|
232
|
+
answer.choice === "keep-pi-review")
|
|
233
|
+
? answer.choice
|
|
234
|
+
: null;
|
|
235
|
+
const confidence = projectJevConfidenceReceiptV1(result.receipt.transport.confidence, [PI_REVIEW_ROUTING_QUESTION_ID_V1]);
|
|
236
|
+
const reportedConfidence = confidence[PI_REVIEW_ROUTING_QUESTION_ID_V1];
|
|
237
|
+
const confident = reportedConfidence?.status === "available" &&
|
|
238
|
+
reportedConfidence.value >= PI_REVIEW_ROUTING_CONFIDENCE_THRESHOLD_V1;
|
|
239
|
+
const answeredWithSupportedChoice = result.status === "answered" && recommendation !== null && confident;
|
|
240
|
+
const superseded = policyChanged || !stillCurrent;
|
|
241
|
+
const basis = superseded
|
|
242
|
+
? policyChanged
|
|
243
|
+
? "egress-policy-changed"
|
|
244
|
+
: "review-binding-changed"
|
|
245
|
+
: result.status === "fallback" || !answeredWithSupportedChoice
|
|
246
|
+
? "jev-unavailable"
|
|
247
|
+
: recommendation === "append-codex-review"
|
|
248
|
+
? "jev-recommended"
|
|
249
|
+
: "jev-declined";
|
|
250
|
+
return persistReceipt(input.taskDir, {
|
|
251
|
+
schemaVersion: 1,
|
|
252
|
+
source: "pactile-pi-review-routing-advice-v1",
|
|
253
|
+
status: superseded
|
|
254
|
+
? "superseded"
|
|
255
|
+
: result.status === "answered" && answeredWithSupportedChoice
|
|
256
|
+
? "answered"
|
|
257
|
+
: "fallback",
|
|
258
|
+
binding: input.binding,
|
|
259
|
+
request: {
|
|
260
|
+
inputSha256,
|
|
261
|
+
inputBytes,
|
|
262
|
+
sentInputSha256: result.receipt.transport.attempts > 0 ? inputSha256 : null,
|
|
263
|
+
},
|
|
264
|
+
recommendationDisposition: superseded
|
|
265
|
+
? "superseded"
|
|
266
|
+
: answeredWithSupportedChoice
|
|
267
|
+
? "adopted"
|
|
268
|
+
: "unavailable",
|
|
269
|
+
escalationAction: superseded
|
|
270
|
+
? "not-applicable"
|
|
271
|
+
: answeredWithSupportedChoice && recommendation === "append-codex-review"
|
|
272
|
+
? "append-codex-review"
|
|
273
|
+
: "keep-pi-review",
|
|
274
|
+
basis,
|
|
275
|
+
recommendation,
|
|
276
|
+
confidence,
|
|
277
|
+
projectEgressPolicy: {
|
|
278
|
+
before: policyStatus(before),
|
|
279
|
+
after: policyStatus(after),
|
|
280
|
+
changed: policyChanged,
|
|
281
|
+
},
|
|
282
|
+
transport: transportAudit(result),
|
|
283
|
+
recordedAt: new Date().toISOString(),
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const RECEIPT_KEYS = [
|
|
287
|
+
"schemaVersion",
|
|
288
|
+
"source",
|
|
289
|
+
"status",
|
|
290
|
+
"binding",
|
|
291
|
+
"request",
|
|
292
|
+
"recommendationDisposition",
|
|
293
|
+
"escalationAction",
|
|
294
|
+
"basis",
|
|
295
|
+
"recommendation",
|
|
296
|
+
"confidence",
|
|
297
|
+
"projectEgressPolicy",
|
|
298
|
+
"transport",
|
|
299
|
+
"recordedAt",
|
|
300
|
+
"contentFingerprint",
|
|
301
|
+
].sort();
|
|
302
|
+
/** Read back and verify the exact local Jev advice bytes referenced by P40. */
|
|
303
|
+
export function readPiReviewRoutingAdviceV1(input) {
|
|
304
|
+
const file = receiptPath(input.taskDir, input.ref);
|
|
305
|
+
const task = fs.realpathSync(input.taskDir);
|
|
306
|
+
const realFile = fs.realpathSync(file);
|
|
307
|
+
const relative = path.relative(task, realFile);
|
|
308
|
+
if (!relative ||
|
|
309
|
+
relative.startsWith("..") ||
|
|
310
|
+
path.isAbsolute(relative) ||
|
|
311
|
+
!fs.statSync(realFile).isFile())
|
|
312
|
+
throw new Error("Pi Review Jev advice does not resolve to a Task file");
|
|
313
|
+
const bytes = fs.readFileSync(realFile);
|
|
314
|
+
if (sha256(bytes) !== input.expectedSha256)
|
|
315
|
+
throw new Error("Pi Review Jev advice hash does not match the escalation request");
|
|
316
|
+
let value;
|
|
317
|
+
try {
|
|
318
|
+
value = JSON.parse(bytes.toString("utf8"));
|
|
319
|
+
}
|
|
320
|
+
catch {
|
|
321
|
+
throw new Error("Pi Review Jev advice is not valid JSON");
|
|
322
|
+
}
|
|
323
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
324
|
+
throw new Error("Pi Review Jev advice must be a JSON object");
|
|
325
|
+
const receipt = value;
|
|
326
|
+
if (JSON.stringify(Object.keys(value).sort()) !== JSON.stringify(RECEIPT_KEYS))
|
|
327
|
+
throw new Error("Pi Review Jev advice has an unsupported shape");
|
|
328
|
+
const { contentFingerprint, ...core } = receipt;
|
|
329
|
+
const reportedConfidence = receipt.confidence?.[PI_REVIEW_ROUTING_QUESTION_ID_V1];
|
|
330
|
+
const expectedInputBody = JSON.stringify(routingProviderPayload(routingRequest(input.review)));
|
|
331
|
+
if (receipt.schemaVersion !== 1 ||
|
|
332
|
+
receipt.source !== "pactile-pi-review-routing-advice-v1" ||
|
|
333
|
+
receipt.status !== "answered" ||
|
|
334
|
+
receipt.recommendationDisposition !== "adopted" ||
|
|
335
|
+
receipt.escalationAction !== "append-codex-review" ||
|
|
336
|
+
receipt.basis !== "jev-recommended" ||
|
|
337
|
+
receipt.recommendation !== "append-codex-review" ||
|
|
338
|
+
JSON.stringify(receipt.binding) !== JSON.stringify(input.expectedBinding) ||
|
|
339
|
+
receipt.request.inputSha256 !== sha256(expectedInputBody) ||
|
|
340
|
+
receipt.request.inputBytes !==
|
|
341
|
+
Buffer.byteLength(expectedInputBody, "utf8") ||
|
|
342
|
+
receipt.request.sentInputSha256 !== receipt.request.inputSha256 ||
|
|
343
|
+
!["default", "configured"].includes(receipt.projectEgressPolicy.before) ||
|
|
344
|
+
receipt.projectEgressPolicy.after !== receipt.projectEgressPolicy.before ||
|
|
345
|
+
receipt.projectEgressPolicy.changed ||
|
|
346
|
+
receipt.transport.outcome !== "answered" ||
|
|
347
|
+
receipt.transport.reasonCode !== null ||
|
|
348
|
+
receipt.transport.attempts !== 1 ||
|
|
349
|
+
reportedConfidence?.status !== "available" ||
|
|
350
|
+
!Number.isFinite(reportedConfidence.value) ||
|
|
351
|
+
reportedConfidence.value < PI_REVIEW_ROUTING_CONFIDENCE_THRESHOLD_V1 ||
|
|
352
|
+
reportedConfidence.value > 1 ||
|
|
353
|
+
sha256(JSON.stringify(core)) !== contentFingerprint) {
|
|
354
|
+
throw new Error("Pi Review Jev advice does not authorize this optional escalation");
|
|
355
|
+
}
|
|
356
|
+
return receipt;
|
|
357
|
+
}
|
|
358
|
+
//# sourceMappingURL=jev-escalation-advice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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OAAO,CAAC,mBAAmB,CAAC,KAAK,KAAK,OAAO,CAAC,mBAAmB,CAAC,MAAM;QACxE,OAAO,CAAC,mBAAmB,CAAC,OAAO;QACnC,OAAO,CAAC,SAAS,CAAC,OAAO,KAAK,UAAU;QACxC,OAAO,CAAC,SAAS,CAAC,UAAU,KAAK,IAAI;QACrC,OAAO,CAAC,SAAS,CAAC,QAAQ,KAAK,CAAC;QAChC,kBAAkB,EAAE,MAAM,KAAK,WAAW;QAC1C,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC;QAC1C,kBAAkB,CAAC,KAAK,GAAG,yCAAyC;QACpE,kBAAkB,CAAC,KAAK,GAAG,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,kBAAkB,EACnD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { planTaskScheduleV1, TaskScheduleError, type ConflictParallelAuthorizationV1, type JevSchedulerAdviceV1, type SchedulerCostVectorV1, type SchedulerErrorCodeV1, type SchedulerTaskActionV1, type SchedulerTaskDecisionV1, type SchedulerTaskStateV1, type SchedulerTaskV1, type TaskScheduleReceiptV1, type TaskScheduleRequestV1, type TaskScheduleWaveV1, } from "./scheduler.js";
|
|
2
|
+
export { planParentTaskScheduleV1, scheduleParentTaskGraph, scheduleParentTaskGraphWithJevV1, planTaskKernelGraphV1, scheduleTaskKernelGraph, scheduleTaskKernelGraphWithJevV1, readTaskKernelScheduleReceiptV1, type PersistedTaskScheduleV1, type PersistedTaskKernelScheduleV1, type ReadTaskKernelScheduleReceiptV1, type SchedulerTaskCostOverridesV1, type TaskMapScheduleOptionsV1, type JevParentScheduleOptionsV1, type TaskKernelScheduleOptionsV1, type JevTaskKernelScheduleOptionsV1, type TaskScheduleDecisionReceiptV1, type TaskKernelScheduleDecisionReceiptV1, type TaskScheduleLifecycleSnapshotV1, } from "./task-map-scheduler.js";
|
|
3
|
+
export type { JevScheduleAdviceAuditV1, JevScheduleAdviceOptionsV1, JevScheduleFinalEligibleCandidatesV1, JevScheduleProjectEgressAuditV1, JevScheduleProjectEgressStatusV1, JevScheduleRequestSnapshotV1, } from "../jev/scheduler-advice.js";
|
|
4
|
+
export { bindTaskKernelRunDispatchOwnerV1, acquireTaskKernelRunDispatchV1, assertTaskKernelRunDispatchLeaseV1, assertTaskKernelRunDispatchPreSpawnV1, readPiRunSettlementSealV1, releaseTaskKernelRunDispatchV1, validateTaskKernelRunDispatchStopProofV1, type TaskKernelRunDispatchRequestV1, type TaskKernelRunDispatchOwnerV1, type TaskKernelRunDispatchOwnerBindingReceiptV1, type TaskKernelRunDispatchOwnerBindingResultV1, type TaskKernelRunDispatchStopProofV1, type TaskKernelRunDispatchStopProofValidationV1, type TaskKernelRunDispatchStopProofValidationRequestV1, type TaskKernelRunDispatchDecisionReceiptV1, type TaskKernelRunDispatchPermitV1, type TaskKernelRunDispatchRejectionV1, type TaskKernelRunDispatchResultV1, type TaskKernelRunDispatchLeaseAssertionV1, type TaskKernelRunDispatchPreSpawnAssertionV1, type TaskKernelRunDispatchPreSpawnAssertionRequestV1, type TaskKernelRunDispatchReleaseResultV1, } from "./task-kernel-admission.js";
|
|
5
|
+
export { compareTaskKernelWaveDispatchV1, dispatchTaskKernelWaveV1, type TaskKernelWaveDispatchOptionsV1, type TaskKernelWaveDispatchResultV1, type TaskKernelWaveDispatchTaskResultV1, type TaskKernelWaveDispatchComparisonV1, type TaskKernelWaveDispatchCostTotalV1, type TaskKernelWaveComparisonConditionsV1, type TaskKernelWaveIntegrationPlanV1, type TaskKernelWaveIntegrationTaskV1, type TaskKernelWaveIntegrationWaveV1, type TaskKernelWaveObservedCostLedgerV1, type TaskKernelWaveObservedCostTaskV1, type TaskKernelWaveScenarioMeasurementV1, type TaskKernelWaveMeasurementV1, type TaskKernelWaveRunOutcomeV1, type TaskKernelWaveRunRequestV1, type TaskKernelWaveRunResultV1, type TaskKernelWaveRunnerV1, } from "./task-kernel-wave-dispatch.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pactile/scheduler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,+BAA+B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,GACrC,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,oCAAoC,EACpC,+BAA+B,EAC/B,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EACrC,yBAAyB,EACzB,8BAA8B,EAC9B,wCAAwC,EACxC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0CAA0C,EAC/C,KAAK,yCAAyC,EAC9C,KAAK,gCAAgC,EACrC,KAAK,0CAA0C,EAC/C,KAAK,iDAAiD,EACtD,KAAK,sCAAsC,EAC3C,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,qCAAqC,EAC1C,KAAK,wCAAwC,EAC7C,KAAK,+CAA+C,EACpD,KAAK,oCAAoC,GAC1C,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,GAC5B,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { planTaskScheduleV1, TaskScheduleError, } from "./scheduler.js";
|
|
2
|
+
export { planParentTaskScheduleV1, scheduleParentTaskGraph, scheduleParentTaskGraphWithJevV1, planTaskKernelGraphV1, scheduleTaskKernelGraph, scheduleTaskKernelGraphWithJevV1, readTaskKernelScheduleReceiptV1, } from "./task-map-scheduler.js";
|
|
3
|
+
export { bindTaskKernelRunDispatchOwnerV1, acquireTaskKernelRunDispatchV1, assertTaskKernelRunDispatchLeaseV1, assertTaskKernelRunDispatchPreSpawnV1, readPiRunSettlementSealV1, releaseTaskKernelRunDispatchV1, validateTaskKernelRunDispatchStopProofV1, } from "./task-kernel-admission.js";
|
|
4
|
+
export { compareTaskKernelWaveDispatchV1, dispatchTaskKernelWaveV1, } from "./task-kernel-wave-dispatch.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pactile/scheduler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAYlB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,+BAA+B,GAYhC,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EACrC,yBAAyB,EACzB,8BAA8B,EAC9B,wCAAwC,GAgBzC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,GAkBzB,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface ProjectWriteLeaseRecordV1 {
|
|
2
|
+
id: string;
|
|
3
|
+
pid?: number;
|
|
4
|
+
child_pid?: number;
|
|
5
|
+
durable?: boolean;
|
|
6
|
+
owner_kind?: "parent-child" | "task-kernel-v2-run";
|
|
7
|
+
parent?: string;
|
|
8
|
+
child?: string;
|
|
9
|
+
task_id?: string;
|
|
10
|
+
run_id?: string;
|
|
11
|
+
schedule_receipt_fingerprint?: string;
|
|
12
|
+
touches: string[];
|
|
13
|
+
authorized_conflicts?: {
|
|
14
|
+
taskIds: readonly [string, string];
|
|
15
|
+
approvedBy: string;
|
|
16
|
+
authorizationRef: string;
|
|
17
|
+
integrationOwner?: string;
|
|
18
|
+
integrationPlan: string;
|
|
19
|
+
}[];
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface LocatedProjectWriteLeaseV1 {
|
|
23
|
+
file: string;
|
|
24
|
+
lease: ProjectWriteLeaseRecordV1;
|
|
25
|
+
}
|
|
26
|
+
/** Serializes all P37 active-writer admission decisions for one project root. */
|
|
27
|
+
export declare function withProjectSchedulerMutex<T>(rootValue: string, action: () => T): T;
|
|
28
|
+
/** Reads both legacy Parent lease folders and the V2 project-level lease folder. Call under withProjectSchedulerMutex. */
|
|
29
|
+
export declare function listProjectWriteLeases(rootValue: string): LocatedProjectWriteLeaseV1[];
|
|
30
|
+
/** Canonicalizes concrete project-relative writes. Missing scope is a wildcard. */
|
|
31
|
+
export declare function normalizeProjectWriteSet(values: readonly string[] | null | undefined): string[];
|
|
32
|
+
export declare function projectWriteSetsConflict(left: readonly string[], right: readonly string[]): boolean;
|
|
33
|
+
export declare function projectActiveLeasePath(rootValue: string, leaseId: string): string;
|
|
34
|
+
export declare function projectLeaseHistoryPath(rootValue: string, leaseId: string): string;
|
|
35
|
+
//# sourceMappingURL=project-lease-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-lease-store.d.ts","sourceRoot":"","sources":["../../../src/pactile/scheduler/project-lease-store.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,GAAG,oBAAoB,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oBAAoB,CAAC,EAAE;QACrB,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,UAAU,EAAE,MAAM,CAAC;QACnB,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;IACJ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,yBAAyB,CAAC;CAClC;AAgBD,iFAAiF;AACjF,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,GACd,CAAC,CAwDH;AAsBD,0HAA0H;AAC1H,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,GAChB,0BAA0B,EAAE,CAwC9B;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC3C,MAAM,EAAE,CA0CV;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,OAAO,CAaT;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,MAAM,CAgBR;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,MAAM,CAgBR"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
function alive(pid) {
|
|
4
|
+
if (!Number.isInteger(pid) || Number(pid) <= 0)
|
|
5
|
+
return false;
|
|
6
|
+
try {
|
|
7
|
+
process.kill(Number(pid), 0);
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function waitBriefly() {
|
|
15
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 10);
|
|
16
|
+
}
|
|
17
|
+
/** Serializes all P37 active-writer admission decisions for one project root. */
|
|
18
|
+
export function withProjectSchedulerMutex(rootValue, action) {
|
|
19
|
+
const root = path.resolve(rootValue);
|
|
20
|
+
const mutex = path.join(root, ".pactile", ".runtime", "scheduler", "project-mutex");
|
|
21
|
+
fs.mkdirSync(path.dirname(mutex), { recursive: true });
|
|
22
|
+
let acquired = false;
|
|
23
|
+
for (let attempt = 0; attempt < 200; attempt += 1) {
|
|
24
|
+
try {
|
|
25
|
+
fs.mkdirSync(mutex);
|
|
26
|
+
acquired = true;
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
if (error.code !== "EEXIST")
|
|
31
|
+
throw error;
|
|
32
|
+
const ownerFile = path.join(mutex, "owner.json");
|
|
33
|
+
let owner = {};
|
|
34
|
+
let modifiedAt = Date.now();
|
|
35
|
+
try {
|
|
36
|
+
owner = JSON.parse(fs.readFileSync(ownerFile, "utf8"));
|
|
37
|
+
modifiedAt = fs.statSync(mutex).mtimeMs;
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
try {
|
|
41
|
+
modifiedAt = fs.statSync(mutex).mtimeMs;
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (!alive(owner.pid) && Date.now() - modifiedAt > 5_000) {
|
|
48
|
+
fs.rmSync(ownerFile, { force: true });
|
|
49
|
+
try {
|
|
50
|
+
fs.rmdirSync(mutex);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
/* Another process took the expired mutex. */
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (attempt === 199)
|
|
57
|
+
throw new Error("Project scheduler lock timed out");
|
|
58
|
+
waitBriefly();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (!acquired)
|
|
62
|
+
throw new Error("Project scheduler lock timed out");
|
|
63
|
+
const ownerFile = path.join(mutex, "owner.json");
|
|
64
|
+
try {
|
|
65
|
+
fs.writeFileSync(ownerFile, JSON.stringify({ pid: process.pid }), {
|
|
66
|
+
mode: 0o600,
|
|
67
|
+
});
|
|
68
|
+
return action();
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
fs.rmSync(ownerFile, { force: true });
|
|
72
|
+
fs.rmdirSync(mutex);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function readLease(file) {
|
|
76
|
+
const value = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
77
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
78
|
+
throw new Error(`Invalid project write lease: ${file}`);
|
|
79
|
+
const lease = value;
|
|
80
|
+
if (typeof lease.id !== "string" ||
|
|
81
|
+
!lease.id ||
|
|
82
|
+
!Array.isArray(lease.touches) ||
|
|
83
|
+
lease.touches.some((touch) => typeof touch !== "string")) {
|
|
84
|
+
throw new Error(`Invalid project write lease: ${file}`);
|
|
85
|
+
}
|
|
86
|
+
// Normalize legacy leases in memory so older casing/path forms cannot bypass
|
|
87
|
+
// conflicts with newly admitted writers. An empty legacy scope is unknown,
|
|
88
|
+
// so normalizeProjectWriteSet conservatively treats it as a project-wide
|
|
89
|
+
// write. Do not rewrite the persisted compatibility record.
|
|
90
|
+
return { ...lease, touches: normalizeProjectWriteSet(lease.touches) };
|
|
91
|
+
}
|
|
92
|
+
/** Reads both legacy Parent lease folders and the V2 project-level lease folder. Call under withProjectSchedulerMutex. */
|
|
93
|
+
export function listProjectWriteLeases(rootValue) {
|
|
94
|
+
const root = path.resolve(rootValue);
|
|
95
|
+
const folders = [];
|
|
96
|
+
const tasksRoot = path.join(root, ".pactile", "tasks");
|
|
97
|
+
if (fs.existsSync(tasksRoot)) {
|
|
98
|
+
for (const entry of fs.readdirSync(tasksRoot, { withFileTypes: true })) {
|
|
99
|
+
if (!entry.isDirectory() ||
|
|
100
|
+
["archive", "locale", "templates"].includes(entry.name))
|
|
101
|
+
continue;
|
|
102
|
+
const folder = path.join(tasksRoot, entry.name, "parallel", "active");
|
|
103
|
+
if (fs.existsSync(folder))
|
|
104
|
+
folders.push(folder);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const projectActive = path.join(root, ".pactile", ".runtime", "scheduler", "active");
|
|
108
|
+
if (fs.existsSync(projectActive))
|
|
109
|
+
folders.push(projectActive);
|
|
110
|
+
const leases = [];
|
|
111
|
+
for (const folder of folders.sort()) {
|
|
112
|
+
for (const name of fs
|
|
113
|
+
.readdirSync(folder)
|
|
114
|
+
.filter((entry) => entry.endsWith(".json"))
|
|
115
|
+
.sort()) {
|
|
116
|
+
const file = path.join(folder, name);
|
|
117
|
+
const lease = readLease(file);
|
|
118
|
+
if (!lease.durable && !alive(lease.pid) && !alive(lease.child_pid)) {
|
|
119
|
+
fs.rmSync(file, { force: true });
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
leases.push({ file, lease });
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return leases;
|
|
126
|
+
}
|
|
127
|
+
/** Canonicalizes concrete project-relative writes. Missing scope is a wildcard. */
|
|
128
|
+
export function normalizeProjectWriteSet(values) {
|
|
129
|
+
if (!values?.length)
|
|
130
|
+
return ["*"];
|
|
131
|
+
if (values.length === 1 && values[0] === "*")
|
|
132
|
+
return ["*"];
|
|
133
|
+
return [
|
|
134
|
+
...new Set(values.map((value) => {
|
|
135
|
+
if (typeof value !== "string")
|
|
136
|
+
throw new Error("write set must contain paths");
|
|
137
|
+
const original = value.trim();
|
|
138
|
+
const normalized = original
|
|
139
|
+
.replaceAll("\\", "/")
|
|
140
|
+
.replace(/^\.\//, "")
|
|
141
|
+
.replace(/\/$/, "")
|
|
142
|
+
.normalize("NFC");
|
|
143
|
+
const segments = normalized.split("/");
|
|
144
|
+
const hasWindowsAlternateDataStream = process.platform === "win32" &&
|
|
145
|
+
segments.some((segment) => segment.includes(":"));
|
|
146
|
+
if (!normalized ||
|
|
147
|
+
normalized === "." ||
|
|
148
|
+
normalized.startsWith("/") ||
|
|
149
|
+
/^[A-Za-z]:/.test(normalized) ||
|
|
150
|
+
hasWindowsAlternateDataStream ||
|
|
151
|
+
normalized.includes("*") ||
|
|
152
|
+
normalized.includes("?") ||
|
|
153
|
+
normalized.includes("[") ||
|
|
154
|
+
normalized.includes("]") ||
|
|
155
|
+
segments.some((segment) => !segment || segment === "." || segment === "..")) {
|
|
156
|
+
throw new Error(`write set must contain concrete project-relative paths: ${value}`);
|
|
157
|
+
}
|
|
158
|
+
return process.platform === "win32"
|
|
159
|
+
? normalized.toLowerCase()
|
|
160
|
+
: normalized;
|
|
161
|
+
})),
|
|
162
|
+
].sort();
|
|
163
|
+
}
|
|
164
|
+
export function projectWriteSetsConflict(left, right) {
|
|
165
|
+
const normalizedLeft = normalizeProjectWriteSet(left);
|
|
166
|
+
const normalizedRight = normalizeProjectWriteSet(right);
|
|
167
|
+
return normalizedLeft.some((a) => normalizedRight.some((b) => a === "*" ||
|
|
168
|
+
b === "*" ||
|
|
169
|
+
a === b ||
|
|
170
|
+
a.startsWith(`${b}/`) ||
|
|
171
|
+
b.startsWith(`${a}/`)));
|
|
172
|
+
}
|
|
173
|
+
export function projectActiveLeasePath(rootValue, leaseId) {
|
|
174
|
+
if (!leaseId ||
|
|
175
|
+
path.basename(leaseId) !== leaseId ||
|
|
176
|
+
leaseId.includes("/") ||
|
|
177
|
+
leaseId.includes("\\"))
|
|
178
|
+
throw new Error("Invalid project write lease ID");
|
|
179
|
+
return path.join(path.resolve(rootValue), ".pactile", ".runtime", "scheduler", "active", `${leaseId}.json`);
|
|
180
|
+
}
|
|
181
|
+
export function projectLeaseHistoryPath(rootValue, leaseId) {
|
|
182
|
+
if (!leaseId ||
|
|
183
|
+
path.basename(leaseId) !== leaseId ||
|
|
184
|
+
leaseId.includes("/") ||
|
|
185
|
+
leaseId.includes("\\"))
|
|
186
|
+
throw new Error("Invalid project write lease ID");
|
|
187
|
+
return path.join(path.resolve(rootValue), ".pactile", ".runtime", "scheduler", "lease-history", `${leaseId}.json`);
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=project-lease-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-lease-store.js","sourceRoot":"","sources":["../../../src/pactile/scheduler/project-lease-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AA6B7B,SAAS,KAAK,CAAC,GAAY;IACzB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC7D,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AACnE,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,yBAAyB,CACvC,SAAiB,EACjB,MAAe;IAEf,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CACrB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,WAAW,EACX,eAAe,CAChB,CAAC;IACF,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE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