@ai-matrx/associations 0.14.78 → 0.14.80

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.
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, ReactNode } from 'react';
3
- import { j as AssociationsNotifier, W as WindowShellPort, k as CapturePort, P as PickerOverrideMap, E as EntityDoorsPort, l as AuthorDisplayPort, m as AssociationsStore, n as CategoryMutationResult, o as CategoryDimension, p as PlatformCategory, q as CategoriesEntry, r as EntityTypeToken, s as UniversalCandidate, t as CandidateRecord, u as PlatformComment, v as CommentsEntry, w as CommentAnchor, x as CommentMutationResult, e as AssociationPickerProps, y as EntityDoorProps, z as EntityRefProps, B as ContentRole } from '../CommentThread-BR1YGP-O.cjs';
4
- export { D as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, F as AssociationCard, G as AssociationCardGrid, b as AssociationCardGridProps, H as AssociationCardLook, a as AssociationCardProps, I as AssociationEntitySelect, J as AssociationEntitySelectAdapter, K as AssociationEntitySelectItem, c as AssociationEntitySelectProps, L as AssociationList, d as AssociationListProps, M as AssociationWindow, f as AssociationWindowProps, N as AssociationWriteResult, O as AttachedItemsSheet, g as AttachedItemsSheetProps, Q as CaptureAttach, R as CaptureAttachResult, S as CaptureToolbarAction, T as CategorySelect, C as CategorySelectProps, V as CategoryTagPicker, h as CategoryTagPickerProps, X as CommentComposer, Y as CommentComposerProps, Z as CommentThread, i as CommentThreadProps, _ as ContainerLink, $ as ContainerResourceRow, a0 as ContainerResourcesAdapter, a1 as DefaultEntityIcon, a2 as PostedComment, a3 as PrimaryContainerEntity, a4 as PrimaryEntity, a5 as PrimaryEntityProvider, a6 as PrimaryFiledEntity, a7 as TagPickerIcon, a8 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a9 as UseAssociationEntitySelectAdapterArgs, aa as UseAssociationsArgs, ab as UseAssociationsReturn, ac as UseContainerLinksArgs, ad as UseContainerLinksReturn, ae as attachedKey, af as buildCommentTree, ag as containerLinksArgs, ah as linkDirection, ai as useAssociationEntitySelectAdapter, aj as useAssociations, ak as useContainerLinks, al as useContainerLinksAdapter, am as useEntityRelationships, an as usePrimaryEntity } from '../CommentThread-BR1YGP-O.cjs';
3
+ import { j as AssociationsNotifier, W as WindowShellPort, k as CapturePort, P as PickerOverrideMap, E as EntityDoorsPort, l as AuthorDisplayPort, m as AssociationsStore, n as CategoryMutationResult, o as CategoryDimension, p as PlatformCategory, q as CategoriesEntry, r as EntityTypeToken, s as UniversalCandidate, t as CandidateRecord, u as PlatformComment, v as CommentsEntry, w as CommentAnchor, x as CommentMutationResult, e as AssociationPickerProps, y as EntityDoorProps, z as EntityRefProps, B as ContentRole } from '../CommentThread-BKGU9jR-.cjs';
4
+ export { D as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, F as AssociationCard, G as AssociationCardGrid, b as AssociationCardGridProps, H as AssociationCardLook, a as AssociationCardProps, I as AssociationEntitySelect, J as AssociationEntitySelectAdapter, K as AssociationEntitySelectItem, c as AssociationEntitySelectProps, L as AssociationList, d as AssociationListProps, M as AssociationWindow, f as AssociationWindowProps, N as AssociationWriteResult, O as AttachedItemsSheet, g as AttachedItemsSheetProps, Q as CaptureAttach, R as CaptureAttachResult, S as CaptureToolbarAction, T as CategorySelect, C as CategorySelectProps, V as CategoryTagPicker, h as CategoryTagPickerProps, X as CommentComposer, Y as CommentComposerProps, Z as CommentThread, i as CommentThreadProps, _ as ContainerLink, $ as ContainerResourceRow, a0 as ContainerResourcesAdapter, a1 as DefaultEntityIcon, a2 as PostedComment, a3 as PrimaryContainerEntity, a4 as PrimaryEntity, a5 as PrimaryEntityProvider, a6 as PrimaryFiledEntity, a7 as TagPickerIcon, a8 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a9 as UseAssociationEntitySelectAdapterArgs, aa as UseAssociationsArgs, ab as UseAssociationsReturn, ac as UseContainerLinksArgs, ad as UseContainerLinksReturn, ae as attachedKey, af as buildCommentTree, ag as containerLinksArgs, ah as linkDirection, ai as useAssociationEntitySelectAdapter, aj as useAssociations, ak as useContainerLinks, al as useContainerLinksAdapter, am as useEntityRelationships, an as usePrimaryEntity } from '../CommentThread-BKGU9jR-.cjs';
5
5
  import '@ai-matrx/data/db';
