labgate 0.5.30 → 0.5.32
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 +48 -0
- package/dist/cli.js +616 -0
- package/dist/cli.js.map +1 -1
- package/dist/lib/config.d.ts +11 -0
- package/dist/lib/config.js +44 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/container.d.ts +22 -3
- package/dist/lib/container.js +373 -67
- package/dist/lib/container.js.map +1 -1
- package/dist/lib/display-mcp.d.ts +10 -0
- package/dist/lib/display-mcp.js +160 -0
- package/dist/lib/display-mcp.js.map +1 -0
- package/dist/lib/display-store.d.ts +24 -0
- package/dist/lib/display-store.js +150 -0
- package/dist/lib/display-store.js.map +1 -0
- package/dist/lib/explorer-autopilot.d.ts +16 -0
- package/dist/lib/explorer-autopilot.js +573 -0
- package/dist/lib/explorer-autopilot.js.map +1 -0
- package/dist/lib/explorer-claude.d.ts +16 -0
- package/dist/lib/explorer-claude.js +361 -0
- package/dist/lib/explorer-claude.js.map +1 -0
- package/dist/lib/explorer-compare.d.ts +9 -0
- package/dist/lib/explorer-compare.js +190 -0
- package/dist/lib/explorer-compare.js.map +1 -0
- package/dist/lib/explorer-eval.d.ts +23 -0
- package/dist/lib/explorer-eval.js +161 -0
- package/dist/lib/explorer-eval.js.map +1 -0
- package/dist/lib/explorer-gc.d.ts +11 -0
- package/dist/lib/explorer-gc.js +304 -0
- package/dist/lib/explorer-gc.js.map +1 -0
- package/dist/lib/explorer-git.d.ts +14 -0
- package/dist/lib/explorer-git.js +136 -0
- package/dist/lib/explorer-git.js.map +1 -0
- package/dist/lib/explorer-lock.d.ts +5 -0
- package/dist/lib/explorer-lock.js +100 -0
- package/dist/lib/explorer-lock.js.map +1 -0
- package/dist/lib/explorer-mcp.d.ts +11 -0
- package/dist/lib/explorer-mcp.js +611 -0
- package/dist/lib/explorer-mcp.js.map +1 -0
- package/dist/lib/explorer-retention.d.ts +4 -0
- package/dist/lib/explorer-retention.js +58 -0
- package/dist/lib/explorer-retention.js.map +1 -0
- package/dist/lib/explorer-store.d.ts +77 -0
- package/dist/lib/explorer-store.js +950 -0
- package/dist/lib/explorer-store.js.map +1 -0
- package/dist/lib/explorer-types.d.ts +161 -0
- package/dist/lib/explorer-types.js +3 -0
- package/dist/lib/explorer-types.js.map +1 -0
- package/dist/lib/explorer.d.ts +31 -0
- package/dist/lib/explorer.js +247 -0
- package/dist/lib/explorer.js.map +1 -0
- package/dist/lib/results-mcp.d.ts +2 -2
- package/dist/lib/results-mcp.js +26 -4
- package/dist/lib/results-mcp.js.map +1 -1
- package/dist/lib/results-store.d.ts +1 -0
- package/dist/lib/results-store.js +87 -3
- package/dist/lib/results-store.js.map +1 -1
- package/dist/lib/runtime.d.ts +6 -0
- package/dist/lib/runtime.js +46 -19
- package/dist/lib/runtime.js.map +1 -1
- package/dist/lib/test/integration-harness.js +1 -1
- package/dist/lib/test/integration-harness.js.map +1 -1
- package/dist/lib/ui.d.ts +1 -0
- package/dist/lib/ui.html +11231 -4370
- package/dist/lib/ui.js +2564 -277
- package/dist/lib/ui.js.map +1 -1
- package/dist/lib/web-terminal.d.ts +13 -0
- package/dist/lib/web-terminal.js +118 -15
- package/dist/lib/web-terminal.js.map +1 -1
- package/dist/mcp-bundles/display-mcp.bundle.mjs +30209 -0
- package/dist/mcp-bundles/explorer-mcp.bundle.mjs +40044 -0
- package/dist/mcp-bundles/results-mcp.bundle.mjs +100 -7
- package/package.json +4 -3
- package/templates/tsp-lab/API_CONTRACT.md +20 -0
- package/templates/tsp-lab/EVAL.md +20 -0
- package/templates/tsp-lab/PROBLEM.md +18 -0
- package/templates/tsp-lab/data/generate_instances.py +51 -0
- package/templates/tsp-lab/data/instances.jsonl +12 -0
- package/templates/tsp-lab/eval.py +148 -0
- package/templates/tsp-lab/solver.py +88 -0
- package/templates/tsp-lab/stub-patches/enable_two_opt.patch +14 -0
package/README.md
CHANGED
|
@@ -94,6 +94,54 @@ labgate policy validate [file] # validate poli
|
|
|
94
94
|
labgate logs [-n 20] # view recent audit events
|
|
95
95
|
labgate logs --follow # stream new audit events
|
|
96
96
|
labgate init [--force] # create/reset config
|
|
97
|
+
labgate explore create --name <name> --repo <path> --eval "<command>" # create Solution Explorer experiment
|
|
98
|
+
labgate explore tick --experiment <id> # run one autopilot tick (cron-friendly)
|
|
99
|
+
labgate explore overview --experiment <id> # aggregated status/counts/best/latest
|
|
100
|
+
labgate explore run --id <run-id> # run metadata + artifact paths
|
|
101
|
+
labgate explore gc --experiment <id> # retention-based prune (dry-run by default)
|
|
102
|
+
labgate explore compare --experiment <id> --run <run-id> --to best # score+diff compare
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Solution Explorer (MVP backend)
|
|
106
|
+
|
|
107
|
+
LabGate now includes an early **Solution Explorer** backend for reproducible
|
|
108
|
+
variant search workflows:
|
|
109
|
+
|
|
110
|
+
- Isolated experiment repo clones under `~/.labgate/explorer/repos/`
|
|
111
|
+
- Git worktree-per-run execution
|
|
112
|
+
- Deterministic eval contract parsing (`score` JSON on last stdout line)
|
|
113
|
+
- Per-run artifacts (`eval.json`, logs, diff, summary)
|
|
114
|
+
- Cron-safe autopilot tick lock
|
|
115
|
+
|
|
116
|
+
Starter template:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
templates/tsp-lab/
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Example flow:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Create experiment from a local repo
|
|
126
|
+
labgate explore create \
|
|
127
|
+
--name "TSP baseline" \
|
|
128
|
+
--repo /path/to/tsp-lab \
|
|
129
|
+
--eval "python3 eval.py" \
|
|
130
|
+
--agent-mode stub \
|
|
131
|
+
--stub-patch stub-patches/enable_two_opt.patch
|
|
132
|
+
|
|
133
|
+
# Trigger one run
|
|
134
|
+
labgate explore tick --experiment <experiment-id>
|
|
135
|
+
|
|
136
|
+
# Inspect tree and leaderboard
|
|
137
|
+
labgate explore tree --experiment <experiment-id> --mode best_path
|
|
138
|
+
labgate explore leaderboard --experiment <experiment-id> --top 5
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Cron example (every 5 minutes):
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
*/5 * * * * /usr/bin/env labgate explore tick --experiment <experiment-id>
|
|
97
145
|
```
|
|
98
146
|
|
|
99
147
|
### Options
|