sela-core 1.0.7 → 1.0.9
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/README.md +27 -17
- package/dist/cli/ErrorHandler.d.ts +1 -1
- package/dist/cli/ErrorHandler.js +14 -14
- package/dist/cli/commands/bulk.d.ts +1 -1
- package/dist/cli/commands/bulk.d.ts.map +1 -1
- package/dist/cli/commands/bulk.js +51 -33
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +26 -18
- package/dist/cli/commands/merge.d.ts +13 -0
- package/dist/cli/commands/merge.d.ts.map +1 -0
- package/dist/cli/commands/merge.js +119 -0
- package/dist/cli/commands/showReport.d.ts +1 -1
- package/dist/cli/commands/showReport.d.ts.map +1 -1
- package/dist/cli/commands/showReport.js +12 -10
- package/dist/cli/commands/status.d.ts +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +8 -8
- package/dist/cli/commands/sync.d.ts +1 -1
- package/dist/cli/commands/sync.d.ts.map +1 -1
- package/dist/cli/commands/sync.js +38 -30
- package/dist/cli/index.js +12 -9
- package/dist/cli/ui/DnaTable.d.ts +1 -1
- package/dist/cli/ui/DnaTable.d.ts.map +1 -1
- package/dist/cli/ui/DnaTable.js +23 -16
- package/dist/cli/ui/RefactorWizard.d.ts +3 -3
- package/dist/cli/ui/RefactorWizard.d.ts.map +1 -1
- package/dist/cli/ui/RefactorWizard.js +108 -82
- package/dist/config/ConfigLoader.d.ts +2 -2
- package/dist/config/ConfigLoader.d.ts.map +1 -1
- package/dist/config/ConfigLoader.js +15 -15
- package/dist/config/DryRunGuard.d.ts +1 -1
- package/dist/config/DryRunGuard.js +7 -7
- package/dist/config/SelaConfig.d.ts +13 -17
- package/dist/config/SelaConfig.d.ts.map +1 -1
- package/dist/config/SelaConfig.js +32 -26
- package/dist/engine/HealingRegistry.d.ts +1 -1
- package/dist/engine/HealingRegistry.js +3 -3
- package/dist/engine/SelaEngine.d.ts +1 -1
- package/dist/engine/SelaEngine.d.ts.map +1 -1
- package/dist/engine/SelaEngine.js +117 -51
- package/dist/errors/SelaError.d.ts +8 -1
- package/dist/errors/SelaError.d.ts.map +1 -1
- package/dist/errors/SelaError.js +14 -7
- package/dist/fixtures/expectProxy.d.ts +2 -2
- package/dist/fixtures/expectProxy.js +16 -16
- package/dist/fixtures/index.d.ts +18 -2
- package/dist/fixtures/index.d.ts.map +1 -1
- package/dist/fixtures/index.js +47 -27
- package/dist/fixtures/moduleExpect.js +7 -7
- package/dist/fixtures/proxyTag.d.ts +1 -1
- package/dist/fixtures/proxyTag.js +4 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/reporter/SelaReporter.d.ts +45 -12
- package/dist/reporter/SelaReporter.d.ts.map +1 -1
- package/dist/reporter/SelaReporter.js +139 -39
- package/dist/services/ASTSourceUpdater.d.ts +48 -3
- package/dist/services/ASTSourceUpdater.d.ts.map +1 -1
- package/dist/services/ASTSourceUpdater.js +283 -105
- package/dist/services/AnchorResolver.d.ts +157 -0
- package/dist/services/AnchorResolver.d.ts.map +1 -0
- package/dist/services/AnchorResolver.js +289 -0
- package/dist/services/ArgumentTypeAnalyzer.js +7 -7
- package/dist/services/BlastRadiusAnalyzer.d.ts.map +1 -1
- package/dist/services/BlastRadiusAnalyzer.js +5 -2
- package/dist/services/ChainValidator.js +22 -22
- package/dist/services/CrossFileHealer.js +7 -7
- package/dist/services/DecisionEngine.d.ts +51 -0
- package/dist/services/DecisionEngine.d.ts.map +1 -0
- package/dist/services/DecisionEngine.js +260 -0
- package/dist/services/DefinitionTracer.d.ts +1 -1
- package/dist/services/DefinitionTracer.d.ts.map +1 -1
- package/dist/services/DefinitionTracer.js +28 -13
- package/dist/services/DnaEditorService.d.ts +2 -2
- package/dist/services/DnaEditorService.d.ts.map +1 -1
- package/dist/services/DnaEditorService.js +81 -62
- package/dist/services/DnaIndexService.d.ts +1 -1
- package/dist/services/DnaIndexService.d.ts.map +1 -1
- package/dist/services/DnaIndexService.js +14 -14
- package/dist/services/HealReportService.d.ts +31 -55
- package/dist/services/HealReportService.d.ts.map +1 -1
- package/dist/services/HealReportService.js +864 -1240
- package/dist/services/HealingAdvisory.d.ts +9 -1
- package/dist/services/HealingAdvisory.d.ts.map +1 -1
- package/dist/services/HealingAdvisory.js +9 -1
- package/dist/services/HealingCacheService.d.ts +8 -8
- package/dist/services/HealingCacheService.d.ts.map +1 -1
- package/dist/services/HealingCacheService.js +24 -24
- package/dist/services/HealthReportService.d.ts +1 -1
- package/dist/services/HealthReportService.d.ts.map +1 -1
- package/dist/services/HealthReportService.js +25 -25
- package/dist/services/InitializerUpdater.d.ts.map +1 -1
- package/dist/services/InitializerUpdater.js +12 -2
- package/dist/services/IntentAuditor.d.ts.map +1 -1
- package/dist/services/IntentAuditor.js +32 -21
- package/dist/services/InteractiveReview.d.ts +8 -17
- package/dist/services/InteractiveReview.d.ts.map +1 -1
- package/dist/services/InteractiveReview.js +34 -124
- package/dist/services/LLMService.d.ts +1 -1
- package/dist/services/LLMService.js +16 -16
- package/dist/services/MutationApplier.d.ts +55 -0
- package/dist/services/MutationApplier.d.ts.map +1 -0
- package/dist/services/MutationApplier.js +322 -0
- package/dist/services/PRAutomationService.d.ts +2 -2
- package/dist/services/PRAutomationService.d.ts.map +1 -1
- package/dist/services/PRAutomationService.js +43 -39
- package/dist/services/PendingPromptLedger.d.ts +9 -2
- package/dist/services/PendingPromptLedger.d.ts.map +1 -1
- package/dist/services/PendingPromptLedger.js +31 -6
- package/dist/services/ReportGenerator.d.ts +116 -30
- package/dist/services/ReportGenerator.d.ts.map +1 -1
- package/dist/services/ReportGenerator.js +149 -62
- package/dist/services/ReportMergeService.d.ts +95 -0
- package/dist/services/ReportMergeService.d.ts.map +1 -0
- package/dist/services/ReportMergeService.js +0 -0
- package/dist/services/SafetyGuard.d.ts +4 -7
- package/dist/services/SafetyGuard.d.ts.map +1 -1
- package/dist/services/SafetyGuard.js +29 -106
- package/dist/services/SelectorSanitizer.d.ts +52 -0
- package/dist/services/SelectorSanitizer.d.ts.map +1 -0
- package/dist/services/SelectorSanitizer.js +318 -0
- package/dist/services/SnapshotService.js +6 -6
- package/dist/services/SourceLinkService.d.ts +2 -2
- package/dist/services/SourceLinkService.d.ts.map +1 -1
- package/dist/services/SourceLinkService.js +31 -22
- package/dist/services/SourceUpdater.d.ts +1 -1
- package/dist/services/SourceUpdater.d.ts.map +1 -1
- package/dist/services/SourceUpdater.js +44 -26
- package/dist/services/TemplateDiffService.d.ts.map +1 -1
- package/dist/services/TemplateDiffService.js +18 -15
- package/dist/services/TraceBackEngine.d.ts +67 -0
- package/dist/services/TraceBackEngine.d.ts.map +1 -0
- package/dist/services/TraceBackEngine.js +672 -0
- package/dist/services/WorkspaceSnapshotService.d.ts +6 -6
- package/dist/services/WorkspaceSnapshotService.d.ts.map +1 -1
- package/dist/services/WorkspaceSnapshotService.js +10 -12
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/DOMUtils.d.ts +18 -2
- package/dist/utils/DOMUtils.d.ts.map +1 -1
- package/dist/utils/DOMUtils.js +335 -49
- package/dist/utils/IsolatedDiff.d.ts +2 -2
- package/dist/utils/IsolatedDiff.d.ts.map +1 -1
- package/dist/utils/IsolatedDiff.js +13 -10
- package/package.json +2 -2
|
@@ -11,15 +11,15 @@ const LocatorPicker_js_1 = require("./LocatorPicker.js");
|
|
|
11
11
|
// ── Helpers ───────────────────────────────────────────────────────────────────
|
|
12
12
|
function formatValue(v) {
|
|
13
13
|
if (v === null || v === undefined)
|
|
14
|
-
return chalk_1.default.dim(
|
|
15
|
-
if (typeof v ===
|
|
14
|
+
return chalk_1.default.dim("null");
|
|
15
|
+
if (typeof v === "object")
|
|
16
16
|
return JSON.stringify(v, null, 2);
|
|
17
17
|
return String(v);
|
|
18
18
|
}
|
|
19
19
|
function parseInput(field, raw) {
|
|
20
|
-
if (field ===
|
|
21
|
-
return raw.trim() ===
|
|
22
|
-
if (field ===
|
|
20
|
+
if (field === "text")
|
|
21
|
+
return raw.trim() === "" ? null : raw;
|
|
22
|
+
if (field === "attributes" || field === "anchors") {
|
|
23
23
|
try {
|
|
24
24
|
return JSON.parse(raw);
|
|
25
25
|
}
|
|
@@ -31,41 +31,46 @@ function parseInput(field, raw) {
|
|
|
31
31
|
}
|
|
32
32
|
function getFieldValue(field, record, snap) {
|
|
33
33
|
switch (field) {
|
|
34
|
-
case
|
|
35
|
-
|
|
36
|
-
case
|
|
37
|
-
|
|
38
|
-
case
|
|
34
|
+
case "selector":
|
|
35
|
+
return record.selector;
|
|
36
|
+
case "text":
|
|
37
|
+
return record.text;
|
|
38
|
+
case "tagName":
|
|
39
|
+
return record.tagName;
|
|
40
|
+
case "attributes":
|
|
41
|
+
return snap.attributes;
|
|
42
|
+
case "anchors":
|
|
43
|
+
return snap.anchors;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
function validateField(field, value) {
|
|
42
47
|
const errs = [];
|
|
43
48
|
switch (field) {
|
|
44
|
-
case
|
|
45
|
-
if (typeof value !==
|
|
46
|
-
errs.push(
|
|
47
|
-
if (value ===
|
|
49
|
+
case "selector":
|
|
50
|
+
if (typeof value !== "string" || value.trim() === "")
|
|
51
|
+
errs.push("selector must not be empty");
|
|
52
|
+
if (value === "undefined")
|
|
48
53
|
errs.push('selector must not be the string "undefined"');
|
|
49
|
-
if (typeof value ===
|
|
50
|
-
errs.push(
|
|
54
|
+
if (typeof value === "string" && /[\r\n]/.test(value))
|
|
55
|
+
errs.push("selector must not contain raw newlines");
|
|
51
56
|
break;
|
|
52
|
-
case
|
|
53
|
-
if (value !== null && typeof value !==
|
|
54
|
-
errs.push(
|
|
55
|
-
if (typeof value ===
|
|
56
|
-
errs.push(
|
|
57
|
+
case "text":
|
|
58
|
+
if (value !== null && typeof value !== "string")
|
|
59
|
+
errs.push("text must be a string or null");
|
|
60
|
+
if (typeof value === "string" && value.length >= 2000)
|
|
61
|
+
errs.push("text must be fewer than 2000 characters");
|
|
57
62
|
break;
|
|
58
|
-
case
|
|
59
|
-
if (typeof value !==
|
|
60
|
-
errs.push(
|
|
63
|
+
case "tagName":
|
|
64
|
+
if (typeof value !== "string" || !/^[a-z][a-z0-9-]*$/.test(value))
|
|
65
|
+
errs.push("tagName must match /^[a-z][a-z0-9-]*$/");
|
|
61
66
|
break;
|
|
62
|
-
case
|
|
63
|
-
if (typeof value !==
|
|
64
|
-
errs.push(
|
|
67
|
+
case "attributes":
|
|
68
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
69
|
+
errs.push("attributes must be a plain object (JSON)");
|
|
65
70
|
break;
|
|
66
|
-
case
|
|
67
|
-
if (typeof value !==
|
|
68
|
-
errs.push(
|
|
71
|
+
case "anchors":
|
|
72
|
+
if (typeof value !== "object" || value === null)
|
|
73
|
+
errs.push("anchors must be an object (JSON)");
|
|
69
74
|
break;
|
|
70
75
|
}
|
|
71
76
|
return errs;
|
|
@@ -74,28 +79,34 @@ function showRecordCard(record) {
|
|
|
74
79
|
const w = 62;
|
|
75
80
|
const line = (label, value) => {
|
|
76
81
|
const content = ` ${chalk_1.default.dim(label.padEnd(14))} ${value}`;
|
|
77
|
-
process.stdout.write(content +
|
|
82
|
+
process.stdout.write(content + "\n");
|
|
78
83
|
};
|
|
79
|
-
process.stdout.write(
|
|
80
|
-
line(
|
|
81
|
-
line(
|
|
82
|
-
line(
|
|
83
|
-
line(
|
|
84
|
+
process.stdout.write("\n" + chalk_1.default.dim("─".repeat(w)) + "\n");
|
|
85
|
+
line("Key", chalk_1.default.dim(record.key));
|
|
86
|
+
line("Selector", chalk_1.default.yellow(record.selector));
|
|
87
|
+
line("Tag", record.tagName);
|
|
88
|
+
line("Text", record.text ? chalk_1.default.cyan(record.text.slice(0, 40)) : chalk_1.default.dim("-"));
|
|
84
89
|
if (record.sourceFile) {
|
|
85
90
|
const rel = path_1.default.relative(process.cwd(), record.sourceFile);
|
|
86
|
-
line(
|
|
91
|
+
line("Source", `${rel}:${record.sourceLine}`);
|
|
87
92
|
}
|
|
88
|
-
line(
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
line("Last Healed", record.lastHealed
|
|
94
|
+
? new Date(record.lastHealed).toLocaleDateString()
|
|
95
|
+
: chalk_1.default.dim("never"));
|
|
96
|
+
line("Status", record.isOrphaned
|
|
97
|
+
? chalk_1.default.red("orphaned")
|
|
98
|
+
: record.lastHealed
|
|
99
|
+
? chalk_1.default.green("healed")
|
|
100
|
+
: chalk_1.default.cyan("active"));
|
|
101
|
+
process.stdout.write(chalk_1.default.dim("─".repeat(w)) + "\n\n");
|
|
91
102
|
}
|
|
92
103
|
function showDiff(field, oldVal, newVal) {
|
|
93
|
-
process.stdout.write(
|
|
94
|
-
process.stdout.write(` ${chalk_1.default.bold(
|
|
95
|
-
process.stdout.write(` ${
|
|
96
|
-
process.stdout.write(` ${chalk_1.default.red(
|
|
97
|
-
process.stdout.write(` ${chalk_1.default.green(
|
|
98
|
-
process.stdout.write(
|
|
104
|
+
process.stdout.write("\n");
|
|
105
|
+
process.stdout.write(` ${chalk_1.default.bold("Preview - " + field)}\n`);
|
|
106
|
+
process.stdout.write(` ${"─".repeat(56)}\n`);
|
|
107
|
+
process.stdout.write(` ${chalk_1.default.red("−")} ${chalk_1.default.red(formatValue(oldVal))}\n`);
|
|
108
|
+
process.stdout.write(` ${chalk_1.default.green("+")} ${chalk_1.default.green(formatValue(newVal))}\n`);
|
|
109
|
+
process.stdout.write("\n");
|
|
99
110
|
}
|
|
100
111
|
// ── RefactorWizard ────────────────────────────────────────────────────────────
|
|
101
112
|
class RefactorWizard {
|
|
@@ -112,7 +123,7 @@ class RefactorWizard {
|
|
|
112
123
|
: await this.selectDna();
|
|
113
124
|
// Load full snapshot once (needed for attributes/anchors fields)
|
|
114
125
|
let snap = await this.svc.dnaEditor.read(record.key);
|
|
115
|
-
// Edit loop
|
|
126
|
+
// Edit loop - user can edit multiple fields per session
|
|
116
127
|
for (;;) {
|
|
117
128
|
// ── SHOW_CURRENT ──────────────────────────────────────────
|
|
118
129
|
showRecordCard(record);
|
|
@@ -120,7 +131,7 @@ class RefactorWizard {
|
|
|
120
131
|
const field = await this.selectField();
|
|
121
132
|
// ── LOCATOR_DISAMBIGUATE (selector field only) ────────────
|
|
122
133
|
let locatorIndex = 0;
|
|
123
|
-
if (field ===
|
|
134
|
+
if (field === "selector" && record.sourceFile && record.sourceLine > 0) {
|
|
124
135
|
const locators = this.svc.sourceLink.enumerateLocatorsOnLine(record.sourceFile, record.sourceLine);
|
|
125
136
|
if (locators.length > 1) {
|
|
126
137
|
locatorIndex = await (0, LocatorPicker_js_1.pickLocator)(locators, record.selector);
|
|
@@ -134,18 +145,18 @@ class RefactorWizard {
|
|
|
134
145
|
const errs = validateField(field, newValue);
|
|
135
146
|
if (errs.length === 0)
|
|
136
147
|
break;
|
|
137
|
-
process.stdout.write(
|
|
148
|
+
process.stdout.write("\n");
|
|
138
149
|
for (const e of errs) {
|
|
139
|
-
process.stdout.write(` ${chalk_1.default.red(
|
|
150
|
+
process.stdout.write(` ${chalk_1.default.red("✗")} ${e}\n`);
|
|
140
151
|
}
|
|
141
|
-
process.stdout.write(
|
|
152
|
+
process.stdout.write("\n");
|
|
142
153
|
}
|
|
143
154
|
// ── PREVIEW_DIFF ──────────────────────────────────────────
|
|
144
155
|
showDiff(field, oldValue, newValue);
|
|
145
156
|
// ── CONFIRM ───────────────────────────────────────────────
|
|
146
|
-
const apply = await this.confirm(
|
|
157
|
+
const apply = await this.confirm("Apply changes?");
|
|
147
158
|
if (!apply) {
|
|
148
|
-
const again = await this.confirm(
|
|
159
|
+
const again = await this.confirm("Edit another field?");
|
|
149
160
|
if (!again)
|
|
150
161
|
break;
|
|
151
162
|
continue;
|
|
@@ -153,10 +164,10 @@ class RefactorWizard {
|
|
|
153
164
|
// ── APPLY_SOURCE? ─────────────────────────────────────────
|
|
154
165
|
let applySource = false;
|
|
155
166
|
if (!this.opts.noSource &&
|
|
156
|
-
field ===
|
|
167
|
+
field === "selector" &&
|
|
157
168
|
record.sourceFile &&
|
|
158
169
|
record.sourceLine > 0) {
|
|
159
|
-
applySource = await this.confirm(
|
|
170
|
+
applySource = await this.confirm("Also update .spec.ts source file?");
|
|
160
171
|
}
|
|
161
172
|
// ── COMMIT ────────────────────────────────────────────────
|
|
162
173
|
const patch = {
|
|
@@ -168,18 +179,18 @@ class RefactorWizard {
|
|
|
168
179
|
locatorIndex,
|
|
169
180
|
};
|
|
170
181
|
if (this.opts.dryRun) {
|
|
171
|
-
process.stdout.write(`\n ${chalk_1.default.yellow(
|
|
182
|
+
process.stdout.write(`\n ${chalk_1.default.yellow("[dry-run]")} Would write: ${JSON.stringify({ field, newValue })}\n\n`);
|
|
172
183
|
}
|
|
173
184
|
else {
|
|
174
185
|
const bakPath = await this.svc.dnaEditor.write(record.key, this.buildDnaPatch(field, newValue));
|
|
175
|
-
process.stdout.write(`\n ${chalk_1.default.green(
|
|
186
|
+
process.stdout.write(`\n ${chalk_1.default.green("✓")} DNA written. Backup: ${chalk_1.default.dim(path_1.default.basename(bakPath))}\n`);
|
|
176
187
|
if (applySource) {
|
|
177
188
|
const result = await this.svc.sourceLink.applySourceUpdate(record, patch);
|
|
178
189
|
if (result.success) {
|
|
179
|
-
process.stdout.write(` ${chalk_1.default.green(
|
|
190
|
+
process.stdout.write(` ${chalk_1.default.green("✓")} Source updated on line ${result.lineUpdated ?? record.sourceLine}\n`);
|
|
180
191
|
}
|
|
181
192
|
else {
|
|
182
|
-
process.stdout.write(` ${chalk_1.default.yellow(
|
|
193
|
+
process.stdout.write(` ${chalk_1.default.yellow("⚠")} Source update: ${result.reason}\n`);
|
|
183
194
|
}
|
|
184
195
|
}
|
|
185
196
|
// Refresh record from index after write
|
|
@@ -189,18 +200,18 @@ class RefactorWizard {
|
|
|
189
200
|
record = refreshed;
|
|
190
201
|
}
|
|
191
202
|
// ── DONE / CONTINUE? ─────────────────────────────────────
|
|
192
|
-
const another = await this.confirm(
|
|
203
|
+
const another = await this.confirm("Edit another field?");
|
|
193
204
|
if (!another)
|
|
194
205
|
break;
|
|
195
206
|
}
|
|
196
|
-
process.stdout.write(
|
|
207
|
+
process.stdout.write("\n" + chalk_1.default.dim("Wizard complete.") + "\n\n");
|
|
197
208
|
}
|
|
198
209
|
// ── Private helpers ───────────────────────────────────────────────────────
|
|
199
210
|
resolveKey(key) {
|
|
200
211
|
const record = this.svc.dnaIndex.getByKey(key);
|
|
201
212
|
if (!record) {
|
|
202
213
|
const err = new Error(`DNA not found: ${key}`);
|
|
203
|
-
err.code =
|
|
214
|
+
err.code = "DNA_NOT_FOUND";
|
|
204
215
|
throw err;
|
|
205
216
|
}
|
|
206
217
|
return record;
|
|
@@ -208,8 +219,8 @@ class RefactorWizard {
|
|
|
208
219
|
async selectDna() {
|
|
209
220
|
const records = this.svc.dnaIndex.getIndex().records;
|
|
210
221
|
if (records.length === 0) {
|
|
211
|
-
const err = new Error(
|
|
212
|
-
err.code =
|
|
222
|
+
const err = new Error("No DNA records found in snapshot directory");
|
|
223
|
+
err.code = "SNAPSHOT_DIR_MISSING";
|
|
213
224
|
throw err;
|
|
214
225
|
}
|
|
215
226
|
const choices = records.map((r) => ({
|
|
@@ -217,8 +228,8 @@ class RefactorWizard {
|
|
|
217
228
|
message: `${chalk_1.default.dim(r.key.slice(0, 8))} ${r.selector.padEnd(40).slice(0, 40)} ${chalk_1.default.dim(r.testTitle.slice(0, 30))}`,
|
|
218
229
|
}));
|
|
219
230
|
const prompt = new enquirer_js_1.AutoComplete({
|
|
220
|
-
name:
|
|
221
|
-
message:
|
|
231
|
+
name: "dna",
|
|
232
|
+
message: "Search DNA record (type to filter)",
|
|
222
233
|
limit: 10,
|
|
223
234
|
choices,
|
|
224
235
|
});
|
|
@@ -227,31 +238,46 @@ class RefactorWizard {
|
|
|
227
238
|
}
|
|
228
239
|
async selectField() {
|
|
229
240
|
const prompt = new enquirer_js_1.Select({
|
|
230
|
-
name:
|
|
231
|
-
message:
|
|
241
|
+
name: "field",
|
|
242
|
+
message: "Which field to edit?",
|
|
232
243
|
choices: [
|
|
233
|
-
{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
{
|
|
244
|
+
{
|
|
245
|
+
name: "selector",
|
|
246
|
+
message: `${chalk_1.default.yellow("selector")} CSS/Playwright selector`,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "text",
|
|
250
|
+
message: `${chalk_1.default.cyan("text")} Visible element text`,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "tagName",
|
|
254
|
+
message: `${chalk_1.default.dim("tagName")} HTML tag name`,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: "attributes",
|
|
258
|
+
message: `${chalk_1.default.dim("attributes")} Element attributes (JSON)`,
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "anchors",
|
|
262
|
+
message: `${chalk_1.default.dim("anchors")} Anchor context (JSON)`,
|
|
263
|
+
},
|
|
238
264
|
],
|
|
239
265
|
});
|
|
240
266
|
return (await prompt.run());
|
|
241
267
|
}
|
|
242
268
|
async editValue(field, current) {
|
|
243
269
|
const initialStr = current === null || current === undefined
|
|
244
|
-
?
|
|
245
|
-
: typeof current ===
|
|
270
|
+
? ""
|
|
271
|
+
: typeof current === "object"
|
|
246
272
|
? JSON.stringify(current, null, 2)
|
|
247
273
|
: String(current);
|
|
248
|
-
const hint = field ===
|
|
249
|
-
?
|
|
250
|
-
: field ===
|
|
251
|
-
?
|
|
252
|
-
:
|
|
274
|
+
const hint = field === "text"
|
|
275
|
+
? " (leave blank for null)"
|
|
276
|
+
: field === "attributes" || field === "anchors"
|
|
277
|
+
? " (JSON)"
|
|
278
|
+
: "";
|
|
253
279
|
const prompt = new enquirer_js_1.Input({
|
|
254
|
-
name:
|
|
280
|
+
name: "value",
|
|
255
281
|
message: `New ${field}${hint}`,
|
|
256
282
|
initial: initialStr,
|
|
257
283
|
});
|
|
@@ -259,7 +285,7 @@ class RefactorWizard {
|
|
|
259
285
|
return parseInput(field, raw);
|
|
260
286
|
}
|
|
261
287
|
async confirm(message) {
|
|
262
|
-
const prompt = new enquirer_js_1.Confirm({ name:
|
|
288
|
+
const prompt = new enquirer_js_1.Confirm({ name: "ok", message });
|
|
263
289
|
return (await prompt.run());
|
|
264
290
|
}
|
|
265
291
|
buildDnaPatch(field, newValue) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResolvedConfig } from
|
|
1
|
+
import { ResolvedConfig } from "./SelaConfig";
|
|
2
2
|
export declare class ConfigLoader {
|
|
3
3
|
private static resolved;
|
|
4
4
|
private static branch;
|
|
@@ -10,7 +10,7 @@ export declare class ConfigLoader {
|
|
|
10
10
|
private static logEnvBanners;
|
|
11
11
|
/** Returns the detected Git branch name, or null if detection failed. */
|
|
12
12
|
static getBranch(): string | null;
|
|
13
|
-
/** Clears the singleton cache
|
|
13
|
+
/** Clears the singleton cache - useful for testing. */
|
|
14
14
|
static reset(): void;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=ConfigLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigLoader.d.ts","sourceRoot":"","sources":["../../src/config/ConfigLoader.ts"],"names":[],"mappings":"AAQA,OAAO,EAAc,cAAc,EAAiB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigLoader.d.ts","sourceRoot":"","sources":["../../src/config/ConfigLoader.ts"],"names":[],"mappings":"AAQA,OAAO,EAAc,cAAc,EAAiB,MAAM,cAAc,CAAC;AA4GzE,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA+B;IACtD,OAAO,CAAC,MAAM,CAAC,MAAM,CAAuB;IAE5C;;;OAGG;IACH,MAAM,CAAC,WAAW,IAAI,cAAc;IAuCpC,OAAO,CAAC,MAAM,CAAC,aAAa;IAW5B,yEAAyE;IACzE,MAAM,CAAC,SAAS,IAAI,MAAM,GAAG,IAAI;IAMjC,uDAAuD;IACvD,MAAM,CAAC,KAAK,IAAI,IAAI;CAIrB"}
|
|
@@ -48,7 +48,7 @@ const SelaConfig_1 = require("./SelaConfig");
|
|
|
48
48
|
function findConfigFile(startDir) {
|
|
49
49
|
let dir = startDir;
|
|
50
50
|
while (true) {
|
|
51
|
-
for (const name of [
|
|
51
|
+
for (const name of ["sela.config.ts", "sela.config.js"]) {
|
|
52
52
|
const candidate = path.join(dir, name);
|
|
53
53
|
if (fs.existsSync(candidate))
|
|
54
54
|
return candidate;
|
|
@@ -65,19 +65,19 @@ function findConfigFile(startDir) {
|
|
|
65
65
|
function getCurrentBranch() {
|
|
66
66
|
try {
|
|
67
67
|
// Fail fast if not a git repo or git is unavailable
|
|
68
|
-
const branch = (0, child_process_1.execSync)(
|
|
69
|
-
encoding:
|
|
70
|
-
stdio: [
|
|
68
|
+
const branch = (0, child_process_1.execSync)("git rev-parse --abbrev-ref HEAD", {
|
|
69
|
+
encoding: "utf-8",
|
|
70
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
71
71
|
}).trim();
|
|
72
|
-
if (branch ===
|
|
72
|
+
if (branch === "HEAD") {
|
|
73
73
|
// Detached HEAD (common in CI with explicit SHA checkout)
|
|
74
|
-
console.warn(
|
|
74
|
+
console.warn("[Sela] ⚠️ Detached HEAD detected - branch overrides skipped");
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
77
|
return branch;
|
|
78
78
|
}
|
|
79
79
|
catch {
|
|
80
|
-
console.warn(
|
|
80
|
+
console.warn("[Sela] ⚠️ Git branch detection failed - branch overrides skipped");
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -91,8 +91,8 @@ function loadRawConfig(configPath) {
|
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
92
92
|
const mod = require(configPath);
|
|
93
93
|
const config = mod?.default ?? mod ?? {};
|
|
94
|
-
if (typeof config !==
|
|
95
|
-
console.warn(`[Sela] ⚠️ sela.config did not export an object
|
|
94
|
+
if (typeof config !== "object" || config === null) {
|
|
95
|
+
console.warn(`[Sela] ⚠️ sela.config did not export an object - using defaults`);
|
|
96
96
|
return {};
|
|
97
97
|
}
|
|
98
98
|
return config;
|
|
@@ -103,7 +103,7 @@ function loadRawConfig(configPath) {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
// ─────────────────────────────────────────────────────────────────
|
|
106
|
-
// DEEP MERGE (plain objects only
|
|
106
|
+
// DEEP MERGE (plain objects only - arrays are replaced, not merged)
|
|
107
107
|
// ─────────────────────────────────────────────────────────────────
|
|
108
108
|
function deepMerge(base, override) {
|
|
109
109
|
const result = { ...base };
|
|
@@ -111,10 +111,10 @@ function deepMerge(base, override) {
|
|
|
111
111
|
const baseVal = result[key];
|
|
112
112
|
const overrideVal = override[key];
|
|
113
113
|
if (overrideVal !== null &&
|
|
114
|
-
typeof overrideVal ===
|
|
114
|
+
typeof overrideVal === "object" &&
|
|
115
115
|
!Array.isArray(overrideVal) &&
|
|
116
116
|
baseVal !== null &&
|
|
117
|
-
typeof baseVal ===
|
|
117
|
+
typeof baseVal === "object" &&
|
|
118
118
|
!Array.isArray(baseVal)) {
|
|
119
119
|
result[key] = deepMerge(baseVal, overrideVal);
|
|
120
120
|
}
|
|
@@ -162,10 +162,10 @@ class ConfigLoader {
|
|
|
162
162
|
}
|
|
163
163
|
static logEnvBanners(resolved) {
|
|
164
164
|
if (resolved.dryRun) {
|
|
165
|
-
console.log(
|
|
165
|
+
console.log("[Sela] 🌵 DRY RUN active (SELA_DRY_RUN) - disk writes & git commits suppressed.");
|
|
166
166
|
}
|
|
167
167
|
if (resolved.noCache) {
|
|
168
|
-
console.log(
|
|
168
|
+
console.log("[Sela] 🧊 Cache disabled (SELA_NO_CACHE).");
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
/** Returns the detected Git branch name, or null if detection failed. */
|
|
@@ -175,7 +175,7 @@ class ConfigLoader {
|
|
|
175
175
|
ConfigLoader.getInstance();
|
|
176
176
|
return ConfigLoader.branch;
|
|
177
177
|
}
|
|
178
|
-
/** Clears the singleton cache
|
|
178
|
+
/** Clears the singleton cache - useful for testing. */
|
|
179
179
|
static reset() {
|
|
180
180
|
ConfigLoader.resolved = null;
|
|
181
181
|
ConfigLoader.branch = null;
|
|
@@ -2,7 +2,7 @@ export declare const DryRunGuard: {
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns true when `SELA_DRY_RUN` is set to a truthy value in the current
|
|
4
4
|
* process environment. Throws via `parseEnvBoolean` when the value is not
|
|
5
|
-
* one of the accepted tokens
|
|
5
|
+
* one of the accepted tokens - fail-fast keeps misconfigured CI loud.
|
|
6
6
|
*/
|
|
7
7
|
active(env?: NodeJS.ProcessEnv): boolean;
|
|
8
8
|
/**
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
// Single source of truth for the "dry run" runtime gate.
|
|
5
5
|
//
|
|
6
6
|
// The flag is sourced from the `SELA_DRY_RUN` environment variable using the
|
|
7
|
-
// strict parser in SelaConfig.parseEnvBoolean (no silent coercion
|
|
7
|
+
// strict parser in SelaConfig.parseEnvBoolean (no silent coercion - bad
|
|
8
8
|
// values throw). The variable is re-read on every call so tests and
|
|
9
9
|
// long-running processes can toggle it without restarting the engine.
|
|
10
10
|
//
|
|
11
11
|
// Two writer paths route through this guard:
|
|
12
12
|
//
|
|
13
|
-
// 1. SourceUpdater._coreUpdate
|
|
13
|
+
// 1. SourceUpdater._coreUpdate - every `fs.writeFileSync` to a spec/source
|
|
14
14
|
// file. When dry-run is active the write is skipped and a console
|
|
15
15
|
// breadcrumb is emitted with the absolute path that *would have* been
|
|
16
16
|
// written.
|
|
17
17
|
//
|
|
18
|
-
// 2. ASTSourceUpdater._persistChanges
|
|
18
|
+
// 2. ASTSourceUpdater._persistChanges - wraps ts-morph `SourceFile.saveSync`.
|
|
19
19
|
// When dry-run is active the in-memory AST mutation stays, but the
|
|
20
20
|
// `saveSync` call (which forwards to fs.writeFileSync inside ts-morph)
|
|
21
21
|
// is skipped so the spec on disk is identical pre/post heal.
|
|
@@ -63,17 +63,17 @@ exports.DryRunGuard = {
|
|
|
63
63
|
/**
|
|
64
64
|
* Returns true when `SELA_DRY_RUN` is set to a truthy value in the current
|
|
65
65
|
* process environment. Throws via `parseEnvBoolean` when the value is not
|
|
66
|
-
* one of the accepted tokens
|
|
66
|
+
* one of the accepted tokens - fail-fast keeps misconfigured CI loud.
|
|
67
67
|
*/
|
|
68
68
|
active(env = process.env) {
|
|
69
|
-
return (0, SelaConfig_1.parseEnvBoolean)(
|
|
69
|
+
return (0, SelaConfig_1.parseEnvBoolean)("SELA_DRY_RUN", env.SELA_DRY_RUN);
|
|
70
70
|
},
|
|
71
71
|
/**
|
|
72
72
|
* Centralised log line for skipped writes so the diff between a dry run
|
|
73
73
|
* and a real run is auditable in test output and CI logs.
|
|
74
74
|
*/
|
|
75
75
|
logSkippedWrite(label, target) {
|
|
76
|
-
const display = target ? path.basename(target) :
|
|
77
|
-
console.log(`[Sela] 🌵 Dry Run
|
|
76
|
+
const display = target ? path.basename(target) : "<no-path>";
|
|
77
|
+
console.log(`[Sela] 🌵 Dry Run - skip ${label} → ${display}`);
|
|
78
78
|
},
|
|
79
79
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type PRStrategy =
|
|
2
|
-
export type BugAction =
|
|
1
|
+
export type PRStrategy = "directCommit" | "pr" | "draftPR" | "readOnly";
|
|
2
|
+
export type BugAction = "failCI" | "createIssue" | "labelOnly";
|
|
3
3
|
export interface SelaPRAutomationConfig {
|
|
4
4
|
/** Master switch. Default: false (fully backward-compatible). */
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
/** Git-flow strategy. Default: 'readOnly' (safest). */
|
|
7
7
|
strategy?: PRStrategy;
|
|
8
|
-
/** Branches on which directCommit is FORBIDDEN
|
|
8
|
+
/** Branches on which directCommit is FORBIDDEN - auto-downgraded. */
|
|
9
9
|
protectedBranches?: string[];
|
|
10
10
|
/** Trust-aware downgrade thresholds (0–100). 0 = never downgrade by that metric. */
|
|
11
11
|
reviewThresholds?: {
|
|
@@ -14,7 +14,7 @@ export interface SelaPRAutomationConfig {
|
|
|
14
14
|
/** Min auditor adjusted confidence required for directCommit. Below → downgrade. */
|
|
15
15
|
minAuditorScoreForDirectCommit?: number;
|
|
16
16
|
/** Strategy to downgrade TO. Default: 'draftPR'. */
|
|
17
|
-
downgradeTo?: Exclude<PRStrategy,
|
|
17
|
+
downgradeTo?: Exclude<PRStrategy, "directCommit">;
|
|
18
18
|
};
|
|
19
19
|
/** Behavior when SafetyGuard blocks a heal (PROTECTED events). Default: 'failCI'. */
|
|
20
20
|
onBugDetected?: BugAction;
|
|
@@ -31,15 +31,13 @@ export interface SelaPRAutomationConfig {
|
|
|
31
31
|
}
|
|
32
32
|
export interface SelaConfig {
|
|
33
33
|
/** Shorthand preset that expands to concrete threshold values. */
|
|
34
|
-
healingPolicy?:
|
|
34
|
+
healingPolicy?: "conservative" | "balanced" | "aggressive";
|
|
35
35
|
/** Fine-grained threshold overrides. Explicit values always win over preset expansion. */
|
|
36
36
|
thresholds?: {
|
|
37
37
|
/** Minimum AI confidence to attempt a heal. Default: 85. Maps to CONFIDENCE_HARD_STOP. */
|
|
38
38
|
minHealerConfidence?: number;
|
|
39
39
|
/** How strictly the Intent Auditor treats SUSPICIOUS verdicts. Default: 'balanced'. */
|
|
40
|
-
auditorStrictness?:
|
|
41
|
-
/** Similarity floor for UNKNOWN-role assertion text changes. Default: 0.70. */
|
|
42
|
-
assertionSimilarityFloor?: number;
|
|
40
|
+
auditorStrictness?: "strict" | "balanced" | "loose";
|
|
43
41
|
};
|
|
44
42
|
agenticDiscovery?: {
|
|
45
43
|
enabled?: boolean;
|
|
@@ -47,7 +45,7 @@ export interface SelaConfig {
|
|
|
47
45
|
forbiddenSelectors?: string[];
|
|
48
46
|
};
|
|
49
47
|
/** How healed selectors are persisted. Default: 'inPlace'. */
|
|
50
|
-
updateStrategy?:
|
|
48
|
+
updateStrategy?: "inPlace" | "commentOnly" | "branch";
|
|
51
49
|
/**
|
|
52
50
|
* @deprecated Use `prAutomation.strategy = 'directCommit'` instead.
|
|
53
51
|
* When `prAutomation.enabled` is true this flag is forced to false and
|
|
@@ -58,7 +56,7 @@ export interface SelaConfig {
|
|
|
58
56
|
autoCommit?: boolean;
|
|
59
57
|
/** Git-flow automation (PR/draft PR/direct commit/read-only). See SelaPRAutomationConfig. */
|
|
60
58
|
prAutomation?: SelaPRAutomationConfig;
|
|
61
|
-
/** Directory for DNA snapshots. Default: '
|
|
59
|
+
/** Directory for DNA snapshots. Default: 'sela-snapshots'. */
|
|
62
60
|
dnaStoragePath?: string;
|
|
63
61
|
/**
|
|
64
62
|
* Per-branch config overrides. Keys are exact branch names.
|
|
@@ -71,14 +69,12 @@ export interface ResolvedThresholds {
|
|
|
71
69
|
confidenceHardStop: number;
|
|
72
70
|
/** Confidence below which a heal is tagged REQUIRES_REVIEW instead of SAFE. */
|
|
73
71
|
confidenceReviewThreshold: number;
|
|
74
|
-
/** Similarity floor for UNKNOWN→UNKNOWN assertion text changes. */
|
|
75
|
-
assertionSimilarityFloor: number;
|
|
76
72
|
/** Minimum auditor confidence to treat a verdict as CONSISTENT. */
|
|
77
73
|
auditorConfidenceMin: number;
|
|
78
74
|
/** When true, SUSPICIOUS in assertion mode yields REQUIRES_REVIEW instead of BLOCKED. */
|
|
79
75
|
allowSuspicious: boolean;
|
|
80
|
-
/** The resolved strictness name
|
|
81
|
-
auditorStrictness:
|
|
76
|
+
/** The resolved strictness name - used for policy-aware log messages. */
|
|
77
|
+
auditorStrictness: "strict" | "balanced" | "loose";
|
|
82
78
|
}
|
|
83
79
|
export interface ResolvedPRAutomation {
|
|
84
80
|
enabled: boolean;
|
|
@@ -87,7 +83,7 @@ export interface ResolvedPRAutomation {
|
|
|
87
83
|
reviewThresholds: {
|
|
88
84
|
minConfidenceForDirectCommit: number;
|
|
89
85
|
minAuditorScoreForDirectCommit: number;
|
|
90
|
-
downgradeTo: Exclude<PRStrategy,
|
|
86
|
+
downgradeTo: Exclude<PRStrategy, "directCommit">;
|
|
91
87
|
};
|
|
92
88
|
onBugDetected: BugAction;
|
|
93
89
|
branchNameTemplate: string;
|
|
@@ -98,7 +94,7 @@ export interface ResolvedPRAutomation {
|
|
|
98
94
|
}
|
|
99
95
|
export interface ResolvedConfig {
|
|
100
96
|
thresholds: ResolvedThresholds;
|
|
101
|
-
updateStrategy:
|
|
97
|
+
updateStrategy: "inPlace" | "commentOnly" | "branch";
|
|
102
98
|
autoCommit: boolean;
|
|
103
99
|
dnaStoragePath: string;
|
|
104
100
|
prAutomation: ResolvedPRAutomation;
|
|
@@ -116,7 +112,7 @@ export interface ResolvedConfig {
|
|
|
116
112
|
*/
|
|
117
113
|
dryRun: boolean;
|
|
118
114
|
/**
|
|
119
|
-
* When true, the healing cache layer is bypassed
|
|
115
|
+
* When true, the healing cache layer is bypassed - every heal request
|
|
120
116
|
* goes straight to the LLM. Sourced from `SELA_NO_CACHE` env var.
|
|
121
117
|
*/
|
|
122
118
|
noCache: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelaConfig.d.ts","sourceRoot":"","sources":["../../src/config/SelaConfig.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"SelaConfig.d.ts","sourceRoot":"","sources":["../../src/config/SelaConfig.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,OAAO,CAAC,EA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