rai-cli 2.0.0__tar.gz

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 (148) hide show
  1. rai_cli-2.0.0/.gitignore +89 -0
  2. rai_cli-2.0.0/LICENSE +190 -0
  3. rai_cli-2.0.0/NOTICE +4 -0
  4. rai_cli-2.0.0/PKG-INFO +381 -0
  5. rai_cli-2.0.0/README.md +341 -0
  6. rai_cli-2.0.0/pyproject.toml +143 -0
  7. rai_cli-2.0.0/src/rai_cli/__init__.py +38 -0
  8. rai_cli-2.0.0/src/rai_cli/__main__.py +30 -0
  9. rai_cli-2.0.0/src/rai_cli/cli/__init__.py +3 -0
  10. rai_cli-2.0.0/src/rai_cli/cli/commands/__init__.py +3 -0
  11. rai_cli-2.0.0/src/rai_cli/cli/commands/backlog.py +510 -0
  12. rai_cli-2.0.0/src/rai_cli/cli/commands/base.py +101 -0
  13. rai_cli-2.0.0/src/rai_cli/cli/commands/discover.py +545 -0
  14. rai_cli-2.0.0/src/rai_cli/cli/commands/init.py +457 -0
  15. rai_cli-2.0.0/src/rai_cli/cli/commands/memory.py +1649 -0
  16. rai_cli-2.0.0/src/rai_cli/cli/commands/profile.py +51 -0
  17. rai_cli-2.0.0/src/rai_cli/cli/commands/publish.py +264 -0
  18. rai_cli-2.0.0/src/rai_cli/cli/commands/release.py +89 -0
  19. rai_cli-2.0.0/src/rai_cli/cli/commands/session.py +375 -0
  20. rai_cli-2.0.0/src/rai_cli/cli/commands/skill.py +226 -0
  21. rai_cli-2.0.0/src/rai_cli/cli/error_handler.py +158 -0
  22. rai_cli-2.0.0/src/rai_cli/cli/main.py +143 -0
  23. rai_cli-2.0.0/src/rai_cli/config/__init__.py +11 -0
  24. rai_cli-2.0.0/src/rai_cli/config/paths.py +344 -0
  25. rai_cli-2.0.0/src/rai_cli/config/settings.py +180 -0
  26. rai_cli-2.0.0/src/rai_cli/context/__init__.py +42 -0
  27. rai_cli-2.0.0/src/rai_cli/context/analyzers/__init__.py +16 -0
  28. rai_cli-2.0.0/src/rai_cli/context/analyzers/models.py +36 -0
  29. rai_cli-2.0.0/src/rai_cli/context/analyzers/protocol.py +43 -0
  30. rai_cli-2.0.0/src/rai_cli/context/analyzers/python.py +291 -0
  31. rai_cli-2.0.0/src/rai_cli/context/builder.py +1598 -0
  32. rai_cli-2.0.0/src/rai_cli/context/diff.py +213 -0
  33. rai_cli-2.0.0/src/rai_cli/context/extractors/__init__.py +13 -0
  34. rai_cli-2.0.0/src/rai_cli/context/extractors/skills.py +121 -0
  35. rai_cli-2.0.0/src/rai_cli/context/graph.py +300 -0
  36. rai_cli-2.0.0/src/rai_cli/context/models.py +135 -0
  37. rai_cli-2.0.0/src/rai_cli/context/query.py +527 -0
  38. rai_cli-2.0.0/src/rai_cli/core/__init__.py +37 -0
  39. rai_cli-2.0.0/src/rai_cli/core/files.py +66 -0
  40. rai_cli-2.0.0/src/rai_cli/core/text.py +174 -0
  41. rai_cli-2.0.0/src/rai_cli/core/tools.py +441 -0
  42. rai_cli-2.0.0/src/rai_cli/discovery/__init__.py +50 -0
  43. rai_cli-2.0.0/src/rai_cli/discovery/analyzer.py +600 -0
  44. rai_cli-2.0.0/src/rai_cli/discovery/drift.py +355 -0
  45. rai_cli-2.0.0/src/rai_cli/discovery/scanner.py +1204 -0
  46. rai_cli-2.0.0/src/rai_cli/engines/__init__.py +3 -0
  47. rai_cli-2.0.0/src/rai_cli/exceptions.py +215 -0
  48. rai_cli-2.0.0/src/rai_cli/governance/__init__.py +11 -0
  49. rai_cli-2.0.0/src/rai_cli/governance/extractor.py +324 -0
  50. rai_cli-2.0.0/src/rai_cli/governance/models.py +134 -0
  51. rai_cli-2.0.0/src/rai_cli/governance/parsers/__init__.py +35 -0
  52. rai_cli-2.0.0/src/rai_cli/governance/parsers/adr.py +255 -0
  53. rai_cli-2.0.0/src/rai_cli/governance/parsers/backlog.py +304 -0
  54. rai_cli-2.0.0/src/rai_cli/governance/parsers/constitution.py +100 -0
  55. rai_cli-2.0.0/src/rai_cli/governance/parsers/epic.py +299 -0
  56. rai_cli-2.0.0/src/rai_cli/governance/parsers/glossary.py +297 -0
  57. rai_cli-2.0.0/src/rai_cli/governance/parsers/guardrails.py +326 -0
  58. rai_cli-2.0.0/src/rai_cli/governance/parsers/prd.py +93 -0
  59. rai_cli-2.0.0/src/rai_cli/governance/parsers/roadmap.py +99 -0
  60. rai_cli-2.0.0/src/rai_cli/governance/parsers/vision.py +97 -0
  61. rai_cli-2.0.0/src/rai_cli/handlers/__init__.py +3 -0
  62. rai_cli-2.0.0/src/rai_cli/memory/__init__.py +58 -0
  63. rai_cli-2.0.0/src/rai_cli/memory/loader.py +247 -0
  64. rai_cli-2.0.0/src/rai_cli/memory/migration.py +241 -0
  65. rai_cli-2.0.0/src/rai_cli/memory/models.py +169 -0
  66. rai_cli-2.0.0/src/rai_cli/memory/writer.py +485 -0
  67. rai_cli-2.0.0/src/rai_cli/onboarding/__init__.py +98 -0
  68. rai_cli-2.0.0/src/rai_cli/onboarding/bootstrap.py +162 -0
  69. rai_cli-2.0.0/src/rai_cli/onboarding/claudemd.py +207 -0
  70. rai_cli-2.0.0/src/rai_cli/onboarding/conventions.py +742 -0
  71. rai_cli-2.0.0/src/rai_cli/onboarding/detection.py +155 -0
  72. rai_cli-2.0.0/src/rai_cli/onboarding/governance.py +443 -0
  73. rai_cli-2.0.0/src/rai_cli/onboarding/manifest.py +115 -0
  74. rai_cli-2.0.0/src/rai_cli/onboarding/memory_md.py +387 -0
  75. rai_cli-2.0.0/src/rai_cli/onboarding/migration.py +207 -0
  76. rai_cli-2.0.0/src/rai_cli/onboarding/profile.py +567 -0
  77. rai_cli-2.0.0/src/rai_cli/onboarding/skills.py +114 -0
  78. rai_cli-2.0.0/src/rai_cli/output/__init__.py +28 -0
  79. rai_cli-2.0.0/src/rai_cli/output/console.py +394 -0
  80. rai_cli-2.0.0/src/rai_cli/output/formatters/__init__.py +9 -0
  81. rai_cli-2.0.0/src/rai_cli/output/formatters/discover.py +439 -0
  82. rai_cli-2.0.0/src/rai_cli/output/formatters/skill.py +293 -0
  83. rai_cli-2.0.0/src/rai_cli/publish/__init__.py +3 -0
  84. rai_cli-2.0.0/src/rai_cli/publish/changelog.py +80 -0
  85. rai_cli-2.0.0/src/rai_cli/publish/check.py +179 -0
  86. rai_cli-2.0.0/src/rai_cli/publish/version.py +168 -0
  87. rai_cli-2.0.0/src/rai_cli/rai_base/__init__.py +22 -0
  88. rai_cli-2.0.0/src/rai_cli/rai_base/framework/__init__.py +7 -0
  89. rai_cli-2.0.0/src/rai_cli/rai_base/framework/methodology.yaml +235 -0
  90. rai_cli-2.0.0/src/rai_cli/rai_base/governance/__init__.py +1 -0
  91. rai_cli-2.0.0/src/rai_cli/rai_base/governance/architecture/__init__.py +1 -0
  92. rai_cli-2.0.0/src/rai_cli/rai_base/governance/architecture/domain-model.md +20 -0
  93. rai_cli-2.0.0/src/rai_cli/rai_base/governance/architecture/system-context.md +34 -0
  94. rai_cli-2.0.0/src/rai_cli/rai_base/governance/architecture/system-design.md +24 -0
  95. rai_cli-2.0.0/src/rai_cli/rai_base/governance/backlog.md +8 -0
  96. rai_cli-2.0.0/src/rai_cli/rai_base/governance/guardrails.md +18 -0
  97. rai_cli-2.0.0/src/rai_cli/rai_base/governance/prd.md +25 -0
  98. rai_cli-2.0.0/src/rai_cli/rai_base/governance/vision.md +16 -0
  99. rai_cli-2.0.0/src/rai_cli/rai_base/identity/__init__.py +8 -0
  100. rai_cli-2.0.0/src/rai_cli/rai_base/identity/core.md +119 -0
  101. rai_cli-2.0.0/src/rai_cli/rai_base/identity/perspective.md +119 -0
  102. rai_cli-2.0.0/src/rai_cli/rai_base/memory/__init__.py +7 -0
  103. rai_cli-2.0.0/src/rai_cli/rai_base/memory/patterns-base.jsonl +20 -0
  104. rai_cli-2.0.0/src/rai_cli/schemas/__init__.py +3 -0
  105. rai_cli-2.0.0/src/rai_cli/schemas/session_state.py +112 -0
  106. rai_cli-2.0.0/src/rai_cli/session/__init__.py +5 -0
  107. rai_cli-2.0.0/src/rai_cli/session/bundle.py +486 -0
  108. rai_cli-2.0.0/src/rai_cli/session/close.py +263 -0
  109. rai_cli-2.0.0/src/rai_cli/session/resolver.py +113 -0
  110. rai_cli-2.0.0/src/rai_cli/session/state.py +187 -0
  111. rai_cli-2.0.0/src/rai_cli/skills/__init__.py +44 -0
  112. rai_cli-2.0.0/src/rai_cli/skills/locator.py +129 -0
  113. rai_cli-2.0.0/src/rai_cli/skills/name_checker.py +199 -0
  114. rai_cli-2.0.0/src/rai_cli/skills/parser.py +145 -0
  115. rai_cli-2.0.0/src/rai_cli/skills/scaffold.py +185 -0
  116. rai_cli-2.0.0/src/rai_cli/skills/schema.py +129 -0
  117. rai_cli-2.0.0/src/rai_cli/skills/validator.py +172 -0
  118. rai_cli-2.0.0/src/rai_cli/skills_base/__init__.py +65 -0
  119. rai_cli-2.0.0/src/rai_cli/skills_base/rai-debug/SKILL.md +297 -0
  120. rai_cli-2.0.0/src/rai_cli/skills_base/rai-discover-document/SKILL.md +293 -0
  121. rai_cli-2.0.0/src/rai_cli/skills_base/rai-discover-scan/SKILL.md +326 -0
  122. rai_cli-2.0.0/src/rai_cli/skills_base/rai-discover-start/SKILL.md +214 -0
  123. rai_cli-2.0.0/src/rai_cli/skills_base/rai-discover-validate/SKILL.md +311 -0
  124. rai_cli-2.0.0/src/rai_cli/skills_base/rai-docs-update/SKILL.md +271 -0
  125. rai_cli-2.0.0/src/rai_cli/skills_base/rai-epic-close/SKILL.md +384 -0
  126. rai_cli-2.0.0/src/rai_cli/skills_base/rai-epic-design/SKILL.md +627 -0
  127. rai_cli-2.0.0/src/rai_cli/skills_base/rai-epic-plan/SKILL.md +676 -0
  128. rai_cli-2.0.0/src/rai_cli/skills_base/rai-epic-plan/_references/sequencing-strategies.md +67 -0
  129. rai_cli-2.0.0/src/rai_cli/skills_base/rai-epic-start/SKILL.md +241 -0
  130. rai_cli-2.0.0/src/rai_cli/skills_base/rai-project-create/SKILL.md +486 -0
  131. rai_cli-2.0.0/src/rai_cli/skills_base/rai-project-onboard/SKILL.md +534 -0
  132. rai_cli-2.0.0/src/rai_cli/skills_base/rai-research/SKILL.md +265 -0
  133. rai_cli-2.0.0/src/rai_cli/skills_base/rai-research/references/research-prompt-template.md +317 -0
  134. rai_cli-2.0.0/src/rai_cli/skills_base/rai-session-close/SKILL.md +170 -0
  135. rai_cli-2.0.0/src/rai_cli/skills_base/rai-session-start/SKILL.md +116 -0
  136. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-close/SKILL.md +368 -0
  137. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-design/SKILL.md +340 -0
  138. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-design/references/tech-design-story-v2.md +293 -0
  139. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-implement/SKILL.md +257 -0
  140. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-plan/SKILL.md +308 -0
  141. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-review/SKILL.md +277 -0
  142. rai_cli-2.0.0/src/rai_cli/skills_base/rai-story-start/SKILL.md +290 -0
  143. rai_cli-2.0.0/src/rai_cli/skills_base/rai-welcome/SKILL.md +227 -0
  144. rai_cli-2.0.0/src/rai_cli/telemetry/__init__.py +42 -0
  145. rai_cli-2.0.0/src/rai_cli/telemetry/schemas.py +285 -0
  146. rai_cli-2.0.0/src/rai_cli/telemetry/writer.py +214 -0
  147. rai_cli-2.0.0/src/rai_cli/viz/__init__.py +7 -0
  148. rai_cli-2.0.0/src/rai_cli/viz/generator.py +406 -0
