@syntrologie/adapt-chatbot 2.8.0-canary.581 → 2.8.0-canary.583

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.
@@ -589,14 +589,14 @@ export declare const SuggestionChipSchema: z.ZodEffects<z.ZodObject<{
589
589
  }, "strip", z.ZodTypeAny, {
590
590
  type: "external";
591
591
  endpoint: string;
592
- default?: unknown;
593
592
  method?: "GET" | "POST" | undefined;
593
+ default?: unknown;
594
594
  timeoutMs?: number | undefined;
595
595
  }, {
596
596
  type: "external";
597
597
  endpoint: string;
598
- default?: unknown;
599
598
  method?: "GET" | "POST" | undefined;
599
+ default?: unknown;
600
600
  timeoutMs?: number | undefined;
601
601
  }>]>>>;
602
602
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -706,8 +706,8 @@ export declare const SuggestionChipSchema: z.ZodEffects<z.ZodObject<{
706
706
  } | {
707
707
  type: "external";
708
708
  endpoint: string;
709
- default?: unknown;
710
709
  method?: "GET" | "POST" | undefined;
710
+ default?: unknown;
711
711
  timeoutMs?: number | undefined;
712
712
  } | null | undefined;
713
713
  notify?: {
@@ -806,8 +806,8 @@ export declare const SuggestionChipSchema: z.ZodEffects<z.ZodObject<{
806
806
  } | {
807
807
  type: "external";
808
808
  endpoint: string;
809
- default?: unknown;
810
809
  method?: "GET" | "POST" | undefined;
810
+ default?: unknown;
811
811
  timeoutMs?: number | undefined;
812
812
  } | null | undefined;
813
813
  notify?: {
@@ -906,8 +906,8 @@ export declare const SuggestionChipSchema: z.ZodEffects<z.ZodObject<{
906
906
  } | {
907
907
  type: "external";
908
908
  endpoint: string;
909
- default?: unknown;
910
909
  method?: "GET" | "POST" | undefined;
910
+ default?: unknown;
911
911
  timeoutMs?: number | undefined;
912
912
  } | null | undefined;
913
913
  notify?: {
@@ -1006,8 +1006,8 @@ export declare const SuggestionChipSchema: z.ZodEffects<z.ZodObject<{
1006
1006
  } | {
1007
1007
  type: "external";
1008
1008
  endpoint: string;
1009
- default?: unknown;
1010
1009
  method?: "GET" | "POST" | undefined;
1010
+ default?: unknown;
1011
1011
  timeoutMs?: number | undefined;
1012
1012
  } | null | undefined;
1013
1013
  notify?: {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  AdaptiveChipsStrip,
3
3
  SuggestionChipSchema
4
- } from "./chunk-DZJKRGKS.js";
5
- import "./chunk-C4BKYT5B.js";
4
+ } from "./chunk-DSR56LAR.js";
5
+ import "./chunk-XE37MAXW.js";
6
6
  import "./chunk-LY5AGXVD.js";
7
7
  export {
8
8
  AdaptiveChipsStrip,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ChatAssistantLitMountable,
3
3
  renderFallbackHtml
4
- } from "./chunk-KTQILCBM.js";
5
- import "./chunk-TW56PCP2.js";
4
+ } from "./chunk-GZ2ETIKC.js";
5
+ import "./chunk-V4SBHTEF.js";
6
6
  import "./chunk-EWPPVPJ4.js";
7
7
  import "./chunk-GN7Z5IVP.js";
8
- import "./chunk-C4BKYT5B.js";
8
+ import "./chunk-XE37MAXW.js";
9
9
  import "./chunk-LY5AGXVD.js";
10
10
  export {
11
11
  ChatAssistantLitMountable,
@@ -3,7 +3,7 @@ import {
3
3
  NotifyZ,
4
4
  TriggerWhenZ,
5
5
  external_exports
6
- } from "./chunk-C4BKYT5B.js";
6
+ } from "./chunk-XE37MAXW.js";
7
7
 
8
8
  // src/AdaptiveChipsStrip.ts
9
9
  import { html, LitElement, nothing } from "lit";
@@ -638,4 +638,4 @@ export {
638
638
  SuggestionChipSchema,
639
639
  AdaptiveChipsStrip
640
640
  };
641
- //# sourceMappingURL=chunk-DZJKRGKS.js.map
641
+ //# sourceMappingURL=chunk-DSR56LAR.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createElementSessionController
3
- } from "./chunk-TW56PCP2.js";
3
+ } from "./chunk-V4SBHTEF.js";
4
4
  import {
5
5
  external_exports,
6
6
  stripMountPlumbing
7
- } from "./chunk-C4BKYT5B.js";
7
+ } from "./chunk-XE37MAXW.js";
8
8
  import {
9
9
  __export
10
10
  } from "./chunk-LY5AGXVD.js";
