@lamentis/naome 1.1.2 → 1.2.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 (204) hide show
  1. package/Cargo.lock +2 -2
  2. package/Cargo.toml +1 -1
  3. package/LICENSE +180 -21
  4. package/README.md +49 -6
  5. package/bin/naome-node.js +2 -1579
  6. package/bin/naome.js +68 -16
  7. package/crates/naome-cli/Cargo.toml +1 -1
  8. package/crates/naome-cli/src/check_commands.rs +135 -0
  9. package/crates/naome-cli/src/cli_args.rs +5 -0
  10. package/crates/naome-cli/src/dispatcher.rs +37 -0
  11. package/crates/naome-cli/src/install_bridge.rs +83 -0
  12. package/crates/naome-cli/src/main.rs +60 -341
  13. package/crates/naome-cli/src/prompt_commands.rs +68 -0
  14. package/crates/naome-cli/src/quality_commands.rs +229 -0
  15. package/crates/naome-cli/src/simple_commands.rs +53 -0
  16. package/crates/naome-cli/src/workflow_commands.rs +153 -0
  17. package/crates/naome-core/Cargo.toml +1 -1
  18. package/crates/naome-core/src/decision/checks.rs +64 -0
  19. package/crates/naome-core/src/decision/idle.rs +67 -0
  20. package/crates/naome-core/src/decision/json.rs +36 -0
  21. package/crates/naome-core/src/decision/states.rs +165 -0
  22. package/crates/naome-core/src/decision.rs +131 -353
  23. package/crates/naome-core/src/harness_health/integrity.rs +96 -0
  24. package/crates/naome-core/src/harness_health.rs +14 -126
  25. package/crates/naome-core/src/install_plan.rs +5 -0
  26. package/crates/naome-core/src/intent/classifier.rs +171 -0
  27. package/crates/naome-core/src/intent/envelope.rs +108 -0
  28. package/crates/naome-core/src/intent/legacy.rs +138 -0
  29. package/crates/naome-core/src/intent/legacy_response.rs +76 -0
  30. package/crates/naome-core/src/intent/model.rs +71 -0
  31. package/crates/naome-core/src/intent/patterns.rs +170 -0
  32. package/crates/naome-core/src/intent/resolver.rs +162 -0
  33. package/crates/naome-core/src/intent/resolver_active.rs +17 -0
  34. package/crates/naome-core/src/intent/resolver_baseline.rs +55 -0
  35. package/crates/naome-core/src/intent/resolver_catalog.rs +167 -0
  36. package/crates/naome-core/src/intent/resolver_policy.rs +72 -0
  37. package/crates/naome-core/src/intent/resolver_shared.rs +55 -0
  38. package/crates/naome-core/src/intent/risk.rs +40 -0
  39. package/crates/naome-core/src/intent/segment.rs +170 -0
  40. package/crates/naome-core/src/intent.rs +64 -879
  41. package/crates/naome-core/src/journal.rs +9 -20
  42. package/crates/naome-core/src/lib.rs +15 -0
  43. package/crates/naome-core/src/paths.rs +3 -1
  44. package/crates/naome-core/src/quality/adapter_support.rs +89 -0
  45. package/crates/naome-core/src/quality/adapters.rs +131 -0
  46. package/crates/naome-core/src/quality/baseline.rs +75 -0
  47. package/crates/naome-core/src/quality/checks/duplicate_blocks.rs +175 -0
  48. package/crates/naome-core/src/quality/checks/near_duplicates.rs +130 -0
  49. package/crates/naome-core/src/quality/checks.rs +228 -0
  50. package/crates/naome-core/src/quality/cleanup.rs +84 -0
  51. package/crates/naome-core/src/quality/config.rs +102 -0
  52. package/crates/naome-core/src/quality/config_support.rs +24 -0
  53. package/crates/naome-core/src/quality/mod.rs +108 -0
  54. package/crates/naome-core/src/quality/scanner/repo_paths.rs +103 -0
  55. package/crates/naome-core/src/quality/scanner.rs +379 -0
  56. package/crates/naome-core/src/quality/structure/adapters.rs +84 -0
  57. package/crates/naome-core/src/quality/structure/checks/basic.rs +153 -0
  58. package/crates/naome-core/src/quality/structure/checks/directory.rs +144 -0
  59. package/crates/naome-core/src/quality/structure/checks/pairing.rs +63 -0
  60. package/crates/naome-core/src/quality/structure/checks.rs +124 -0
  61. package/crates/naome-core/src/quality/structure/classify/roles.rs +188 -0
  62. package/crates/naome-core/src/quality/structure/classify.rs +94 -0
  63. package/crates/naome-core/src/quality/structure/config.rs +89 -0
  64. package/crates/naome-core/src/quality/structure/defaults.rs +107 -0
  65. package/crates/naome-core/src/quality/structure/mod.rs +77 -0
  66. package/crates/naome-core/src/quality/structure/model.rs +124 -0
  67. package/crates/naome-core/src/quality/types.rs +292 -0
  68. package/crates/naome-core/src/route/builtin_checks.rs +155 -0
  69. package/crates/naome-core/src/route/builtin_context.rs +73 -0
  70. package/crates/naome-core/src/route/builtin_integrity.rs +49 -0
  71. package/crates/naome-core/src/route/builtin_require.rs +40 -0
  72. package/crates/naome-core/src/route/context.rs +180 -0
  73. package/crates/naome-core/src/route/execution.rs +96 -0
  74. package/crates/naome-core/src/route/execution_baselines.rs +146 -0
  75. package/crates/naome-core/src/route/execution_support.rs +57 -0
  76. package/crates/naome-core/src/route/execution_tasks.rs +71 -0
  77. package/crates/naome-core/src/route/git_ops.rs +72 -0
  78. package/crates/naome-core/src/route/quality_gate.rs +73 -0
  79. package/crates/naome-core/src/route/quality_gate_config.rs +126 -0
  80. package/crates/naome-core/src/route/quality_gate_snapshot.rs +69 -0
  81. package/crates/naome-core/src/route/worktree.rs +75 -0
  82. package/crates/naome-core/src/route/worktree_files.rs +32 -0
  83. package/crates/naome-core/src/route/worktree_plan.rs +131 -0
  84. package/crates/naome-core/src/route.rs +44 -1155
  85. package/crates/naome-core/src/task_state/admission.rs +63 -0
  86. package/crates/naome-core/src/task_state/admission_proof.rs +72 -0
  87. package/crates/naome-core/src/task_state/api.rs +130 -0
  88. package/crates/naome-core/src/task_state/commit_gate.rs +138 -0
  89. package/crates/naome-core/src/task_state/compact_proof.rs +160 -0
  90. package/crates/naome-core/src/task_state/completed_refresh.rs +89 -0
  91. package/crates/naome-core/src/task_state/completion.rs +72 -0
  92. package/crates/naome-core/src/task_state/deleted_paths.rs +47 -0
  93. package/crates/naome-core/src/task_state/diff.rs +95 -0
  94. package/crates/naome-core/src/task_state/evidence.rs +154 -0
  95. package/crates/naome-core/src/task_state/git_io.rs +86 -0
  96. package/crates/naome-core/src/task_state/git_parse.rs +86 -0
  97. package/crates/naome-core/src/task_state/git_refs.rs +37 -0
  98. package/crates/naome-core/src/task_state/human_review_state.rs +31 -0
  99. package/crates/naome-core/src/task_state/mod.rs +38 -0
  100. package/crates/naome-core/src/task_state/process_guard.rs +40 -0
  101. package/crates/naome-core/src/task_state/progress.rs +123 -0
  102. package/crates/naome-core/src/task_state/proof.rs +139 -0
  103. package/crates/naome-core/src/task_state/proof_entry.rs +66 -0
  104. package/crates/naome-core/src/task_state/proof_model.rs +70 -0
  105. package/crates/naome-core/src/task_state/proof_sources.rs +76 -0
  106. package/crates/naome-core/src/task_state/push_gate.rs +49 -0
  107. package/crates/naome-core/src/task_state/reconcile.rs +7 -0
  108. package/crates/naome-core/src/task_state/repair.rs +168 -0
  109. package/crates/naome-core/src/task_state/shape.rs +117 -0
  110. package/crates/naome-core/src/task_state/task_diff_api.rs +170 -0
  111. package/crates/naome-core/src/task_state/task_records.rs +131 -0
  112. package/crates/naome-core/src/task_state/task_references.rs +126 -0
  113. package/crates/naome-core/src/task_state/types.rs +87 -0
  114. package/crates/naome-core/src/task_state/util.rs +137 -0
  115. package/crates/naome-core/src/verification/render.rs +122 -0
  116. package/crates/naome-core/src/verification.rs +177 -58
  117. package/crates/naome-core/src/verification_contract.rs +49 -21
  118. package/crates/naome-core/src/workflow/integrity.rs +123 -0
  119. package/crates/naome-core/src/workflow/integrity_normalize.rs +7 -0
  120. package/crates/naome-core/src/workflow/integrity_support.rs +110 -0
  121. package/crates/naome-core/src/workflow/mod.rs +18 -0
  122. package/crates/naome-core/src/workflow/mutation.rs +68 -0
  123. package/crates/naome-core/src/workflow/output.rs +111 -0
  124. package/crates/naome-core/src/workflow/phase_inference.rs +73 -0
  125. package/crates/naome-core/src/workflow/phases.rs +169 -0
  126. package/crates/naome-core/src/workflow/policy.rs +156 -0
  127. package/crates/naome-core/src/workflow/processes.rs +91 -0
  128. package/crates/naome-core/src/workflow/types.rs +42 -0
  129. package/crates/naome-core/tests/decision.rs +24 -118
  130. package/crates/naome-core/tests/harness_health.rs +5 -0
  131. package/crates/naome-core/tests/intent.rs +97 -792
  132. package/crates/naome-core/tests/intent_support/mod.rs +133 -0
  133. package/crates/naome-core/tests/intent_v2.rs +90 -0
  134. package/crates/naome-core/tests/quality.rs +319 -0
  135. package/crates/naome-core/tests/quality_structure.rs +116 -0
  136. package/crates/naome-core/tests/quality_structure_adapters.rs +98 -0
  137. package/crates/naome-core/tests/quality_structure_policy.rs +125 -0
  138. package/crates/naome-core/tests/quality_structure_support/mod.rs +249 -0
  139. package/crates/naome-core/tests/repo_support/mod.rs +16 -0
  140. package/crates/naome-core/tests/repo_support/repo.rs +113 -0
  141. package/crates/naome-core/tests/repo_support/repo_factories.rs +99 -0
  142. package/crates/naome-core/tests/repo_support/repo_helpers.rs +123 -0
  143. package/crates/naome-core/tests/repo_support/routes.rs +81 -0
  144. package/crates/naome-core/tests/repo_support/verification.rs +168 -0
  145. package/crates/naome-core/tests/repo_support/verification_values.rs +135 -0
  146. package/crates/naome-core/tests/route.rs +1 -1476
  147. package/crates/naome-core/tests/route_baseline.rs +86 -0
  148. package/crates/naome-core/tests/route_completion.rs +141 -0
  149. package/crates/naome-core/tests/route_harness_refresh.rs +135 -0
  150. package/crates/naome-core/tests/route_user_diff.rs +198 -0
  151. package/crates/naome-core/tests/route_worktree.rs +54 -0
  152. package/crates/naome-core/tests/task_state.rs +60 -429
  153. package/crates/naome-core/tests/task_state_compact.rs +110 -0
  154. package/crates/naome-core/tests/task_state_compact_support/mod.rs +5 -0
  155. package/crates/naome-core/tests/task_state_compact_support/repo.rs +130 -0
  156. package/crates/naome-core/tests/task_state_compact_support/states.rs +151 -0
  157. package/crates/naome-core/tests/task_state_support/mod.rs +163 -0
  158. package/crates/naome-core/tests/task_state_support/states.rs +84 -0
  159. package/crates/naome-core/tests/verification.rs +4 -45
  160. package/crates/naome-core/tests/verification_contract.rs +22 -78
  161. package/crates/naome-core/tests/workflow_integrity.rs +85 -0
  162. package/crates/naome-core/tests/workflow_policy.rs +139 -0
  163. package/crates/naome-core/tests/workflow_support/mod.rs +194 -0
  164. package/installer/agents.js +90 -0
  165. package/installer/context.js +67 -0
  166. package/installer/filesystem.js +166 -0
  167. package/installer/flows.js +84 -0
  168. package/installer/git-boundary.js +170 -0
  169. package/installer/git-hook-content.js +36 -0
  170. package/installer/git-hooks.js +134 -0
  171. package/installer/git-local.js +2 -0
  172. package/installer/git-shared.js +35 -0
  173. package/installer/harness-file-ops.js +140 -0
  174. package/installer/harness-files.js +56 -0
  175. package/installer/harness-verification.js +123 -0
  176. package/installer/install-plan.js +66 -0
  177. package/installer/main.js +25 -0
  178. package/installer/manifest-state.js +167 -0
  179. package/installer/native-build.js +24 -0
  180. package/installer/native-format.js +6 -0
  181. package/installer/native.js +162 -0
  182. package/installer/output.js +131 -0
  183. package/installer/version.js +32 -0
  184. package/native/darwin-arm64/naome +0 -0
  185. package/native/linux-x64/naome +0 -0
  186. package/package.json +3 -2
  187. package/templates/naome-root/.naome/bin/check-harness-health.js +66 -85
  188. package/templates/naome-root/.naome/bin/check-task-state.js +9 -10
  189. package/templates/naome-root/.naome/bin/naome.js +51 -76
  190. package/templates/naome-root/.naome/manifest.json +22 -18
  191. package/templates/naome-root/.naome/repository-quality-baseline.json +5 -0
  192. package/templates/naome-root/.naome/repository-quality.json +24 -0
  193. package/templates/naome-root/.naome/repository-structure.json +90 -0
  194. package/templates/naome-root/.naome/task-contract.schema.json +93 -11
  195. package/templates/naome-root/.naome/upgrade-state.json +1 -1
  196. package/templates/naome-root/.naome/verification.json +38 -0
  197. package/templates/naome-root/AGENTS.md +3 -0
  198. package/templates/naome-root/docs/naome/agent-workflow.md +25 -12
  199. package/templates/naome-root/docs/naome/execution.md +25 -21
  200. package/templates/naome-root/docs/naome/index.md +5 -3
  201. package/templates/naome-root/docs/naome/repository-quality.md +46 -0
  202. package/templates/naome-root/docs/naome/repository-structure.md +51 -0
  203. package/templates/naome-root/docs/naome/testing.md +13 -0
  204. package/crates/naome-core/src/task_state.rs +0 -2210
