@hanzlaa/rcode 2.1.0 → 2.3.1

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 (76) hide show
  1. package/CONTRIBUTING.md +138 -0
  2. package/README.md +83 -19
  3. package/cli/install.js +687 -80
  4. package/cli/uninstall.js +8 -0
  5. package/dist/rcode.js +19777 -0
  6. package/package.json +17 -4
  7. package/rihal/DOCS-AUDIT.md +14 -0
  8. package/rihal/agents/rihal-code-reviewer.md +1 -1
  9. package/rihal/agents/rihal-codebase-mapper.md +1 -1
  10. package/rihal/agents/rihal-docs-auditor.md +1 -1
  11. package/rihal/agents/rihal-edge-case-hunter.md +1 -1
  12. package/rihal/agents/rihal-executor.md +1 -1
  13. package/rihal/agents/rihal-hussain-pm.md +1 -0
  14. package/rihal/agents/rihal-nyquist-auditor.md +1 -1
  15. package/rihal/agents/rihal-phase-researcher.md +1 -2
  16. package/rihal/agents/rihal-planner.md +1 -1
  17. package/rihal/agents/rihal-roadmapper.md +1 -0
  18. package/rihal/agents/rihal-security-adversary.md +1 -1
  19. package/rihal/agents/rihal-security-auditor.md +1 -1
  20. package/rihal/agents/rihal-sprint-checker.md +1 -1
  21. package/rihal/agents/rihal-verifier.md +1 -1
  22. package/rihal/bin/lib/roadmap.cjs +2 -3
  23. package/rihal/bin/rihal-tools.cjs +153 -36
  24. package/rihal/brain/sources.yaml +7 -4
  25. package/rihal/commands/audit.md +8 -0
  26. package/rihal/commands/checkpoint-preview.md +13 -0
  27. package/rihal/commands/config.md +4 -4
  28. package/rihal/commands/prfaq.md +15 -0
  29. package/rihal/commands/settings.md +2 -2
  30. package/rihal/references/agent-contracts.md +12 -0
  31. package/rihal/references/karpathy-guidelines-full.md +79 -0
  32. package/rihal/references/karpathy-guidelines.md +8 -76
  33. package/rihal/references/model-profile-resolution.md +8 -0
  34. package/rihal/references/phase-argument-parsing.md +11 -0
  35. package/rihal/references/revision-loop.md +11 -0
  36. package/rihal/references/universal-anti-patterns.md +15 -0
  37. package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +10 -0
  38. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +3 -1
  39. package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +3 -1
  40. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +1 -1
  41. package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +13 -0
  42. package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +4 -2
  43. package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +10 -0
  44. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +3 -1
  45. package/rihal/skills/agents/hussain-pm/SKILL.md +8 -0
  46. package/rihal/skills/agents/hussain-sm/SKILL.md +8 -0
  47. package/rihal/templates/UAT.md +29 -0
  48. package/rihal/templates/milestone.md +2 -0
  49. package/rihal/templates/sprint.md +11 -28
  50. package/rihal/templates/summary.md +30 -0
  51. package/rihal/templates/verification-report.md +28 -0
  52. package/rihal/workflows/audit-milestone.md +34 -2
  53. package/rihal/workflows/audit.md +172 -0
  54. package/rihal/workflows/autonomous.md +67 -0
  55. package/rihal/workflows/checkpoint-preview.md +7 -0
  56. package/rihal/workflows/council.md +3 -1
  57. package/rihal/workflows/dashboard.md +2 -2
  58. package/rihal/workflows/debug.md +8 -1
  59. package/rihal/workflows/diagnose-issues.md +34 -0
  60. package/rihal/workflows/do.md +47 -3
  61. package/rihal/workflows/execute-sprint.md +11 -4
  62. package/rihal/workflows/execute.md +9 -3
  63. package/rihal/workflows/install.md +2 -2
  64. package/rihal/workflows/karpathy-audit.md +7 -14
  65. package/rihal/workflows/pause-work.md +7 -1
  66. package/rihal/workflows/prfaq.md +7 -0
  67. package/rihal/workflows/profile-user.md +2 -2
  68. package/rihal/workflows/progress.md +1 -1
  69. package/rihal/workflows/settings.md +116 -118
  70. package/rihal/workflows/sprint-planning.md +39 -8
  71. package/rihal/workflows/status.md +6 -1
  72. package/rihal/workflows/ui-phase.md +3 -3
  73. package/rihal/workflows/update.md +80 -22
  74. package/rihal/workflows/validate-phase.md +7 -1
  75. package/rihal/agents/rihal-ui-designer.md +0 -6
  76. package/rihal/workflows/config.md +0 -105