@@ -8442,4 +8442,4 @@ fast-json-patch/module/duplex.mjs:
8442
8442
  * MIT license
8443
8443
  *)
8444
8444
  */
8445
- //# sourceMappingURL=chunk-KTQILCBM.js.map
8445
+ //# sourceMappingURL=chunk-GZ2ETIKC.js.map
@@ -3,7 +3,7 @@ import {
3
3
  TILE_PATCHED_EVENT,
4
4
  TILE_REPLAY_REQUEST_EVENT,
5
5
  TILE_UNMOUNTED_EVENT
6
- } from "./chunk-C4BKYT5B.js";
6
+ } from "./chunk-XE37MAXW.js";
7
7
 
8
8
  // src/elements/ElementInstanceStore.ts
9
9
  var COMPOSITIONAL_REPLAY_REQUEST_EVENT = "element.compositional_replay_request";
@@ -880,4 +880,4 @@ export {
880
880
  createTemplateWidgetResolver,
881
881
  createElementSessionController
882
882
  };
883
- //# sourceMappingURL=chunk-TW56PCP2.js.map
883
+ //# sourceMappingURL=chunk-V4SBHTEF.js.map
@@ -4348,27 +4348,6 @@ function n(n2) {
4348
4348
  // ../../sdk-contracts/dist/canvas-context.js
4349
4349
  var canvasRuntimeContext = n("syntrologie:canvas-runtime");
4350
4350
 
4351
- // ../../sdk-contracts/dist/detector-events.js
4352
- var DETECTOR_EVENT_NAMES = [
4353
- "ui.hover",
4354
- "ui.idle",
4355
- "ui.hesitate",
4356
- "ui.rage_click",
4357
- "ui.scroll_thrash",
4358
- "ui.focus_bounce"
4359
- ];
4360
- var CANONICAL_BUS_EVENT_NAMES = [
4361
- ...DETECTOR_EVENT_NAMES,
4362
- "nav.section_viewed",
4363
- "nav.scroll_depth"
4364
- ];
4365
- function isCanonicalBusEvent(name) {
4366
- return CANONICAL_BUS_EVENT_NAMES.includes(name);
4367
- }
4368
-
4369
- // ../../sdk-contracts/dist/dive-deeper.js
4370
- var DIVE_DEEPER_EVENT = "syntro:chat:dive-deeper";
4371
-
4372
4351
  // ../../sdk-contracts/dist/telemetry-events.js
4373
4352
  var entry = (e2) => e2;
4374
4353
  var TELEMETRY_EVENTS = {
@@ -4546,11 +4525,86 @@ var TELEMETRY_EVENTS = {
4546
4525
  scope: "plan",
4547
4526
  props: ["variant", "reason"]
4548
4527
  // variant: SearchVariant, reason: SearchDismissReason
4528
+ }),
4529
+ // --- chat-app card lifecycle (2026-09-24) --------------------------------
4530
+ // One row per stage a card reached, from `reportCardStage` in
4531
+ // card-lifecycle.ts. Plan scope: most stages happen before a config is
4532
+ // served and none happen inside a concierge open. `stage` is a
4533
+ // CardLifecycleStage; `since_shell_ms` is the card shell's own clock, so a
4534
+ // card's rows order themselves from the first byte of the page. The same
4535
+ // stages reach the connector through the shell's beacon, which is the only
4536
+ // record of a card whose SDK never booted.
4537
+ syntro_card_lifecycle_seen: entry({
4538
+ subject: "card_lifecycle",
4539
+ verb: "seen",
4540
+ scope: "plan",
4541
+ props: ["stage", "since_shell_ms"]
4542
+ // stage: CardLifecycleStage
4549
4543
  })
4550
4544
  };
4551
4545
  var TELEMETRY_EVENT_NAMES = Object.keys(TELEMETRY_EVENTS);
4552
4546
  var TELEMETRY_DOM_EVENT = "syntro:telemetry";
4553
4547
 
