@open-agent-toolkit/cli 0.0.10
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 +50 -0
- package/assets/agents/oat-codebase-mapper.md +275 -0
- package/assets/agents/oat-reviewer.md +350 -0
- package/assets/agents/skeptical-evaluator.md +126 -0
- package/assets/docs/contributing/code.md +95 -0
- package/assets/docs/contributing/commit-conventions.md +41 -0
- package/assets/docs/contributing/design-principles.md +124 -0
- package/assets/docs/contributing/documentation.md +69 -0
- package/assets/docs/contributing/hooks-and-safety.md +31 -0
- package/assets/docs/contributing/index.md +18 -0
- package/assets/docs/contributing/markdown-features.md +117 -0
- package/assets/docs/contributing/skills.md +68 -0
- package/assets/docs/guide/cli-reference.md +211 -0
- package/assets/docs/guide/concepts.md +88 -0
- package/assets/docs/guide/configuration.md +130 -0
- package/assets/docs/guide/documentation/commands.md +157 -0
- package/assets/docs/guide/documentation/index.md +27 -0
- package/assets/docs/guide/documentation/quickstart.md +164 -0
- package/assets/docs/guide/documentation/workflows.md +67 -0
- package/assets/docs/guide/getting-started.md +63 -0
- package/assets/docs/guide/ideas/index.md +34 -0
- package/assets/docs/guide/ideas/lifecycle.md +106 -0
- package/assets/docs/guide/index.md +20 -0
- package/assets/docs/guide/provider-sync/commands.md +100 -0
- package/assets/docs/guide/provider-sync/config.md +77 -0
- package/assets/docs/guide/provider-sync/index.md +65 -0
- package/assets/docs/guide/provider-sync/manifest-and-drift.md +55 -0
- package/assets/docs/guide/provider-sync/providers.md +67 -0
- package/assets/docs/guide/provider-sync/scope-and-surface.md +64 -0
- package/assets/docs/guide/skills/index.md +115 -0
- package/assets/docs/guide/tool-packs.md +167 -0
- package/assets/docs/guide/workflow/artifacts.md +44 -0
- package/assets/docs/guide/workflow/hill-checkpoints.md +53 -0
- package/assets/docs/guide/workflow/index.md +34 -0
- package/assets/docs/guide/workflow/lifecycle.md +207 -0
- package/assets/docs/guide/workflow/pr-flow.md +55 -0
- package/assets/docs/guide/workflow/repo-analysis.md +96 -0
- package/assets/docs/guide/workflow/reviews.md +98 -0
- package/assets/docs/guide/workflow/state-machine.md +74 -0
- package/assets/docs/index.md +45 -0
- package/assets/docs/quickstart.md +162 -0
- package/assets/docs/reference/docs-index-contract.md +53 -0
- package/assets/docs/reference/file-locations.md +109 -0
- package/assets/docs/reference/index.md +29 -0
- package/assets/docs/reference/oat-directory-structure.md +236 -0
- package/assets/docs/reference/troubleshooting.md +63 -0
- package/assets/public-package-versions.json +6 -0
- package/assets/scripts/resolve-tracking.sh +233 -0
- package/assets/skills/analyze/SKILL.md +358 -0
- package/assets/skills/compare/SKILL.md +276 -0
- package/assets/skills/create-agnostic-skill/SKILL.md +410 -0
- package/assets/skills/create-agnostic-skill/references/skill-template.md +195 -0
- package/assets/skills/deep-research/SKILL.md +350 -0
- package/assets/skills/deep-research/references/schema-analysis.md +93 -0
- package/assets/skills/deep-research/references/schema-architectural.md +75 -0
- package/assets/skills/deep-research/references/schema-base.md +70 -0
- package/assets/skills/deep-research/references/schema-comparative.md +72 -0
- package/assets/skills/deep-research/references/schema-conceptual.md +68 -0
- package/assets/skills/deep-research/references/schema-technical.md +64 -0
- package/assets/skills/oat-agent-instructions-analyze/SKILL.md +500 -0
- package/assets/skills/oat-agent-instructions-analyze/references/analysis-artifact-template.md +248 -0
- package/assets/skills/oat-agent-instructions-analyze/references/bundle-summary-template.md +31 -0
- package/assets/skills/oat-agent-instructions-analyze/references/directory-assessment-criteria.md +93 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/agent-instruction.md +575 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/cursor-rules-files.md +510 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/provider-reference.md +429 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/rules-files.md +594 -0
- package/assets/skills/oat-agent-instructions-analyze/references/file-type-discovery-checklist.md +273 -0
- package/assets/skills/oat-agent-instructions-analyze/references/quality-checklist.md +125 -0
- package/assets/skills/oat-agent-instructions-analyze/references/recommendation-pack-template.md +45 -0
- package/assets/skills/oat-agent-instructions-analyze/references/recommendations-manifest-template.yaml +27 -0
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-instruction-files.sh +120 -0
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-providers.sh +135 -0
- package/assets/skills/oat-agent-instructions-apply/SKILL.md +507 -0
- package/assets/skills/oat-agent-instructions-apply/references/apply-plan-template.md +80 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/agent-instruction.md +575 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/cursor-rules-files.md +510 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/provider-reference.md +429 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/rules-files.md +594 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/agents-md-root.md +85 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/agents-md-scoped.md +62 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/claude-rule.md +67 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/copilot-instruction.md +70 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/copilot-shim.md +35 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/cursor-rule.md +84 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/glob-scoped-rule.md +59 -0
- package/assets/skills/oat-docs/SKILL.md +214 -0
- package/assets/skills/oat-docs-analyze/SKILL.md +355 -0
- package/assets/skills/oat-docs-analyze/references/analysis-artifact-template.md +192 -0
- package/assets/skills/oat-docs-analyze/references/directory-assessment-criteria.md +46 -0
- package/assets/skills/oat-docs-analyze/references/quality-checklist.md +48 -0
- package/assets/skills/oat-docs-apply/SKILL.md +339 -0
- package/assets/skills/oat-docs-apply/references/apply-plan-template.md +69 -0
- package/assets/skills/oat-doctor/SKILL.md +293 -0
- package/assets/skills/oat-idea-ideate/SKILL.md +187 -0
- package/assets/skills/oat-idea-new/SKILL.md +152 -0
- package/assets/skills/oat-idea-scratchpad/SKILL.md +115 -0
- package/assets/skills/oat-idea-summarize/SKILL.md +172 -0
- package/assets/skills/oat-pjm-add-backlog-item/SKILL.md +155 -0
- package/assets/skills/oat-pjm-review-backlog/SKILL.md +171 -0
- package/assets/skills/oat-pjm-review-backlog/references/backlog-review-template.md +172 -0
- package/assets/skills/oat-pjm-update-repo-reference/SKILL.md +128 -0
- package/assets/skills/oat-project-capture/SKILL.md +306 -0
- package/assets/skills/oat-project-clear-active/SKILL.md +50 -0
- package/assets/skills/oat-project-complete/SKILL.md +461 -0
- package/assets/skills/oat-project-design/SKILL.md +461 -0
- package/assets/skills/oat-project-discover/SKILL.md +395 -0
- package/assets/skills/oat-project-document/SKILL.md +468 -0
- package/assets/skills/oat-project-implement/SKILL.md +736 -0
- package/assets/skills/oat-project-import-plan/SKILL.md +228 -0
- package/assets/skills/oat-project-import-plan/scripts/find-recent-provider-plans.sh +149 -0
- package/assets/skills/oat-project-new/SKILL.md +74 -0
- package/assets/skills/oat-project-next/SKILL.md +345 -0
- package/assets/skills/oat-project-open/SKILL.md +47 -0
- package/assets/skills/oat-project-plan/SKILL.md +415 -0
- package/assets/skills/oat-project-plan-writing/SKILL.md +116 -0
- package/assets/skills/oat-project-pr-final/SKILL.md +391 -0
- package/assets/skills/oat-project-pr-progress/SKILL.md +354 -0
- package/assets/skills/oat-project-progress/SKILL.md +342 -0
- package/assets/skills/oat-project-promote-spec-driven/SKILL.md +155 -0
- package/assets/skills/oat-project-quick-start/SKILL.md +363 -0
- package/assets/skills/oat-project-reconcile/SKILL.md +738 -0
- package/assets/skills/oat-project-review-provide/SKILL.md +728 -0
- package/assets/skills/oat-project-review-receive/SKILL.md +641 -0
- package/assets/skills/oat-project-review-receive-remote/SKILL.md +235 -0
- package/assets/skills/oat-project-revise/SKILL.md +316 -0
- package/assets/skills/oat-project-spec/SKILL.md +471 -0
- package/assets/skills/oat-project-subagent-implement/SKILL.md +549 -0
- package/assets/skills/oat-project-subagent-implement/examples/pattern-hill-checkpoint.md +110 -0
- package/assets/skills/oat-project-subagent-implement/examples/pattern-parallel-phases.md +118 -0
- package/assets/skills/oat-project-subagent-implement/scripts/dispatch.sh +133 -0
- package/assets/skills/oat-project-subagent-implement/scripts/reconcile.sh +182 -0
- package/assets/skills/oat-project-subagent-implement/scripts/review-gate.sh +187 -0
- package/assets/skills/oat-project-subagent-implement/tests/fixtures/sample-plan.md +234 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-dry-run.sh +126 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-hill-checkpoint.sh +127 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-reconcile.sh +254 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-review-gate.sh +220 -0
- package/assets/skills/oat-project-summary/SKILL.md +227 -0
- package/assets/skills/oat-repo-knowledge-index/SKILL.md +724 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/architecture.md +83 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/concerns.md +97 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/conventions.md +100 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/integrations.md +91 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/stack.md +86 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/structure.md +88 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/testing.md +137 -0
- package/assets/skills/oat-repo-maintainability-review/SKILL.md +198 -0
- package/assets/skills/oat-repo-maintainability-review/references/dx-checklist.md +33 -0
- package/assets/skills/oat-repo-maintainability-review/references/repo-review-artifact-template.md +72 -0
- package/assets/skills/oat-repo-maintainability-review/references/repo-review-rubric.md +66 -0
- package/assets/skills/oat-repo-maintainability-review/scripts/resolve-analysis-output.sh +162 -0
- package/assets/skills/oat-review-provide/SKILL.md +231 -0
- package/assets/skills/oat-review-provide/references/review-artifact-template.md +55 -0
- package/assets/skills/oat-review-provide/scripts/resolve-review-output.sh +124 -0
- package/assets/skills/oat-review-receive/SKILL.md +238 -0
- package/assets/skills/oat-review-receive-remote/SKILL.md +250 -0
- package/assets/skills/oat-worktree-bootstrap/SKILL.md +208 -0
- package/assets/skills/oat-worktree-bootstrap/references/worktree-conventions.md +58 -0
- package/assets/skills/oat-worktree-bootstrap-auto/SKILL.md +245 -0
- package/assets/skills/oat-worktree-bootstrap-auto/scripts/bootstrap.sh +194 -0
- package/assets/skills/skeptic/SKILL.md +261 -0
- package/assets/skills/synthesize/SKILL.md +361 -0
- package/assets/templates/backlog-item.md +24 -0
- package/assets/templates/design.md +315 -0
- package/assets/templates/discovery.md +135 -0
- package/assets/templates/docs-app-fuma/app/[[...slug]]/page.tsx +30 -0
- package/assets/templates/docs-app-fuma/app/api/search/route.ts +8 -0
- package/assets/templates/docs-app-fuma/app/globals.css +69 -0
- package/assets/templates/docs-app-fuma/app/layout.tsx +26 -0
- package/assets/templates/docs-app-fuma/docs/contributing.md +71 -0
- package/assets/templates/docs-app-fuma/docs/getting-started.md +40 -0
- package/assets/templates/docs-app-fuma/docs/index.md +13 -0
- package/assets/templates/docs-app-fuma/lib/source.ts +8 -0
- package/assets/templates/docs-app-fuma/next.config.js +6 -0
- package/assets/templates/docs-app-fuma/package.json.template +38 -0
- package/assets/templates/docs-app-fuma/postcss.config.mjs +7 -0
- package/assets/templates/docs-app-fuma/source.config.ts +14 -0
- package/assets/templates/docs-app-fuma/tsconfig.json +25 -0
- package/assets/templates/docs-app-mkdocs/docs/contributing.md +122 -0
- package/assets/templates/docs-app-mkdocs/docs/getting-started.md +28 -0
- package/assets/templates/docs-app-mkdocs/docs/index.md +8 -0
- package/assets/templates/docs-app-mkdocs/mkdocs.yml +47 -0
- package/assets/templates/docs-app-mkdocs/package.json.template +19 -0
- package/assets/templates/docs-app-mkdocs/requirements.txt +6 -0
- package/assets/templates/docs-app-mkdocs/setup-docs.sh +18 -0
- package/assets/templates/ideas/idea-discovery.md +39 -0
- package/assets/templates/ideas/idea-summary.md +42 -0
- package/assets/templates/ideas/ideas-backlog.md +21 -0
- package/assets/templates/ideas/ideas-scratchpad.md +10 -0
- package/assets/templates/implementation.md +207 -0
- package/assets/templates/plan.md +171 -0
- package/assets/templates/roadmap.md +24 -0
- package/assets/templates/spec.md +138 -0
- package/assets/templates/state.md +49 -0
- package/assets/templates/summary.md +82 -0
- package/dist/agents/canonical/index.d.ts +4 -0
- package/dist/agents/canonical/index.d.ts.map +1 -0
- package/dist/agents/canonical/index.js +2 -0
- package/dist/agents/canonical/parse.d.ts +4 -0
- package/dist/agents/canonical/parse.d.ts.map +1 -0
- package/dist/agents/canonical/parse.js +97 -0
- package/dist/agents/canonical/render.d.ts +3 -0
- package/dist/agents/canonical/render.d.ts.map +1 -0
- package/dist/agents/canonical/render.js +17 -0
- package/dist/agents/canonical/types.d.ts +22 -0
- package/dist/agents/canonical/types.d.ts.map +1 -0
- package/dist/agents/canonical/types.js +1 -0
- package/dist/app/command-context.d.ts +21 -0
- package/dist/app/command-context.d.ts.map +1 -0
- package/dist/app/command-context.js +18 -0
- package/dist/app/create-program.d.ts +3 -0
- package/dist/app/create-program.d.ts.map +1 -0
- package/dist/app/create-program.js +17 -0
- package/dist/commands/__tests__/helpers.d.ts +12 -0
- package/dist/commands/__tests__/helpers.d.ts.map +1 -0
- package/dist/commands/__tests__/helpers.js +36 -0
- package/dist/commands/backlog/index.d.ts +14 -0
- package/dist/commands/backlog/index.d.ts.map +1 -0
- package/dist/commands/backlog/index.js +80 -0
- package/dist/commands/backlog/init.d.ts +2 -0
- package/dist/commands/backlog/init.d.ts.map +1 -0
- package/dist/commands/backlog/init.js +66 -0
- package/dist/commands/backlog/regenerate-index.d.ts +2 -0
- package/dist/commands/backlog/regenerate-index.d.ts.map +1 -0
- package/dist/commands/backlog/regenerate-index.js +78 -0
- package/dist/commands/backlog/shared/generate-id.d.ts +4 -0
- package/dist/commands/backlog/shared/generate-id.d.ts.map +1 -0
- package/dist/commands/backlog/shared/generate-id.js +65 -0
- package/dist/commands/cleanup/artifacts/artifacts.d.ts +44 -0
- package/dist/commands/cleanup/artifacts/artifacts.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.js +381 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.d.ts +13 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.js +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.d.ts +14 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.js +74 -0
- package/dist/commands/cleanup/cleanup.types.d.ts +26 -0
- package/dist/commands/cleanup/cleanup.types.d.ts.map +1 -0
- package/dist/commands/cleanup/cleanup.types.js +1 -0
- package/dist/commands/cleanup/cleanup.utils.d.ts +17 -0
- package/dist/commands/cleanup/cleanup.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/cleanup.utils.js +44 -0
- package/dist/commands/cleanup/index.d.ts +3 -0
- package/dist/commands/cleanup/index.d.ts.map +1 -0
- package/dist/commands/cleanup/index.js +9 -0
- package/dist/commands/cleanup/project/project.d.ts +20 -0
- package/dist/commands/cleanup/project/project.d.ts.map +1 -0
- package/dist/commands/cleanup/project/project.js +263 -0
- package/dist/commands/cleanup/project/project.utils.d.ts +8 -0
- package/dist/commands/cleanup/project/project.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/project/project.utils.js +48 -0
- package/dist/commands/config/index.d.ts +16 -0
- package/dist/commands/config/index.d.ts.map +1 -0
- package/dist/commands/config/index.js +700 -0
- package/dist/commands/docs/analyze.d.ts +8 -0
- package/dist/commands/docs/analyze.d.ts.map +1 -0
- package/dist/commands/docs/analyze.js +45 -0
- package/dist/commands/docs/apply.d.ts +8 -0
- package/dist/commands/docs/apply.d.ts.map +1 -0
- package/dist/commands/docs/apply.js +45 -0
- package/dist/commands/docs/index-generate/generator.d.ts +9 -0
- package/dist/commands/docs/index-generate/generator.d.ts.map +1 -0
- package/dist/commands/docs/index-generate/generator.js +114 -0
- package/dist/commands/docs/index-generate/index.d.ts +16 -0
- package/dist/commands/docs/index-generate/index.d.ts.map +1 -0
- package/dist/commands/docs/index-generate/index.js +72 -0
- package/dist/commands/docs/index.d.ts +3 -0
- package/dist/commands/docs/index.d.ts.map +1 -0
- package/dist/commands/docs/index.js +17 -0
- package/dist/commands/docs/init/index.d.ts +18 -0
- package/dist/commands/docs/init/index.d.ts.map +1 -0
- package/dist/commands/docs/init/index.js +129 -0
- package/dist/commands/docs/init/resolve-options.d.ts +41 -0
- package/dist/commands/docs/init/resolve-options.d.ts.map +1 -0
- package/dist/commands/docs/init/resolve-options.js +120 -0
- package/dist/commands/docs/init/scaffold.d.ts +18 -0
- package/dist/commands/docs/init/scaffold.d.ts.map +1 -0
- package/dist/commands/docs/init/scaffold.js +233 -0
- package/dist/commands/docs/migrate/codemod.d.ts +6 -0
- package/dist/commands/docs/migrate/codemod.d.ts.map +1 -0
- package/dist/commands/docs/migrate/codemod.js +62 -0
- package/dist/commands/docs/migrate/frontmatter.d.ts +12 -0
- package/dist/commands/docs/migrate/frontmatter.d.ts.map +1 -0
- package/dist/commands/docs/migrate/frontmatter.js +55 -0
- package/dist/commands/docs/migrate/index.d.ts +18 -0
- package/dist/commands/docs/migrate/index.d.ts.map +1 -0
- package/dist/commands/docs/migrate/index.js +138 -0
- package/dist/commands/docs/nav/contents.d.ts +14 -0
- package/dist/commands/docs/nav/contents.d.ts.map +1 -0
- package/dist/commands/docs/nav/contents.js +106 -0
- package/dist/commands/docs/nav/index.d.ts +3 -0
- package/dist/commands/docs/nav/index.d.ts.map +1 -0
- package/dist/commands/docs/nav/index.js +7 -0
- package/dist/commands/docs/nav/sync.d.ts +20 -0
- package/dist/commands/docs/nav/sync.d.ts.map +1 -0
- package/dist/commands/docs/nav/sync.js +92 -0
- package/dist/commands/doctor/index.d.ts +32 -0
- package/dist/commands/doctor/index.d.ts.map +1 -0
- package/dist/commands/doctor/index.js +373 -0
- package/dist/commands/index-cmd/index.d.ts +11 -0
- package/dist/commands/index-cmd/index.d.ts.map +1 -0
- package/dist/commands/index-cmd/index.js +62 -0
- package/dist/commands/index-cmd/thin-index.d.ts +19 -0
- package/dist/commands/index-cmd/thin-index.d.ts.map +1 -0
- package/dist/commands/index-cmd/thin-index.js +330 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +38 -0
- package/dist/commands/init/detect-docs.d.ts +11 -0
- package/dist/commands/init/detect-docs.d.ts.map +1 -0
- package/dist/commands/init/detect-docs.js +51 -0
- package/dist/commands/init/gitignore.d.ts +6 -0
- package/dist/commands/init/gitignore.d.ts.map +1 -0
- package/dist/commands/init/gitignore.js +41 -0
- package/dist/commands/init/index.d.ts +70 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +570 -0
- package/dist/commands/init/tools/core/index.d.ts +12 -0
- package/dist/commands/init/tools/core/index.d.ts.map +1 -0
- package/dist/commands/init/tools/core/index.js +67 -0
- package/dist/commands/init/tools/core/install-core.d.ts +30 -0
- package/dist/commands/init/tools/core/install-core.d.ts.map +1 -0
- package/dist/commands/init/tools/core/install-core.js +50 -0
- package/dist/commands/init/tools/docs/index.d.ts +17 -0
- package/dist/commands/init/tools/docs/index.d.ts.map +1 -0
- package/dist/commands/init/tools/docs/index.js +110 -0
- package/dist/commands/init/tools/docs/install-docs.d.ts +23 -0
- package/dist/commands/init/tools/docs/install-docs.d.ts.map +1 -0
- package/dist/commands/init/tools/docs/install-docs.js +58 -0
- package/dist/commands/init/tools/ideas/index.d.ts +16 -0
- package/dist/commands/init/tools/ideas/index.d.ts.map +1 -0
- package/dist/commands/init/tools/ideas/index.js +94 -0
- package/dist/commands/init/tools/ideas/install-ideas.d.ts +25 -0
- package/dist/commands/init/tools/ideas/install-ideas.d.ts.map +1 -0
- package/dist/commands/init/tools/ideas/install-ideas.js +78 -0
- package/dist/commands/init/tools/index.d.ts +51 -0
- package/dist/commands/init/tools/index.d.ts.map +1 -0
- package/dist/commands/init/tools/index.js +387 -0
- package/dist/commands/init/tools/project-management/index.d.ts +12 -0
- package/dist/commands/init/tools/project-management/index.d.ts.map +1 -0
- package/dist/commands/init/tools/project-management/index.js +61 -0
- package/dist/commands/init/tools/project-management/install-project-management.d.ts +22 -0
- package/dist/commands/init/tools/project-management/install-project-management.d.ts.map +1 -0
- package/dist/commands/init/tools/project-management/install-project-management.js +52 -0
- package/dist/commands/init/tools/research/index.d.ts +17 -0
- package/dist/commands/init/tools/research/index.d.ts.map +1 -0
- package/dist/commands/init/tools/research/index.js +110 -0
- package/dist/commands/init/tools/research/install-research.d.ts +23 -0
- package/dist/commands/init/tools/research/install-research.d.ts.map +1 -0
- package/dist/commands/init/tools/research/install-research.js +52 -0
- package/dist/commands/init/tools/shared/copy-helpers.d.ts +12 -0
- package/dist/commands/init/tools/shared/copy-helpers.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/copy-helpers.js +52 -0
- package/dist/commands/init/tools/shared/skill-manifest.d.ts +22 -0
- package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/skill-manifest.js +102 -0
- package/dist/commands/init/tools/shared/version.d.ts +3 -0
- package/dist/commands/init/tools/shared/version.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/version.js +27 -0
- package/dist/commands/init/tools/utility/index.d.ts +17 -0
- package/dist/commands/init/tools/utility/index.d.ts.map +1 -0
- package/dist/commands/init/tools/utility/index.js +109 -0
- package/dist/commands/init/tools/utility/install-utility.d.ts +20 -0
- package/dist/commands/init/tools/utility/install-utility.d.ts.map +1 -0
- package/dist/commands/init/tools/utility/install-utility.js +35 -0
- package/dist/commands/init/tools/workflows/index.d.ts +14 -0
- package/dist/commands/init/tools/workflows/index.d.ts.map +1 -0
- package/dist/commands/init/tools/workflows/index.js +84 -0
- package/dist/commands/init/tools/workflows/install-workflows.d.ts +32 -0
- package/dist/commands/init/tools/workflows/install-workflows.d.ts.map +1 -0
- package/dist/commands/init/tools/workflows/install-workflows.js +135 -0
- package/dist/commands/instructions/index.d.ts +3 -0
- package/dist/commands/instructions/index.d.ts.map +1 -0
- package/dist/commands/instructions/index.js +9 -0
- package/dist/commands/instructions/instructions.types.d.ts +52 -0
- package/dist/commands/instructions/instructions.types.d.ts.map +1 -0
- package/dist/commands/instructions/instructions.types.js +1 -0
- package/dist/commands/instructions/instructions.utils.d.ts +13 -0
- package/dist/commands/instructions/instructions.utils.d.ts.map +1 -0
- package/dist/commands/instructions/instructions.utils.js +211 -0
- package/dist/commands/instructions/sync/sync.d.ts +4 -0
- package/dist/commands/instructions/sync/sync.d.ts.map +1 -0
- package/dist/commands/instructions/sync/sync.js +142 -0
- package/dist/commands/instructions/validate/validate.d.ts +4 -0
- package/dist/commands/instructions/validate/validate.d.ts.map +1 -0
- package/dist/commands/instructions/validate/validate.js +53 -0
- package/dist/commands/internal/index.d.ts +3 -0
- package/dist/commands/internal/index.d.ts.map +1 -0
- package/dist/commands/internal/index.js +7 -0
- package/dist/commands/internal/validate-oat-skills.d.ts +10 -0
- package/dist/commands/internal/validate-oat-skills.d.ts.map +1 -0
- package/dist/commands/internal/validate-oat-skills.js +66 -0
- package/dist/commands/local/apply.d.ts +6 -0
- package/dist/commands/local/apply.d.ts.map +1 -0
- package/dist/commands/local/apply.js +56 -0
- package/dist/commands/local/expand.d.ts +8 -0
- package/dist/commands/local/expand.d.ts.map +1 -0
- package/dist/commands/local/expand.js +83 -0
- package/dist/commands/local/index.d.ts +3 -0
- package/dist/commands/local/index.d.ts.map +1 -0
- package/dist/commands/local/index.js +248 -0
- package/dist/commands/local/manage.d.ts +18 -0
- package/dist/commands/local/manage.d.ts.map +1 -0
- package/dist/commands/local/manage.js +66 -0
- package/dist/commands/local/status.d.ts +7 -0
- package/dist/commands/local/status.d.ts.map +1 -0
- package/dist/commands/local/status.js +46 -0
- package/dist/commands/local/sync.d.ts +20 -0
- package/dist/commands/local/sync.d.ts.map +1 -0
- package/dist/commands/local/sync.js +40 -0
- package/dist/commands/project/archive/archive-utils.d.ts +70 -0
- package/dist/commands/project/archive/archive-utils.d.ts.map +1 -0
- package/dist/commands/project/archive/archive-utils.js +236 -0
- package/dist/commands/project/archive/index.d.ts +20 -0
- package/dist/commands/project/archive/index.d.ts.map +1 -0
- package/dist/commands/project/archive/index.js +217 -0
- package/dist/commands/project/index.d.ts +3 -0
- package/dist/commands/project/index.d.ts.map +1 -0
- package/dist/commands/project/index.js +15 -0
- package/dist/commands/project/new/index.d.ts +17 -0
- package/dist/commands/project/new/index.d.ts.map +1 -0
- package/dist/commands/project/new/index.js +76 -0
- package/dist/commands/project/new/scaffold.d.ts +24 -0
- package/dist/commands/project/new/scaffold.d.ts.map +1 -0
- package/dist/commands/project/new/scaffold.js +177 -0
- package/dist/commands/project/open/index.d.ts +26 -0
- package/dist/commands/project/open/index.d.ts.map +1 -0
- package/dist/commands/project/open/index.js +139 -0
- package/dist/commands/project/pause/index.d.ts +27 -0
- package/dist/commands/project/pause/index.d.ts.map +1 -0
- package/dist/commands/project/pause/index.js +120 -0
- package/dist/commands/project/set-mode/index.d.ts +14 -0
- package/dist/commands/project/set-mode/index.d.ts.map +1 -0
- package/dist/commands/project/set-mode/index.js +115 -0
- package/dist/commands/providers/index.d.ts +4 -0
- package/dist/commands/providers/index.d.ts.map +1 -0
- package/dist/commands/providers/index.js +11 -0
- package/dist/commands/providers/inspect/inspect.d.ts +4 -0
- package/dist/commands/providers/inspect/inspect.d.ts.map +1 -0
- package/dist/commands/providers/inspect/inspect.js +156 -0
- package/dist/commands/providers/list/list.d.ts +4 -0
- package/dist/commands/providers/list/list.d.ts.map +1 -0
- package/dist/commands/providers/list/list.js +163 -0
- package/dist/commands/providers/providers.types.d.ts +63 -0
- package/dist/commands/providers/providers.types.d.ts.map +1 -0
- package/dist/commands/providers/providers.types.js +1 -0
- package/dist/commands/providers/set/index.d.ts +4 -0
- package/dist/commands/providers/set/index.d.ts.map +1 -0
- package/dist/commands/providers/set/index.js +138 -0
- package/dist/commands/remove/index.d.ts +3 -0
- package/dist/commands/remove/index.d.ts.map +1 -0
- package/dist/commands/remove/index.js +9 -0
- package/dist/commands/remove/skill/index.d.ts +2 -0
- package/dist/commands/remove/skill/index.d.ts.map +1 -0
- package/dist/commands/remove/skill/index.js +1 -0
- package/dist/commands/remove/skill/remove-skill.d.ts +23 -0
- package/dist/commands/remove/skill/remove-skill.d.ts.map +1 -0
- package/dist/commands/remove/skill/remove-skill.js +231 -0
- package/dist/commands/remove/skills/index.d.ts +2 -0
- package/dist/commands/remove/skills/index.d.ts.map +1 -0
- package/dist/commands/remove/skills/index.js +1 -0
- package/dist/commands/remove/skills/remove-skills.d.ts +14 -0
- package/dist/commands/remove/skills/remove-skills.d.ts.map +1 -0
- package/dist/commands/remove/skills/remove-skills.js +98 -0
- package/dist/commands/repo/index.d.ts +3 -0
- package/dist/commands/repo/index.d.ts.map +1 -0
- package/dist/commands/repo/index.js +7 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.d.ts +9 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.js +284 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.d.ts +3 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.js +56 -0
- package/dist/commands/repo/pr-comments/collect/index.d.ts +4 -0
- package/dist/commands/repo/pr-comments/collect/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/index.js +25 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.d.ts +62 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.js +1 -0
- package/dist/commands/repo/pr-comments/index.d.ts +3 -0
- package/dist/commands/repo/pr-comments/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/index.js +9 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.d.ts +4 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.js +21 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.d.ts +13 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.js +81 -0
- package/dist/commands/shared/adopt-stray.d.ts +22 -0
- package/dist/commands/shared/adopt-stray.d.ts.map +1 -0
- package/dist/commands/shared/adopt-stray.js +135 -0
- package/dist/commands/shared/agents-md.d.ts +18 -0
- package/dist/commands/shared/agents-md.d.ts.map +1 -0
- package/dist/commands/shared/agents-md.js +81 -0
- package/dist/commands/shared/codex-strays.d.ts +16 -0
- package/dist/commands/shared/codex-strays.d.ts.map +1 -0
- package/dist/commands/shared/codex-strays.js +116 -0
- package/dist/commands/shared/frontmatter-write.d.ts +8 -0
- package/dist/commands/shared/frontmatter-write.d.ts.map +1 -0
- package/dist/commands/shared/frontmatter-write.js +27 -0
- package/dist/commands/shared/frontmatter.d.ts +6 -0
- package/dist/commands/shared/frontmatter.d.ts.map +1 -0
- package/dist/commands/shared/frontmatter.js +35 -0
- package/dist/commands/shared/messages.d.ts +2 -0
- package/dist/commands/shared/messages.d.ts.map +1 -0
- package/dist/commands/shared/messages.js +1 -0
- package/dist/commands/shared/oat-paths.d.ts +2 -0
- package/dist/commands/shared/oat-paths.d.ts.map +1 -0
- package/dist/commands/shared/oat-paths.js +13 -0
- package/dist/commands/shared/shared.prompts.d.ts +21 -0
- package/dist/commands/shared/shared.prompts.d.ts.map +1 -0
- package/dist/commands/shared/shared.prompts.js +107 -0
- package/dist/commands/shared/shared.utils.d.ts +6 -0
- package/dist/commands/shared/shared.utils.d.ts.map +1 -0
- package/dist/commands/shared/shared.utils.js +9 -0
- package/dist/commands/state/generate.d.ts +21 -0
- package/dist/commands/state/generate.d.ts.map +1 -0
- package/dist/commands/state/generate.js +440 -0
- package/dist/commands/state/index.d.ts +11 -0
- package/dist/commands/state/index.d.ts.map +1 -0
- package/dist/commands/state/index.js +58 -0
- package/dist/commands/status/index.d.ts +44 -0
- package/dist/commands/status/index.d.ts.map +1 -0
- package/dist/commands/status/index.js +340 -0
- package/dist/commands/sync/apply.d.ts +4 -0
- package/dist/commands/sync/apply.d.ts.map +1 -0
- package/dist/commands/sync/apply.js +100 -0
- package/dist/commands/sync/dry-run.d.ts +4 -0
- package/dist/commands/sync/dry-run.d.ts.map +1 -0
- package/dist/commands/sync/dry-run.js +74 -0
- package/dist/commands/sync/index.d.ts +4 -0
- package/dist/commands/sync/index.d.ts.map +1 -0
- package/dist/commands/sync/index.js +225 -0
- package/dist/commands/sync/sync.types.d.ts +80 -0
- package/dist/commands/sync/sync.types.d.ts.map +1 -0
- package/dist/commands/sync/sync.types.js +1 -0
- package/dist/commands/sync/sync.utils.d.ts +3 -0
- package/dist/commands/sync/sync.utils.d.ts.map +1 -0
- package/dist/commands/sync/sync.utils.js +8 -0
- package/dist/commands/tools/index.d.ts +3 -0
- package/dist/commands/tools/index.d.ts.map +1 -0
- package/dist/commands/tools/index.js +17 -0
- package/dist/commands/tools/info/index.d.ts +4 -0
- package/dist/commands/tools/info/index.d.ts.map +1 -0
- package/dist/commands/tools/info/index.js +74 -0
- package/dist/commands/tools/info/info-tool.d.ts +21 -0
- package/dist/commands/tools/info/info-tool.d.ts.map +1 -0
- package/dist/commands/tools/info/info-tool.js +52 -0
- package/dist/commands/tools/install/index.d.ts +4 -0
- package/dist/commands/tools/install/index.d.ts.map +1 -0
- package/dist/commands/tools/install/index.js +34 -0
- package/dist/commands/tools/list/index.d.ts +4 -0
- package/dist/commands/tools/list/index.d.ts.map +1 -0
- package/dist/commands/tools/list/index.js +25 -0
- package/dist/commands/tools/list/list-tools.d.ts +13 -0
- package/dist/commands/tools/list/list-tools.d.ts.map +1 -0
- package/dist/commands/tools/list/list-tools.js +43 -0
- package/dist/commands/tools/outdated/index.d.ts +4 -0
- package/dist/commands/tools/outdated/index.d.ts.map +1 -0
- package/dist/commands/tools/outdated/index.js +25 -0
- package/dist/commands/tools/outdated/outdated-tools.d.ts +13 -0
- package/dist/commands/tools/outdated/outdated-tools.d.ts.map +1 -0
- package/dist/commands/tools/outdated/outdated-tools.js +43 -0
- package/dist/commands/tools/remove/index.d.ts +5 -0
- package/dist/commands/tools/remove/index.d.ts.map +1 -0
- package/dist/commands/tools/remove/index.js +122 -0
- package/dist/commands/tools/remove/remove-tools.d.ts +31 -0
- package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -0
- package/dist/commands/tools/remove/remove-tools.js +41 -0
- package/dist/commands/tools/shared/auto-sync.d.ts +16 -0
- package/dist/commands/tools/shared/auto-sync.d.ts.map +1 -0
- package/dist/commands/tools/shared/auto-sync.js +17 -0
- package/dist/commands/tools/shared/scan-tools.d.ts +18 -0
- package/dist/commands/tools/shared/scan-tools.d.ts.map +1 -0
- package/dist/commands/tools/shared/scan-tools.js +128 -0
- package/dist/commands/tools/shared/types.d.ts +12 -0
- package/dist/commands/tools/shared/types.d.ts.map +1 -0
- package/dist/commands/tools/shared/types.js +1 -0
- package/dist/commands/tools/update/index.d.ts +8 -0
- package/dist/commands/tools/update/index.d.ts.map +1 -0
- package/dist/commands/tools/update/index.js +149 -0
- package/dist/commands/tools/update/update-tools.d.ts +29 -0
- package/dist/commands/tools/update/update-tools.d.ts.map +1 -0
- package/dist/commands/tools/update/update-tools.js +148 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/oat-config.d.ts +61 -0
- package/dist/config/oat-config.d.ts.map +1 -0
- package/dist/config/oat-config.js +319 -0
- package/dist/config/runtime.d.ts +2 -0
- package/dist/config/runtime.d.ts.map +1 -0
- package/dist/config/runtime.js +3 -0
- package/dist/config/sync-config.d.ts +49 -0
- package/dist/config/sync-config.d.ts.map +1 -0
- package/dist/config/sync-config.js +94 -0
- package/dist/drift/detector.d.ts +4 -0
- package/dist/drift/detector.d.ts.map +1 -0
- package/dist/drift/detector.js +69 -0
- package/dist/drift/drift.types.d.ts +17 -0
- package/dist/drift/drift.types.d.ts.map +1 -0
- package/dist/drift/drift.types.js +1 -0
- package/dist/drift/index.d.ts +4 -0
- package/dist/drift/index.d.ts.map +1 -0
- package/dist/drift/index.js +2 -0
- package/dist/drift/strays.d.ts +7 -0
- package/dist/drift/strays.d.ts.map +1 -0
- package/dist/drift/strays.js +153 -0
- package/dist/engine/compute-plan.d.ts +16 -0
- package/dist/engine/compute-plan.d.ts.map +1 -0
- package/dist/engine/compute-plan.js +234 -0
- package/dist/engine/engine.types.d.ts +28 -0
- package/dist/engine/engine.types.d.ts.map +1 -0
- package/dist/engine/engine.types.js +8 -0
- package/dist/engine/execute-plan.d.ts +5 -0
- package/dist/engine/execute-plan.d.ts.map +1 -0
- package/dist/engine/execute-plan.js +141 -0
- package/dist/engine/hook.d.ts +23 -0
- package/dist/engine/hook.d.ts.map +1 -0
- package/dist/engine/hook.js +254 -0
- package/dist/engine/index.d.ts +9 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +6 -0
- package/dist/engine/markers.d.ts +6 -0
- package/dist/engine/markers.d.ts.map +1 -0
- package/dist/engine/markers.js +24 -0
- package/dist/engine/scanner.d.ts +11 -0
- package/dist/engine/scanner.d.ts.map +1 -0
- package/dist/engine/scanner.js +65 -0
- package/dist/engine/test-helpers.d.ts +3 -0
- package/dist/engine/test-helpers.d.ts.map +1 -0
- package/dist/engine/test-helpers.js +31 -0
- package/dist/errors/cli-error.d.ts +5 -0
- package/dist/errors/cli-error.d.ts.map +1 -0
- package/dist/errors/cli-error.js +8 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/fs/assets.d.ts +2 -0
- package/dist/fs/assets.d.ts.map +1 -0
- package/dist/fs/assets.js +22 -0
- package/dist/fs/index.d.ts +4 -0
- package/dist/fs/index.d.ts.map +1 -0
- package/dist/fs/index.js +3 -0
- package/dist/fs/io.d.ts +9 -0
- package/dist/fs/io.d.ts.map +1 -0
- package/dist/fs/io.js +74 -0
- package/dist/fs/paths.d.ts +9 -0
- package/dist/fs/paths.d.ts.map +1 -0
- package/dist/fs/paths.js +42 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/manifest/hash.d.ts +5 -0
- package/dist/manifest/hash.d.ts.map +1 -0
- package/dist/manifest/hash.js +75 -0
- package/dist/manifest/index.d.ts +5 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +3 -0
- package/dist/manifest/manager.d.ts +8 -0
- package/dist/manifest/manager.d.ts.map +1 -0
- package/dist/manifest/manager.js +86 -0
- package/dist/manifest/manifest.types.d.ts +157 -0
- package/dist/manifest/manifest.types.d.ts.map +1 -0
- package/dist/manifest/manifest.types.js +56 -0
- package/dist/providers/claude/adapter.d.ts +3 -0
- package/dist/providers/claude/adapter.d.ts.map +1 -0
- package/dist/providers/claude/adapter.js +20 -0
- package/dist/providers/claude/index.d.ts +3 -0
- package/dist/providers/claude/index.d.ts.map +1 -0
- package/dist/providers/claude/index.js +2 -0
- package/dist/providers/claude/paths.d.ts +4 -0
- package/dist/providers/claude/paths.d.ts.map +1 -0
- package/dist/providers/claude/paths.js +38 -0
- package/dist/providers/claude/rule-transform.d.ts +3 -0
- package/dist/providers/claude/rule-transform.d.ts.map +1 -0
- package/dist/providers/claude/rule-transform.js +22 -0
- package/dist/providers/codex/adapter.d.ts +3 -0
- package/dist/providers/codex/adapter.d.ts.map +1 -0
- package/dist/providers/codex/adapter.js +20 -0
- package/dist/providers/codex/codec/config-merge.d.ts +17 -0
- package/dist/providers/codex/codec/config-merge.d.ts.map +1 -0
- package/dist/providers/codex/codec/config-merge.js +61 -0
- package/dist/providers/codex/codec/export-to-codex.d.ts +9 -0
- package/dist/providers/codex/codec/export-to-codex.d.ts.map +1 -0
- package/dist/providers/codex/codec/export-to-codex.js +45 -0
- package/dist/providers/codex/codec/import-from-codex.d.ts +9 -0
- package/dist/providers/codex/codec/import-from-codex.d.ts.map +1 -0
- package/dist/providers/codex/codec/import-from-codex.js +52 -0
- package/dist/providers/codex/codec/shared.d.ts +7 -0
- package/dist/providers/codex/codec/shared.d.ts.map +1 -0
- package/dist/providers/codex/codec/shared.js +21 -0
- package/dist/providers/codex/codec/sync-extension.d.ts +32 -0
- package/dist/providers/codex/codec/sync-extension.d.ts.map +1 -0
- package/dist/providers/codex/codec/sync-extension.js +227 -0
- package/dist/providers/codex/index.d.ts +6 -0
- package/dist/providers/codex/index.d.ts.map +1 -0
- package/dist/providers/codex/index.js +5 -0
- package/dist/providers/codex/paths.d.ts +4 -0
- package/dist/providers/codex/paths.d.ts.map +1 -0
- package/dist/providers/codex/paths.js +28 -0
- package/dist/providers/copilot/adapter.d.ts +3 -0
- package/dist/providers/copilot/adapter.d.ts.map +1 -0
- package/dist/providers/copilot/adapter.js +30 -0
- package/dist/providers/copilot/index.d.ts +3 -0
- package/dist/providers/copilot/index.d.ts.map +1 -0
- package/dist/providers/copilot/index.js +2 -0
- package/dist/providers/copilot/paths.d.ts +4 -0
- package/dist/providers/copilot/paths.d.ts.map +1 -0
- package/dist/providers/copilot/paths.js +38 -0
- package/dist/providers/copilot/rule-transform.d.ts +3 -0
- package/dist/providers/copilot/rule-transform.d.ts.map +1 -0
- package/dist/providers/copilot/rule-transform.js +58 -0
- package/dist/providers/cursor/adapter.d.ts +3 -0
- package/dist/providers/cursor/adapter.d.ts.map +1 -0
- package/dist/providers/cursor/adapter.js +20 -0
- package/dist/providers/cursor/index.d.ts +3 -0
- package/dist/providers/cursor/index.d.ts.map +1 -0
- package/dist/providers/cursor/index.js +2 -0
- package/dist/providers/cursor/paths.d.ts +4 -0
- package/dist/providers/cursor/paths.d.ts.map +1 -0
- package/dist/providers/cursor/paths.js +38 -0
- package/dist/providers/cursor/rule-transform.d.ts +3 -0
- package/dist/providers/cursor/rule-transform.d.ts.map +1 -0
- package/dist/providers/cursor/rule-transform.js +48 -0
- package/dist/providers/gemini/adapter.d.ts +3 -0
- package/dist/providers/gemini/adapter.d.ts.map +1 -0
- package/dist/providers/gemini/adapter.js +20 -0
- package/dist/providers/gemini/index.d.ts +3 -0
- package/dist/providers/gemini/index.d.ts.map +1 -0
- package/dist/providers/gemini/index.js +2 -0
- package/dist/providers/gemini/paths.d.ts +4 -0
- package/dist/providers/gemini/paths.d.ts.map +1 -0
- package/dist/providers/gemini/paths.js +28 -0
- package/dist/providers/shared/adapter.types.d.ts +21 -0
- package/dist/providers/shared/adapter.types.d.ts.map +1 -0
- package/dist/providers/shared/adapter.types.js +1 -0
- package/dist/providers/shared/adapter.utils.d.ts +12 -0
- package/dist/providers/shared/adapter.utils.d.ts.map +1 -0
- package/dist/providers/shared/adapter.utils.js +57 -0
- package/dist/providers/shared/agent-codec.types.d.ts +13 -0
- package/dist/providers/shared/agent-codec.types.d.ts.map +1 -0
- package/dist/providers/shared/agent-codec.types.js +1 -0
- package/dist/providers/shared/index.d.ts +6 -0
- package/dist/providers/shared/index.d.ts.map +1 -0
- package/dist/providers/shared/index.js +2 -0
- package/dist/providers/shared/markdown-agent-codec.d.ts +5 -0
- package/dist/providers/shared/markdown-agent-codec.d.ts.map +1 -0
- package/dist/providers/shared/markdown-agent-codec.js +12 -0
- package/dist/release/public-package-contract.d.ts +14 -0
- package/dist/release/public-package-contract.d.ts.map +1 -0
- package/dist/release/public-package-contract.js +97 -0
- package/dist/rules/canonical/index.d.ts +6 -0
- package/dist/rules/canonical/index.d.ts.map +1 -0
- package/dist/rules/canonical/index.js +4 -0
- package/dist/rules/canonical/parse.d.ts +9 -0
- package/dist/rules/canonical/parse.d.ts.map +1 -0
- package/dist/rules/canonical/parse.js +103 -0
- package/dist/rules/canonical/provider-filenames.d.ts +3 -0
- package/dist/rules/canonical/provider-filenames.d.ts.map +1 -0
- package/dist/rules/canonical/provider-filenames.js +13 -0
- package/dist/rules/canonical/render.d.ts +5 -0
- package/dist/rules/canonical/render.d.ts.map +1 -0
- package/dist/rules/canonical/render.js +32 -0
- package/dist/rules/canonical/types.d.ts +16 -0
- package/dist/rules/canonical/types.d.ts.map +1 -0
- package/dist/rules/canonical/types.js +6 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/types.d.ts +10 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +14 -0
- package/dist/ui/ansi.d.ts +2 -0
- package/dist/ui/ansi.d.ts.map +1 -0
- package/dist/ui/ansi.js +19 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +3 -0
- package/dist/ui/logger.d.ts +15 -0
- package/dist/ui/logger.d.ts.map +1 -0
- package/dist/ui/logger.js +52 -0
- package/dist/ui/output.d.ts +16 -0
- package/dist/ui/output.d.ts.map +1 -0
- package/dist/ui/output.js +135 -0
- package/dist/ui/spinner.d.ts +16 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +46 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +1 -0
- package/dist/validation/skills.d.ts +10 -0
- package/dist/validation/skills.d.ts.map +1 -0
- package/dist/validation/skills.js +166 -0
- package/package.json +62 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oat-worktree-bootstrap-auto
|
|
3
|
+
version: 1.2.0
|
|
4
|
+
description: Use when an orchestrator/subagent needs autonomous worktree bootstrap. Non-interactive companion to oat-worktree-bootstrap.
|
|
5
|
+
argument-hint: '<branch-name> [--base <ref>] [--path <root>] [--baseline-policy <strict|allow-failing>]'
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
user-invocable: false
|
|
8
|
+
allowed-tools: Read, Write, Bash, Glob, Grep
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Autonomous Worktree Bootstrap
|
|
12
|
+
|
|
13
|
+
Non-interactive worktree bootstrap for orchestrator and subagent execution flows. Creates or reuses a worktree, runs baseline checks, and reports structured status — all without user prompts.
|
|
14
|
+
|
|
15
|
+
## Relationship to oat-worktree-bootstrap
|
|
16
|
+
|
|
17
|
+
This skill is the **autonomous companion** to `oat-worktree-bootstrap`. Key differences:
|
|
18
|
+
|
|
19
|
+
| Concern | oat-worktree-bootstrap (manual) | oat-worktree-bootstrap-auto (autonomous) |
|
|
20
|
+
| ---------------- | ------------------------------------ | ---------------------------------------- |
|
|
21
|
+
| Invocation | User-invocable, interactive | Agent-only, non-interactive |
|
|
22
|
+
| Prompts | Uses `AskUserQuestion` for decisions | Never uses `AskUserQuestion` |
|
|
23
|
+
| Failure handling | Asks user to abort/proceed | Policy-driven (strict or allow-failing) |
|
|
24
|
+
| Status output | Human-readable banners | Structured machine-parseable output |
|
|
25
|
+
| Logging | Console + optional artifact | Artifact-first, console fallback |
|
|
26
|
+
|
|
27
|
+
Both skills share the same worktree root resolution precedence and branch naming conventions.
|
|
28
|
+
|
|
29
|
+
## Progress Indicators (User-Facing)
|
|
30
|
+
|
|
31
|
+
When this skill is executed, provide concise status updates:
|
|
32
|
+
|
|
33
|
+
- Print a phase banner once at start:
|
|
34
|
+
|
|
35
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
36
|
+
OAT ▸ WORKTREE BOOTSTRAP AUTO
|
|
37
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
38
|
+
|
|
39
|
+
- Before major phases, print compact indicators, for example:
|
|
40
|
+
- `[1/5] Resolving worktree root…`
|
|
41
|
+
- `[2/5] Creating/reusing worktree…`
|
|
42
|
+
- `[3/5] Running baseline checks…`
|
|
43
|
+
- `[4/5] Syncing provider directories…`
|
|
44
|
+
- `[5/5] Returning structured status…`
|
|
45
|
+
|
|
46
|
+
## Inputs
|
|
47
|
+
|
|
48
|
+
### Required
|
|
49
|
+
|
|
50
|
+
- `<branch-name>` — Target branch for the worktree.
|
|
51
|
+
|
|
52
|
+
### Optional
|
|
53
|
+
|
|
54
|
+
| Parameter | Default | Description |
|
|
55
|
+
| ---------------------------- | ----------------------- | ------------------------------- |
|
|
56
|
+
| `--base <ref>` | `origin/main` | Base ref to branch from |
|
|
57
|
+
| `--path <root>` | Resolved via precedence | Explicit worktree root override |
|
|
58
|
+
| `--baseline-policy <policy>` | `strict` | Baseline check failure policy |
|
|
59
|
+
|
|
60
|
+
### Baseline Policy
|
|
61
|
+
|
|
62
|
+
| Policy | Behavior |
|
|
63
|
+
| --------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
64
|
+
| `strict` | Fail fast on any baseline check failure. Return error status immediately. |
|
|
65
|
+
| `allow-failing` | Continue on baseline failures. Emit structured warnings. Log failures to project artifacts when available. |
|
|
66
|
+
|
|
67
|
+
## Process
|
|
68
|
+
|
|
69
|
+
### Step 1: Resolve Worktree Root
|
|
70
|
+
|
|
71
|
+
Use the same resolution precedence as `oat-worktree-bootstrap`:
|
|
72
|
+
|
|
73
|
+
1. Explicit `--path <root>` (highest priority)
|
|
74
|
+
2. `OAT_WORKTREES_ROOT` environment variable
|
|
75
|
+
3. `.oat/config.json` → `worktrees.root`
|
|
76
|
+
4. First existing directory (ordered):
|
|
77
|
+
a. `${REPO_ROOT}/.worktrees`
|
|
78
|
+
b. `${REPO_ROOT}/worktrees`
|
|
79
|
+
c. `../${REPO_NAME}-worktrees`
|
|
80
|
+
5. Fallback: `../${REPO_NAME}-worktrees`
|
|
81
|
+
|
|
82
|
+
If the resolved root is project-local (`.worktrees` or `worktrees`), verify it is gitignored.
|
|
83
|
+
|
|
84
|
+
### Step 2: Create or Reuse Worktree
|
|
85
|
+
|
|
86
|
+
- Validate branch name: `^[a-zA-Z0-9._/-]+$`
|
|
87
|
+
- Resolve target path: `{root}/{branch-name}`
|
|
88
|
+
- If branch exists locally: `git worktree add "{target-path}" "{branch-name}"`
|
|
89
|
+
- If branch does not exist: `git worktree add "{target-path}" -b "{branch-name}" "{base-ref}"`
|
|
90
|
+
- If worktree already exists at target path: reuse it (validate branch matches)
|
|
91
|
+
|
|
92
|
+
On failure: return structured error, do not prompt.
|
|
93
|
+
|
|
94
|
+
### Step 2.5: Propagate Local-Only Config + Local Paths
|
|
95
|
+
|
|
96
|
+
After the worktree is created or reused, copy gitignored local-only config and sync configured local paths.
|
|
97
|
+
|
|
98
|
+
**Config propagation:**
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
SRC="$REPO_ROOT/.oat/config.local.json"
|
|
102
|
+
DST="$TARGET_PATH/.oat/config.local.json"
|
|
103
|
+
if [[ -f "$SRC" && ! -f "$DST" ]]; then
|
|
104
|
+
cp "$SRC" "$DST"
|
|
105
|
+
fi
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- Only copy if source exists and destination does not (never overwrite).
|
|
109
|
+
- `activeIdea` is stored in `config.local.json`, so it propagates automatically.
|
|
110
|
+
|
|
111
|
+
**Local paths sync:**
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
oat local sync "$TARGET_PATH" 2>/dev/null || true
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- Copies configured `localPaths` (e.g., `.oat/ideas/`, `.oat/projects/local/`) into the worktree.
|
|
118
|
+
- Non-blocking: if sync fails or no `localPaths` are configured, bootstrap continues.
|
|
119
|
+
|
|
120
|
+
### Step 3: Run Baseline Checks
|
|
121
|
+
|
|
122
|
+
Execute in the target worktree directory:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
pnpm run worktree:init # install + build + sync
|
|
126
|
+
oat status --scope project
|
|
127
|
+
pnpm test
|
|
128
|
+
git status --porcelain
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Check behavior per baseline policy:
|
|
132
|
+
|
|
133
|
+
**strict mode:**
|
|
134
|
+
|
|
135
|
+
- Any check failure → immediately return error status with failure details.
|
|
136
|
+
|
|
137
|
+
**allow-failing mode:**
|
|
138
|
+
|
|
139
|
+
- Check failure → emit structured warning, continue to next check.
|
|
140
|
+
- Collect all warnings and include in final status output.
|
|
141
|
+
- Log failure context:
|
|
142
|
+
- If active project with `implementation.md` exists → append timestamped baseline-failure note.
|
|
143
|
+
- Otherwise → console output only (no fallback file creation).
|
|
144
|
+
|
|
145
|
+
### Step 4: Create Provider Directories
|
|
146
|
+
|
|
147
|
+
Worktrees do not inherit gitignored provider directories. Create them if missing:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
mkdir -p "{target-path}/.claude/skills"
|
|
151
|
+
mkdir -p "{target-path}/.cursor/rules"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Then re-run sync to establish symlinks:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
oat sync --scope all
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Step 5: Return Structured Status
|
|
161
|
+
|
|
162
|
+
Return a structured status object (for orchestrator consumption):
|
|
163
|
+
|
|
164
|
+
```yaml
|
|
165
|
+
status: success | error | warning
|
|
166
|
+
worktree_path: '{absolute-path}'
|
|
167
|
+
branch: '{branch-name}'
|
|
168
|
+
base_ref: '{base-ref}'
|
|
169
|
+
checks:
|
|
170
|
+
worktree_init: pass | fail | skip
|
|
171
|
+
project_status: pass | fail | skip
|
|
172
|
+
tests: pass | fail | skip
|
|
173
|
+
git_clean: pass | fail | skip
|
|
174
|
+
provider_sync: pass | fail | skip
|
|
175
|
+
warnings: [] # List of warning messages (allow-failing mode)
|
|
176
|
+
error: null # Error message (strict mode failure)
|
|
177
|
+
baseline_policy: strict | allow-failing
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Status determination:**
|
|
181
|
+
|
|
182
|
+
- `success`: All checks passed.
|
|
183
|
+
- `warning`: Some checks failed under `allow-failing` policy.
|
|
184
|
+
- `error`: A check failed under `strict` policy, or worktree creation failed.
|
|
185
|
+
|
|
186
|
+
## Error Handling
|
|
187
|
+
|
|
188
|
+
| Scenario | Behavior |
|
|
189
|
+
| ------------------------------------ | ----------------------------------------------- |
|
|
190
|
+
| Worktree creation fails | Return error status with git error message |
|
|
191
|
+
| Branch already checked out elsewhere | Return error with worktree location info |
|
|
192
|
+
| Baseline check fails (strict) | Return error with check name and failure output |
|
|
193
|
+
| Baseline check fails (allow-failing) | Add to warnings, continue, log to artifacts |
|
|
194
|
+
| No active project | Skip artifact logging, use console only |
|
|
195
|
+
| Invalid branch name | Return error before attempting creation |
|
|
196
|
+
|
|
197
|
+
## Artifact Logging
|
|
198
|
+
|
|
199
|
+
When baseline failures occur under `allow-failing` policy and an active project exists:
|
|
200
|
+
|
|
201
|
+
Append to `implementation.md` under `## Implementation Log`:
|
|
202
|
+
|
|
203
|
+
```markdown
|
|
204
|
+
### {YYYY-MM-DD} — Baseline Warning (autonomous bootstrap)
|
|
205
|
+
|
|
206
|
+
**Worktree:** {path}
|
|
207
|
+
**Branch:** {branch-name}
|
|
208
|
+
**Policy:** allow-failing
|
|
209
|
+
**Failures:**
|
|
210
|
+
|
|
211
|
+
- {check_name}: {failure summary}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Policy Flags
|
|
215
|
+
|
|
216
|
+
| Flag | Type | Default | Description |
|
|
217
|
+
| ------------------- | --------------------------- | -------- | -------------------------------------------- |
|
|
218
|
+
| `--baseline-policy` | `strict` \| `allow-failing` | `strict` | Controls behavior when baseline checks fail. |
|
|
219
|
+
|
|
220
|
+
**Policy details:**
|
|
221
|
+
|
|
222
|
+
| Policy | On Failure | Logging | Status Output |
|
|
223
|
+
| --------------- | ----------------------------------- | ------------------------------------------ | ----------------- |
|
|
224
|
+
| `strict` | Fail fast, return error immediately | Error in status output | `status: error` |
|
|
225
|
+
| `allow-failing` | Continue, collect warnings | Append to `implementation.md` (or console) | `status: warning` |
|
|
226
|
+
|
|
227
|
+
**Orchestrator integration:**
|
|
228
|
+
|
|
229
|
+
- When invoked by `oat-project-subagent-implement`, the baseline policy is passed through from the orchestration run policy.
|
|
230
|
+
- The orchestrator may set `--baseline-policy allow-failing` for exploratory runs and `strict` for production-quality execution.
|
|
231
|
+
- The bootstrap skill does not interpret HiLL checkpoints — that responsibility belongs to the orchestrator.
|
|
232
|
+
|
|
233
|
+
## Constraints
|
|
234
|
+
|
|
235
|
+
- **Never** use `AskUserQuestion` — all decisions are policy-driven.
|
|
236
|
+
- **Never** create fallback artifact files — log to existing artifacts or console only.
|
|
237
|
+
- **Never** modify implementation code — bootstrap and checks only.
|
|
238
|
+
- **Never** override or conflict with `oat-worktree-bootstrap` manual-safe behavior.
|
|
239
|
+
|
|
240
|
+
## Success Criteria
|
|
241
|
+
|
|
242
|
+
- Worktree exists and is on the correct branch.
|
|
243
|
+
- Baseline checks executed per policy.
|
|
244
|
+
- Structured status returned for orchestrator consumption.
|
|
245
|
+
- Failures logged to appropriate destination without user interaction.
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# oat-worktree-bootstrap-auto: Autonomous worktree bootstrap
|
|
3
|
+
#
|
|
4
|
+
# Usage: bootstrap.sh <branch-name> [--base <ref>] [--path <root>] [--baseline-policy <strict|allow-failing>]
|
|
5
|
+
#
|
|
6
|
+
# This script is a reference implementation for agent execution.
|
|
7
|
+
# Agents may execute it directly or follow its logic step-by-step.
|
|
8
|
+
|
|
9
|
+
set -euo pipefail
|
|
10
|
+
|
|
11
|
+
# ─── Defaults ───────────────────────────────────────────────────────────────
|
|
12
|
+
BRANCH_NAME=""
|
|
13
|
+
BASE_REF="origin/main"
|
|
14
|
+
WORKTREE_ROOT=""
|
|
15
|
+
BASELINE_POLICY="strict"
|
|
16
|
+
|
|
17
|
+
# ─── Parse Arguments ────────────────────────────────────────────────────────
|
|
18
|
+
while [[ $# -gt 0 ]]; do
|
|
19
|
+
case "$1" in
|
|
20
|
+
--base) BASE_REF="$2"; shift 2 ;;
|
|
21
|
+
--path) WORKTREE_ROOT="$2"; shift 2 ;;
|
|
22
|
+
--baseline-policy) BASELINE_POLICY="$2"; shift 2 ;;
|
|
23
|
+
-*) echo "error: unknown flag $1" >&2; exit 1 ;;
|
|
24
|
+
*) BRANCH_NAME="$1"; shift ;;
|
|
25
|
+
esac
|
|
26
|
+
done
|
|
27
|
+
|
|
28
|
+
if [[ -z "$BRANCH_NAME" ]]; then
|
|
29
|
+
echo "error: branch name required" >&2
|
|
30
|
+
exit 1
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# Validate branch name
|
|
34
|
+
if ! [[ "$BRANCH_NAME" =~ ^[a-zA-Z0-9._/-]+$ ]]; then
|
|
35
|
+
echo "error: invalid branch name '$BRANCH_NAME' (must match ^[a-zA-Z0-9._/-]+\$)" >&2
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# ─── Step 1: Resolve Worktree Root ──────────────────────────────────────────
|
|
40
|
+
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
41
|
+
REPO_NAME=$(basename "$REPO_ROOT")
|
|
42
|
+
|
|
43
|
+
if [[ -z "$WORKTREE_ROOT" ]]; then
|
|
44
|
+
# Precedence 2: environment variable
|
|
45
|
+
if [[ -n "${OAT_WORKTREES_ROOT:-}" ]]; then
|
|
46
|
+
WORKTREE_ROOT="$OAT_WORKTREES_ROOT"
|
|
47
|
+
# Precedence 3: .oat/config.json
|
|
48
|
+
elif [[ -f "$REPO_ROOT/.oat/config.json" ]]; then
|
|
49
|
+
CONFIG_ROOT=$(node -e "try{const c=JSON.parse(require('fs').readFileSync('$REPO_ROOT/.oat/config.json','utf8'));console.log(c.worktrees?.root||'')}catch{}" 2>/dev/null || true)
|
|
50
|
+
if [[ -n "$CONFIG_ROOT" ]]; then
|
|
51
|
+
# Resolve relative to REPO_ROOT
|
|
52
|
+
if [[ "$CONFIG_ROOT" = /* ]]; then
|
|
53
|
+
WORKTREE_ROOT="$CONFIG_ROOT"
|
|
54
|
+
else
|
|
55
|
+
WORKTREE_ROOT="$REPO_ROOT/$CONFIG_ROOT"
|
|
56
|
+
fi
|
|
57
|
+
fi
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
# Precedence 4: discover existing directories (ordered)
|
|
61
|
+
if [[ -z "$WORKTREE_ROOT" ]]; then
|
|
62
|
+
if [[ -d "$REPO_ROOT/.worktrees" ]]; then
|
|
63
|
+
WORKTREE_ROOT="$REPO_ROOT/.worktrees"
|
|
64
|
+
elif [[ -d "$REPO_ROOT/worktrees" ]]; then
|
|
65
|
+
WORKTREE_ROOT="$REPO_ROOT/worktrees"
|
|
66
|
+
elif [[ -d "$(dirname "$REPO_ROOT")/${REPO_NAME}-worktrees" ]]; then
|
|
67
|
+
WORKTREE_ROOT="$(dirname "$REPO_ROOT")/${REPO_NAME}-worktrees"
|
|
68
|
+
else
|
|
69
|
+
# Precedence 5: fallback
|
|
70
|
+
WORKTREE_ROOT="$(dirname "$REPO_ROOT")/${REPO_NAME}-worktrees"
|
|
71
|
+
fi
|
|
72
|
+
fi
|
|
73
|
+
fi
|
|
74
|
+
|
|
75
|
+
# Verify gitignore for project-local roots
|
|
76
|
+
RELATIVE_ROOT="${WORKTREE_ROOT#"$REPO_ROOT"/}"
|
|
77
|
+
if [[ "$RELATIVE_ROOT" == ".worktrees" || "$RELATIVE_ROOT" == "worktrees" ]]; then
|
|
78
|
+
if ! git check-ignore -q "$WORKTREE_ROOT" 2>/dev/null; then
|
|
79
|
+
echo "warning: $RELATIVE_ROOT is not in .gitignore" >&2
|
|
80
|
+
fi
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
# ─── Step 2: Create or Reuse Worktree ──────────────────────────────────────
|
|
84
|
+
TARGET_PATH="$WORKTREE_ROOT/$BRANCH_NAME"
|
|
85
|
+
|
|
86
|
+
# Check if worktree already exists at target
|
|
87
|
+
if [[ -d "$TARGET_PATH/.git" ]] || git worktree list --porcelain | grep -q "worktree $TARGET_PATH$"; then
|
|
88
|
+
# Reuse: validate branch matches
|
|
89
|
+
EXISTING_BRANCH=$(git -C "$TARGET_PATH" branch --show-current 2>/dev/null || true)
|
|
90
|
+
if [[ "$EXISTING_BRANCH" != "$BRANCH_NAME" ]]; then
|
|
91
|
+
echo "error: worktree at $TARGET_PATH is on branch '$EXISTING_BRANCH', expected '$BRANCH_NAME'" >&2
|
|
92
|
+
exit 1
|
|
93
|
+
fi
|
|
94
|
+
echo "info: reusing existing worktree at $TARGET_PATH"
|
|
95
|
+
else
|
|
96
|
+
mkdir -p "$(dirname "$TARGET_PATH")"
|
|
97
|
+
|
|
98
|
+
# Check if branch exists
|
|
99
|
+
if git show-ref --verify --quiet "refs/heads/$BRANCH_NAME" 2>/dev/null; then
|
|
100
|
+
git worktree add "$TARGET_PATH" "$BRANCH_NAME"
|
|
101
|
+
else
|
|
102
|
+
git worktree add "$TARGET_PATH" -b "$BRANCH_NAME" "$BASE_REF"
|
|
103
|
+
fi
|
|
104
|
+
fi
|
|
105
|
+
|
|
106
|
+
# ─── Step 2.5: Propagate Local-Only Config + Local Paths ──────────────────
|
|
107
|
+
SRC_CONFIG="$REPO_ROOT/.oat/config.local.json"
|
|
108
|
+
DST_CONFIG="$TARGET_PATH/.oat/config.local.json"
|
|
109
|
+
if [[ -f "$SRC_CONFIG" && ! -f "$DST_CONFIG" ]]; then
|
|
110
|
+
mkdir -p "$TARGET_PATH/.oat"
|
|
111
|
+
cp "$SRC_CONFIG" "$DST_CONFIG"
|
|
112
|
+
fi
|
|
113
|
+
|
|
114
|
+
# Sync localPaths into the worktree (non-blocking)
|
|
115
|
+
oat local sync "$TARGET_PATH" 2>/dev/null || true
|
|
116
|
+
|
|
117
|
+
# ─── Step 3: Run Baseline Checks ───────────────────────────────────────────
|
|
118
|
+
cd "$TARGET_PATH"
|
|
119
|
+
|
|
120
|
+
declare -A CHECK_RESULTS
|
|
121
|
+
WARNINGS=()
|
|
122
|
+
HAS_ERROR=false
|
|
123
|
+
|
|
124
|
+
run_check() {
|
|
125
|
+
local name="$1"
|
|
126
|
+
shift
|
|
127
|
+
if "$@" >/dev/null 2>&1; then
|
|
128
|
+
CHECK_RESULTS["$name"]="pass"
|
|
129
|
+
else
|
|
130
|
+
CHECK_RESULTS["$name"]="fail"
|
|
131
|
+
if [[ "$BASELINE_POLICY" == "strict" ]]; then
|
|
132
|
+
HAS_ERROR=true
|
|
133
|
+
echo "error: baseline check '$name' failed (strict policy)" >&2
|
|
134
|
+
else
|
|
135
|
+
WARNINGS+=("$name: check failed")
|
|
136
|
+
fi
|
|
137
|
+
fi
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
run_check "worktree_init" pnpm run worktree:init
|
|
141
|
+
if [[ "$HAS_ERROR" == true ]]; then
|
|
142
|
+
cat <<YAML
|
|
143
|
+
status: error
|
|
144
|
+
worktree_path: "$TARGET_PATH"
|
|
145
|
+
branch: "$BRANCH_NAME"
|
|
146
|
+
base_ref: "$BASE_REF"
|
|
147
|
+
error: "worktree_init failed under strict policy"
|
|
148
|
+
baseline_policy: $BASELINE_POLICY
|
|
149
|
+
YAML
|
|
150
|
+
exit 1
|
|
151
|
+
fi
|
|
152
|
+
|
|
153
|
+
run_check "project_status" oat status --scope project
|
|
154
|
+
run_check "tests" pnpm test
|
|
155
|
+
run_check "git_clean" test -z "$(git status --porcelain)"
|
|
156
|
+
|
|
157
|
+
# ─── Step 4: Create Provider Directories ────────────────────────────────────
|
|
158
|
+
mkdir -p "$TARGET_PATH/.claude/skills"
|
|
159
|
+
mkdir -p "$TARGET_PATH/.cursor/rules"
|
|
160
|
+
if oat sync --scope all >/dev/null 2>&1; then
|
|
161
|
+
CHECK_RESULTS["provider_sync"]="pass"
|
|
162
|
+
else
|
|
163
|
+
CHECK_RESULTS["provider_sync"]="fail"
|
|
164
|
+
if [[ "$BASELINE_POLICY" == "strict" ]]; then
|
|
165
|
+
HAS_ERROR=true
|
|
166
|
+
else
|
|
167
|
+
WARNINGS+=("provider_sync: sync failed")
|
|
168
|
+
fi
|
|
169
|
+
fi
|
|
170
|
+
|
|
171
|
+
# ─── Step 5: Return Structured Status ───────────────────────────────────────
|
|
172
|
+
if [[ "$HAS_ERROR" == true ]]; then
|
|
173
|
+
STATUS="error"
|
|
174
|
+
elif [[ ${#WARNINGS[@]} -gt 0 ]]; then
|
|
175
|
+
STATUS="warning"
|
|
176
|
+
else
|
|
177
|
+
STATUS="success"
|
|
178
|
+
fi
|
|
179
|
+
|
|
180
|
+
cat <<YAML
|
|
181
|
+
status: $STATUS
|
|
182
|
+
worktree_path: "$TARGET_PATH"
|
|
183
|
+
branch: "$BRANCH_NAME"
|
|
184
|
+
base_ref: "$BASE_REF"
|
|
185
|
+
checks:
|
|
186
|
+
worktree_init: ${CHECK_RESULTS[worktree_init]:-skip}
|
|
187
|
+
project_status: ${CHECK_RESULTS[project_status]:-skip}
|
|
188
|
+
tests: ${CHECK_RESULTS[tests]:-skip}
|
|
189
|
+
git_clean: ${CHECK_RESULTS[git_clean]:-skip}
|
|
190
|
+
provider_sync: ${CHECK_RESULTS[provider_sync]:-skip}
|
|
191
|
+
warnings: [$(IFS=','; echo "${WARNINGS[*]:-}")]
|
|
192
|
+
error: ${HAS_ERROR:+baseline check failed under strict policy}
|
|
193
|
+
baseline_policy: $BASELINE_POLICY
|
|
194
|
+
YAML
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skeptic
|
|
3
|
+
version: 0.2.0
|
|
4
|
+
description: Use when the user questions or suspects an agent claim is wrong. Adversarially gathers evidence to verify or refute the claim using the best sources available in the current environment.
|
|
5
|
+
argument-hint: '[claim to question — optional, defaults to most recent agent assertion]'
|
|
6
|
+
user-invocable: true
|
|
7
|
+
allowed-tools: Read, Glob, Grep, Bash, WebSearch, WebFetch, AskUserQuestion, Agent, mcp__*
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /skeptic
|
|
11
|
+
|
|
12
|
+
Adversarially evaluates a claim made by the agent. Dispatches a Skeptical Evaluator sub-agent (or self-evaluates when unavailable) to find contradicting evidence first, then supporting evidence. Returns an inline verdict with a confidence score and cited sources.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
Use when:
|
|
17
|
+
|
|
18
|
+
- The user questions or suspects an agent claim may be wrong
|
|
19
|
+
- A claim about code behavior, library versions, or documentation needs evidence backing
|
|
20
|
+
- You need to verify a factual assertion before proceeding
|
|
21
|
+
|
|
22
|
+
## When NOT to Use
|
|
23
|
+
|
|
24
|
+
Don't use when:
|
|
25
|
+
|
|
26
|
+
- The user is asking a new question (not doubting an existing claim)
|
|
27
|
+
- The claim is a matter of preference or opinion with no verifiable ground truth
|
|
28
|
+
- Verification would require information genuinely unavailable in any environment
|
|
29
|
+
|
|
30
|
+
## Arguments
|
|
31
|
+
|
|
32
|
+
Parse from `$ARGUMENTS`:
|
|
33
|
+
|
|
34
|
+
- **claim**: (optional) The specific claim to evaluate. If omitted, infer from the most recent agent assertion in the conversation.
|
|
35
|
+
|
|
36
|
+
## Progress Indicators (User-Facing)
|
|
37
|
+
|
|
38
|
+
Print this banner once at start:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
42
|
+
/skeptic
|
|
43
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then print step indicators before beginning work:
|
|
47
|
+
|
|
48
|
+
- `[1/5] Identifying claim…`
|
|
49
|
+
- `[2/5] Scanning environment…`
|
|
50
|
+
- `[3/5] Checking sub-agent availability…`
|
|
51
|
+
- `[4/5] Gathering evidence…`
|
|
52
|
+
- `[5/5] Synthesizing verdict…`
|
|
53
|
+
|
|
54
|
+
For long-running operations (large codebase search, multiple web fetches), print a start line and a completion line:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
→ Searching codebase for contradicting evidence…
|
|
58
|
+
→ Complete. (Contradicting: N · Supporting: N)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Keep it concise; don't print a line for every shell command.
|
|
62
|
+
|
|
63
|
+
## Workflow
|
|
64
|
+
|
|
65
|
+
### Step 1: Identify the claim
|
|
66
|
+
|
|
67
|
+
`[1/5] Identifying claim…`
|
|
68
|
+
|
|
69
|
+
If `$ARGUMENTS` is provided, use it as the claim. Otherwise, identify the most recent factual assertion made by the agent in the conversation. State the claim explicitly — evaluation must be anchored to something precise.
|
|
70
|
+
|
|
71
|
+
If the claim is ambiguous, ask the user to clarify before proceeding:
|
|
72
|
+
|
|
73
|
+
- **Claude Code**: use `AskUserQuestion`
|
|
74
|
+
- **Codex**: use structured user-input tooling when available in the current host/runtime
|
|
75
|
+
- **Fallback**: ask in plain text
|
|
76
|
+
|
|
77
|
+
The prompt should ask: _"Which claim should I evaluate? Please describe or quote it."_
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### Step 2: Scan environment and classify claim
|
|
82
|
+
|
|
83
|
+
`[2/5] Scanning environment…`
|
|
84
|
+
|
|
85
|
+
Assess available evidence sources based on current environment:
|
|
86
|
+
|
|
87
|
+
| Environment | Available sources |
|
|
88
|
+
| --------------------- | ----------------------------------------------------------- |
|
|
89
|
+
| Claude Code (in repo) | Local files, Grep/Glob, Bash, git history, tests, lockfiles |
|
|
90
|
+
| Claude Code (general) | Filesystem, Bash, web search if enabled |
|
|
91
|
+
| Cursor | Filesystem access, web search if enabled |
|
|
92
|
+
| Codex | Filesystem, web search if enabled |
|
|
93
|
+
| Claude.ai | Web search if enabled, conversation context only |
|
|
94
|
+
|
|
95
|
+
Classify the claim type to determine evidence priority:
|
|
96
|
+
|
|
97
|
+
- **code_behavior** → tests, type signatures, implementation, git history
|
|
98
|
+
- **library_specific** → lockfile, `package.json`, installed module source, docs MCP, npm registry
|
|
99
|
+
- **documentation** → docs MCP (if available), web search, official docs URL
|
|
100
|
+
- **factual** → web search, cited references
|
|
101
|
+
- **architectural** → web search, authoritative references, first-principles reasoning
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### Step 3: Check sub-agent availability
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
[3/5] Checking sub-agent availability…
|
|
109
|
+
→ skeptical-evaluator: {available | not resolved} ({reason})
|
|
110
|
+
→ Selected: Execution Tier {1|2|3} — {Sub-agent | Self-evaluation (recommended) | Inline evaluation}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Detection logic:**
|
|
114
|
+
|
|
115
|
+
- **Execution Tier 1 — Sub-agent dispatch (preferred):**
|
|
116
|
+
- **Claude Code**: `Agent` tool is available → dispatch with `subagent_type: "skeptical-evaluator"`, resolved from `.agents/agents/skeptical-evaluator.md` (synced to `.claude/agents/`)
|
|
117
|
+
- **Cursor**: invoke via `/skeptical-evaluator` or natural mention, resolved from `.cursor/agents/skeptical-evaluator.md` (synced from `.agents/agents/`)
|
|
118
|
+
- **Codex multi-agent**: verify `[features] multi_agent = true` is enabled in active Codex config. Codex may also auto-select and spawn agents without explicit role pinning.
|
|
119
|
+
|
|
120
|
+
- **Execution Tier 2 — Self-evaluation (recommended fallback):**
|
|
121
|
+
- Sub-agent dispatch not available or agent definition not resolved
|
|
122
|
+
- Orchestrator performs adversarial evaluation directly with same logic and output format
|
|
123
|
+
- Log: `→ skeptical-evaluator: not resolved — falling back to Execution Tier 2 self-evaluation`
|
|
124
|
+
|
|
125
|
+
- **Execution Tier 3 — Inline evaluation:**
|
|
126
|
+
- User explicitly requests inline, or confirms they are already in a fresh session
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### Step 4: Gather evidence adversarially
|
|
131
|
+
|
|
132
|
+
`[4/5] Gathering evidence…`
|
|
133
|
+
|
|
134
|
+
The evaluator (or orchestrator in Execution Tier 2/3) receives this context package:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
CLAIM: [exact claim]
|
|
138
|
+
BASIS: [original reasoning/sources/assumptions]
|
|
139
|
+
CLAIM_TYPE: [code_behavior | library_specific | documentation | factual | architectural]
|
|
140
|
+
AVAILABLE_SOURCES: [what's accessible]
|
|
141
|
+
INSTRUCTION: Adversarial. Disprove first, then note supporting evidence.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Evidence priority by claim type:
|
|
145
|
+
|
|
146
|
+
- **code_behavior**: tests → type signatures → implementation → comments → git history
|
|
147
|
+
- **library_specific**: lockfile → `package.json` → installed module source → docs MCP → npm registry
|
|
148
|
+
- **documentation**: docs MCP → web search → official docs URL
|
|
149
|
+
- **factual**: web search → cited references
|
|
150
|
+
- **architectural**: web search → authoritative references → first-principles reasoning
|
|
151
|
+
|
|
152
|
+
Rules:
|
|
153
|
+
|
|
154
|
+
1. **Adversarial first** — look for contradicting evidence before supporting
|
|
155
|
+
2. **Cite specifically** — exact file paths + line numbers, URLs, package versions, or doc sections
|
|
156
|
+
3. **Source-appropriate** — only use sources verifiably accessible in the current environment; never hallucinate
|
|
157
|
+
4. **Note supporting evidence** only after exhausting the contradicting search
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### Step 5: Synthesize verdict
|
|
162
|
+
|
|
163
|
+
`[5/5] Synthesizing verdict…`
|
|
164
|
+
|
|
165
|
+
Return one of four verdict frames inline. Always attempt a clear lean — only use "inconclusive" when evidence is genuinely ambiguous after thorough search.
|
|
166
|
+
|
|
167
|
+
**Holds up**
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
✅ **This holds up** *(confidence: X%)*
|
|
171
|
+
I adversarially reviewed this and still believe it to be accurate.
|
|
172
|
+
[Key supporting evidence with citations]
|
|
173
|
+
[Any caveats if relevant]
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**You were right to be skeptical**
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
❌ **You were right to be skeptical** *(confidence: X%)*
|
|
180
|
+
The evidence contradicts this claim.
|
|
181
|
+
[Contradicting evidence with citations]
|
|
182
|
+
[Corrected or more accurate version of the claim]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Nuanced**
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
⚠️ **This is nuanced** *(confidence: X%)*
|
|
189
|
+
[What's correct, what's incorrect, and under what conditions]
|
|
190
|
+
[Both contradicting and supporting evidence with citations]
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Genuinely inconclusive**
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
❓ **I can't determine this with confidence** *(confidence: X%)*
|
|
197
|
+
[What was found, what wasn't, and why a clear verdict isn't possible]
|
|
198
|
+
[Suggested next steps if applicable]
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Examples
|
|
204
|
+
|
|
205
|
+
### Basic usage
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
/skeptic
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
_(evaluates most recent agent assertion)_
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
/skeptic you said React 18 introduced concurrent rendering — verify that
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
/skeptic the claim that useCallback prevents child re-renders
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Conversational triggers
|
|
222
|
+
|
|
223
|
+
The skill may also be invoked when the user says things like:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
Are you sure about that?
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
That doesn't sound right — can you check?
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Troubleshooting
|
|
234
|
+
|
|
235
|
+
**Claim is ambiguous:**
|
|
236
|
+
|
|
237
|
+
- Ask for clarification using `AskUserQuestion` (Claude Code), structured user-input tooling (Codex), or plain text (fallback)
|
|
238
|
+
- Do not proceed until the claim is precisely anchored
|
|
239
|
+
|
|
240
|
+
**No evidence sources available:**
|
|
241
|
+
|
|
242
|
+
- Return "Genuinely inconclusive" and explain what sources would be needed
|
|
243
|
+
- Never guess or hallucinate sources
|
|
244
|
+
|
|
245
|
+
**Sub-agent dispatch fails:**
|
|
246
|
+
|
|
247
|
+
- Log: `→ skeptical-evaluator: not resolved (dispatch failed) — falling back to Execution Tier 2`
|
|
248
|
+
- Proceed with self-evaluation; output format is identical
|
|
249
|
+
|
|
250
|
+
## Success Criteria
|
|
251
|
+
|
|
252
|
+
- Phase banner printed at start
|
|
253
|
+
- Step indicators printed before work begins
|
|
254
|
+
- Claim explicitly identified and stated before evaluation starts
|
|
255
|
+
- Environment scanned and claim type classified
|
|
256
|
+
- Sub-agent tier selected and logged with reason
|
|
257
|
+
- Contradicting evidence sought before supporting evidence
|
|
258
|
+
- All evidence cited with specific references (files/lines/URLs/versions)
|
|
259
|
+
- One of four verdict frames returned with confidence score
|
|
260
|
+
- Output is inline — no file or artifact produced
|
|
261
|
+
- "Inconclusive" returned honestly when evidence is genuinely ambiguous
|