@xiaozhiclaw/qlogicagent-core 0.6.9 → 0.6.11
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 +8 -0
- package/package.json +1 -1
|
@@ -65,6 +65,9 @@ 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, {
|
|
@@ -104,6 +107,11 @@ export interface CloudTaskRuntimeOptions {
|
|
|
104
107
|
maxDelayMs: number;
|
|
105
108
|
};
|
|
106
109
|
};
|
|
110
|
+
/** Coalesce display progress with the next durable boundary; requires store.updateBatch. */
|
|
111
|
+
progressBatch?: {
|
|
112
|
+
maxEvents: number;
|
|
113
|
+
maxDelayMs: number;
|
|
114
|
+
};
|
|
107
115
|
}
|
|
108
116
|
export interface CloudTaskRuntime {
|
|
109
117
|
create(id: string, request: CloudTurnRequest): Promise<CloudTaskSnapshot>;
|