@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.
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentType } 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 CommentMutationResult, e as AssociationPickerProps, x as EntityDoorProps, y as EntityRefProps, z as ContentRole } from '../CommentThread-BRIjLMkA.cjs';
4
- export { B as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, D as AssociationCard, F as AssociationCardGrid, b as AssociationCardGridProps, a as AssociationCardProps, G as AssociationEntitySelect, H as AssociationEntitySelectAdapter, I as AssociationEntitySelectItem, c as AssociationEntitySelectProps, J as AssociationList, d as AssociationListProps, K as AssociationWindow, f as AssociationWindowProps, L as AssociationWriteResult, M as AttachedItemsSheet, g as AttachedItemsSheetProps, N as CaptureAttach, O as CaptureAttachResult, Q as CaptureToolbarAction, R as CategorySelect, C as CategorySelectProps, S as CategoryTagPicker, h as CategoryTagPickerProps, T as CommentComposer, V as CommentComposerProps, X as CommentThread, i as CommentThreadProps, Y as ContainerLink, Z as ContainerResourceRow, _ as ContainerResourcesAdapter, $ as DefaultEntityIcon, a0 as PrimaryContainerEntity, a1 as PrimaryEntity, a2 as PrimaryEntityProvider, a3 as PrimaryFiledEntity, a4 as TagPickerIcon, a5 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a6 as UseAssociationEntitySelectAdapterArgs, a7 as UseAssociationsArgs, a8 as UseAssociationsReturn, a9 as UseContainerLinksArgs, aa as UseContainerLinksReturn, ab as attachedKey, ac as buildCommentTree, ad as containerLinksArgs, ae as useAssociationEntitySelectAdapter, af as useAssociations, ag as useContainerLinks, ah as useContainerLinksAdapter, ai as useEntityRelationships, aj as usePrimaryEntity } from '../CommentThread-BRIjLMkA.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 CommentMutationResult, e as AssociationPickerProps, x as EntityDoorProps, y as EntityRefProps, z as ContentRole } from '../CommentThread-Bn5zeoDO.cjs';
4
+ export { B as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, D as AssociationCard, F as AssociationCardGrid, b as AssociationCardGridProps, a as AssociationCardProps, G as AssociationEntitySelect, H as AssociationEntitySelectAdapter, I as AssociationEntitySelectItem, c as AssociationEntitySelectProps, J as AssociationList, d as AssociationListProps, K as AssociationWindow, f as AssociationWindowProps, L as AssociationWriteResult, M as AttachedItemsSheet, g as AttachedItemsSheetProps, N as CaptureAttach, O as CaptureAttachResult, Q as CaptureToolbarAction, R as CategorySelect, C as CategorySelectProps, S as CategoryTagPicker, h as CategoryTagPickerProps, T as CommentComposer, V as CommentComposerProps, X as CommentThread, i as CommentThreadProps, Y as ContainerLink, Z as ContainerResourceRow, _ as ContainerResourcesAdapter, $ as DefaultEntityIcon, a0 as PrimaryContainerEntity, a1 as PrimaryEntity, a2 as PrimaryEntityProvider, a3 as PrimaryFiledEntity, a4 as TagPickerIcon, a5 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a6 as UseAssociationEntitySelectAdapterArgs, a7 as UseAssociationsArgs, a8 as UseAssociationsReturn, a9 as UseContainerLinksArgs, aa as UseContainerLinksReturn, ab as attachedKey, ac as buildCommentTree, ad as containerLinksArgs, ae as useAssociationEntitySelectAdapter, af as useAssociations, ag as useContainerLinks, ah as useContainerLinksAdapter, ai as useEntityRelationships, aj as usePrimaryEntity } from '../CommentThread-Bn5zeoDO.cjs';
5
5
 
