trugs-tools 1.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 (152) hide show
  1. trugs_tools-1.0.0/LICENSE +190 -0
  2. trugs_tools-1.0.0/NOTICE +28 -0
  3. trugs_tools-1.0.0/PKG-INFO +97 -0
  4. trugs_tools-1.0.0/README.md +49 -0
  5. trugs_tools-1.0.0/pyproject.toml +80 -0
  6. trugs_tools-1.0.0/setup.cfg +4 -0
  7. trugs_tools-1.0.0/src/trugs_tools/__init__.py +20 -0
  8. trugs_tools-1.0.0/src/trugs_tools/aaa_generator.py +399 -0
  9. trugs_tools-1.0.0/src/trugs_tools/aaa_renderer.py +226 -0
  10. trugs_tools-1.0.0/src/trugs_tools/aaa_validator.py +229 -0
  11. trugs_tools-1.0.0/src/trugs_tools/agent_instructions_renderer.py +529 -0
  12. trugs_tools-1.0.0/src/trugs_tools/analyzer.py +558 -0
  13. trugs_tools-1.0.0/src/trugs_tools/claude_instructions_renderer.py +666 -0
  14. trugs_tools-1.0.0/src/trugs_tools/cli.py +2263 -0
  15. trugs_tools-1.0.0/src/trugs_tools/compliance_check.py +754 -0
  16. trugs_tools-1.0.0/src/trugs_tools/data/language.trug.json +4221 -0
  17. trugs_tools-1.0.0/src/trugs_tools/epic_sync.py +182 -0
  18. trugs_tools-1.0.0/src/trugs_tools/errors.py +121 -0
  19. trugs_tools-1.0.0/src/trugs_tools/filesystem/__init__.py +27 -0
  20. trugs_tools-1.0.0/src/trugs_tools/filesystem/folder_check.py +447 -0
  21. trugs_tools-1.0.0/src/trugs_tools/filesystem/folder_init.py +658 -0
  22. trugs_tools-1.0.0/src/trugs_tools/filesystem/folder_map.py +460 -0
  23. trugs_tools-1.0.0/src/trugs_tools/filesystem/folder_sync.py +554 -0
  24. trugs_tools-1.0.0/src/trugs_tools/filesystem/tadd.py +89 -0
  25. trugs_tools-1.0.0/src/trugs_tools/filesystem/tcd.py +110 -0
  26. trugs_tools-1.0.0/src/trugs_tools/filesystem/tdelete.py +89 -0
  27. trugs_tools-1.0.0/src/trugs_tools/filesystem/tdim.py +212 -0
  28. trugs_tools-1.0.0/src/trugs_tools/filesystem/tfind.py +125 -0
  29. trugs_tools-1.0.0/src/trugs_tools/filesystem/tget.py +79 -0
  30. trugs_tools-1.0.0/src/trugs_tools/filesystem/tinit.py +142 -0
  31. trugs_tools-1.0.0/src/trugs_tools/filesystem/tlink.py +152 -0
  32. trugs_tools-1.0.0/src/trugs_tools/filesystem/tls.py +108 -0
  33. trugs_tools-1.0.0/src/trugs_tools/filesystem/tmove.py +105 -0
  34. trugs_tools-1.0.0/src/trugs_tools/filesystem/tsync.py +232 -0
  35. trugs_tools-1.0.0/src/trugs_tools/filesystem/tunlink.py +91 -0
  36. trugs_tools-1.0.0/src/trugs_tools/filesystem/tupdate.py +147 -0
  37. trugs_tools-1.0.0/src/trugs_tools/filesystem/twatch.py +78 -0
  38. trugs_tools-1.0.0/src/trugs_tools/filesystem/twhere.py +109 -0
  39. trugs_tools-1.0.0/src/trugs_tools/filesystem/utils.py +270 -0
  40. trugs_tools-1.0.0/src/trugs_tools/generator.py +149 -0
  41. trugs_tools-1.0.0/src/trugs_tools/internal/__init__.py +5 -0
  42. trugs_tools-1.0.0/src/trugs_tools/internal/build_language_trug.py +220 -0
  43. trugs_tools-1.0.0/src/trugs_tools/memory.py +949 -0
  44. trugs_tools-1.0.0/src/trugs_tools/memory_audit.py +473 -0
  45. trugs_tools-1.0.0/src/trugs_tools/memory_import.py +470 -0
  46. trugs_tools-1.0.0/src/trugs_tools/memory_render.py +513 -0
  47. trugs_tools-1.0.0/src/trugs_tools/renderer.py +838 -0
  48. trugs_tools-1.0.0/src/trugs_tools/rules.py +529 -0
  49. trugs_tools-1.0.0/src/trugs_tools/schemas/__init__.py +163 -0
  50. trugs_tools-1.0.0/src/trugs_tools/schemas/aaa.schema.json +21 -0
  51. trugs_tools-1.0.0/src/trugs_tools/schemas/core.schema.json +45 -0
  52. trugs_tools-1.0.0/src/trugs_tools/schemas/knowledge_v1.schema.json +36 -0
  53. trugs_tools-1.0.0/src/trugs_tools/schemas/nested.schema.json +21 -0
  54. trugs_tools-1.0.0/src/trugs_tools/schemas/orchestration.schema.json +21 -0
  55. trugs_tools-1.0.0/src/trugs_tools/schemas/project_tracking.schema.json +21 -0
  56. trugs_tools-1.0.0/src/trugs_tools/schemas/web.schema.json +21 -0
  57. trugs_tools-1.0.0/src/trugs_tools/schemas/writer.schema.json +21 -0
  58. trugs_tools-1.0.0/src/trugs_tools/tdelete.py +109 -0
  59. trugs_tools-1.0.0/src/trugs_tools/templates/__init__.py +20 -0
  60. trugs_tools-1.0.0/src/trugs_tools/templates/knowledge_v1.py +367 -0
  61. trugs_tools-1.0.0/src/trugs_tools/templates/nested.py +191 -0
  62. trugs_tools-1.0.0/src/trugs_tools/templates/orchestration.py +207 -0
  63. trugs_tools-1.0.0/src/trugs_tools/templates/web.py +166 -0
  64. trugs_tools-1.0.0/src/trugs_tools/templates/writer.py +217 -0
  65. trugs_tools-1.0.0/src/trugs_tools/tget.py +114 -0
  66. trugs_tools-1.0.0/src/trugs_tools/trl.py +1610 -0
  67. trugs_tools-1.0.0/src/trugs_tools/trug_graph.py +167 -0
  68. trugs_tools-1.0.0/src/trugs_tools/tunlink.py +107 -0
  69. trugs_tools-1.0.0/src/trugs_tools/tupdate.py +168 -0
  70. trugs_tools-1.0.0/src/trugs_tools/validate.py +551 -0
  71. trugs_tools-1.0.0/src/trugs_tools/validator.py +133 -0
  72. trugs_tools-1.0.0/src/trugs_tools/web/__init__.py +153 -0
  73. trugs_tools-1.0.0/src/trugs_tools/web/crawler.py +251 -0
  74. trugs_tools-1.0.0/src/trugs_tools/web/credibility.py +301 -0
  75. trugs_tools-1.0.0/src/trugs_tools/web/extractor.py +481 -0
  76. trugs_tools-1.0.0/src/trugs_tools/web/graph_builder.py +432 -0
  77. trugs_tools-1.0.0/src/trugs_tools/web/hub/__init__.py +66 -0
  78. trugs_tools-1.0.0/src/trugs_tools/web/hub/cross_trug_edges.py +353 -0
  79. trugs_tools-1.0.0/src/trugs_tools/web/hub/hub_agent.py +445 -0
  80. trugs_tools-1.0.0/src/trugs_tools/web/hub/orchestrate.py +295 -0
  81. trugs_tools-1.0.0/src/trugs_tools/web/hub/qualifying_interest.py +205 -0
  82. trugs_tools-1.0.0/src/trugs_tools/web/query/__init__.py +37 -0
  83. trugs_tools-1.0.0/src/trugs_tools/web/query/loader.py +459 -0
  84. trugs_tools-1.0.0/src/trugs_tools/web/query/synthesize.py +443 -0
  85. trugs_tools-1.0.0/src/trugs_tools/web/query/traverse.py +312 -0
  86. trugs_tools-1.0.0/src/trugs_tools/web/refresh/__init__.py +41 -0
  87. trugs_tools-1.0.0/src/trugs_tools/web/refresh/diff.py +222 -0
  88. trugs_tools-1.0.0/src/trugs_tools/web/refresh/persistent_query.py +202 -0
  89. trugs_tools-1.0.0/src/trugs_tools/web/resolver.py +271 -0
  90. trugs_tools-1.0.0/src/trugs_tools/web/weight/__init__.py +32 -0
  91. trugs_tools-1.0.0/src/trugs_tools/web/weight/topology.py +186 -0
  92. trugs_tools-1.0.0/src/trugs_tools.egg-info/PKG-INFO +97 -0
  93. trugs_tools-1.0.0/src/trugs_tools.egg-info/SOURCES.txt +150 -0
  94. trugs_tools-1.0.0/src/trugs_tools.egg-info/dependency_links.txt +1 -0
  95. trugs_tools-1.0.0/src/trugs_tools.egg-info/entry_points.txt +2 -0
  96. trugs_tools-1.0.0/src/trugs_tools.egg-info/requires.txt +27 -0
  97. trugs_tools-1.0.0/src/trugs_tools.egg-info/top_level.txt +1 -0
  98. trugs_tools-1.0.0/tests/test_aaa_generator.py +517 -0
  99. trugs_tools-1.0.0/tests/test_aaa_generator_trug.py +93 -0
  100. trugs_tools-1.0.0/tests/test_aaa_renderer.py +77 -0
  101. trugs_tools-1.0.0/tests/test_aaa_validator_trug.py +105 -0
  102. trugs_tools-1.0.0/tests/test_agent_instructions_renderer.py +324 -0
  103. trugs_tools-1.0.0/tests/test_build_language_trug.py +94 -0
  104. trugs_tools-1.0.0/tests/test_claude_instructions_renderer.py +375 -0
  105. trugs_tools-1.0.0/tests/test_cli.py +610 -0
  106. trugs_tools-1.0.0/tests/test_compliance_check.py +394 -0
  107. trugs_tools-1.0.0/tests/test_examples_regression.py +149 -0
  108. trugs_tools-1.0.0/tests/test_filesystem_cli.py +254 -0
  109. trugs_tools-1.0.0/tests/test_filesystem_core.py +284 -0
  110. trugs_tools-1.0.0/tests/test_filesystem_integration.py +280 -0
  111. trugs_tools-1.0.0/tests/test_filesystem_mutation.py +317 -0
  112. trugs_tools-1.0.0/tests/test_filesystem_nav.py +219 -0
  113. trugs_tools-1.0.0/tests/test_filesystem_utils.py +250 -0
  114. trugs_tools-1.0.0/tests/test_folder_check.py +752 -0
  115. trugs_tools-1.0.0/tests/test_folder_init.py +895 -0
  116. trugs_tools-1.0.0/tests/test_folder_map.py +925 -0
  117. trugs_tools-1.0.0/tests/test_folder_render.py +599 -0
  118. trugs_tools-1.0.0/tests/test_folder_sync.py +1474 -0
  119. trugs_tools-1.0.0/tests/test_generator.py +352 -0
  120. trugs_tools-1.0.0/tests/test_integration.py +411 -0
  121. trugs_tools-1.0.0/tests/test_integration_components.py +120 -0
  122. trugs_tools-1.0.0/tests/test_integration_perago.py +148 -0
  123. trugs_tools-1.0.0/tests/test_integration_trugs_research.py +164 -0
  124. trugs_tools-1.0.0/tests/test_memory.py +970 -0
  125. trugs_tools-1.0.0/tests/test_memory_audit.py +514 -0
  126. trugs_tools-1.0.0/tests/test_memory_import.py +534 -0
  127. trugs_tools-1.0.0/tests/test_memory_render.py +552 -0
  128. trugs_tools-1.0.0/tests/test_performance.py +63 -0
  129. trugs_tools-1.0.0/tests/test_renderer.py +1068 -0
  130. trugs_tools-1.0.0/tests/test_rules_10_11.py +159 -0
  131. trugs_tools-1.0.0/tests/test_schemas.py +330 -0
  132. trugs_tools-1.0.0/tests/test_trl.py +1274 -0
  133. trugs_tools-1.0.0/tests/test_trug_analyzer.py +525 -0
  134. trugs_tools-1.0.0/tests/test_trug_graph.py +351 -0
  135. trugs_tools-1.0.0/tests/test_validate.py +592 -0
  136. trugs_tools-1.0.0/tests/test_validator.py +245 -0
  137. trugs_tools-1.0.0/tests/test_web_crawler.py +220 -0
  138. trugs_tools-1.0.0/tests/test_web_credibility.py +233 -0
  139. trugs_tools-1.0.0/tests/test_web_extractor.py +386 -0
  140. trugs_tools-1.0.0/tests/test_web_graph_builder.py +354 -0
  141. trugs_tools-1.0.0/tests/test_web_hub_agent.py +526 -0
  142. trugs_tools-1.0.0/tests/test_web_hub_cross_trug_edges.py +432 -0
  143. trugs_tools-1.0.0/tests/test_web_hub_orchestrate.py +136 -0
  144. trugs_tools-1.0.0/tests/test_web_hub_qualifying_interest.py +329 -0
  145. trugs_tools-1.0.0/tests/test_web_query_integration.py +62 -0
  146. trugs_tools-1.0.0/tests/test_web_query_loader.py +313 -0
  147. trugs_tools-1.0.0/tests/test_web_query_synthesize.py +253 -0
  148. trugs_tools-1.0.0/tests/test_web_query_traverse.py +191 -0
  149. trugs_tools-1.0.0/tests/test_web_refresh_diff.py +352 -0
  150. trugs_tools-1.0.0/tests/test_web_refresh_persistent_query.py +282 -0
  151. trugs_tools-1.0.0/tests/test_web_resolver.py +213 -0
  152. trugs_tools-1.0.0/tests/test_web_weight_topology.py +296 -0
