@xiaozhiclaw/qlogicagent-core 0.6.8 → 0.6.10
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/index.js +10 -10
- package/dist/types/embedded/cloud-task.d.ts +15 -3
- package/package.json +1 -1
|
@@ -65,10 +65,13 @@ export interface CloudTaskStore {
|
|
|
65
65
|
renew(context: CloudExecutionContext, id: string, leaseId: string): Promise<boolean>;
|
|
66
66
|
/** CAS + live lease check + snapshot + next contiguous event cursor in one transaction. */
|
|
67
67
|
update(context: CloudExecutionContext, id: string, expectedRevision: number, task: CloudTaskSnapshot, event: CloudTaskEventPayload, leaseId?: string): Promise<CloudTaskSnapshot>;
|
|
68
|
+
/** Optional atomic prefix of display-only progress plus one state event. Preserve every
|
|
69
|
+
* event in order, increment cursor/revision by events.length, and use the same CAS/lease fence. */
|
|
70
|
+
updateBatch?(context: CloudExecutionContext, id: string, expectedRevision: number, task: CloudTaskSnapshot, events: readonly CloudTaskEventPayload[], leaseId: string): Promise<CloudTaskSnapshot>;
|
|
68
71
|
release(context: CloudExecutionContext, id: string, leaseId: string): Promise<void>;
|
|
69
|
-
/**
|
|
72
|
+
/** Display-only CAS append for text/reasoning, without resending unchanged task history. */
|
|
70
73
|
appendDelta?(context: CloudExecutionContext, id: string, expectedRevision: number, event: Extract<CloudTurnEvent, {
|
|
71
|
-
type: "delta";
|
|
74
|
+
type: "delta" | "reasoning_delta";
|
|
72
75
|
}>, leaseId: string): Promise<{
|
|
73
76
|
revision: number;
|
|
74
77
|
cursor: number;
|
|
@@ -95,10 +98,19 @@ export interface CloudTaskRuntimeOptions {
|
|
|
95
98
|
/** Required for interrupted model calls or unresolved effects. The product proves billing/retry safety. */
|
|
96
99
|
authorizeRecovery?(task: CloudTaskSnapshot, receipts: CloudToolReceipt[]): Promise<ModelRecoveryProof[] | void>;
|
|
97
100
|
heartbeatMs?: number;
|
|
98
|
-
/** Optional bounded text batching;
|
|
101
|
+
/** Optional bounded text/reasoning batching; types stay separate and control events flush in order. */
|
|
99
102
|
deltaBatch?: {
|
|
100
103
|
maxCharacters: number;
|
|
101
104
|
maxDelayMs: number;
|
|
105
|
+
reasoning?: {
|
|
106
|
+
maxCharacters: number;
|
|
107
|
+
maxDelayMs: number;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/** Coalesce display progress with the next durable boundary; requires store.updateBatch. */
|
|
111
|
+
progressBatch?: {
|
|
112
|
+
maxEvents: number;
|
|
113
|
+
maxDelayMs: number;
|
|
102
114
|
};
|
|
103
115
|
}
|
|
104
116
|
export interface CloudTaskRuntime {
|