4548
+ // ../../sdk-contracts/dist/card-lifecycle.js
4549
+ var CARD_TURN_ID_MAX = 100;
4550
+ var CARD_SESSION_REF_MAX = 300;
4551
+ var CARD_BEACON_GLOBAL = "__syntroCardBeacon";
4552
+ function reportCardStage(stage, detail) {
4553
+ if (typeof window === "undefined")
4554
+ return false;
4555
+ const beacon = window[CARD_BEACON_GLOBAL];
4556
+ if (typeof beacon !== "function")
4557
+ return false;
4558
+ let since;
4559
+ try {
4560
+ since = beacon(stage, boundIds(detail));
4561
+ } catch {
4562
+ }
4563
+ const sinceShellMs = Math.round(typeof since === "number" && Number.isFinite(since) ? since : performance.now());
4564
+ document.dispatchEvent(new CustomEvent(TELEMETRY_DOM_EVENT, {
4565
+ detail: {
4566
+ name: "syntro_card_lifecycle_seen",
4567
+ props: { stage, since_shell_ms: sinceShellMs }
4568
+ }
4569
+ }));
4570
+ return true;
4571
+ }
4572
+ function boundIds(detail) {
4573
+ if (!detail)
4574
+ return detail;
4575
+ const { turnId, sessionRef } = detail;
4576
+ const longTurn = typeof turnId === "string" && turnId.length > CARD_TURN_ID_MAX;
4577
+ const longRef = typeof sessionRef === "string" && sessionRef.length > CARD_SESSION_REF_MAX;
4578
+ if (!longTurn && !longRef)
4579
+ return detail;
4580
+ return {
4581
+ ...detail,
4582
+ ...longTurn ? { turnId: turnId.slice(0, CARD_TURN_ID_MAX) } : {},
4583
+ ...longRef ? { sessionRef: sessionRef.slice(0, CARD_SESSION_REF_MAX) } : {}
4584
+ };
4585
+ }
4586
+
4587
+ // ../../sdk-contracts/dist/detector-events.js
4588
+ var DETECTOR_EVENT_NAMES = [
4589
+ "ui.hover",
4590
+ "ui.idle",
4591
+ "ui.hesitate",
4592
+ "ui.rage_click",
4593
+ "ui.scroll_thrash",
4594
+ "ui.focus_bounce"
4595
+ ];
4596
+ var CANONICAL_BUS_EVENT_NAMES = [
4597
+ ...DETECTOR_EVENT_NAMES,
4598
+ "nav.section_viewed",
4599
+ "nav.scroll_depth"
4600
+ ];
4601
+ function isCanonicalBusEvent(name) {
4602
+ return CANONICAL_BUS_EVENT_NAMES.includes(name);
4603
+ }
4604
+
4605
+ // ../../sdk-contracts/dist/dive-deeper.js
4606
+ var DIVE_DEEPER_EVENT = "syntro:chat:dive-deeper";
4607
+
4554
4608
  // ../../sdk-contracts/dist/tile-lifecycle.js
4555
4609
  var TILE_MOUNTED_EVENT = "element.tile_mounted";
4556
4610
  var TILE_PATCHED_EVENT = "element.tile_patched";
@@ -4558,6 +4612,8 @@ var TILE_UNMOUNTED_EVENT = "element.tile_unmounted";
4558
4612
  var TILE_REPLAY_REQUEST_EVENT = "element.tile_replay_request";
4559
4613
 
4560
4614
  export {
4615
+ TELEMETRY_DOM_EVENT,
4616
+ reportCardStage,
4561
4617
  isCanonicalBusEvent,
4562
4618
  DIVE_DEEPER_EVENT,
4563
4619
  stripMountPlumbing,
@@ -4565,7 +4621,6 @@ export {
4565
4621
  AuthoringFieldsZ,
4566
4622
  TriggerWhenZ,
4567
4623
  NotifyZ,
4568
- TELEMETRY_DOM_EVENT,
4569
4624
  TILE_MOUNTED_EVENT,
4570
4625
  TILE_PATCHED_EVENT,
4571
4626
  TILE_UNMOUNTED_EVENT,
@@ -4599,4 +4654,4 @@ export {
4599
4654
  * SPDX-License-Identifier: BSD-3-Clause
4600
4655
  *)
4601
4656
  */
4602
- //# sourceMappingURL=chunk-C4BKYT5B.js.map
4657
+ //# sourceMappingURL=chunk-XE37MAXW.js.map