6
6
  interface AssociationsUiPorts {
7
7
  notifier?: AssociationsNotifier;
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentType } 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 CommentMutationResult, e as AssociationPickerProps, x as EntityDoorProps, y as EntityRefProps, z as ContentRole } from '../CommentThread-BRIjLMkA.js';
4
- export { B as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, D as AssociationCard, F as AssociationCardGrid, b as AssociationCardGridProps, a as AssociationCardProps, G as AssociationEntitySelect, H as AssociationEntitySelectAdapter, I as AssociationEntitySelectItem, c as AssociationEntitySelectProps, J as AssociationList, d as AssociationListProps, K as AssociationWindow, f as AssociationWindowProps, L as AssociationWriteResult, M as AttachedItemsSheet, g as AttachedItemsSheetProps, N as CaptureAttach, O as CaptureAttachResult, Q as CaptureToolbarAction, R as CategorySelect, C as CategorySelectProps, S as CategoryTagPicker, h as CategoryTagPickerProps, T as CommentComposer, V as CommentComposerProps, X as CommentThread, i as CommentThreadProps, Y as ContainerLink, Z as ContainerResourceRow, _ as ContainerResourcesAdapter, $ as DefaultEntityIcon, a0 as PrimaryContainerEntity, a1 as PrimaryEntity, a2 as PrimaryEntityProvider, a3 as PrimaryFiledEntity, a4 as TagPickerIcon, a5 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a6 as UseAssociationEntitySelectAdapterArgs, a7 as UseAssociationsArgs, a8 as UseAssociationsReturn, a9 as UseContainerLinksArgs, aa as UseContainerLinksReturn, ab as attachedKey, ac as buildCommentTree, ad as containerLinksArgs, ae as useAssociationEntitySelectAdapter, af as useAssociations, ag as useContainerLinks, ah as useContainerLinksAdapter, ai as useEntityRelationships, aj as usePrimaryEntity } from '../CommentThread-BRIjLMkA.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 CommentMutationResult, e as AssociationPickerProps, x as EntityDoorProps, y as EntityRefProps, z as ContentRole } from '../CommentThread-Bn5zeoDO.js';
4
+ export { B as AssociationCaptureToolbar, A as AssociationCaptureToolbarProps, D as AssociationCard, F as AssociationCardGrid, b as AssociationCardGridProps, a as AssociationCardProps, G as AssociationEntitySelect, H as AssociationEntitySelectAdapter, I as AssociationEntitySelectItem, c as AssociationEntitySelectProps, J as AssociationList, d as AssociationListProps, K as AssociationWindow, f as AssociationWindowProps, L as AssociationWriteResult, M as AttachedItemsSheet, g as AttachedItemsSheetProps, N as CaptureAttach, O as CaptureAttachResult, Q as CaptureToolbarAction, R as CategorySelect, C as CategorySelectProps, S as CategoryTagPicker, h as CategoryTagPickerProps, T as CommentComposer, V as CommentComposerProps, X as CommentThread, i as CommentThreadProps, Y as ContainerLink, Z as ContainerResourceRow, _ as ContainerResourcesAdapter, $ as DefaultEntityIcon, a0 as PrimaryContainerEntity, a1 as PrimaryEntity, a2 as PrimaryEntityProvider, a3 as PrimaryFiledEntity, a4 as TagPickerIcon, a5 as UniversalAssociationPicker, U as UniversalAssociationPickerProps, a6 as UseAssociationEntitySelectAdapterArgs, a7 as UseAssociationsArgs, a8 as UseAssociationsReturn, a9 as UseContainerLinksArgs, aa as UseContainerLinksReturn, ab as attachedKey, ac as buildCommentTree, ad as containerLinksArgs, ae as useAssociationEntitySelectAdapter, af as useAssociations, ag as useContainerLinks, ah as useContainerLinksAdapter, ai as useEntityRelationships, aj as usePrimaryEntity } from '../CommentThread-Bn5zeoDO.js';
5
5
 
