@opencx/widget-core 5.4.3 → 5.4.4

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.
@@ -16,6 +16,28 @@ export declare class ActiveSessionPollingCtx {
16
16
  private subscriptions;
17
17
  /** Session the in-flight post-stream reconcile belongs to, if any. */
18
18
  private reconcilingSessionId;
19
+ /** Ids the latest polls returned; only these can be removed by a later poll. */
20
+ private seenHistoryIds;
21
+ /** Ids a poll removed. A response issued before the delete may still carry one; it must not come back. */
22
+ private removedHistoryIds;
23
+ /**
24
+ * Rows added by a response that could not remove, keyed to the highest seq
25
+ * issued when it landed. A removing response with a seq at or below that
26
+ * overlapped it and may have been read before the row was written, so it
27
+ * must not remove the row.
28
+ */
29
+ private protectedUntilSeq;
30
+ /** Session a poll response has landed for since the conversation started. */
31
+ private landedPollSessionId;
32
+ /** Polls overlap (the poller does not await them), so responses are ordered by issue. */
33
+ private pollSeq;
34
+ private lastAppliedSeq;
35
+ /**
36
+ * Highest seq issued when the last response was applied. A request issued
37
+ * while that response was in flight has no known snapshot order against it
38
+ * (the server may have read it first), so it may add rows but never remove.
39
+ */
40
+ private removableAfterSeq;
19
41
  constructor({ api, config, sessionCtx, messageCtx, sessionPollingIntervalSeconds, }: {
20
42
  api: ApiCaller;
21
43
  config: WidgetConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"active-session-polling.ctx.d.ts","sourceRoot":"","sources":["../../../src/context/active-session-polling.ctx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,OAAO,KAAK,E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A6C5B;IAEF,mBAAmB,GAAI,QAAQ,aAAa,SAgB1C;CACH"}
1
+ {"version":3,"file":"active-session-polling.ctx.d.ts","sourceRoot":"","sources":["../../../src/context/active-session-polling.ctx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,qBAAa,uBAAuB;IAClC,OAAO,CAAC,GAAG,CAAY;IACvB,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,6BAA6B,CAAS;IAE9C,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,yCAAyC,CAAyB;IAC1E,OAAO,CAAC,wBAAwB,CAAyB;IACzD,OAAO,CAAC,aAAa,CAAyB;IAC9C,sEAAsE;IACtE,OAAO,CAAC,oBAAoB,CAAuB;IACnD,gFAAgF;IAChF,OAAO,CAAC,cAAc,CAAqB;IAC3C,0GAA0G;IAC1G,OAAO,CAAC,iBAAiB,CAAqB;IAC9C;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB,CAA6B;IACtD,6EAA6E;IAC7E,OAAO,CAAC,mBAAmB,CAAuB;IAClD,yFAAyF;IACzF,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,cAAc,CAAK;IAC3B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB,CAAK;gBAElB,EACV,GAAG,EACH,MAAM,EACN,UAAU,EACV,UAAU,EACV,6BAA6B,GAC9B,EAAE;QACD,GAAG,EAAE,SAAS,CAAC;QACf,MAAM,EAAE,YAAY,CAAC;QACrB,UAAU,EAAE,UAAU,CAAC;QACvB,UAAU,EAAE,UAAU,CAAC;QACvB,6BAA6B,EAAE,MAAM,CAAC;KACvC;IAUD,OAAO,CAAC,eAAe,CAyErB;IAEF,OAAO,aAOL;IAEF;;;;;OAKG;IACH,oBAAoB,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAe7D;IAEF,sBAAsB,GAAU,6BAG7B;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,WAAW,CAAC;KAC1B,KAAG,OAAO,CAAC,IAAI,CAAC,CAiIf;IAEF,2FAA2F;IAC3F,OAAO,CAAC,oBAAoB,CAO1B;IAEF,mBAAmB,GAAI,SAAS,UAAU,KAAG,cAAc,GAAG,IAAI,CAiFhE;IAEF;;;;OAIG;IACH,gBAAgB,GACd,SAAS,UAAU,KAClB;QAAE,OAAO,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAUnC;IAEF,sBAAsB,GACpB,SAAS,UAAU,KAClB,oBAAoB,GAAG,IAAI,CA6C5B;IAEF,mBAAmB,GAAI,QAAQ,aAAa,SAgB1C;CACH"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opencx/widget-core",
3
3
  "private": false,
4
- "version": "5.4.3",
4
+ "version": "5.4.4",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -28,8 +28,8 @@
28
28
  "@types/react": "^19.2.18",
29
29
  "lucide": "^0.525.0",
30
30
  "openapi-typescript": "^7.5.2",
31
- "@opencx/eslint-config": "0.0.1",
32
- "@opencx/tsconfig": "0.0.2"
31
+ "@opencx/tsconfig": "0.0.2",
32
+ "@opencx/eslint-config": "0.0.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@types/react": ">=18 <20",