@hasna/todos 0.11.56 → 0.11.58

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 CHANGED
@@ -387,6 +387,40 @@ MCP clients can use `set_local_event_hook`, `list_local_event_hooks`,
387
387
  `test_local_event_hook`, and `remove_local_event_hook`. Hook delivery is
388
388
  local-only; it does not call hosted webhooks or cloud automation services.
389
389
 
390
+ ## Shared Event Webhooks
391
+
392
+ Task lifecycle changes also emit shared `@hasna/events` events with source
393
+ `todos`. Use `todos webhooks` for durable command or webhook subscriptions. This
394
+ is the preferred bridge for automation that should react to new tasks without
395
+ polling:
396
+
397
+ ```bash
398
+ todos webhooks add loops \
399
+ --id openloops-task-created \
400
+ --transport command \
401
+ --type task.created \
402
+ --arg=events \
403
+ --arg=handle \
404
+ --arg=todos-task \
405
+ --arg=--provider \
406
+ --arg=codewith \
407
+ --arg=--auth-profile \
408
+ --arg=account005 \
409
+ --arg=--permission-mode \
410
+ --arg=bypass \
411
+ --arg=--sandbox \
412
+ --arg=danger-full-access \
413
+ --timeout-ms 900000 \
414
+ --json
415
+ ```
416
+
417
+ When a task is created, `@hasna/events` sends the event JSON on stdin and in
418
+ `HASNA_EVENT_JSON`. OpenLoops uses that event to create a deduped one-shot
419
+ worker/verifier workflow for the task. The event data includes task identity,
420
+ title, description, project/list ids, working directory, tags, metadata, status,
421
+ priority, and timestamps. Local event hooks remain available for local-only
422
+ JSONL/socket/script integrations.
423
+
390
424
  ## Local Terminal Notifications
391
425
 
392
426
  Terminal notification rules are local watch rules for agents that want concise
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/dispatch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkL/D"}
1
+ {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/dispatch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuL/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/query-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkNzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QA8lFrD"}
1
+ {"version":3,"file":"query-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/query-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkNzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAkqFrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"task-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/task-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6DzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QA0wBpD"}
1
+ {"version":3,"file":"task-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/task-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuEzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QA0wBpD"}
@@ -1,9 +1,7 @@
1
- import { Command } from "commander";
2
1
  import { getPackageVersion } from "../lib/package-version.js";
3
2
  import type { Project, Task } from "../types/index.js";
4
3
  export { getPackageVersion };
5
4
  export declare function handleError(e: unknown): never;
6
- export declare function setProgramRef(p: Command): void;
7
5
  export declare function resolveTaskId(partialId: string): string;
8
6
  export declare function detectGitRoot(): string | null;
9
7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