@40rty/ams-sdk 0.5.1 → 0.5.3

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.
Files changed (30) hide show
  1. package/dist/index.js +639 -479
  2. package/dist/types/ecommerce/src/attribute-buckets.d.ts +2 -2
  3. package/dist/types/ecommerce/src/base-attributes.d.ts +3 -3
  4. package/dist/types/ecommerce/src/commerce-schemas.d.ts +1 -1
  5. package/dist/types/sdk/src/analytics/index.d.ts +1 -1
  6. package/dist/types/sdk/src/analytics/outbox.d.ts +2 -0
  7. package/dist/types/sdk/src/analytics/scope-context.d.ts +6 -0
  8. package/dist/types/sdk/src/analytics/scope.d.ts +7 -0
  9. package/dist/types/sdk/src/host/host-modules.d.ts +238 -36
  10. package/dist/types/sdk/src/session/turn-attributed-session.d.ts +4 -0
  11. package/dist/types/sdk/src/verticals/commerce/commerce-shapes.d.ts +3 -0
  12. package/dist/types/sdk/src/widgets/presence/core-presence/fact-shape.d.ts +1 -1
  13. package/dist/types/sdk/src/widgets/presence/core-presence/standing-signal-store.d.ts +1 -1
  14. package/dist/types/spacestation/src/analytics/envelope.d.ts +24 -0
  15. package/dist/types/spacestation/src/catalog/catalog-schemas.d.ts +1 -1
  16. package/dist/types/spacestation/src/catalog/element-filled.d.ts +2 -2
  17. package/dist/types/spacestation/src/catalog/wire/package-release.d.ts +10 -0
  18. package/dist/types/spacestation/src/commerce/cart-add-signal.d.ts +10 -0
  19. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/option-values.d.ts +1 -1
  20. package/dist/types/spacestation/src/index.d.ts +2 -0
  21. package/dist/types/spacestation/src/layout/layout.d.ts +3 -3
  22. package/dist/types/spacestation/src/space/agent-directive.d.ts +239 -0
  23. package/dist/types/spacestation/src/space/session-queue.d.ts +24 -24
  24. package/dist/types/spacestation/src/space/space-config.d.ts +1 -1
  25. package/dist/types/spacestation/src/space/trace.d.ts +12 -12
  26. package/dist/types/spacestation/src/space/workspace-catalog.d.ts +4 -4
  27. package/dist/types/spacestation/src/trace/trace-diagnostics.d.ts +8 -0
  28. package/dist/types/spacestation/src/trace/trace-envelopes.d.ts +1 -1
  29. package/dist/types/spacestation/src/trace/trace-events.d.ts +1 -1
  30. package/package.json +1 -1
