@homespunapps/core 1.6.51 → 1.6.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.
@@ -38,6 +38,13 @@ export interface AppStreamHandlers {
38
38
  onCaughtUp?: () => void;
39
39
  /** Fired on a `resync` frame — the caller should full-resync each collection. */
40
40
  onResync?: () => void;
41
+ /**
42
+ * A task was queued for this app: claim now rather than waiting out the poll
43
+ * interval. A HINT ONLY, carrying nothing, so a consumer that never receives one
44
+ * (no socket, dropped frame, older relay) must still poll and lose nothing but
45
+ * time. Only agent-key sockets receive it.
46
+ */
47
+ onAgentTaskAvailable?: () => void;
41
48
  /** Fired on the terminal `_dormant` frame (the app went dormant). */
42
49
  onDormant?: () => void;
43
50
  /** Fired on the terminal `_suspended` frame (an operator suspended the
@@ -92,6 +92,9 @@ export function openAppStream(opts, handlers) {
92
92
  case "resync":
93
93
  handlers.onResync?.();
94
94
  return;
95
+ case "agent-task.available":
96
+ handlers.onAgentTaskAvailable?.();
97
+ return;
95
98
  case "_dormant":
96
99
  handlers.onDormant?.();
97
100
  return;
package/dist/client.d.ts CHANGED
@@ -1408,7 +1408,7 @@ export interface BatchResult {
1408
1408
  * specific subset. Honored only for an owner/agent key.
1409
1409
  */
1410
1410
  export interface BatchWriteOptions {
1411
- suppress?: ("notify" | "webhooks")[];
1411
+ suppress?: ("notify" | "webhooks" | "agentTasks")[];
1412
1412
  emitEffects?: boolean;
1413
1413
  /**
1414
1414
  * Wave C1 natural-key upsert: match (or create) each row on this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespunapps/core",
3
- "version": "1.6.51",
3
+ "version": "1.6.53",
4
4
  "description": "Homespun relay client: typed HTTP + WebSocket operations against a Homespun relay. Framework-free.",
5
5
  "license": "MIT",
6
6
  "type": "module",