oh-my-claude-sisyphus 3.6.2 → 3.7.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.
Files changed (124) hide show
  1. package/README.md +16 -0
  2. package/commands/doctor.md +1 -1
  3. package/dist/__tests__/delegation-enforcement-levels.test.d.ts +9 -0
  4. package/dist/__tests__/delegation-enforcement-levels.test.d.ts.map +1 -0
  5. package/dist/__tests__/delegation-enforcement-levels.test.js +550 -0
  6. package/dist/__tests__/delegation-enforcement-levels.test.js.map +1 -0
  7. package/dist/__tests__/installer.test.js +1 -1
  8. package/dist/__tests__/rate-limit-wait/daemon.test.d.ts +5 -0
  9. package/dist/__tests__/rate-limit-wait/daemon.test.d.ts.map +1 -0
  10. package/dist/__tests__/rate-limit-wait/daemon.test.js +313 -0
  11. package/dist/__tests__/rate-limit-wait/daemon.test.js.map +1 -0
  12. package/dist/__tests__/rate-limit-wait/integration.test.d.ts +8 -0
  13. package/dist/__tests__/rate-limit-wait/integration.test.d.ts.map +1 -0
  14. package/dist/__tests__/rate-limit-wait/integration.test.js +329 -0
  15. package/dist/__tests__/rate-limit-wait/integration.test.js.map +1 -0
  16. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.d.ts +5 -0
  17. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.d.ts.map +1 -0
  18. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js +167 -0
  19. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js.map +1 -0
  20. package/dist/__tests__/rate-limit-wait/tmux-detector.test.d.ts +5 -0
  21. package/dist/__tests__/rate-limit-wait/tmux-detector.test.d.ts.map +1 -0
  22. package/dist/__tests__/rate-limit-wait/tmux-detector.test.js +295 -0
  23. package/dist/__tests__/rate-limit-wait/tmux-detector.test.js.map +1 -0
  24. package/dist/__tests__/skills.test.js +6 -5
  25. package/dist/__tests__/skills.test.js.map +1 -1
  26. package/dist/cli/commands/wait.d.ts +52 -0
  27. package/dist/cli/commands/wait.d.ts.map +1 -0
  28. package/dist/cli/commands/wait.js +229 -0
  29. package/dist/cli/commands/wait.js.map +1 -0
  30. package/dist/cli/index.js +54 -0
  31. package/dist/cli/index.js.map +1 -1
  32. package/dist/features/rate-limit-wait/daemon.d.ts +52 -0
  33. package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -0
  34. package/dist/features/rate-limit-wait/daemon.js +545 -0
  35. package/dist/features/rate-limit-wait/daemon.js.map +1 -0
  36. package/dist/features/rate-limit-wait/index.d.ts +16 -0
  37. package/dist/features/rate-limit-wait/index.d.ts.map +1 -0
  38. package/dist/features/rate-limit-wait/index.js +18 -0
  39. package/dist/features/rate-limit-wait/index.js.map +1 -0
  40. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts +22 -0
  41. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts.map +1 -0
  42. package/dist/features/rate-limit-wait/rate-limit-monitor.js +99 -0
  43. package/dist/features/rate-limit-wait/rate-limit-monitor.js.map +1 -0
  44. package/dist/features/rate-limit-wait/tmux-detector.d.ts +59 -0
  45. package/dist/features/rate-limit-wait/tmux-detector.d.ts.map +1 -0
  46. package/dist/features/rate-limit-wait/tmux-detector.js +304 -0
  47. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -0
  48. package/dist/features/rate-limit-wait/types.d.ts +121 -0
  49. package/dist/features/rate-limit-wait/types.d.ts.map +1 -0
  50. package/dist/features/rate-limit-wait/types.js +8 -0
  51. package/dist/features/rate-limit-wait/types.js.map +1 -0
  52. package/dist/hooks/bridge.d.ts +1 -1
  53. package/dist/hooks/bridge.d.ts.map +1 -1
  54. package/dist/hooks/bridge.js +50 -4
  55. package/dist/hooks/bridge.js.map +1 -1
  56. package/dist/hooks/index.d.ts +5 -0
  57. package/dist/hooks/index.d.ts.map +1 -1
  58. package/dist/hooks/index.js +15 -0
  59. package/dist/hooks/index.js.map +1 -1
  60. package/dist/hooks/omc-orchestrator/audit.d.ts +2 -1
  61. package/dist/hooks/omc-orchestrator/audit.d.ts.map +1 -1
  62. package/dist/hooks/omc-orchestrator/audit.js.map +1 -1
  63. package/dist/hooks/omc-orchestrator/index.d.ts +7 -0
  64. package/dist/hooks/omc-orchestrator/index.d.ts.map +1 -1
  65. package/dist/hooks/omc-orchestrator/index.js +95 -8
  66. package/dist/hooks/omc-orchestrator/index.js.map +1 -1
  67. package/dist/hooks/permission-handler/__tests__/index.test.d.ts +2 -0
  68. package/dist/hooks/permission-handler/__tests__/index.test.d.ts.map +1 -0
  69. package/dist/hooks/permission-handler/__tests__/index.test.js +244 -0
  70. package/dist/hooks/permission-handler/__tests__/index.test.js.map +1 -0
  71. package/dist/hooks/permission-handler/index.d.ts +42 -0
  72. package/dist/hooks/permission-handler/index.d.ts.map +1 -0
  73. package/dist/hooks/permission-handler/index.js +111 -0
  74. package/dist/hooks/permission-handler/index.js.map +1 -0
  75. package/dist/hooks/pre-compact/index.d.ts +82 -0
  76. package/dist/hooks/pre-compact/index.d.ts.map +1 -0
  77. package/dist/hooks/pre-compact/index.js +265 -0
  78. package/dist/hooks/pre-compact/index.js.map +1 -0
  79. package/dist/hooks/session-end/index.d.ts +50 -0
  80. package/dist/hooks/session-end/index.d.ts.map +1 -0
  81. package/dist/hooks/session-end/index.js +207 -0
  82. package/dist/hooks/session-end/index.js.map +1 -0
  83. package/dist/hooks/setup/index.d.ts +66 -0
  84. package/dist/hooks/setup/index.d.ts.map +1 -0
  85. package/dist/hooks/setup/index.js +299 -0
  86. package/dist/hooks/setup/index.js.map +1 -0
  87. package/dist/hooks/setup/types.d.ts +25 -0
  88. package/dist/hooks/setup/types.d.ts.map +1 -0
  89. package/dist/hooks/setup/types.js +5 -0
  90. package/dist/hooks/setup/types.js.map +1 -0
  91. package/dist/hooks/subagent-tracker/index.d.ts +68 -29
  92. package/dist/hooks/subagent-tracker/index.d.ts.map +1 -1
  93. package/dist/hooks/subagent-tracker/index.js +301 -131
  94. package/dist/hooks/subagent-tracker/index.js.map +1 -1
  95. package/dist/installer/index.d.ts +1 -1
  96. package/dist/installer/index.js +1 -1
  97. package/docs/MIGRATION.md +2 -2
  98. package/hooks/hooks.json +83 -1
  99. package/package.json +3 -1
  100. package/scripts/permission-handler.mjs +23 -0
  101. package/scripts/pre-compact.mjs +23 -0
  102. package/scripts/session-end.mjs +23 -0
  103. package/scripts/setup-init.mjs +23 -0
  104. package/scripts/setup-maintenance.mjs +23 -0
  105. package/scripts/subagent-tracker.mjs +35 -0
  106. package/skills/doctor/SKILL.md +1 -1
  107. package/templates/hooks/keyword-detector.mjs +198 -0
  108. package/templates/hooks/keyword-detector.sh +102 -0
  109. package/templates/hooks/persistent-mode.mjs +249 -0
  110. package/templates/hooks/persistent-mode.sh +187 -0
  111. package/templates/hooks/post-tool-use.mjs +133 -0
  112. package/templates/hooks/post-tool-use.sh +90 -0
  113. package/templates/hooks/pre-tool-use.mjs +145 -0
  114. package/templates/hooks/pre-tool-use.sh +113 -0
  115. package/templates/hooks/session-start.mjs +100 -0
  116. package/templates/hooks/session-start.sh +62 -0
  117. package/templates/hooks/stop-continuation.mjs +80 -0
  118. package/templates/hooks/stop-continuation.sh +40 -0
  119. package/templates/rules/README.md +40 -0
  120. package/templates/rules/coding-style.md +74 -0
  121. package/templates/rules/git-workflow.md +41 -0
  122. package/templates/rules/performance.md +40 -0
  123. package/templates/rules/security.md +41 -0
  124. package/templates/rules/testing.md +42 -0