6
6
  interface AssociationsUiPorts {
7
7
  notifier?: AssociationsNotifier;
@@ -657,8 +657,10 @@ var ENTITY_TYPE_TOKENS = [
657
657
  "media_selection_job",
658
658
  "media_source_library",
659
659
  "meet_call_invite",
660
+ "meet_invitee",
660
661
  "meet_meeting",
661
662
  "meet_note",
663
+ "meet_occurrence_override",
662
664
  "meet_participant",
663
665
  "meet_recording",
664
666
  "meet_transcript_segment",
@@ -822,6 +824,7 @@ var ENTITY_TYPE_TOKENS = [
822
824
  "scrape_path_override",
823
825
  "scrape_path_pattern",
824
826
  "scrape_retry_queue",
827
+ "search_item",
825
828
  "seo_ai_capability",
826
829
  "seo_ai_visibility_citation",
827
830
  "seo_ai_visibility_claim",
@@ -3333,55 +3336,6 @@ function AttachedItemsBody({
3333
3336
  // src/react/components/AssociationCard.tsx
3334
3337
  import { useState as useState10 } from "react";
3335
3338
  import { cn as cn7 } from "@ai-matrx/design-system";
3336
-
3337
- // src/react/contentRoles.ts
3338
- var CONTENT_ROLES = [
3339
- {
3340
- id: "utility",
3341
- title: "Utilities",
3342
- tagline: "The agents and tools that act on your knowledge.",
3343
- accentText: "text-violet-600 dark:text-violet-400",
3344
- accentBg: "bg-violet-500/10",
3345
- accentBar: "bg-violet-500"
3346
- },
3347
- {
3348
- id: "source",
3349
- title: "Sources",
3350
- tagline: "Incoming sources of truth (Knowledge In).",
3351
- accentText: "text-sky-600 dark:text-sky-400",
3352
- accentBg: "bg-sky-500/10",
3353
- accentBar: "bg-sky-500"
3354
- },
3355
- {
3356
- id: "destination",
3357
- title: "Outputs",
3358
- tagline: "Knowledge your team produces.",
3359
- accentText: "text-emerald-600 dark:text-emerald-400",
3360
- accentBg: "bg-emerald-500/10",
3361
- accentBar: "bg-emerald-500"
3362
- },
3363
- {
3364
- id: "hybrid",
3365
- title: "Sources & Outputs",
3366
- tagline: "Read from and written to.",
3367
- accentText: "text-teal-600 dark:text-teal-400",
3368
- accentBg: "bg-teal-500/10",
3369
- accentBar: "bg-gradient-to-r from-sky-500 to-emerald-500"
3370
- },
3371
- {
3372
- id: "container",
3373
- title: "Workspaces",
3374
- tagline: "How work is organized.",
3375
- accentText: "text-amber-600 dark:text-amber-400",
3376
- accentBg: "bg-amber-500/10",
3377
- accentBar: "bg-amber-500"
3378
- }
3379
- ];
3380
- function getContentRoleMeta(role) {
3381
- return CONTENT_ROLES.find((r) => r.id === role) ?? CONTENT_ROLES[2];
3382
- }
3383
-
3384
- // src/react/components/AssociationCard.tsx
3385
3339
  import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
3386
3340
  function AssociationCard({
3387
3341
  token,
@@ -3393,7 +3347,6 @@ function AssociationCard({
3393
3347
  const container = containerProp ?? fromCtx;
3394
3348
  const [open, setOpen] = useState10(false);
3395
3349
  const info = store.registry.getEntityInfo(token);
3396
- const role = getContentRoleMeta(info.contentRole);
3397
3350
  const Icon = info.Icon ?? DefaultEntityIcon;
3398
3351
  const [listOpen, setListOpen] = useState10(false);
3399
3352
  const {
@@ -3427,15 +3380,6 @@ function AssociationCard({
3427
3380
  className
3428
3381
  ),
3429
3382
  children: [
3430
- /* @__PURE__ */ jsx11(
3431
- "span",
3432
- {
3433
- className: cn7(
3434
- "absolute inset-x-0 top-0 h-0.5 opacity-60",
3435
- role.accentBar
3436
- )
3437
- }
3438
- ),
3439
3383
  /* @__PURE__ */ jsxs9(
3440
3384
  "button",
3441
3385
  {
@@ -3448,17 +3392,7 @@ function AssociationCard({
3448
3392
  canDrillIn ? "cursor-pointer" : "cursor-default"
3449
3393
  ),
3450
3394
  children: [
3451
- /* @__PURE__ */ jsx11(
3452
- "span",
3453
- {
3454
- className: cn7(
3455
- "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",
3456
- role.accentBg,
3457
- role.accentText
3458
- ),
3459
- children: /* @__PURE__ */ jsx11(Icon, { className: "h-4 w-4" })
3460
- }
3461
- ),
3395
+ /* @__PURE__ */ jsx11("span", { className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground", children: /* @__PURE__ */ jsx11(Icon, { className: "h-4 w-4" }) }),
3462
3396
  /* @__PURE__ */ jsxs9("span", { className: "min-w-0 flex-1", children: [
3463
3397
  /* @__PURE__ */ jsx11("span", { className: "block truncate text-sm font-medium text-foreground", children: info.labelPlural }),
3464
3398
  /* @__PURE__ */ jsx11("span", { className: "block text-[11px] text-muted-foreground tabular-nums", children: loading ? /* @__PURE__ */ jsxs9("span", { className: "inline-flex items-center gap-1", children: [
@@ -3498,8 +3432,8 @@ function AssociationCard({
3498
3432
  setOpen(true);
3499
3433
  }
3500
3434
  } : {},
3501
- onDetach: (resourceId, role2) => detach(token, resourceId, role2 ?? void 0),
3502
- onSetPinned: (resourceId, pinned, role2) => setPinned(token, resourceId, pinned, role2 ?? void 0)
3435
+ onDetach: (resourceId, role) => detach(token, resourceId, role ?? void 0),
3436
+ onSetPinned: (resourceId, pinned, role) => setPinned(token, resourceId, pinned, role ?? void 0)
3503
3437
  }
3504
3438
  ),
3505
3439
  canAttach && /* @__PURE__ */ jsx11(
@@ -3521,6 +3455,55 @@ function AssociationCard({
3521
3455
 
3522
3456
  // src/react/components/AssociationCardGrid.tsx
3523
3457
  import { cn as cn8 } from "@ai-matrx/design-system";
3458
+
3459
+ // src/react/contentRoles.ts
3460
+ var CONTENT_ROLES = [
3461
+ {
3462
+ id: "utility",
3463
+ title: "Utilities",
3464
+ tagline: "The agents and tools that act on your knowledge.",
3465
+ accentText: "text-violet-600 dark:text-violet-400",
3466
+ accentBg: "bg-violet-500/10",
3467
+ accentBar: "bg-violet-500"
3468
+ },
3469
+ {
3470
+ id: "source",
3471
+ title: "Sources",
3472
+ tagline: "Incoming sources of truth (Knowledge In).",
3473
+ accentText: "text-sky-600 dark:text-sky-400",
3474
+ accentBg: "bg-sky-500/10",
3475
+ accentBar: "bg-sky-500"
3476
+ },
3477
+ {
3478
+ id: "destination",
3479
+ title: "Outputs",
3480
+ tagline: "Knowledge your team produces.",
3481
+ accentText: "text-emerald-600 dark:text-emerald-400",
3482
+ accentBg: "bg-emerald-500/10",
3483
+ accentBar: "bg-emerald-500"
3484
+ },
3485
+ {
3486
+ id: "hybrid",
3487
+ title: "Sources & Outputs",
3488
+ tagline: "Read from and written to.",
3489
+ accentText: "text-teal-600 dark:text-teal-400",
3490
+ accentBg: "bg-teal-500/10",
3491
+ accentBar: "bg-gradient-to-r from-sky-500 to-emerald-500"
3492
+ },
3493
+ {
3494
+ id: "container",
3495
+ title: "Workspaces",
3496
+ tagline: "How work is organized.",
3497
+ accentText: "text-amber-600 dark:text-amber-400",
3498
+ accentBg: "bg-amber-500/10",
3499
+ accentBar: "bg-amber-500"
3500
+ }
3501
+ ];
3502
+ function getContentRoleMeta(role) {
3503
+ return CONTENT_ROLES.find((r) => r.id === role) ?? CONTENT_ROLES[2];
3504
+ }
3505
+
3506
+ // src/react/components/AssociationCardGrid.tsx
3524
3507
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
3525
3508
  function AssociationCardGrid({
3526
3509
  tokens,
@@ -3554,27 +3537,13 @@ function AssociationCardGrid({
3554
3537
  );
3555
3538
  if (inRole.length === 0) return null;
3556
3539
  return /* @__PURE__ */ jsxs10("section", { children: [
3557
- /* @__PURE__ */ jsxs10("div", { className: "mb-2.5 flex items-baseline gap-3 pl-1.5", children: [
3558
- /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
3559
- /* @__PURE__ */ jsx12(
3560
- "span",
3561
- {
3562
- className: cn8("h-2.5 w-2.5 rounded-full", role.accentBar)
3563
- }
3564
- ),
3565
- /* @__PURE__ */ jsx12("h3", { className: "text-sm font-semibold text-foreground", children: role.title })
3566
- ] }),
3567
- /* @__PURE__ */ jsx12("p", { className: "hidden text-xs text-muted-foreground sm:block", children: role.tagline })
3568
- ] }),
3569
- /* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: inRole.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
3540
+ /* @__PURE__ */ jsx12("h3", { className: "mb-2 text-sm font-semibold text-foreground", children: role.title }),
3541
+ /* @__PURE__ */ jsx12("div", { className: "flex flex-wrap gap-2 [&>*]:min-w-[16rem] [&>*]:flex-1", children: inRole.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
3570
3542
  ] }, role.id);
3571
3543
  }),
3572
3544
  roleless.length > 0 && /* @__PURE__ */ jsxs10("section", { children: [
3573
- /* @__PURE__ */ jsxs10("div", { className: "mb-2.5 flex items-baseline gap-3 pl-1.5", children: [
3574
- /* @__PURE__ */ jsx12("h3", { className: "text-sm font-semibold text-foreground", children: "Filed under" }),
3575
- /* @__PURE__ */ jsx12("p", { className: "hidden text-xs text-muted-foreground sm:block", children: "Libraries, topics and other places this is kept." })
3576
- ] }),
3577
- /* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: roleless.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
3545
+ /* @__PURE__ */ jsx12("h3", { className: "mb-2 text-sm font-semibold text-foreground", children: "Filed under" }),
3546
+ /* @__PURE__ */ jsx12("div", { className: "flex flex-wrap gap-2 [&>*]:min-w-[16rem] [&>*]:flex-1", children: roleless.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
3578
3547
  ] })
3579
3548
  ] });
3580
3549
  }