@hasna/loops 0.3.51 → 0.3.53
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 +15 -0
- package/dist/cli/index.js +374 -27
- package/dist/daemon/index.js +61 -2
- package/dist/index.js +330 -10
- package/dist/lib/store.d.ts +1 -0
- package/dist/lib/store.js +60 -1
- package/dist/lib/templates.d.ts +13 -0
- package/dist/sdk/index.js +60 -1
- package/docs/USAGE.md +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -319,6 +319,7 @@ into a deduped one-shot workflow loop when route capacity allows:
|
|
|
319
319
|
|
|
320
320
|
```bash
|
|
321
321
|
cat task-created-event.json | loops events handle todos-task \
|
|
322
|
+
--template task-lifecycle \
|
|
322
323
|
--provider codewith \
|
|
323
324
|
--auth-profile-pool account004,account005,account006 \
|
|
324
325
|
--permission-mode bypass \
|
|
@@ -328,6 +329,19 @@ cat task-created-event.json | loops events handle todos-task \
|
|
|
328
329
|
--worktree-mode required
|
|
329
330
|
```
|
|
330
331
|
|
|
332
|
+
By default, `todos-task` routes use `todos-task-worker-verifier` for backwards
|
|
333
|
+
compatibility. Use `--template task-lifecycle` to run the full triage ->
|
|
334
|
+
planner -> worker -> verifier lifecycle. The route rejects unrelated templates
|
|
335
|
+
such as `pr-review` so a todos task cannot accidentally use the wrong contract.
|
|
336
|
+
The lifecycle template adds deterministic gates after triage and planning. If
|
|
337
|
+
either step marks the task blocked, omits its contextual
|
|
338
|
+
`openloops:triage=go task=<id> event=<event-id>` /
|
|
339
|
+
`openloops:planner=go task=<id> event=<event-id>` marker comment, or the task
|
|
340
|
+
is no-auto/manual/approval-required, the worker step is not started. Use
|
|
341
|
+
`--triage-auth-profile`, `--planner-auth-profile`, `--worker-auth-profile`, and
|
|
342
|
+
`--verifier-auth-profile` when exact Codewith profiles are needed, or use
|
|
343
|
+
`--auth-profile-pool` for deterministic role rotation.
|
|
344
|
+
|
|
331
345
|
For other Hasna apps that expose `@hasna/events` webhooks, use the generic
|
|
332
346
|
handler:
|
|
333
347
|
|
|
@@ -383,6 +397,7 @@ dispatch:
|
|
|
383
397
|
loops routes schedule todos-task oss-task-route-drain \
|
|
384
398
|
--every 5m \
|
|
385
399
|
--todos-project "$HOME/.hasna/loops" \
|
|
400
|
+
--template task-lifecycle \
|
|
386
401
|
--project-path-prefix /home/hasna/workspace/hasna/opensource \
|
|
387
402
|
--tags auto:route \
|
|
388
403
|
--provider codewith \
|