@blxzer/pactile 0.5.0
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/CHANGELOG.md +602 -0
- package/LICENSE +235 -0
- package/README.md +115 -0
- package/README.zh-CN.md +115 -0
- package/bin/compat-warning.js +11 -0
- package/bin/cstl.js +6 -0
- package/bin/pactile.js +3 -0
- package/bin/smart-search.js +38 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +362 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/capability-smoke.d.ts +24 -0
- package/dist/commands/capability-smoke.d.ts.map +1 -0
- package/dist/commands/capability-smoke.js +83 -0
- package/dist/commands/capability-smoke.js.map +1 -0
- package/dist/commands/channel/adapters/claude.d.ts +29 -0
- package/dist/commands/channel/adapters/claude.d.ts.map +1 -0
- package/dist/commands/channel/adapters/claude.js +203 -0
- package/dist/commands/channel/adapters/claude.js.map +1 -0
- package/dist/commands/channel/adapters/codex.d.ts +85 -0
- package/dist/commands/channel/adapters/codex.d.ts.map +1 -0
- package/dist/commands/channel/adapters/codex.js +505 -0
- package/dist/commands/channel/adapters/codex.js.map +1 -0
- package/dist/commands/channel/adapters/index.d.ts +84 -0
- package/dist/commands/channel/adapters/index.d.ts.map +1 -0
- package/dist/commands/channel/adapters/index.js +115 -0
- package/dist/commands/channel/adapters/index.js.map +1 -0
- package/dist/commands/channel/adapters/types.d.ts +33 -0
- package/dist/commands/channel/adapters/types.d.ts.map +1 -0
- package/dist/commands/channel/adapters/types.js +2 -0
- package/dist/commands/channel/adapters/types.js.map +1 -0
- package/dist/commands/channel/agent-loader.d.ts +32 -0
- package/dist/commands/channel/agent-loader.d.ts.map +1 -0
- package/dist/commands/channel/agent-loader.js +154 -0
- package/dist/commands/channel/agent-loader.js.map +1 -0
- package/dist/commands/channel/context-loader.d.ts +26 -0
- package/dist/commands/channel/context-loader.d.ts.map +1 -0
- package/dist/commands/channel/context-loader.js +290 -0
- package/dist/commands/channel/context-loader.js.map +1 -0
- package/dist/commands/channel/context.d.ts +16 -0
- package/dist/commands/channel/context.d.ts.map +1 -0
- package/dist/commands/channel/context.js +83 -0
- package/dist/commands/channel/context.js.map +1 -0
- package/dist/commands/channel/create.d.ts +27 -0
- package/dist/commands/channel/create.d.ts.map +1 -0
- package/dist/commands/channel/create.js +39 -0
- package/dist/commands/channel/create.js.map +1 -0
- package/dist/commands/channel/dev-parse-trace.d.ts +14 -0
- package/dist/commands/channel/dev-parse-trace.d.ts.map +1 -0
- package/dist/commands/channel/dev-parse-trace.js +70 -0
- package/dist/commands/channel/dev-parse-trace.js.map +1 -0
- package/dist/commands/channel/guard.d.ts +150 -0
- package/dist/commands/channel/guard.d.ts.map +1 -0
- package/dist/commands/channel/guard.js +475 -0
- package/dist/commands/channel/guard.js.map +1 -0
- package/dist/commands/channel/index.d.ts +3 -0
- package/dist/commands/channel/index.d.ts.map +1 -0
- package/dist/commands/channel/index.js +531 -0
- package/dist/commands/channel/index.js.map +1 -0
- package/dist/commands/channel/interrupt.d.ts +10 -0
- package/dist/commands/channel/interrupt.d.ts.map +1 -0
- package/dist/commands/channel/interrupt.js +22 -0
- package/dist/commands/channel/interrupt.js.map +1 -0
- package/dist/commands/channel/kill.d.ts +7 -0
- package/dist/commands/channel/kill.d.ts.map +1 -0
- package/dist/commands/channel/kill.js +121 -0
- package/dist/commands/channel/kill.js.map +1 -0
- package/dist/commands/channel/list.d.ts +17 -0
- package/dist/commands/channel/list.d.ts.map +1 -0
- package/dist/commands/channel/list.js +233 -0
- package/dist/commands/channel/list.js.map +1 -0
- package/dist/commands/channel/messages.d.ts +15 -0
- package/dist/commands/channel/messages.d.ts.map +1 -0
- package/dist/commands/channel/messages.js +245 -0
- package/dist/commands/channel/messages.js.map +1 -0
- package/dist/commands/channel/rm.d.ts +27 -0
- package/dist/commands/channel/rm.d.ts.map +1 -0
- package/dist/commands/channel/rm.js +216 -0
- package/dist/commands/channel/rm.js.map +1 -0
- package/dist/commands/channel/run.d.ts +30 -0
- package/dist/commands/channel/run.d.ts.map +1 -0
- package/dist/commands/channel/run.js +130 -0
- package/dist/commands/channel/run.js.map +1 -0
- package/dist/commands/channel/send.d.ts +11 -0
- package/dist/commands/channel/send.d.ts.map +1 -0
- package/dist/commands/channel/send.js +24 -0
- package/dist/commands/channel/send.js.map +1 -0
- package/dist/commands/channel/spawn.d.ts +40 -0
- package/dist/commands/channel/spawn.d.ts.map +1 -0
- package/dist/commands/channel/spawn.js +242 -0
- package/dist/commands/channel/spawn.js.map +1 -0
- package/dist/commands/channel/store/events.d.ts +39 -0
- package/dist/commands/channel/store/events.d.ts.map +1 -0
- package/dist/commands/channel/store/events.js +87 -0
- package/dist/commands/channel/store/events.js.map +1 -0
- package/dist/commands/channel/store/filter.d.ts +3 -0
- package/dist/commands/channel/store/filter.d.ts.map +1 -0
- package/dist/commands/channel/store/filter.js +2 -0
- package/dist/commands/channel/store/filter.js.map +1 -0
- package/dist/commands/channel/store/lock.d.ts +23 -0
- package/dist/commands/channel/store/lock.d.ts.map +1 -0
- package/dist/commands/channel/store/lock.js +99 -0
- package/dist/commands/channel/store/lock.js.map +1 -0
- package/dist/commands/channel/store/paths.d.ts +63 -0
- package/dist/commands/channel/store/paths.d.ts.map +1 -0
- package/dist/commands/channel/store/paths.js +247 -0
- package/dist/commands/channel/store/paths.js.map +1 -0
- package/dist/commands/channel/store/schema.d.ts +27 -0
- package/dist/commands/channel/store/schema.d.ts.map +1 -0
- package/dist/commands/channel/store/schema.js +34 -0
- package/dist/commands/channel/store/schema.js.map +1 -0
- package/dist/commands/channel/store/thread-state.d.ts +5 -0
- package/dist/commands/channel/store/thread-state.d.ts.map +1 -0
- package/dist/commands/channel/store/thread-state.js +16 -0
- package/dist/commands/channel/store/thread-state.js.map +1 -0
- package/dist/commands/channel/store/watch.d.ts +19 -0
- package/dist/commands/channel/store/watch.d.ts.map +1 -0
- package/dist/commands/channel/store/watch.js +146 -0
- package/dist/commands/channel/store/watch.js.map +1 -0
- package/dist/commands/channel/supervisor/idle.d.ts +46 -0
- package/dist/commands/channel/supervisor/idle.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/idle.js +72 -0
- package/dist/commands/channel/supervisor/idle.js.map +1 -0
- package/dist/commands/channel/supervisor/inbox.d.ts +30 -0
- package/dist/commands/channel/supervisor/inbox.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/inbox.js +160 -0
- package/dist/commands/channel/supervisor/inbox.js.map +1 -0
- package/dist/commands/channel/supervisor/shutdown.d.ts +68 -0
- package/dist/commands/channel/supervisor/shutdown.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/shutdown.js +146 -0
- package/dist/commands/channel/supervisor/shutdown.js.map +1 -0
- package/dist/commands/channel/supervisor/stdout.d.ts +51 -0
- package/dist/commands/channel/supervisor/stdout.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/stdout.js +121 -0
- package/dist/commands/channel/supervisor/stdout.js.map +1 -0
- package/dist/commands/channel/supervisor/turns.d.ts +31 -0
- package/dist/commands/channel/supervisor/turns.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/turns.js +45 -0
- package/dist/commands/channel/supervisor/turns.js.map +1 -0
- package/dist/commands/channel/supervisor/warning.d.ts +48 -0
- package/dist/commands/channel/supervisor/warning.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/warning.js +77 -0
- package/dist/commands/channel/supervisor/warning.js.map +1 -0
- package/dist/commands/channel/supervisor.d.ts +59 -0
- package/dist/commands/channel/supervisor.d.ts.map +1 -0
- package/dist/commands/channel/supervisor.js +345 -0
- package/dist/commands/channel/supervisor.js.map +1 -0
- package/dist/commands/channel/text-body.d.ts +13 -0
- package/dist/commands/channel/text-body.d.ts.map +1 -0
- package/dist/commands/channel/text-body.js +47 -0
- package/dist/commands/channel/text-body.js.map +1 -0
- package/dist/commands/channel/threads.d.ts +39 -0
- package/dist/commands/channel/threads.d.ts.map +1 -0
- package/dist/commands/channel/threads.js +106 -0
- package/dist/commands/channel/threads.js.map +1 -0
- package/dist/commands/channel/title.d.ts +12 -0
- package/dist/commands/channel/title.d.ts.map +1 -0
- package/dist/commands/channel/title.js +24 -0
- package/dist/commands/channel/title.js.map +1 -0
- package/dist/commands/channel/wait.d.ts +17 -0
- package/dist/commands/channel/wait.d.ts.map +1 -0
- package/dist/commands/channel/wait.js +75 -0
- package/dist/commands/channel/wait.js.map +1 -0
- package/dist/commands/detach.d.ts +7 -0
- package/dist/commands/detach.d.ts.map +1 -0
- package/dist/commands/detach.js +31 -0
- package/dist/commands/detach.js.map +1 -0
- package/dist/commands/init.d.ts +51 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +1660 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/migrate.d.ts +10 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +38 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/purge.d.ts +9 -0
- package/dist/commands/purge.d.ts.map +1 -0
- package/dist/commands/purge.js +29 -0
- package/dist/commands/purge.js.map +1 -0
- package/dist/commands/rollback.d.ts +7 -0
- package/dist/commands/rollback.d.ts.map +1 -0
- package/dist/commands/rollback.js +27 -0
- package/dist/commands/rollback.js.map +1 -0
- package/dist/commands/rollout.d.ts +34 -0
- package/dist/commands/rollout.d.ts.map +1 -0
- package/dist/commands/rollout.js +102 -0
- package/dist/commands/rollout.js.map +1 -0
- package/dist/commands/uninstall.d.ts +23 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +68 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.d.ts +139 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +2459 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/upgrade.d.ts +28 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/upgrade.js +84 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/validate-rules.d.ts +6 -0
- package/dist/commands/validate-rules.d.ts.map +1 -0
- package/dist/commands/validate-rules.js +33 -0
- package/dist/commands/validate-rules.js.map +1 -0
- package/dist/commands/workflow.d.ts +35 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/commands/workflow.js +220 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/configurators/cursor.d.ts +21 -0
- package/dist/configurators/cursor.d.ts.map +1 -0
- package/dist/configurators/cursor.js +51 -0
- package/dist/configurators/cursor.js.map +1 -0
- package/dist/configurators/index.d.ts +68 -0
- package/dist/configurators/index.d.ts.map +1 -0
- package/dist/configurators/index.js +170 -0
- package/dist/configurators/index.js.map +1 -0
- package/dist/configurators/shared.d.ts +200 -0
- package/dist/configurators/shared.d.ts.map +1 -0
- package/dist/configurators/shared.js +602 -0
- package/dist/configurators/shared.js.map +1 -0
- package/dist/configurators/workflow.d.ts +45 -0
- package/dist/configurators/workflow.d.ts.map +1 -0
- package/dist/configurators/workflow.js +256 -0
- package/dist/configurators/workflow.js.map +1 -0
- package/dist/constants/paths.d.ts +93 -0
- package/dist/constants/paths.d.ts.map +1 -0
- package/dist/constants/paths.js +106 -0
- package/dist/constants/paths.js.map +1 -0
- package/dist/constants/version.d.ts +9 -0
- package/dist/constants/version.d.ts.map +1 -0
- package/dist/constants/version.js +15 -0
- package/dist/constants/version.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/index.d.ts +62 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +187 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/manifests/0.1.0.json +9 -0
- package/dist/migrations/manifests/0.1.1.json +9 -0
- package/dist/migrations/manifests/0.1.2.json +9 -0
- package/dist/migrations/manifests/0.1.3.json +9 -0
- package/dist/migrations/manifests/0.1.4.json +9 -0
- package/dist/migrations/manifests/0.2.1.json +9 -0
- package/dist/migrations/manifests/0.2.10.json +374 -0
- package/dist/migrations/manifests/0.2.2.json +9 -0
- package/dist/migrations/manifests/0.2.3.json +9 -0
- package/dist/migrations/manifests/0.2.4.json +9 -0
- package/dist/migrations/manifests/0.2.5.json +9 -0
- package/dist/migrations/manifests/0.2.6.json +9 -0
- package/dist/migrations/manifests/0.2.7.json +9 -0
- package/dist/migrations/manifests/0.2.8.json +9 -0
- package/dist/migrations/manifests/0.2.9.json +9 -0
- package/dist/migrations/manifests/0.3.0.json +89 -0
- package/dist/migrations/manifests/0.3.1.json +32 -0
- package/dist/migrations/manifests/0.3.2.json +16 -0
- package/dist/migrations/manifests/0.3.3.json +9 -0
- package/dist/migrations/manifests/0.3.4.json +9 -0
- package/dist/migrations/manifests/0.3.5.json +9 -0
- package/dist/migrations/manifests/0.3.6.json +9 -0
- package/dist/migrations/manifests/0.4.0.json +9 -0
- package/dist/migrations/manifests/0.4.1.json +9 -0
- package/dist/migrations/manifests/0.4.2.json +9 -0
- package/dist/migrations/manifests/0.4.3.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.0.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.5.json +9 -0
- package/dist/pactile/adapters/codex/index.d.ts +75 -0
- package/dist/pactile/adapters/codex/index.d.ts.map +1 -0
- package/dist/pactile/adapters/codex/index.js +269 -0
- package/dist/pactile/adapters/codex/index.js.map +1 -0
- package/dist/pactile/adapters/cursor/index.d.ts +60 -0
- package/dist/pactile/adapters/cursor/index.d.ts.map +1 -0
- package/dist/pactile/adapters/cursor/index.js +186 -0
- package/dist/pactile/adapters/cursor/index.js.map +1 -0
- package/dist/pactile/adapters/index.d.ts +4 -0
- package/dist/pactile/adapters/index.d.ts.map +1 -0
- package/dist/pactile/adapters/index.js +4 -0
- package/dist/pactile/adapters/index.js.map +1 -0
- package/dist/pactile/adoption/bindings.d.ts +20 -0
- package/dist/pactile/adoption/bindings.d.ts.map +1 -0
- package/dist/pactile/adoption/bindings.js +99 -0
- package/dist/pactile/adoption/bindings.js.map +1 -0
- package/dist/pactile/adoption/discovery.d.ts +8 -0
- package/dist/pactile/adoption/discovery.d.ts.map +1 -0
- package/dist/pactile/adoption/discovery.js +159 -0
- package/dist/pactile/adoption/discovery.js.map +1 -0
- package/dist/pactile/adoption/inventory.d.ts +28 -0
- package/dist/pactile/adoption/inventory.d.ts.map +1 -0
- package/dist/pactile/adoption/inventory.js +261 -0
- package/dist/pactile/adoption/inventory.js.map +1 -0
- package/dist/pactile/adoption/safety.d.ts +19 -0
- package/dist/pactile/adoption/safety.d.ts.map +1 -0
- package/dist/pactile/adoption/safety.js +88 -0
- package/dist/pactile/adoption/safety.js.map +1 -0
- package/dist/pactile/adoption/workflow.d.ts +31 -0
- package/dist/pactile/adoption/workflow.d.ts.map +1 -0
- package/dist/pactile/adoption/workflow.js +259 -0
- package/dist/pactile/adoption/workflow.js.map +1 -0
- package/dist/pactile/compat/cli-options.d.ts +9 -0
- package/dist/pactile/compat/cli-options.d.ts.map +1 -0
- package/dist/pactile/compat/cli-options.js +9 -0
- package/dist/pactile/compat/cli-options.js.map +1 -0
- package/dist/pactile/compat/init-context.d.ts +16 -0
- package/dist/pactile/compat/init-context.d.ts.map +1 -0
- package/dist/pactile/compat/init-context.js +87 -0
- package/dist/pactile/compat/init-context.js.map +1 -0
- package/dist/pactile/compat/legacy-migrations.d.ts +8 -0
- package/dist/pactile/compat/legacy-migrations.d.ts.map +1 -0
- package/dist/pactile/compat/legacy-migrations.js +17 -0
- package/dist/pactile/compat/legacy-migrations.js.map +1 -0
- package/dist/pactile/compat/retired-alternate-client.d.ts +42 -0
- package/dist/pactile/compat/retired-alternate-client.d.ts.map +1 -0
- package/dist/pactile/compat/retired-alternate-client.js +153 -0
- package/dist/pactile/compat/retired-alternate-client.js.map +1 -0
- package/dist/pactile/compat/update-residue.d.ts +4 -0
- package/dist/pactile/compat/update-residue.d.ts.map +1 -0
- package/dist/pactile/compat/update-residue.js +55 -0
- package/dist/pactile/compat/update-residue.js.map +1 -0
- package/dist/pactile/exit/index.d.ts +3 -0
- package/dist/pactile/exit/index.d.ts.map +1 -0
- package/dist/pactile/exit/index.js +3 -0
- package/dist/pactile/exit/index.js.map +1 -0
- package/dist/pactile/exit/receipt.d.ts +23 -0
- package/dist/pactile/exit/receipt.d.ts.map +1 -0
- package/dist/pactile/exit/receipt.js +64 -0
- package/dist/pactile/exit/receipt.js.map +1 -0
- package/dist/pactile/exit/service.d.ts +107 -0
- package/dist/pactile/exit/service.d.ts.map +1 -0
- package/dist/pactile/exit/service.js +774 -0
- package/dist/pactile/exit/service.js.map +1 -0
- package/dist/pactile/index.d.ts +26 -0
- package/dist/pactile/index.d.ts.map +1 -0
- package/dist/pactile/index.js +22 -0
- package/dist/pactile/index.js.map +1 -0
- package/dist/pactile/lifecycle/command-runner.d.ts +26 -0
- package/dist/pactile/lifecycle/command-runner.d.ts.map +1 -0
- package/dist/pactile/lifecycle/command-runner.js +129 -0
- package/dist/pactile/lifecycle/command-runner.js.map +1 -0
- package/dist/pactile/lifecycle/default-adapters.d.ts +5 -0
- package/dist/pactile/lifecycle/default-adapters.d.ts.map +1 -0
- package/dist/pactile/lifecycle/default-adapters.js +136 -0
- package/dist/pactile/lifecycle/default-adapters.js.map +1 -0
- package/dist/pactile/lifecycle/index.d.ts +6 -0
- package/dist/pactile/lifecycle/index.d.ts.map +1 -0
- package/dist/pactile/lifecycle/index.js +6 -0
- package/dist/pactile/lifecycle/index.js.map +1 -0
- package/dist/pactile/lifecycle/legacy-import.d.ts +16 -0
- package/dist/pactile/lifecycle/legacy-import.d.ts.map +1 -0
- package/dist/pactile/lifecycle/legacy-import.js +228 -0
- package/dist/pactile/lifecycle/legacy-import.js.map +1 -0
- package/dist/pactile/lifecycle/orchestrator.d.ts +109 -0
- package/dist/pactile/lifecycle/orchestrator.d.ts.map +1 -0
- package/dist/pactile/lifecycle/orchestrator.js +1030 -0
- package/dist/pactile/lifecycle/orchestrator.js.map +1 -0
- package/dist/pactile/lifecycle/project-files.d.ts +28 -0
- package/dist/pactile/lifecycle/project-files.d.ts.map +1 -0
- package/dist/pactile/lifecycle/project-files.js +297 -0
- package/dist/pactile/lifecycle/project-files.js.map +1 -0
- package/dist/pactile/middleware/index.d.ts +3 -0
- package/dist/pactile/middleware/index.d.ts.map +1 -0
- package/dist/pactile/middleware/index.js +2 -0
- package/dist/pactile/middleware/index.js.map +1 -0
- package/dist/pactile/middleware/manifest-loader.d.ts +22 -0
- package/dist/pactile/middleware/manifest-loader.d.ts.map +1 -0
- package/dist/pactile/middleware/manifest-loader.js +228 -0
- package/dist/pactile/middleware/manifest-loader.js.map +1 -0
- package/dist/pactile/migration/index.d.ts +2 -0
- package/dist/pactile/migration/index.d.ts.map +1 -0
- package/dist/pactile/migration/index.js +2 -0
- package/dist/pactile/migration/index.js.map +1 -0
- package/dist/pactile/migration/transaction.d.ts +54 -0
- package/dist/pactile/migration/transaction.d.ts.map +1 -0
- package/dist/pactile/migration/transaction.js +445 -0
- package/dist/pactile/migration/transaction.js.map +1 -0
- package/dist/pactile/projection/managed-block.d.ts +32 -0
- package/dist/pactile/projection/managed-block.d.ts.map +1 -0
- package/dist/pactile/projection/managed-block.js +78 -0
- package/dist/pactile/projection/managed-block.js.map +1 -0
- package/dist/pactile/projection/planner.d.ts +65 -0
- package/dist/pactile/projection/planner.d.ts.map +1 -0
- package/dist/pactile/projection/planner.js +349 -0
- package/dist/pactile/projection/planner.js.map +1 -0
- package/dist/pactile/projection/shared/index.d.ts +38 -0
- package/dist/pactile/projection/shared/index.d.ts.map +1 -0
- package/dist/pactile/projection/shared/index.js +186 -0
- package/dist/pactile/projection/shared/index.js.map +1 -0
- package/dist/pactile/projection/store.d.ts +72 -0
- package/dist/pactile/projection/store.d.ts.map +1 -0
- package/dist/pactile/projection/store.js +669 -0
- package/dist/pactile/projection/store.js.map +1 -0
- package/dist/pactile/projection/structured-merge.d.ts +11 -0
- package/dist/pactile/projection/structured-merge.d.ts.map +1 -0
- package/dist/pactile/projection/structured-merge.js +347 -0
- package/dist/pactile/projection/structured-merge.js.map +1 -0
- package/dist/pactile/providers/index.d.ts +3 -0
- package/dist/pactile/providers/index.d.ts.map +1 -0
- package/dist/pactile/providers/index.js +3 -0
- package/dist/pactile/providers/index.js.map +1 -0
- package/dist/pactile/providers/probes.d.ts +55 -0
- package/dist/pactile/providers/probes.d.ts.map +1 -0
- package/dist/pactile/providers/probes.js +164 -0
- package/dist/pactile/providers/probes.js.map +1 -0
- package/dist/pactile/registry.d.ts +64 -0
- package/dist/pactile/registry.d.ts.map +1 -0
- package/dist/pactile/registry.js +196 -0
- package/dist/pactile/registry.js.map +1 -0
- package/dist/pactile/retrieval/boundary.d.ts +18 -0
- package/dist/pactile/retrieval/boundary.d.ts.map +1 -0
- package/dist/pactile/retrieval/boundary.js +113 -0
- package/dist/pactile/retrieval/boundary.js.map +1 -0
- package/dist/pactile/retrieval/evidence.d.ts +9 -0
- package/dist/pactile/retrieval/evidence.d.ts.map +1 -0
- package/dist/pactile/retrieval/evidence.js +327 -0
- package/dist/pactile/retrieval/evidence.js.map +1 -0
- package/dist/pactile/retrieval/index.d.ts +4 -0
- package/dist/pactile/retrieval/index.d.ts.map +1 -0
- package/dist/pactile/retrieval/index.js +4 -0
- package/dist/pactile/retrieval/index.js.map +1 -0
- package/dist/pactile/retrieval/planner.d.ts +23 -0
- package/dist/pactile/retrieval/planner.d.ts.map +1 -0
- package/dist/pactile/retrieval/planner.js +702 -0
- package/dist/pactile/retrieval/planner.js.map +1 -0
- package/dist/pactile/retrieval/types.d.ts +108 -0
- package/dist/pactile/retrieval/types.d.ts.map +1 -0
- package/dist/pactile/retrieval/types.js +36 -0
- package/dist/pactile/retrieval/types.js.map +1 -0
- package/dist/pactile/runtime/case-fold.d.ts +2 -0
- package/dist/pactile/runtime/case-fold.d.ts.map +1 -0
- package/dist/pactile/runtime/case-fold.js +31 -0
- package/dist/pactile/runtime/case-fold.js.map +1 -0
- package/dist/pactile/runtime/index.d.ts +8 -0
- package/dist/pactile/runtime/index.d.ts.map +1 -0
- package/dist/pactile/runtime/index.js +5 -0
- package/dist/pactile/runtime/index.js.map +1 -0
- package/dist/pactile/runtime/json-api.d.ts +15 -0
- package/dist/pactile/runtime/json-api.d.ts.map +1 -0
- package/dist/pactile/runtime/json-api.js +68 -0
- package/dist/pactile/runtime/json-api.js.map +1 -0
- package/dist/pactile/runtime/paths.d.ts +59 -0
- package/dist/pactile/runtime/paths.d.ts.map +1 -0
- package/dist/pactile/runtime/paths.js +201 -0
- package/dist/pactile/runtime/paths.js.map +1 -0
- package/dist/pactile/runtime/stores.d.ts +54 -0
- package/dist/pactile/runtime/stores.d.ts.map +1 -0
- package/dist/pactile/runtime/stores.js +375 -0
- package/dist/pactile/runtime/stores.js.map +1 -0
- package/dist/pactile/runtime/unicode-nfc-data.d.ts +12 -0
- package/dist/pactile/runtime/unicode-nfc-data.d.ts.map +1 -0
- package/dist/pactile/runtime/unicode-nfc-data.js +8 -0
- package/dist/pactile/runtime/unicode-nfc-data.js.map +1 -0
- package/dist/pactile/runtime/unicode-nfc.d.ts +3 -0
- package/dist/pactile/runtime/unicode-nfc.d.ts.map +1 -0
- package/dist/pactile/runtime/unicode-nfc.js +77 -0
- package/dist/pactile/runtime/unicode-nfc.js.map +1 -0
- package/dist/pactile/tiles/catalog.d.ts +35 -0
- package/dist/pactile/tiles/catalog.d.ts.map +1 -0
- package/dist/pactile/tiles/catalog.js +235 -0
- package/dist/pactile/tiles/catalog.js.map +1 -0
- package/dist/pactile/tiles/compiler.d.ts +54 -0
- package/dist/pactile/tiles/compiler.d.ts.map +1 -0
- package/dist/pactile/tiles/compiler.js +270 -0
- package/dist/pactile/tiles/compiler.js.map +1 -0
- package/dist/pactile/tiles/content/baseline/index.d.ts +5 -0
- package/dist/pactile/tiles/content/baseline/index.d.ts.map +1 -0
- package/dist/pactile/tiles/content/baseline/index.js +115 -0
- package/dist/pactile/tiles/content/baseline/index.js.map +1 -0
- package/dist/pactile/tiles/content/index.d.ts +4 -0
- package/dist/pactile/tiles/content/index.d.ts.map +1 -0
- package/dist/pactile/tiles/content/index.js +4 -0
- package/dist/pactile/tiles/content/index.js.map +1 -0
- package/dist/pactile/tiles/content/ondemand/index.d.ts +5 -0
- package/dist/pactile/tiles/content/ondemand/index.d.ts.map +1 -0
- package/dist/pactile/tiles/content/ondemand/index.js +184 -0
- package/dist/pactile/tiles/content/ondemand/index.js.map +1 -0
- package/dist/pactile/tiles/content/source.d.ts +29 -0
- package/dist/pactile/tiles/content/source.d.ts.map +1 -0
- package/dist/pactile/tiles/content/source.js +86 -0
- package/dist/pactile/tiles/content/source.js.map +1 -0
- package/dist/pactile/tiles/loader.d.ts +31 -0
- package/dist/pactile/tiles/loader.d.ts.map +1 -0
- package/dist/pactile/tiles/loader.js +139 -0
- package/dist/pactile/tiles/loader.js.map +1 -0
- package/dist/pactile/tiles/safe-yaml.d.ts +11 -0
- package/dist/pactile/tiles/safe-yaml.d.ts.map +1 -0
- package/dist/pactile/tiles/safe-yaml.js +212 -0
- package/dist/pactile/tiles/safe-yaml.js.map +1 -0
- package/dist/templates/common/bundled-skills/pactile-check/SKILL.md +161 -0
- package/dist/templates/common/bundled-skills/pactile-check/references/fowler-12-smells.md +28 -0
- package/dist/templates/common/bundled-skills/pactile-handoff/SKILL.md +117 -0
- package/dist/templates/common/bundled-skills/pactile-meta/SKILL.md +75 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/add-project-local-conventions.md +83 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-agents.md +47 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-context-loading.md +84 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-hooks.md +57 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-skills-or-commands.md +77 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-spec-structure.md +83 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-task-lifecycle.md +88 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/change-workflow.md +65 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/customize-local/overview.md +55 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/context-injection.md +68 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/generated-files.md +83 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/overview.md +51 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/spec-system.md +102 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/task-system.md +133 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/workflow.md +75 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/local-architecture/workspace-memory.md +71 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/agents.md +69 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/hooks-and-settings.md +59 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/overview.md +45 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/platform-map.md +45 -0
- package/dist/templates/common/bundled-skills/pactile-meta/references/platform-files/skills-and-commands.md +108 -0
- package/dist/templates/common/bundled-skills/pactile-micro-grill/SKILL.md +68 -0
- package/dist/templates/common/bundled-skills/pactile-skill-creator/SKILL.md +47 -0
- package/dist/templates/common/bundled-skills/pactile-skill-creator/references/authoring-rules.md +171 -0
- package/dist/templates/common/bundled-skills/pactile-skill-creator/references/general-authoring.md +189 -0
- package/dist/templates/common/bundled-skills/pactile-skill-creator/references/pactile-skill-locations.md +52 -0
- package/dist/templates/common/bundled-skills/pactile-skill-creator/references/review-checklist.md +52 -0
- package/dist/templates/common/bundled-skills/pactile-spec-bootstrap/SKILL.md +41 -0
- package/dist/templates/common/bundled-skills/pactile-spec-bootstrap/references/mcp-setup.md +90 -0
- package/dist/templates/common/bundled-skills/pactile-spec-bootstrap/references/repository-analysis.md +59 -0
- package/dist/templates/common/bundled-skills/pactile-spec-bootstrap/references/spec-task-planning.md +61 -0
- package/dist/templates/common/bundled-skills/pactile-spec-bootstrap/references/spec-writing.md +70 -0
- package/dist/templates/common/bundled-skills/smart-search-cli/SKILL.md +393 -0
- package/dist/templates/common/bundled-skills/smart-search-cli/agents/openai.yaml +3 -0
- package/dist/templates/common/bundled-skills/smart-search-cli/examples/batch-search.md +98 -0
- package/dist/templates/common/bundled-skills/smart-search-cli/examples/evidence-gathering.md +89 -0
- package/dist/templates/common/bundled-skills/smart-search-cli/references/cli-contract.md +323 -0
- package/dist/templates/common/commands/continue.md +62 -0
- package/dist/templates/common/commands/finish-work.md +82 -0
- package/dist/templates/common/commands/start.md +66 -0
- package/dist/templates/common/index.d.ts +68 -0
- package/dist/templates/common/index.d.ts.map +1 -0
- package/dist/templates/common/index.js +123 -0
- package/dist/templates/common/index.js.map +1 -0
- package/dist/templates/common/optional-skills/chrome-cdp/SKILL.md +179 -0
- package/dist/templates/common/optional-skills/chrome-cdp/examples/fetch-hook-api-capture.md +149 -0
- package/dist/templates/common/optional-skills/chrome-cdp/scripts/cdp.mjs +904 -0
- package/dist/templates/common/skills/before-dev.md +35 -0
- package/dist/templates/common/skills/brainstorm.md +204 -0
- package/dist/templates/common/skills/break-loop.md +125 -0
- package/dist/templates/common/skills/update-spec.md +364 -0
- package/dist/templates/cursor/agents/pactile-check.md +58 -0
- package/dist/templates/cursor/agents/pactile-implement.md +56 -0
- package/dist/templates/cursor/agents/pactile-research.md +51 -0
- package/dist/templates/cursor/commands/handoff.md +101 -0
- package/dist/templates/cursor/fixtures/expected-rules.d.ts +14 -0
- package/dist/templates/cursor/fixtures/expected-rules.d.ts.map +1 -0
- package/dist/templates/cursor/fixtures/expected-rules.js +20 -0
- package/dist/templates/cursor/fixtures/expected-rules.js.map +1 -0
- package/dist/templates/cursor/hooks.json +52 -0
- package/dist/templates/cursor/index.d.ts +19 -0
- package/dist/templates/cursor/index.d.ts.map +1 -0
- package/dist/templates/cursor/index.js +19 -0
- package/dist/templates/cursor/index.js.map +1 -0
- package/dist/templates/cursor/rules/pactile-bootstrap.mdc +18 -0
- package/dist/templates/cursor/worktrees.json +11 -0
- package/dist/templates/extract.d.ts +38 -0
- package/dist/templates/extract.d.ts.map +1 -0
- package/dist/templates/extract.js +120 -0
- package/dist/templates/extract.js.map +1 -0
- package/dist/templates/markdown/agents.md +14 -0
- package/dist/templates/markdown/framework/artifact-locale-guide.md.txt +93 -0
- package/dist/templates/markdown/framework/cursor-context-injection-guide.md.txt +85 -0
- package/dist/templates/markdown/framework/cursor-native-modes-guide.md.txt +239 -0
- package/dist/templates/markdown/framework/cursor-semantic-compliance.md.txt +41 -0
- package/dist/templates/markdown/framework/cursor-subagent-policy.md.txt +90 -0
- package/dist/templates/markdown/framework/dogfood-only-surfaces.md.txt +28 -0
- package/dist/templates/markdown/framework/execution-strategy.md.txt +45 -0
- package/dist/templates/markdown/framework/index.md.txt +31 -0
- package/dist/templates/markdown/framework/injection-budget-guide.md.txt +111 -0
- package/dist/templates/markdown/framework/internal-skills-cursor-reachability.md.txt +45 -0
- package/dist/templates/markdown/framework/middleware-protocol.md.txt +238 -0
- package/dist/templates/markdown/framework/parallel-first-execution.md.txt +116 -0
- package/dist/templates/markdown/framework/prd-grill-frontier.md.txt +105 -0
- package/dist/templates/markdown/framework/release-boundary.md.txt +30 -0
- package/dist/templates/markdown/framework/retrieval-daily-guide.md.txt +199 -0
- package/dist/templates/markdown/framework/upgrade.md.txt +15 -0
- package/dist/templates/markdown/framework/verification-strength-guide.md.txt +185 -0
- package/dist/templates/markdown/gitignore.txt +15 -0
- package/dist/templates/markdown/index.d.ts +59 -0
- package/dist/templates/markdown/index.d.ts.map +1 -0
- package/dist/templates/markdown/index.js +144 -0
- package/dist/templates/markdown/index.js.map +1 -0
- package/dist/templates/markdown/prompts/run-semantic-slice-12.md.txt +25 -0
- package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/backend/error-handling.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/index.md.txt +38 -0
- package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +59 -0
- package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/index.md.txt +39 -0
- package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/state-management.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/type-safety.md.txt +51 -0
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +174 -0
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +162 -0
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +634 -0
- package/dist/templates/markdown/spec/guides/debug-loop-guide.md.txt +227 -0
- package/dist/templates/markdown/spec/guides/durable-learning-decision-guide.md.txt +76 -0
- package/dist/templates/markdown/spec/guides/e2e-walkthrough-guide.md.txt +93 -0
- package/dist/templates/markdown/spec/guides/index.md.txt +131 -0
- package/dist/templates/markdown/spec/guides/prototype-guide.md.txt +139 -0
- package/dist/templates/markdown/spec/guides/test-discipline-guide.md.txt +179 -0
- package/dist/templates/markdown/workspace-index.md +125 -0
- package/dist/templates/markdown/worktree.yaml.txt +58 -0
- package/dist/templates/pactile/CONTEXT.md +113 -0
- package/dist/templates/pactile/config/execution-strategy-rules.json +31 -0
- package/dist/templates/pactile/config.yaml +130 -0
- package/dist/templates/pactile/docs/adr/README.md +21 -0
- package/dist/templates/pactile/gitignore.txt +35 -0
- package/dist/templates/pactile/index.d.ts +134 -0
- package/dist/templates/pactile/index.d.ts.map +1 -0
- package/dist/templates/pactile/index.js +316 -0
- package/dist/templates/pactile/index.js.map +1 -0
- package/dist/templates/pactile/modules/approval-personal/contract.md +43 -0
- package/dist/templates/pactile/modules/candidate-pool/contract.md +37 -0
- package/dist/templates/pactile/modules/catalog.d.ts +32 -0
- package/dist/templates/pactile/modules/catalog.d.ts.map +1 -0
- package/dist/templates/pactile/modules/catalog.js +46 -0
- package/dist/templates/pactile/modules/catalog.js.map +1 -0
- package/dist/templates/pactile/modules/close-basic/contract.md +38 -0
- package/dist/templates/pactile/modules/context-progressive/contract.md +44 -0
- package/dist/templates/pactile/modules/debug-recovery/contract.md +44 -0
- package/dist/templates/pactile/modules/define-basic/contract.md +39 -0
- package/dist/templates/pactile/modules/define-extended/contract.md +45 -0
- package/dist/templates/pactile/modules/execute-agent/contract.md +38 -0
- package/dist/templates/pactile/modules/independent-check/contract.md +35 -0
- package/dist/templates/pactile/modules/index.json +133 -0
- package/dist/templates/pactile/modules/intake-basic/contract.md +34 -0
- package/dist/templates/pactile/modules/observability-local/contract.md +31 -0
- package/dist/templates/pactile/modules/parent-child/contract.md +45 -0
- package/dist/templates/pactile/modules/personal-memory/contract.md +56 -0
- package/dist/templates/pactile/modules/retention-storage/contract.md +43 -0
- package/dist/templates/pactile/modules/retrieval-extended/contract.md +77 -0
- package/dist/templates/pactile/modules/session-transfer/contract.md +41 -0
- package/dist/templates/pactile/modules/spec-learning/contract.md +50 -0
- package/dist/templates/pactile/modules/vcs-integration/contract.md +46 -0
- package/dist/templates/pactile/modules/verify-basic/contract.md +38 -0
- package/dist/templates/pactile/modules/worker-orchestration/contract.md +47 -0
- package/dist/templates/pactile/pool/README.md +149 -0
- package/dist/templates/pactile/pool/items/.gitkeep +0 -0
- package/dist/templates/pactile/pool/plan.md +50 -0
- package/dist/templates/pactile/scripts/__init__.py +5 -0
- package/dist/templates/pactile/scripts/add_session.py +547 -0
- package/dist/templates/pactile/scripts/build_context_pack.py +17 -0
- package/dist/templates/pactile/scripts/build_retrieval_pack.py +376 -0
- package/dist/templates/pactile/scripts/codegraph_session_smoke.py +76 -0
- package/dist/templates/pactile/scripts/common/__init__.py +103 -0
- package/dist/templates/pactile/scripts/common/active_task.py +576 -0
- package/dist/templates/pactile/scripts/common/adapter_middleware.py +1373 -0
- package/dist/templates/pactile/scripts/common/artifact_locale.py +303 -0
- package/dist/templates/pactile/scripts/common/artifact_search.py +587 -0
- package/dist/templates/pactile/scripts/common/cli_adapter.py +135 -0
- package/dist/templates/pactile/scripts/common/cli_environment.py +155 -0
- package/dist/templates/pactile/scripts/common/codebase_retrieval_router.py +1339 -0
- package/dist/templates/pactile/scripts/common/config.py +497 -0
- package/dist/templates/pactile/scripts/common/context_pack.py +371 -0
- package/dist/templates/pactile/scripts/common/cursor_retrieval_env.py +31 -0
- package/dist/templates/pactile/scripts/common/developer.py +190 -0
- package/dist/templates/pactile/scripts/common/execution_strategy.py +268 -0
- package/dist/templates/pactile/scripts/common/full_quality.py +237 -0
- package/dist/templates/pactile/scripts/common/git.py +37 -0
- package/dist/templates/pactile/scripts/common/git_context.py +198 -0
- package/dist/templates/pactile/scripts/common/injection_budget.py +317 -0
- package/dist/templates/pactile/scripts/common/io.py +37 -0
- package/dist/templates/pactile/scripts/common/kernel_command.py +369 -0
- package/dist/templates/pactile/scripts/common/lite_context.py +280 -0
- package/dist/templates/pactile/scripts/common/log.py +45 -0
- package/dist/templates/pactile/scripts/common/ondemand_topology.py +419 -0
- package/dist/templates/pactile/scripts/common/packages_context.py +239 -0
- package/dist/templates/pactile/scripts/common/pactile_config.py +131 -0
- package/dist/templates/pactile/scripts/common/parallel_declaration.py +369 -0
- package/dist/templates/pactile/scripts/common/parent_orchestration.py +1198 -0
- package/dist/templates/pactile/scripts/common/paths.py +756 -0
- package/dist/templates/pactile/scripts/common/pool_refs.py +119 -0
- package/dist/templates/pactile/scripts/common/pool_slice.py +269 -0
- package/dist/templates/pactile/scripts/common/pool_store.py +766 -0
- package/dist/templates/pactile/scripts/common/project_file_stats.py +91 -0
- package/dist/templates/pactile/scripts/common/retrieval_adapter_metadata.py +943 -0
- package/dist/templates/pactile/scripts/common/retrieval_agent_instructions.py +123 -0
- package/dist/templates/pactile/scripts/common/retrieval_evidence.py +915 -0
- package/dist/templates/pactile/scripts/common/retrieval_pack.py +422 -0
- package/dist/templates/pactile/scripts/common/retrieval_pack_context.py +122 -0
- package/dist/templates/pactile/scripts/common/retrieval_plan_gate.py +61 -0
- package/dist/templates/pactile/scripts/common/retrieval_result_ranking.py +104 -0
- package/dist/templates/pactile/scripts/common/retrieval_tool_classification.py +166 -0
- package/dist/templates/pactile/scripts/common/safe_commit.py +285 -0
- package/dist/templates/pactile/scripts/common/semantic_plan_gate.py +53 -0
- package/dist/templates/pactile/scripts/common/session_context.py +1213 -0
- package/dist/templates/pactile/scripts/common/session_memory.py +386 -0
- package/dist/templates/pactile/scripts/common/session_pack.py +886 -0
- package/dist/templates/pactile/scripts/common/smart_search_evidence.py +514 -0
- package/dist/templates/pactile/scripts/common/smart_search_resolve.py +150 -0
- package/dist/templates/pactile/scripts/common/subagent_dispatch.py +592 -0
- package/dist/templates/pactile/scripts/common/task_context.py +241 -0
- package/dist/templates/pactile/scripts/common/task_dashboard.py +286 -0
- package/dist/templates/pactile/scripts/common/task_dependencies.py +648 -0
- package/dist/templates/pactile/scripts/common/task_gates.py +2478 -0
- package/dist/templates/pactile/scripts/common/task_map.py +703 -0
- package/dist/templates/pactile/scripts/common/task_queue.py +188 -0
- package/dist/templates/pactile/scripts/common/task_store.py +2252 -0
- package/dist/templates/pactile/scripts/common/task_utils.py +274 -0
- package/dist/templates/pactile/scripts/common/tasks.py +231 -0
- package/dist/templates/pactile/scripts/common/test_adapter_middleware.py +199 -0
- package/dist/templates/pactile/scripts/common/test_depends_mode_block.py +509 -0
- package/dist/templates/pactile/scripts/common/test_full_quality.py +197 -0
- package/dist/templates/pactile/scripts/common/test_kernel_command.py +336 -0
- package/dist/templates/pactile/scripts/common/test_lite_path.py +190 -0
- package/dist/templates/pactile/scripts/common/test_observable_defaults.py +141 -0
- package/dist/templates/pactile/scripts/common/test_ondemand_topology.py +237 -0
- package/dist/templates/pactile/scripts/common/test_parallel_declaration.py +264 -0
- package/dist/templates/pactile/scripts/common/test_pool_slice.py +198 -0
- package/dist/templates/pactile/scripts/common/test_pool_store.py +452 -0
- package/dist/templates/pactile/scripts/common/test_retrieval_arbitration.py +331 -0
- package/dist/templates/pactile/scripts/common/test_task_dashboard.py +155 -0
- package/dist/templates/pactile/scripts/common/test_task_dependencies.py +329 -0
- package/dist/templates/pactile/scripts/common/test_task_store_kernel_patch.py +163 -0
- package/dist/templates/pactile/scripts/common/types.py +110 -0
- package/dist/templates/pactile/scripts/common/workflow_phase.py +194 -0
- package/dist/templates/pactile/scripts/compile_session_pack.py +15 -0
- package/dist/templates/pactile/scripts/cursor_retrieval_probe.py +64 -0
- package/dist/templates/pactile/scripts/cursor_retrieval_probe_prompt.md +33 -0
- package/dist/templates/pactile/scripts/generate_dispatch_prompt.py +182 -0
- package/dist/templates/pactile/scripts/get_context.py +19 -0
- package/dist/templates/pactile/scripts/get_developer.py +26 -0
- package/dist/templates/pactile/scripts/hooks/linear_sync.py +243 -0
- package/dist/templates/pactile/scripts/init_developer.py +51 -0
- package/dist/templates/pactile/scripts/injection_budget_probe.py +69 -0
- package/dist/templates/pactile/scripts/pool.py +237 -0
- package/dist/templates/pactile/scripts/rank_retrieval_candidates.py +98 -0
- package/dist/templates/pactile/scripts/retrieval_probe_matrix_template.json +43 -0
- package/dist/templates/pactile/scripts/route_codebase_retrieval.py +72 -0
- package/dist/templates/pactile/scripts/run_smart_search.py +12 -0
- package/dist/templates/pactile/scripts/score_evidence.py +131 -0
- package/dist/templates/pactile/scripts/search_artifacts.py +13 -0
- package/dist/templates/pactile/scripts/search_memory.py +12 -0
- package/dist/templates/pactile/scripts/spec_health_outcomes.py +160 -0
- package/dist/templates/pactile/scripts/task.py +1118 -0
- package/dist/templates/pactile/scripts/verify_evidence_probe.py +138 -0
- package/dist/templates/pactile/tasks/.gitkeep +0 -0
- package/dist/templates/pactile/tasks/locale/en/default-prd.md +27 -0
- package/dist/templates/pactile/tasks/locale/zh/default-prd.md +27 -0
- package/dist/templates/pactile/tasks/templates/release-execution/design.md +61 -0
- package/dist/templates/pactile/tasks/templates/release-execution/handoff-template.md +29 -0
- package/dist/templates/pactile/tasks/templates/release-execution/implement.md +29 -0
- package/dist/templates/pactile/tasks/templates/release-execution/prd.md +31 -0
- package/dist/templates/pactile/tasks/templates/release-readiness/design.md +50 -0
- package/dist/templates/pactile/tasks/templates/release-readiness/handoff-template.md +39 -0
- package/dist/templates/pactile/tasks/templates/release-readiness/implement.md +29 -0
- package/dist/templates/pactile/tasks/templates/release-readiness/prd.md +31 -0
- package/dist/templates/pactile/workflow.md +64 -0
- package/dist/templates/shared-hooks/event-bridge.py +121 -0
- package/dist/templates/shared-hooks/index.d.ts +50 -0
- package/dist/templates/shared-hooks/index.d.ts.map +1 -0
- package/dist/templates/shared-hooks/index.js +96 -0
- package/dist/templates/shared-hooks/index.js.map +1 -0
- package/dist/templates/shared-hooks/inject-retrieval-plan.py +217 -0
- package/dist/templates/shared-hooks/inject-shell-session-context.py +183 -0
- package/dist/templates/shared-hooks/inject-subagent-context.py +267 -0
- package/dist/templates/shared-hooks/inject-workflow-state.py +106 -0
- package/dist/templates/shared-hooks/rename-session-for-task.py +231 -0
- package/dist/templates/shared-hooks/research-end-retrieval-pack.py +345 -0
- package/dist/templates/shared-hooks/session-start.py +355 -0
- package/dist/templates/shared-hooks/spec-write-audit.py +173 -0
- package/dist/templates/template-utils.d.ts +28 -0
- package/dist/templates/template-utils.d.ts.map +1 -0
- package/dist/templates/template-utils.js +83 -0
- package/dist/templates/template-utils.js.map +1 -0
- package/dist/types/ai-tools.d.ts +102 -0
- package/dist/types/ai-tools.d.ts.map +1 -0
- package/dist/types/ai-tools.js +60 -0
- package/dist/types/ai-tools.js.map +1 -0
- package/dist/types/migration.d.ts +125 -0
- package/dist/types/migration.d.ts.map +1 -0
- package/dist/types/migration.js +8 -0
- package/dist/types/migration.js.map +1 -0
- package/dist/utils/agents-md.d.ts +27 -0
- package/dist/utils/agents-md.d.ts.map +1 -0
- package/dist/utils/agents-md.js +70 -0
- package/dist/utils/agents-md.js.map +1 -0
- package/dist/utils/codebase-retrieval-router.d.ts +31 -0
- package/dist/utils/codebase-retrieval-router.d.ts.map +1 -0
- package/dist/utils/codebase-retrieval-router.js +88 -0
- package/dist/utils/codebase-retrieval-router.js.map +1 -0
- package/dist/utils/compare-versions.d.ts +12 -0
- package/dist/utils/compare-versions.d.ts.map +1 -0
- package/dist/utils/compare-versions.js +86 -0
- package/dist/utils/compare-versions.js.map +1 -0
- package/dist/utils/cursor-retrieval-env.d.ts +17 -0
- package/dist/utils/cursor-retrieval-env.d.ts.map +1 -0
- package/dist/utils/cursor-retrieval-env.js +19 -0
- package/dist/utils/cursor-retrieval-env.js.map +1 -0
- package/dist/utils/cwd-guard.d.ts +38 -0
- package/dist/utils/cwd-guard.d.ts.map +1 -0
- package/dist/utils/cwd-guard.js +63 -0
- package/dist/utils/cwd-guard.js.map +1 -0
- package/dist/utils/file-writer.d.ts +36 -0
- package/dist/utils/file-writer.d.ts.map +1 -0
- package/dist/utils/file-writer.js +203 -0
- package/dist/utils/file-writer.js.map +1 -0
- package/dist/utils/manifest-prune.d.ts +59 -0
- package/dist/utils/manifest-prune.d.ts.map +1 -0
- package/dist/utils/manifest-prune.js +176 -0
- package/dist/utils/manifest-prune.js.map +1 -0
- package/dist/utils/mirror-check.d.ts +22 -0
- package/dist/utils/mirror-check.d.ts.map +1 -0
- package/dist/utils/mirror-check.js +90 -0
- package/dist/utils/mirror-check.js.map +1 -0
- package/dist/utils/normalize-text.d.ts +7 -0
- package/dist/utils/normalize-text.d.ts.map +1 -0
- package/dist/utils/normalize-text.js +16 -0
- package/dist/utils/normalize-text.js.map +1 -0
- package/dist/utils/p36-upgrade.d.ts +62 -0
- package/dist/utils/p36-upgrade.d.ts.map +1 -0
- package/dist/utils/p36-upgrade.js +165 -0
- package/dist/utils/p36-upgrade.js.map +1 -0
- package/dist/utils/posix.d.ts +13 -0
- package/dist/utils/posix.d.ts.map +1 -0
- package/dist/utils/posix.js +15 -0
- package/dist/utils/posix.js.map +1 -0
- package/dist/utils/post-update-smoke.d.ts +7 -0
- package/dist/utils/post-update-smoke.d.ts.map +1 -0
- package/dist/utils/post-update-smoke.js +40 -0
- package/dist/utils/post-update-smoke.js.map +1 -0
- package/dist/utils/project-capabilities.d.ts +82 -0
- package/dist/utils/project-capabilities.d.ts.map +1 -0
- package/dist/utils/project-capabilities.js +691 -0
- package/dist/utils/project-capabilities.js.map +1 -0
- package/dist/utils/project-detector.d.ts +46 -0
- package/dist/utils/project-detector.d.ts.map +1 -0
- package/dist/utils/project-detector.js +666 -0
- package/dist/utils/project-detector.js.map +1 -0
- package/dist/utils/proxy.d.ts +25 -0
- package/dist/utils/proxy.d.ts.map +1 -0
- package/dist/utils/proxy.js +60 -0
- package/dist/utils/proxy.js.map +1 -0
- package/dist/utils/readiness.d.ts +40 -0
- package/dist/utils/readiness.d.ts.map +1 -0
- package/dist/utils/readiness.js +491 -0
- package/dist/utils/readiness.js.map +1 -0
- package/dist/utils/retrieval-agent-instructions.d.ts +10 -0
- package/dist/utils/retrieval-agent-instructions.d.ts.map +1 -0
- package/dist/utils/retrieval-agent-instructions.js +97 -0
- package/dist/utils/retrieval-agent-instructions.js.map +1 -0
- package/dist/utils/retrieval-execution-telemetry.d.ts +53 -0
- package/dist/utils/retrieval-execution-telemetry.d.ts.map +1 -0
- package/dist/utils/retrieval-execution-telemetry.js +116 -0
- package/dist/utils/retrieval-execution-telemetry.js.map +1 -0
- package/dist/utils/retrieval-result-ranking.d.ts +34 -0
- package/dist/utils/retrieval-result-ranking.d.ts.map +1 -0
- package/dist/utils/retrieval-result-ranking.js +71 -0
- package/dist/utils/retrieval-result-ranking.js.map +1 -0
- package/dist/utils/retrieval-tool-classification.d.ts +18 -0
- package/dist/utils/retrieval-tool-classification.d.ts.map +1 -0
- package/dist/utils/retrieval-tool-classification.js +118 -0
- package/dist/utils/retrieval-tool-classification.js.map +1 -0
- package/dist/utils/semantic-plan-gate.d.ts +8 -0
- package/dist/utils/semantic-plan-gate.d.ts.map +1 -0
- package/dist/utils/semantic-plan-gate.js +24 -0
- package/dist/utils/semantic-plan-gate.js.map +1 -0
- package/dist/utils/task-json.d.ts +13 -0
- package/dist/utils/task-json.d.ts.map +1 -0
- package/dist/utils/task-json.js +12 -0
- package/dist/utils/task-json.js.map +1 -0
- package/dist/utils/template-fetcher.d.ts +150 -0
- package/dist/utils/template-fetcher.d.ts.map +1 -0
- package/dist/utils/template-fetcher.js +907 -0
- package/dist/utils/template-fetcher.js.map +1 -0
- package/dist/utils/template-hash.d.ts +123 -0
- package/dist/utils/template-hash.d.ts.map +1 -0
- package/dist/utils/template-hash.js +375 -0
- package/dist/utils/template-hash.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts +30 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -0
- package/dist/utils/uninstall-scrubbers.js +196 -0
- package/dist/utils/uninstall-scrubbers.js.map +1 -0
- package/dist/utils/update-rollout-report.d.ts +171 -0
- package/dist/utils/update-rollout-report.d.ts.map +1 -0
- package/dist/utils/update-rollout-report.js +126 -0
- package/dist/utils/update-rollout-report.js.map +1 -0
- package/dist/utils/validate-rules.d.ts +21 -0
- package/dist/utils/validate-rules.d.ts.map +1 -0
- package/dist/utils/validate-rules.js +88 -0
- package/dist/utils/validate-rules.js.map +1 -0
- package/dist/utils/workflow-dir.d.ts +15 -0
- package/dist/utils/workflow-dir.d.ts.map +1 -0
- package/dist/utils/workflow-dir.js +33 -0
- package/dist/utils/workflow-dir.js.map +1 -0
- package/dist/utils/workflow-resolver.d.ts +86 -0
- package/dist/utils/workflow-resolver.d.ts.map +1 -0
- package/dist/utils/workflow-resolver.js +265 -0
- package/dist/utils/workflow-resolver.js.map +1 -0
- package/package.json +117 -0
- package/scripts/postinstall.js +6 -0
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Parent/Child task-map helpers.
|
|
4
|
+
|
|
5
|
+
task-map.md is a projection of the Kernel Topology / Dependency Graph plus
|
|
6
|
+
Parent orchestration fields (child worker state, event log). Graph authority
|
|
7
|
+
is Kernel extras (`topology`, `dependency_graph`); this module may render,
|
|
8
|
+
not invent, typed edges.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, timezone
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
TASK_MAP = "task-map.md"
|
|
18
|
+
|
|
19
|
+
CHILD_STATES = {
|
|
20
|
+
"open",
|
|
21
|
+
"working",
|
|
22
|
+
"blocked",
|
|
23
|
+
"review",
|
|
24
|
+
"changes",
|
|
25
|
+
"accepted",
|
|
26
|
+
"integrating",
|
|
27
|
+
"integrated",
|
|
28
|
+
"cancelled",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
PARENT_TERMINAL_STATES = {"integrated", "cancelled"}
|
|
32
|
+
PARENT_CONTROLLED_STATES = {
|
|
33
|
+
"changes",
|
|
34
|
+
"accepted",
|
|
35
|
+
"integrating",
|
|
36
|
+
"integrated",
|
|
37
|
+
"cancelled",
|
|
38
|
+
}
|
|
39
|
+
CHILD_REPORT_STATES = CHILD_STATES - PARENT_CONTROLLED_STATES
|
|
40
|
+
REF_REQUIRED_STATES = {"accepted", "integrating", "integrated"}
|
|
41
|
+
HANDOFF_REQUIRED_STATES = {"accepted", "integrating", "integrated"}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def utc_now() -> str:
|
|
45
|
+
"""Return a compact UTC timestamp for task-map event log entries."""
|
|
46
|
+
return datetime.now(timezone.utc).replace(microsecond=0).isoformat().replace(
|
|
47
|
+
"+00:00", "Z"
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def load_task_map(parent_dir: Path) -> tuple[dict | None, str]:
|
|
52
|
+
"""Load task-map.md frontmatter and body."""
|
|
53
|
+
path = parent_dir / TASK_MAP
|
|
54
|
+
if not path.is_file():
|
|
55
|
+
return None, ""
|
|
56
|
+
|
|
57
|
+
try:
|
|
58
|
+
content = path.read_text(encoding="utf-8")
|
|
59
|
+
except OSError:
|
|
60
|
+
return None, ""
|
|
61
|
+
|
|
62
|
+
frontmatter, body = _split_frontmatter(content)
|
|
63
|
+
if frontmatter is None:
|
|
64
|
+
return None, content
|
|
65
|
+
return _parse_frontmatter(frontmatter), body
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def ensure_task_map(
|
|
69
|
+
parent_dir: Path,
|
|
70
|
+
parent_data: dict,
|
|
71
|
+
child_names: list[str],
|
|
72
|
+
event: str | None = None,
|
|
73
|
+
) -> dict:
|
|
74
|
+
"""Ensure task-map.md exists and contains entries for all child_names."""
|
|
75
|
+
data, body = load_task_map(parent_dir)
|
|
76
|
+
if data is None:
|
|
77
|
+
data = {
|
|
78
|
+
"parent_id": parent_data.get("id") or parent_dir.name,
|
|
79
|
+
"contract_epoch": 1,
|
|
80
|
+
"execution_topology": "parallel",
|
|
81
|
+
"merge_limit": 1,
|
|
82
|
+
"children": [],
|
|
83
|
+
"stages": [],
|
|
84
|
+
"integration_queue": [],
|
|
85
|
+
}
|
|
86
|
+
body = _default_body()
|
|
87
|
+
|
|
88
|
+
data.setdefault("parent_id", parent_data.get("id") or parent_dir.name)
|
|
89
|
+
data.setdefault("contract_epoch", 1)
|
|
90
|
+
data.setdefault("execution_topology", "parallel")
|
|
91
|
+
data.setdefault("merge_limit", 1)
|
|
92
|
+
data.setdefault("children", [])
|
|
93
|
+
data.setdefault("stages", [])
|
|
94
|
+
data.setdefault("integration_queue", [])
|
|
95
|
+
|
|
96
|
+
existing = {
|
|
97
|
+
child.get("id"): child
|
|
98
|
+
for child in data.get("children", [])
|
|
99
|
+
if isinstance(child, dict)
|
|
100
|
+
}
|
|
101
|
+
for child_name in child_names:
|
|
102
|
+
if child_name not in existing:
|
|
103
|
+
child = _default_child(child_name)
|
|
104
|
+
data["children"].append(child)
|
|
105
|
+
existing[child_name] = child
|
|
106
|
+
|
|
107
|
+
extras = {
|
|
108
|
+
key: parent_data[key]
|
|
109
|
+
for key in ("topology", "dependency_graph")
|
|
110
|
+
if key in parent_data
|
|
111
|
+
}
|
|
112
|
+
if extras:
|
|
113
|
+
from .ondemand_topology import apply_kernel_graph_projection
|
|
114
|
+
|
|
115
|
+
apply_kernel_graph_projection(data, extras)
|
|
116
|
+
|
|
117
|
+
write_task_map(parent_dir, data, body, event)
|
|
118
|
+
return data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def remove_child_from_task_map(
|
|
122
|
+
parent_dir: Path,
|
|
123
|
+
parent_data: dict,
|
|
124
|
+
child_name: str,
|
|
125
|
+
) -> None:
|
|
126
|
+
"""Remove a child entry from task-map.md when structural links are removed."""
|
|
127
|
+
data, body = load_task_map(parent_dir)
|
|
128
|
+
if data is None:
|
|
129
|
+
return
|
|
130
|
+
|
|
131
|
+
children = data.get("children")
|
|
132
|
+
if isinstance(children, list):
|
|
133
|
+
data["children"] = [
|
|
134
|
+
child
|
|
135
|
+
for child in children
|
|
136
|
+
if not isinstance(child, dict) or child.get("id") != child_name
|
|
137
|
+
]
|
|
138
|
+
data.setdefault("parent_id", parent_data.get("id") or parent_dir.name)
|
|
139
|
+
write_task_map(parent_dir, data, body, f"Unlinked Child `{child_name}`.")
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def resolve_child_map_id(
|
|
143
|
+
parent_data: dict,
|
|
144
|
+
child_dir: Path,
|
|
145
|
+
child_data: dict | None = None,
|
|
146
|
+
) -> str:
|
|
147
|
+
"""Resolve task-map child id for a child directory (nested slash slugs)."""
|
|
148
|
+
structural = parent_data.get("children", [])
|
|
149
|
+
if not isinstance(structural, list):
|
|
150
|
+
structural = []
|
|
151
|
+
|
|
152
|
+
leaf = child_dir.name
|
|
153
|
+
if leaf in structural:
|
|
154
|
+
return leaf
|
|
155
|
+
|
|
156
|
+
if child_data:
|
|
157
|
+
for key in ("name", "id"):
|
|
158
|
+
value = child_data.get(key)
|
|
159
|
+
if isinstance(value, str) and value in structural:
|
|
160
|
+
return value
|
|
161
|
+
|
|
162
|
+
suffix_matches = [
|
|
163
|
+
cid
|
|
164
|
+
for cid in structural
|
|
165
|
+
if isinstance(cid, str) and (cid == leaf or cid.endswith(f"/{leaf}"))
|
|
166
|
+
]
|
|
167
|
+
if len(suffix_matches) == 1:
|
|
168
|
+
return suffix_matches[0]
|
|
169
|
+
|
|
170
|
+
return leaf
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def set_child_state(
|
|
174
|
+
parent_dir: Path,
|
|
175
|
+
parent_data: dict,
|
|
176
|
+
child_name: str,
|
|
177
|
+
state: str,
|
|
178
|
+
evidence: str,
|
|
179
|
+
reason: str | None = None,
|
|
180
|
+
) -> tuple[bool, list[str]]:
|
|
181
|
+
"""Set a child state inside Parent task-map.md."""
|
|
182
|
+
errors: list[str] = []
|
|
183
|
+
if state not in CHILD_STATES:
|
|
184
|
+
errors.append(f"unknown child state: {state}")
|
|
185
|
+
if not _short_text(evidence):
|
|
186
|
+
errors.append("evidence must be a short reference")
|
|
187
|
+
if reason and not _short_text(reason, 500):
|
|
188
|
+
errors.append("reason must be short and single-line")
|
|
189
|
+
if errors:
|
|
190
|
+
return False, errors
|
|
191
|
+
|
|
192
|
+
structural_children = parent_data.get("children", [])
|
|
193
|
+
if child_name not in structural_children:
|
|
194
|
+
errors.append(f"child is not linked to parent: {child_name}")
|
|
195
|
+
return False, errors
|
|
196
|
+
|
|
197
|
+
data = ensure_task_map(parent_dir, parent_data, list(structural_children))
|
|
198
|
+
child = get_child_entry(data, child_name)
|
|
199
|
+
if child is None:
|
|
200
|
+
errors.append(f"child missing from task-map.md: {child_name}")
|
|
201
|
+
return False, errors
|
|
202
|
+
|
|
203
|
+
child["state"] = state
|
|
204
|
+
child["evidence"] = evidence
|
|
205
|
+
if reason:
|
|
206
|
+
child["reason"] = reason
|
|
207
|
+
|
|
208
|
+
event = f"Set Child `{child_name}` state to `{state}`. Evidence: {evidence}."
|
|
209
|
+
if reason:
|
|
210
|
+
event = f"{event} Reason: {reason}."
|
|
211
|
+
_, body = load_task_map(parent_dir)
|
|
212
|
+
write_task_map(parent_dir, data, body, event)
|
|
213
|
+
return True, []
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
def validate_parent_child_integration(
|
|
217
|
+
parent_dir: Path,
|
|
218
|
+
parent_data: dict,
|
|
219
|
+
child_dir: Path,
|
|
220
|
+
child_data: dict,
|
|
221
|
+
state: str,
|
|
222
|
+
evidence: str,
|
|
223
|
+
ref: str | None = None,
|
|
224
|
+
reason: str | None = None,
|
|
225
|
+
current_state_override: str | None = None,
|
|
226
|
+
) -> list[str]:
|
|
227
|
+
"""Validate a Parent-controlled Child integration state transition."""
|
|
228
|
+
errors: list[str] = []
|
|
229
|
+
child_name = resolve_child_map_id(parent_data, child_dir, child_data)
|
|
230
|
+
if state not in PARENT_CONTROLLED_STATES:
|
|
231
|
+
errors.append(f"state is not Parent-controlled: {state}")
|
|
232
|
+
if not _short_text(evidence):
|
|
233
|
+
errors.append("evidence must be a short reference")
|
|
234
|
+
if reason and not _short_text(reason, 500):
|
|
235
|
+
errors.append("reason must be short and single-line")
|
|
236
|
+
if state in {"changes", "cancelled"} and not reason:
|
|
237
|
+
errors.append(f"{state} requires --reason")
|
|
238
|
+
if state in REF_REQUIRED_STATES and not _short_text(ref):
|
|
239
|
+
errors.append(f"{state} requires --ref")
|
|
240
|
+
|
|
241
|
+
if child_data.get("parent") != parent_dir.name:
|
|
242
|
+
errors.append(f"child is not linked to parent: {child_name}")
|
|
243
|
+
|
|
244
|
+
structural_children = parent_data.get("children", [])
|
|
245
|
+
if child_name not in structural_children:
|
|
246
|
+
errors.append(f"child is not linked to parent: {child_name}")
|
|
247
|
+
|
|
248
|
+
data, _ = load_task_map(parent_dir)
|
|
249
|
+
if data is None:
|
|
250
|
+
errors.append(f"{TASK_MAP}")
|
|
251
|
+
return errors
|
|
252
|
+
|
|
253
|
+
child = get_child_entry(data, child_name)
|
|
254
|
+
if child is None:
|
|
255
|
+
errors.append(f"child missing from task-map.md: {child_name}")
|
|
256
|
+
return errors
|
|
257
|
+
|
|
258
|
+
current_state = (
|
|
259
|
+
current_state_override
|
|
260
|
+
if current_state_override is not None
|
|
261
|
+
else child.get("state")
|
|
262
|
+
)
|
|
263
|
+
if state in {"accepted", "changes"} and current_state != "review":
|
|
264
|
+
errors.append(f"{state} requires current Child state 'review', got {current_state!r}")
|
|
265
|
+
if state == "integrating" and current_state != "accepted":
|
|
266
|
+
errors.append(f"integrating requires current Child state 'accepted', got {current_state!r}")
|
|
267
|
+
if state == "integrated" and current_state != "integrating":
|
|
268
|
+
errors.append(f"integrated requires current Child state 'integrating', got {current_state!r}")
|
|
269
|
+
|
|
270
|
+
if state in HANDOFF_REQUIRED_STATES:
|
|
271
|
+
errors.extend(_required_child_evidence(child_dir, ["verify.md", "handoff.md"]))
|
|
272
|
+
|
|
273
|
+
if state == "integrating":
|
|
274
|
+
merge_limit = data.get("merge_limit", 1)
|
|
275
|
+
if not isinstance(merge_limit, int) or merge_limit < 1:
|
|
276
|
+
errors.append("merge_limit must be a positive integer")
|
|
277
|
+
else:
|
|
278
|
+
integrating = [
|
|
279
|
+
item.get("id")
|
|
280
|
+
for item in data.get("children", [])
|
|
281
|
+
if isinstance(item, dict)
|
|
282
|
+
and item.get("id") != child_name
|
|
283
|
+
and item.get("state") == "integrating"
|
|
284
|
+
]
|
|
285
|
+
if len(integrating) >= merge_limit:
|
|
286
|
+
errors.append(
|
|
287
|
+
f"merge_limit {merge_limit} blocks integrating {child_name}; already integrating: {', '.join(str(item) for item in integrating)}"
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
if state == "accepted":
|
|
291
|
+
from .task_gates import task_closeout_profile, validate_transition_readiness
|
|
292
|
+
|
|
293
|
+
profile = task_closeout_profile(child_dir, child_data)
|
|
294
|
+
if profile == "full":
|
|
295
|
+
errors.extend(
|
|
296
|
+
validate_transition_readiness(
|
|
297
|
+
child_dir,
|
|
298
|
+
child_data,
|
|
299
|
+
"child-review",
|
|
300
|
+
mode="complete",
|
|
301
|
+
)
|
|
302
|
+
)
|
|
303
|
+
elif profile == "parent":
|
|
304
|
+
errors.extend(
|
|
305
|
+
validate_transition_readiness(
|
|
306
|
+
child_dir,
|
|
307
|
+
child_data,
|
|
308
|
+
"parent-integrated",
|
|
309
|
+
mode="complete",
|
|
310
|
+
)
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
return errors
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
def set_parent_child_integration_state(
|
|
317
|
+
parent_dir: Path,
|
|
318
|
+
parent_data: dict,
|
|
319
|
+
child_dir: Path,
|
|
320
|
+
child_data: dict,
|
|
321
|
+
state: str,
|
|
322
|
+
evidence: str,
|
|
323
|
+
ref: str | None = None,
|
|
324
|
+
reason: str | None = None,
|
|
325
|
+
merge_ref: str | None = None,
|
|
326
|
+
) -> tuple[bool, list[str]]:
|
|
327
|
+
"""Set a Parent-controlled Child integration state."""
|
|
328
|
+
errors = validate_parent_child_integration(
|
|
329
|
+
parent_dir,
|
|
330
|
+
parent_data,
|
|
331
|
+
child_dir,
|
|
332
|
+
child_data,
|
|
333
|
+
state,
|
|
334
|
+
evidence,
|
|
335
|
+
ref,
|
|
336
|
+
reason,
|
|
337
|
+
)
|
|
338
|
+
if errors:
|
|
339
|
+
return False, errors
|
|
340
|
+
|
|
341
|
+
child_name = resolve_child_map_id(parent_data, child_dir, child_data)
|
|
342
|
+
data = ensure_task_map(parent_dir, parent_data, list(parent_data.get("children", [])))
|
|
343
|
+
child = get_child_entry(data, child_name)
|
|
344
|
+
if child is None:
|
|
345
|
+
return False, [f"child missing from task-map.md: {child_name}"]
|
|
346
|
+
|
|
347
|
+
child["state"] = state
|
|
348
|
+
child["evidence"] = evidence
|
|
349
|
+
if ref:
|
|
350
|
+
child["ref"] = ref
|
|
351
|
+
if merge_ref:
|
|
352
|
+
child["merged_ref"] = merge_ref
|
|
353
|
+
if reason:
|
|
354
|
+
child["reason"] = reason
|
|
355
|
+
elif "reason" in child:
|
|
356
|
+
del child["reason"]
|
|
357
|
+
|
|
358
|
+
queue = data.get("integration_queue")
|
|
359
|
+
if not isinstance(queue, list):
|
|
360
|
+
queue = []
|
|
361
|
+
data["integration_queue"] = queue
|
|
362
|
+
if state == "integrating":
|
|
363
|
+
if child_name not in queue:
|
|
364
|
+
queue.append(child_name)
|
|
365
|
+
elif child_name in queue:
|
|
366
|
+
data["integration_queue"] = [item for item in queue if item != child_name]
|
|
367
|
+
|
|
368
|
+
event = f"Parent set Child `{child_name}` integration state to `{state}`. Evidence: {evidence}."
|
|
369
|
+
if ref:
|
|
370
|
+
event = f"{event} Ref: {ref}."
|
|
371
|
+
if merge_ref:
|
|
372
|
+
event = f"{event} Merge executed: git merge --no-ff --no-commit {merge_ref}."
|
|
373
|
+
if reason:
|
|
374
|
+
event = f"{event} Reason: {reason}."
|
|
375
|
+
_, body = load_task_map(parent_dir)
|
|
376
|
+
write_task_map(parent_dir, data, body, event)
|
|
377
|
+
return True, []
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
def record_child_worktree(
|
|
381
|
+
parent_dir: Path,
|
|
382
|
+
parent_data: dict,
|
|
383
|
+
child_name: str,
|
|
384
|
+
branch: str,
|
|
385
|
+
worktree_path: str,
|
|
386
|
+
base_ref: str,
|
|
387
|
+
) -> tuple[bool, list[str]]:
|
|
388
|
+
"""Record a Child git worktree checkout in Parent task-map.md."""
|
|
389
|
+
errors: list[str] = []
|
|
390
|
+
if not _short_text(branch):
|
|
391
|
+
errors.append("branch must be a short reference")
|
|
392
|
+
if not _short_text(worktree_path):
|
|
393
|
+
errors.append("worktree_path must be a short path reference")
|
|
394
|
+
if not _short_text(base_ref):
|
|
395
|
+
errors.append("base_ref must be a short reference")
|
|
396
|
+
|
|
397
|
+
structural_children = parent_data.get("children", [])
|
|
398
|
+
if child_name not in structural_children:
|
|
399
|
+
errors.append(f"child is not linked to parent: {child_name}")
|
|
400
|
+
if errors:
|
|
401
|
+
return False, errors
|
|
402
|
+
|
|
403
|
+
data = ensure_task_map(parent_dir, parent_data, list(structural_children))
|
|
404
|
+
child = get_child_entry(data, child_name)
|
|
405
|
+
if child is None:
|
|
406
|
+
return False, [f"child missing from task-map.md: {child_name}"]
|
|
407
|
+
|
|
408
|
+
child["isolation"] = "git-worktree"
|
|
409
|
+
child["branch"] = branch
|
|
410
|
+
child["worktree_path"] = worktree_path
|
|
411
|
+
child["base_ref"] = base_ref
|
|
412
|
+
child["ref"] = f"refs/heads/{branch}"
|
|
413
|
+
|
|
414
|
+
event = (
|
|
415
|
+
f"Prepared Child `{child_name}` git worktree. "
|
|
416
|
+
f"Branch: {branch}. Path: {worktree_path}. Base: {base_ref}."
|
|
417
|
+
)
|
|
418
|
+
_, body = load_task_map(parent_dir)
|
|
419
|
+
write_task_map(parent_dir, data, body, event)
|
|
420
|
+
return True, []
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
def get_child_entry(data: dict | None, child_name: str) -> dict | None:
|
|
424
|
+
"""Return a child map entry by id."""
|
|
425
|
+
if not data:
|
|
426
|
+
return None
|
|
427
|
+
children = data.get("children")
|
|
428
|
+
if not isinstance(children, list):
|
|
429
|
+
return None
|
|
430
|
+
for child in children:
|
|
431
|
+
if isinstance(child, dict) and child.get("id") == child_name:
|
|
432
|
+
return child
|
|
433
|
+
return None
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
def get_child_state(parent_dir: Path, child_name: str) -> str | None:
|
|
437
|
+
"""Return child state from a Parent task-map.md."""
|
|
438
|
+
data, _ = load_task_map(parent_dir)
|
|
439
|
+
child = get_child_entry(data, child_name)
|
|
440
|
+
if not child:
|
|
441
|
+
return None
|
|
442
|
+
state = child.get("state")
|
|
443
|
+
return state if isinstance(state, str) else None
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def validate_parent_children_complete(parent_dir: Path, child_names: list[str]) -> list[str]:
|
|
447
|
+
"""Validate every structural child is integrated or cancelled."""
|
|
448
|
+
errors: list[str] = []
|
|
449
|
+
data, _ = load_task_map(parent_dir)
|
|
450
|
+
if data is None:
|
|
451
|
+
return [f"{TASK_MAP}"]
|
|
452
|
+
|
|
453
|
+
for child_name in child_names:
|
|
454
|
+
child = get_child_entry(data, child_name)
|
|
455
|
+
if child is None:
|
|
456
|
+
errors.append(f"{TASK_MAP} missing child entry: {child_name}")
|
|
457
|
+
continue
|
|
458
|
+
state = child.get("state")
|
|
459
|
+
if state not in PARENT_TERMINAL_STATES:
|
|
460
|
+
errors.append(
|
|
461
|
+
f"child {child_name} must be integrated or cancelled before parent archive, got {state!r}"
|
|
462
|
+
)
|
|
463
|
+
return errors
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def validate_child_archive_state(parent_dir: Path, child_name: str) -> list[str]:
|
|
467
|
+
"""Validate the Parent has marked a Child terminal before child archive."""
|
|
468
|
+
state = get_child_state(parent_dir, child_name)
|
|
469
|
+
if state is None:
|
|
470
|
+
return [f"{TASK_MAP} missing child entry: {child_name}"]
|
|
471
|
+
if state not in PARENT_TERMINAL_STATES:
|
|
472
|
+
return [
|
|
473
|
+
f"Parent task-map.md must mark child {child_name} integrated or cancelled before archive, got {state!r}"
|
|
474
|
+
]
|
|
475
|
+
return []
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def write_task_map(
|
|
479
|
+
parent_dir: Path,
|
|
480
|
+
data: dict,
|
|
481
|
+
body: str,
|
|
482
|
+
event: str | None = None,
|
|
483
|
+
) -> None:
|
|
484
|
+
"""Write task-map.md from structured snapshot and Markdown body."""
|
|
485
|
+
normalized_body = body if body.strip() else _default_body()
|
|
486
|
+
if event:
|
|
487
|
+
normalized_body = _append_event(normalized_body, event)
|
|
488
|
+
content = f"---\n{_format_frontmatter(data)}---\n{normalized_body.lstrip()}"
|
|
489
|
+
(parent_dir / TASK_MAP).write_text(content, encoding="utf-8")
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _default_child(child_name: str) -> dict:
|
|
493
|
+
return {
|
|
494
|
+
"id": child_name,
|
|
495
|
+
"state": "open",
|
|
496
|
+
"depends_on": [],
|
|
497
|
+
"touches": [],
|
|
498
|
+
"isolation": "git-worktree",
|
|
499
|
+
"ref": None,
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def _default_body() -> str:
|
|
504
|
+
return (
|
|
505
|
+
"# Task Map\n\n"
|
|
506
|
+
"## Orchestration notes\n\n"
|
|
507
|
+
"- **parallel-first:** Prefer Cursor Multitask / Build in Parallel / Agent `Task` / native "
|
|
508
|
+
"worktree. Pactile does not schedule workers or replace Multitask.\n"
|
|
509
|
+
"- `execution_topology: parallel` — default when ≥2 children have empty `depends_on`. "
|
|
510
|
+
"Parent `integrate-child`, HITL, `start-execution --approved`, and reviewer gates stay "
|
|
511
|
+
"serial (`merge_limit`).\n"
|
|
512
|
+
"- `serial_reason` — required when topology is `serial`. One of: shared write-set / "
|
|
513
|
+
"HITL or reviewer gate / `depends_on` unmet / user asked serial / conflict surface "
|
|
514
|
+
"cannot isolate.\n"
|
|
515
|
+
"- `stages:` (or `parallel_groups`) — concurrently runnable child id groups.\n"
|
|
516
|
+
"- `merge_points` — where serial join happens (usually `integrate-child` + gates). "
|
|
517
|
+
"Default `merge_limit: 1`.\n"
|
|
518
|
+
"- `touches` (or `conflict_surface`) — write-sets that can collide; declare before dispatch.\n"
|
|
519
|
+
"- Child-reported states: `open` → `working` → `blocked` | `review`.\n"
|
|
520
|
+
"- Parent-controlled states: `review` → `changes` | `accepted` → `integrating` → "
|
|
521
|
+
"`integrated` | `cancelled`.\n"
|
|
522
|
+
"- `isolation: git-worktree` — run `prepare-child-worktree` from the **git package root** "
|
|
523
|
+
"(not a non-git harness root).\n\n"
|
|
524
|
+
"## Event Log\n\n"
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
def _append_event(body: str, event: str) -> str:
|
|
529
|
+
stripped = body.rstrip()
|
|
530
|
+
if "## Event Log" not in stripped:
|
|
531
|
+
stripped = f"{stripped}\n\n## Event Log"
|
|
532
|
+
return f"{stripped}\n\n- {utc_now()} - {event}\n"
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
def _split_frontmatter(content: str) -> tuple[str | None, str]:
|
|
536
|
+
lines = content.splitlines(keepends=True)
|
|
537
|
+
if not lines or lines[0].strip() != "---":
|
|
538
|
+
return None, content
|
|
539
|
+
|
|
540
|
+
for idx in range(1, len(lines)):
|
|
541
|
+
if lines[idx].strip() == "---":
|
|
542
|
+
frontmatter = "".join(lines[1:idx])
|
|
543
|
+
body = "".join(lines[idx + 1 :])
|
|
544
|
+
return frontmatter, body
|
|
545
|
+
return None, content
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
def _parse_frontmatter(frontmatter: str) -> dict:
|
|
549
|
+
"""Parse the small YAML subset written by this module.
|
|
550
|
+
|
|
551
|
+
Supports top-level scalars plus list-of-maps for ``children:`` and optional
|
|
552
|
+
``stages:`` (same indentation style).
|
|
553
|
+
"""
|
|
554
|
+
data: dict = {"children": [], "stages": []}
|
|
555
|
+
current_item: dict | None = None
|
|
556
|
+
list_key: str | None = None
|
|
557
|
+
|
|
558
|
+
for raw_line in frontmatter.splitlines():
|
|
559
|
+
if not raw_line.strip():
|
|
560
|
+
continue
|
|
561
|
+
|
|
562
|
+
if raw_line.startswith("children:"):
|
|
563
|
+
list_key = "children"
|
|
564
|
+
data["children"] = []
|
|
565
|
+
current_item = None
|
|
566
|
+
continue
|
|
567
|
+
|
|
568
|
+
if raw_line.startswith("stages:"):
|
|
569
|
+
list_key = "stages"
|
|
570
|
+
data["stages"] = []
|
|
571
|
+
current_item = None
|
|
572
|
+
continue
|
|
573
|
+
|
|
574
|
+
if list_key and raw_line.startswith(" - "):
|
|
575
|
+
current_item = {}
|
|
576
|
+
data[list_key].append(current_item)
|
|
577
|
+
item = raw_line[4:].strip()
|
|
578
|
+
if ":" in item:
|
|
579
|
+
key, value = item.split(":", 1)
|
|
580
|
+
current_item[key.strip()] = _parse_value(value.strip())
|
|
581
|
+
continue
|
|
582
|
+
|
|
583
|
+
if list_key and raw_line.startswith(" ") and current_item is not None:
|
|
584
|
+
item = raw_line.strip()
|
|
585
|
+
if ":" in item:
|
|
586
|
+
key, value = item.split(":", 1)
|
|
587
|
+
current_item[key.strip()] = _parse_value(value.strip())
|
|
588
|
+
continue
|
|
589
|
+
|
|
590
|
+
list_key = None
|
|
591
|
+
current_item = None
|
|
592
|
+
if ":" in raw_line:
|
|
593
|
+
key, value = raw_line.split(":", 1)
|
|
594
|
+
data[key.strip()] = _parse_value(value.strip())
|
|
595
|
+
|
|
596
|
+
return data
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
def _parse_value(value: str):
|
|
600
|
+
if value == "null":
|
|
601
|
+
return None
|
|
602
|
+
if value == "[]":
|
|
603
|
+
return []
|
|
604
|
+
if value.startswith("[") and value.endswith("]"):
|
|
605
|
+
inner = value[1:-1].strip()
|
|
606
|
+
if not inner:
|
|
607
|
+
return []
|
|
608
|
+
return [item.strip().strip("'\"") for item in inner.split(",") if item.strip()]
|
|
609
|
+
if value.isdigit():
|
|
610
|
+
return int(value)
|
|
611
|
+
return value.strip("'\"")
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
def _format_frontmatter(data: dict) -> str:
|
|
615
|
+
lines = [
|
|
616
|
+
f"parent_id: {_format_value(data.get('parent_id'))}",
|
|
617
|
+
f"contract_epoch: {_format_value(data.get('contract_epoch', 1))}",
|
|
618
|
+
f"execution_topology: {_format_value(data.get('execution_topology', 'parallel'))}",
|
|
619
|
+
f"merge_limit: {_format_value(data.get('merge_limit', 1))}",
|
|
620
|
+
]
|
|
621
|
+
if data.get("serial_reason"):
|
|
622
|
+
lines.append(f"serial_reason: {_format_value(data.get('serial_reason'))}")
|
|
623
|
+
if data.get("parallel_groups"):
|
|
624
|
+
lines.append(f"parallel_groups: {_format_value(data.get('parallel_groups'))}")
|
|
625
|
+
if data.get("merge_points"):
|
|
626
|
+
lines.append(f"merge_points: {_format_value(data.get('merge_points'))}")
|
|
627
|
+
if data.get("conflict_surface"):
|
|
628
|
+
lines.append(f"conflict_surface: {_format_value(data.get('conflict_surface'))}")
|
|
629
|
+
if data.get("graph_authority"):
|
|
630
|
+
lines.append(f"graph_authority: {_format_value(data.get('graph_authority'))}")
|
|
631
|
+
if data.get("topology_kind"):
|
|
632
|
+
lines.append(f"topology_kind: {_format_value(data.get('topology_kind'))}")
|
|
633
|
+
lines.append("children:")
|
|
634
|
+
children = data.get("children", [])
|
|
635
|
+
if isinstance(children, list):
|
|
636
|
+
for child in children:
|
|
637
|
+
if not isinstance(child, dict):
|
|
638
|
+
continue
|
|
639
|
+
lines.append(f" - id: {_format_value(child.get('id'))}")
|
|
640
|
+
lines.append(f" state: {_format_value(child.get('state', 'open'))}")
|
|
641
|
+
lines.append(f" depends_on: {_format_value(child.get('depends_on', []))}")
|
|
642
|
+
lines.append(f" touches: {_format_value(child.get('touches', []))}")
|
|
643
|
+
lines.append(f" isolation: {_format_value(child.get('isolation', 'git-worktree'))}")
|
|
644
|
+
lines.append(f" ref: {_format_value(child.get('ref'))}")
|
|
645
|
+
if child.get("branch"):
|
|
646
|
+
lines.append(f" branch: {_format_value(child.get('branch'))}")
|
|
647
|
+
if child.get("worktree_path"):
|
|
648
|
+
lines.append(f" worktree_path: {_format_value(child.get('worktree_path'))}")
|
|
649
|
+
if child.get("base_ref"):
|
|
650
|
+
lines.append(f" base_ref: {_format_value(child.get('base_ref'))}")
|
|
651
|
+
if child.get("merged_ref"):
|
|
652
|
+
lines.append(f" merged_ref: {_format_value(child.get('merged_ref'))}")
|
|
653
|
+
if child.get("evidence"):
|
|
654
|
+
lines.append(f" evidence: {_format_value(child.get('evidence'))}")
|
|
655
|
+
if child.get("reason"):
|
|
656
|
+
lines.append(f" reason: {_format_value(child.get('reason'))}")
|
|
657
|
+
stages = data.get("stages") or []
|
|
658
|
+
if isinstance(stages, list) and stages:
|
|
659
|
+
lines.append("stages:")
|
|
660
|
+
for stage in stages:
|
|
661
|
+
if not isinstance(stage, dict):
|
|
662
|
+
continue
|
|
663
|
+
lines.append(f" - id: {_format_value(stage.get('id'))}")
|
|
664
|
+
if stage.get("title"):
|
|
665
|
+
lines.append(f" title: {_format_value(stage.get('title'))}")
|
|
666
|
+
lines.append(f" units: {_format_value(stage.get('units', []))}")
|
|
667
|
+
lines.append(f"integration_queue: {_format_value(data.get('integration_queue', []))}")
|
|
668
|
+
return "\n".join(lines) + "\n"
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
def _format_value(value) -> str:
|
|
672
|
+
if value is None:
|
|
673
|
+
return "null"
|
|
674
|
+
if isinstance(value, list):
|
|
675
|
+
if not value:
|
|
676
|
+
return "[]"
|
|
677
|
+
return "[" + ", ".join(str(item) for item in value) + "]"
|
|
678
|
+
return str(value)
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
def _short_text(value: str | None, max_len: int = 240) -> bool:
|
|
682
|
+
if not value or not isinstance(value, str):
|
|
683
|
+
return False
|
|
684
|
+
if len(value) > max_len:
|
|
685
|
+
return False
|
|
686
|
+
if "\n" in value or "\r" in value:
|
|
687
|
+
return False
|
|
688
|
+
return True
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
def _required_child_evidence(child_dir: Path, names: list[str]) -> list[str]:
|
|
692
|
+
errors: list[str] = []
|
|
693
|
+
for name in names:
|
|
694
|
+
path = child_dir / name
|
|
695
|
+
if not path.is_file():
|
|
696
|
+
errors.append(name)
|
|
697
|
+
continue
|
|
698
|
+
try:
|
|
699
|
+
if not path.read_text(encoding="utf-8").strip():
|
|
700
|
+
errors.append(f"{name} is empty")
|
|
701
|
+
except OSError:
|
|
702
|
+
errors.append(f"{name} could not be read")
|
|
703
|
+
return errors
|