@@ -0,0 +1,40 @@
1
+ # Performance Rules
2
+
3
+ ## Model Selection Strategy
4
+
5
+ **Haiku** (90% of Sonnet capability, 3x cost savings):
6
+ - Lightweight agents with frequent invocation
7
+ - Code generation and exploration
8
+ - Worker agents in multi-agent systems
9
+
10
+ **Sonnet** (Best coding model):
11
+ - Main development work
12
+ - Orchestrating multi-agent workflows
13
+ - Complex coding tasks
14
+
15
+ **Opus** (Deepest reasoning):
16
+ - Complex architectural decisions
17
+ - Maximum reasoning requirements
18
+ - Research and analysis tasks
19
+
20
+ ## Context Window Management
21
+
22
+ Avoid last 20% of context window for:
23
+ - Large-scale refactoring
24
+ - Feature implementation spanning multiple files
25
+ - Debugging complex interactions
26
+
27
+ ## Algorithm Efficiency
28
+
29
+ Before implementing:
30
+ - [ ] Consider time complexity
31
+ - [ ] Avoid O(n^2) when O(n log n) possible
32
+ - [ ] Use appropriate data structures
33
+ - [ ] Cache expensive computations
34
+
35
+ ## [CUSTOMIZE] Project-Specific Performance
36
+
37
+ Add your project-specific performance requirements here:
38
+ - Response time targets
39
+ - Bundle size limits
40
+ - Database query limits
@@ -0,0 +1,41 @@
1
+ # Security Rules
2
+
3
+ ## Mandatory Security Checks
4
+
5
+ Before ANY commit:
6
+ - [ ] No hardcoded secrets (API keys, passwords, tokens)
7
+ - [ ] All user inputs validated
8
+ - [ ] SQL injection prevention (parameterized queries)
9
+ - [ ] XSS prevention (sanitized HTML)
10
+ - [ ] CSRF protection enabled
11
+ - [ ] Authentication/authorization verified
12
+ - [ ] Rate limiting on all endpoints
13
+ - [ ] Error messages don't leak sensitive data
14
+
15
+ ## Secret Management
16
+
17
+ ```typescript
18
+ // NEVER: Hardcoded secrets
19
+ const apiKey = "sk-proj-xxxxx"
20
+
21
+ // ALWAYS: Environment variables
22
+ const apiKey = process.env.API_KEY
23
+ if (!apiKey) throw new Error('API_KEY not configured')
24
+ ```
25
+
26
+ ## Security Response Protocol
27
+
28
+ If security issue found:
29
+ 1. STOP immediately
30
+ 2. Use `security-reviewer` agent
31
+ 3. Fix CRITICAL issues before continuing
32
+ 4. Rotate any exposed secrets
33
+ 5. Review entire codebase for similar issues
34
+
35
+ ## [CUSTOMIZE] Project-Specific Security
36
+
37
+ Add your project-specific security requirements here:
38
+ - Authentication method
39
+ - Authorization rules
40
+ - Data encryption requirements
41
+ - Compliance requirements (GDPR, HIPAA, etc.)
@@ -0,0 +1,42 @@
1
+ # Testing Rules
2
+
3
+ ## Minimum Test Coverage: 80%
4
+
5
+ Test Types (ALL required):
6
+ 1. **Unit Tests** - Individual functions, utilities, components
7
+ 2. **Integration Tests** - API endpoints, database operations
8
+ 3. **E2E Tests** - Critical user flows
9
+
10
+ ## Test-Driven Development
11
+
12
+ MANDATORY workflow:
13
+ 1. Write test first (RED)
14
+ 2. Run test - it should FAIL
15
+ 3. Write minimal implementation (GREEN)
16
+ 4. Run test - it should PASS
17
+ 5. Refactor (IMPROVE)
18
+ 6. Verify coverage (80%+)
19
+
20
+ ## Edge Cases to Test
21
+
22
+ Every function must be tested with:
23
+ - [ ] Null/undefined inputs
24
+ - [ ] Empty arrays/strings
25
+ - [ ] Invalid types
26
+ - [ ] Boundary values (min/max)
27
+ - [ ] Error conditions
28
+
29
+ ## Test Quality Checklist
30
+
31
+ - [ ] Tests are independent (no shared state)
32
+ - [ ] Test names describe behavior
33
+ - [ ] Mocks used for external dependencies
34
+ - [ ] Both happy path and error paths tested
35
+ - [ ] No flaky tests
36
+
37
+ ## [CUSTOMIZE] Project-Specific Testing
38
+
39
+ Add your project-specific testing requirements here:
40
+ - Test framework configuration
41
+ - Mock setup patterns
42
+ - E2E test scenarios