6
6
 
7
7
  interface AssociationsUiPorts {
@@ -19,13 +19,19 @@ interface AssociationsUiPorts {
19
19
  body: string;
20
20
  className?: string | undefined;
21
21
  }>;
22
+ /**
23
+ * Sign in again (a signed-out tab). Shown as the action beside a signed-out
24
+ * failure; absent → the sentence alone, with Retry. The host opens its login
25
+ * in a NEW tab so the words typed here stay for Retry.
26
+ */
27
+ signIn?: () => void;
22
28
  }
23
29
  interface AssociationsProviderProps extends AssociationsUiPorts {
24
30
  /** The /core store the host constructed with `createAssociationsStore`. */
25
31
  store: AssociationsStore;
26
32
  children: ReactNode;
27
33
  }
28
- declare function AssociationsProvider({ store, notifier, windowShell, capture, pickerOverrides, entityDoors, authorDisplay, commentBody, children, }: AssociationsProviderProps): react.JSX.Element;
34
+ declare function AssociationsProvider({ store, notifier, windowShell, capture, pickerOverrides, entityDoors, authorDisplay, commentBody, signIn, children, }: AssociationsProviderProps): react.JSX.Element;
29
35
  /** The /core store bound by the nearest provider. Throws when unmounted. */
30
36
  declare function useAssociationsStore(): AssociationsStore;
31
37
  /** The UI ports the host bound (each optional, each degradable). */
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, ReactNode } from 'react';
3
- import { j as AssociationsNotifier, W as WindowShellPort, k as CapturePort, P as PickerOverrideMap, E as EntityDoorsPort, l as AuthorDisplayPort, m as AssociationsStore, n as CategoryMutationResult, o as CategoryDimension, p as PlatformCategory, q as CategoriesEntry, r as EntityTypeToken, s as UniversalCandidate, t as CandidateRecord, u as PlatformComment, v as CommentsEntry, w as CommentAnchor, x as CommentMutationResult, e as AssociationPickerProps, y as EntityDoorProps, z as EntityRefProps, B as ContentRole } from '../CommentThread-BR1YGP-O.js';
4
- export { D as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, F as AssociationCard, G as AssociationCardGrid, b as AssociationCardGridProps, H as AssociationCardLook, a as AssociationCardProps, I as AssociationEntitySelect, J as AssociationEntitySelectAdapter, K as AssociationEntitySelectItem, c as AssociationEntitySelectProps, L as AssociationList, d as AssociationListProps, M as AssociationWindow, f as AssociationWindowProps, N as AssociationWriteResult, O as AttachedItemsSheet, g as AttachedItemsSheetProps, Q as CaptureAttach, R as CaptureAttachResult, S as CaptureToolbarAction, T as CategorySelect, C as CategorySelectProps, V as CategoryTagPicker, h as CategoryTagPickerProps, X as CommentComposer, Y as CommentComposerProps, Z as CommentThread, i as CommentThreadProps, _ as ContainerLink, $ as ContainerResourceRow, a0 as ContainerResourcesAdapter, a1 as DefaultEntityIcon, a2 as PostedComment, a3 as PrimaryContainerEntity, a4 as PrimaryEntity, a5 as PrimaryEntityProvider, a6 as PrimaryFiledEntity, a7 as TagPickerIcon, a8 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a9 as UseAssociationEntitySelectAdapterArgs, aa as UseAssociationsArgs, ab as UseAssociationsReturn, ac as UseContainerLinksArgs, ad as UseContainerLinksReturn, ae as attachedKey, af as buildCommentTree, ag as containerLinksArgs, ah as linkDirection, ai as useAssociationEntitySelectAdapter, aj as useAssociations, ak as useContainerLinks, al as useContainerLinksAdapter, am as useEntityRelationships, an as usePrimaryEntity } from '../CommentThread-BR1YGP-O.js';
3
+ import { j as AssociationsNotifier, W as WindowShellPort, k as CapturePort, P as PickerOverrideMap, E as EntityDoorsPort, l as AuthorDisplayPort, m as AssociationsStore, n as CategoryMutationResult, o as CategoryDimension, p as PlatformCategory, q as CategoriesEntry, r as EntityTypeToken, s as UniversalCandidate, t as CandidateRecord, u as PlatformComment, v as CommentsEntry, w as CommentAnchor, x as CommentMutationResult, e as AssociationPickerProps, y as EntityDoorProps, z as EntityRefProps, B as ContentRole } from '../CommentThread-BKGU9jR-.js';
4
+ export { D as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, F as AssociationCard, G as AssociationCardGrid, b as AssociationCardGridProps, H as AssociationCardLook, a as AssociationCardProps, I as AssociationEntitySelect, J as AssociationEntitySelectAdapter, K as AssociationEntitySelectItem, c as AssociationEntitySelectProps, L as AssociationList, d as AssociationListProps, M as AssociationWindow, f as AssociationWindowProps, N as AssociationWriteResult, O as AttachedItemsSheet, g as AttachedItemsSheetProps, Q as CaptureAttach, R as CaptureAttachResult, S as CaptureToolbarAction, T as CategorySelect, C as CategorySelectProps, V as CategoryTagPicker, h as CategoryTagPickerProps, X as CommentComposer, Y as CommentComposerProps, Z as CommentThread, i as CommentThreadProps, _ as ContainerLink, $ as ContainerResourceRow, a0 as ContainerResourcesAdapter, a1 as DefaultEntityIcon, a2 as PostedComment, a3 as PrimaryContainerEntity, a4 as PrimaryEntity, a5 as PrimaryEntityProvider, a6 as PrimaryFiledEntity, a7 as TagPickerIcon, a8 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a9 as UseAssociationEntitySelectAdapterArgs, aa as UseAssociationsArgs, ab as UseAssociationsReturn, ac as UseContainerLinksArgs, ad as UseContainerLinksReturn, ae as attachedKey, af as buildCommentTree, ag as containerLinksArgs, ah as linkDirection, ai as useAssociationEntitySelectAdapter, aj as useAssociations, ak as useContainerLinks, al as useContainerLinksAdapter, am as useEntityRelationships, an as usePrimaryEntity } from '../CommentThread-BKGU9jR-.js';
5
5
  import '@ai-matrx/data/db';
