@qoder-ai/qoder-agent-sdk 1.0.30 → 1.0.32

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.
@@ -62,6 +62,8 @@ type InitConfig = {
62
62
  permissionMode?: PermissionMode;
63
63
  /** Use the daemon subscribe result instead of issuing Query initialize. */
64
64
  attachedInitialization?: Promise<SDKControlInitializeResponse>;
65
+ /** Resolve initialization only after the Fork transcript is durable. */
66
+ requireSessionStoreForkBarrier?: boolean;
65
67
  };
66
68
  export declare class QueryRunner implements InternalQuery {
67
69
  private static readonly CUSTOM_CONTEXT_CAPABILITY;
@@ -70,6 +72,7 @@ export declare class QueryRunner implements InternalQuery {
70
72
  private static readonly SIDE_QUESTION_CAPABILITY;
71
73
  private static readonly GOAL_CAPABILITY;
72
74
  private static readonly PLAN_MODE_CAPABILITY;
75
+ private static readonly SESSION_STORE_FORK_BARRIER_CAPABILITY;
73
76
  private readonly transport;
74
77
  private readonly inputStream;
75
78
  private readonly pendingRequests;
@@ -117,6 +120,7 @@ export declare class QueryRunner implements InternalQuery {
117
120
  private endInputFlushPromise?;
118
121
  private skillEvolutionFlushPromise?;
119
122
  private closePromise?;
123
+ private sessionStoreForkBarrierComplete;
120
124
  constructor(transport: Transport, isSingleTurn: boolean, canUseTool?: CanUseTool, hooks?: Partial<Record<InternalHookEvent, HookCallbackMatcher[]>>, abortController?: AbortController, sdkMcpServers?: Map<string, McpServer>, initConfig?: InitConfig, onElicitation?: OnElicitation, diagnostics?: DiagnosticsSink, onAuthExpired?: () => void, controlRequestTimeoutMs?: number, sdkMcpTransports?: Map<string, SdkMcpTransport>, pendingMcpResponses?: Map<string, PendingMcpResponse>, fetchJobToken?: FetchJobToken, resolveModel?: ModelPolicyProvider, resolveModelTimeoutMs?: number, sessionStore?: SessionStore, sessionStoreFlush?: SessionStoreFlush, sdkMcpToolOverrides?: Record<string, Record<string, McpToolRuntimeOverride>>, fetchServiceAccountToken?: FetchServiceAccountToken, memoryCallbacks?: MemoryRuntimeCallbacks, skillEvolutionCallbacks?: SkillEvolutionRuntimeCallbacks);
121
125
  private getRecord;
122
126
  private normalizeLogPreview;
@@ -214,6 +218,8 @@ export declare class QueryRunner implements InternalQuery {
214
218
  */
215
219
  initialize(): Promise<SDKControlInitializeResponse>;
216
220
  private performInitialize;
221
+ private completeSessionStoreForkBarrier;
222
+ private flushTranscriptMirrorForLifecycle;
217
223
  private invokeRegisteredHookCallback;
218
224
  /**
219
225
  * Get the cached initialization response.
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "version": 1,
3
3
  "brand": "global",
4
- "sdkVersion": "1.0.30",
5
- "qoderCliVersion": "1.1.35",
4
+ "sdkVersion": "1.0.32",
5
+ "qoderCliVersion": "1.1.40",
6
6
  "defaultTransport": "worker",
7
7
  "workerRuntime": {
8
8
  "packaged": false,
9
9
  "delivery": "install",
10
10
  "source": "qodercli-worker-runtime",
11
- "urlTemplate": "https://download.qoder.com/qodercli/releases/1.1.35/qodercli-worker-runtime-{target}.tgz",
11
+ "urlTemplate": "https://download.qoder.com/qodercli/releases/1.1.40/qodercli-worker-runtime-{target}.tgz",
12
12
  "artifactNameTemplate": "qodercli-worker-runtime-{target}.tgz",
13
- "sdkVersion": "1.0.30",
14
- "qoderCliVersion": "1.1.35"
13
+ "sdkVersion": "1.0.32",
14
+ "qoderCliVersion": "1.1.40"
15
15
  }
16
16
  }
@@ -11,15 +11,25 @@ export declare function isTranscriptMirrorMessage(value: unknown): value is Tran
11
11
  export declare class TranscriptMirrorBatcher {
12
12
  private readonly options;
13
13
  private readonly states;
14
+ private readonly failures;
15
+ private holding;
16
+ private receivedEntryCount;
14
17
  constructor(options: {
15
18
  store: SessionStore;
16
19
  flushMode: SessionStoreFlush;
17
20
  onMirrorError: (message: SDKMirrorErrorMessage) => void;
18
21
  diagnostics?: DiagnosticsSink;
19
22
  appendTimeoutMs?: number;
23
+ /** Keep all entries queued until a successful flush releases the barrier. */
24
+ holdUntilFlush?: boolean;
20
25
  });
21
26
  enqueue(message: TranscriptMirrorMessage): void;
22
- flush(): Promise<void>;
27
+ flush(options?: {
28
+ throwOnError?: boolean;
29
+ }): Promise<void>;
30
+ /** Persist the held bootstrap and restore the caller's normal flush mode. */
31
+ completeBarrier(): Promise<void>;
32
+ discardPending(): void;
23
33
  private drain;
24
34
  }
25
35
  export declare function sessionKeyFromTranscriptPath(filePath: string): SessionKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoder-ai/qoder-agent-sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "TypeScript SDK for building Qoder-powered coding agents.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "zod": "^3.25.0 || ^4.0.0"
52
52
  },
53
- "qoderCliVersion": "1.1.35",
53
+ "qoderCliVersion": "1.1.40",
54
54
  "qoderSdkBrand": "global",
55
55
  "license": "SEE LICENSE IN LICENSE"
56
56
  }