@cotal-ai/connector-claude-code 0.67.0 → 0.69.0

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/dist/hooks.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- import { type MeshAgent, type HookEvent, type HookHandle } from "@cotal-ai/connector-core";
1
+ import { type MeshAgent, type InboxItem, type HookEvent, type HookHandle } from "@cotal-ai/connector-core";
2
2
  import type { AguiEmitterHolder } from "@cotal-ai/connector-core";
3
3
  import type { ClaudeEntry } from "./agui-map.js";
4
4
  export interface ClaudeHandleDeps {
5
5
  /** The session's AG-UI emitter, read lazily — `mcp.ts` assigns it after the handler exists. */
6
6
  events?: () => AguiEmitterHolder<ClaudeEntry, unknown> | undefined;
7
+ /** Told which inbox items a frame surfaced; pass {@link WakePolicy.surfaced}. */
8
+ surfaced?: (items: readonly InboxItem[]) => void;
7
9
  }
8
10
  /** The hook side of the connector: the handler plus the delivery callback that commits what it
9
11
  * injected. Both must be wired into {@link startControlServer} — the handler surfaces, the
@@ -56,6 +58,9 @@ export type ChannelNotify = (params: {
56
58
  export interface WakePolicy {
57
59
  /** Flip once the MCP handshake confirms the client speaks `claude/channel`. */
58
60
  setChannelActive(active: boolean): void;
61
+ /** These items rode a hook frame, which spends the nudge that announced them. If that frame's
62
+ * reply never reached the runtime, their next redelivery is news to the session again. */
63
+ surfaced(items: readonly InboxItem[]): void;
59
64
  /** Teardown: stop the retry timer. */
60
65
  stop(): void;
61
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAcA,OAAO,EAML,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA+EjD,MAA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