@@ -0,0 +1,89 @@
1
+ .specstory/
2
+ .cursor/
3
+
4
+ # Claude Code local settings (user-specific)
5
+ .claude/settings.local.json
6
+ CLAUDE.local.md
7
+
8
+ # RaiSE generated/cache files
9
+ .raise/cache/
10
+
11
+ # RaiSE derived artifacts (rebuild with `rai memory build`)
12
+ .raise/rai/memory/index.json
13
+
14
+ # RaiSE personal directory (per-developer, not shared)
15
+ .raise/rai/personal/
16
+
17
+ # RaiSE sync state (per-instance JIRA mappings, not shared)
18
+ .raise/rai/sync/
19
+
20
+ # Temporary files
21
+ *.tmp
22
+ *.bak-*
23
+ *.log
24
+ .DS_Store
25
+ Thumbs.db
26
+
27
+ # Script generated folders (if testing locally)
28
+ .specify-raise/commands/
29
+
30
+ # Python build artifacts
31
+ __pycache__/
32
+ *.py[cod]
33
+ *$py.class
34
+ *.so
35
+ build/
36
+ develop-eggs/
37
+ dist/
38
+ downloads/
39
+ eggs/
40
+ .eggs/
41
+ lib/
42
+ lib64/
43
+ parts/
44
+ sdist/
45
+ var/
46
+ wheels/
47
+ *.egg-info/
48
+ .installed.cfg
49
+ *.egg
50
+
51
+ # Virtual environments
52
+ .venv/
53
+ venv/
54
+ ENV/
55
+ env/
56
+
57
+ # Testing
58
+ htmlcov/
59
+ .tox/
60
+ .nox/
61
+ .coverage
62
+ .coverage.*
63
+ .cache
64
+ nosetests.xml
65
+ coverage.xml
66
+ *.cover
67
+ .hypothesis/
68
+ .pytest_cache/
69
+
70
+ # Type checking
71
+ .mypy_cache/
72
+ .dmypy.json
73
+ dmypy.json
74
+ .pyright/
75
+ .rai/memory/graph.json
76
+ .envrc
77
+
78
+ # Legacy telemetry (should be in personal/, will migrate)
79
+ .raise/rai/telemetry/
80
+
81
+ # Secrets & credentials
82
+ .env
83
+ .env.*
84
+ *.pem
85
+ *.key
86
+ .pypirc
87
+ credentials.json
88
+ *.sqlite
89
+ .netrc
rai_cli-2.0.0/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 HumanSys
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
rai_cli-2.0.0/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ RaiSE Framework
2
+ Copyright 2026 Humansys
3
+
4
+ This product includes software developed by Humansys (https://humansys.ai).
rai_cli-2.0.0/PKG-INFO ADDED
@@ -0,0 +1,381 @@
1
+ Metadata-Version: 2.4
2
+ Name: rai-cli
3
+ Version: 2.0.0
4
+ Summary: RaiSE CLI - Reliable AI Software Engineering governance framework
5
+ Author-email: Emilio Osorio <emilio@humansys.ai>
6
+ License: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Keywords: ai,cli,governance,methodology,software-engineering
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
16
+ Classifier: Topic :: Software Development :: Quality Assurance
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: atlassian-python-api>=3.41.0
19
+ Requires-Dist: authlib>=1.3.0
20
+ Requires-Dist: cryptography>=42.0.0
21
+ Requires-Dist: networkx>=3.6.1
22
+ Requires-Dist: pydantic-settings>=2.2.0
23
+ Requires-Dist: pydantic>=2.6.0
24
+ Requires-Dist: pyyaml>=6.0.1
25
+ Requires-Dist: rich>=13.7.0
26
+ Requires-Dist: tomli>=2.0.1; python_version < '3.11'
27
+ Requires-Dist: tree-sitter-javascript>=0.25.0
28
+ Requires-Dist: tree-sitter-php>=0.24.1
29
+ Requires-Dist: tree-sitter-svelte>=1.0.2
30
+ Requires-Dist: tree-sitter-typescript>=0.23.2
31
+ Requires-Dist: tree-sitter>=0.25.2
32
+ Requires-Dist: typer>=0.12.0
33
+ Provides-Extra: dev
34
+ Requires-Dist: bandit>=1.7.8; extra == 'dev'
35
+ Requires-Dist: pyright>=1.1.350; extra == 'dev'
36
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
37
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
38
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
39
+ Description-Content-Type: text/markdown
40
+
41
+ # RaiSE
42
+
43
+ **Reliable AI Software Engineering** — Ship quality software at AI speed.
44
+
45
+ > *Raise your craft, feature by feature.*
46
+
47
+ ---
48
+
49
+ ## What is RaiSE?
50
+
51
+ RaiSE is a methodology + toolkit for professional developers who use AI assistants. It solves the problem of AI-generated code that's fast but inconsistent: governance that works naturally, validation at every step, and memory that persists across sessions.
52
+
53
+ **The RaiSE Triad:**
54
+
55
+ ```
56
+ RaiSE Engineer
57
+ (You - Strategy, Judgment, Ownership)
58
+
59
+ │ collaborates with
60
+
61
+ Rai
62
+ (AI Partner - Execution + Memory)
63
+
64
+ │ governed by
65
+
66
+ RaiSE
67
+ (Methodology + Toolkit)
68
+ ```
69
+
70
+ **Rai** is your AI collaborator — not a generic assistant, but a partner trained in the discipline of reliable AI software engineering. Rai remembers your patterns, calibrates to your velocity, and maintains coherence across sessions.
71
+
72
+ ---
73
+
74
+ ## Developer Onboarding
75
+
76
+ ### Prerequisites
77
+
78
+ - Python 3.12+
79
+ - [uv](https://github.com/astral-sh/uv) (recommended) or pip
80
+ - [Claude Code](https://claude.ai/claude-code) CLI installed and configured
81
+
82
+ ### Quick Install (from PyPI)
83
+
84
+ ```bash
85
+ # Current release is alpha — requires --pre flag
86
+ pip install --pre rai-cli
87
+
88
+ # Or with uv:
89
+ uv pip install --prerelease=allow rai-cli
90
+
91
+ # Verify
92
+ rai --help
93
+ ```
94
+
95
+ ### Development Setup
96
+
97
+ ```bash
98
+ # 1. Clone and checkout the development branch
99
+ git clone https://gitlab.com/humansys-demos/product/raise1/raise-commons.git
100
+ cd raise-commons
101
+ git checkout v2
102
+
103
+ # 2. Install in development mode
104
+ uv pip install -e ".[dev]"
105
+
106
+ If error "No virtual environment found."
107
+ run `uv venv` to create an environment.
108
+
109
+ # 3. Verify installation
110
+ rai --help
111
+ ```
112
+
113
+ Windows WSL (Ubuntu/Debian).
114
+ ```bash
115
+ # 1 — Use pipx
116
+
117
+ sudo apt update
118
+ sudo apt install pipx -y
119
+ pipx ensurepath
120
+
121
+
122
+ # 2 Close and new terminal WSL.
123
+
124
+ # 3 Install:
125
+
126
+ pipx install rai-cli
127
+ ```
128
+
129
+ ### Onboarding with Rai
130
+
131
+ Once installed, open Claude Code in the project directory and run:
132
+
133
+ ```
134
+ /rai-welcome
135
+ ```
136
+
137
+ This single command will:
138
+ - **Detect your situation** (new developer, returning developer, etc.)
139
+ - **Create your profile** (`~/.rai/developer.yaml`) with your name and pattern prefix
140
+ - **Build the knowledge graph** so Rai has project context
141
+ - **Scaffold `CLAUDE.local.md`** for your personal Claude Code instructions
142
+ - **Optionally customize** communication preferences (language, style)
143
+ - **Verify everything works**
144
+
145
+ After welcome completes, start working:
146
+
147
+ ```
148
+ /rai-session-start
149
+ ```
150
+
151
+ This loads your context, memory, and proposes focused work.
152
+
153
+ ### What You Get
154
+
155
+ | Shared (committed) | Personal (gitignored) |
156
+ |--------------------|-----------------------|
157
+ | Patterns (`.raise/rai/memory/patterns.jsonl`) | Session history (`.raise/rai/personal/sessions/`) |
158
+ | Governance docs | Session state (`.raise/rai/personal/session-state.yaml`) |
159
+ | Skills, methodology | Calibration data (`.raise/rai/personal/calibration.jsonl`) |
160
+ | Work artifacts | Knowledge graph (`.raise/rai/memory/index.json`) |
161
+
162
+ Each developer builds their own personal context through working sessions. Pattern IDs are developer-prefixed (e.g., PAT-A-001 for Alice, PAT-B-001 for Bob) to prevent collisions in shared repositories.
163
+
164
+ ---
165
+
166
+ ## Usage
167
+
168
+ ### Initialize RaiSE on Your Project
169
+
170
+ ```bash
171
+ # Navigate to your existing project
172
+ cd your-project
173
+
174
+ # Initialize RaiSE governance structure
175
+ rai init --detect
176
+
177
+ # Open Claude Code and run onboarding
178
+ /rai-welcome
179
+ ```
180
+
181
+ This scaffolds the `.raise/` directory, detects your project's conventions (language, testing framework, linting), and builds the knowledge graph.
182
+
183
+ ### Daily Workflow
184
+
185
+ A typical session follows this pattern:
186
+
187
+ ```
188
+ 1. /rai-session-start # Load context, see what's pending
189
+ 2. /rai-story-start # Create branch, define scope
190
+ 3. /rai-story-design # Design the approach (recommended)
191
+ 4. /rai-story-plan # Break into atomic tasks
192
+ 5. /rai-story-implement # TDD execution with validation gates
193
+ 6. /rai-story-review # Retrospective, capture patterns
194
+ 7. /rai-story-close # Merge, cleanup
195
+ 8. /rai-session-close # Persist learnings for next session
196
+ ```
197
+
198
+ You don't need to complete all steps in one session — Rai remembers where you left off.
199
+
200
+ ### What Rai Remembers
201
+
202
+ - **Patterns** — Reusable insights learned from your work (e.g., "always validate config at boundaries")
203
+ - **Calibration** — Your velocity, strengths, growth edges
204
+ - **Session history** — What you worked on, decisions made, items deferred
205
+ - **Coaching corrections** — Mistakes Rai made and learned from
206
+
207
+ Each session builds on the last. Over time, Rai becomes a more effective collaborator for your specific codebase and working style.
208
+
209
+ ---
210
+
211
+ ## Available Skills
212
+
213
+ Skills are structured processes that guide AI-assisted development. Run them as `/skill-name` in Claude Code.
214
+
215
+ ### Session Lifecycle
216
+ | Skill | Purpose |
217
+ |-------|---------|
218
+ | `/rai-welcome` | One-time developer onboarding |
219
+ | `/rai-session-start` | Begin a session with memory and context |
220
+ | `/rai-session-close` | End a session, persist learnings |
221
+
222
+ ### Story Lifecycle
223
+ | Skill | Purpose |
224
+ |-------|---------|
225
+ | `/rai-story-start` | Initialize a story with branch and scope |
226
+ | `/rai-story-design` | Create lean specs for complex stories |
227
+ | `/rai-story-plan` | Decompose into atomic tasks |
228
+ | `/rai-story-implement` | Execute with TDD and validation gates |
229
+ | `/rai-story-review` | Retrospective and learnings |
230
+ | `/rai-story-close` | Merge, cleanup, tracking |
231
+
232
+ ### Epic Lifecycle
233
+ | Skill | Purpose |
234
+ |-------|---------|
235
+ | `/rai-epic-start` | Initialize an epic with branch |
236
+ | `/rai-epic-design` | Design multi-story epics |
237
+ | `/rai-epic-plan` | Sequence stories into plans |
238
+ | `/rai-epic-close` | Epic retrospective and merge |
239
+
240
+ ### Other Skills
241
+ | Skill | Purpose |
242
+ |-------|---------|
243
+ | `/rai-research` | Epistemologically rigorous research |
244
+ | `/rai-debug` | Root cause analysis (5 Whys, Ishikawa) |
245
+ | `/rai-docs-update` | Sync architecture docs with code |
246
+ | `/rai-discover-start` | Initialize codebase discovery |
247
+ | `/rai-discover-scan` | Extract and describe components |
248
+
249
+ ---
250
+
251
+ ## CLI Commands
252
+
253
+ The `rai` CLI provides deterministic operations:
254
+
255
+ ```bash
256
+ # Build Rai's knowledge graph from project artifacts
257
+ rai memory build
258
+
259
+ # Query governance concepts
260
+ rai memory context mod-session
261
+
262
+ # Query Rai's memory
263
+ rai memory query "velocity patterns"
264
+
265
+ # Validate the memory graph (structural + completeness)
266
+ rai memory validate
267
+
268
+ # Visualize the memory graph as interactive HTML
269
+ rai memory viz # Opens in browser
270
+ rai memory viz --output graph.html # Custom output path
271
+
272
+ # List releases and their associated epics
273
+ rai release list
274
+
275
+ # Start a session (creates profile on first run)
276
+ rai session start --name "YourName" --project "$(pwd)" --context
277
+
278
+ # Close a session
279
+ rai session close --state-file /tmp/session-output.yaml --project "$(pwd)"
280
+ ```
281
+
282
+ ---
283
+
284
+ ## Repository Structure
285
+
286
+ ```
287
+ raise-commons/
288
+ ├── .claude/skills/ # Claude Code skills (24 skills)
289
+
290
+ ├── framework/ # Public textbook (concepts, reference)
291
+ │ ├── reference/ # Constitution, glossary, philosophy
292
+ │ ├── concepts/ # Core concepts (katas, gates, artifacts)
293
+ │ └── getting-started/ # Greenfield/brownfield guides
294
+
295
+ ├── .raise/ # Framework engine
296
+ │ ├── rai/ # Rai's memory and personal data
297
+ │ │ ├── memory/ # Patterns, knowledge graph (shared)
298
+ │ │ └── personal/ # Sessions, calibration (per-developer, gitignored)
299
+ │ ├── katas/ # Process definitions
300
+ │ ├── gates/ # Validation criteria
301
+ │ ├── templates/ # Artifact scaffolds
302
+ │ └── skills/ # Legacy skill definitions
303
+
304
+ ├── governance/ # Project governance
305
+ │ ├── architecture/ # Module docs, system design
306
+ │ └── solution/ # Vision, guardrails, business case
307
+
308
+ ├── src/rai_cli/ # CLI toolkit (Python)
309
+
310
+ ├── work/ # Work in progress
311
+ │ └── stories/ # Story artifacts (scope, design, plan, retro)
312
+
313
+ └── dev/ # Framework maintenance
314
+ ├── decisions/ # ADRs (Architecture Decision Records)
315
+ └── parking-lot.md # Ideas and tangents for later
316
+ ```
317
+
318
+ ---
319
+
320
+ ## Branch Model
321
+
322
+ ```
323
+ main (stable releases)
324
+ └── v2 (development)
325
+ └── epic/e{N}/{name}
326
+ └── story/s{N}.{M}/{name}
327
+ ```
328
+
329
+ - Work on `v2` (development branch)
330
+ - Stories branch from and merge back to their epic or `v2`
331
+ - `main` receives releases from `v2`
332
+
333
+ ---
334
+
335
+ ## Core Concepts
336
+
337
+ | Concept | Description |
338
+ |---------|-------------|
339
+ | **RaiSE Engineer** | You — the human who directs AI-assisted development |
340
+ | **Rai** | AI partner with memory, calibration, and accumulated judgment |
341
+ | **Skill** | Structured Claude Code prompt for a methodology phase |
342
+ | **Validation Gate** | Quality checkpoint with specific criteria |
343
+ | **Guardrail** | Constraint that guides AI behavior |
344
+ | **ShuHaRi** | Mastery levels (beginner → practitioner → master) that adapt Rai's verbosity |
345
+
346
+ See the full [Glossary](framework/reference/glossary.md) for canonical terminology.
347
+
348
+ ---
349
+
350
+ ## Key Principles
351
+
352
+ From the [Constitution](framework/reference/constitution.md):
353
+
354
+ 1. **Humans Define, Machines Execute** — Specs are source of truth
355
+ 2. **Governance as Code** — Standards versioned in Git
356
+ 3. **Validation Gates** — Quality checked at each phase
357
+ 4. **Observable Workflow** — Every decision traceable
358
+ 5. **Jidoka** — Stop on defects, don't accumulate errors
359
+
360
+ ---
361
+
362
+ ## Status
363
+
364
+ This is a pre-release (`v2.0.0-alpha`). The framework is being used in production but the API may change.
365
+
366
+ We value your feedback:
367
+
368
+ - **Questions?** Open an [issue](https://gitlab.com/humansys-demos/product/raise1/raise-commons/-/issues)
369
+ - **Found a bug?** Open an [issue](https://gitlab.com/humansys-demos/product/raise1/raise-commons/-/issues) with reproduction steps
370
+ - **Ideas?** We want to hear them — open an issue or reach out directly
371
+
372
+ ---
373
+
374
+ ## License
375
+
376
+ [Apache-2.0](LICENSE)
377
+
378
+ ---
379
+
380
+ *RaiSE — Reliable AI Software Engineering*
381
+ *Neither is complete alone.*