package/Cargo.lock CHANGED
@@ -76,7 +76,7 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
76
76
 
77
77
  [[package]]
78
78
  name = "naome-cli"
79
- version = "1.1.2"
79
+ version = "1.2.1"
80
80
  dependencies = [
81
81
  "naome-core",
82
82
  "serde_json",
@@ -84,7 +84,7 @@ dependencies = [
84
84
 
85
85
  [[package]]
86
86
  name = "naome-core"
87
- version = "1.1.2"
87
+ version = "1.2.1"
88
88
  dependencies = [
89
89
  "serde",
90
90
  "serde_json",
package/Cargo.toml CHANGED
@@ -7,5 +7,5 @@ resolver = "2"
7
7
 
8
8
  [workspace.package]
9
9
  edition = "2021"
10
- license = "MIT"
10
+ license = "Apache-2.0"
11
11
  repository = "https://github.com/Lamentis-O/naome"
package/LICENSE CHANGED
@@ -1,21 +1,180 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Lamentis
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
5
+ 1. Definitions.
6
+ "License" shall mean the terms and conditions for use, reproduction, and
7
+ distribution as defined by Sections 1 through 9 of this document.
8
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
9
+ owner that is granting the License.
10
+
11
+ "Legal Entity" shall mean the union of the acting entity and all other entities
12
+ that control, are controlled by, or are under common control with that entity.
13
+ For the purposes of this definition, "control" means (i) the power, direct or
14
+ indirect, to cause the direction or management of such entity, whether by
15
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
16
+ outstanding shares, or (iii) beneficial ownership of such entity.
17
+
18
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
19
+ permissions granted by this License.
20
+
21
+ "Source" form shall mean the preferred form for making modifications, including
22
+ but not limited to software source code, documentation source, and configuration
23
+ files.
24
+
25
+ "Object" form shall mean any form resulting from mechanical transformation or
26
+ translation of a Source form, including but not limited to compiled object code,
27
+ generated documentation, and conversions to other media types.
28
+
29
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
30
+ available under the License, as indicated by a copyright notice that is included
31
+ in or attached to the work (an example is provided in the Appendix below).
32
+
33
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
34
+ is based on (or derived from) the Work and for which the editorial revisions,
35
+ annotations, elaborations, or other modifications represent, as a whole, an
36
+ original work of authorship. For the purposes of this License, Derivative Works
37
+ shall not include works that remain separable from, or merely link (or bind by
38
+ name) to the interfaces of, the Work and Derivative Works thereof.
39
+
40
+ "Contribution" shall mean any work of authorship, including the original version
41
+ of the Work and any modifications or additions to that Work or Derivative Works
42
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work by
43
+ the copyright owner or by an individual or Legal Entity authorized to submit on
44
+ behalf of the copyright owner. For the purposes of this definition, "submitted"
45
+ means any form of electronic, verbal, or written communication sent to the
46
+ Licensor or its representatives, including but not limited to communication on
47
+ electronic mailing lists, source code control systems, and issue tracking
48
+ systems that are managed by, or on behalf of, the Licensor for the purpose of
49
+ discussing and improving the Work, but excluding communication that is
50
+ conspicuously marked or otherwise designated in writing by the copyright owner as
51
+ "Not a Contribution."
52
+
53
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
54
+ of whom a Contribution has been received by Licensor and subsequently
55
+ incorporated within the Work.
56
+
57
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
58
+ License, each Contributor hereby grants to You a perpetual, worldwide,
59
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
60
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
61
+ sublicense, and distribute the Work and such Derivative Works in Source or Object
62
+ form.
63
+
64
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
65
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
66
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
67
+ license to make, have made, use, offer to sell, sell, import, and otherwise
68
+ transfer the Work, where such license applies only to those patent claims
69
+ licensable by such Contributor that are necessarily infringed by their
70
+ Contribution(s) alone or by combination of their Contribution(s) with the Work to
71
+ which such Contribution(s) was submitted. If You institute patent litigation
72
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
73
+ alleging that the Work or a Contribution incorporated within the Work constitutes
74
+ direct or contributory patent infringement, then any patent licenses granted to
75
+ You under this License for that Work shall terminate as of the date such
76
+ litigation is filed.
77
+
78
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
79
+ Derivative Works thereof in any medium, with or without modifications, and in
80
+ Source or Object form, provided that You meet the following conditions:
81
+
82
+ (a) You must give any other recipients of the Work or Derivative Works a copy
83
+ of this License; and
84
+
85
+ (b) You must cause any modified files to carry prominent notices stating that
86
+ You changed the files; and
87
+
88
+ (c) You must retain, in the Source form of any Derivative Works that You
89
+ distribute, all copyright, patent, trademark, and attribution notices from
90
+ the Source form of the Work, excluding those notices that do not pertain
91
+ to any part of the Derivative Works; and
92
+
93
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
94
+ then any Derivative Works that You distribute must include a readable copy
95
+ of the attribution notices contained within such NOTICE file, excluding
96
+ those notices that do not pertain to any part of the Derivative Works, in
97
+ at least one of the following places: within a NOTICE text file
98
+ distributed as part of the Derivative Works; within the Source form or
99
+ documentation, if provided along with the Derivative Works; or, within a
100
+ display generated by the Derivative Works, if and wherever such
101
+ third-party notices normally appear. The contents of the NOTICE file are
102
+ for informational purposes only and do not modify the License. You may add
103
+ Your own attribution notices within Derivative Works that You distribute,
104
+ alongside or as an addendum to the NOTICE text from the Work, provided
105
+ that such additional attribution notices cannot be construed as modifying
106
+ the License.
107
+
108
+ You may add Your own copyright statement to Your modifications and may provide
109
+ additional or different license terms and conditions for use, reproduction, or
110
+ distribution of Your modifications, or for any such Derivative Works as a whole,
111
+ provided Your use, reproduction, and distribution of the Work otherwise complies
112
+ with the conditions stated in this License.
113
+
114
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
115
+ Contribution intentionally submitted for inclusion in the Work by You to the
116
+ Licensor shall be under the terms and conditions of this License, without any
117
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
118
+ supersede or modify the terms of any separate license agreement you may have
119
+ executed with Licensor regarding such Contributions.
120
+
121
+ 6. Trademarks. This License does not grant permission to use the trade names,
122
+ trademarks, service marks, or product names of the Licensor, except as required
123
+ for reasonable and customary use in describing the origin of the Work and
124
+ reproducing the content of the NOTICE file.
125
+
126
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
127
+ writing, Licensor provides the Work (and each Contributor provides its
128
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
129
+ KIND, either express or implied, including, without limitation, any warranties or
130
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
131
+ PARTICULAR PURPOSE. You are solely responsible for determining the
132
+ appropriateness of using or redistributing the Work and assume any risks
133
+ associated with Your exercise of permissions under this License.
134
+
135
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
136
+ tort (including negligence), contract, or otherwise, unless required by
137
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
138
+ writing, shall any Contributor be liable to You for damages, including any
139
+ direct, indirect, special, incidental, or consequential damages of any character
140
+ arising as a result of this License or out of the use or inability to use the
141
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
142
+ computer failure or malfunction, or any and all other commercial damages or
143
+ losses), even if such Contributor has been advised of the possibility of such
144
+ damages.
145
+
146
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
147
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
148
+ acceptance of support, warranty, indemnity, or other liability obligations
149
+ and/or rights consistent with this License. However, in accepting such
150
+ obligations, You may act only on Your own behalf and on Your sole
151
+ responsibility, not on behalf of any other Contributor, and only if You agree to
152
+ indemnify, defend, and hold each Contributor harmless for any liability incurred
153
+ by, or claims asserted against, such Contributor by reason of your accepting any
154
+ such warranty or additional liability.
155
+
156
+ END OF TERMS AND CONDITIONS
157
+
158
+ APPENDIX: How to apply the Apache License to your work.
159
+
160
+ To apply the Apache License to your work, attach the following boilerplate
161
+ notice, with the fields enclosed by brackets "[]" replaced with your own
162
+ identifying information. (Don't include the brackets!) The text should be
163
+ enclosed in the appropriate comment syntax for the file format. We also
164
+ recommend that a file or class name and description of purpose be included on
165
+ the same "printed page" as the copyright notice for easier identification within
166
+ third-party archives.
167
+
168
+ Copyright [yyyy] [name of copyright owner]
169
+
170
+ Licensed under the Apache License, Version 2.0 (the "License");
171
+ you may not use this file except in compliance with the License.
172
+ You may obtain a copy of the License at
173
+
174
+ http://www.apache.org/licenses/LICENSE-2.0
175
+
176
+ Unless required by applicable law or agreed to in writing, software
177
+ distributed under the License is distributed on an "AS IS" BASIS,
178
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ See the License for the specific language governing permissions and
180
+ limitations under the License.
package/README.md CHANGED
@@ -1,27 +1,70 @@
1
1
  # NAOME
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@lamentis/naome.svg)](https://www.npmjs.com/package/@lamentis/naome)
4
- [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
4
+ [![license: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](LICENSE)
5
5
 
6
- NAOME gives coding agents a deterministic repository harness: project intake, task admission, proof gates, Rust-backed next-step decisions, health checks, and Git guardrails so an agent learns a repo before changing it and proves work before committing.
6
+ NAOME is a deterministic repository harness for AI coding agents. It teaches an
7
+ agent how to enter a repository, routes ambiguous user requests through explicit
8
+ policy, gates work by task scope, and requires proof before completed changes
9
+ are baselined.
7
10
 
8
- Install:
11
+ ## What NAOME Provides
12
+
13
+ - Repository intake with `.naomeignore`, workflow docs, and health checks.
14
+ - Task admission and progress gates that prevent unowned diffs and scope drift.
15
+ - Rust-backed `status`, `next`, `route`, `commit`, quality, and workflow
16
+ commands.
17
+ - Intent routing that separates repository state from structured task intent.
18
+ - Repository-quality checks for changed files, with old debt visible through
19
+ cleanup flows instead of blocking every legacy codebase.
20
+ - Verification phases for health, quality, focused tests, broad tests, package
21
+ gates, and final diff checks.
22
+ - Compact task proof data so repeated evidence and shared check metadata do not
23
+ bloat `.naome/task-state.json`.
24
+ - Local Git hooks and commit gates that keep manual commits aligned with the
25
+ same harness policy.
26
+
27
+ ## Install
9
28
 
10
29
  ```sh
11
30
  npm install -g @lamentis/naome
12
31
  ```
13
32
 
14
- Set up a repository:
33
+ ## Set Up A Repository
34
+
35
+ From the repository root:
15
36
 
16
37
  ```sh
17
38
  naome sync
18
39
  ```
19
40
 
20
- Keep the CLI current before refreshing an existing repo:
41
+ If the CLI reports that an update is available, refresh the global CLI and then
42
+ sync the harness files:
21
43
 
22
44
  ```sh
23
45
  naome update
24
46
  naome sync
25
47
  ```
26
48
 
27
- Then paste the printed first-run prompt into your coding agent. Use `naome status`, `naome next`, `naome route`, and `naome commit` to inspect state, route natural-language follow-ups, choose the next safe action, and baseline completed work.
49
+ Fresh repositories print a first-run prompt for your coding agent. Existing
50
+ initialized repositories keep normal sync output compact and do not reprint the
51
+ first-run protocol unless setup is still incomplete.
52
+
53
+ ## Daily Workflow
54
+
55
+ Use NAOME commands from the target repository:
56
+
57
+ ```sh
58
+ naome status
59
+ naome next
60
+ naome route --prompt-file /path/to/prompt.txt --execute --json
61
+ naome commit -m "type(scope): summary"
62
+ ```
63
+
64
+ Agents should read the NAOME docs named by `status` or `route`, run harness
65
+ health before feature work, keep changes inside the active task scope, and
66
+ record verification proof before marking work complete.
67
+
68
+ ## License
69
+
70
+ NAOME is licensed under the [Apache License 2.0](LICENSE).