6
6
 
7
7
  interface AssociationsUiPorts {
@@ -19,13 +19,19 @@ interface AssociationsUiPorts {
19
19
  body: string;
20
20
  className?: string | undefined;
21
21
  }>;
22
+ /**
23
+ * Sign in again (a signed-out tab). Shown as the action beside a signed-out
24
+ * failure; absent → the sentence alone, with Retry. The host opens its login
25
+ * in a NEW tab so the words typed here stay for Retry.
26
+ */
27
+ signIn?: () => void;
22
28
  }
23
29
  interface AssociationsProviderProps extends AssociationsUiPorts {
24
30
  /** The /core store the host constructed with `createAssociationsStore`. */
25
31
  store: AssociationsStore;
26
32
  children: ReactNode;
27
33
  }
28
- declare function AssociationsProvider({ store, notifier, windowShell, capture, pickerOverrides, entityDoors, authorDisplay, commentBody, children, }: AssociationsProviderProps): react.JSX.Element;
34
+ declare function AssociationsProvider({ store, notifier, windowShell, capture, pickerOverrides, entityDoors, authorDisplay, commentBody, signIn, children, }: AssociationsProviderProps): react.JSX.Element;
29
35
  /** The /core store bound by the nearest provider. Throws when unmounted. */
30
36
  declare function useAssociationsStore(): AssociationsStore;
31
37
  /** The UI ports the host bound (each optional, each degradable). */
