@mmnto/cli 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -21
- package/dist/commands/compile.d.ts +1 -0
- package/dist/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +94 -78
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/docs.d.ts +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +32 -3
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/docs.test.js +111 -95
- package/dist/commands/docs.test.js.map +1 -1
- package/dist/commands/extract.d.ts +1 -0
- package/dist/commands/extract.d.ts.map +1 -1
- package/dist/commands/extract.js +15 -5
- package/dist/commands/extract.js.map +1 -1
- package/dist/commands/extract.test.js +54 -1
- package/dist/commands/extract.test.js.map +1 -1
- package/dist/commands/shield.d.ts +12 -0
- package/dist/commands/shield.d.ts.map +1 -1
- package/dist/commands/shield.js +90 -2
- package/dist/commands/shield.js.map +1 -1
- package/dist/commands/shield.test.js +58 -1
- package/dist/commands/shield.test.js.map +1 -1
- package/dist/commands/wrap.js +1 -1
- package/dist/commands/wrap.js.map +1 -1
- package/dist/commands/wrap.test.js +2 -2
- package/dist/commands/wrap.test.js.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/orchestrators/conformance.test.d.ts +2 -0
- package/dist/orchestrators/conformance.test.d.ts.map +1 -0
- package/dist/orchestrators/conformance.test.js +208 -0
- package/dist/orchestrators/conformance.test.js.map +1 -0
- package/dist/orchestrators/orchestrator.d.ts +23 -0
- package/dist/orchestrators/orchestrator.d.ts.map +1 -1
- package/dist/orchestrators/orchestrator.js +42 -0
- package/dist/orchestrators/orchestrator.js.map +1 -1
- package/dist/orchestrators/orchestrator.test.js +95 -1
- package/dist/orchestrators/orchestrator.test.js.map +1 -1
- package/dist/orchestrators/smoke.integration.test.d.ts +2 -0
- package/dist/orchestrators/smoke.integration.test.d.ts.map +1 -0
- package/dist/orchestrators/smoke.integration.test.js +47 -0
- package/dist/orchestrators/smoke.integration.test.js.map +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +29 -18
- package/dist/utils.js.map +1 -1
- package/dist/utils.test.js +183 -1
- package/dist/utils.test.js.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 2025-2026 Matt Sutton / Memento AI (mmnto-ai)
|
|
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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAiFA,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAsJ3E"}
|
package/dist/commands/compile.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
2
|
import * as path from 'node:path';
|
|
3
|
-
import { hashLesson, loadCompiledRules, parseCompilerResponse, parseLessonsFile, saveCompiledRules, validateRegex, } from '@mmnto/totem';
|
|
3
|
+
import { exportLessons, hashLesson, loadCompiledRules, parseCompilerResponse, parseLessonsFile, saveCompiledRules, validateRegex, } from '@mmnto/totem';
|
|
4
4
|
import { log } from '../ui.js';
|
|
5
5
|
import { loadConfig, loadEnv, resolveConfigPath, runOrchestrator } from '../utils.js';
|
|
6
6
|
// ─── Constants ──────────────────────────────────────
|
|
@@ -80,88 +80,104 @@ export async function compileCommand(options) {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
log.info(TAG, `Found ${lessons.length} lessons in lessons.md`);
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
// ─── Phase 1: Regex compilation (requires orchestrator) ──
|
|
84
|
+
if (config.orchestrator) {
|
|
85
|
+
const existingRules = options.force ? [] : loadCompiledRules(rulesPath);
|
|
86
|
+
const existingByHash = new Map(existingRules.map((r) => [r.lessonHash, r]));
|
|
87
|
+
const toCompile = [];
|
|
88
|
+
for (const lesson of lessons) {
|
|
89
|
+
const hash = hashLesson(lesson.heading, lesson.body);
|
|
90
|
+
if (!existingByHash.has(hash)) {
|
|
91
|
+
toCompile.push({ index: lesson.index, heading: lesson.heading, body: lesson.body, hash });
|
|
92
|
+
}
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
log.success(TAG, `All ${lessons.length} lessons already compiled. Use --force to recompile.`);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
log.info(TAG, `${toCompile.length} lessons need compilation (${existingRules.length} already compiled)`);
|
|
99
|
-
// Compile each lesson
|
|
100
|
-
let compiled = 0;
|
|
101
|
-
let skipped = 0;
|
|
102
|
-
let failed = 0;
|
|
103
|
-
const newRules = [...existingRules];
|
|
104
|
-
// Remove stale rules (lessons that no longer exist)
|
|
105
|
-
const currentHashes = new Set(lessons.map((l) => hashLesson(l.heading, l.body)));
|
|
106
|
-
const freshRules = newRules.filter((r) => currentHashes.has(r.lessonHash));
|
|
107
|
-
const pruned = newRules.length - freshRules.length;
|
|
108
|
-
if (pruned > 0) {
|
|
109
|
-
log.dim(TAG, `Pruned ${pruned} stale rules (lessons edited or removed)`);
|
|
110
|
-
}
|
|
111
|
-
newRules.length = 0;
|
|
112
|
-
newRules.push(...freshRules);
|
|
113
|
-
for (const lesson of toCompile) {
|
|
114
|
-
const prompt = `${COMPILER_SYSTEM_PROMPT}\n\n## Lesson to Compile\n\nHeading: ${lesson.heading}\n\n${lesson.body}`;
|
|
115
|
-
const response = await runOrchestrator({
|
|
116
|
-
prompt,
|
|
117
|
-
tag: TAG,
|
|
118
|
-
options,
|
|
119
|
-
config,
|
|
120
|
-
cwd,
|
|
121
|
-
});
|
|
122
|
-
if (response == null) {
|
|
123
|
-
// --raw mode — prompt was output, nothing to parse
|
|
124
|
-
continue;
|
|
94
|
+
if (toCompile.length === 0) {
|
|
95
|
+
log.success(TAG, `All ${lessons.length} lessons already compiled. Use --force to recompile.`); // totem-ignore
|
|
125
96
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
97
|
+
else {
|
|
98
|
+
log.info(TAG, `${toCompile.length} lessons need compilation (${existingRules.length} already compiled)`);
|
|
99
|
+
let compiled = 0;
|
|
100
|
+
let skipped = 0;
|
|
101
|
+
let failed = 0;
|
|
102
|
+
const newRules = [...existingRules];
|
|
103
|
+
const currentHashes = new Set(lessons.map((l) => hashLesson(l.heading, l.body)));
|
|
104
|
+
const freshRules = newRules.filter((r) => currentHashes.has(r.lessonHash));
|
|
105
|
+
const pruned = newRules.length - freshRules.length;
|
|
106
|
+
if (pruned > 0) {
|
|
107
|
+
log.dim(TAG, `Pruned ${pruned} stale rules (lessons edited or removed)`); // totem-ignore
|
|
108
|
+
}
|
|
109
|
+
newRules.length = 0;
|
|
110
|
+
newRules.push(...freshRules);
|
|
111
|
+
for (const lesson of toCompile) {
|
|
112
|
+
const prompt = `${COMPILER_SYSTEM_PROMPT}\n\n## Lesson to Compile\n\nHeading: ${lesson.heading}\n\n${lesson.body}`;
|
|
113
|
+
const response = await runOrchestrator({
|
|
114
|
+
prompt,
|
|
115
|
+
tag: TAG,
|
|
116
|
+
options,
|
|
117
|
+
config,
|
|
118
|
+
cwd,
|
|
119
|
+
});
|
|
120
|
+
if (response == null) {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
const parsed = parseCompilerResponse(response);
|
|
124
|
+
if (!parsed) {
|
|
125
|
+
log.warn(TAG, `[${lesson.heading}] Failed to parse LLM response — skipping`); // totem-ignore
|
|
126
|
+
failed++;
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if (!parsed.compilable) {
|
|
130
|
+
log.dim(TAG, `[${lesson.heading}] Not compilable (conceptual/architectural) — skipping`); // totem-ignore
|
|
131
|
+
skipped++;
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
if (!parsed.pattern || !parsed.message) {
|
|
135
|
+
log.warn(TAG, `[${lesson.heading}] Missing pattern or message — skipping`); // totem-ignore
|
|
136
|
+
failed++;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
const validation = validateRegex(parsed.pattern);
|
|
140
|
+
if (!validation.valid) {
|
|
141
|
+
log.warn(TAG, `[${lesson.heading}] Rejected regex: ${validation.reason} — skipping`); // totem-ignore
|
|
142
|
+
failed++;
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
newRules.push({
|
|
146
|
+
lessonHash: lesson.hash,
|
|
147
|
+
lessonHeading: lesson.heading,
|
|
148
|
+
pattern: parsed.pattern,
|
|
149
|
+
message: parsed.message,
|
|
150
|
+
engine: 'regex',
|
|
151
|
+
compiledAt: new Date().toISOString(),
|
|
152
|
+
...(parsed.fileGlobs && parsed.fileGlobs.length > 0
|
|
153
|
+
? { fileGlobs: parsed.fileGlobs }
|
|
154
|
+
: {}),
|
|
155
|
+
});
|
|
156
|
+
compiled++;
|
|
157
|
+
log.success(TAG, `[${lesson.heading}] Compiled: /${parsed.pattern}/`); // totem-ignore
|
|
158
|
+
}
|
|
159
|
+
if (!options.raw) {
|
|
160
|
+
saveCompiledRules(rulesPath, newRules);
|
|
161
|
+
log.info(TAG, `Results: ${compiled} compiled, ${skipped} skipped (conceptual), ${failed} failed`);
|
|
162
|
+
log.success(TAG, `${newRules.length} total rules saved to ${config.totemDir}/${COMPILED_RULES_FILE}`);
|
|
163
|
+
}
|
|
131
164
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
165
|
+
}
|
|
166
|
+
else if (!options.export) {
|
|
167
|
+
throw new Error('[Totem Error] No orchestrator configured. Regex compilation requires a Full-tier config.\n' +
|
|
168
|
+
'Use --export to export lessons to AI config files without an orchestrator.');
|
|
169
|
+
}
|
|
170
|
+
// ─── Phase 2: Export to AI config files (deterministic, no LLM) ──
|
|
171
|
+
if (options.export) {
|
|
172
|
+
if (!config.exports || Object.keys(config.exports).length === 0) {
|
|
173
|
+
log.warn(TAG, 'No export targets configured in totem.config.ts. Add an `exports` field.');
|
|
174
|
+
return;
|
|
141
175
|
}
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
continue;
|
|
176
|
+
for (const [name, filePath] of Object.entries(config.exports)) {
|
|
177
|
+
const absPath = path.join(cwd, filePath);
|
|
178
|
+
exportLessons(lessons, absPath);
|
|
179
|
+
log.success(TAG, `Exported ${lessons.length} rules to ${filePath} (${name})`); // totem-ignore
|
|
147
180
|
}
|
|
148
|
-
newRules.push({
|
|
149
|
-
lessonHash: lesson.hash,
|
|
150
|
-
lessonHeading: lesson.heading,
|
|
151
|
-
pattern: parsed.pattern,
|
|
152
|
-
message: parsed.message,
|
|
153
|
-
engine: 'regex',
|
|
154
|
-
compiledAt: new Date().toISOString(),
|
|
155
|
-
...(parsed.fileGlobs && parsed.fileGlobs.length > 0 ? { fileGlobs: parsed.fileGlobs } : {}),
|
|
156
|
-
});
|
|
157
|
-
compiled++;
|
|
158
|
-
log.success(TAG, `[${lesson.heading}] Compiled: /${parsed.pattern}/`);
|
|
159
|
-
}
|
|
160
|
-
// Save results
|
|
161
|
-
if (!options.raw) {
|
|
162
|
-
saveCompiledRules(rulesPath, newRules);
|
|
163
|
-
log.info(TAG, `Results: ${compiled} compiled, ${skipped} skipped (conceptual), ${failed} failed`);
|
|
164
|
-
log.success(TAG, `${newRules.length} total rules saved to ${config.totemDir}/${COMPILED_RULES_FILE}`);
|
|
165
181
|
}
|
|
166
182
|
}
|
|
167
183
|
//# sourceMappingURL=compile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAEL,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtF,uDAAuD;AAEvD,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,uDAAuD;AAEvD,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqD9B,CAAC;
|
|
1
|
+
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAE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M,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YACzC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAChC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,YAAY,OAAO,CAAC,MAAM,aAAa,QAAQ,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,eAAe;QAChG,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/commands/docs.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export interface DocsOptions {
|
|
|
12
12
|
dryRun?: boolean;
|
|
13
13
|
yes?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare function docsCommand(options: DocsOptions): Promise<void>;
|
|
15
|
+
export declare function docsCommand(inputs: string[], options: DocsOptions): Promise<void>;
|
|
16
16
|
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"AA2IA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtE;AAiCD,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiLvF"}
|
package/dist/commands/docs.js
CHANGED
|
@@ -24,6 +24,7 @@ Given a documentation file, its purpose, and recent project changes (git log, cl
|
|
|
24
24
|
- **Evidence-Based:** Only update information that is supported by the provided git log, closed issues, or active work context. Do NOT invent features or status changes.
|
|
25
25
|
- **Phase Numbering:** If the document references phases, use ONLY the phase numbering from the provided active_work.md context. Do NOT change or renumber phases.
|
|
26
26
|
- **Conservative Updates:** When in doubt, keep the existing text. Only change what the evidence supports.
|
|
27
|
+
- **Checkbox Integrity:** NEVER change the checked/unchecked state of markdown checkboxes (\`[x]\` / \`[ ]\`) unless the commit history explicitly contains a revert, deprecation, or re-opening of the referenced item. Priority rankings in active_work.md are NOT evidence of completion status.
|
|
27
28
|
- **XML Wrapper (MANDATORY):** Wrap your ENTIRE output inside \`<updated_document>\` and \`</updated_document>\` tags. No text before or after the tags. No markdown code fences. Example:
|
|
28
29
|
|
|
29
30
|
\`\`\`
|
|
@@ -125,7 +126,7 @@ function showDiff(filePath, original, updated) {
|
|
|
125
126
|
log.info(TAG, `${filePath}: +${added} / -${removed} lines changed`);
|
|
126
127
|
return true;
|
|
127
128
|
}
|
|
128
|
-
export async function docsCommand(options) {
|
|
129
|
+
export async function docsCommand(inputs, options) {
|
|
129
130
|
const cwd = process.cwd();
|
|
130
131
|
const configPath = resolveConfigPath(cwd);
|
|
131
132
|
loadEnv(cwd);
|
|
@@ -140,9 +141,37 @@ export async function docsCommand(options) {
|
|
|
140
141
|
err.name = 'NoDocsConfiguredError';
|
|
141
142
|
throw err;
|
|
142
143
|
}
|
|
143
|
-
//
|
|
144
|
+
// Resolve targets from positional args, --only, or all docs
|
|
144
145
|
let targets = config.docs;
|
|
145
|
-
|
|
146
|
+
// Fail-fast: conflicting targeting flags
|
|
147
|
+
if (inputs.length > 0 && options.only) {
|
|
148
|
+
throw new Error(`[Totem Error] Cannot combine positional doc paths with --only flag.\n` +
|
|
149
|
+
`Use one or the other: \`totem docs README.md\` OR \`totem docs --only readme\`.`);
|
|
150
|
+
}
|
|
151
|
+
if (inputs.length > 0) {
|
|
152
|
+
// Positional path targeting — fail-fast validation
|
|
153
|
+
const normalize = (p) => path.relative(cwd, path.resolve(cwd, p)).replace(/\\/g, '/');
|
|
154
|
+
const configPaths = new Map(config.docs.map((d) => [normalize(d.path), d]));
|
|
155
|
+
const resolved = new Set();
|
|
156
|
+
const invalid = [];
|
|
157
|
+
for (const input of inputs) {
|
|
158
|
+
const normalized = normalize(input);
|
|
159
|
+
const match = configPaths.get(normalized);
|
|
160
|
+
if (match) {
|
|
161
|
+
resolved.add(match);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
invalid.push(input);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (invalid.length > 0) {
|
|
168
|
+
throw new Error(`[Totem Error] Unknown doc path(s): ${invalid.join(', ')}\n` +
|
|
169
|
+
`Available: ${config.docs.map((d) => d.path).join(', ')}`);
|
|
170
|
+
}
|
|
171
|
+
targets = Array.from(resolved);
|
|
172
|
+
}
|
|
173
|
+
else if (options.only) {
|
|
174
|
+
// Legacy --only filter
|
|
146
175
|
const onlyNames = options.only.split(',').map((s) => s.trim().toLowerCase());
|
|
147
176
|
targets = config.docs.filter((d) => {
|
|
148
177
|
const basename = path.basename(d.path, path.extname(d.path)).toLowerCase();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,WAAW,G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