@cotal-ai/connector-claude-code 0.33.5 → 0.33.7

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.
@@ -7,8 +7,16 @@
7
7
  * resume, fork, clear and compact all point at retained history and must keep ordinary adopt-at-end
8
8
  * semantics.
9
9
  */
10
- import { type DurableSource } from "@cotal-ai/connector-core";
10
+ import { type DurableSource, type SourceRead } from "@cotal-ai/connector-core";
11
11
  import type { ClaudeEntry } from "./agui-map.js";
12
+ export interface ClaudeTranscriptSourceOpts {
13
+ /** Production defaults to five seconds. Tests can shorten only the fail-loud deadline. */
14
+ startupFileWaitMs?: number;
15
+ }
16
+ export declare function readStartupTranscriptWhenReady<T>(read: () => Promise<SourceRead<T>>, opts: {
17
+ waitMs: number;
18
+ sleep?: (ms: number) => Promise<void>;
19
+ }): Promise<SourceRead<T>>;
12
20
  /** Build the transcript source for the exact source value Claude supplied on SessionStart. */
13
- export declare function createClaudeTranscriptSource(path: string, sessionSource: unknown): DurableSource<ClaudeEntry>;
21
+ export declare function createClaudeTranscriptSource(path: string, sessionSource: unknown, opts?: ClaudeTranscriptSourceOpts): DurableSource<ClaudeEntry>;
14
22
  //# sourceMappingURL=agui-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agui-source.d.ts","sourceRoot":"","sources":["../src/agui-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAmB,KAAK,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAgBjD,8FAA8F;AAC9F,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,CAgB7G"}
1
+ {"version":3,"file":"agui-source.d.ts","sourceRoot":"","sources":["../src/agui-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAmB,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAUjD,MAAM,WAAW,0BAA0B;IACzC,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,wBAAsB,8BAA8B,CAAC,CAAC,EACpD,IAAI,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAClC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,GAC9D,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAiCxB;AAuBD,8FAA8F;AAC9F,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,OAAO,EACtB,IAAI,GAAE,0BAA+B,GACpC,aAAa,CAAC,WAAW,CAAC,CAgB5B"}