oh-my-claude-sisyphus 2.6.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -708
- package/agents/analyst.md +85 -0
- package/agents/architect-low.md +88 -0
- package/agents/architect-medium.md +108 -0
- package/agents/architect.md +77 -0
- package/agents/critic.md +97 -0
- package/agents/designer-high.md +113 -0
- package/agents/designer-low.md +89 -0
- package/agents/designer.md +80 -0
- package/agents/executor-high.md +116 -0
- package/agents/executor-low.md +94 -0
- package/agents/executor.md +62 -0
- package/agents/explore-medium.md +113 -0
- package/agents/explore.md +86 -0
- package/agents/planner.md +164 -0
- package/agents/qa-tester.md +109 -0
- package/agents/researcher-low.md +84 -0
- package/agents/researcher.md +70 -0
- package/agents/vision.md +39 -0
- package/agents/writer.md +152 -0
- package/commands/.gitkeep +0 -0
- package/dist/__tests__/hooks.test.js +22 -22
- package/dist/__tests__/hooks.test.js.map +1 -1
- package/dist/__tests__/hud-agents.test.d.ts +7 -0
- package/dist/__tests__/hud-agents.test.d.ts.map +1 -0
- package/dist/__tests__/hud-agents.test.js +363 -0
- package/dist/__tests__/hud-agents.test.js.map +1 -0
- package/dist/__tests__/installer.test.js +184 -116
- package/dist/__tests__/installer.test.js.map +1 -1
- package/dist/__tests__/learned-skills/config.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/config.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/config.test.js +37 -0
- package/dist/__tests__/learned-skills/config.test.js.map +1 -0
- package/dist/__tests__/learned-skills/detector.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/detector.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/detector.test.js +99 -0
- package/dist/__tests__/learned-skills/detector.test.js.map +1 -0
- package/dist/__tests__/learned-skills/finder.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/finder.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/finder.test.js +59 -0
- package/dist/__tests__/learned-skills/finder.test.js.map +1 -0
- package/dist/__tests__/learned-skills/loader.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/loader.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/loader.test.js +69 -0
- package/dist/__tests__/learned-skills/loader.test.js.map +1 -0
- package/dist/__tests__/learned-skills/parser.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/parser.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/parser.test.js +81 -0
- package/dist/__tests__/learned-skills/parser.test.js.map +1 -0
- package/dist/__tests__/learned-skills/validator.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/validator.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/validator.test.js +85 -0
- package/dist/__tests__/learned-skills/validator.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/config.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/config.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/config.test.js +37 -0
- package/dist/__tests__/mnemosyne/config.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/detector.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/detector.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/detector.test.js +99 -0
- package/dist/__tests__/mnemosyne/detector.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/finder.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/finder.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/finder.test.js +61 -0
- package/dist/__tests__/mnemosyne/finder.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/loader.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/loader.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/loader.test.js +73 -0
- package/dist/__tests__/mnemosyne/loader.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/parser.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/parser.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/parser.test.js +81 -0
- package/dist/__tests__/mnemosyne/parser.test.js.map +1 -0
- package/dist/__tests__/mnemosyne/validator.test.d.ts +2 -0
- package/dist/__tests__/mnemosyne/validator.test.d.ts.map +1 -0
- package/dist/__tests__/mnemosyne/validator.test.js +85 -0
- package/dist/__tests__/mnemosyne/validator.test.js.map +1 -0
- package/dist/__tests__/model-routing.test.js +34 -34
- package/dist/__tests__/model-routing.test.js.map +1 -1
- package/dist/__tests__/notepad.test.js +7 -7
- package/dist/__tests__/notepad.test.js.map +1 -1
- package/dist/__tests__/ralph-prd.test.js +12 -12
- package/dist/__tests__/ralph-prd.test.js.map +1 -1
- package/dist/__tests__/ralph-progress.test.js +12 -12
- package/dist/__tests__/ralph-progress.test.js.map +1 -1
- package/dist/__tests__/skills.test.js +50 -17
- package/dist/__tests__/skills.test.js.map +1 -1
- package/dist/__tests__/types.test.js +5 -5
- package/dist/__tests__/types.test.js.map +1 -1
- package/dist/agents/analyst.d.ts +11 -0
- package/dist/agents/analyst.d.ts.map +1 -0
- package/dist/agents/analyst.js +115 -0
- package/dist/agents/analyst.js.map +1 -0
- package/dist/agents/architect.d.ts +12 -0
- package/dist/agents/architect.d.ts.map +1 -0
- package/dist/agents/architect.js +189 -0
- package/dist/agents/architect.js.map +1 -0
- package/dist/agents/coordinator.d.ts +11 -0
- package/dist/agents/coordinator.d.ts.map +1 -0
- package/dist/agents/coordinator.js +115 -0
- package/dist/agents/coordinator.js.map +1 -0
- package/dist/agents/critic.d.ts +11 -0
- package/dist/agents/critic.d.ts.map +1 -0
- package/dist/agents/critic.js +127 -0
- package/dist/agents/critic.js.map +1 -0
- package/dist/agents/definitions.d.ts +33 -70
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +140 -1268
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/designer.d.ts +11 -0
- package/dist/agents/designer.d.ts.map +1 -0
- package/dist/agents/designer.js +115 -0
- package/dist/agents/designer.js.map +1 -0
- package/dist/agents/executor.d.ts +12 -0
- package/dist/agents/executor.d.ts.map +1 -0
- package/dist/agents/executor.js +93 -0
- package/dist/agents/executor.js.map +1 -0
- package/dist/agents/explore.js +4 -4
- package/dist/agents/explore.js.map +1 -1
- package/dist/agents/index.d.ts +12 -11
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +15 -16
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/planner.d.ts +11 -0
- package/dist/agents/planner.d.ts.map +1 -0
- package/dist/agents/planner.js +194 -0
- package/dist/agents/planner.js.map +1 -0
- package/dist/agents/qa-tester.js +16 -16
- package/dist/agents/qa-tester.js.map +1 -1
- package/dist/agents/researcher.d.ts +12 -0
- package/dist/agents/researcher.d.ts.map +1 -0
- package/dist/agents/researcher.js +103 -0
- package/dist/agents/researcher.js.map +1 -0
- package/dist/agents/vision.d.ts +11 -0
- package/dist/agents/vision.d.ts.map +1 -0
- package/dist/agents/vision.js +70 -0
- package/dist/agents/vision.js.map +1 -0
- package/dist/agents/writer.d.ts +11 -0
- package/dist/agents/writer.d.ts.map +1 -0
- package/dist/agents/writer.js +209 -0
- package/dist/agents/writer.js.map +1 -0
- package/dist/cli/index.js +32 -32
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/index.d.ts +4 -4
- package/dist/commands/index.js +4 -4
- package/dist/config/loader.js +25 -25
- package/dist/config/loader.js.map +1 -1
- package/dist/features/auto-update.d.ts +5 -5
- package/dist/features/auto-update.d.ts.map +1 -1
- package/dist/features/auto-update.js +17 -17
- package/dist/features/auto-update.js.map +1 -1
- package/dist/features/background-agent/manager.js +1 -1
- package/dist/features/background-agent/manager.js.map +1 -1
- package/dist/features/boulder-state/constants.d.ts +5 -5
- package/dist/features/boulder-state/constants.d.ts.map +1 -1
- package/dist/features/boulder-state/constants.js +3 -3
- package/dist/features/boulder-state/constants.js.map +1 -1
- package/dist/features/boulder-state/index.d.ts +2 -2
- package/dist/features/boulder-state/index.d.ts.map +1 -1
- package/dist/features/boulder-state/index.js +2 -2
- package/dist/features/boulder-state/index.js.map +1 -1
- package/dist/features/boulder-state/storage.d.ts +3 -3
- package/dist/features/boulder-state/storage.d.ts.map +1 -1
- package/dist/features/boulder-state/storage.js +6 -6
- package/dist/features/boulder-state/storage.js.map +1 -1
- package/dist/features/builtin-skills/skills.d.ts +15 -1
- package/dist/features/builtin-skills/skills.d.ts.map +1 -1
- package/dist/features/builtin-skills/skills.js +100 -1110
- package/dist/features/builtin-skills/skills.js.map +1 -1
- package/dist/features/context-injector/types.d.ts +1 -1
- package/dist/features/context-injector/types.d.ts.map +1 -1
- package/dist/features/index.d.ts +1 -1
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +2 -2
- package/dist/features/index.js.map +1 -1
- package/dist/features/magic-keywords.js +14 -14
- package/dist/features/magic-keywords.js.map +1 -1
- package/dist/features/model-routing/prompts/opus.d.ts +1 -1
- package/dist/features/model-routing/prompts/opus.d.ts.map +1 -1
- package/dist/features/model-routing/prompts/opus.js +1 -1
- package/dist/features/model-routing/router.d.ts +1 -1
- package/dist/features/model-routing/router.js +14 -14
- package/dist/features/model-routing/router.js.map +1 -1
- package/dist/features/model-routing/rules.js +31 -31
- package/dist/features/model-routing/rules.js.map +1 -1
- package/dist/features/model-routing/types.js +1 -1
- package/dist/features/model-routing/types.js.map +1 -1
- package/dist/hooks/agent-usage-reminder/constants.d.ts +2 -2
- package/dist/hooks/agent-usage-reminder/constants.d.ts.map +1 -1
- package/dist/hooks/agent-usage-reminder/constants.js +5 -5
- package/dist/hooks/agent-usage-reminder/constants.js.map +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -1
- package/dist/hooks/auto-slash-command/constants.js +9 -2
- package/dist/hooks/auto-slash-command/constants.js.map +1 -1
- package/dist/hooks/bridge.d.ts +2 -2
- package/dist/hooks/bridge.d.ts.map +1 -1
- package/dist/hooks/bridge.js +50 -18
- package/dist/hooks/bridge.js.map +1 -1
- package/dist/hooks/directory-readme-injector/constants.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/constants.d.ts.map +1 -1
- package/dist/hooks/directory-readme-injector/constants.js +2 -2
- package/dist/hooks/directory-readme-injector/constants.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/learned-skills/config.d.ts +53 -0
- package/dist/hooks/learned-skills/config.d.ts.map +1 -0
- package/dist/hooks/learned-skills/config.js +103 -0
- package/dist/hooks/learned-skills/config.js.map +1 -0
- package/dist/hooks/learned-skills/constants.d.ts +24 -0
- package/dist/hooks/learned-skills/constants.d.ts.map +1 -0
- package/dist/hooks/learned-skills/constants.js +26 -0
- package/dist/hooks/learned-skills/constants.js.map +1 -0
- package/dist/hooks/learned-skills/detection-hook.d.ts +39 -0
- package/dist/hooks/learned-skills/detection-hook.d.ts.map +1 -0
- package/dist/hooks/learned-skills/detection-hook.js +83 -0
- package/dist/hooks/learned-skills/detection-hook.js.map +1 -0
- package/dist/hooks/learned-skills/detector.d.ts +30 -0
- package/dist/hooks/learned-skills/detector.d.ts.map +1 -0
- package/dist/hooks/learned-skills/detector.js +150 -0
- package/dist/hooks/learned-skills/detector.js.map +1 -0
- package/dist/hooks/learned-skills/finder.d.ts +21 -0
- package/dist/hooks/learned-skills/finder.d.ts.map +1 -0
- package/dist/hooks/learned-skills/finder.js +117 -0
- package/dist/hooks/learned-skills/finder.js.map +1 -0
- package/dist/hooks/learned-skills/index.d.ts +62 -0
- package/dist/hooks/learned-skills/index.d.ts.map +1 -0
- package/dist/hooks/learned-skills/index.js +137 -0
- package/dist/hooks/learned-skills/index.js.map +1 -0
- package/dist/hooks/learned-skills/loader.d.ts +20 -0
- package/dist/hooks/learned-skills/loader.d.ts.map +1 -0
- package/dist/hooks/learned-skills/loader.js +107 -0
- package/dist/hooks/learned-skills/loader.js.map +1 -0
- package/dist/hooks/learned-skills/parser.d.ts +21 -0
- package/dist/hooks/learned-skills/parser.d.ts.map +1 -0
- package/dist/hooks/learned-skills/parser.js +190 -0
- package/dist/hooks/learned-skills/parser.js.map +1 -0
- package/dist/hooks/learned-skills/promotion.d.ts +29 -0
- package/dist/hooks/learned-skills/promotion.d.ts.map +1 -0
- package/dist/hooks/learned-skills/promotion.js +87 -0
- package/dist/hooks/learned-skills/promotion.js.map +1 -0
- package/dist/hooks/learned-skills/types.d.ts +109 -0
- package/dist/hooks/learned-skills/types.d.ts.map +1 -0
- package/dist/hooks/learned-skills/types.js +8 -0
- package/dist/hooks/learned-skills/types.js.map +1 -0
- package/dist/hooks/learned-skills/validator.d.ts +15 -0
- package/dist/hooks/learned-skills/validator.d.ts.map +1 -0
- package/dist/hooks/learned-skills/validator.js +87 -0
- package/dist/hooks/learned-skills/validator.js.map +1 -0
- package/dist/hooks/learned-skills/writer.d.ts +27 -0
- package/dist/hooks/learned-skills/writer.d.ts.map +1 -0
- package/dist/hooks/learned-skills/writer.js +126 -0
- package/dist/hooks/learned-skills/writer.js.map +1 -0
- package/dist/hooks/learner/config.d.ts +53 -0
- package/dist/hooks/learner/config.d.ts.map +1 -0
- package/dist/hooks/learner/config.js +103 -0
- package/dist/hooks/learner/config.js.map +1 -0
- package/dist/hooks/learner/constants.d.ts +24 -0
- package/dist/hooks/learner/constants.d.ts.map +1 -0
- package/dist/hooks/learner/constants.js +26 -0
- package/dist/hooks/learner/constants.js.map +1 -0
- package/dist/hooks/learner/detection-hook.d.ts +39 -0
- package/dist/hooks/learner/detection-hook.d.ts.map +1 -0
- package/dist/hooks/learner/detection-hook.js +83 -0
- package/dist/hooks/learner/detection-hook.js.map +1 -0
- package/dist/hooks/learner/detector.d.ts +30 -0
- package/dist/hooks/learner/detector.d.ts.map +1 -0
- package/dist/hooks/learner/detector.js +150 -0
- package/dist/hooks/learner/detector.js.map +1 -0
- package/dist/hooks/learner/finder.d.ts +21 -0
- package/dist/hooks/learner/finder.d.ts.map +1 -0
- package/dist/hooks/learner/finder.js +117 -0
- package/dist/hooks/learner/finder.js.map +1 -0
- package/dist/hooks/learner/index.d.ts +62 -0
- package/dist/hooks/learner/index.d.ts.map +1 -0
- package/dist/hooks/learner/index.js +137 -0
- package/dist/hooks/learner/index.js.map +1 -0
- package/dist/hooks/learner/loader.d.ts +20 -0
- package/dist/hooks/learner/loader.d.ts.map +1 -0
- package/dist/hooks/learner/loader.js +113 -0
- package/dist/hooks/learner/loader.js.map +1 -0
- package/dist/hooks/learner/parser.d.ts +21 -0
- package/dist/hooks/learner/parser.d.ts.map +1 -0
- package/dist/hooks/learner/parser.js +190 -0
- package/dist/hooks/learner/parser.js.map +1 -0
- package/dist/hooks/learner/promotion.d.ts +29 -0
- package/dist/hooks/learner/promotion.d.ts.map +1 -0
- package/dist/hooks/learner/promotion.js +87 -0
- package/dist/hooks/learner/promotion.js.map +1 -0
- package/dist/hooks/learner/types.d.ts +109 -0
- package/dist/hooks/learner/types.d.ts.map +1 -0
- package/dist/hooks/learner/types.js +8 -0
- package/dist/hooks/learner/types.js.map +1 -0
- package/dist/hooks/learner/validator.d.ts +15 -0
- package/dist/hooks/learner/validator.d.ts.map +1 -0
- package/dist/hooks/learner/validator.js +87 -0
- package/dist/hooks/learner/validator.js.map +1 -0
- package/dist/hooks/learner/writer.d.ts +27 -0
- package/dist/hooks/learner/writer.d.ts.map +1 -0
- package/dist/hooks/learner/writer.js +126 -0
- package/dist/hooks/learner/writer.js.map +1 -0
- package/dist/hooks/mnemosyne/config.d.ts +53 -0
- package/dist/hooks/mnemosyne/config.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/config.js +103 -0
- package/dist/hooks/mnemosyne/config.js.map +1 -0
- package/dist/hooks/mnemosyne/constants.d.ts +24 -0
- package/dist/hooks/mnemosyne/constants.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/constants.js +26 -0
- package/dist/hooks/mnemosyne/constants.js.map +1 -0
- package/dist/hooks/mnemosyne/detection-hook.d.ts +39 -0
- package/dist/hooks/mnemosyne/detection-hook.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/detection-hook.js +83 -0
- package/dist/hooks/mnemosyne/detection-hook.js.map +1 -0
- package/dist/hooks/mnemosyne/detector.d.ts +30 -0
- package/dist/hooks/mnemosyne/detector.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/detector.js +150 -0
- package/dist/hooks/mnemosyne/detector.js.map +1 -0
- package/dist/hooks/mnemosyne/finder.d.ts +21 -0
- package/dist/hooks/mnemosyne/finder.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/finder.js +117 -0
- package/dist/hooks/mnemosyne/finder.js.map +1 -0
- package/dist/hooks/mnemosyne/index.d.ts +62 -0
- package/dist/hooks/mnemosyne/index.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/index.js +137 -0
- package/dist/hooks/mnemosyne/index.js.map +1 -0
- package/dist/hooks/mnemosyne/loader.d.ts +20 -0
- package/dist/hooks/mnemosyne/loader.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/loader.js +113 -0
- package/dist/hooks/mnemosyne/loader.js.map +1 -0
- package/dist/hooks/mnemosyne/parser.d.ts +21 -0
- package/dist/hooks/mnemosyne/parser.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/parser.js +190 -0
- package/dist/hooks/mnemosyne/parser.js.map +1 -0
- package/dist/hooks/mnemosyne/promotion.d.ts +29 -0
- package/dist/hooks/mnemosyne/promotion.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/promotion.js +87 -0
- package/dist/hooks/mnemosyne/promotion.js.map +1 -0
- package/dist/hooks/mnemosyne/types.d.ts +109 -0
- package/dist/hooks/mnemosyne/types.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/types.js +8 -0
- package/dist/hooks/mnemosyne/types.js.map +1 -0
- package/dist/hooks/mnemosyne/validator.d.ts +15 -0
- package/dist/hooks/mnemosyne/validator.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/validator.js +87 -0
- package/dist/hooks/mnemosyne/validator.js.map +1 -0
- package/dist/hooks/mnemosyne/writer.d.ts +27 -0
- package/dist/hooks/mnemosyne/writer.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/writer.js +126 -0
- package/dist/hooks/mnemosyne/writer.js.map +1 -0
- package/dist/hooks/notepad/index.d.ts +2 -2
- package/dist/hooks/notepad/index.js +7 -7
- package/dist/hooks/notepad/index.js.map +1 -1
- package/dist/hooks/omc-orchestrator/constants.d.ts +23 -0
- package/dist/hooks/omc-orchestrator/constants.d.ts.map +1 -0
- package/dist/hooks/omc-orchestrator/constants.js +142 -0
- package/dist/hooks/omc-orchestrator/constants.js.map +1 -0
- package/dist/hooks/omc-orchestrator/index.d.ts +113 -0
- package/dist/hooks/omc-orchestrator/index.d.ts.map +1 -0
- package/dist/hooks/omc-orchestrator/index.js +309 -0
- package/dist/hooks/omc-orchestrator/index.js.map +1 -0
- package/dist/hooks/persistent-mode/index.d.ts +4 -4
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +37 -37
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/ralph-loop/index.d.ts +33 -5
- package/dist/hooks/ralph-loop/index.d.ts.map +1 -1
- package/dist/hooks/ralph-loop/index.js +91 -17
- package/dist/hooks/ralph-loop/index.js.map +1 -1
- package/dist/hooks/ralph-prd/index.d.ts +4 -4
- package/dist/hooks/ralph-prd/index.d.ts.map +1 -1
- package/dist/hooks/ralph-prd/index.js +13 -13
- package/dist/hooks/ralph-prd/index.js.map +1 -1
- package/dist/hooks/ralph-progress/index.d.ts +5 -5
- package/dist/hooks/ralph-progress/index.d.ts.map +1 -1
- package/dist/hooks/ralph-progress/index.js +14 -14
- package/dist/hooks/ralph-progress/index.js.map +1 -1
- package/dist/hooks/ralph-verifier/index.d.ts +23 -23
- package/dist/hooks/ralph-verifier/index.d.ts.map +1 -1
- package/dist/hooks/ralph-verifier/index.js +41 -41
- package/dist/hooks/ralph-verifier/index.js.map +1 -1
- package/dist/hooks/rules-injector/constants.d.ts +1 -1
- package/dist/hooks/rules-injector/constants.d.ts.map +1 -1
- package/dist/hooks/rules-injector/constants.js +2 -2
- package/dist/hooks/rules-injector/constants.js.map +1 -1
- package/dist/hooks/todo-continuation/index.js +1 -1
- package/dist/hooks/todo-continuation/index.js.map +1 -1
- package/dist/hooks/ultraqa-loop/index.d.ts +1 -1
- package/dist/hooks/ultraqa-loop/index.js +8 -8
- package/dist/hooks/ultraqa-loop/index.js.map +1 -1
- package/dist/hooks/ultrawork-state/index.js +7 -7
- package/dist/hooks/ultrawork-state/index.js.map +1 -1
- package/dist/hud/background-tasks.d.ts +26 -0
- package/dist/hud/background-tasks.d.ts.map +1 -0
- package/dist/hud/background-tasks.js +116 -0
- package/dist/hud/background-tasks.js.map +1 -0
- package/dist/hud/colors.d.ts +54 -0
- package/dist/hud/colors.d.ts.map +1 -0
- package/dist/hud/colors.js +156 -0
- package/dist/hud/colors.js.map +1 -0
- package/dist/hud/elements/agents.d.ts +73 -0
- package/dist/hud/elements/agents.d.ts.map +1 -0
- package/dist/hud/elements/agents.js +405 -0
- package/dist/hud/elements/agents.js.map +1 -0
- package/dist/hud/elements/background.d.ts +20 -0
- package/dist/hud/elements/background.d.ts.map +1 -0
- package/dist/hud/elements/background.js +70 -0
- package/dist/hud/elements/background.js.map +1 -0
- package/dist/hud/elements/context.d.ts +19 -0
- package/dist/hud/elements/context.d.ts.map +1 -0
- package/dist/hud/elements/context.js +58 -0
- package/dist/hud/elements/context.js.map +1 -0
- package/dist/hud/elements/index.d.ts +17 -0
- package/dist/hud/elements/index.d.ts.map +1 -0
- package/dist/hud/elements/index.js +17 -0
- package/dist/hud/elements/index.js.map +1 -0
- package/dist/hud/elements/limits.d.ts +19 -0
- package/dist/hud/elements/limits.d.ts.map +1 -0
- package/dist/hud/elements/limits.js +54 -0
- package/dist/hud/elements/limits.js.map +1 -0
- package/dist/hud/elements/permission.d.ts +13 -0
- package/dist/hud/elements/permission.d.ts.map +1 -0
- package/dist/hud/elements/permission.js +20 -0
- package/dist/hud/elements/permission.js.map +1 -0
- package/dist/hud/elements/prd.d.ts +20 -0
- package/dist/hud/elements/prd.d.ts.map +1 -0
- package/dist/hud/elements/prd.js +52 -0
- package/dist/hud/elements/prd.js.map +1 -0
- package/dist/hud/elements/ralph.d.ts +14 -0
- package/dist/hud/elements/ralph.d.ts.map +1 -0
- package/dist/hud/elements/ralph.js +36 -0
- package/dist/hud/elements/ralph.js.map +1 -0
- package/dist/hud/elements/session.d.ts +13 -0
- package/dist/hud/elements/session.d.ts.map +1 -0
- package/dist/hud/elements/session.js +24 -0
- package/dist/hud/elements/session.js.map +1 -0
- package/dist/hud/elements/skills.d.ts +24 -0
- package/dist/hud/elements/skills.d.ts.map +1 -0
- package/dist/hud/elements/skills.js +81 -0
- package/dist/hud/elements/skills.js.map +1 -0
- package/dist/hud/elements/thinking.d.ts +13 -0
- package/dist/hud/elements/thinking.d.ts.map +1 -0
- package/dist/hud/elements/thinking.js +19 -0
- package/dist/hud/elements/thinking.js.map +1 -0
- package/dist/hud/elements/todos.d.ts +20 -0
- package/dist/hud/elements/todos.d.ts.map +1 -0
- package/dist/hud/elements/todos.js +70 -0
- package/dist/hud/elements/todos.js.map +1 -0
- package/dist/hud/index.d.ts +9 -0
- package/dist/hud/index.d.ts.map +1 -0
- package/dist/hud/index.js +89 -0
- package/dist/hud/index.js.map +1 -0
- package/dist/hud/omc-state.d.ts +31 -0
- package/dist/hud/omc-state.d.ts.map +1 -0
- package/dist/hud/omc-state.js +163 -0
- package/dist/hud/omc-state.js.map +1 -0
- package/dist/hud/render.d.ts +11 -0
- package/dist/hud/render.d.ts.map +1 -0
- package/dist/hud/render.js +121 -0
- package/dist/hud/render.js.map +1 -0
- package/dist/hud/sisyphus-state.d.ts +31 -0
- package/dist/hud/sisyphus-state.d.ts.map +1 -0
- package/dist/hud/sisyphus-state.js +163 -0
- package/dist/hud/sisyphus-state.js.map +1 -0
- package/dist/hud/state.d.ts +43 -0
- package/dist/hud/state.d.ts.map +1 -0
- package/dist/hud/state.js +201 -0
- package/dist/hud/state.js.map +1 -0
- package/dist/hud/stdin.d.ts +22 -0
- package/dist/hud/stdin.d.ts.map +1 -0
- package/dist/hud/stdin.js +65 -0
- package/dist/hud/stdin.js.map +1 -0
- package/dist/hud/transcript.d.ts +32 -0
- package/dist/hud/transcript.d.ts.map +1 -0
- package/dist/hud/transcript.js +364 -0
- package/dist/hud/transcript.js.map +1 -0
- package/dist/hud/types.d.ts +178 -0
- package/dist/hud/types.d.ts.map +1 -0
- package/dist/hud/types.js +119 -0
- package/dist/hud/types.js.map +1 -0
- package/dist/hud/usage-api.d.ts +24 -0
- package/dist/hud/usage-api.d.ts.map +1 -0
- package/dist/hud/usage-api.js +234 -0
- package/dist/hud/usage-api.js.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/installer/hooks.d.ts +36 -64
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +91 -1298
- package/dist/installer/hooks.js.map +1 -1
- package/dist/installer/index.d.ts +23 -22
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +307 -2575
- package/dist/installer/index.js.map +1 -1
- package/dist/shared/types.d.ts +6 -6
- package/dist/shared/types.d.ts.map +1 -1
- package/docs/ARCHITECTURE.md +386 -0
- package/docs/CLAUDE.md +281 -0
- package/docs/FULL-README.md +822 -0
- package/docs/LOCAL_PLUGIN_INSTALL.md +94 -0
- package/docs/MIGRATION-v3.md +186 -0
- package/docs/MIGRATION.md +460 -0
- package/docs/TIERED_AGENTS_V2.md +322 -0
- package/hooks/hooks.json +70 -0
- package/hooks/keyword-detector.sh +102 -0
- package/hooks/persistent-mode.sh +172 -0
- package/hooks/session-start.sh +62 -0
- package/hooks/stop-continuation.sh +40 -0
- package/package.json +14 -8
- package/scripts/install.sh +90 -72
- package/scripts/keyword-detector.mjs +1 -1
- package/scripts/persistent-mode.mjs +39 -20
- package/scripts/persistent-mode.sh +21 -10
- package/scripts/plugin-setup.mjs +109 -0
- package/scripts/pre-tool-enforcer.mjs +1 -1
- package/scripts/pre-tool-enforcer.sh +1 -1
- package/scripts/session-start.mjs +38 -3
- package/scripts/skill-injector.mjs +231 -0
- package/scripts/uninstall.sh +8 -8
- package/skills/analyze/SKILL.md +47 -0
- package/skills/cancel-ralph/SKILL.md +43 -0
- package/skills/cancel-ultraqa/SKILL.md +29 -0
- package/skills/cancel-ultrawork/SKILL.md +42 -0
- package/skills/deepinit/SKILL.md +321 -0
- package/skills/deepsearch/SKILL.md +39 -0
- package/skills/doctor/SKILL.md +192 -0
- package/skills/frontend-ui-ux/SKILL.md +53 -0
- package/skills/git-master/SKILL.md +58 -0
- package/skills/help/SKILL.md +66 -0
- package/skills/hud/SKILL.md +142 -0
- package/skills/learner/SKILL.md +136 -0
- package/skills/note/SKILL.md +63 -0
- package/skills/omc-default/SKILL.md +78 -0
- package/skills/omc-default-global/SKILL.md +75 -0
- package/skills/omc-setup/SKILL.md +144 -0
- package/skills/orchestrate/SKILL.md +409 -0
- package/skills/plan/SKILL.md +37 -0
- package/skills/planner/SKILL.md +43 -0
- package/skills/ralph/SKILL.md +101 -0
- package/skills/ralph-init/SKILL.md +61 -0
- package/skills/ralplan/SKILL.md +219 -0
- package/skills/release/SKILL.md +84 -0
- package/skills/review/SKILL.md +37 -0
- package/skills/ultraqa/SKILL.md +123 -0
- package/skills/ultrawork/SKILL.md +89 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Rate Limits Element
|
|
3
|
+
*
|
|
4
|
+
* Renders 5-hour and weekly rate limit usage display.
|
|
5
|
+
*/
|
|
6
|
+
import type { RateLimits } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render rate limits display.
|
|
9
|
+
*
|
|
10
|
+
* Format: 5h:45% wk:12%
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderRateLimits(limits: RateLimits | null): string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Render compact rate limits (just percentages).
|
|
15
|
+
*
|
|
16
|
+
* Format: 45%/12%
|
|
17
|
+
*/
|
|
18
|
+
export declare function renderRateLimitsCompact(limits: RateLimits | null): string | null;
|
|
19
|
+
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/limits.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAwB9C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAUzE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAUhF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Rate Limits Element
|
|
3
|
+
*
|
|
4
|
+
* Renders 5-hour and weekly rate limit usage display.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
const GREEN = '\x1b[32m';
|
|
8
|
+
const YELLOW = '\x1b[33m';
|
|
9
|
+
const RED = '\x1b[31m';
|
|
10
|
+
const DIM = '\x1b[2m';
|
|
11
|
+
// Thresholds for rate limit warnings
|
|
12
|
+
const WARNING_THRESHOLD = 70;
|
|
13
|
+
const CRITICAL_THRESHOLD = 90;
|
|
14
|
+
/**
|
|
15
|
+
* Get color based on percentage
|
|
16
|
+
*/
|
|
17
|
+
function getColor(percent) {
|
|
18
|
+
if (percent >= CRITICAL_THRESHOLD) {
|
|
19
|
+
return RED;
|
|
20
|
+
}
|
|
21
|
+
else if (percent >= WARNING_THRESHOLD) {
|
|
22
|
+
return YELLOW;
|
|
23
|
+
}
|
|
24
|
+
return GREEN;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Render rate limits display.
|
|
28
|
+
*
|
|
29
|
+
* Format: 5h:45% wk:12%
|
|
30
|
+
*/
|
|
31
|
+
export function renderRateLimits(limits) {
|
|
32
|
+
if (!limits)
|
|
33
|
+
return null;
|
|
34
|
+
const fiveHour = Math.min(100, Math.max(0, Math.round(limits.fiveHourPercent)));
|
|
35
|
+
const weekly = Math.min(100, Math.max(0, Math.round(limits.weeklyPercent)));
|
|
36
|
+
const fiveHourColor = getColor(fiveHour);
|
|
37
|
+
const weeklyColor = getColor(weekly);
|
|
38
|
+
return `5h:${fiveHourColor}${fiveHour}%${RESET} ${DIM}wk:${RESET}${weeklyColor}${weekly}%${RESET}`;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Render compact rate limits (just percentages).
|
|
42
|
+
*
|
|
43
|
+
* Format: 45%/12%
|
|
44
|
+
*/
|
|
45
|
+
export function renderRateLimitsCompact(limits) {
|
|
46
|
+
if (!limits)
|
|
47
|
+
return null;
|
|
48
|
+
const fiveHour = Math.min(100, Math.max(0, Math.round(limits.fiveHourPercent)));
|
|
49
|
+
const weekly = Math.min(100, Math.max(0, Math.round(limits.weeklyPercent)));
|
|
50
|
+
const fiveHourColor = getColor(fiveHour);
|
|
51
|
+
const weeklyColor = getColor(weekly);
|
|
52
|
+
return `${fiveHourColor}${fiveHour}%${RESET}/${weeklyColor}${weekly}%${RESET}`;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=limits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../../../src/hud/elements/limits.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,GAAG,GAAG,UAAU,CAAC;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,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAE5E,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAErC,OAAO,GAAG,aAAa,GAAG,QAAQ,IAAI,KAAK,IAAI,WAAW,GAAG,MAAM,IAAI,KAAK,EAAE,CAAC;AACjF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Permission Status Element
|
|
3
|
+
*
|
|
4
|
+
* Renders heuristic-based permission pending indicator.
|
|
5
|
+
*/
|
|
6
|
+
import type { PendingPermission } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render permission pending indicator.
|
|
9
|
+
*
|
|
10
|
+
* Format: APPROVE? edit:filename.ts
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderPermission(pending: PendingPermission | null): string | null;
|
|
13
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/permission.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAGjF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Permission Status Element
|
|
3
|
+
*
|
|
4
|
+
* Renders heuristic-based permission pending indicator.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
// Local color constants (following context.ts pattern)
|
|
8
|
+
const YELLOW = '\x1b[33m';
|
|
9
|
+
const DIM = '\x1b[2m';
|
|
10
|
+
/**
|
|
11
|
+
* Render permission pending indicator.
|
|
12
|
+
*
|
|
13
|
+
* Format: APPROVE? edit:filename.ts
|
|
14
|
+
*/
|
|
15
|
+
export function renderPermission(pending) {
|
|
16
|
+
if (!pending)
|
|
17
|
+
return null;
|
|
18
|
+
return `${YELLOW}APPROVE?${RESET} ${DIM}${pending.toolName.toLowerCase()}${RESET}:${pending.targetSummary}`;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=permission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../../src/hud/elements/permission.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,uDAAuD;AACvD,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,GAAG,GAAG,SAAS,CAAC;AAEtB;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAiC;IAChE,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,OAAO,GAAG,MAAM,WAAW,KAAK,IAAI,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;AAC9G,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - PRD Element
|
|
3
|
+
*
|
|
4
|
+
* Renders current PRD story display.
|
|
5
|
+
*/
|
|
6
|
+
import type { PrdStateForHud } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render current PRD story.
|
|
9
|
+
* Returns null if no PRD is active.
|
|
10
|
+
*
|
|
11
|
+
* Format: US-002
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderPrd(state: PrdStateForHud | null): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Render PRD with progress (for full mode).
|
|
16
|
+
*
|
|
17
|
+
* Format: US-002 (2/5)
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderPrdWithProgress(state: PrdStateForHud | null): string | null;
|
|
20
|
+
//# sourceMappingURL=prd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prd.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/prd.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAkBrE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAmBjF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - PRD Element
|
|
3
|
+
*
|
|
4
|
+
* Renders current PRD story display.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
const CYAN = '\x1b[36m';
|
|
8
|
+
const GREEN = '\x1b[32m';
|
|
9
|
+
const DIM = '\x1b[2m';
|
|
10
|
+
/**
|
|
11
|
+
* Render current PRD story.
|
|
12
|
+
* Returns null if no PRD is active.
|
|
13
|
+
*
|
|
14
|
+
* Format: US-002
|
|
15
|
+
*/
|
|
16
|
+
export function renderPrd(state) {
|
|
17
|
+
if (!state) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const { currentStoryId, completed, total } = state;
|
|
21
|
+
// If all complete, show completion
|
|
22
|
+
if (completed === total) {
|
|
23
|
+
return `${GREEN}PRD:done${RESET}`;
|
|
24
|
+
}
|
|
25
|
+
// Show current story ID
|
|
26
|
+
if (currentStoryId) {
|
|
27
|
+
return `${CYAN}${currentStoryId}${RESET}`;
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Render PRD with progress (for full mode).
|
|
33
|
+
*
|
|
34
|
+
* Format: US-002 (2/5)
|
|
35
|
+
*/
|
|
36
|
+
export function renderPrdWithProgress(state) {
|
|
37
|
+
if (!state) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const { currentStoryId, completed, total } = state;
|
|
41
|
+
// If all complete, show completion
|
|
42
|
+
if (completed === total) {
|
|
43
|
+
return `${GREEN}PRD:${completed}/${total} done${RESET}`;
|
|
44
|
+
}
|
|
45
|
+
// Show current story with progress
|
|
46
|
+
if (currentStoryId) {
|
|
47
|
+
return `${CYAN}${currentStoryId}${RESET} ${DIM}(${completed}/${total})${RESET}`;
|
|
48
|
+
}
|
|
49
|
+
// No current story but PRD exists
|
|
50
|
+
return `${DIM}PRD:${completed}/${total}${RESET}`;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=prd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prd.js","sourceRoot":"","sources":["../../../src/hud/elements/prd.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,GAAG,GAAG,SAAS,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,KAA4B;IACpD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEnD,mCAAmC;IACnC,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACxB,OAAO,GAAG,KAAK,WAAW,KAAK,EAAE,CAAC;IACpC,CAAC;IAED,wBAAwB;IACxB,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,GAAG,IAAI,GAAG,cAAc,GAAG,KAAK,EAAE,CAAC;IAC5C,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAA4B;IAChE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEnD,mCAAmC;IACnC,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACxB,OAAO,GAAG,KAAK,OAAO,SAAS,IAAI,KAAK,QAAQ,KAAK,EAAE,CAAC;IAC1D,CAAC;IAED,mCAAmC;IACnC,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,GAAG,IAAI,GAAG,cAAc,GAAG,KAAK,IAAI,GAAG,IAAI,SAAS,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;IAClF,CAAC;IAED,kCAAkC;IAClC,OAAO,GAAG,GAAG,OAAO,SAAS,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Ralph Element
|
|
3
|
+
*
|
|
4
|
+
* Renders Ralph loop iteration display.
|
|
5
|
+
*/
|
|
6
|
+
import type { RalphStateForHud, HudThresholds } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render Ralph loop state.
|
|
9
|
+
* Returns null if ralph is not active.
|
|
10
|
+
*
|
|
11
|
+
* Format: ralph:3/10
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderRalph(state: RalphStateForHud | null, thresholds: HudThresholds): string | null;
|
|
14
|
+
//# sourceMappingURL=ralph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ralph.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/ralph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQnE;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAC9B,UAAU,EAAE,aAAa,GACxB,MAAM,GAAG,IAAI,CAmBf"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Ralph Element
|
|
3
|
+
*
|
|
4
|
+
* Renders Ralph loop iteration display.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
// ANSI color codes for inline use
|
|
8
|
+
const RED = '\x1b[31m';
|
|
9
|
+
const YELLOW = '\x1b[33m';
|
|
10
|
+
const GREEN = '\x1b[32m';
|
|
11
|
+
/**
|
|
12
|
+
* Render Ralph loop state.
|
|
13
|
+
* Returns null if ralph is not active.
|
|
14
|
+
*
|
|
15
|
+
* Format: ralph:3/10
|
|
16
|
+
*/
|
|
17
|
+
export function renderRalph(state, thresholds) {
|
|
18
|
+
if (!state?.active) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const { iteration, maxIterations } = state;
|
|
22
|
+
const warningThreshold = thresholds.ralphWarning;
|
|
23
|
+
const criticalThreshold = Math.floor(maxIterations * 0.9);
|
|
24
|
+
let color;
|
|
25
|
+
if (iteration >= criticalThreshold) {
|
|
26
|
+
color = RED;
|
|
27
|
+
}
|
|
28
|
+
else if (iteration >= warningThreshold) {
|
|
29
|
+
color = YELLOW;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
color = GREEN;
|
|
33
|
+
}
|
|
34
|
+
return `ralph:${color}${iteration}/${maxIterations}${RESET}`;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=ralph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ralph.js","sourceRoot":"","sources":["../../../src/hud/elements/ralph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAsB,KAAK,EAAE,MAAM,cAAc,CAAC;AAEzD,kCAAkC;AAClC,MAAM,GAAG,GAAG,UAAU,CAAC;AACvB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,KAAK,GAAG,UAAU,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CACzB,KAA8B,EAC9B,UAAyB;IAEzB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,gBAAgB,GAAG,UAAU,CAAC,YAAY,CAAC;IACjD,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,GAAG,CAAC,CAAC;IAE1D,IAAI,KAAa,CAAC;IAClB,IAAI,SAAS,IAAI,iBAAiB,EAAE,CAAC;QACnC,KAAK,GAAG,GAAG,CAAC;IACd,CAAC;SAAM,IAAI,SAAS,IAAI,gBAAgB,EAAE,CAAC;QACzC,KAAK,GAAG,MAAM,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,KAAK,CAAC;IAChB,CAAC;IAED,OAAO,SAAS,KAAK,GAAG,SAAS,IAAI,aAAa,GAAG,KAAK,EAAE,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Session Health Element
|
|
3
|
+
*
|
|
4
|
+
* Renders session duration and health indicator.
|
|
5
|
+
*/
|
|
6
|
+
import type { SessionHealth } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render session health indicator.
|
|
9
|
+
*
|
|
10
|
+
* Format: session:45m or session:45m (healthy)
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderSession(session: SessionHealth | null): string | null;
|
|
13
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQjD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAQ1E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Session Health Element
|
|
3
|
+
*
|
|
4
|
+
* Renders session duration and health indicator.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
// Local color constants (following context.ts pattern)
|
|
8
|
+
const GREEN = '\x1b[32m';
|
|
9
|
+
const YELLOW = '\x1b[33m';
|
|
10
|
+
const RED = '\x1b[31m';
|
|
11
|
+
/**
|
|
12
|
+
* Render session health indicator.
|
|
13
|
+
*
|
|
14
|
+
* Format: session:45m or session:45m (healthy)
|
|
15
|
+
*/
|
|
16
|
+
export function renderSession(session) {
|
|
17
|
+
if (!session)
|
|
18
|
+
return null;
|
|
19
|
+
const color = session.health === 'critical' ? RED
|
|
20
|
+
: session.health === 'warning' ? YELLOW
|
|
21
|
+
: GREEN;
|
|
22
|
+
return `session:${color}${session.durationMinutes}m${RESET}`;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/hud/elements/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,uDAAuD;AACvD,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,GAAG,GAAG,UAAU,CAAC;AAEvB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,OAA6B;IACzD,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE1B,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG;QAC/C,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM;YACvC,CAAC,CAAC,KAAK,CAAC;IAEV,OAAO,WAAW,KAAK,GAAG,OAAO,CAAC,eAAe,IAAI,KAAK,EAAE,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Skills Element
|
|
3
|
+
*
|
|
4
|
+
* Renders active skills badge (ultrawork, ralph mode indicators).
|
|
5
|
+
*/
|
|
6
|
+
import type { UltraworkStateForHud, RalphStateForHud, SkillInvocation } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render active skill badges with optional last skill.
|
|
9
|
+
* Returns null if no skills are active.
|
|
10
|
+
*
|
|
11
|
+
* Format: ultrawork or ultrawork + ralph | skill:planner
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderSkills(ultrawork: UltraworkStateForHud | null, ralph: RalphStateForHud | null, lastSkill?: SkillInvocation | null): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Render last skill standalone (when activeSkills is disabled but lastSkill is enabled).
|
|
16
|
+
*/
|
|
17
|
+
export declare function renderLastSkill(lastSkill: SkillInvocation | null): string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Render skill with reinforcement count (for debugging).
|
|
20
|
+
*
|
|
21
|
+
* Format: ultrawork(r3)
|
|
22
|
+
*/
|
|
23
|
+
export declare function renderSkillsWithReinforcement(ultrawork: UltraworkStateForHud | null, ralph: RalphStateForHud | null): string | null;
|
|
24
|
+
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA2B3F;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,oBAAoB,GAAG,IAAI,EACtC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAC9B,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,GACjC,MAAM,GAAG,IAAI,CAoBf;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,eAAe,GAAG,IAAI,GAChC,MAAM,GAAG,IAAI,CAKf;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,oBAAoB,GAAG,IAAI,EACtC,KAAK,EAAE,gBAAgB,GAAG,IAAI,GAC7B,MAAM,GAAG,IAAI,CAkBf"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Skills Element
|
|
3
|
+
*
|
|
4
|
+
* Renders active skills badge (ultrawork, ralph mode indicators).
|
|
5
|
+
*/
|
|
6
|
+
import { RESET, cyan } from '../colors.js';
|
|
7
|
+
const MAGENTA = '\x1b[35m';
|
|
8
|
+
const BRIGHT_MAGENTA = '\x1b[95m';
|
|
9
|
+
/**
|
|
10
|
+
* Truncate string to max length with ellipsis.
|
|
11
|
+
*/
|
|
12
|
+
function truncate(str, max) {
|
|
13
|
+
return str.length > max ? str.slice(0, max) + '...' : str;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Check if a skill name corresponds to an active mode.
|
|
17
|
+
*/
|
|
18
|
+
function isActiveMode(skillName, ultrawork, ralph) {
|
|
19
|
+
if (skillName === 'ultrawork' && ultrawork?.active)
|
|
20
|
+
return true;
|
|
21
|
+
if (skillName === 'ralph' && ralph?.active)
|
|
22
|
+
return true;
|
|
23
|
+
if (skillName === 'ultrawork+ralph' && ultrawork?.active && ralph?.active)
|
|
24
|
+
return true;
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Render active skill badges with optional last skill.
|
|
29
|
+
* Returns null if no skills are active.
|
|
30
|
+
*
|
|
31
|
+
* Format: ultrawork or ultrawork + ralph | skill:planner
|
|
32
|
+
*/
|
|
33
|
+
export function renderSkills(ultrawork, ralph, lastSkill) {
|
|
34
|
+
const parts = [];
|
|
35
|
+
// Active modes (ultrawork, ralph)
|
|
36
|
+
if (ralph?.active && ultrawork?.active) {
|
|
37
|
+
// Combined mode
|
|
38
|
+
parts.push(`${BRIGHT_MAGENTA}ultrawork+ralph${RESET}`);
|
|
39
|
+
}
|
|
40
|
+
else if (ultrawork?.active) {
|
|
41
|
+
parts.push(`${MAGENTA}ultrawork${RESET}`);
|
|
42
|
+
}
|
|
43
|
+
else if (ralph?.active) {
|
|
44
|
+
parts.push(`${MAGENTA}ralph${RESET}`);
|
|
45
|
+
}
|
|
46
|
+
// Last skill (if different from active mode)
|
|
47
|
+
if (lastSkill && !isActiveMode(lastSkill.name, ultrawork, ralph)) {
|
|
48
|
+
const argsDisplay = lastSkill.args ? `(${truncate(lastSkill.args, 15)})` : '';
|
|
49
|
+
parts.push(cyan(`skill:${lastSkill.name}${argsDisplay}`));
|
|
50
|
+
}
|
|
51
|
+
return parts.length > 0 ? parts.join(' ') : null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Render last skill standalone (when activeSkills is disabled but lastSkill is enabled).
|
|
55
|
+
*/
|
|
56
|
+
export function renderLastSkill(lastSkill) {
|
|
57
|
+
if (!lastSkill)
|
|
58
|
+
return null;
|
|
59
|
+
const argsDisplay = lastSkill.args ? `(${truncate(lastSkill.args, 15)})` : '';
|
|
60
|
+
return cyan(`skill:${lastSkill.name}${argsDisplay}`);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Render skill with reinforcement count (for debugging).
|
|
64
|
+
*
|
|
65
|
+
* Format: ultrawork(r3)
|
|
66
|
+
*/
|
|
67
|
+
export function renderSkillsWithReinforcement(ultrawork, ralph) {
|
|
68
|
+
if (!ultrawork?.active && !ralph?.active) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
const parts = [];
|
|
72
|
+
if (ultrawork?.active) {
|
|
73
|
+
const reinforcement = ultrawork.reinforcementCount > 0 ? `(r${ultrawork.reinforcementCount})` : '';
|
|
74
|
+
parts.push(`ultrawork${reinforcement}`);
|
|
75
|
+
}
|
|
76
|
+
if (ralph?.active) {
|
|
77
|
+
parts.push('ralph');
|
|
78
|
+
}
|
|
79
|
+
return `${MAGENTA}${parts.join('-')}${RESET}`;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../src/hud/elements/skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,OAAO,GAAG,UAAU,CAAC;AAC3B,MAAM,cAAc,GAAG,UAAU,CAAC;AAElC;;GAEG;AACH,SAAS,QAAQ,CAAC,GAAW,EAAE,GAAW;IACxC,OAAO,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AAC5D,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CACnB,SAAiB,EACjB,SAAsC,EACtC,KAA8B;IAE9B,IAAI,SAAS,KAAK,WAAW,IAAI,SAAS,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IAChE,IA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ThinkingState } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render thinking indicator.
|
|
9
|
+
*
|
|
10
|
+
* Format: thinking
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderThinking(state: ThinkingState | null): string | null;
|
|
13
|
+
//# sourceMappingURL=thinking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thinking.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/thinking.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAGzE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Thinking Indicator Element
|
|
3
|
+
*
|
|
4
|
+
* Renders extended thinking mode indicator.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
// Local color constants (following context.ts pattern)
|
|
8
|
+
const CYAN = '\x1b[36m';
|
|
9
|
+
/**
|
|
10
|
+
* Render thinking indicator.
|
|
11
|
+
*
|
|
12
|
+
* Format: thinking
|
|
13
|
+
*/
|
|
14
|
+
export function renderThinking(state) {
|
|
15
|
+
if (!state?.active)
|
|
16
|
+
return null;
|
|
17
|
+
return `${CYAN}thinking${RESET}`;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=thinking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thinking.js","sourceRoot":"","sources":["../../../src/hud/elements/thinking.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,uDAAuD;AACvD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,KAA2B;IACxD,IAAI,CAAC,KAAK,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IAChC,OAAO,GAAG,IAAI,WAAW,KAAK,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Todos Element
|
|
3
|
+
*
|
|
4
|
+
* Renders todo progress display.
|
|
5
|
+
*/
|
|
6
|
+
import type { TodoItem } from '../types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Render todo progress.
|
|
9
|
+
* Returns null if no todos.
|
|
10
|
+
*
|
|
11
|
+
* Format: todos:2/5
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderTodos(todos: TodoItem[]): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Render current in-progress todo (for full mode).
|
|
16
|
+
*
|
|
17
|
+
* Format: todos:2/5 "Implementing feature"
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderTodosWithCurrent(todos: TodoItem[]): string | null;
|
|
20
|
+
//# sourceMappingURL=todos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todos.d.ts","sourceRoot":"","sources":["../../../src/hud/elements/todos.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQ5C;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,GAAG,IAAI,CAqB5D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,GAAG,IAAI,CAgCvE"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sisyphus HUD - Todos Element
|
|
3
|
+
*
|
|
4
|
+
* Renders todo progress display.
|
|
5
|
+
*/
|
|
6
|
+
import { RESET } from '../colors.js';
|
|
7
|
+
const GREEN = '\x1b[32m';
|
|
8
|
+
const YELLOW = '\x1b[33m';
|
|
9
|
+
const CYAN = '\x1b[36m';
|
|
10
|
+
const DIM = '\x1b[2m';
|
|
11
|
+
/**
|
|
12
|
+
* Render todo progress.
|
|
13
|
+
* Returns null if no todos.
|
|
14
|
+
*
|
|
15
|
+
* Format: todos:2/5
|
|
16
|
+
*/
|
|
17
|
+
export function renderTodos(todos) {
|
|
18
|
+
if (todos.length === 0) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const completed = todos.filter((t) => t.status === 'completed').length;
|
|
22
|
+
const total = todos.length;
|
|
23
|
+
// Color based on progress
|
|
24
|
+
let color;
|
|
25
|
+
const percent = (completed / total) * 100;
|
|
26
|
+
if (percent >= 80) {
|
|
27
|
+
color = GREEN;
|
|
28
|
+
}
|
|
29
|
+
else if (percent >= 50) {
|
|
30
|
+
color = YELLOW;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
color = CYAN;
|
|
34
|
+
}
|
|
35
|
+
return `todos:${color}${completed}/${total}${RESET}`;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Render current in-progress todo (for full mode).
|
|
39
|
+
*
|
|
40
|
+
* Format: todos:2/5 "Implementing feature"
|
|
41
|
+
*/
|
|
42
|
+
export function renderTodosWithCurrent(todos) {
|
|
43
|
+
if (todos.length === 0) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
const completed = todos.filter((t) => t.status === 'completed').length;
|
|
47
|
+
const total = todos.length;
|
|
48
|
+
const inProgress = todos.find((t) => t.status === 'in_progress');
|
|
49
|
+
// Color based on progress
|
|
50
|
+
const percent = (completed / total) * 100;
|
|
51
|
+
let color;
|
|
52
|
+
if (percent >= 80) {
|
|
53
|
+
color = GREEN;
|
|
54
|
+
}
|
|
55
|
+
else if (percent >= 50) {
|
|
56
|
+
color = YELLOW;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
color = CYAN;
|
|
60
|
+
}
|
|
61
|
+
let result = `todos:${color}${completed}/${total}${RESET}`;
|
|
62
|
+
if (inProgress) {
|
|
63
|
+
// Truncate long active form
|
|
64
|
+
const activeText = inProgress.activeForm || inProgress.content;
|
|
65
|
+
const truncated = activeText.length > 25 ? activeText.slice(0, 22) + '...' : activeText;
|
|
66
|
+
result += ` ${DIM}"${truncated}"${RESET}`;
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=todos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todos.js","sourceRoot":"","sources":["../../../src/hud/elements/todos.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,GAAG,GAAG,SAAS,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,MAAM,CAAC;IACvE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC;IAE3B,0BAA0B;IAC1B,IAAI,KAAa,CAAC;IAClB,MAAM,OAAO,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;IAE1C,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;QAClB,KAAK,GAAG,KAAK,CAAC;IAChB,CAAC;SAAM,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;QACzB,KAAK,GAAG,MAAM,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,KA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