@hasna/loops 0.3.14 → 0.3.16
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 +20 -6
- package/dist/cli/index.js +590 -26
- package/dist/daemon/control.d.ts +1 -0
- package/dist/daemon/index.js +128 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +413 -15
- package/dist/lib/health.d.ts +70 -0
- package/dist/lib/store.d.ts +8 -1
- package/dist/lib/store.js +102 -5
- package/dist/lib/templates.d.ts +12 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +139 -7
- package/dist/types.d.ts +8 -0
- package/docs/USAGE.md +66 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -219,7 +219,7 @@ loops templates render todos-task-worker-verifier \
|
|
|
219
219
|
--var taskTitle="Fix parser" \
|
|
220
220
|
--var projectPath=/path/to/repo \
|
|
221
221
|
--var provider=codewith \
|
|
222
|
-
--var
|
|
222
|
+
--var authProfilePool=account004,account005,account006 \
|
|
223
223
|
--var sandbox=danger-full-access
|
|
224
224
|
loops templates create-workflow todos-task-worker-verifier \
|
|
225
225
|
--var taskId=<task-id> \
|
|
@@ -239,7 +239,7 @@ schedules a deduped one-shot workflow loop:
|
|
|
239
239
|
```bash
|
|
240
240
|
cat task-created-event.json | loops events handle todos-task \
|
|
241
241
|
--provider codewith \
|
|
242
|
-
--auth-profile account005 \
|
|
242
|
+
--auth-profile-pool account004,account005,account006 \
|
|
243
243
|
--permission-mode bypass \
|
|
244
244
|
--sandbox danger-full-access
|
|
245
245
|
```
|
|
@@ -250,7 +250,7 @@ handler:
|
|
|
250
250
|
```bash
|
|
251
251
|
cat event.json | loops events handle generic \
|
|
252
252
|
--provider codewith \
|
|
253
|
-
--auth-profile account005 \
|
|
253
|
+
--auth-profile-pool account004,account005,account006 \
|
|
254
254
|
--permission-mode bypass \
|
|
255
255
|
--sandbox danger-full-access \
|
|
256
256
|
--project-path /path/to/repo
|
|
@@ -258,9 +258,11 @@ cat event.json | loops events handle generic \
|
|
|
258
258
|
|
|
259
259
|
This is the intended deterministic-to-agentic path: a producer creates a todos
|
|
260
260
|
task, `@hasna/events` delivers `task.created`, OpenLoops creates a worker and a
|
|
261
|
-
verifier workflow, and the workflow updates todos with evidence. Use
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
verifier workflow, and the workflow updates todos with evidence. Use account
|
|
262
|
+
pools so worker and verifier steps do not burn the same profile; OpenLoops picks
|
|
263
|
+
deterministically and uses a different verifier profile when the pool has at
|
|
264
|
+
least two entries. Use `--dry-run` to inspect the rendered workflow and loop
|
|
265
|
+
input without storing anything.
|
|
264
266
|
|
|
265
267
|
## Transcript-Driven Loops
|
|
266
268
|
|
|
@@ -283,12 +285,24 @@ loops runs <id-or-name>
|
|
|
283
285
|
loops pause <id-or-name>
|
|
284
286
|
loops resume <id-or-name>
|
|
285
287
|
loops stop <id-or-name>
|
|
288
|
+
loops archive <id-or-name>
|
|
289
|
+
loops unarchive <id-or-name>
|
|
286
290
|
loops remove <id-or-name>
|
|
287
291
|
loops run-now <id-or-name>
|
|
288
292
|
```
|
|
289
293
|
|
|
290
294
|
Use `--json` for machine-readable output. Prompt bodies and run stdout/stderr are redacted by default in status output. `loops run-now` exits non-zero when the recorded run fails or times out.
|
|
291
295
|
|
|
296
|
+
Archive loops when retiring old automation but preserving history:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
loops archive <id-or-name>
|
|
300
|
+
loops list --archived
|
|
301
|
+
loops list --all
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Archived loops are hidden from the default `loops list`, excluded from daemon scheduling and doctor preflight, and cannot be run manually until restored with `loops unarchive`. `loops remove` deletes the loop record; prefer `archive` for superseded loops that may need audit history.
|
|
305
|
+
|
|
292
306
|
`loops run-now` reports the manual run source:
|
|
293
307
|
|
|
294
308
|
- `source=ad_hoc`: the loop was not due yet, so OpenLoops created a one-off manual slot. This is a single immediate attempt and does not schedule retries or consume the future scheduled slot.
|