@neonwatty/limner 0.1.6 → 0.1.8
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 +31 -29
- package/dist/commands/compare-image-reference.d.ts +1 -0
- package/dist/commands/compare-image-reference.js +4 -0
- package/dist/commands/compare-image-reference.js.map +1 -1
- package/dist/commands/compare-output.js +2 -1
- package/dist/commands/compare-output.js.map +1 -1
- package/dist/commands/compare.d.ts +1 -0
- package/dist/commands/compare.js +4 -12
- package/dist/commands/compare.js.map +1 -1
- package/dist/commands/ledger.d.ts +3 -1
- package/dist/commands/loop-actions.d.ts +22 -0
- package/dist/commands/loop-actions.js +54 -0
- package/dist/commands/loop-actions.js.map +1 -0
- package/dist/commands/loop-cli.js +121 -2
- package/dist/commands/loop-cli.js.map +1 -1
- package/dist/commands/loop-comparison-adapters.d.ts +1 -0
- package/dist/commands/loop-comparison-adapters.js +7 -2
- package/dist/commands/loop-comparison-adapters.js.map +1 -1
- package/dist/commands/loop-response.d.ts +31 -0
- package/dist/commands/loop-response.js +84 -0
- package/dist/commands/loop-response.js.map +1 -0
- package/dist/commands/loop-task.d.ts +17 -0
- package/dist/commands/loop-task.js +98 -0
- package/dist/commands/loop-task.js.map +1 -0
- package/dist/commands/loop.d.ts +4 -1
- package/dist/commands/loop.js +26 -21
- package/dist/commands/loop.js.map +1 -1
- package/dist/core/agent-comparison-pack.d.ts +17 -0
- package/dist/core/agent-comparison-pack.js +25 -102
- package/dist/core/agent-comparison-pack.js.map +1 -1
- package/dist/core/agent-comparison-prompts.d.ts +1 -1
- package/dist/core/agent-comparison-prompts.js +4 -4
- package/dist/core/agent-comparison-prompts.js.map +1 -1
- package/dist/core/agent-comparison-report.js +2 -2
- package/dist/core/agent-comparison-report.js.map +1 -1
- package/dist/core/agent-comparison-response.d.ts +1 -0
- package/dist/core/agent-comparison-response.js +2 -0
- package/dist/core/agent-comparison-response.js.map +1 -0
- package/dist/core/agent-comparison-submit.d.ts +35 -0
- package/dist/core/agent-comparison-submit.js +113 -0
- package/dist/core/agent-comparison-submit.js.map +1 -0
- package/dist/core/agent-task-brief.d.ts +30 -0
- package/dist/core/agent-task-brief.js +158 -0
- package/dist/core/agent-task-brief.js.map +1 -0
- package/dist/core/comparison-artifacts.js +16 -7
- package/dist/core/comparison-artifacts.js.map +1 -1
- package/dist/core/current-artifacts.d.ts +14 -0
- package/dist/core/current-artifacts.js +16 -0
- package/dist/core/current-artifacts.js.map +1 -0
- package/dist/core/ledger-agent-responses.d.ts +22 -0
- package/dist/core/ledger-agent-responses.js +13 -0
- package/dist/core/ledger-agent-responses.js.map +1 -0
- package/dist/core/ledger-db.js +20 -0
- package/dist/core/ledger-db.js.map +1 -1
- package/dist/core/ledger-events.js +21 -1
- package/dist/core/ledger-events.js.map +1 -1
- package/dist/core/ledger-markdown.d.ts +21 -6
- package/dist/core/ledger-markdown.js +89 -6
- package/dist/core/ledger-markdown.js.map +1 -1
- package/dist/core/ledger-queries.d.ts +4 -1
- package/dist/core/ledger-queries.js +12 -3
- package/dist/core/ledger-queries.js.map +1 -1
- package/dist/core/ledger-store.d.ts +8 -1
- package/dist/core/ledger-store.js +4 -0
- package/dist/core/ledger-store.js.map +1 -1
- package/dist/core/loop-rerun-command.d.ts +4 -0
- package/dist/core/loop-rerun-command.js +36 -0
- package/dist/core/loop-rerun-command.js.map +1 -0
- package/dist/core/report-writer.js +1 -1
- package/dist/schemas/ledger.d.ts +23 -0
- package/dist/schemas/ledger.js +4 -0
- package/dist/schemas/ledger.js.map +1 -1
- package/docs/agent-workflow.md +39 -11
- package/docs/archive/visual-spec-workflow.md +23 -0
- package/docs/goals/db-native-agent-responses/goal.md +91 -0
- package/docs/goals/db-native-agent-responses/state.yaml +240 -0
- package/docs/superpowers/plans/2026-06-13-agent-response-sqlite.md +70 -0
- package/docs/superpowers/plans/2026-06-13-loop-action-ledger.md +257 -0
- package/package.json +1 -1
- package/skills/limner/SKILL.md +22 -21
- package/templates/target/AGENT_GUIDE.md +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Limner is an agent-guided visual fidelity workbench. It helps a coding agent tur
|
|
|
4
4
|
|
|
5
5
|
Limner is model-agnostic. It does not call a vision model and it does not make final pass/fail judgments. It prepares artifacts and schemas for agent-authored UX comparison scores, diffs, and next-iteration guidance.
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The older visual spec workflow is archived in `docs/archive/visual-spec-workflow.md`; active loops use DB-native agent comparison responses.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -56,6 +56,9 @@ limner preview --target replay-boundaries
|
|
|
56
56
|
limner capture reference --target replay-boundaries
|
|
57
57
|
limner loop start --mode image-mockup --target replay-boundaries --name replay-boundaries-polish --max-iterations 5
|
|
58
58
|
limner loop compare --trajectory traj_...
|
|
59
|
+
limner loop task --trajectory traj_... --executor subagent
|
|
60
|
+
limner loop action start --trajectory traj_... --from-run run_... --kind polish --executor subagent --summary "Resize dashboard preview"
|
|
61
|
+
limner loop action complete --trajectory traj_... --action act_... --executor subagent --summary "Adjusted preview sizing" --files "src/app/page.tsx"
|
|
59
62
|
limner loop status --trajectory traj_...
|
|
60
63
|
limner compare image-reference --target replay-boundaries
|
|
61
64
|
limner compare reference-implementation --target replay-boundaries --url http://localhost:3152/internal/optimization-lab/wedding-envelope#replay-boundaries --storage-state ./e2e/.auth/user.json
|
|
@@ -92,6 +95,11 @@ Use `limner loop` for Ralph Loop-style polishing. Loop work is tracked in a glob
|
|
|
92
95
|
```bash
|
|
93
96
|
limner loop start --mode image-mockup --target replay-boundaries --name replay-boundaries-polish --max-iterations 5
|
|
94
97
|
limner loop compare --trajectory traj_...
|
|
98
|
+
limner loop task --trajectory traj_... --executor subagent
|
|
99
|
+
limner loop action start --trajectory traj_... --from-run run_... --kind polish --executor subagent --summary "Resize dashboard preview"
|
|
100
|
+
limner loop action complete --trajectory traj_... --action act_... --executor subagent --summary "Adjusted preview sizing" --files "src/app/page.tsx"
|
|
101
|
+
limner loop action skip --trajectory traj_... --from-run run_... --summary "Comparison smoke only; no edit intended"
|
|
102
|
+
limner loop response submit --trajectory traj_... --from-run run_... --file ./response.json
|
|
95
103
|
limner loop status --trajectory traj_... --feedback "Prompt should mention button contrast."
|
|
96
104
|
limner loop next --trajectory traj_...
|
|
97
105
|
limner loop close --trajectory traj_...
|
|
@@ -103,7 +111,17 @@ Loop modes:
|
|
|
103
111
|
- `mockup-implementation`: approved mockup to real implementation.
|
|
104
112
|
- `image-implementation`: source image directly to real implementation.
|
|
105
113
|
|
|
106
|
-
Every meaningful loop interaction writes a ledger event. `agentFeedback` is an optional 255-character field for short process-improvement notes; longer comments belong in notes or project artifacts.
|
|
114
|
+
Every meaningful loop interaction writes a ledger event. Agent responses are submitted into local SQLite with the full JSON body, response hash, validation status, and freshness (`missing`, `fresh`, `stale`, or `invalid`). `agentFeedback` is an optional 255-character field for short process-improvement notes; longer comments belong in notes or project artifacts.
|
|
115
|
+
|
|
116
|
+
### Action Logging
|
|
117
|
+
|
|
118
|
+
After `loop compare` creates a comparison prompt, have the agent submit structured JSON with `limner loop response submit --trajectory traj_... --from-run run_... --file ./response.json`. Once the response validates, use `limner loop task --trajectory traj_... --executor subagent` to print the next edit brief. The intended loop is:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
loop compare -> loop response submit -> loop task --executor subagent -> loop action start -> edit -> loop action complete -> loop compare
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The task brief names likely files, selectors, prioritized diffs, next steps, action logging commands, and the compare command to rerun. Record `loop action start` before edits and `loop action complete` after edits; keep `--summary` under 255 characters. Use `loop action skip` for comparison-only smoke runs where no edit is intended. Limner records executor intent and action claims; it cannot prove an external orchestrator actually used a subagent. Use `--format json` when another tool needs machine-readable handoff data.
|
|
107
125
|
|
|
108
126
|
Use `limner ledger` to query and export trajectories:
|
|
109
127
|
|
|
@@ -116,14 +134,21 @@ limner ledger export traj_... --format json
|
|
|
116
134
|
limner ledger export traj_... --format markdown
|
|
117
135
|
```
|
|
118
136
|
|
|
137
|
+
Agents can discover the current CLI surface with:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
limner --help
|
|
141
|
+
limner loop --help
|
|
142
|
+
limner loop task --help
|
|
143
|
+
limner ledger --help
|
|
144
|
+
```
|
|
145
|
+
|
|
119
146
|
### Image To Reference
|
|
120
147
|
|
|
121
148
|
Use this while recreating the ideal image as a standalone HTML/CSS mockup. This mode uses the `ideal-to-mockup` agent comparison profile.
|
|
122
149
|
|
|
123
150
|
```bash
|
|
124
151
|
limner compare image-reference --target replay-boundaries
|
|
125
|
-
limner compare image-reference --target replay-boundaries --spec
|
|
126
|
-
limner compare image-reference --target replay-boundaries --spec --spec-instructions ./visual-spec-policy.md
|
|
127
152
|
```
|
|
128
153
|
|
|
129
154
|
Outputs:
|
|
@@ -134,34 +159,11 @@ Outputs:
|
|
|
134
159
|
- `captures/image-reference/agent-comparison/agent-response.schema.json`
|
|
135
160
|
- `reports/image-reference.md`
|
|
136
161
|
|
|
137
|
-
|
|
162
|
+
In a loop trajectory, submit the agent's structured response with `limner loop response submit --trajectory <trajectory-id> --from-run <run-id> --file ./response.json`. Limner validates and emits:
|
|
138
163
|
|
|
139
164
|
- `captures/image-reference/image-comparison.json`
|
|
140
165
|
- `captures/image-reference/comparison-summary.json`
|
|
141
166
|
|
|
142
|
-
With `--spec`, Limner also writes an agent handoff pack under `captures/image-reference/spec/`:
|
|
143
|
-
|
|
144
|
-
- `agent-prompt.md`
|
|
145
|
-
- `agent-prompt.codex.md`
|
|
146
|
-
- `agent-prompt.claude.md`
|
|
147
|
-
- `reference-dom-facts.json`
|
|
148
|
-
- `agent-response.schema.json`
|
|
149
|
-
- `agent-response.example.json`
|
|
150
|
-
- expected agent output path: `agent-response.json`
|
|
151
|
-
|
|
152
|
-
Limner also creates `contract/visual-spec-instructions.md` if it does not exist. Edit that file to customize the generated Codex and Claude prompts for a target, or pass `--spec-instructions <path>` to use a shared prompt policy file.
|
|
153
|
-
|
|
154
|
-
After an agent writes a valid `agent-response.json`, rerun the same command and Limner will validate it and split out:
|
|
155
|
-
|
|
156
|
-
- `captures/image-reference/ideal-visual-spec.json`
|
|
157
|
-
- `captures/image-reference/reference-visual-spec.json`
|
|
158
|
-
- `captures/image-reference/visual-spec-diff.json`
|
|
159
|
-
|
|
160
|
-
The prompt pack is tuned for two common flows:
|
|
161
|
-
|
|
162
|
-
- `agent-prompt.codex.md`: for Codex reading local files and writing `agent-response.json` directly in the repo.
|
|
163
|
-
- `agent-prompt.claude.md`: for Claude with attached images and strict structured output, then copying the JSON into `agent-response.json`.
|
|
164
|
-
|
|
165
167
|
Agents should inspect the ideal image and reference screenshot separately. The side-by-side image is comparison context, not the source image to parse.
|
|
166
168
|
|
|
167
169
|
### Reference To Implementation
|
|
@@ -182,7 +184,7 @@ Outputs:
|
|
|
182
184
|
- `captures/reference-implementation/agent-comparison/agent-response.schema.json`
|
|
183
185
|
- `reports/reference-implementation.md`
|
|
184
186
|
|
|
185
|
-
|
|
187
|
+
In a loop trajectory, submit the agent's structured response with `limner loop response submit --trajectory <trajectory-id> --from-run <run-id> --file ./response.json`. Limner validates and emits:
|
|
186
188
|
|
|
187
189
|
- `captures/reference-implementation/image-comparison.json`
|
|
188
190
|
- `captures/reference-implementation/structure-comparison.json`
|
|
@@ -41,6 +41,7 @@ export async function compareImageReference(options) {
|
|
|
41
41
|
expectedImagePath: target.sourceImagePath,
|
|
42
42
|
actualImagePath: referencePath,
|
|
43
43
|
},
|
|
44
|
+
responseSubmitCommand: responseSubmitCommand(options.trajectoryId, logger.runId),
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
47
|
if (options.spec) {
|
|
@@ -117,4 +118,7 @@ export async function compareImageReference(options) {
|
|
|
117
118
|
throw error;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
121
|
+
function responseSubmitCommand(trajectoryId, runId) {
|
|
122
|
+
return trajectoryId ? `limner loop response submit --trajectory ${trajectoryId} --from-run ${runId} --file <response.json>` : undefined;
|
|
123
|
+
}
|
|
120
124
|
//# sourceMappingURL=compare-image-reference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-image-reference.js","sourceRoot":"","sources":["../../src/commands/compare-image-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAkC,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"compare-image-reference.js","sourceRoot":"","sources":["../../src/commands/compare-image-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAkC,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC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AC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClI,MAAM,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,qBAAqB,CAAC,YAAgC,EAAE,KAAa;IAC5E,OAAO,YAAY,CAAC,CAAC,CAAC,4CAA4C,YAAY,eAAe,KAAK,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1I,CAAC"}
|
|
@@ -5,7 +5,8 @@ export function printAgentComparison(agentComparison) {
|
|
|
5
5
|
console.log(`Codex comparison prompt: ${agentComparison.codexPromptPath}`);
|
|
6
6
|
console.log(`Claude comparison prompt: ${agentComparison.claudePromptPath}`);
|
|
7
7
|
console.log(`Agent comparison schema: ${agentComparison.schemaPath}`);
|
|
8
|
-
console.log(
|
|
8
|
+
console.log('Agent comparison response store: local SQLite ledger');
|
|
9
|
+
console.log(`Agent response freshness: ${agentComparison.freshness}`);
|
|
9
10
|
if (agentComparison.status === 'validated') {
|
|
10
11
|
console.log(`Image comparison: ${agentComparison.imageComparisonPath}`);
|
|
11
12
|
if (agentComparison.structureComparisonPath)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-output.js","sourceRoot":"","sources":["../../src/commands/compare-output.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,eAA2C;IAC9E,IAAI,CAAC,eAAe;QAAE,OAAO;IAC7B,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IAC3E,OAAO,CAAC,GAAG,CAAC,6BAA6B,eAAe,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"compare-output.js","sourceRoot":"","sources":["../../src/commands/compare-output.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,eAA2C;IAC9E,IAAI,CAAC,eAAe;QAAE,OAAO;IAC7B,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IAC3E,OAAO,CAAC,GAAG,CAAC,6BAA6B,eAAe,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,6BAA6B,eAAe,CAAC,SAAS,EAAE,CAAC,CAAC;IACtE,IAAI,eAAe,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,qBAAqB,eAAe,CAAC,mBAAmB,EAAE,CAAC,CAAC;QACxE,IAAI,eAAe,CAAC,uBAAuB;YAAE,OAAO,CAAC,GAAG,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAC7H,OAAO,CAAC,GAAG,CAAC,uBAAuB,eAAe,CAAC,WAAW,EAAE,CAAC,CAAC;IACpE,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,4BAA4B,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
|
package/dist/commands/compare.js
CHANGED
|
@@ -61,6 +61,7 @@ export async function compareReferenceImplementation(options) {
|
|
|
61
61
|
captureDir,
|
|
62
62
|
mode: 'reference-implementation',
|
|
63
63
|
profile: 'mockup-to-implementation',
|
|
64
|
+
responseSubmitCommand: responseSubmitCommand(options.trajectoryId, logger.runId),
|
|
64
65
|
imageInputs: {
|
|
65
66
|
expectedImagePath: referencePath,
|
|
66
67
|
actualImagePath: implementationPath,
|
|
@@ -112,6 +113,9 @@ export async function compareReferenceImplementation(options) {
|
|
|
112
113
|
throw error;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
116
|
+
function responseSubmitCommand(trajectoryId, runId) {
|
|
117
|
+
return trajectoryId ? `limner loop response submit --trajectory ${trajectoryId} --from-run ${runId} --file <response.json>` : undefined;
|
|
118
|
+
}
|
|
115
119
|
export function registerCompareCommand(program) {
|
|
116
120
|
const compare = program.command('compare').description('Compare Limner artifacts');
|
|
117
121
|
compare
|
|
@@ -120,8 +124,6 @@ export function registerCompareCommand(program) {
|
|
|
120
124
|
.requiredOption('-t, --target <name>', 'target name')
|
|
121
125
|
.option('--headed', 'show browser while capturing')
|
|
122
126
|
.option('--full-page', 'capture the full scrollable page')
|
|
123
|
-
.option('--spec', 'prepare or validate an agent-authored visual spec pack')
|
|
124
|
-
.option('--spec-instructions <path>', 'custom visual spec instructions markdown file')
|
|
125
127
|
.option('--no-agent-comparison', 'skip the default agent comparison prompt pack')
|
|
126
128
|
.option('--viewport-only', 'capture only the viewport (default)')
|
|
127
129
|
.action(async (options, command) => {
|
|
@@ -131,8 +133,6 @@ export function registerCompareCommand(program) {
|
|
|
131
133
|
target: options.target,
|
|
132
134
|
headed: options.headed,
|
|
133
135
|
fullPage: options.fullPage,
|
|
134
|
-
spec: options.spec,
|
|
135
|
-
specInstructions: options.specInstructions,
|
|
136
136
|
agentComparison: options.agentComparison,
|
|
137
137
|
});
|
|
138
138
|
console.log(`Side-by-side: ${result.sideBySidePath}`);
|
|
@@ -146,14 +146,6 @@ export function registerCompareCommand(program) {
|
|
|
146
146
|
console.log(`Custom instructions: ${result.agentSpec.instructionsPath}`);
|
|
147
147
|
console.log(`Agent response target: ${result.agentSpec.responsePath}`);
|
|
148
148
|
}
|
|
149
|
-
if (result.specPaths) {
|
|
150
|
-
console.log(`Ideal visual spec: ${result.specPaths.idealSpecPath}`);
|
|
151
|
-
console.log(`Reference visual spec: ${result.specPaths.referenceSpecPath}`);
|
|
152
|
-
console.log(`Visual spec diff: ${result.specPaths.diffPath}`);
|
|
153
|
-
}
|
|
154
|
-
else if (options.spec) {
|
|
155
|
-
console.log('Visual spec status: awaiting validated agent response');
|
|
156
|
-
}
|
|
157
149
|
console.log(`Report: ${result.reportPath}`);
|
|
158
150
|
});
|
|
159
151
|
compare
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare.js","sourceRoot":"","sources":["../../src/commands/compare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,wBAAwB,EAAkC,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,
|
|
1
|
+
{"version":3,"file":"compare.js","sourceRoot":"","sources":["../../src/commands/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AC,uBAAuB,EAAE,+CAA+C,CAAC;SAChF,MAAM,CAAC,iBAAiB,EAAE,qCAAqC,CAAC;SAChE,MAAM,CAAC,KAAK,EAAE,OAOd,EAAE,OAAgB,EAAE,EAAE;QACrB,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,EAA2B,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,8BAA8B,CAAC;YAClD,aAAa,EAAE,OAAO,CAAC,SAAS;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,iBAAiB,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;QAC9C,oBAAoB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -26,7 +26,9 @@ export declare function showLedger(input: {
|
|
|
26
26
|
runs: unknown[];
|
|
27
27
|
instructionVersions: unknown[];
|
|
28
28
|
notes: unknown[];
|
|
29
|
-
|
|
29
|
+
agentResponses: unknown[];
|
|
30
|
+
artifacts: import("../core/current-artifacts.js").LedgerArtifactRow[];
|
|
31
|
+
currentArtifacts: import("../core/current-artifacts.js").CurrentArtifacts;
|
|
30
32
|
};
|
|
31
33
|
};
|
|
32
34
|
export declare function getLedgerNext(input: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type LedgerActionExecutor, type LedgerActionKind, type LedgerActionStatus, type LedgerMode } from '../schemas/ledger.js';
|
|
2
|
+
type LedgerEnv = Partial<Pick<NodeJS.ProcessEnv, 'LIMNER_LEDGER_HOME'>>;
|
|
3
|
+
type TrajectorySelector = {
|
|
4
|
+
ledgerEnv?: LedgerEnv;
|
|
5
|
+
trajectoryId?: string;
|
|
6
|
+
target?: string;
|
|
7
|
+
mode?: LedgerMode;
|
|
8
|
+
};
|
|
9
|
+
export type LoopActionInput = TrajectorySelector & {
|
|
10
|
+
status: LedgerActionStatus;
|
|
11
|
+
kind: LedgerActionKind;
|
|
12
|
+
executor: LedgerActionExecutor;
|
|
13
|
+
summary: string;
|
|
14
|
+
actionId?: string;
|
|
15
|
+
fromRunId?: string;
|
|
16
|
+
files?: string[];
|
|
17
|
+
commit?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function recordLoopAction(input: LoopActionInput): {
|
|
20
|
+
actionId: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ledgerActionExecutorSchema, ledgerActionKindSchema, ledgerActionStatusSchema, ledgerActionSummarySchema } from '../schemas/ledger.js';
|
|
2
|
+
import { openLedgerDatabase } from '../core/ledger-db.js';
|
|
3
|
+
import { createLedgerId } from '../core/ledger-ids.js';
|
|
4
|
+
import { resolveLedgerPaths } from '../core/ledger-paths.js';
|
|
5
|
+
import { createLedgerStore } from '../core/ledger-store.js';
|
|
6
|
+
export function recordLoopAction(input) {
|
|
7
|
+
return withStore(input.ledgerEnv, (store) => {
|
|
8
|
+
const trajectory = store.resolveTrajectory(selector(input));
|
|
9
|
+
const status = ledgerActionStatusSchema.parse(input.status);
|
|
10
|
+
const kind = ledgerActionKindSchema.parse(input.kind);
|
|
11
|
+
const executor = ledgerActionExecutorSchema.parse(input.executor);
|
|
12
|
+
const summary = ledgerActionSummarySchema.parse(input.summary);
|
|
13
|
+
const actionId = input.actionId ?? createLedgerId('act');
|
|
14
|
+
store.appendEvent({
|
|
15
|
+
trajectoryId: trajectory.trajectoryId,
|
|
16
|
+
iterationId: trajectory.activeIterationId ?? undefined,
|
|
17
|
+
eventType: `loop.action.${status}`,
|
|
18
|
+
actor: actionActor(executor),
|
|
19
|
+
command: 'loop action',
|
|
20
|
+
resultStatus: status,
|
|
21
|
+
inputsSummary: JSON.stringify({
|
|
22
|
+
actionId,
|
|
23
|
+
kind,
|
|
24
|
+
executor,
|
|
25
|
+
fromRunId: input.fromRunId,
|
|
26
|
+
summary,
|
|
27
|
+
files: input.files,
|
|
28
|
+
commit: input.commit,
|
|
29
|
+
}),
|
|
30
|
+
artifactRefs: (input.files ?? []).map((file) => ({ path: file, kind: 'edited-file', role: 'artifact' })),
|
|
31
|
+
});
|
|
32
|
+
return { actionId };
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function withStore(env, callback) {
|
|
36
|
+
const db = openLedgerDatabase({ databasePath: resolveLedgerPaths(env).databasePath });
|
|
37
|
+
try {
|
|
38
|
+
return callback(createLedgerStore(db));
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
db.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function selector(input) {
|
|
45
|
+
return { trajectoryId: input.trajectoryId, target: input.target, mode: input.mode };
|
|
46
|
+
}
|
|
47
|
+
function actionActor(executor) {
|
|
48
|
+
if (executor === 'user')
|
|
49
|
+
return 'user';
|
|
50
|
+
if (executor === 'cli')
|
|
51
|
+
return 'cli';
|
|
52
|
+
return 'agent';
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=loop-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loop-actions.js","sourceRoot":"","sources":["../../src/commands/loop-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,yBAAyB,EAAqH,MAAM,sBAAsB,CAAC;AAClQ,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EA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EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;SACzG,CAAC,CAAC;QACH,OAAO,EAAE,QAAQ,EAAE,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS,CAAI,GAA0B,EAAE,QAA4D;IAC5G,MAAM,EAAE,GAAG,kBAAkB,CAAC,EAAE,YAAY,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;IACtF,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,KAAyB;IACzC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AACtF,CAAC;AAED,SAAS,WAAW,CAAC,QAA8B;IACjD,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,QAAQ,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC;IACrC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { advanceLoop, closeLoop, compareLoop, getLoopStatus, getLoopTask, recordLoopAction, startLoop, submitLoopResponse } from './loop.js';
|
|
2
3
|
export function registerLoopCommand(program) {
|
|
3
4
|
const loop = program.command('loop').description('Manage Limner comparison loops');
|
|
4
5
|
loop
|
|
@@ -64,8 +65,126 @@ export function registerLoopCommand(program) {
|
|
|
64
65
|
console.log(`Side-by-side: ${result.sideBySidePath}`);
|
|
65
66
|
if (result.reportPath)
|
|
66
67
|
console.log(`Report: ${result.reportPath}`);
|
|
67
|
-
if (result.agentComparison)
|
|
68
|
+
if (result.agentComparison) {
|
|
68
69
|
console.log(`Agent comparison status: ${result.agentComparison.status}`);
|
|
70
|
+
console.log(`Agent response freshness: ${result.agentComparison.freshness}`);
|
|
71
|
+
}
|
|
69
72
|
});
|
|
73
|
+
loop
|
|
74
|
+
.command('task')
|
|
75
|
+
.description('Print an agent-ready task brief from the latest validated comparison')
|
|
76
|
+
.option('--trajectory <id>', 'trajectory id')
|
|
77
|
+
.option('-t, --target <name>', 'target name')
|
|
78
|
+
.option('--mode <mode>', 'loop mode')
|
|
79
|
+
.option('--format <format>', 'output format', 'markdown')
|
|
80
|
+
.option('--executor <executor>', 'desired action executor', 'subagent')
|
|
81
|
+
.action(async (options, command) => {
|
|
82
|
+
const globals = command.optsWithGlobals();
|
|
83
|
+
const result = await getLoopTask({
|
|
84
|
+
workspaceRoot: globals.workspace,
|
|
85
|
+
trajectoryId: options.trajectory,
|
|
86
|
+
target: options.target,
|
|
87
|
+
mode: options.mode,
|
|
88
|
+
format: options.format,
|
|
89
|
+
executor: options.executor,
|
|
90
|
+
});
|
|
91
|
+
process.stdout.write(result.output);
|
|
92
|
+
});
|
|
93
|
+
registerLoopResponseCommand(loop);
|
|
94
|
+
registerLoopActionCommand(loop);
|
|
95
|
+
}
|
|
96
|
+
function registerLoopResponseCommand(loop) {
|
|
97
|
+
const response = loop.command('response').description('Submit agent comparison responses to the local SQLite ledger');
|
|
98
|
+
addActionSelector(response.command('submit')
|
|
99
|
+
.requiredOption('--from-run <run-id>', 'comparison run id')
|
|
100
|
+
.option('--file <path>', 'agent response JSON file')
|
|
101
|
+
.option('--stdin', 'read agent response JSON from stdin'))
|
|
102
|
+
.action(async (options) => {
|
|
103
|
+
const result = await submitLoopResponse({
|
|
104
|
+
trajectoryId: options.trajectory,
|
|
105
|
+
target: options.target,
|
|
106
|
+
mode: options.mode,
|
|
107
|
+
fromRun: options.fromRun,
|
|
108
|
+
filePath: options.file,
|
|
109
|
+
responseJson: options.stdin ? readFileSync(0, 'utf8') : undefined,
|
|
110
|
+
});
|
|
111
|
+
console.log(`Agent response: ${result.responseId}`);
|
|
112
|
+
console.log(`Status: ${result.status}`);
|
|
113
|
+
if (result.summaryPath)
|
|
114
|
+
console.log(`Comparison summary: ${result.summaryPath}`);
|
|
115
|
+
if (result.validationErrors?.length)
|
|
116
|
+
console.log(result.validationErrors.join('\n'));
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function registerLoopActionCommand(loop) {
|
|
120
|
+
const action = loop.command('action').description('Record loop action ledger events');
|
|
121
|
+
addActionSelector(action.command('start')
|
|
122
|
+
.requiredOption('--from-run <run-id>', 'source run id')
|
|
123
|
+
.option('--kind <kind>', 'action kind', 'polish')
|
|
124
|
+
.option('--executor <executor>', 'action executor', 'subagent')
|
|
125
|
+
.requiredOption('--summary <text>', 'short action summary'))
|
|
126
|
+
.action((options) => {
|
|
127
|
+
printAction({
|
|
128
|
+
trajectoryId: options.trajectory,
|
|
129
|
+
target: options.target,
|
|
130
|
+
mode: options.mode,
|
|
131
|
+
status: 'started',
|
|
132
|
+
kind: options.kind,
|
|
133
|
+
executor: options.executor,
|
|
134
|
+
fromRunId: options.fromRun,
|
|
135
|
+
summary: options.summary,
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
addActionSelector(action.command('complete')
|
|
139
|
+
.requiredOption('--action <action-id>', 'action id')
|
|
140
|
+
.requiredOption('--summary <text>', 'short action summary')
|
|
141
|
+
.option('--files <paths>', 'comma-separated edited files')
|
|
142
|
+
.option('--commit <sha>', 'commit sha')
|
|
143
|
+
.option('--kind <kind>', 'action kind', 'polish')
|
|
144
|
+
.option('--executor <executor>', 'action executor', 'agent'))
|
|
145
|
+
.action((options) => {
|
|
146
|
+
printAction({
|
|
147
|
+
trajectoryId: options.trajectory,
|
|
148
|
+
target: options.target,
|
|
149
|
+
mode: options.mode,
|
|
150
|
+
status: 'completed',
|
|
151
|
+
kind: options.kind,
|
|
152
|
+
executor: options.executor,
|
|
153
|
+
actionId: options.action,
|
|
154
|
+
summary: options.summary,
|
|
155
|
+
files: parseFiles(options.files),
|
|
156
|
+
commit: options.commit,
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
addActionSelector(action.command('skip')
|
|
160
|
+
.requiredOption('--from-run <run-id>', 'source run id')
|
|
161
|
+
.requiredOption('--summary <text>', 'short action summary')
|
|
162
|
+
.option('--executor <executor>', 'action executor', 'agent'))
|
|
163
|
+
.action((options) => {
|
|
164
|
+
printAction({
|
|
165
|
+
trajectoryId: options.trajectory,
|
|
166
|
+
target: options.target,
|
|
167
|
+
mode: options.mode,
|
|
168
|
+
status: 'skipped',
|
|
169
|
+
kind: 'no-op',
|
|
170
|
+
executor: options.executor,
|
|
171
|
+
fromRunId: options.fromRun,
|
|
172
|
+
summary: options.summary,
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function printAction(input) {
|
|
177
|
+
const result = recordLoopAction(input);
|
|
178
|
+
console.log(`Action: ${result.actionId}`);
|
|
179
|
+
}
|
|
180
|
+
function addActionSelector(command) {
|
|
181
|
+
return command
|
|
182
|
+
.option('--trajectory <id>', 'trajectory id')
|
|
183
|
+
.option('-t, --target <name>', 'target name')
|
|
184
|
+
.option('--mode <mode>', 'loop mode');
|
|
185
|
+
}
|
|
186
|
+
function parseFiles(files) {
|
|
187
|
+
const parsed = files?.split(',').map((file) => file.trim()).filter(Boolean);
|
|
188
|
+
return parsed && parsed.length > 0 ? parsed : undefined;
|
|
70
189
|
}
|
|
71
190
|
//# sourceMappingURL=loop-cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-cli.js","sourceRoot":"","sources":["../../src/commands/loop-cli.ts"],"names":[],"mappings":"
|
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E,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5E,OAAO,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { resolveTargetWithSource, resolveWorkspace } from '../core/workspace.js'
|
|
|
10
10
|
import { compareImageReference, compareReferenceImplementation } from './compare.js';
|
|
11
11
|
export async function runLoopComparison(input) {
|
|
12
12
|
if (input.mode === 'image-mockup') {
|
|
13
|
-
return compareImageReference({ workspaceRoot: input.workspaceRoot, target: input.target, headed: input.headed, fullPage: input.fullPage });
|
|
13
|
+
return compareImageReference({ workspaceRoot: input.workspaceRoot, target: input.target, headed: input.headed, fullPage: input.fullPage, trajectoryId: input.trajectoryId });
|
|
14
14
|
}
|
|
15
15
|
if (input.mode === 'mockup-implementation') {
|
|
16
16
|
if (!input.url)
|
|
@@ -22,6 +22,7 @@ export async function runLoopComparison(input) {
|
|
|
22
22
|
headed: input.headed,
|
|
23
23
|
storageState: input.storageState,
|
|
24
24
|
fullPage: input.fullPage,
|
|
25
|
+
trajectoryId: input.trajectoryId,
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
return compareImageImplementation(input);
|
|
@@ -55,6 +56,7 @@ async function compareImageImplementation(input) {
|
|
|
55
56
|
captureDir,
|
|
56
57
|
mode: 'image-implementation',
|
|
57
58
|
profile: 'ideal-to-implementation',
|
|
59
|
+
responseSubmitCommand: responseSubmitCommand(input.trajectoryId, logger.runId),
|
|
58
60
|
imageInputs: {
|
|
59
61
|
expectedImagePath: target.sourceImagePath,
|
|
60
62
|
actualImagePath: implementationPath,
|
|
@@ -66,7 +68,7 @@ async function compareImageImplementation(input) {
|
|
|
66
68
|
`Source image: ${target.sourceImagePath}`,
|
|
67
69
|
`Implementation: ${implementationPath}`,
|
|
68
70
|
`Side-by-side: ${sideBySidePath}`,
|
|
69
|
-
|
|
71
|
+
'Agent comparison response store: local SQLite ledger',
|
|
70
72
|
'',
|
|
71
73
|
].join('\n'));
|
|
72
74
|
await logger.artifact(implementationPath, 'screenshot');
|
|
@@ -96,4 +98,7 @@ async function compareImageImplementation(input) {
|
|
|
96
98
|
throw error;
|
|
97
99
|
}
|
|
98
100
|
}
|
|
101
|
+
function responseSubmitCommand(trajectoryId, runId) {
|
|
102
|
+
return trajectoryId ? `limner loop response submit --trajectory ${trajectoryId} --from-run ${runId} --file <response.json>` : undefined;
|
|
103
|
+
}
|
|
99
104
|
//# sourceMappingURL=loop-comparison-adapters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-comparison-adapters.js","sourceRoot":"","sources":["../../src/commands/loop-comparison-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAkC,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"loop-comparison-adapters.js","sourceRoot":"","sources":["../../src/commands/loop-comparison-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB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