@ai-matrx/associations 0.13.6 → 0.13.8

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.
@@ -727,8 +727,10 @@ var ENTITY_TYPE_TOKENS = [
727
727
  "media_selection_job",
728
728
  "media_source_library",
729
729
  "meet_call_invite",
730
+ "meet_invitee",
730
731
  "meet_meeting",
731
732
  "meet_note",
733
+ "meet_occurrence_override",
732
734
  "meet_participant",
733
735
  "meet_recording",
734
736
  "meet_transcript_segment",
@@ -892,6 +894,7 @@ var ENTITY_TYPE_TOKENS = [
892
894
  "scrape_path_override",
893
895
  "scrape_path_pattern",
894
896
  "scrape_retry_queue",
897
+ "search_item",
895
898
  "seo_ai_capability",
896
899
  "seo_ai_visibility_citation",
897
900
  "seo_ai_visibility_claim",
@@ -3391,55 +3394,6 @@ function AttachedItemsBody({
3391
3394
  // src/react/components/AssociationCard.tsx
3392
3395
  var import_react16 = require("react");
3393
3396
  var import_design_system7 = require("@ai-matrx/design-system");
3394
-
3395
- // src/react/contentRoles.ts
3396
- var CONTENT_ROLES = [
3397
- {
3398
- id: "utility",
3399
- title: "Utilities",
3400
- tagline: "The agents and tools that act on your knowledge.",
3401
- accentText: "text-violet-600 dark:text-violet-400",
3402
- accentBg: "bg-violet-500/10",
3403
- accentBar: "bg-violet-500"
3404
- },
3405
- {
3406
- id: "source",
3407
- title: "Sources",
3408
- tagline: "Incoming sources of truth (Knowledge In).",
3409
- accentText: "text-sky-600 dark:text-sky-400",
3410
- accentBg: "bg-sky-500/10",
3411
- accentBar: "bg-sky-500"
3412
- },
3413
- {
3414
- id: "destination",
3415
- title: "Outputs",
3416
- tagline: "Knowledge your team produces.",
3417
- accentText: "text-emerald-600 dark:text-emerald-400",
3418
- accentBg: "bg-emerald-500/10",
3419
- accentBar: "bg-emerald-500"
3420
- },
3421
- {
3422
- id: "hybrid",
3423
- title: "Sources & Outputs",
3424
- tagline: "Read from and written to.",
3425
- accentText: "text-teal-600 dark:text-teal-400",
3426
- accentBg: "bg-teal-500/10",
3427
- accentBar: "bg-gradient-to-r from-sky-500 to-emerald-500"
3428
- },
3429
- {
3430
- id: "container",
3431
- title: "Workspaces",
3432
- tagline: "How work is organized.",
3433
- accentText: "text-amber-600 dark:text-amber-400",
3434
- accentBg: "bg-amber-500/10",
3435
- accentBar: "bg-amber-500"
3436
- }
3437
- ];
3438
- function getContentRoleMeta(role) {
3439
- return CONTENT_ROLES.find((r) => r.id === role) ?? CONTENT_ROLES[2];
3440
- }
3441
-
3442
- // src/react/components/AssociationCard.tsx
3443
3397
  var import_jsx_runtime11 = require("react/jsx-runtime");
3444
3398
  function AssociationCard({
3445
3399
  token,
@@ -3451,7 +3405,6 @@ function AssociationCard({
3451
3405
  const container = containerProp ?? fromCtx;
3452
3406
  const [open, setOpen] = (0, import_react16.useState)(false);
3453
3407
  const info = store.registry.getEntityInfo(token);
3454
- const role = getContentRoleMeta(info.contentRole);
3455
3408
  const Icon = info.Icon ?? DefaultEntityIcon;
3456
3409
  const [listOpen, setListOpen] = (0, import_react16.useState)(false);
3457
3410
  const {
@@ -3485,15 +3438,6 @@ function AssociationCard({
3485
3438
  className
3486
3439
  ),
3487
3440
  children: [
3488
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3489
- "span",
3490
- {
3491
- className: (0, import_design_system7.cn)(
3492
- "absolute inset-x-0 top-0 h-0.5 opacity-60",
3493
- role.accentBar
3494
- )
3495
- }
3496
- ),
3497
3441
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
3498
3442
  "button",
3499
3443
  {
@@ -3506,17 +3450,7 @@ function AssociationCard({
3506
3450
  canDrillIn ? "cursor-pointer" : "cursor-default"
3507
3451
  ),
3508
3452
  children: [
3509
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3510
- "span",
3511
- {
3512
- className: (0, import_design_system7.cn)(
3513
- "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",
3514
- role.accentBg,
3515
- role.accentText
3516
- ),
3517
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: "h-4 w-4" })
3518
- }
3519
- ),
3453
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: "h-4 w-4" }) }),
3520
3454
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "min-w-0 flex-1", children: [
3521
3455
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "block truncate text-sm font-medium text-foreground", children: info.labelPlural }),
3522
3456
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "block text-[11px] text-muted-foreground tabular-nums", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "inline-flex items-center gap-1", children: [
@@ -3556,8 +3490,8 @@ function AssociationCard({
3556
3490
  setOpen(true);
3557
3491
  }
3558
3492
  } : {},
3559
- onDetach: (resourceId, role2) => detach(token, resourceId, role2 ?? void 0),
3560
- onSetPinned: (resourceId, pinned, role2) => setPinned(token, resourceId, pinned, role2 ?? void 0)
3493
+ onDetach: (resourceId, role) => detach(token, resourceId, role ?? void 0),
3494
+ onSetPinned: (resourceId, pinned, role) => setPinned(token, resourceId, pinned, role ?? void 0)
3561
3495
  }
3562
3496
  ),
3563
3497
  canAttach && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -3579,6 +3513,55 @@ function AssociationCard({
3579
3513
 
3580
3514
  // src/react/components/AssociationCardGrid.tsx
3581
3515
  var import_design_system8 = require("@ai-matrx/design-system");
3516
+
3517
+ // src/react/contentRoles.ts
3518
+ var CONTENT_ROLES = [
3519
+ {
3520
+ id: "utility",
3521
+ title: "Utilities",
3522
+ tagline: "The agents and tools that act on your knowledge.",
3523
+ accentText: "text-violet-600 dark:text-violet-400",
3524
+ accentBg: "bg-violet-500/10",
3525
+ accentBar: "bg-violet-500"
3526
+ },
3527
+ {
3528
+ id: "source",
3529
+ title: "Sources",
3530
+ tagline: "Incoming sources of truth (Knowledge In).",
3531
+ accentText: "text-sky-600 dark:text-sky-400",
3532
+ accentBg: "bg-sky-500/10",
3533
+ accentBar: "bg-sky-500"
3534
+ },
3535
+ {
3536
+ id: "destination",
3537
+ title: "Outputs",
3538
+ tagline: "Knowledge your team produces.",
3539
+ accentText: "text-emerald-600 dark:text-emerald-400",
3540
+ accentBg: "bg-emerald-500/10",
3541
+ accentBar: "bg-emerald-500"
3542
+ },
3543
+ {
3544
+ id: "hybrid",
3545
+ title: "Sources & Outputs",
3546
+ tagline: "Read from and written to.",
3547
+ accentText: "text-teal-600 dark:text-teal-400",
3548
+ accentBg: "bg-teal-500/10",
3549
+ accentBar: "bg-gradient-to-r from-sky-500 to-emerald-500"
3550
+ },
3551
+ {
3552
+ id: "container",
3553
+ title: "Workspaces",
3554
+ tagline: "How work is organized.",
3555
+ accentText: "text-amber-600 dark:text-amber-400",
3556
+ accentBg: "bg-amber-500/10",
3557
+ accentBar: "bg-amber-500"
3558
+ }
3559
+ ];
3560
+ function getContentRoleMeta(role) {
3561
+ return CONTENT_ROLES.find((r) => r.id === role) ?? CONTENT_ROLES[2];
3562
+ }
3563
+
3564
+ // src/react/components/AssociationCardGrid.tsx
3582
3565
  var import_jsx_runtime12 = require("react/jsx-runtime");
3583
3566
  function AssociationCardGrid({
3584
3567
  tokens,
@@ -3612,27 +3595,13 @@ function AssociationCardGrid({
3612
3595
  );
3613
3596
  if (inRole.length === 0) return null;
3614
3597
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { children: [
3615
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "mb-2.5 flex items-baseline gap-3 pl-1.5", children: [
3616
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-2", children: [
3617
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3618
- "span",
3619
- {
3620
- className: (0, import_design_system8.cn)("h-2.5 w-2.5 rounded-full", role.accentBar)
3621
- }
3622
- ),
3623
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "text-sm font-semibold text-foreground", children: role.title })
3624
- ] }),
3625
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "hidden text-xs text-muted-foreground sm:block", children: role.tagline })
3626
- ] }),
3627
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: inRole.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3598
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "mb-2 text-sm font-semibold text-foreground", children: role.title }),
3599
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-wrap gap-2 [&>*]:min-w-[16rem] [&>*]:flex-1", children: inRole.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3628
3600
  ] }, role.id);
3629
3601
  }),
3630
3602
  roleless.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { children: [
3631
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "mb-2.5 flex items-baseline gap-3 pl-1.5", children: [
3632
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "text-sm font-semibold text-foreground", children: "Filed under" }),
3633
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "hidden text-xs text-muted-foreground sm:block", children: "Libraries, topics and other places this is kept." })
3634
- ] }),
3635
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: roleless.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3603
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "mb-2 text-sm font-semibold text-foreground", children: "Filed under" }),
3604
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-wrap gap-2 [&>*]:min-w-[16rem] [&>*]:flex-1", children: roleless.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3636
3605
  ] })
3637
3606
  ] });
3638
3607
  }