@@ -1,105 +0,0 @@
1
- # Workflow: rihal:config
2
-
3
- <purpose>
4
- View or interactively edit Rihal project configuration (language, mode, model profile, branching strategy).
5
- </purpose>
6
-
7
- ## Step 0 — Usage check
8
-
9
- If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
10
-
11
- ```
12
- /rihal:config [show | set <key> <value>]
13
- ```
14
-
15
- **Examples:**
16
- ```
17
- /rihal:config show
18
- /rihal:config set communication_language Arabic
19
- /rihal:config set mode yolo
20
- ```
21
-
22
- If no arguments provided, enter interactive mode (Step 2).
23
-
24
- ## Step 1 — Parse input
25
-
26
- - If first argument is `show` (or no args): proceed to Step 1.5 (display current config)
27
- - If first argument is `set`: proceed to Step 2 (update value)
28
- - Otherwise: treat as interactive mode
29
-
30
- ## Step 1.5 — Display current config
31
-
32
- Read `.rihal/config.yaml` and print in formatted table:
33
-
34
- ```
35
- Current Rihal Configuration:
36
- user_name : {value}
37
- project_name : {value}
38
- communication_language : {value}
39
- mode : {value}
40
- model_profile : {value}
41
- branching_strategy : {value}
42
- ```
43
-
44
- STOP — do not proceed further.
45
-
46
- ## Step 2 — Interactive or set mode
47
-
48
- ### If `set <key> <value>`:
49
-
50
- Validate key is one of: `communication_language`, `mode`, `model_profile`, `branching_strategy`.
51
-
52
- If invalid, print error and STOP:
53
- ```
54
- Unknown config key: {key}
55
- Allowed keys: communication_language, mode, model_profile, branching_strategy
56
- ```
57
-
58
- Call:
59
- ```bash
60
- node .rihal/bin/rihal-tools.cjs config set --key {key} --value {value}
61
- ```
62
-
63
- Print success:
64
- ```
65
- ✓ Updated: {key} = {value}
66
- ```
67
-
68
- STOP.
69
-
70
- ### If no arguments (interactive mode):
71
-
72
- Use AskUserQuestion for each setting:
73
-
74
- 1. Ask: "Communication language?" (show current value)
75
- - Options: English, Arabic, Spanish, French, Chinese, etc.
76
- 2. Ask: "Mode?" (guided or yolo?)
77
- - guided = confirm at gates
78
- - yolo = autonomous execution
79
- 3. Ask: "Model profile?" (balanced, fast, or thorough?)
80
- 4. Ask: "Branching strategy?" (none, auto-branch, feature-branch, trunk-based?)
81
-
82
- After each selection, call the config set command from Step 2.
83
-
84
- Print summary:
85
- ```
86
- ✓ Configuration updated:
87
- communication_language : {value}
88
- mode : {value}
89
- model_profile : {value}
90
- branching_strategy : {value}
91
- ```
92
-
93
- STOP.
94
-
95
- ## Success Criteria
96
-
97
- - [ ] Current config displayed or updated successfully
98
- - [ ] No validation errors
99
- - [ ] .rihal/config.yaml reflects changes
100
-
101
- ## On Error
102
-
103
- - **Invalid key:** print allowed keys and stop.
104
- - **.rihal/config.yaml missing:** print "No config found. Run /rihal:init first."
105
- - **rihal-tools.cjs missing:** tell user to run `rihal-code install-v2`.