@ai-matrx/associations 0.13.8 → 0.13.10

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-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';
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-DYudQYiA.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 linkDirection, af as useAssociationEntitySelectAdapter, ag as useAssociations, ah as useContainerLinks, ai as useContainerLinksAdapter, aj as useEntityRelationships, ak as usePrimaryEntity } from '../CommentThread-DYudQYiA.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-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';
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-DYudQYiA.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 linkDirection, af as useAssociationEntitySelectAdapter, ag as useAssociations, ah as useContainerLinks, ai as useContainerLinksAdapter, aj as useEntityRelationships, ak as usePrimaryEntity } from '../CommentThread-DYudQYiA.js';
5
5
 
6
6
  interface AssociationsUiPorts {
7
7
  notifier?: AssociationsNotifier;
@@ -657,6 +657,7 @@ var ENTITY_TYPE_TOKENS = [
657
657
  "media_selection_job",
658
658
  "media_source_library",
659
659
  "meet_call_invite",
660
+ "meet_chat_message",
660
661
  "meet_invitee",
661
662
  "meet_meeting",
662
663
  "meet_note",
@@ -776,6 +777,7 @@ var ENTITY_TYPE_TOKENS = [
776
777
  "rag_ingest_run",
777
778
  "rag_library_audit_log",
778
779
  "rate_limit_buckets",
780
+ "reachability_pending",
779
781
  "recompute_queue",
780
782
  "record",
781
783
  "record_alias",
@@ -895,6 +897,7 @@ var ENTITY_TYPE_TOKENS = [
895
897
  "seo_story_angle",
896
898
  "seo_topic",
897
899
  "seo_topical_map",
900
+ "seo_tracker_story",
898
901
  "seo_web_analytics_daily",
899
902
  "shareable_resource_registry",
900
903
  "shared_canvas_item",
@@ -1043,6 +1046,7 @@ var ENTITY_TYPE_TOKENS = [
1043
1046
  "web_link_edge",
1044
1047
  "web_listing_publisher",
1045
1048
  "web_location_listing",
1049
+ "web_news_item",
1046
1050
  "web_offering_template",
1047
1051
  "web_page",
1048
1052
  "web_page_content",
@@ -1099,6 +1103,428 @@ function isEntityTypeToken(value) {
1099
1103
  return typeof value === "string" && ENTITY_TYPE_TOKEN_SET.has(value);
1100
1104
  }
1101
1105
 
1106
+ // src/association-types.generated.ts
1107
+ var ASSOCIATION_PAIRS = /* @__PURE__ */ new Set([
1108
+ "agent>agent",
1109
+ "agent>context_item",
1110
+ "agent>organization",
1111
+ "agent>project",
1112
+ "agent>record",
1113
+ "agent>scope",
1114
+ "agent>scope_type",
1115
+ "agent>surface",
1116
+ "agent>task",
1117
+ "agent>web_page",
1118
+ "agent_shortcut>project",
1119
+ "agent_shortcut>task",
1120
+ "agent_shortcut>web_page",
1121
+ "agent_term_list>agent",
1122
+ "app>record",
1123
+ "app>scope",
1124
+ "app>web_page",
1125
+ "artifact>processed_document",
1126
+ "assessment>assessment",
1127
+ "assessment>fc_set",
1128
+ "assessment>file",
1129
+ "assessment>note",
1130
+ "assessment>record",
1131
+ "assessment>scope",
1132
+ "assessment>scope_type",
1133
+ "assessment>study_media",
1134
+ "calendar_event>conversation",
1135
+ "calendar_event>party",
1136
+ "code_file>agent",
1137
+ "code_file>code_repository",
1138
+ "code_file>data_store",
1139
+ "code_file>web_page",
1140
+ "contact_medium>web_page",
1141
+ "content_ir_kind_instance>content_ir_kind_instance",
1142
+ "content_ir_kind_instance>note",
1143
+ "content_ir_kind_instance>project",
1144
+ "content_ir_kind_instance>record",
1145
+ "content_ir_kind_instance>scope",
1146
+ "content_ir_kind_instance>scope_type",
1147
+ "content_ir_kind_instance>task",
1148
+ "content_ir_kind_instance>web_site",
1149
+ "conversation>agent",
1150
+ "conversation>custom_record",
1151
+ "conversation>document",
1152
+ "conversation>note",
1153
+ "conversation>party",
1154
+ "conversation>project",
1155
+ "conversation>record",
1156
+ "conversation>rulebook",
1157
+ "conversation>scope",
1158
+ "conversation>scope_type",
1159
+ "conversation>task",
1160
+ "conversation>thread",
1161
+ "conversation>war_room",
1162
+ "conversation>web_page",
1163
+ "credential_item>record",
1164
+ "credential_item>scope",
1165
+ "crm_deal>party",
1166
+ "crm_deal>task",
1167
+ "crm_interaction>crm_deal",
1168
+ "crm_interaction>party",
1169
+ "crm_interaction>project",
1170
+ "custom_record>custom_record",
1171
+ "custom_record>hr_candidate",
1172
+ "custom_record>hr_employee",
1173
+ "custom_record>hr_position_assignment",
1174
+ "custom_record>hr_requisition",
1175
+ "custom_record>hr_training_assignment",
1176
+ "data_store>agent",
1177
+ "data_store>project",
1178
+ "data_store>task",
1179
+ "data_store>war_room",
1180
+ "data_store>web_page",
1181
+ "dataset>agent",
1182
+ "dataset>web_page",
1183
+ "document>document",
1184
+ "document>note",
1185
+ "fc_card>document",
1186
+ "fc_card>fc_set",
1187
+ "fc_card>file",
1188
+ "fc_card>note",
1189
+ "fc_set>agent",
1190
+ "fc_set>assessment",
1191
+ "fc_set>conversation",
1192
+ "fc_set>fc_set",
1193
+ "fc_set>file",
1194
+ "fc_set>note",
1195
+ "fc_set>processed_document",
1196
+ "fc_set>record",
1197
+ "fc_set>rulebook",
1198
+ "fc_set>scope",
1199
+ "fc_set>scope_type",
1200
+ "fc_set>study_media",
1201
+ "file>agent",
1202
+ "file>agent_term_list",
1203
+ "file>conversation",
1204
+ "file>crm_deal",
1205
+ "file>data_store",
1206
+ "file>file",
1207
+ "file>hr_application",
1208
+ "file>hr_employee",
1209
+ "file>hr_employment",
1210
+ "file>hr_incident",
1211
+ "file>hr_leave_case",
1212
+ "file>party",
1213
+ "file>project",
1214
+ "file>record",
1215
+ "file>rulebook",
1216
+ "file>scope",
1217
+ "file>scope_type",
1218
+ "file>task",
1219
+ "file>thread",
1220
+ "file>war_room",
1221
+ "file>web_page",
1222
+ "file>web_screenshot",
1223
+ "folder>web_page",
1224
+ "google_document>crm_deal",
1225
+ "google_document>party",
1226
+ "google_document>project",
1227
+ "google_document>task",
1228
+ "hr_candidate>custom_record",
1229
+ "hr_candidate>party",
1230
+ "hr_course>hr_job_title",
1231
+ "hr_credential>hr_job_title",
1232
+ "hr_employee>custom_record",
1233
+ "hr_employee>record",
1234
+ "hr_employee>scope",
1235
+ "hr_employee>scope_type",
1236
+ "hr_position_assignment>custom_record",
1237
+ "hr_requisition>custom_record",
1238
+ "hr_training_assignment>custom_record",
1239
+ "integration_connection_resource>conversation",
1240
+ "library_doc>data_store",
1241
+ "media_source_library>youtube_video",
1242
+ "message>content_ir_kind_instance",
1243
+ "message>record",
1244
+ "message>task",
1245
+ "message_template>record",
1246
+ "message_template>scope",
1247
+ "message_template>web_page",
1248
+ "note>agent",
1249
+ "note>assessment",
1250
+ "note>calendar_event",
1251
+ "note>crm_deal",
1252
+ "note>data_store",
1253
+ "note>fc_set",
1254
+ "note>file",
1255
+ "note>hr_candidate",
1256
+ "note>hr_employee",
1257
+ "note>note",
1258
+ "note>party",
1259
+ "note>project",
1260
+ "note>record",
1261
+ "note>rulebook",
1262
+ "note>scope",
1263
+ "note>scope_type",
1264
+ "note>study_media",
1265
+ "note>task",
1266
+ "note>thread",
1267
+ "note>war_room",
1268
+ "note>web_page",
1269
+ "note>web_screenshot",
1270
+ "organization>seo_keyword",
1271
+ "page_extraction_job>file",
1272
+ "page_extraction_job>processed_document",
1273
+ "party>category",
1274
+ "party>data_store",
1275
+ "party>organization",
1276
+ "party>party",
1277
+ "party>project",
1278
+ "party>record",
1279
+ "party>research_source",
1280
+ "party>research_topic",
1281
+ "party>scope",
1282
+ "party>scope_type",
1283
+ "party>seo_link_gap_domain",
1284
+ "party>seo_referring_domain_profile",
1285
+ "party>seo_reputation_case",
1286
+ "party>seo_serp_opportunity",
1287
+ "party>seo_topic",
1288
+ "party>task",
1289
+ "party>transcript",
1290
+ "party>war_room",
1291
+ "party>web_brand",
1292
+ "party>web_page",
1293
+ "party>web_site",
1294
+ "pc_episode>processed_document",
1295
+ "pc_episode>rulebook",
1296
+ "pc_show>rulebook",
1297
+ "pc_studio_run>rulebook",
1298
+ "plan_entity>category",
1299
+ "plan_entity>plan_entity",
1300
+ "plan_entity>seo_topic",
1301
+ "plan_entity>web_site",
1302
+ "plan_node>agent_run",
1303
+ "plan_node>party",
1304
+ "plan_node>plan_entity",
1305
+ "plan_node>plan_node",
1306
+ "plan_node>seo_keyword",
1307
+ "plan_node>seo_map_topic",
1308
+ "plan_node>seo_topic",
1309
+ "plan_node>web_page",
1310
+ "plan_node>web_site",
1311
+ "processed_document>agent",
1312
+ "processed_document>code_repository",
1313
+ "processed_document>conversation",
1314
+ "processed_document>data_store",
1315
+ "processed_document>file",
1316
+ "processed_document>media_source_library",
1317
+ "processed_document>project",
1318
+ "processed_document>record",
1319
+ "processed_document>research_topic",
1320
+ "processed_document>scope",
1321
+ "processed_document>task",
1322
+ "processed_document>war_room",
1323
+ "processed_document>web_site",
1324
+ "project>record",
1325
+ "project>scope",
1326
+ "project>scope_type",
1327
+ "project>thread",
1328
+ "project>war_room",
1329
+ "purpose>agent",
1330
+ "purpose>mandate",
1331
+ "purpose>tool",
1332
+ "purpose>workflow",
1333
+ "quiz_session>agent",
1334
+ "quiz_session>processed_document",
1335
+ "quiz_session>web_page",
1336
+ "record>agent",
1337
+ "record>agent_shortcut",
1338
+ "record>agent_template",
1339
+ "record>ai_api",
1340
+ "record>ai_endpoint",
1341
+ "record>ai_model",
1342
+ "record>ai_provider",
1343
+ "record>ai_setting",
1344
+ "record>app",
1345
+ "record>assessment",
1346
+ "record>canvas_comment",
1347
+ "record>canvas_item",
1348
+ "record>canvas_score",
1349
+ "record>category",
1350
+ "record>code_file",
1351
+ "record>code_folder",
1352
+ "record>code_repository",
1353
+ "record>comparison_set",
1354
+ "record>contact_submission",
1355
+ "record>content_ir_kind",
1356
+ "record>content_ir_kind_instance",
1357
+ "record>context_item",
1358
+ "record>conversation",
1359
+ "record>crm_deal",
1360
+ "record>crm_outreach_list",
1361
+ "record>cx_agent_memory",
1362
+ "record>data_store",
1363
+ "record>dataset",
1364
+ "record>fc_set",
1365
+ "record>feature_doc",
1366
+ "record>flexible_data",
1367
+ "record>folder",
1368
+ "record>game_result",
1369
+ "record>heatmap_save",
1370
+ "record>hr_asset",
1371
+ "record>hr_candidate",
1372
+ "record>hr_careers_portal",
1373
+ "record>hr_checklist_template",
1374
+ "record>hr_course",
1375
+ "record>hr_crew",
1376
+ "record>hr_deduction_code",
1377
+ "record>hr_department",
1378
+ "record>hr_earning_code",
1379
+ "record>hr_employee",
1380
+ "record>hr_holiday_calendar",
1381
+ "record>hr_interview_kit",
1382
+ "record>hr_job_title",
1383
+ "record>hr_jurisdiction",
1384
+ "record>hr_jurisdiction_rule_class",
1385
+ "record>hr_leave_policy",
1386
+ "record>hr_location",
1387
+ "record>hr_pay_group",
1388
+ "record>hr_posting",
1389
+ "record>hr_record_class",
1390
+ "record>hr_requisition",
1391
+ "record>hr_schedule",
1392
+ "record>hr_schedule_template",
1393
+ "record>hr_survey",
1394
+ "record>league_membership",
1395
+ "record>learn_doc",
1396
+ "record>marketing_initiative",
1397
+ "record>message_template",
1398
+ "record>note",
1399
+ "record>note_folder",
1400
+ "record>organization",
1401
+ "record>page_extraction_job",
1402
+ "record>party",
1403
+ "record>pc_article",
1404
+ "record>pc_episode",
1405
+ "record>pc_show",
1406
+ "record>pc_studio_run",
1407
+ "record>processed_document",
1408
+ "record>project",
1409
+ "record>quiz_session",
1410
+ "record>record",
1411
+ "record>research_template",
1412
+ "record>research_topic",
1413
+ "record>rulebook",
1414
+ "record>sch_task",
1415
+ "record>scope_type",
1416
+ "record>seo_topic",
1417
+ "record>shared_canvas_item",
1418
+ "record>skill",
1419
+ "record>skill_render_definition",
1420
+ "record>structured_list",
1421
+ "record>studio_session",
1422
+ "record>study_goal",
1423
+ "record>study_media",
1424
+ "record>study_plan",
1425
+ "record>study_plan_block",
1426
+ "record>surface",
1427
+ "record>task",
1428
+ "record>thread",
1429
+ "record>tool",
1430
+ "record>tool_bundle",
1431
+ "record>transcript",
1432
+ "record>udt_document",
1433
+ "record>user_markdown_sample",
1434
+ "record>voice",
1435
+ "record>war_room",
1436
+ "record>wbx_pattern",
1437
+ "record>web_analysis_item",
1438
+ "record>web_brand",
1439
+ "record>web_provider",
1440
+ "record>web_site",
1441
+ "record>workbook",
1442
+ "record>workflow",
1443
+ "record>workflow_template",
1444
+ "record>workflow_trigger",
1445
+ "record>working_document",
1446
+ "research_source>research_keyword",
1447
+ "research_source>research_tag",
1448
+ "research_source>youtube_video",
1449
+ "research_tag>plan_node",
1450
+ "research_tag>web_page",
1451
+ "research_tag>web_site",
1452
+ "research_topic>plan_node",
1453
+ "research_topic>project",
1454
+ "research_topic>rulebook",
1455
+ "research_topic>web_page",
1456
+ "research_topic>web_site",
1457
+ "rulebook>masterwork_source",
1458
+ "sch_task>record",
1459
+ "sch_task>scope",
1460
+ "seo_keyword>project",
1461
+ "seo_keyword>web_page",
1462
+ "seo_map_topic>seo_map_facet_value",
1463
+ "seo_topical_map>web_brand",
1464
+ "shared_canvas_item>record",
1465
+ "shared_canvas_item>scope",
1466
+ "skill>web_page",
1467
+ "structured_list>web_page",
1468
+ "studio_session>agent",
1469
+ "studio_session>rulebook",
1470
+ "studio_session>thread",
1471
+ "studio_session>web_page",
1472
+ "study_media>assessment",
1473
+ "study_media>fc_set",
1474
+ "study_media>file",
1475
+ "study_media>note",
1476
+ "study_media>record",
1477
+ "study_media>scope",
1478
+ "study_media>scope_type",
1479
+ "study_media>study_media",
1480
+ "task>project",
1481
+ "task>record",
1482
+ "task>scope",
1483
+ "task>scope_type",
1484
+ "task>thread",
1485
+ "task>war_room",
1486
+ "thread>record",
1487
+ "thread>scope",
1488
+ "thread>scope_type",
1489
+ "thread>war_room",
1490
+ "tool>tool_bundle",
1491
+ "transcript>agent",
1492
+ "transcript>data_store",
1493
+ "transcript>record",
1494
+ "transcript>rulebook",
1495
+ "transcript>scope",
1496
+ "transcript>web_page",
1497
+ "udt_document>agent",
1498
+ "udt_document>rulebook",
1499
+ "udt_document>web_page",
1500
+ "war_room>record",
1501
+ "war_room>scope",
1502
+ "war_room>scope_type",
1503
+ "web_page>seo_map_facet_value",
1504
+ "web_page>seo_map_topic",
1505
+ "web_page>task",
1506
+ "web_screenshot>task",
1507
+ "web_site>agent_run",
1508
+ "web_site>seo_topical_map",
1509
+ "web_youtube_video>seo_map_topic",
1510
+ "workbook>agent",
1511
+ "workbook>web_page",
1512
+ "workflow>record",
1513
+ "workflow>scope",
1514
+ "workflow>web_page",
1515
+ "working_document>agent",
1516
+ "working_document>conversation",
1517
+ "working_document>project",
1518
+ "working_document>task",
1519
+ "working_document>war_room",
1520
+ "working_document>web_page",
1521
+ "youtube_video>transcript",
1522
+ "youtube_video>web_page"
1523
+ ]);
1524
+ function isRegisteredPair(sourceType, targetType) {
1525
+ return ASSOCIATION_PAIRS.has(`${sourceType}>${targetType}`);
1526
+ }
1527
+
1102
1528
  // src/core/titles.ts
1103
1529
  function entityTitleCacheKey(token, id) {
1104
1530
  return `${token}:${id}`;
@@ -1272,6 +1698,9 @@ function isAssociationTargetType(value) {
1272
1698
  }
1273
1699
 
1274
1700
  // src/react/hooks/useContainerLinks.ts
1701
+ function linkDirection(containerType, token) {
1702
+ return isRegisteredPair(containerType, token) && !isRegisteredPair(token, containerType) ? "from-container" : "into-container";
1703
+ }
1275
1704
  function metadataRecord(metadata) {
1276
1705
  if (metadata === null || typeof metadata !== "object" || Array.isArray(metadata)) {
1277
1706
  return metadata == null ? {} : null;
@@ -1349,7 +1778,7 @@ function useContainerLinks(args) {
1349
1778
  const conversationFileError = conversationResult?.key === conversationKey ? conversationResult.error : null;
1350
1779
  const conversationFileStatus = outgoing || containerType !== "conversation" ? "idle" : conversationResult?.key !== conversationKey ? "loading" : conversationResult.loading ? "loading" : conversationFileError ? "error" : "ready";
1351
1780
  const incomingGeneric = edges.filter(
1352
- (edge) => outgoing ? edge.direction === "outgoing" : edge.direction === "incoming" && !(containerType === "conversation" && edge.otherType === "file")
1781
+ (edge) => outgoing ? edge.direction === "outgoing" : !(containerType === "conversation" && edge.otherType === "file") && (linkDirection(containerType, edge.otherType) === "from-container" ? edge.direction === "outgoing" : edge.direction === "incoming")
1353
1782
  ).map((edge) => ({
1354
1783
  edgeId: edge.id,
1355
1784
  resourceId: edge.otherId,
@@ -1374,6 +1803,19 @@ function useContainerLinks(args) {
1374
1803
  targetId: resourceId
1375
1804
  };
1376
1805
  }
1806
+ if (linkDirection(containerType, token) === "from-container") {
1807
+ if (!isAssociationTargetType(token)) {
1808
+ return {
1809
+ error: `A ${token.replace(/_/g, " ")} is attached from this record, but it is not a type the store attaches to.`
1810
+ };
1811
+ }
1812
+ return {
1813
+ sourceType: containerType,
1814
+ sourceId: containerId,
1815
+ targetType: token,
1816
+ targetId: resourceId
1817
+ };
1818
+ }
1377
1819
  return {
1378
1820
  sourceType: token,
1379
1821
  sourceId: resourceId,
@@ -3395,7 +3837,7 @@ function AssociationCard({
3395
3837
  /* @__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" }) }),
3396
3838
  /* @__PURE__ */ jsxs9("span", { className: "min-w-0 flex-1", children: [
3397
3839
  /* @__PURE__ */ jsx11("span", { className: "block truncate text-sm font-medium text-foreground", children: info.labelPlural }),
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: [
3840
+ /* @__PURE__ */ jsx11("span", { className: "block text-xs text-muted-foreground tabular-nums", children: loading ? /* @__PURE__ */ jsxs9("span", { className: "inline-flex items-center gap-1", children: [
3399
3841
  /* @__PURE__ */ jsx11(SpinnerIcon, { className: "h-3 w-3 animate-spin" }),
3400
3842
  "Loading\u2026"
3401
3843
  ] }) : `${count} ${container.direction === "outgoing" ? "filed under" : "attached"}` })
@@ -5617,6 +6059,7 @@ export {
5617
6059
  getContentRoleMeta,
5618
6060
  lazyPickerOverride,
5619
6061
  lazyWindowShell,
6062
+ linkDirection,
5620
6063
  useAssociationCandidates,
5621
6064
  useAssociationEntitySelectAdapter,
5622
6065
  useAssociationPickerBridge,