@@ -36,8 +36,10 @@ export declare const HOST_MODULES: {
36
36
  z: typeof zod.z;
37
37
  createAnalyticsScope: typeof sdk.createAnalyticsScope;
38
38
  AnalyticsSinkProvider: react.Provider<sdk.AnalyticsSink | null>;
39
+ TurnScopeProvider: react.Provider<string | null>;
39
40
  useAnalyticsSink: typeof sdk.useAnalyticsSink;
40
41
  useOptionalAnalyticsSink: typeof sdk.useOptionalAnalyticsSink;
42
+ useTurnScope: typeof sdk.useTurnScope;
41
43
  SURFACE_DISPOSITION: Record<"spacefront" | "embed" | "replay" | "lab" | "static-canvas" | "packages-preview" | "console-preview" | "operator-preview", sdk.SurfaceDisposition>;
42
44
  surfaceEmits: typeof sdk.surfaceEmits;
43
45
  surfaceSuppressionReason: typeof sdk.surfaceSuppressionReason;
@@ -885,9 +887,11 @@ export declare const HOST_MODULES: {
885
887
  quantity: zod.ZodOptional<zod.ZodNumber>;
886
888
  selections: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
887
889
  optimisticLine: zod.ZodOptional<zod.ZodUnknown>;
890
+ turnId: zod.ZodOptional<zod.ZodString>;
888
891
  acknowledgeInDrawer: zod.ZodOptional<zod.ZodBoolean>;
889
892
  }, "strip", zod.ZodTypeAny, {
890
893
  origin: "visitor" | "agent" | "webmcp";
894
+ turnId?: string | undefined;
891
895
  productId?: string | undefined;
892
896
  quantity?: number | undefined;
893
897
  variantId?: string | undefined;
@@ -896,6 +900,7 @@ export declare const HOST_MODULES: {
896
900
  acknowledgeInDrawer?: boolean | undefined;
897
901
  }, {
898
902
  origin: "visitor" | "agent" | "webmcp";
903
+ turnId?: string | undefined;
899
904
  productId?: string | undefined;
900
905
  quantity?: number | undefined;
901
906
  variantId?: string | undefined;
@@ -1663,6 +1668,7 @@ export declare const HOST_MODULES: {
1663
1668
  order: number;
1664
1669
  content: string;
1665
1670
  }>, "many">>;
1671
+ spacePrompt: zod.ZodOptional<zod.ZodString>;
1666
1672
  config: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1667
1673
  draft: zod.ZodOptional<zod.ZodObject<{
1668
1674
  of: zod.ZodString;
@@ -1751,6 +1757,7 @@ export declare const HOST_MODULES: {
1751
1757
  order: number;
1752
1758
  content: string;
1753
1759
  }[] | undefined;
1760
+ spacePrompt?: string | undefined;
1754
1761
  draft?: {
1755
1762
  of: string;
1756
1763
  space: string;
@@ -1832,6 +1839,7 @@ export declare const HOST_MODULES: {
1832
1839
  order: number;
1833
1840
  content: string;
1834
1841
  }[] | undefined;
1842
+ spacePrompt?: string | undefined;
1835
1843
  draft?: {
1836
1844
  of: string;
1837
1845
  space: string;
@@ -2464,6 +2472,200 @@ export declare const HOST_MODULES: {
2464
2472
  normalizeAttributeField: typeof spacestation.normalizeAttributeField;
2465
2473
  scopedAttributeKey: typeof spacestation.scopedAttributeKey;
2466
2474
  scopeOfAttributeKey: typeof spacestation.scopeOfAttributeKey;
2475
+ AgentDirectiveSchema: zod.ZodObject<{
2476
+ name: zod.ZodString;
2477
+ kind: zod.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
2478
+ severity: zod.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
2479
+ text: zod.ZodEffects<zod.ZodString, string, string>;
2480
+ }, "strict", zod.ZodTypeAny, {
2481
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2482
+ name: string;
2483
+ text: string;
2484
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2485
+ }, {
2486
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2487
+ name: string;
2488
+ text: string;
2489
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2490
+ }>;
2491
+ SpaceAgentDirectiveSchema: zod.ZodObject<{
2492
+ id: zod.ZodString;
2493
+ position: zod.ZodNumber;
2494
+ name: zod.ZodString;
2495
+ kind: zod.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
2496
+ severity: zod.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
2497
+ text: zod.ZodString;
2498
+ source: zod.ZodEnum<["owner", "operator", "session-lesson"]>;
2499
+ status: zod.ZodEnum<["proposed", "active", "rejected", "retired"]>;
2500
+ createdBy: zod.ZodNullable<zod.ZodString>;
2501
+ evidence: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2502
+ decidedBy: zod.ZodNullable<zod.ZodString>;
2503
+ decidedAt: zod.ZodNullable<zod.ZodString>;
2504
+ createdAt: zod.ZodString;
2505
+ }, "strip", zod.ZodTypeAny, {
2506
+ status: "proposed" | "active" | "rejected" | "retired";
2507
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2508
+ id: string;
2509
+ name: string;
2510
+ text: string;
2511
+ source: "owner" | "operator" | "session-lesson";
2512
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2513
+ position: number;
2514
+ createdBy: string | null;
2515
+ evidence: Record<string, unknown> | null;
2516
+ decidedBy: string | null;
2517
+ decidedAt: string | null;
2518
+ createdAt: string;
2519
+ }, {
2520
+ status: "proposed" | "active" | "rejected" | "retired";
2521
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2522
+ id: string;
2523
+ name: string;
2524
+ text: string;
2525
+ source: "owner" | "operator" | "session-lesson";
2526
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2527
+ position: number;
2528
+ createdBy: string | null;
2529
+ evidence: Record<string, unknown> | null;
2530
+ decidedBy: string | null;
2531
+ decidedAt: string | null;
2532
+ createdAt: string;
2533
+ }>;
2534
+ SpaceAgentDirectiveListItemSchema: zod.ZodObject<{
2535
+ id: zod.ZodString;
2536
+ position: zod.ZodNumber;
2537
+ name: zod.ZodString;
2538
+ kind: zod.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
2539
+ severity: zod.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
2540
+ text: zod.ZodString;
2541
+ source: zod.ZodEnum<["owner", "operator", "session-lesson"]>;
2542
+ status: zod.ZodEnum<["proposed", "active", "rejected", "retired"]>;
2543
+ createdBy: zod.ZodNullable<zod.ZodString>;
2544
+ evidence: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2545
+ decidedBy: zod.ZodNullable<zod.ZodString>;
2546
+ decidedAt: zod.ZodNullable<zod.ZodString>;
2547
+ createdAt: zod.ZodString;
2548
+ } & {
2549
+ impact: zod.ZodNullable<zod.ZodObject<{
2550
+ before: zod.ZodObject<{
2551
+ turns: zod.ZodNumber;
2552
+ acted: zod.ZodNumber;
2553
+ }, "strip", zod.ZodTypeAny, {
2554
+ turns: number;
2555
+ acted: number;
2556
+ }, {
2557
+ turns: number;
2558
+ acted: number;
2559
+ }>;
2560
+ after: zod.ZodObject<{
2561
+ turns: zod.ZodNumber;
2562
+ acted: zod.ZodNumber;
2563
+ }, "strip", zod.ZodTypeAny, {
2564
+ turns: number;
2565
+ acted: number;
2566
+ }, {
2567
+ turns: number;
2568
+ acted: number;
2569
+ }>;
2570
+ }, "strip", zod.ZodTypeAny, {
2571
+ before: {
2572
+ turns: number;
2573
+ acted: number;
2574
+ };
2575
+ after: {
2576
+ turns: number;
2577
+ acted: number;
2578
+ };
2579
+ }, {
2580
+ before: {
2581
+ turns: number;
2582
+ acted: number;
2583
+ };
2584
+ after: {
2585
+ turns: number;
2586
+ acted: number;
2587
+ };
2588
+ }>>;
2589
+ }, "strip", zod.ZodTypeAny, {
2590
+ status: "proposed" | "active" | "rejected" | "retired";
2591
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2592
+ id: string;
2593
+ name: string;
2594
+ text: string;
2595
+ source: "owner" | "operator" | "session-lesson";
2596
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2597
+ position: number;
2598
+ createdBy: string | null;
2599
+ evidence: Record<string, unknown> | null;
2600
+ decidedBy: string | null;
2601
+ decidedAt: string | null;
2602
+ createdAt: string;
2603
+ impact: {
2604
+ before: {
2605
+ turns: number;
2606
+ acted: number;
2607
+ };
2608
+ after: {
2609
+ turns: number;
2610
+ acted: number;
2611
+ };
2612
+ } | null;
2613
+ }, {
2614
+ status: "proposed" | "active" | "rejected" | "retired";
2615
+ kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
2616
+ id: string;
2617
+ name: string;
2618
+ text: string;
2619
+ source: "owner" | "operator" | "session-lesson";
2620
+ severity: "a missed opportunity" | "a problem" | "unacceptable";
2621
+ position: number;
2622
+ createdBy: string | null;
2623
+ evidence: Record<string, unknown> | null;
2624
+ decidedBy: string | null;
2625
+ decidedAt: string | null;
2626
+ createdAt: string;
2627
+ impact: {
2628
+ before: {
2629
+ turns: number;
2630
+ acted: number;
2631
+ };
2632
+ after: {
2633
+ turns: number;
2634
+ acted: number;
2635
+ };
2636
+ } | null;
2637
+ }>;
2638
+ UpdateAgentDirectiveInputSchema: zod.ZodObject<{
2639
+ name: zod.ZodOptional<zod.ZodString>;
2640
+ kind: zod.ZodOptional<zod.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>>;
2641
+ severity: zod.ZodOptional<zod.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>>;
2642
+ text: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
2643
+ status: zod.ZodOptional<zod.ZodEnum<["proposed", "active", "rejected", "retired"]>>;
2644
+ }, "strict", zod.ZodTypeAny, {
2645
+ status?: "proposed" | "active" | "rejected" | "retired" | undefined;
2646
+ kind?: "promise" | "preference" | "pairing" | "order of things" | "threshold" | undefined;
2647
+ name?: string | undefined;
2648
+ text?: string | undefined;
2649
+ severity?: "a missed opportunity" | "a problem" | "unacceptable" | undefined;
2650
+ }, {
2651
+ status?: "proposed" | "active" | "rejected" | "retired" | undefined;
2652
+ kind?: "promise" | "preference" | "pairing" | "order of things" | "threshold" | undefined;
2653
+ name?: string | undefined;
2654
+ text?: string | undefined;
2655
+ severity?: "a missed opportunity" | "a problem" | "unacceptable" | undefined;
2656
+ }>;
2657
+ ReorderAgentDirectivesInputSchema: zod.ZodObject<{
2658
+ ids: zod.ZodArray<zod.ZodString, "many">;
2659
+ }, "strict", zod.ZodTypeAny, {
2660
+ ids: string[];
2661
+ }, {
2662
+ ids: string[];
2663
+ }>;
2664
+ AGENT_DIRECTIVE_KINDS: readonly ["preference", "pairing", "order of things", "promise", "threshold"];
2665
+ AGENT_DIRECTIVE_SEVERITIES: readonly ["a missed opportunity", "a problem", "unacceptable"];
2666
+ AGENT_DIRECTIVE_SOURCES: readonly ["owner", "operator", "session-lesson"];
2667
+ AGENT_DIRECTIVE_STATUSES: readonly ["proposed", "active", "rejected", "retired"];
2668
+ MAX_ACTIVE_AGENT_DIRECTIVES: 12;
2467
2669
  DEFAULT_SPACE_CONFIG: spacestation.SpaceConfig;
2468
2670
  DEFAULT_VISITOR_ACCESS: "open" | "identified" | "invited";
2469
2671
  VISITOR_ACCESS: readonly ["open", "identified", "invited"];
@@ -2515,7 +2717,9 @@ export declare const HOST_MODULES: {
2515
2717
  createdAt: zod.ZodString;
2516
2718
  }, "strip", zod.ZodTypeAny, {
2517
2719
  sessionId: string;
2720
+ turnId: string | null;
2518
2721
  id: string;
2722
+ createdAt: string;
2519
2723
  spaceId: string | null;
2520
2724
  visitorEmail: string | null;
2521
2725
  userPrompt: string;
@@ -2532,13 +2736,13 @@ export declare const HOST_MODULES: {
2532
2736
  latencyFirstText: number | null;
2533
2737
  latencyFirstPatch: number | null;
2534
2738
  latencyTotal: number | null;
2535
- turnId: string | null;
2536
- createdAt: string;
2537
2739
  layout?: unknown;
2538
2740
  trackerState?: unknown;
2539
2741
  }, {
2540
2742
  sessionId: string;
2743
+ turnId: string | null;
2541
2744
  id: string;
2745
+ createdAt: string;
2542
2746
  spaceId: string | null;
2543
2747
  visitorEmail: string | null;
2544
2748
  userPrompt: string;
@@ -2555,8 +2759,6 @@ export declare const HOST_MODULES: {
2555
2759
  latencyFirstText: number | null;
2556
2760
  latencyFirstPatch: number | null;
2557
2761
  latencyTotal: number | null;
2558
- turnId: string | null;
2559
- createdAt: string;
2560
2762
  layout?: unknown;
2561
2763
  trackerState?: unknown;
2562
2764
  }>;
@@ -2591,6 +2793,7 @@ export declare const HOST_MODULES: {
2591
2793
  turnId: zod.ZodNullable<zod.ZodString>;
2592
2794
  }, "strip", zod.ZodTypeAny, {
2593
2795
  sessionId: string;
2796
+ turnId: string | null;
2594
2797
  spaceId: string | null;
2595
2798
  visitorEmail: string | null;
2596
2799
  userPrompt: string;
@@ -2607,11 +2810,11 @@ export declare const HOST_MODULES: {
2607
2810
  latencyFirstText: number | null;
2608
2811
  latencyFirstPatch: number | null;
2609
2812
  latencyTotal: number | null;
2610
- turnId: string | null;
2611
2813
  layout?: unknown;
2612
2814
  trackerState?: unknown;
2613
2815
  }, {
2614
2816
  sessionId: string;
2817
+ turnId: string | null;
2615
2818
  spaceId: string | null;
2616
2819
  visitorEmail: string | null;
2617
2820
  userPrompt: string;
@@ -2628,7 +2831,6 @@ export declare const HOST_MODULES: {
2628
2831
  latencyFirstText: number | null;
2629
2832
  latencyFirstPatch: number | null;
2630
2833
  latencyTotal: number | null;
2631
- turnId: string | null;
2632
2834
  layout?: unknown;
2633
2835
  trackerState?: unknown;
2634
2836
  }>;
@@ -2676,6 +2878,7 @@ export declare const HOST_MODULES: {
2676
2878
  diagnostics: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown, "many">>;
2677
2879
  }, "strip", zod.ZodTypeAny, {
2678
2880
  id: string;
2881
+ createdAt: string;
2679
2882
  userPrompt: string;
2680
2883
  responseText: string | null;
2681
2884
  phaseTimings: Record<string, number> | null;
@@ -2686,10 +2889,10 @@ export declare const HOST_MODULES: {
2686
2889
  toolCalls: unknown[] | null;
2687
2890
  diagnostics: unknown[] | null;
2688
2891
  latencyTotal: number | null;
2689
- createdAt: string;
2690
2892
  layout?: unknown;
2691
2893
  }, {
2692
2894
  id: string;
2895
+ createdAt: string;
2693
2896
  userPrompt: string;
2694
2897
  responseText: string | null;
2695
2898
  phaseTimings: Record<string, number> | null;
@@ -2700,7 +2903,6 @@ export declare const HOST_MODULES: {
2700
2903
  toolCalls: unknown[] | null;
2701
2904
  diagnostics: unknown[] | null;
2702
2905
  latencyTotal: number | null;
2703
- createdAt: string;
2704
2906
  layout?: unknown;
2705
2907
  }>;
2706
2908
  SessionReplaySchema: zod.ZodObject<{
@@ -2726,6 +2928,7 @@ export declare const HOST_MODULES: {
2726
2928
  diagnostics: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown, "many">>;
2727
2929
  }, "strip", zod.ZodTypeAny, {
2728
2930
  id: string;
2931
+ createdAt: string;
2729
2932
  userPrompt: string;
2730
2933
  responseText: string | null;
2731
2934
  phaseTimings: Record<string, number> | null;
@@ -2736,10 +2939,10 @@ export declare const HOST_MODULES: {
2736
2939
  toolCalls: unknown[] | null;
2737
2940
  diagnostics: unknown[] | null;
2738
2941
  latencyTotal: number | null;
2739
- createdAt: string;
2740
2942
  layout?: unknown;
2741
2943
  }, {
2742
2944
  id: string;
2945
+ createdAt: string;
2743
2946
  userPrompt: string;
2744
2947
  responseText: string | null;
2745
2948
  phaseTimings: Record<string, number> | null;
@@ -2750,13 +2953,13 @@ export declare const HOST_MODULES: {
2750
2953
  toolCalls: unknown[] | null;
2751
2954
  diagnostics: unknown[] | null;
2752
2955
  latencyTotal: number | null;
2753
- createdAt: string;
2754
2956
  layout?: unknown;
2755
2957
  }>, "many">;
2756
2958
  sessionLayout: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2757
2959
  }, "strip", zod.ZodTypeAny, {
2758
2960
  turns: {
2759
2961
  id: string;
2962
+ createdAt: string;
2760
2963
  userPrompt: string;
2761
2964
  responseText: string | null;
2762
2965
  phaseTimings: Record<string, number> | null;
@@ -2767,13 +2970,13 @@ export declare const HOST_MODULES: {
2767
2970
  toolCalls: unknown[] | null;
2768
2971
  diagnostics: unknown[] | null;
2769
2972
  latencyTotal: number | null;
2770
- createdAt: string;
2771
2973
  layout?: unknown;
2772
2974
  }[];
2773
2975
  sessionLayout: Record<string, unknown> | null;
2774
2976
  }, {
2775
2977
  turns: {
2776
2978
  id: string;
2979
+ createdAt: string;
2777
2980
  userPrompt: string;
2778
2981
  responseText: string | null;
2779
2982
  phaseTimings: Record<string, number> | null;
@@ -2784,7 +2987,6 @@ export declare const HOST_MODULES: {
2784
2987
  toolCalls: unknown[] | null;
2785
2988
  diagnostics: unknown[] | null;
2786
2989
  latencyTotal: number | null;
2787
- createdAt: string;
2788
2990
  layout?: unknown;
2789
2991
  }[];
2790
2992
  sessionLayout: Record<string, unknown> | null;
@@ -3022,6 +3224,8 @@ export declare const HOST_MODULES: {
3022
3224
  }, "strip", zod.ZodTypeAny, {
3023
3225
  id: string;
3024
3226
  title: string;
3227
+ severity: "high" | "medium" | "low";
3228
+ createdBy: string;
3025
3229
  createdAt: string;
3026
3230
  provider: string;
3027
3231
  turnIndex: number | null;
@@ -3037,13 +3241,13 @@ export declare const HOST_MODULES: {
3037
3241
  issueUrl: string | null;
3038
3242
  issueState: string | null;
3039
3243
  body: string;
3040
- severity: "high" | "medium" | "low";
3041
- createdBy: string;
3042
3244
  resolvedAt: string | null;
3043
3245
  resolvedBy: string | null;
3044
3246
  }, {
3045
3247
  id: string;
3046
3248
  title: string;
3249
+ severity: "high" | "medium" | "low";
3250
+ createdBy: string;
3047
3251
  createdAt: string;
3048
3252
  provider: string;
3049
3253
  turnIndex: number | null;
@@ -3059,8 +3263,6 @@ export declare const HOST_MODULES: {
3059
3263
  issueUrl: string | null;
3060
3264
  issueState: string | null;
3061
3265
  body: string;
3062
- severity: "high" | "medium" | "low";
3063
- createdBy: string;
3064
3266
  resolvedAt: string | null;
3065
3267
  resolvedBy: string | null;
3066
3268
  }>;
@@ -3120,6 +3322,8 @@ export declare const HOST_MODULES: {
3120
3322
  sessionId: string;
3121
3323
  id: string;
3122
3324
  title: string;
3325
+ severity: "high" | "medium" | "low";
3326
+ createdBy: string;
3123
3327
  createdAt: string;
3124
3328
  provider: string;
3125
3329
  turnIndex: number | null;
@@ -3135,14 +3339,14 @@ export declare const HOST_MODULES: {
3135
3339
  issueUrl: string | null;
3136
3340
  issueState: string | null;
3137
3341
  body: string;
3138
- severity: "high" | "medium" | "low";
3139
- createdBy: string;
3140
3342
  resolvedAt: string | null;
3141
3343
  resolvedBy: string | null;
3142
3344
  }, {
3143
3345
  sessionId: string;
3144
3346
  id: string;
3145
3347
  title: string;
3348
+ severity: "high" | "medium" | "low";
3349
+ createdBy: string;
3146
3350
  createdAt: string;
3147
3351
  provider: string;
3148
3352
  turnIndex: number | null;
@@ -3158,8 +3362,6 @@ export declare const HOST_MODULES: {
3158
3362
  issueUrl: string | null;
3159
3363
  issueState: string | null;
3160
3364
  body: string;
3161
- severity: "high" | "medium" | "low";
3162
- createdBy: string;
3163
3365
  resolvedAt: string | null;
3164
3366
  resolvedBy: string | null;
3165
3367
  }>;
@@ -3208,6 +3410,7 @@ export declare const HOST_MODULES: {
3208
3410
  createdAt: zod.ZodString;
3209
3411
  }, "strip", zod.ZodTypeAny, {
3210
3412
  id: string;
3413
+ createdBy: string;
3211
3414
  createdAt: string;
3212
3415
  turnIndex: number | null;
3213
3416
  location: {
@@ -3219,10 +3422,10 @@ export declare const HOST_MODULES: {
3219
3422
  pageY: number | null;
3220
3423
  } | null;
3221
3424
  body: string;
3222
- createdBy: string;
3223
3425
  bugId: string | null;
3224
3426
  }, {
3225
3427
  id: string;
3428
+ createdBy: string;
3226
3429
  createdAt: string;
3227
3430
  turnIndex: number | null;
3228
3431
  location: {
@@ -3234,7 +3437,6 @@ export declare const HOST_MODULES: {
3234
3437
  pageY: number | null;
3235
3438
  } | null;
3236
3439
  body: string;
3237
- createdBy: string;
3238
3440
  bugId: string | null;
3239
3441
  }>;
3240
3442
  CreateCommentInputSchema: zod.ZodEffects<zod.ZodObject<{
@@ -3919,6 +4121,8 @@ export declare const HOST_MODULES: {
3919
4121
  }, "strip", zod.ZodTypeAny, {
3920
4122
  id: string;
3921
4123
  title: string;
4124
+ severity: "high" | "medium" | "low";
4125
+ createdBy: string;
3922
4126
  createdAt: string;
3923
4127
  provider: string;
3924
4128
  turnIndex: number | null;
@@ -3934,13 +4138,13 @@ export declare const HOST_MODULES: {
3934
4138
  issueUrl: string | null;
3935
4139
  issueState: string | null;
3936
4140
  body: string;
3937
- severity: "high" | "medium" | "low";
3938
- createdBy: string;
3939
4141
  resolvedAt: string | null;
3940
4142
  resolvedBy: string | null;
3941
4143
  }, {
3942
4144
  id: string;
3943
4145
  title: string;
4146
+ severity: "high" | "medium" | "low";
4147
+ createdBy: string;
3944
4148
  createdAt: string;
3945
4149
  provider: string;
3946
4150
  turnIndex: number | null;
@@ -3956,8 +4160,6 @@ export declare const HOST_MODULES: {
3956
4160
  issueUrl: string | null;
3957
4161
  issueState: string | null;
3958
4162
  body: string;
3959
- severity: "high" | "medium" | "low";
3960
- createdBy: string;
3961
4163
  resolvedAt: string | null;
3962
4164
  resolvedBy: string | null;
3963
4165
  }>, "many">;
@@ -4006,6 +4208,7 @@ export declare const HOST_MODULES: {
4006
4208
  createdAt: zod.ZodString;
4007
4209
  }, "strip", zod.ZodTypeAny, {
4008
4210
  id: string;
4211
+ createdBy: string;
4009
4212
  createdAt: string;
4010
4213
  turnIndex: number | null;
4011
4214
  location: {
@@ -4017,10 +4220,10 @@ export declare const HOST_MODULES: {
4017
4220
  pageY: number | null;
4018
4221
  } | null;
4019
4222
  body: string;
4020
- createdBy: string;
4021
4223
  bugId: string | null;
4022
4224
  }, {
4023
4225
  id: string;
4226
+ createdBy: string;
4024
4227
  createdAt: string;
4025
4228
  turnIndex: number | null;
4026
4229
  location: {
@@ -4032,7 +4235,6 @@ export declare const HOST_MODULES: {
4032
4235
  pageY: number | null;
4033
4236
  } | null;
4034
4237
  body: string;
4035
- createdBy: string;
4036
4238
  bugId: string | null;
4037
4239
  }>, "many">;
4038
4240
  activity: zod.ZodOptional<zod.ZodObject<{
@@ -4131,6 +4333,8 @@ export declare const HOST_MODULES: {
4131
4333
  bugs: {
4132
4334
  id: string;
4133
4335
  title: string;
4336
+ severity: "high" | "medium" | "low";
4337
+ createdBy: string;
4134
4338
  createdAt: string;
4135
4339
  provider: string;
4136
4340
  turnIndex: number | null;
@@ -4146,13 +4350,12 @@ export declare const HOST_MODULES: {
4146
4350
  issueUrl: string | null;
4147
4351
  issueState: string | null;
4148
4352
  body: string;
4149
- severity: "high" | "medium" | "low";
4150
- createdBy: string;
4151
4353
  resolvedAt: string | null;
4152
4354
  resolvedBy: string | null;
4153
4355
  }[];
4154
4356
  comments: {
4155
4357
  id: string;
4358
+ createdBy: string;
4156
4359
  createdAt: string;
4157
4360
  turnIndex: number | null;
4158
4361
  location: {
@@ -4164,7 +4367,6 @@ export declare const HOST_MODULES: {
4164
4367
  pageY: number | null;
4165
4368
  } | null;
4166
4369
  body: string;
4167
- createdBy: string;
4168
4370
  bugId: string | null;
4169
4371
  }[];
4170
4372
  activity?: {
@@ -4229,6 +4431,8 @@ export declare const HOST_MODULES: {
4229
4431
  bugs: {
4230
4432
  id: string;
4231
4433
  title: string;
4434
+ severity: "high" | "medium" | "low";
4435
+ createdBy: string;
4232
4436
  createdAt: string;
4233
4437
  provider: string;
4234
4438
  turnIndex: number | null;
@@ -4244,13 +4448,12 @@ export declare const HOST_MODULES: {
4244
4448
  issueUrl: string | null;
4245
4449
  issueState: string | null;
4246
4450
  body: string;
4247
- severity: "high" | "medium" | "low";
4248
- createdBy: string;
4249
4451
  resolvedAt: string | null;
4250
4452
  resolvedBy: string | null;
4251
4453
  }[];
4252
4454
  comments: {
4253
4455
  id: string;
4456
+ createdBy: string;
4254
4457
  createdAt: string;
4255
4458
  turnIndex: number | null;
4256
4459
  location: {
@@ -4262,7 +4465,6 @@ export declare const HOST_MODULES: {
4262
4465
  pageY: number | null;
4263
4466
  } | null;
4264
4467
  body: string;
4265
- createdBy: string;
4266
4468
  bugId: string | null;
4267
4469
  }[];
4268
4470
  activity?: {
@@ -4332,9 +4534,9 @@ export declare const HOST_MODULES: {
4332
4534
  }, "strip", zod.ZodTypeAny, {
4333
4535
  payload: Record<string, unknown>;
4334
4536
  title: string;
4537
+ severity: "high" | "medium" | "low";
4335
4538
  turnIndex: number | null;
4336
4539
  body: string;
4337
- severity: "high" | "medium" | "low";
4338
4540
  location?: {
4339
4541
  elementId: string | null;
4340
4542
  elementType: string | null;
@@ -4346,9 +4548,9 @@ export declare const HOST_MODULES: {
4346
4548
  }, {
4347
4549
  payload: Record<string, unknown>;
4348
4550
  title: string;
4551
+ severity: "high" | "medium" | "low";
4349
4552
  turnIndex: number | null;
4350
4553
  body: string;
4351
- severity: "high" | "medium" | "low";
4352
4554
  location?: {
4353
4555
  elementId: string | null;
4354
4556
  elementType: string | null;
@@ -0,0 +1,4 @@
1
+ import type { FourtySessionContextValue } from './FourtySessionContext';
2
+ /** The session as a component inside a canvas element sees it: its outcome
3
+ * signals carry that element's turn. Outside a turn, the session unchanged. */
4
+ export declare function useTurnAttributedSession(session: FourtySessionContextValue | null): FourtySessionContextValue | null;
@@ -74,6 +74,9 @@ export interface CartAddOptions extends CartAddPaint {
74
74
  * being deleted to make a count easier, so the count is made honest instead.
75
75
  */
76
76
  attemptId: string;
77
+ /** The agent turn whose canvas element caused this write, when it came from
78
+ * one — joins `commerce.cart_line_added` to that turn (`client_events.turn_id`). */
79
+ turnId?: string;
77
80
  }
78
81
  /**
79
82
  * What `useAddToCart` needs from its caller — deliberately NOT `CartAddOptions`.
@@ -49,7 +49,7 @@ export interface FactFigureParts {
49
49
  * dropped — and whether what is left deserves a size stamp — is a BRAND's reading
50
50
  * of its own vocabulary, not something shared infra gets to assert about every
51
51
  * space that mounts a notch. It belongs in the registered form (see
52
- * `@fourty/stevemadden`'s figure form), which has the whole fact and its own
52
+ * a footwear brand's figure form), which has the whole fact and its own
53
53
  * opinion about shoes.
54
54
  */
55
55
  export declare function factFigureParts(fact: PresenceFactRender): FactFigureParts | null;
@@ -1,6 +1,6 @@
1
1
  export interface StandingSignal {
2
2
  /** The signal TYPE — the routing key. A widget consumes the type it owns
3
- * (`agent_ask`, `stevemadden.wardrobe.keep-offer`, …). */
3
+ * (`agent_ask`, `acme.wardrobe.keep-offer`, …). */
4
4
  type: string;
5
5
  /** Stable id — dedupe + animation key. A resolved id never re-raises. */
6
6
  id: string;