oh-my-claude-sisyphus 3.7.0 → 3.7.3
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 +24 -1
- package/commands/hud.md +37 -5
- package/commands/omc-setup.md +105 -0
- package/dist/__tests__/compatibility-security.test.d.ts +13 -0
- package/dist/__tests__/compatibility-security.test.d.ts.map +1 -0
- package/dist/__tests__/compatibility-security.test.js +403 -0
- package/dist/__tests__/compatibility-security.test.js.map +1 -0
- package/dist/__tests__/compatibility.test.d.ts +7 -0
- package/dist/__tests__/compatibility.test.d.ts.map +1 -0
- package/dist/__tests__/compatibility.test.js +484 -0
- package/dist/__tests__/compatibility.test.js.map +1 -0
- package/dist/__tests__/hud/analytics-display.test.js +141 -1
- package/dist/__tests__/hud/analytics-display.test.js.map +1 -1
- package/dist/__tests__/hud-windows.test.d.ts +2 -0
- package/dist/__tests__/hud-windows.test.d.ts.map +1 -0
- package/dist/__tests__/hud-windows.test.js +91 -0
- package/dist/__tests__/hud-windows.test.js.map +1 -0
- package/dist/cli/analytics.js +0 -0
- package/dist/cli/index.js +0 -0
- package/dist/compatibility/discovery.d.ts +58 -0
- package/dist/compatibility/discovery.d.ts.map +1 -0
- package/dist/compatibility/discovery.js +619 -0
- package/dist/compatibility/discovery.js.map +1 -0
- package/dist/compatibility/index.d.ts +51 -0
- package/dist/compatibility/index.d.ts.map +1 -0
- package/dist/compatibility/index.js +72 -0
- package/dist/compatibility/index.js.map +1 -0
- package/dist/compatibility/mcp-bridge.d.ts +138 -0
- package/dist/compatibility/mcp-bridge.d.ts.map +1 -0
- package/dist/compatibility/mcp-bridge.js +524 -0
- package/dist/compatibility/mcp-bridge.js.map +1 -0
- package/dist/compatibility/permission-adapter.d.ts +79 -0
- package/dist/compatibility/permission-adapter.d.ts.map +1 -0
- package/dist/compatibility/permission-adapter.js +369 -0
- package/dist/compatibility/permission-adapter.js.map +1 -0
- package/dist/compatibility/registry.d.ts +161 -0
- package/dist/compatibility/registry.d.ts.map +1 -0
- package/dist/compatibility/registry.js +389 -0
- package/dist/compatibility/registry.js.map +1 -0
- package/dist/compatibility/types.d.ts +249 -0
- package/dist/compatibility/types.d.ts.map +1 -0
- package/dist/compatibility/types.js +8 -0
- package/dist/compatibility/types.js.map +1 -0
- package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -1
- package/dist/features/rate-limit-wait/daemon.js +44 -1
- package/dist/features/rate-limit-wait/daemon.js.map +1 -1
- package/dist/features/state-manager/index.d.ts.map +1 -1
- package/dist/features/state-manager/index.js +4 -1
- package/dist/features/state-manager/index.js.map +1 -1
- package/dist/hooks/permission-handler/__tests__/index.test.js +47 -0
- package/dist/hooks/permission-handler/__tests__/index.test.js.map +1 -1
- package/dist/hooks/permission-handler/index.d.ts +1 -1
- package/dist/hooks/permission-handler/index.d.ts.map +1 -1
- package/dist/hooks/permission-handler/index.js +11 -15
- package/dist/hooks/permission-handler/index.js.map +1 -1
- package/dist/hooks/plugin-patterns/index.d.ts +5 -0
- package/dist/hooks/plugin-patterns/index.d.ts.map +1 -1
- package/dist/hooks/plugin-patterns/index.js +26 -1
- package/dist/hooks/plugin-patterns/index.js.map +1 -1
- package/dist/hooks/session-end/index.d.ts +0 -8
- package/dist/hooks/session-end/index.d.ts.map +1 -1
- package/dist/hooks/session-end/index.js +5 -12
- package/dist/hooks/session-end/index.js.map +1 -1
- package/dist/hooks/subagent-tracker/index.d.ts.map +1 -1
- package/dist/hooks/subagent-tracker/index.js +32 -17
- package/dist/hooks/subagent-tracker/index.js.map +1 -1
- package/dist/hud/analytics-display.d.ts +17 -1
- package/dist/hud/analytics-display.d.ts.map +1 -1
- package/dist/hud/analytics-display.js +55 -12
- package/dist/hud/analytics-display.js.map +1 -1
- package/dist/hud/render.d.ts.map +1 -1
- package/dist/hud/render.js +49 -18
- package/dist/hud/render.js.map +1 -1
- package/dist/hud/types.d.ts +2 -0
- package/dist/hud/types.d.ts.map +1 -1
- package/dist/hud/types.js +14 -0
- package/dist/hud/types.js.map +1 -1
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +3 -2
- package/dist/installer/index.js.map +1 -1
- package/docs/COMPATIBILITY.md +1051 -0
- package/hooks/keyword-detector.sh +4 -4
- package/hooks/persistent-mode.sh +10 -10
- package/hooks/session-start.sh +4 -4
- package/package.json +3 -1
- package/scripts/keyword-detector.mjs +4 -4
- package/scripts/persistent-mode.mjs +6 -6
- package/scripts/persistent-mode.sh +10 -10
- package/scripts/session-start.mjs +4 -4
- package/skills/hud/SKILL.md +37 -5
- package/skills/omc-setup/SKILL.md +162 -4
- package/skills/writer-memory/SKILL.md +443 -0
- package/skills/writer-memory/lib/character-tracker.ts +338 -0
- package/skills/writer-memory/lib/memory-manager.ts +804 -0
- package/skills/writer-memory/lib/relationship-graph.ts +400 -0
- package/skills/writer-memory/lib/scene-organizer.ts +544 -0
- package/skills/writer-memory/lib/synopsis-builder.ts +339 -0
- package/skills/writer-memory/templates/synopsis-template.md +46 -0
- package/templates/hooks/keyword-detector.sh +4 -4
- package/templates/hooks/persistent-mode.sh +10 -10
- package/templates/hooks/session-start.sh +4 -4
- package/dist/__tests__/analytics/analytics-summary.test.d.ts +0 -2
- package/dist/__tests__/analytics/analytics-summary.test.d.ts.map +0 -1
- package/dist/__tests__/analytics/analytics-summary.test.js +0 -267
- package/dist/__tests__/analytics/analytics-summary.test.js.map +0 -1
- package/dist/__tests__/analytics/cost-estimator.test.d.ts +0 -2
- package/dist/__tests__/analytics/cost-estimator.test.d.ts.map +0 -1
- package/dist/__tests__/analytics/cost-estimator.test.js +0 -212
- package/dist/__tests__/analytics/cost-estimator.test.js.map +0 -1
- package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts +0 -7
- package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts.map +0 -1
- package/dist/__tests__/hooks/auto-slash-command/executor.test.js +0 -374
- package/dist/__tests__/hooks/auto-slash-command/executor.test.js.map +0 -1
- package/dist/__tests__/hud/auto-tracking.integration.test.d.ts +0 -2
- package/dist/__tests__/hud/auto-tracking.integration.test.d.ts.map +0 -1
- package/dist/__tests__/hud/auto-tracking.integration.test.js +0 -12
- package/dist/__tests__/hud/auto-tracking.integration.test.js.map +0 -1
- package/dist/__tests__/learned-skills/config.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/config.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/config.test.js +0 -37
- package/dist/__tests__/learned-skills/config.test.js.map +0 -1
- package/dist/__tests__/learned-skills/detector.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/detector.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/detector.test.js +0 -99
- package/dist/__tests__/learned-skills/detector.test.js.map +0 -1
- package/dist/__tests__/learned-skills/finder.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/finder.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/finder.test.js +0 -59
- package/dist/__tests__/learned-skills/finder.test.js.map +0 -1
- package/dist/__tests__/learned-skills/loader.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/loader.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/loader.test.js +0 -69
- package/dist/__tests__/learned-skills/loader.test.js.map +0 -1
- package/dist/__tests__/learned-skills/parser.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/parser.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/parser.test.js +0 -81
- package/dist/__tests__/learned-skills/parser.test.js.map +0 -1
- package/dist/__tests__/learned-skills/validator.test.d.ts +0 -2
- package/dist/__tests__/learned-skills/validator.test.d.ts.map +0 -1
- package/dist/__tests__/learned-skills/validator.test.js +0 -85
- package/dist/__tests__/learned-skills/validator.test.js.map +0 -1
- package/dist/agents/codex-agents.d.ts +0 -20
- package/dist/agents/codex-agents.d.ts.map +0 -1
- package/dist/agents/codex-agents.js +0 -36
- package/dist/agents/codex-agents.js.map +0 -1
- package/dist/agents/document-writer.d.ts +0 -11
- package/dist/agents/document-writer.d.ts.map +0 -1
- package/dist/agents/document-writer.js +0 -209
- package/dist/agents/document-writer.js.map +0 -1
- package/dist/agents/frontend-engineer.d.ts +0 -11
- package/dist/agents/frontend-engineer.d.ts.map +0 -1
- package/dist/agents/frontend-engineer.js +0 -115
- package/dist/agents/frontend-engineer.js.map +0 -1
- package/dist/agents/librarian.d.ts +0 -12
- package/dist/agents/librarian.d.ts.map +0 -1
- package/dist/agents/librarian.js +0 -103
- package/dist/agents/librarian.js.map +0 -1
- package/dist/agents/metis.d.ts +0 -12
- package/dist/agents/metis.d.ts.map +0 -1
- package/dist/agents/metis.js +0 -117
- package/dist/agents/metis.js.map +0 -1
- package/dist/agents/momus.d.ts +0 -12
- package/dist/agents/momus.d.ts.map +0 -1
- package/dist/agents/momus.js +0 -128
- package/dist/agents/momus.js.map +0 -1
- package/dist/agents/multimodal-looker.d.ts +0 -11
- package/dist/agents/multimodal-looker.d.ts.map +0 -1
- package/dist/agents/multimodal-looker.js +0 -70
- package/dist/agents/multimodal-looker.js.map +0 -1
- package/dist/agents/oracle.d.ts +0 -13
- package/dist/agents/oracle.d.ts.map +0 -1
- package/dist/agents/oracle.js +0 -191
- package/dist/agents/oracle.js.map +0 -1
- package/dist/agents/orchestrator-sisyphus.d.ts +0 -11
- package/dist/agents/orchestrator-sisyphus.d.ts.map +0 -1
- package/dist/agents/orchestrator-sisyphus.js +0 -115
- package/dist/agents/orchestrator-sisyphus.js.map +0 -1
- package/dist/agents/prometheus.d.ts +0 -12
- package/dist/agents/prometheus.d.ts.map +0 -1
- package/dist/agents/prometheus.js +0 -195
- package/dist/agents/prometheus.js.map +0 -1
- package/dist/agents/sisyphus-junior.d.ts +0 -12
- package/dist/agents/sisyphus-junior.d.ts.map +0 -1
- package/dist/agents/sisyphus-junior.js +0 -93
- package/dist/agents/sisyphus-junior.js.map +0 -1
- package/dist/cli/components/CostDashboard.d.ts +0 -15
- package/dist/cli/components/CostDashboard.d.ts.map +0 -1
- package/dist/cli/components/CostDashboard.js +0 -15
- package/dist/cli/components/CostDashboard.js.map +0 -1
- package/dist/cli/components/LiveStats.d.ts +0 -16
- package/dist/cli/components/LiveStats.d.ts.map +0 -1
- package/dist/cli/components/LiveStats.js +0 -16
- package/dist/cli/components/LiveStats.js.map +0 -1
- package/dist/cli/components/SessionBrowser.d.ts +0 -14
- package/dist/cli/components/SessionBrowser.d.ts.map +0 -1
- package/dist/cli/components/SessionBrowser.js +0 -14
- package/dist/cli/components/SessionBrowser.js.map +0 -1
- package/dist/cli/tui.d.ts +0 -21
- package/dist/cli/tui.d.ts.map +0 -1
- package/dist/cli/tui.js +0 -21
- package/dist/cli/tui.js.map +0 -1
- package/dist/hooks/autopilot/signals.d.ts +0 -20
- package/dist/hooks/autopilot/signals.d.ts.map +0 -1
- package/dist/hooks/autopilot/signals.js +0 -75
- package/dist/hooks/autopilot/signals.js.map +0 -1
- package/dist/hooks/autopilot/summary.d.ts +0 -27
- package/dist/hooks/autopilot/summary.d.ts.map +0 -1
- package/dist/hooks/autopilot/summary.js +0 -160
- package/dist/hooks/autopilot/summary.js.map +0 -1
- package/dist/hooks/autopilot/transition.d.ts +0 -39
- package/dist/hooks/autopilot/transition.d.ts.map +0 -1
- package/dist/hooks/autopilot/transition.js +0 -216
- package/dist/hooks/autopilot/transition.js.map +0 -1
- package/dist/hooks/context-window-limit-recovery/constants.d.ts +0 -28
- package/dist/hooks/context-window-limit-recovery/constants.d.ts.map +0 -1
- package/dist/hooks/context-window-limit-recovery/constants.js +0 -85
- package/dist/hooks/context-window-limit-recovery/constants.js.map +0 -1
- package/dist/hooks/context-window-limit-recovery/index.d.ts +0 -62
- package/dist/hooks/context-window-limit-recovery/index.d.ts.map +0 -1
- package/dist/hooks/context-window-limit-recovery/index.js +0 -201
- package/dist/hooks/context-window-limit-recovery/index.js.map +0 -1
- package/dist/hooks/context-window-limit-recovery/parser.d.ts +0 -31
- package/dist/hooks/context-window-limit-recovery/parser.d.ts.map +0 -1
- package/dist/hooks/context-window-limit-recovery/parser.js +0 -241
- package/dist/hooks/context-window-limit-recovery/parser.js.map +0 -1
- package/dist/hooks/context-window-limit-recovery/types.d.ts +0 -84
- package/dist/hooks/context-window-limit-recovery/types.d.ts.map +0 -1
- package/dist/hooks/context-window-limit-recovery/types.js +0 -34
- package/dist/hooks/context-window-limit-recovery/types.js.map +0 -1
- package/dist/hooks/edit-error-recovery/index.d.ts +0 -62
- package/dist/hooks/edit-error-recovery/index.d.ts.map +0 -1
- package/dist/hooks/edit-error-recovery/index.js +0 -89
- package/dist/hooks/edit-error-recovery/index.js.map +0 -1
- package/dist/hooks/learned-skills/config.d.ts +0 -53
- package/dist/hooks/learned-skills/config.d.ts.map +0 -1
- package/dist/hooks/learned-skills/config.js +0 -103
- package/dist/hooks/learned-skills/config.js.map +0 -1
- package/dist/hooks/learned-skills/constants.d.ts +0 -24
- package/dist/hooks/learned-skills/constants.d.ts.map +0 -1
- package/dist/hooks/learned-skills/constants.js +0 -26
- package/dist/hooks/learned-skills/constants.js.map +0 -1
- package/dist/hooks/learned-skills/detection-hook.d.ts +0 -39
- package/dist/hooks/learned-skills/detection-hook.d.ts.map +0 -1
- package/dist/hooks/learned-skills/detection-hook.js +0 -83
- package/dist/hooks/learned-skills/detection-hook.js.map +0 -1
- package/dist/hooks/learned-skills/detector.d.ts +0 -30
- package/dist/hooks/learned-skills/detector.d.ts.map +0 -1
- package/dist/hooks/learned-skills/detector.js +0 -150
- package/dist/hooks/learned-skills/detector.js.map +0 -1
- package/dist/hooks/learned-skills/finder.d.ts +0 -21
- package/dist/hooks/learned-skills/finder.d.ts.map +0 -1
- package/dist/hooks/learned-skills/finder.js +0 -117
- package/dist/hooks/learned-skills/finder.js.map +0 -1
- package/dist/hooks/learned-skills/index.d.ts +0 -62
- package/dist/hooks/learned-skills/index.d.ts.map +0 -1
- package/dist/hooks/learned-skills/index.js +0 -137
- package/dist/hooks/learned-skills/index.js.map +0 -1
- package/dist/hooks/learned-skills/loader.d.ts +0 -20
- package/dist/hooks/learned-skills/loader.d.ts.map +0 -1
- package/dist/hooks/learned-skills/loader.js +0 -107
- package/dist/hooks/learned-skills/loader.js.map +0 -1
- package/dist/hooks/learned-skills/parser.d.ts +0 -21
- package/dist/hooks/learned-skills/parser.d.ts.map +0 -1
- package/dist/hooks/learned-skills/parser.js +0 -190
- package/dist/hooks/learned-skills/parser.js.map +0 -1
- package/dist/hooks/learned-skills/promotion.d.ts +0 -29
- package/dist/hooks/learned-skills/promotion.d.ts.map +0 -1
- package/dist/hooks/learned-skills/promotion.js +0 -87
- package/dist/hooks/learned-skills/promotion.js.map +0 -1
- package/dist/hooks/learned-skills/types.d.ts +0 -109
- package/dist/hooks/learned-skills/types.d.ts.map +0 -1
- package/dist/hooks/learned-skills/types.js +0 -8
- package/dist/hooks/learned-skills/types.js.map +0 -1
- package/dist/hooks/learned-skills/validator.d.ts +0 -15
- package/dist/hooks/learned-skills/validator.d.ts.map +0 -1
- package/dist/hooks/learned-skills/validator.js +0 -87
- package/dist/hooks/learned-skills/validator.js.map +0 -1
- package/dist/hooks/learned-skills/writer.d.ts +0 -27
- package/dist/hooks/learned-skills/writer.d.ts.map +0 -1
- package/dist/hooks/learned-skills/writer.js +0 -126
- package/dist/hooks/learned-skills/writer.js.map +0 -1
- package/dist/hooks/mnemosyne/config.d.ts +0 -53
- package/dist/hooks/mnemosyne/config.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/config.js +0 -103
- package/dist/hooks/mnemosyne/config.js.map +0 -1
- package/dist/hooks/mnemosyne/constants.d.ts +0 -24
- package/dist/hooks/mnemosyne/constants.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/constants.js +0 -26
- package/dist/hooks/mnemosyne/constants.js.map +0 -1
- package/dist/hooks/mnemosyne/detection-hook.d.ts +0 -39
- package/dist/hooks/mnemosyne/detection-hook.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/detection-hook.js +0 -83
- package/dist/hooks/mnemosyne/detection-hook.js.map +0 -1
- package/dist/hooks/mnemosyne/detector.d.ts +0 -30
- package/dist/hooks/mnemosyne/detector.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/detector.js +0 -150
- package/dist/hooks/mnemosyne/detector.js.map +0 -1
- package/dist/hooks/mnemosyne/finder.d.ts +0 -21
- package/dist/hooks/mnemosyne/finder.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/finder.js +0 -117
- package/dist/hooks/mnemosyne/finder.js.map +0 -1
- package/dist/hooks/mnemosyne/index.d.ts +0 -62
- package/dist/hooks/mnemosyne/index.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/index.js +0 -137
- package/dist/hooks/mnemosyne/index.js.map +0 -1
- package/dist/hooks/mnemosyne/loader.d.ts +0 -20
- package/dist/hooks/mnemosyne/loader.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/loader.js +0 -113
- package/dist/hooks/mnemosyne/loader.js.map +0 -1
- package/dist/hooks/mnemosyne/parser.d.ts +0 -21
- package/dist/hooks/mnemosyne/parser.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/parser.js +0 -190
- package/dist/hooks/mnemosyne/parser.js.map +0 -1
- package/dist/hooks/mnemosyne/promotion.d.ts +0 -29
- package/dist/hooks/mnemosyne/promotion.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/promotion.js +0 -87
- package/dist/hooks/mnemosyne/promotion.js.map +0 -1
- package/dist/hooks/mnemosyne/types.d.ts +0 -109
- package/dist/hooks/mnemosyne/types.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/types.js +0 -8
- package/dist/hooks/mnemosyne/types.js.map +0 -1
- package/dist/hooks/mnemosyne/validator.d.ts +0 -15
- package/dist/hooks/mnemosyne/validator.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/validator.js +0 -87
- package/dist/hooks/mnemosyne/validator.js.map +0 -1
- package/dist/hooks/mnemosyne/writer.d.ts +0 -27
- package/dist/hooks/mnemosyne/writer.d.ts.map +0 -1
- package/dist/hooks/mnemosyne/writer.js +0 -126
- package/dist/hooks/mnemosyne/writer.js.map +0 -1
- package/dist/hooks/ralph-loop/index.d.ts +0 -116
- package/dist/hooks/ralph-loop/index.d.ts.map +0 -1
- package/dist/hooks/ralph-loop/index.js +0 -322
- package/dist/hooks/ralph-loop/index.js.map +0 -1
- package/dist/hooks/ralph-prd/index.d.ts +0 -130
- package/dist/hooks/ralph-prd/index.d.ts.map +0 -1
- package/dist/hooks/ralph-prd/index.js +0 -310
- package/dist/hooks/ralph-prd/index.js.map +0 -1
- package/dist/hooks/ralph-progress/index.d.ts +0 -102
- package/dist/hooks/ralph-progress/index.d.ts.map +0 -1
- package/dist/hooks/ralph-progress/index.js +0 -408
- package/dist/hooks/ralph-progress/index.js.map +0 -1
- package/dist/hooks/ralph-verifier/index.d.ts +0 -72
- package/dist/hooks/ralph-verifier/index.d.ts.map +0 -1
- package/dist/hooks/ralph-verifier/index.js +0 -223
- package/dist/hooks/ralph-verifier/index.js.map +0 -1
- package/dist/hooks/session-recovery/constants.d.ts +0 -56
- package/dist/hooks/session-recovery/constants.d.ts.map +0 -1
- package/dist/hooks/session-recovery/constants.js +0 -78
- package/dist/hooks/session-recovery/constants.js.map +0 -1
- package/dist/hooks/session-recovery/index.d.ts +0 -53
- package/dist/hooks/session-recovery/index.d.ts.map +0 -1
- package/dist/hooks/session-recovery/index.js +0 -321
- package/dist/hooks/session-recovery/index.js.map +0 -1
- package/dist/hooks/session-recovery/storage.d.ts +0 -76
- package/dist/hooks/session-recovery/storage.d.ts.map +0 -1
- package/dist/hooks/session-recovery/storage.js +0 -383
- package/dist/hooks/session-recovery/storage.js.map +0 -1
- package/dist/hooks/session-recovery/types.d.ts +0 -145
- package/dist/hooks/session-recovery/types.d.ts.map +0 -1
- package/dist/hooks/session-recovery/types.js +0 -8
- package/dist/hooks/session-recovery/types.js.map +0 -1
- package/dist/hooks/sisyphus-orchestrator/constants.d.ts +0 -23
- package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +0 -1
- package/dist/hooks/sisyphus-orchestrator/constants.js +0 -142
- package/dist/hooks/sisyphus-orchestrator/constants.js.map +0 -1
- package/dist/hooks/sisyphus-orchestrator/index.d.ts +0 -113
- package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +0 -1
- package/dist/hooks/sisyphus-orchestrator/index.js +0 -309
- package/dist/hooks/sisyphus-orchestrator/index.js.map +0 -1
- package/dist/hooks/ultraqa-loop/index.d.ts +0 -94
- package/dist/hooks/ultraqa-loop/index.d.ts.map +0 -1
- package/dist/hooks/ultraqa-loop/index.js +0 -216
- package/dist/hooks/ultraqa-loop/index.js.map +0 -1
- package/dist/hooks/ultrawork-state/index.d.ts +0 -62
- package/dist/hooks/ultrawork-state/index.d.ts.map +0 -1
- package/dist/hooks/ultrawork-state/index.js +0 -208
- package/dist/hooks/ultrawork-state/index.js.map +0 -1
- package/dist/hud/sisyphus-state.d.ts +0 -31
- package/dist/hud/sisyphus-state.d.ts.map +0 -1
- package/dist/hud/sisyphus-state.js +0 -163
- package/dist/hud/sisyphus-state.js.map +0 -1
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character Tracking Module
|
|
3
|
+
* 캐릭터 추적 및 검증 시스템
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { loadMemory, saveMemory, generateId, now } from './memory-manager';
|
|
7
|
+
import type { Character, EmotionPoint, SpeechLevel, WriterMemory } from './memory-manager';
|
|
8
|
+
|
|
9
|
+
// === Helper to find character ===
|
|
10
|
+
function findCharacter(memory: WriterMemory, nameOrAlias: string): Character | null {
|
|
11
|
+
// Direct lookup
|
|
12
|
+
if (memory.characters[nameOrAlias]) {
|
|
13
|
+
return memory.characters[nameOrAlias];
|
|
14
|
+
}
|
|
15
|
+
// Alias lookup
|
|
16
|
+
for (const char of Object.values(memory.characters)) {
|
|
17
|
+
if (char.aliases?.includes(nameOrAlias)) {
|
|
18
|
+
return char;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// === Character CRUD ===
|
|
25
|
+
|
|
26
|
+
export function addCharacter(name: string, options?: {
|
|
27
|
+
arc?: string;
|
|
28
|
+
tone?: string;
|
|
29
|
+
speechLevel?: SpeechLevel;
|
|
30
|
+
attitude?: string;
|
|
31
|
+
keywords?: string[];
|
|
32
|
+
notes?: string;
|
|
33
|
+
}): Character | null {
|
|
34
|
+
const memory = loadMemory();
|
|
35
|
+
if (!memory) return null;
|
|
36
|
+
|
|
37
|
+
if (memory.characters[name]) {
|
|
38
|
+
return null; // Already exists
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const character: Character = {
|
|
42
|
+
id: generateId('char'),
|
|
43
|
+
name,
|
|
44
|
+
aliases: [],
|
|
45
|
+
arc: options?.arc || '',
|
|
46
|
+
tone: options?.tone || '',
|
|
47
|
+
speechLevel: options?.speechLevel || '반말',
|
|
48
|
+
attitude: options?.attitude || '',
|
|
49
|
+
keywords: options?.keywords || [],
|
|
50
|
+
timeline: [],
|
|
51
|
+
notes: options?.notes || '',
|
|
52
|
+
created: now(),
|
|
53
|
+
updated: now()
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
memory.characters[name] = character;
|
|
57
|
+
saveMemory(memory);
|
|
58
|
+
return character;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function updateCharacter(name: string, updates: Partial<Character>): Character | null {
|
|
62
|
+
const memory = loadMemory();
|
|
63
|
+
if (!memory) return null;
|
|
64
|
+
|
|
65
|
+
const character = findCharacter(memory, name);
|
|
66
|
+
if (!character) return null;
|
|
67
|
+
|
|
68
|
+
// Apply updates (excluding id, name, created)
|
|
69
|
+
const { id, name: _, created, ...allowedUpdates } = updates as any;
|
|
70
|
+
Object.assign(character, allowedUpdates, { updated: now() });
|
|
71
|
+
|
|
72
|
+
saveMemory(memory);
|
|
73
|
+
return character;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function removeCharacter(name: string): boolean {
|
|
77
|
+
const memory = loadMemory();
|
|
78
|
+
if (!memory) return false;
|
|
79
|
+
|
|
80
|
+
const character = findCharacter(memory, name);
|
|
81
|
+
if (!character) return false;
|
|
82
|
+
|
|
83
|
+
delete memory.characters[character.name];
|
|
84
|
+
saveMemory(memory);
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface CharacterSummary {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
arc: string;
|
|
92
|
+
tone: string;
|
|
93
|
+
emotionCount: number;
|
|
94
|
+
lastUpdated: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function listCharacters(): CharacterSummary[] {
|
|
98
|
+
const memory = loadMemory();
|
|
99
|
+
if (!memory) return [];
|
|
100
|
+
|
|
101
|
+
return Object.values(memory.characters).map(c => ({
|
|
102
|
+
id: c.id,
|
|
103
|
+
name: c.name,
|
|
104
|
+
arc: c.arc,
|
|
105
|
+
tone: c.tone,
|
|
106
|
+
emotionCount: c.timeline?.length || 0,
|
|
107
|
+
lastUpdated: c.updated
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// === Alias Management ===
|
|
112
|
+
|
|
113
|
+
export function addAlias(characterName: string, alias: string): boolean {
|
|
114
|
+
const memory = loadMemory();
|
|
115
|
+
if (!memory) return false;
|
|
116
|
+
|
|
117
|
+
const character = findCharacter(memory, characterName);
|
|
118
|
+
if (!character) return false;
|
|
119
|
+
|
|
120
|
+
if (!character.aliases.includes(alias)) {
|
|
121
|
+
character.aliases.push(alias);
|
|
122
|
+
character.updated = now();
|
|
123
|
+
saveMemory(memory);
|
|
124
|
+
}
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function removeAlias(characterName: string, alias: string): boolean {
|
|
129
|
+
const memory = loadMemory();
|
|
130
|
+
if (!memory) return false;
|
|
131
|
+
|
|
132
|
+
const character = findCharacter(memory, characterName);
|
|
133
|
+
if (!character) return false;
|
|
134
|
+
|
|
135
|
+
const idx = character.aliases.indexOf(alias);
|
|
136
|
+
if (idx !== -1) {
|
|
137
|
+
character.aliases.splice(idx, 1);
|
|
138
|
+
character.updated = now();
|
|
139
|
+
saveMemory(memory);
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function resolveCharacter(nameOrAlias: string): Character | null {
|
|
146
|
+
const memory = loadMemory();
|
|
147
|
+
if (!memory) return null;
|
|
148
|
+
return findCharacter(memory, nameOrAlias);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// === Emotion Timeline ===
|
|
152
|
+
|
|
153
|
+
export function addEmotionPoint(characterName: string, emotion: string, trigger: string, options?: {
|
|
154
|
+
sceneId?: string;
|
|
155
|
+
intensity?: 1 | 2 | 3 | 4 | 5;
|
|
156
|
+
}): boolean {
|
|
157
|
+
const memory = loadMemory();
|
|
158
|
+
if (!memory) return false;
|
|
159
|
+
|
|
160
|
+
const character = findCharacter(memory, characterName);
|
|
161
|
+
if (!character) return false;
|
|
162
|
+
|
|
163
|
+
const point: EmotionPoint = {
|
|
164
|
+
timestamp: now(),
|
|
165
|
+
sceneId: options?.sceneId,
|
|
166
|
+
emotion,
|
|
167
|
+
trigger,
|
|
168
|
+
intensity: options?.intensity || 3
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
character.timeline.push(point);
|
|
172
|
+
character.updated = now();
|
|
173
|
+
saveMemory(memory);
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function getEmotionTimeline(characterName: string): EmotionPoint[] {
|
|
178
|
+
const character = resolveCharacter(characterName);
|
|
179
|
+
return character?.timeline || [];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function getLatestEmotion(characterName: string): EmotionPoint | null {
|
|
183
|
+
const timeline = getEmotionTimeline(characterName);
|
|
184
|
+
return timeline.length > 0 ? timeline[timeline.length - 1] : null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function getEmotionArc(characterName: string): string {
|
|
188
|
+
const timeline = getEmotionTimeline(characterName);
|
|
189
|
+
if (timeline.length === 0) return '';
|
|
190
|
+
return timeline.map(e => e.emotion).join(' → ');
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// === Dialogue Validation ===
|
|
194
|
+
|
|
195
|
+
export interface ValidationResult {
|
|
196
|
+
status: 'PASS' | 'WARN' | 'FAIL';
|
|
197
|
+
character: string;
|
|
198
|
+
checks: {
|
|
199
|
+
toneMatch: { passed: boolean; detail: string };
|
|
200
|
+
speechLevelMatch: { passed: boolean; detail: string };
|
|
201
|
+
keywordConsistency: { passed: boolean; detail: string };
|
|
202
|
+
};
|
|
203
|
+
suggestion: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function detectSpeechLevel(text: string): SpeechLevel {
|
|
207
|
+
// 존댓말 patterns
|
|
208
|
+
const formal = /요$|습니다$|세요$|십시오$/;
|
|
209
|
+
// 반말 patterns
|
|
210
|
+
const informal = /야$|아$|어$|지$|는데$/;
|
|
211
|
+
// 해체 patterns
|
|
212
|
+
const casual = /임$|음$|ㅋ|ㅎ$/;
|
|
213
|
+
|
|
214
|
+
const sentences = text.split(/[.!?]/).filter(s => s.trim());
|
|
215
|
+
let formalCnt = 0, informalCnt = 0, casualCnt = 0;
|
|
216
|
+
|
|
217
|
+
for (const s of sentences) {
|
|
218
|
+
const t = s.trim();
|
|
219
|
+
if (formal.test(t)) formalCnt++;
|
|
220
|
+
if (informal.test(t)) informalCnt++;
|
|
221
|
+
if (casual.test(t)) casualCnt++;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (formalCnt > informalCnt && formalCnt > casualCnt) return '존댓말';
|
|
225
|
+
if (casualCnt > informalCnt) return '해체';
|
|
226
|
+
if (informalCnt > 0) return '반말';
|
|
227
|
+
return '혼합';
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function validateDialogue(characterName: string, dialogue: string): ValidationResult {
|
|
231
|
+
const character = resolveCharacter(characterName);
|
|
232
|
+
|
|
233
|
+
if (!character) {
|
|
234
|
+
return {
|
|
235
|
+
status: 'FAIL',
|
|
236
|
+
character: characterName,
|
|
237
|
+
checks: {
|
|
238
|
+
toneMatch: { passed: false, detail: '캐릭터를 찾을 수 없음' },
|
|
239
|
+
speechLevelMatch: { passed: false, detail: '캐릭터를 찾을 수 없음' },
|
|
240
|
+
keywordConsistency: { passed: false, detail: '캐릭터를 찾을 수 없음' }
|
|
241
|
+
},
|
|
242
|
+
suggestion: `"${characterName}" 캐릭터가 메모리에 없습니다.`
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Check tone
|
|
247
|
+
const exclamations = (dialogue.match(/!/g) || []).length;
|
|
248
|
+
const toneCheck = { passed: true, detail: '톤 일치' };
|
|
249
|
+
if (character.tone.includes('담백') && exclamations > 1) {
|
|
250
|
+
toneCheck.passed = false;
|
|
251
|
+
toneCheck.detail = `담백한 톤에 느낌표 ${exclamations}개는 과함`;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Check speech level
|
|
255
|
+
const detected = detectSpeechLevel(dialogue);
|
|
256
|
+
const speechCheck = {
|
|
257
|
+
passed: detected === character.speechLevel || detected === '혼합',
|
|
258
|
+
detail: detected === character.speechLevel ? '말투 일치' : `기대: ${character.speechLevel}, 감지: ${detected}`
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
// Check keywords
|
|
262
|
+
const keywordCheck = { passed: true, detail: '키워드 없음 (검사 생략)' };
|
|
263
|
+
if (character.keywords.length > 0) {
|
|
264
|
+
const hasKeyword = character.keywords.some(kw => dialogue.includes(kw));
|
|
265
|
+
keywordCheck.passed = hasKeyword;
|
|
266
|
+
keywordCheck.detail = hasKeyword ? '특징 키워드 포함' : `키워드 미포함: ${character.keywords.slice(0, 2).join(', ')}`;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const failCount = [toneCheck, speechCheck, keywordCheck].filter(c => !c.passed).length;
|
|
270
|
+
const status: 'PASS' | 'WARN' | 'FAIL' = failCount === 0 ? 'PASS' : failCount >= 2 ? 'FAIL' : 'WARN';
|
|
271
|
+
|
|
272
|
+
const suggestions: string[] = [];
|
|
273
|
+
if (!toneCheck.passed) suggestions.push(`톤 조정 필요`);
|
|
274
|
+
if (!speechCheck.passed) suggestions.push(`${character.speechLevel}로 말투 수정`);
|
|
275
|
+
if (!keywordCheck.passed) suggestions.push(`특징 키워드 사용 고려`);
|
|
276
|
+
|
|
277
|
+
return {
|
|
278
|
+
status,
|
|
279
|
+
character: character.name,
|
|
280
|
+
checks: {
|
|
281
|
+
toneMatch: toneCheck,
|
|
282
|
+
speechLevelMatch: speechCheck,
|
|
283
|
+
keywordConsistency: keywordCheck
|
|
284
|
+
},
|
|
285
|
+
suggestion: suggestions.length > 0 ? suggestions.join('. ') : '대사가 캐릭터와 잘 어울립니다.'
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// === Profile Generation ===
|
|
290
|
+
|
|
291
|
+
export function generateCharacterProfile(characterName: string): string {
|
|
292
|
+
const character = resolveCharacter(characterName);
|
|
293
|
+
|
|
294
|
+
if (!character) {
|
|
295
|
+
return `# "${characterName}" 캐릭터를 찾을 수 없습니다`;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const latest = getLatestEmotion(characterName);
|
|
299
|
+
const arc = getEmotionArc(characterName);
|
|
300
|
+
|
|
301
|
+
let profile = `# ${character.name}\n\n`;
|
|
302
|
+
|
|
303
|
+
if (character.aliases.length > 0) {
|
|
304
|
+
profile += `**별칭**: ${character.aliases.join(', ')}\n\n`;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (character.arc) {
|
|
308
|
+
profile += `**캐릭터 아크**: ${character.arc}\n\n`;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (character.tone) {
|
|
312
|
+
profile += `**대사 톤**: ${character.tone}\n\n`;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
profile += `**말투**: ${character.speechLevel}\n\n`;
|
|
316
|
+
|
|
317
|
+
if (character.keywords.length > 0) {
|
|
318
|
+
profile += `**핵심 키워드**: ${character.keywords.join(', ')}\n\n`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (latest) {
|
|
322
|
+
profile += `**현재 감정**: ${latest.emotion} (강도: ${latest.intensity}/5)\n\n`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (character.attitude) {
|
|
326
|
+
profile += `**태도**: ${character.attitude}\n\n`;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (arc) {
|
|
330
|
+
profile += `**감정 궤도**: ${arc}\n\n`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (character.notes) {
|
|
334
|
+
profile += `**메모**: ${character.notes}\n\n`;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return profile.trim();
|
|
338
|
+
}
|