@@ -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 the 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 any 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 TRUGS LLC
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.
@@ -0,0 +1,28 @@
1
+ TRUGS Tools (trugs-tools) — Unified CLI for the TRUGS specification
2
+ Copyright 2026 TRUGS LLC
3
+
4
+ Licensed under the Apache License, Version 2.0.
5
+
6
+ PATENT NOTICE
7
+
8
+ This license does not cover self-developing graph systems. Graph structures or substrates
9
+ that modify themselves during execution are the subject of U.S. patent
10
+ application 19/575,491. See https://github.com/Xepayac/XEPAYAC_LLC for
11
+ AGPL 3.0 and commercial licensing.
12
+
13
+ ---
14
+
15
+ PROVENANCE
16
+
17
+ This package consolidates three previously-separate sources:
18
+
19
+ 1. TRUGS-DEVELOPMENT/TRUGS_TOOLS_development/ (private Xepayac/TRUGS-DEVELOPMENT mono-repo folder)
20
+ — folder lifecycle CLIs, branch schemas, templates, web pipeline
21
+
22
+ 2. TRUGS-LLC/TRUGS/tools/ (migrated in the `trugs` 2.0.0 breaking release)
23
+ — memory subsystem, TRL compiler, compliance_check, validate, tget/tupdate/tdelete/tunlink
24
+
25
+ 3. Xepayac/TRUGS-AAA (archived)
26
+ — aaa_validator.py now exposed as `tg aaa validate`
27
+
28
+ See TRUGS-LLC/TRUGS-DEVELOPMENT#1576 for the portfolio reorganization EPIC.
@@ -0,0 +1,97 @@
1
+ Metadata-Version: 2.4
2
+ Name: trugs-tools
3
+ Version: 1.0.0
4
+ Summary: TRUGS CLI tools — validation, generation, memory, folder lifecycle, AAA protocol. Single `tg` binary with git-style subcommands.
5
+ Author: Xepayac LLC
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/TRUGS-LLC/TRUGS-TOOLS
8
+ Project-URL: Issues, https://github.com/TRUGS-LLC/TRUGS-TOOLS/issues
9
+ Project-URL: Source, https://github.com/TRUGS-LLC/TRUGS-TOOLS
10
+ Project-URL: Documentation, https://github.com/TRUGS-LLC/TRUGS-TOOLS/blob/main/REFERENCE/
11
+ Keywords: trugs,cli,graph,spec,tg
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Topic :: Software Development :: Code Generators
20
+ Requires-Python: >=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ License-File: NOTICE
24
+ Requires-Dist: trugs-store>=0.1.0
25
+ Requires-Dist: PyYAML>=6.0
26
+ Requires-Dist: jsonschema>=4.0
27
+ Requires-Dist: requests>=2.28
28
+ Provides-Extra: web
29
+ Requires-Dist: httpx>=0.24; extra == "web"
30
+ Requires-Dist: beautifulsoup4>=4.12; extra == "web"
31
+ Requires-Dist: lxml>=4.9; extra == "web"
32
+ Provides-Extra: llm
33
+ Requires-Dist: anthropic>=0.20; extra == "llm"
34
+ Requires-Dist: openai>=1.0; extra == "llm"
35
+ Provides-Extra: test
36
+ Requires-Dist: pytest>=7.0; extra == "test"
37
+ Requires-Dist: pytest-cov>=4.0; extra == "test"
38
+ Requires-Dist: pytest-asyncio>=0.21; extra == "test"
39
+ Requires-Dist: respx>=0.20; extra == "test"
40
+ Requires-Dist: httpx>=0.24; extra == "test"
41
+ Requires-Dist: beautifulsoup4>=4.12; extra == "test"
42
+ Requires-Dist: lxml>=4.9; extra == "test"
43
+ Provides-Extra: dev
44
+ Requires-Dist: trugs-tools[test]; extra == "dev"
45
+ Requires-Dist: build; extra == "dev"
46
+ Requires-Dist: twine; extra == "dev"
47
+ Dynamic: license-file
48
+
49
+ # TRUGS Tools
50
+
51
+ **CLI toolkit for the TRUGS specification.** One binary `tg` with git-style nested subcommands — validation, generation, memory, folder lifecycle, AAA protocol, and more.
52
+
53
+ ## Install
54
+
55
+ ```bash
56
+ pip install trugs-tools
57
+ ```
58
+
59
+ ## Quickstart
60
+
61
+ ```bash
62
+ tg --help # see all commands
63
+ tg init my-project # create folder.trug.json
64
+ tg check # validate it
65
+ tg compliance . # Dark Code compliance scan
66
+ tg memory remember ~/.../memory.trug.json "decision text" --type project --rule "terse"
67
+ tg aaa validate my-issue.aaa.md
68
+ ```
69
+
70
+ ## Command surface
71
+
72
+ 36 operations under one binary:
73
+
74
+ - **Lifecycle:** `init`, `check`, `sync`, `render`, `validate`
75
+ - **Inspection:** `info`, `ls`, `where`, `find`
76
+ - **CRUD:** `add`, `get`, `update`, `delete`, `mv`, `link`, `unlink`, `dim`
77
+ - **Special:** `compliance`, `trl`, `export`, `import`
78
+ - **Memory:** `tg memory <sub>` — 8 subs including remember/recall/forget/associate/render/audit/import/reconcile
79
+ - **AAA:** `tg aaa <sub>` — generate, validate
80
+ - **EPIC:** `tg epic sync`
81
+
82
+ ## Role in the TRUGS-LLC portfolio
83
+
84
+ - **[TRUGS](https://github.com/TRUGS-LLC/TRUGS)** — spec (CORE + TRL + reference papers). Zero CLIs, zero code.
85
+ - **[TRUGS-AGENT](https://github.com/TRUGS-LLC/TRUGS-AGENT)** — marketing hub + orientation (concept folders with examples). Zero install to read.
86
+ - **TRUGS-TOOLS** (this repo) — reference + implementation (CLIs + schemas + tests). Install when you want automation.
87
+ - **[TRUGS-STORE](https://github.com/TRUGS-LLC/TRUGS-STORE)** — swappable graph storage backend.
88
+
89
+ ## Documentation
90
+
91
+ - [CHANGELOG.md](./CHANGELOG.md) — version history
92
+ - [REFERENCE/](./REFERENCE/) — SPEC_*.md docs for each tool
93
+ - [branches/](./branches/) — experimental branch vocabularies
94
+
95
+ ## License
96
+
97
+ Apache-2.0 — see [LICENSE](./LICENSE)
@@ -0,0 +1,49 @@
1
+ # TRUGS Tools
2
+
3
+ **CLI toolkit for the TRUGS specification.** One binary `tg` with git-style nested subcommands — validation, generation, memory, folder lifecycle, AAA protocol, and more.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install trugs-tools
9
+ ```
10
+
11
+ ## Quickstart
12
+
13
+ ```bash
14
+ tg --help # see all commands
15
+ tg init my-project # create folder.trug.json
16
+ tg check # validate it
17
+ tg compliance . # Dark Code compliance scan
18
+ tg memory remember ~/.../memory.trug.json "decision text" --type project --rule "terse"
19
+ tg aaa validate my-issue.aaa.md
20
+ ```
21
+
22
+ ## Command surface
23
+
24
+ 36 operations under one binary:
25
+
26
+ - **Lifecycle:** `init`, `check`, `sync`, `render`, `validate`
27
+ - **Inspection:** `info`, `ls`, `where`, `find`
28
+ - **CRUD:** `add`, `get`, `update`, `delete`, `mv`, `link`, `unlink`, `dim`
29
+ - **Special:** `compliance`, `trl`, `export`, `import`
30
+ - **Memory:** `tg memory <sub>` — 8 subs including remember/recall/forget/associate/render/audit/import/reconcile
31
+ - **AAA:** `tg aaa <sub>` — generate, validate
32
+ - **EPIC:** `tg epic sync`
33
+
34
+ ## Role in the TRUGS-LLC portfolio
35
+
36
+ - **[TRUGS](https://github.com/TRUGS-LLC/TRUGS)** — spec (CORE + TRL + reference papers). Zero CLIs, zero code.
37
+ - **[TRUGS-AGENT](https://github.com/TRUGS-LLC/TRUGS-AGENT)** — marketing hub + orientation (concept folders with examples). Zero install to read.
38
+ - **TRUGS-TOOLS** (this repo) — reference + implementation (CLIs + schemas + tests). Install when you want automation.
39
+ - **[TRUGS-STORE](https://github.com/TRUGS-LLC/TRUGS-STORE)** — swappable graph storage backend.
40
+
41
+ ## Documentation
42
+
43
+ - [CHANGELOG.md](./CHANGELOG.md) — version history
44
+ - [REFERENCE/](./REFERENCE/) — SPEC_*.md docs for each tool
45
+ - [branches/](./branches/) — experimental branch vocabularies
46
+
47
+ ## License
48
+
49
+ Apache-2.0 — see [LICENSE](./LICENSE)
@@ -0,0 +1,80 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "trugs-tools"
7
+ version = "1.0.0"
8
+ description = "TRUGS CLI tools — validation, generation, memory, folder lifecycle, AAA protocol. Single `tg` binary with git-style subcommands."
9
+ readme = "README.md"
10
+ license = { text = "Apache-2.0" }
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "Xepayac LLC" }]
13
+ keywords = ["trugs", "cli", "graph", "spec", "tg"]
14
+ classifiers = [
15
+ "Development Status :: 5 - Production/Stable",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: Apache Software License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Topic :: Software Development :: Libraries",
22
+ "Topic :: Software Development :: Code Generators",
23
+ ]
24
+ dependencies = [
25
+ "trugs-store>=0.1.0",
26
+ "PyYAML>=6.0",
27
+ "jsonschema>=4.0",
28
+ "requests>=2.28",
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ web = [
33
+ "httpx>=0.24",
34
+ "beautifulsoup4>=4.12",
35
+ "lxml>=4.9",
36
+ ]
37
+ llm = [
38
+ "anthropic>=0.20",
39
+ "openai>=1.0",
40
+ ]
41
+ test = [
42
+ "pytest>=7.0",
43
+ "pytest-cov>=4.0",
44
+ "pytest-asyncio>=0.21",
45
+ "respx>=0.20",
46
+ "httpx>=0.24",
47
+ "beautifulsoup4>=4.12",
48
+ "lxml>=4.9",
49
+ ]
50
+ dev = [
51
+ "trugs-tools[test]",
52
+ "build",
53
+ "twine",
54
+ ]
55
+
56
+ [project.urls]
57
+ Homepage = "https://github.com/TRUGS-LLC/TRUGS-TOOLS"
58
+ Issues = "https://github.com/TRUGS-LLC/TRUGS-TOOLS/issues"
59
+ Source = "https://github.com/TRUGS-LLC/TRUGS-TOOLS"
60
+ Documentation = "https://github.com/TRUGS-LLC/TRUGS-TOOLS/blob/main/REFERENCE/"
61
+
62
+ [project.scripts]
63
+ tg = "trugs_tools.cli:main"
64
+
65
+ [tool.setuptools]
66
+ package-dir = { "" = "src" }
67
+
68
+ [tool.setuptools.packages.find]
69
+ where = ["src"]
70
+ include = ["trugs_tools*"]
71
+
72
+ [tool.setuptools.package-data]
73
+ trugs_tools = ["schemas/*.json", "templates/*.json", "data/*.json"]
74
+
75
+ [tool.pytest.ini_options]
76
+ testpaths = ["tests"]
77
+ python_files = ["test_*.py"]
78
+ python_classes = ["Test*"]
79
+ python_functions = ["test_*"]
80
+ asyncio_mode = "auto"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,20 @@
1
+ """TRUGS Tools - Validation, generation, and analysis for TRUGS v1.0."""
2
+
3
+ __version__ = "1.0.0"
4
+ __codename__ = "AAA_AARDVARK"
5
+
6
+ from trugs_tools.validator import validate_trug, ValidationResult
7
+ from trugs_tools.generator import generate_trug
8
+ from trugs_tools.trug_graph import TrugGraph
9
+ from trugs_tools.analyzer import TrugAnalyzer, TrugComplexityMetrics
10
+
11
+ __all__ = [
12
+ "validate_trug",
13
+ "ValidationResult",
14
+ "generate_trug",
15
+ "TrugGraph",
16
+ "TrugAnalyzer",
17
+ "TrugComplexityMetrics",
18
+ "__version__",
19
+ "__codename__",
20
+ ]