@@ -26,6 +26,7 @@ function AssociationsProvider({
26
26
  entityDoors,
27
27
  authorDisplay,
28
28
  commentBody,
29
+ signIn,
29
30
  children
30
31
  }) {
31
32
  const notifierWarned = useRef(false);
@@ -41,7 +42,8 @@ function AssociationsProvider({
41
42
  ...pickerOverrides !== void 0 ? { pickerOverrides } : {},
42
43
  ...entityDoors !== void 0 ? { entityDoors } : {},
43
44
  ...authorDisplay !== void 0 ? { authorDisplay } : {},
44
- ...commentBody !== void 0 ? { commentBody } : {}
45
+ ...commentBody !== void 0 ? { commentBody } : {},
46
+ ...signIn !== void 0 ? { signIn } : {}
45
47
  },
46
48
  children
47
49
  }
@@ -399,6 +401,7 @@ var ENTITY_TYPE_TOKENS = [
399
401
  "crm_contact_candidate",
400
402
  "crm_deal",
401
403
  "crm_deal_stage_event",
404
+ "crm_enrichment_call",
402
405
  "crm_interaction",
403
406
  "crm_merge_candidate",
404
407
  "crm_outreach_list",
@@ -836,6 +839,7 @@ var ENTITY_TYPE_TOKENS = [
836
839
  "ops_proof_check",
837
840
  "ops_proof_run",
838
841
  "ops_proof_scenario",
842
+ "ops_source_read_cache",
839
843
  "ops_test_replay_cache",
840
844
  "org_admin_audit",
841
845
  "org_change_policy",
@@ -1172,6 +1176,7 @@ var ENTITY_TYPE_TOKENS = [
1172
1176
  "tool_bundle",
1173
1177
  "tool_call",
1174
1178
  "tool_call_facts",
1179
+ "tool_canary_run",
1175
1180
  "tool_catalog_cache",
1176
1181
  "tool_catalog_call",
1177
1182
  "tool_catalog_call_attempt",
@@ -1181,6 +1186,7 @@ var ENTITY_TYPE_TOKENS = [
1181
1186
  "tool_catalog_provider",
1182
1187
  "tool_definition_version",
1183
1188
  "tool_executor",
1189
+ "tool_feature_scorecard",
1184
1190
  "tool_surface_defaults",
1185
1191
  "tool_test_sample",
1186
1192
  "tool_ui",
@@ -1335,6 +1341,14 @@ function isEntityTypeToken(value) {
1335
1341
  return typeof value === "string" && ENTITY_TYPE_TOKEN_SET.has(value);
1336
1342
  }
1337
1343
 
1344
+ // src/core/rpcResult.ts
1345
+ import { isTransportFailure } from "@ai-matrx/api/net";
1346
+ var SIGNED_OUT_LEAD = "You're signed out";
1347
+ var SIGNED_OUT_MESSAGE = `${SIGNED_OUT_LEAD}. Sign in again \u2014 your text is kept here.`;
1348
+ function isSignedOutMessage(text) {
1349
+ return typeof text === "string" && text.startsWith(SIGNED_OUT_LEAD);
1350
+ }
1351
+
1338
1352
  // src/association-types.generated.ts
1339
1353
  var ASSOCIATION_PAIRS = /* @__PURE__ */ new Set([
1340
1354
  "agent>agent",
@@ -6272,6 +6286,7 @@ function CommentComposer({
6272
6286
  autoFocus = false
6273
6287
  }) {
6274
6288
  const notifier = useNotifier();
6289
+ const { signIn } = useAssociationsUiPorts();
6275
6290
  const [body, setBody] = useState16(initialValue);
6276
6291
  const [submitting, setSubmitting] = useState16(false);
6277
6292
  const [error, setError] = useState16(null);
@@ -6317,6 +6332,7 @@ function CommentComposer({
6317
6332
  origin: "associations/CommentThread"
6318
6333
  }
6319
6334
  ),
6335
+ error && signIn && isSignedOutMessage(error) && /* @__PURE__ */ jsx20(SignInAgain, { onClick: signIn }),
6320
6336
  /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
6321
6337
  /* @__PURE__ */ jsxs16(Button4, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
6322
6338
  submitting && /* @__PURE__ */ jsx20(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
@@ -6562,6 +6578,7 @@ function CommentThread({
6562
6578
  className
6563
6579
  }) {
6564
6580
  const thread = useComments({ token, id });
6581
+ const { signIn: signInPort } = useAssociationsUiPorts();
6565
6582
  const tree = buildCommentTree(thread.comments);
6566
6583
  const { childrenOf } = tree;
6567
6584
  const roots = part ? tree.roots.filter((c) => partKeyOf(c) === part.key) : tree.roots;
@@ -6593,6 +6610,7 @@ function CommentThread({
6593
6610
  origin: "associations/CommentThread",
6594
6611
  children: [
6595
6612
  /* @__PURE__ */ jsx20("span", { className: "min-w-0 flex-1", children: thread.error }),
6613
+ signInPort && isSignedOutMessage(thread.error) && /* @__PURE__ */ jsx20(SignInAgain, { onClick: signInPort }),
6596
6614
  /* @__PURE__ */ jsx20(
6597
6615
  Button4,
6598
6616
  {
@@ -6636,6 +6654,9 @@ function CommentThread({
6636
6654
  )
6637
6655
  ] });
6638
6656
  }
6657
+ function SignInAgain({ onClick }) {
6658
+ return /* @__PURE__ */ jsx20(Button4, { type: "button", size: "sm", variant: "outline", onClick, children: "Sign in" });
6659
+ }
6639
6660
  export {
6640
6661
  AssociationCandidateBody,
6641
6662
  AssociationCaptureToolbar,