@mengde1231/rudder 0.5.13
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/bin/rudder.js +3 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +132 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/init.d.ts +57 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +1437 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/uninstall.d.ts +27 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +313 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.d.ts +72 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +1906 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/configurators/antigravity.d.ts +7 -0
- package/dist/configurators/antigravity.d.ts.map +1 -0
- package/dist/configurators/antigravity.js +19 -0
- package/dist/configurators/antigravity.js.map +1 -0
- package/dist/configurators/claude.d.ts +9 -0
- package/dist/configurators/claude.d.ts.map +1 -0
- package/dist/configurators/claude.js +71 -0
- package/dist/configurators/claude.js.map +1 -0
- package/dist/configurators/codebuddy.d.ts +10 -0
- package/dist/configurators/codebuddy.d.ts.map +1 -0
- package/dist/configurators/codebuddy.js +30 -0
- package/dist/configurators/codebuddy.js.map +1 -0
- package/dist/configurators/codex.d.ts +8 -0
- package/dist/configurators/codex.d.ts.map +1 -0
- package/dist/configurators/codex.js +85 -0
- package/dist/configurators/codex.js.map +1 -0
- package/dist/configurators/copilot.d.ts +10 -0
- package/dist/configurators/copilot.d.ts.map +1 -0
- package/dist/configurators/copilot.js +51 -0
- package/dist/configurators/copilot.js.map +1 -0
- package/dist/configurators/cursor.d.ts +10 -0
- package/dist/configurators/cursor.d.ts.map +1 -0
- package/dist/configurators/cursor.js +29 -0
- package/dist/configurators/cursor.js.map +1 -0
- package/dist/configurators/droid.d.ts +10 -0
- package/dist/configurators/droid.d.ts.map +1 -0
- package/dist/configurators/droid.js +30 -0
- package/dist/configurators/droid.js.map +1 -0
- package/dist/configurators/gemini.d.ts +16 -0
- package/dist/configurators/gemini.d.ts.map +1 -0
- package/dist/configurators/gemini.js +38 -0
- package/dist/configurators/gemini.js.map +1 -0
- package/dist/configurators/index.d.ts +65 -0
- package/dist/configurators/index.d.ts.map +1 -0
- package/dist/configurators/index.js +367 -0
- package/dist/configurators/index.js.map +1 -0
- package/dist/configurators/kilo.d.ts +7 -0
- package/dist/configurators/kilo.d.ts.map +1 -0
- package/dist/configurators/kilo.js +19 -0
- package/dist/configurators/kilo.js.map +1 -0
- package/dist/configurators/kiro.d.ts +8 -0
- package/dist/configurators/kiro.d.ts.map +1 -0
- package/dist/configurators/kiro.js +24 -0
- package/dist/configurators/kiro.js.map +1 -0
- package/dist/configurators/opencode.d.ts +14 -0
- package/dist/configurators/opencode.d.ts.map +1 -0
- package/dist/configurators/opencode.js +96 -0
- package/dist/configurators/opencode.js.map +1 -0
- package/dist/configurators/pi.d.ts +3 -0
- package/dist/configurators/pi.d.ts.map +1 -0
- package/dist/configurators/pi.js +45 -0
- package/dist/configurators/pi.js.map +1 -0
- package/dist/configurators/qoder.d.ts +11 -0
- package/dist/configurators/qoder.d.ts.map +1 -0
- package/dist/configurators/qoder.js +31 -0
- package/dist/configurators/qoder.js.map +1 -0
- package/dist/configurators/shared.d.ts +178 -0
- package/dist/configurators/shared.d.ts.map +1 -0
- package/dist/configurators/shared.js +538 -0
- package/dist/configurators/shared.js.map +1 -0
- package/dist/configurators/windsurf.d.ts +7 -0
- package/dist/configurators/windsurf.d.ts.map +1 -0
- package/dist/configurators/windsurf.js +19 -0
- package/dist/configurators/windsurf.js.map +1 -0
- package/dist/configurators/workflow.d.ts +29 -0
- package/dist/configurators/workflow.d.ts.map +1 -0
- package/dist/configurators/workflow.js +163 -0
- package/dist/configurators/workflow.js.map +1 -0
- package/dist/constants/paths.d.ts +70 -0
- package/dist/constants/paths.d.ts.map +1 -0
- package/dist/constants/paths.js +79 -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 +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -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.9.json +30 -0
- package/dist/migrations/manifests/0.2.0.json +49 -0
- package/dist/migrations/manifests/0.2.12.json +9 -0
- package/dist/migrations/manifests/0.2.13.json +9 -0
- package/dist/migrations/manifests/0.2.14.json +175 -0
- package/dist/migrations/manifests/0.2.15.json +33 -0
- package/dist/migrations/manifests/0.3.0-beta.0.json +297 -0
- package/dist/migrations/manifests/0.3.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.15.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.7.json +11 -0
- package/dist/migrations/manifests/0.3.0-beta.8.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.9.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.0.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.2.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.3.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.4.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.5.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.6.json +9 -0
- package/dist/migrations/manifests/0.3.0.json +11 -0
- package/dist/migrations/manifests/0.3.1.json +9 -0
- package/dist/migrations/manifests/0.3.10.json +9 -0
- package/dist/migrations/manifests/0.3.2.json +9 -0
- package/dist/migrations/manifests/0.3.3.json +9 -0
- package/dist/migrations/manifests/0.3.4.json +21 -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.3.7.json +9 -0
- package/dist/migrations/manifests/0.3.8.json +9 -0
- package/dist/migrations/manifests/0.3.9.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.1.json +228 -0
- package/dist/migrations/manifests/0.4.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.7.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.8.json +34 -0
- package/dist/migrations/manifests/0.4.0-beta.9.json +9 -0
- package/dist/migrations/manifests/0.4.0-rc.0.json +9 -0
- package/dist/migrations/manifests/0.4.0-rc.1.json +9 -0
- package/dist/migrations/manifests/0.4.0.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.0.json +1646 -0
- package/dist/migrations/manifests/0.5.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.15.json +116 -0
- package/dist/migrations/manifests/0.5.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.17.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.18.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.19.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 +222 -0
- package/dist/migrations/manifests/0.5.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.7.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.8.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.9.json +48 -0
- package/dist/migrations/manifests/0.5.0-rc.0.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.1.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.2.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.3.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.4.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.5.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.6.json +9 -0
- package/dist/migrations/manifests/0.5.0-rc.7.json +9 -0
- package/dist/migrations/manifests/0.5.0.json +9 -0
- package/dist/migrations/manifests/0.5.1.json +9 -0
- package/dist/migrations/manifests/0.5.10.json +9 -0
- package/dist/migrations/manifests/0.5.11.json +16 -0
- package/dist/migrations/manifests/0.5.12.json +9 -0
- package/dist/migrations/manifests/0.5.13.json +9 -0
- package/dist/migrations/manifests/0.5.2.json +9 -0
- package/dist/migrations/manifests/0.5.3.json +9 -0
- package/dist/migrations/manifests/0.5.4.json +9 -0
- package/dist/migrations/manifests/0.5.5.json +9 -0
- package/dist/migrations/manifests/0.5.6.json +9 -0
- package/dist/migrations/manifests/0.5.7.json +16 -0
- package/dist/migrations/manifests/0.5.8.json +9 -0
- package/dist/migrations/manifests/0.5.9.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.0.json +16 -0
- package/dist/migrations/manifests/0.6.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.6.json +16 -0
- package/dist/migrations/manifests/0.6.0-beta.7.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.8.json +9 -0
- package/dist/templates/claude/agents/rudder-check.md +109 -0
- package/dist/templates/claude/agents/rudder-implement.md +109 -0
- package/dist/templates/claude/agents/rudder-research.md +137 -0
- package/dist/templates/claude/index.d.ts +22 -0
- package/dist/templates/claude/index.d.ts.map +1 -0
- package/dist/templates/claude/index.js +46 -0
- package/dist/templates/claude/index.js.map +1 -0
- package/dist/templates/claude/settings.json +73 -0
- package/dist/templates/codebuddy/agents/rudder-check.md +109 -0
- package/dist/templates/codebuddy/agents/rudder-implement.md +109 -0
- package/dist/templates/codebuddy/agents/rudder-research.md +137 -0
- package/dist/templates/codebuddy/index.d.ts +15 -0
- package/dist/templates/codebuddy/index.d.ts.map +1 -0
- package/dist/templates/codebuddy/index.js +15 -0
- package/dist/templates/codebuddy/index.js.map +1 -0
- package/dist/templates/codebuddy/settings.json +59 -0
- package/dist/templates/codex/agents/rudder-check.toml +84 -0
- package/dist/templates/codex/agents/rudder-implement.toml +65 -0
- package/dist/templates/codex/agents/rudder-research.toml +73 -0
- package/dist/templates/codex/config.toml +35 -0
- package/dist/templates/codex/hooks/session-start.py +459 -0
- package/dist/templates/codex/hooks.json +15 -0
- package/dist/templates/codex/index.d.ts +39 -0
- package/dist/templates/codex/index.d.ts.map +1 -0
- package/dist/templates/codex/index.js +85 -0
- package/dist/templates/codex/index.js.map +1 -0
- package/dist/templates/codex/skills/before-dev/SKILL.md +34 -0
- package/dist/templates/codex/skills/brainstorm/SKILL.md +500 -0
- package/dist/templates/codex/skills/break-loop/SKILL.md +130 -0
- package/dist/templates/codex/skills/check/SKILL.md +30 -0
- package/dist/templates/codex/skills/check-cross-layer/SKILL.md +158 -0
- package/dist/templates/codex/skills/create-command/SKILL.md +101 -0
- package/dist/templates/codex/skills/finish-work/SKILL.md +90 -0
- package/dist/templates/codex/skills/improve-ut/SKILL.md +69 -0
- package/dist/templates/codex/skills/integrate-skill/SKILL.md +221 -0
- package/dist/templates/codex/skills/onboard/SKILL.md +363 -0
- package/dist/templates/codex/skills/record-session/SKILL.md +67 -0
- package/dist/templates/codex/skills/start/SKILL.md +354 -0
- package/dist/templates/codex/skills/update-spec/SKILL.md +335 -0
- package/dist/templates/common/bundled-skills/rudder-meta/SKILL.md +73 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/add-project-local-conventions.md +83 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-agents.md +54 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-context-loading.md +81 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-hooks.md +57 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-skills-or-commands.md +78 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-spec-structure.md +83 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-task-lifecycle.md +90 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/change-workflow.md +64 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/customize-local/overview.md +55 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/context-injection.md +68 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/generated-files.md +80 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/overview.md +51 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/spec-system.md +102 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/task-system.md +101 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/workflow.md +75 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/local-architecture/workspace-memory.md +71 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/platform-files/agents.md +79 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/platform-files/hooks-and-settings.md +69 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/platform-files/overview.md +59 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/platform-files/platform-map.md +74 -0
- package/dist/templates/common/bundled-skills/rudder-meta/references/platform-files/skills-and-commands.md +83 -0
- package/dist/templates/common/commands/continue.md +55 -0
- package/dist/templates/common/commands/finish-work.md +66 -0
- package/dist/templates/common/commands/start.md +58 -0
- package/dist/templates/common/index.d.ts +48 -0
- package/dist/templates/common/index.d.ts.map +1 -0
- package/dist/templates/common/index.js +104 -0
- package/dist/templates/common/index.js.map +1 -0
- package/dist/templates/common/skills/before-dev.md +29 -0
- package/dist/templates/common/skills/brainstorm.md +543 -0
- package/dist/templates/common/skills/break-loop.md +125 -0
- package/dist/templates/common/skills/check.md +87 -0
- package/dist/templates/common/skills/update-spec.md +351 -0
- package/dist/templates/copilot/hooks/session-start.py +430 -0
- package/dist/templates/copilot/hooks.json +19 -0
- package/dist/templates/copilot/index.d.ts +23 -0
- package/dist/templates/copilot/index.d.ts.map +1 -0
- package/dist/templates/copilot/index.js +54 -0
- package/dist/templates/copilot/index.js.map +1 -0
- package/dist/templates/copilot/prompts/before-dev.prompt.md +33 -0
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +499 -0
- package/dist/templates/copilot/prompts/break-loop.prompt.md +129 -0
- package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +157 -0
- package/dist/templates/copilot/prompts/check.prompt.md +29 -0
- package/dist/templates/copilot/prompts/create-command.prompt.md +116 -0
- package/dist/templates/copilot/prompts/finish-work.prompt.md +99 -0
- package/dist/templates/copilot/prompts/integrate-skill.prompt.md +223 -0
- package/dist/templates/copilot/prompts/onboard.prompt.md +362 -0
- package/dist/templates/copilot/prompts/parallel.prompt.md +196 -0
- package/dist/templates/copilot/prompts/record-session.prompt.md +66 -0
- package/dist/templates/copilot/prompts/start.prompt.md +397 -0
- package/dist/templates/copilot/prompts/update-spec.prompt.md +358 -0
- package/dist/templates/cursor/agents/rudder-check.md +108 -0
- package/dist/templates/cursor/agents/rudder-implement.md +108 -0
- package/dist/templates/cursor/agents/rudder-research.md +136 -0
- package/dist/templates/cursor/hooks.json +30 -0
- package/dist/templates/cursor/index.d.ts +13 -0
- package/dist/templates/cursor/index.d.ts.map +1 -0
- package/dist/templates/cursor/index.js +13 -0
- package/dist/templates/cursor/index.js.map +1 -0
- package/dist/templates/droid/droids/rudder-check.md +101 -0
- package/dist/templates/droid/droids/rudder-implement.md +101 -0
- package/dist/templates/droid/droids/rudder-research.md +137 -0
- package/dist/templates/droid/index.d.ts +15 -0
- package/dist/templates/droid/index.d.ts.map +1 -0
- package/dist/templates/droid/index.js +15 -0
- package/dist/templates/droid/index.js.map +1 -0
- package/dist/templates/droid/settings.json +59 -0
- package/dist/templates/extract.d.ts +40 -0
- package/dist/templates/extract.d.ts.map +1 -0
- package/dist/templates/extract.js +106 -0
- package/dist/templates/extract.js.map +1 -0
- package/dist/templates/gemini/agents/rudder-check.md +101 -0
- package/dist/templates/gemini/agents/rudder-implement.md +101 -0
- package/dist/templates/gemini/agents/rudder-research.md +136 -0
- package/dist/templates/gemini/index.d.ts +13 -0
- package/dist/templates/gemini/index.d.ts.map +1 -0
- package/dist/templates/gemini/index.js +13 -0
- package/dist/templates/gemini/index.js.map +1 -0
- package/dist/templates/gemini/settings.json +28 -0
- package/dist/templates/kiro/agents/rudder-check.json +26 -0
- package/dist/templates/kiro/agents/rudder-implement.json +26 -0
- package/dist/templates/kiro/agents/rudder-research.json +30 -0
- package/dist/templates/kiro/index.d.ts +18 -0
- package/dist/templates/kiro/index.d.ts.map +1 -0
- package/dist/templates/kiro/index.js +18 -0
- package/dist/templates/kiro/index.js.map +1 -0
- package/dist/templates/markdown/agents.md +21 -0
- package/dist/templates/markdown/gitignore.txt +15 -0
- package/dist/templates/markdown/index.d.ts +27 -0
- package/dist/templates/markdown/index.d.ts.map +1 -0
- package/dist/templates/markdown/index.js +52 -0
- package/dist/templates/markdown/index.js.map +1 -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 +105 -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 +595 -0
- package/dist/templates/markdown/spec/guides/index.md.txt +79 -0
- package/dist/templates/markdown/workspace-index.md +125 -0
- package/dist/templates/markdown/worktree.yaml.txt +58 -0
- package/dist/templates/opencode/agents/rudder-check.md +116 -0
- package/dist/templates/opencode/agents/rudder-implement.md +117 -0
- package/dist/templates/opencode/agents/rudder-research.md +145 -0
- package/dist/templates/opencode/lib/rudder-context.js +381 -0
- package/dist/templates/opencode/lib/session-utils.js +432 -0
- package/dist/templates/opencode/package.json +5 -0
- package/dist/templates/opencode/plugins/inject-subagent-context.js +497 -0
- package/dist/templates/opencode/plugins/inject-workflow-state.js +162 -0
- package/dist/templates/opencode/plugins/session-start.js +101 -0
- package/dist/templates/pi/agents/rudder-check.md +36 -0
- package/dist/templates/pi/agents/rudder-implement.md +41 -0
- package/dist/templates/pi/agents/rudder-research.md +25 -0
- package/dist/templates/pi/extensions/rudder/index.ts.txt +1172 -0
- package/dist/templates/pi/index.d.ts +5 -0
- package/dist/templates/pi/index.d.ts.map +1 -0
- package/dist/templates/pi/index.js +12 -0
- package/dist/templates/pi/index.js.map +1 -0
- package/dist/templates/pi/settings.json +21 -0
- package/dist/templates/qoder/agents/rudder-check.md +102 -0
- package/dist/templates/qoder/agents/rudder-implement.md +102 -0
- package/dist/templates/qoder/agents/rudder-research.md +137 -0
- package/dist/templates/qoder/index.d.ts +15 -0
- package/dist/templates/qoder/index.d.ts.map +1 -0
- package/dist/templates/qoder/index.js +15 -0
- package/dist/templates/qoder/index.js.map +1 -0
- package/dist/templates/qoder/settings.json +47 -0
- package/dist/templates/rudder/config.yaml +118 -0
- package/dist/templates/rudder/gitignore.txt +35 -0
- package/dist/templates/rudder/index.d.ts +52 -0
- package/dist/templates/rudder/index.d.ts.map +1 -0
- package/dist/templates/rudder/index.js +97 -0
- package/dist/templates/rudder/index.js.map +1 -0
- package/dist/templates/rudder/scripts/__init__.py +5 -0
- package/dist/templates/rudder/scripts/add_session.py +547 -0
- package/dist/templates/rudder/scripts/common/__init__.py +92 -0
- package/dist/templates/rudder/scripts/common/active_task.py +626 -0
- package/dist/templates/rudder/scripts/common/cli_adapter.py +811 -0
- package/dist/templates/rudder/scripts/common/config.py +502 -0
- package/dist/templates/rudder/scripts/common/developer.py +190 -0
- package/dist/templates/rudder/scripts/common/git.py +31 -0
- package/dist/templates/rudder/scripts/common/git_context.py +106 -0
- package/dist/templates/rudder/scripts/common/io.py +37 -0
- package/dist/templates/rudder/scripts/common/log.py +45 -0
- package/dist/templates/rudder/scripts/common/packages_context.py +238 -0
- package/dist/templates/rudder/scripts/common/paths.py +447 -0
- package/dist/templates/rudder/scripts/common/rudder_config.py +179 -0
- package/dist/templates/rudder/scripts/common/safe_commit.py +255 -0
- package/dist/templates/rudder/scripts/common/session_context.py +839 -0
- package/dist/templates/rudder/scripts/common/task_context.py +223 -0
- package/dist/templates/rudder/scripts/common/task_queue.py +188 -0
- package/dist/templates/rudder/scripts/common/task_store.py +636 -0
- package/dist/templates/rudder/scripts/common/task_utils.py +274 -0
- package/dist/templates/rudder/scripts/common/tasks.py +112 -0
- package/dist/templates/rudder/scripts/common/types.py +110 -0
- package/dist/templates/rudder/scripts/common/workflow_phase.py +215 -0
- package/dist/templates/rudder/scripts/get_context.py +16 -0
- package/dist/templates/rudder/scripts/get_developer.py +26 -0
- package/dist/templates/rudder/scripts/hooks/linear_sync.py +243 -0
- package/dist/templates/rudder/scripts/init_developer.py +51 -0
- package/dist/templates/rudder/scripts/task.py +500 -0
- package/dist/templates/rudder/tasks/.gitkeep +0 -0
- package/dist/templates/rudder/workflow.md +706 -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 +89 -0
- package/dist/templates/shared-hooks/index.js.map +1 -0
- package/dist/templates/shared-hooks/inject-shell-session-context.py +183 -0
- package/dist/templates/shared-hooks/inject-subagent-context.py +749 -0
- package/dist/templates/shared-hooks/inject-workflow-state.py +396 -0
- package/dist/templates/shared-hooks/session-start.py +810 -0
- package/dist/templates/template-utils.d.ts +26 -0
- package/dist/templates/template-utils.d.ts.map +1 -0
- package/dist/templates/template-utils.js +60 -0
- package/dist/templates/template-utils.js.map +1 -0
- package/dist/types/ai-tools.d.ts +95 -0
- package/dist/types/ai-tools.d.ts.map +1 -0
- package/dist/types/ai-tools.js +280 -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/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/file-writer.d.ts +23 -0
- package/dist/utils/file-writer.d.ts.map +1 -0
- package/dist/utils/file-writer.js +145 -0
- package/dist/utils/file-writer.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/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/task-json.d.ts +46 -0
- package/dist/utils/task-json.d.ts.map +1 -0
- package/dist/utils/task-json.js +49 -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 +97 -0
- package/dist/utils/template-hash.d.ts.map +1 -0
- package/dist/utils/template-hash.js +312 -0
- package/dist/utils/template-hash.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts +66 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -0
- package/dist/utils/uninstall-scrubbers.js +342 -0
- package/dist/utils/uninstall-scrubbers.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type AgentTemplate, type HookTemplate } from "../template-utils.js";
|
|
2
|
+
export declare function getAllAgents(): AgentTemplate[];
|
|
3
|
+
export declare function getSettingsTemplate(): HookTemplate;
|
|
4
|
+
export declare function getExtensionTemplate(): string;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/pi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAM9B,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED,wBAAgB,mBAAmB,IAAI,YAAY,CAElD;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createTemplateReader, } from "../template-utils.js";
|
|
2
|
+
const { listMdAgents, getSettings, readTemplate } = createTemplateReader(import.meta.url);
|
|
3
|
+
export function getAllAgents() {
|
|
4
|
+
return listMdAgents();
|
|
5
|
+
}
|
|
6
|
+
export function getSettingsTemplate() {
|
|
7
|
+
return getSettings();
|
|
8
|
+
}
|
|
9
|
+
export function getExtensionTemplate() {
|
|
10
|
+
return readTemplate("extensions/rudder/index.ts.txt");
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/pi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,oBAAoB,CACtE,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;AAEF,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,WAAW,EAAE,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,YAAY,CAAC,gCAAgC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enableSkillCommands": true,
|
|
3
|
+
"extensions": [
|
|
4
|
+
"./extensions/rudder/index.ts"
|
|
5
|
+
],
|
|
6
|
+
"skills": [
|
|
7
|
+
"./skills"
|
|
8
|
+
],
|
|
9
|
+
"prompts": [
|
|
10
|
+
"./prompts"
|
|
11
|
+
],
|
|
12
|
+
"packages": [
|
|
13
|
+
{
|
|
14
|
+
"source": "npm:pi-subagents",
|
|
15
|
+
"extensions": [],
|
|
16
|
+
"skills": [],
|
|
17
|
+
"prompts": [],
|
|
18
|
+
"themes": []
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rudder-check
|
|
3
|
+
description: |
|
|
4
|
+
Code quality check expert. Reviews code changes against specs and self-fixes issues.
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
|
|
6
|
+
---
|
|
7
|
+
# Check Agent
|
|
8
|
+
|
|
9
|
+
You are the Check Agent in the Rudder workflow.
|
|
10
|
+
|
|
11
|
+
## Recursion Guard
|
|
12
|
+
|
|
13
|
+
You are already the `rudder-check` sub-agent that the main session dispatched. Do the review and fixes directly.
|
|
14
|
+
|
|
15
|
+
- Do NOT spawn another `rudder-check` or `rudder-implement` sub-agent.
|
|
16
|
+
- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.
|
|
17
|
+
- Only the main session may dispatch Rudder implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.
|
|
18
|
+
|
|
19
|
+
## Context
|
|
20
|
+
|
|
21
|
+
Before checking, read:
|
|
22
|
+
- `.rudder/spec/` - Development guidelines
|
|
23
|
+
- Pre-commit checklist for quality standards
|
|
24
|
+
|
|
25
|
+
## Core Responsibilities
|
|
26
|
+
|
|
27
|
+
1. **Get code changes** - Use git diff to get uncommitted code
|
|
28
|
+
2. **Check against specs** - Verify code follows guidelines
|
|
29
|
+
3. **Self-fix** - Fix issues yourself, not just report them
|
|
30
|
+
4. **Run verification** - typecheck and lint
|
|
31
|
+
|
|
32
|
+
## Important
|
|
33
|
+
|
|
34
|
+
**Fix issues yourself**, don't just report them.
|
|
35
|
+
|
|
36
|
+
You have write and edit tools, you can modify code directly.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Workflow
|
|
41
|
+
|
|
42
|
+
### Step 1: Get Changes
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git diff --name-only # List changed files
|
|
46
|
+
git diff # View specific changes
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Step 2: Check Against Specs
|
|
50
|
+
|
|
51
|
+
Read relevant specs in `.rudder/spec/` to check code:
|
|
52
|
+
|
|
53
|
+
- Does it follow directory structure conventions
|
|
54
|
+
- Does it follow naming conventions
|
|
55
|
+
- Does it follow code patterns
|
|
56
|
+
- Are there missing types
|
|
57
|
+
- Are there potential bugs
|
|
58
|
+
|
|
59
|
+
### Step 3: Self-Fix
|
|
60
|
+
|
|
61
|
+
After finding issues:
|
|
62
|
+
|
|
63
|
+
1. Fix the issue directly (use edit tool)
|
|
64
|
+
2. Record what was fixed
|
|
65
|
+
3. Continue checking other issues
|
|
66
|
+
|
|
67
|
+
### Step 4: Run Verification
|
|
68
|
+
|
|
69
|
+
Run project's lint and typecheck commands to verify changes.
|
|
70
|
+
|
|
71
|
+
If failed, fix issues and re-run.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Report Format
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
## Self-Check Complete
|
|
79
|
+
|
|
80
|
+
### Files Checked
|
|
81
|
+
|
|
82
|
+
- src/components/Feature.tsx
|
|
83
|
+
- src/hooks/useFeature.ts
|
|
84
|
+
|
|
85
|
+
### Issues Found and Fixed
|
|
86
|
+
|
|
87
|
+
1. `<file>:<line>` - <what was fixed>
|
|
88
|
+
2. `<file>:<line>` - <what was fixed>
|
|
89
|
+
|
|
90
|
+
### Issues Not Fixed
|
|
91
|
+
|
|
92
|
+
(If there are issues that cannot be self-fixed, list them here with reasons)
|
|
93
|
+
|
|
94
|
+
### Verification Results
|
|
95
|
+
|
|
96
|
+
- TypeCheck: Passed
|
|
97
|
+
- Lint: Passed
|
|
98
|
+
|
|
99
|
+
### Summary
|
|
100
|
+
|
|
101
|
+
Checked X files, found Y issues, all fixed.
|
|
102
|
+
```
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rudder-implement
|
|
3
|
+
description: |
|
|
4
|
+
Code implementation expert. Understands specs and requirements, then implements features. No git commit allowed.
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
|
|
6
|
+
---
|
|
7
|
+
# Implement Agent
|
|
8
|
+
|
|
9
|
+
You are the Implement Agent in the Rudder workflow.
|
|
10
|
+
|
|
11
|
+
## Recursion Guard
|
|
12
|
+
|
|
13
|
+
You are already the `rudder-implement` sub-agent that the main session dispatched. Do the implementation work directly.
|
|
14
|
+
|
|
15
|
+
- Do NOT spawn another `rudder-implement` or `rudder-check` sub-agent.
|
|
16
|
+
- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.
|
|
17
|
+
- Only the main session may dispatch Rudder implement/check agents. If more parallel work is needed, report that recommendation instead of spawning.
|
|
18
|
+
|
|
19
|
+
## Context
|
|
20
|
+
|
|
21
|
+
Before implementing, read:
|
|
22
|
+
- `.rudder/workflow.md` - Project workflow
|
|
23
|
+
- `.rudder/spec/` - Development guidelines
|
|
24
|
+
- Task `prd.md` - Requirements document
|
|
25
|
+
- Task `info.md` - Technical design (if exists)
|
|
26
|
+
|
|
27
|
+
## Core Responsibilities
|
|
28
|
+
|
|
29
|
+
1. **Understand specs** - Read relevant spec files in `.rudder/spec/`
|
|
30
|
+
2. **Understand requirements** - Read prd.md and info.md
|
|
31
|
+
3. **Implement features** - Write code following specs and design
|
|
32
|
+
4. **Self-check** - Ensure code quality
|
|
33
|
+
5. **Report results** - Report completion status
|
|
34
|
+
|
|
35
|
+
## Forbidden Operations
|
|
36
|
+
|
|
37
|
+
**Do NOT execute these git commands:**
|
|
38
|
+
|
|
39
|
+
- `git commit`
|
|
40
|
+
- `git push`
|
|
41
|
+
- `git merge`
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Workflow
|
|
46
|
+
|
|
47
|
+
### 1. Understand Specs
|
|
48
|
+
|
|
49
|
+
Read relevant specs based on task type:
|
|
50
|
+
|
|
51
|
+
- Spec layers: `.rudder/spec/<package>/<layer>/`
|
|
52
|
+
- Shared guides: `.rudder/spec/guides/`
|
|
53
|
+
|
|
54
|
+
### 2. Understand Requirements
|
|
55
|
+
|
|
56
|
+
Read the task's prd.md and info.md:
|
|
57
|
+
|
|
58
|
+
- What are the core requirements
|
|
59
|
+
- Key points of technical design
|
|
60
|
+
- Which files to modify/create
|
|
61
|
+
|
|
62
|
+
### 3. Implement Features
|
|
63
|
+
|
|
64
|
+
- Write code following specs and technical design
|
|
65
|
+
- Follow existing code patterns
|
|
66
|
+
- Only do what's required, no over-engineering
|
|
67
|
+
|
|
68
|
+
### 4. Verify
|
|
69
|
+
|
|
70
|
+
Run project's lint and typecheck commands to verify changes.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Report Format
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
## Implementation Complete
|
|
78
|
+
|
|
79
|
+
### Files Modified
|
|
80
|
+
|
|
81
|
+
- `src/components/Feature.tsx` - New component
|
|
82
|
+
- `src/hooks/useFeature.ts` - New hook
|
|
83
|
+
|
|
84
|
+
### Implementation Summary
|
|
85
|
+
|
|
86
|
+
1. Created Feature component...
|
|
87
|
+
2. Added useFeature hook...
|
|
88
|
+
|
|
89
|
+
### Verification Results
|
|
90
|
+
|
|
91
|
+
- Lint: Passed
|
|
92
|
+
- TypeCheck: Passed
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Code Standards
|
|
98
|
+
|
|
99
|
+
- Follow existing code patterns
|
|
100
|
+
- Don't add unnecessary abstractions
|
|
101
|
+
- Only do what's required, no over-engineering
|
|
102
|
+
- Keep code readable
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rudder-research
|
|
3
|
+
description: |
|
|
4
|
+
Code and tech search expert. Finds files, patterns, and tech solutions, and PERSISTS every finding to the current task's research/ directory. No code modifications outside that directory.
|
|
5
|
+
tools: Read, Write, Glob, Grep, Bash, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa, Skill, mcp__chrome-devtools__*
|
|
6
|
+
---
|
|
7
|
+
# Research Agent
|
|
8
|
+
|
|
9
|
+
You are the Research Agent in the Rudder workflow.
|
|
10
|
+
|
|
11
|
+
## Core Principle
|
|
12
|
+
|
|
13
|
+
**You do one thing: find, explain, and PERSIST information.**
|
|
14
|
+
|
|
15
|
+
Conversations get compacted; files don't. Every research output MUST end up as a file under `{TASK_DIR}/research/`. Returning findings only through the chat reply is a failure — the caller cannot read them next session.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Core Responsibilities
|
|
20
|
+
|
|
21
|
+
1. **Internal Search** — locate files/components, understand code logic, discover patterns (Glob, Grep, Read)
|
|
22
|
+
2. **External Search** — library docs, API references, best practices (web search)
|
|
23
|
+
3. **Persist** — write each research topic to `{TASK_DIR}/research/<topic>.md`
|
|
24
|
+
4. **Report** — return file paths + one-line summaries to the main agent (not full content)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
### Step 1: Resolve Current Task
|
|
31
|
+
|
|
32
|
+
Run `python3 ./.rudder/scripts/task.py current --source` → active task path. If no active task is set, ask the user where to write output; do NOT guess.
|
|
33
|
+
|
|
34
|
+
Ensure `{TASK_DIR}/research/` exists:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
mkdir -p <TASK_DIR>/research
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Step 2: Understand Search Request
|
|
41
|
+
|
|
42
|
+
Classify: internal / external / mixed. Determine scope (global / specific directory) and expected shape (file list / pattern notes / tech comparison).
|
|
43
|
+
|
|
44
|
+
### Step 3: Execute Search
|
|
45
|
+
|
|
46
|
+
Run independent searches in parallel (Glob + Grep + web) for efficiency.
|
|
47
|
+
|
|
48
|
+
### Step 4: Persist Each Topic
|
|
49
|
+
|
|
50
|
+
For each distinct research topic, Write a markdown file at `{TASK_DIR}/research/<topic-slug>.md`. Use the File Format below.
|
|
51
|
+
|
|
52
|
+
### Step 5: Report to Main Agent
|
|
53
|
+
|
|
54
|
+
Reply with ONLY:
|
|
55
|
+
|
|
56
|
+
- List of files written (paths relative to repo root)
|
|
57
|
+
- One-line summary per file
|
|
58
|
+
- Any critical caveats that the main agent needs to know right now
|
|
59
|
+
|
|
60
|
+
Do NOT paste full research content into the reply. The files are the contract.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Scope Limits (Strict)
|
|
65
|
+
|
|
66
|
+
### Write ALLOWED
|
|
67
|
+
|
|
68
|
+
- `{TASK_DIR}/research/*.md` — your own output
|
|
69
|
+
- Creating `{TASK_DIR}/research/` if it doesn't exist (via `mkdir -p`)
|
|
70
|
+
|
|
71
|
+
### Write FORBIDDEN
|
|
72
|
+
|
|
73
|
+
- Code files (`src/`, `lib/`, …)
|
|
74
|
+
- Spec files (`.rudder/spec/`) — main agent should use `update-spec` skill instead
|
|
75
|
+
- `.rudder/scripts/`, `.rudder/workflow.md`, platform config (`.claude/`, `.cursor/`, etc.)
|
|
76
|
+
- Other task directories
|
|
77
|
+
- Any git operation (commit / push / branch / merge)
|
|
78
|
+
|
|
79
|
+
If the user asks you to edit code, decline and suggest spawning `implement` instead.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## File Format
|
|
84
|
+
|
|
85
|
+
Each `{TASK_DIR}/research/<topic>.md` should follow:
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
# Research: <topic>
|
|
89
|
+
|
|
90
|
+
- **Query**: <original query>
|
|
91
|
+
- **Scope**: <internal / external / mixed>
|
|
92
|
+
- **Date**: <YYYY-MM-DD>
|
|
93
|
+
|
|
94
|
+
## Findings
|
|
95
|
+
|
|
96
|
+
### Files Found
|
|
97
|
+
|
|
98
|
+
| File Path | Description |
|
|
99
|
+
|---|---|
|
|
100
|
+
| `src/services/xxx.ts` | Main implementation |
|
|
101
|
+
| `src/types/xxx.ts` | Type definitions |
|
|
102
|
+
|
|
103
|
+
### Code Patterns
|
|
104
|
+
|
|
105
|
+
<describe patterns, cite file:line>
|
|
106
|
+
|
|
107
|
+
### External References
|
|
108
|
+
|
|
109
|
+
- [Library X docs](url) — <why relevant, version constraints>
|
|
110
|
+
|
|
111
|
+
### Related Specs
|
|
112
|
+
|
|
113
|
+
- `.rudder/spec/xxx.md` — <description>
|
|
114
|
+
|
|
115
|
+
## Caveats / Not Found
|
|
116
|
+
|
|
117
|
+
<anything incomplete or uncertain>
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Guidelines
|
|
123
|
+
|
|
124
|
+
### DO
|
|
125
|
+
|
|
126
|
+
- Provide specific file paths and line numbers
|
|
127
|
+
- Quote actual code snippets
|
|
128
|
+
- Persist every topic to its own file
|
|
129
|
+
- Return file paths in your reply, not the full content
|
|
130
|
+
- Mark "not found" explicitly when searches come up empty
|
|
131
|
+
|
|
132
|
+
### DON'T
|
|
133
|
+
|
|
134
|
+
- Don't write code or modify files outside `{TASK_DIR}/research/`
|
|
135
|
+
- Don't guess uncertain info
|
|
136
|
+
- Don't paste full research text into the reply (files are the deliverable)
|
|
137
|
+
- Don't propose improvements or critique implementation (that's not your role)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Qoder templates
|
|
3
|
+
*
|
|
4
|
+
* These are GENERIC templates for user projects.
|
|
5
|
+
*
|
|
6
|
+
* Directory structure:
|
|
7
|
+
* qoder/
|
|
8
|
+
* ├── agents/ # Multi-agent pipeline agents
|
|
9
|
+
* └── settings.json # Settings configuration
|
|
10
|
+
*/
|
|
11
|
+
import { type AgentTemplate, type HookTemplate } from "../template-utils.js";
|
|
12
|
+
export type { AgentTemplate, HookTemplate };
|
|
13
|
+
export declare const getAllAgents: () => AgentTemplate[];
|
|
14
|
+
export declare const getSettingsTemplate: () => HookTemplate;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/qoder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAI5C,eAAO,MAAM,YAAY,QAAO,aAAa,EAAoB,CAAC;AAClE,eAAO,MAAM,mBAAmB,QAAO,YAA6B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Qoder templates
|
|
3
|
+
*
|
|
4
|
+
* These are GENERIC templates for user projects.
|
|
5
|
+
*
|
|
6
|
+
* Directory structure:
|
|
7
|
+
* qoder/
|
|
8
|
+
* ├── agents/ # Multi-agent pipeline agents
|
|
9
|
+
* └── settings.json # Settings configuration
|
|
10
|
+
*/
|
|
11
|
+
import { createTemplateReader, } from "../template-utils.js";
|
|
12
|
+
const { listMdAgents, getSettings } = createTemplateReader(import.meta.url);
|
|
13
|
+
export const getAllAgents = () => listMdAgents();
|
|
14
|
+
export const getSettingsTemplate = () => getSettings();
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/qoder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,YAAY,EAAE,CAAC;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAiB,EAAE,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "startup",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "{{PYTHON_CMD}} .qoder/hooks/session-start.py",
|
|
10
|
+
"timeout": 30
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"matcher": "clear",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "{{PYTHON_CMD}} .qoder/hooks/session-start.py",
|
|
20
|
+
"timeout": 30
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"matcher": "compact",
|
|
26
|
+
"hooks": [
|
|
27
|
+
{
|
|
28
|
+
"type": "command",
|
|
29
|
+
"command": "{{PYTHON_CMD}} .qoder/hooks/session-start.py",
|
|
30
|
+
"timeout": 30
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"UserPromptSubmit": [
|
|
36
|
+
{
|
|
37
|
+
"hooks": [
|
|
38
|
+
{
|
|
39
|
+
"type": "command",
|
|
40
|
+
"command": "{{PYTHON_CMD}} .qoder/hooks/inject-workflow-state.py",
|
|
41
|
+
"timeout": 15
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Rudder Configuration
|
|
2
|
+
# Project-level settings for the Rudder workflow system
|
|
3
|
+
#
|
|
4
|
+
# All values have sensible defaults. Only override what you need.
|
|
5
|
+
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
7
|
+
# Session Recording
|
|
8
|
+
#-------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
# Commit message used when auto-committing journal/index changes
|
|
11
|
+
# after running add_session.py
|
|
12
|
+
session_commit_message: "chore: record journal"
|
|
13
|
+
|
|
14
|
+
# Maximum lines per journal file before rotating to a new one
|
|
15
|
+
max_journal_lines: 2000
|
|
16
|
+
|
|
17
|
+
#-------------------------------------------------------------------------------
|
|
18
|
+
# Session Auto-Commit
|
|
19
|
+
#-------------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
# Auto-commit behavior for session journal + task archive operations.
|
|
22
|
+
# - true (default): scripts auto-stage and auto-commit journal / task changes
|
|
23
|
+
# after add_session.py / task.py archive runs.
|
|
24
|
+
# - false: scripts do not touch git. Files (journal-*.md, task archive moves)
|
|
25
|
+
# are still written to disk; you decide whether to git add / commit.
|
|
26
|
+
#
|
|
27
|
+
# Use `false` if your project's .gitignore intentionally excludes `.rudder/`
|
|
28
|
+
# and you want session data kept local-only, or if you prefer to review
|
|
29
|
+
# staged changes manually before each commit.
|
|
30
|
+
#
|
|
31
|
+
# Accepts: true / false / yes / no / 1 / 0 / on / off (case-insensitive).
|
|
32
|
+
#
|
|
33
|
+
# session_auto_commit: true
|
|
34
|
+
|
|
35
|
+
#-------------------------------------------------------------------------------
|
|
36
|
+
# Task Lifecycle Hooks
|
|
37
|
+
#-------------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
# Shell commands to run after task lifecycle events.
|
|
40
|
+
# Each hook receives TASK_JSON_PATH environment variable pointing to task.json.
|
|
41
|
+
# Hook failures print a warning but do not block the main operation.
|
|
42
|
+
#
|
|
43
|
+
# hooks:
|
|
44
|
+
# after_create:
|
|
45
|
+
# - "echo 'Task created'"
|
|
46
|
+
# after_start:
|
|
47
|
+
# - "echo 'Task started'"
|
|
48
|
+
# after_finish:
|
|
49
|
+
# - "echo 'Task finished'"
|
|
50
|
+
# after_archive:
|
|
51
|
+
# - "echo 'Task archived'"
|
|
52
|
+
|
|
53
|
+
#-------------------------------------------------------------------------------
|
|
54
|
+
# Monorepo / Packages
|
|
55
|
+
#-------------------------------------------------------------------------------
|
|
56
|
+
|
|
57
|
+
# Declare packages for monorepo projects.
|
|
58
|
+
# Rudder auto-detects workspaces during `rudder init`, but you can also
|
|
59
|
+
# configure them manually here.
|
|
60
|
+
#
|
|
61
|
+
# packages:
|
|
62
|
+
# frontend:
|
|
63
|
+
# path: packages/frontend
|
|
64
|
+
# backend:
|
|
65
|
+
# path: packages/backend
|
|
66
|
+
# docs:
|
|
67
|
+
# path: docs-site
|
|
68
|
+
# type: submodule
|
|
69
|
+
# # For polyrepo / meta-repo layouts (independent .git in each subdir),
|
|
70
|
+
# # mark the package with `git: true`. The runtime treats it as an
|
|
71
|
+
# # independent repository for things like git-context display.
|
|
72
|
+
# webapp:
|
|
73
|
+
# path: ./webapp
|
|
74
|
+
# git: true
|
|
75
|
+
|
|
76
|
+
# Default package used when --package is not specified.
|
|
77
|
+
# default_package: frontend
|
|
78
|
+
|
|
79
|
+
#-------------------------------------------------------------------------------
|
|
80
|
+
# Codex (dispatch behavior)
|
|
81
|
+
#-------------------------------------------------------------------------------
|
|
82
|
+
# Codex-only knob; other platforms ignore it. Default ("inline") makes the
|
|
83
|
+
# main Codex agent edit code directly because Codex sub-agents run with
|
|
84
|
+
# `fork_turns="none"` isolation and can't inherit the parent session's
|
|
85
|
+
# task context. Set to "sub-agent" to opt into the legacy dispatch model
|
|
86
|
+
# (main agent spawns rudder-implement / rudder-check / rudder-research
|
|
87
|
+
# sub-agents).
|
|
88
|
+
#
|
|
89
|
+
# codex:
|
|
90
|
+
# dispatch_mode: inline # or "sub-agent" to dispatch rudder-* sub-agents
|
|
91
|
+
|
|
92
|
+
#-------------------------------------------------------------------------------
|
|
93
|
+
# Tool Path Configuration
|
|
94
|
+
#-------------------------------------------------------------------------------
|
|
95
|
+
# Declare tools your project requires. Rudder will:
|
|
96
|
+
# 1. Check config.local.yaml for machine-specific absolute paths
|
|
97
|
+
# 2. Auto-detect from version files (.sdkmanrc, .nvmrc, .tool-versions, etc.)
|
|
98
|
+
# 3. Fall back to searching PATH
|
|
99
|
+
#
|
|
100
|
+
# Version verification: Rudder runs <tool> --version and refuses to use
|
|
101
|
+
# a mismatched version. If version_verified is false, the hook will warn.
|
|
102
|
+
#
|
|
103
|
+
# Example:
|
|
104
|
+
# tools:
|
|
105
|
+
# java:
|
|
106
|
+
# version: "21" # Required version prefix (e.g., "21" matches "21.0.2")
|
|
107
|
+
# binary: "java" # Binary name to search in PATH (optional, defaults to key)
|
|
108
|
+
# node:
|
|
109
|
+
# version: "18"
|
|
110
|
+
# mvn:
|
|
111
|
+
# version: "3.9"
|
|
112
|
+
#
|
|
113
|
+
# Personal overrides (.rudder/config.local.yaml — gitignored):
|
|
114
|
+
# tools:
|
|
115
|
+
# java:
|
|
116
|
+
# path: "/usr/local/sdkman/candidates/java/21.0.2-open/bin/java"
|
|
117
|
+
# mvn:
|
|
118
|
+
# path: "/opt/maven/bin/mvn"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Developer identity (local only)
|
|
2
|
+
.developer
|
|
3
|
+
|
|
4
|
+
# Current task pointer (each dev works on different task)
|
|
5
|
+
.current-task
|
|
6
|
+
|
|
7
|
+
# Session/window scoped runtime state
|
|
8
|
+
.runtime/
|
|
9
|
+
|
|
10
|
+
# Ralph Loop state file
|
|
11
|
+
.ralph-state.json
|
|
12
|
+
|
|
13
|
+
# Agent runtime files
|
|
14
|
+
.agents/
|
|
15
|
+
.agent-log
|
|
16
|
+
.session-id
|
|
17
|
+
|
|
18
|
+
# Task directory runtime files
|
|
19
|
+
.plan-log
|
|
20
|
+
|
|
21
|
+
# Atomic update temp files
|
|
22
|
+
*.tmp
|
|
23
|
+
|
|
24
|
+
# Update backup directories
|
|
25
|
+
.backup-*
|
|
26
|
+
|
|
27
|
+
# Conflict resolution temp files
|
|
28
|
+
*.new
|
|
29
|
+
|
|
30
|
+
# Python cache
|
|
31
|
+
**/__pycache__/
|
|
32
|
+
**/*.pyc
|
|
33
|
+
|
|
34
|
+
# Personal tool path overrides (machine-specific, not shared)
|
|
35
|
+
config.local.yaml
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rudder workflow templates
|
|
3
|
+
*
|
|
4
|
+
* These are GENERIC templates for user projects.
|
|
5
|
+
* Do NOT use Rudder project's own .rudder/ directory (which may be customized).
|
|
6
|
+
*
|
|
7
|
+
* Directory structure:
|
|
8
|
+
* rudder/
|
|
9
|
+
* ├── scripts/
|
|
10
|
+
* │ ├── __init__.py
|
|
11
|
+
* │ ├── common/ # Shared utilities (Python)
|
|
12
|
+
* │ └── *.py # Main scripts (Python)
|
|
13
|
+
* ├── scripts-shell-archive/ # Archived shell scripts (for reference)
|
|
14
|
+
* ├── workflow.md # Workflow guide
|
|
15
|
+
* ├── config.yaml # Rudder configuration
|
|
16
|
+
* └── gitignore.txt # .gitignore content
|
|
17
|
+
*/
|
|
18
|
+
export declare const scriptsInit: string;
|
|
19
|
+
export declare const commonInit: string;
|
|
20
|
+
export declare const commonPaths: string;
|
|
21
|
+
export declare const commonDeveloper: string;
|
|
22
|
+
export declare const commonGitContext: string;
|
|
23
|
+
export declare const commonTaskQueue: string;
|
|
24
|
+
export declare const commonTaskUtils: string;
|
|
25
|
+
export declare const commonActiveTask: string;
|
|
26
|
+
export declare const commonCliAdapter: string;
|
|
27
|
+
export declare const commonConfig: string;
|
|
28
|
+
export declare const commonIo: string;
|
|
29
|
+
export declare const commonLog: string;
|
|
30
|
+
export declare const commonGit: string;
|
|
31
|
+
export declare const commonTypes: string;
|
|
32
|
+
export declare const commonTasks: string;
|
|
33
|
+
export declare const commonTaskContext: string;
|
|
34
|
+
export declare const commonTaskStore: string;
|
|
35
|
+
export declare const commonSessionContext: string;
|
|
36
|
+
export declare const commonPackagesContext: string;
|
|
37
|
+
export declare const commonWorkflowPhase: string;
|
|
38
|
+
export declare const commonRudderConfig: string;
|
|
39
|
+
export declare const commonSafeCommit: string;
|
|
40
|
+
export declare const getDeveloperScript: string;
|
|
41
|
+
export declare const initDeveloperScript: string;
|
|
42
|
+
export declare const taskScript: string;
|
|
43
|
+
export declare const getContextScript: string;
|
|
44
|
+
export declare const addSessionScript: string;
|
|
45
|
+
export declare const workflowMdTemplate: string;
|
|
46
|
+
export declare const configYamlTemplate: string;
|
|
47
|
+
export declare const gitignoreTemplate: string;
|
|
48
|
+
/**
|
|
49
|
+
* Get all script templates as a map of relative path to content
|
|
50
|
+
*/
|
|
51
|
+
export declare function getAllScripts(): Map<string, string>;
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,QAA2C,CAAC;AACrE,eAAO,MAAM,QAAQ,QAAuC,CAAC;AAC7D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,QAE9B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AAGvE,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAE/D;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAqCnD"}
|