@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.
- package/CHANGELOG.md +21 -1
- package/dist/{CommentThread-BR1YGP-O.d.cts → CommentThread-BKGU9jR-.d.cts} +8 -1
- package/dist/{CommentThread-BR1YGP-O.d.ts → CommentThread-BKGU9jR-.d.ts} +8 -1
- package/dist/{chunk-server-CMWVWSM5.js → chunk-server-TWGNVHGE.js} +9 -1
- package/dist/chunk-server-TWGNVHGE.js.map +1 -0
- package/dist/core/index.cjs +21 -5
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -6
- package/dist/core/index.d.ts +2 -6
- package/dist/core/index.js +14 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.cjs +22 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +9 -3
- package/dist/react/index.d.ts +9 -3
- package/dist/react/index.js +22 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/lazy/index.d.cts +1 -1
- package/dist/react/lazy/index.d.ts +1 -1
- package/dist/{results-B5GjVE6d.d.cts → results-DFj4RsFJ.d.cts} +73 -2
- package/dist/{results-B5GjVE6d.d.ts → results-DFj4RsFJ.d.ts} +73 -2
- package/package.json +6 -6
- package/dist/chunk-server-CMWVWSM5.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { r as ASSOCIATION_TARGET_TYPES, s as AssociationDirection, h as AssociationEdge, t as AssociationPickerProps, j as AssociationSourceEdge, i as AssociationTargetEdge, f as AssociationTargetType, q as AssociationsConfig, d as AssociationsDataSource, n as AssociationsEntry, e as AssociationsIdentity, u as AssociationsNotifier, A as AssociationsRpcError, v as AssociationsRpcErrorCode, w as AssociationsRpcOnlyDataSource, g as AssociationsRpcResult, x as AuthorDisplayInput, y as AuthorDisplayPort, z as CapturePickOpts, B as CapturePort, D as CaptureShownTo, F as CaptureUploadOpts, G as CaptureUploadResult, o as CategoriesEntry, C as CategoryDimension, H as CommentAgentAuthor, l as CommentAnchor, I as CommentAuthor, p as CommentsEntry, J as ComponentEntityToken, K as ENTITY_TYPE_METADATA, L as ENTITY_TYPE_TOKENS, M as EntityDoorProps, N as EntityDoorsPort, b as EntityOverlayEntry, E as EntityOverlayMap, O as EntityRefProps, Q as EntityTypeMeta, a as EntityTypeToken, c as ErrorSink, R as ListedEntityToken, S as ModuleEntityToken, T as PartAnchor, V as PgError, W as PickerOverrideMap, P as PlatformCategory, m as PlatformComment, X as REFERENCE_CATEGORY_DISPLAY, Y as ReferencePickableEntityToken, Z as SCHEMA_DISPLAY, _ as ScopeableEntityToken, k as UserEntityState, U as UserStateKind, $ as WindowShellPort, a0 as isAssociationTargetType, a1 as isAssociationsRpcErr, a2 as isEntityTypeToken, a3 as partKeyOf } from './results-
|
|
1
|
+
export { r as ASSOCIATION_TARGET_TYPES, s as AssociationDirection, h as AssociationEdge, t as AssociationPickerProps, j as AssociationSourceEdge, i as AssociationTargetEdge, f as AssociationTargetType, q as AssociationsConfig, d as AssociationsDataSource, n as AssociationsEntry, e as AssociationsIdentity, u as AssociationsNotifier, A as AssociationsRpcError, v as AssociationsRpcErrorCode, w as AssociationsRpcOnlyDataSource, g as AssociationsRpcResult, x as AuthorDisplayInput, y as AuthorDisplayPort, z as CapturePickOpts, B as CapturePort, D as CaptureShownTo, F as CaptureUploadOpts, G as CaptureUploadResult, o as CategoriesEntry, C as CategoryDimension, H as CommentAgentAuthor, l as CommentAnchor, I as CommentAuthor, p as CommentsEntry, J as ComponentEntityToken, K as ENTITY_TYPE_METADATA, L as ENTITY_TYPE_TOKENS, M as EntityDoorProps, N as EntityDoorsPort, b as EntityOverlayEntry, E as EntityOverlayMap, O as EntityRefProps, Q as EntityTypeMeta, a as EntityTypeToken, c as ErrorSink, R as ListedEntityToken, S as ModuleEntityToken, T as PartAnchor, V as PgError, W as PickerOverrideMap, P as PlatformCategory, m as PlatformComment, X as REFERENCE_CATEGORY_DISPLAY, Y as ReferencePickableEntityToken, Z as SCHEMA_DISPLAY, _ as ScopeableEntityToken, k as UserEntityState, U as UserStateKind, $ as WindowShellPort, a0 as isAssociationTargetType, a1 as isAssociationsRpcErr, a2 as isEntityTypeToken, a3 as partKeyOf } from './results-DFj4RsFJ.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@ai-matrx/data/db';
|
|
4
4
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { r as ASSOCIATION_TARGET_TYPES, s as AssociationDirection, h as AssociationEdge, t as AssociationPickerProps, j as AssociationSourceEdge, i as AssociationTargetEdge, f as AssociationTargetType, q as AssociationsConfig, d as AssociationsDataSource, n as AssociationsEntry, e as AssociationsIdentity, u as AssociationsNotifier, A as AssociationsRpcError, v as AssociationsRpcErrorCode, w as AssociationsRpcOnlyDataSource, g as AssociationsRpcResult, x as AuthorDisplayInput, y as AuthorDisplayPort, z as CapturePickOpts, B as CapturePort, D as CaptureShownTo, F as CaptureUploadOpts, G as CaptureUploadResult, o as CategoriesEntry, C as CategoryDimension, H as CommentAgentAuthor, l as CommentAnchor, I as CommentAuthor, p as CommentsEntry, J as ComponentEntityToken, K as ENTITY_TYPE_METADATA, L as ENTITY_TYPE_TOKENS, M as EntityDoorProps, N as EntityDoorsPort, b as EntityOverlayEntry, E as EntityOverlayMap, O as EntityRefProps, Q as EntityTypeMeta, a as EntityTypeToken, c as ErrorSink, R as ListedEntityToken, S as ModuleEntityToken, T as PartAnchor, V as PgError, W as PickerOverrideMap, P as PlatformCategory, m as PlatformComment, X as REFERENCE_CATEGORY_DISPLAY, Y as ReferencePickableEntityToken, Z as SCHEMA_DISPLAY, _ as ScopeableEntityToken, k as UserEntityState, U as UserStateKind, $ as WindowShellPort, a0 as isAssociationTargetType, a1 as isAssociationsRpcErr, a2 as isEntityTypeToken, a3 as partKeyOf } from './results-
|
|
1
|
+
export { r as ASSOCIATION_TARGET_TYPES, s as AssociationDirection, h as AssociationEdge, t as AssociationPickerProps, j as AssociationSourceEdge, i as AssociationTargetEdge, f as AssociationTargetType, q as AssociationsConfig, d as AssociationsDataSource, n as AssociationsEntry, e as AssociationsIdentity, u as AssociationsNotifier, A as AssociationsRpcError, v as AssociationsRpcErrorCode, w as AssociationsRpcOnlyDataSource, g as AssociationsRpcResult, x as AuthorDisplayInput, y as AuthorDisplayPort, z as CapturePickOpts, B as CapturePort, D as CaptureShownTo, F as CaptureUploadOpts, G as CaptureUploadResult, o as CategoriesEntry, C as CategoryDimension, H as CommentAgentAuthor, l as CommentAnchor, I as CommentAuthor, p as CommentsEntry, J as ComponentEntityToken, K as ENTITY_TYPE_METADATA, L as ENTITY_TYPE_TOKENS, M as EntityDoorProps, N as EntityDoorsPort, b as EntityOverlayEntry, E as EntityOverlayMap, O as EntityRefProps, Q as EntityTypeMeta, a as EntityTypeToken, c as ErrorSink, R as ListedEntityToken, S as ModuleEntityToken, T as PartAnchor, V as PgError, W as PickerOverrideMap, P as PlatformCategory, m as PlatformComment, X as REFERENCE_CATEGORY_DISPLAY, Y as ReferencePickableEntityToken, Z as SCHEMA_DISPLAY, _ as ScopeableEntityToken, k as UserEntityState, U as UserStateKind, $ as WindowShellPort, a0 as isAssociationTargetType, a1 as isAssociationsRpcErr, a2 as isEntityTypeToken, a3 as partKeyOf } from './results-DFj4RsFJ.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@ai-matrx/data/db';
|
|
4
4
|
|
package/dist/index.js
CHANGED
package/dist/react/index.cjs
CHANGED
|
@@ -98,6 +98,7 @@ function AssociationsProvider({
|
|
|
98
98
|
entityDoors,
|
|
99
99
|
authorDisplay,
|
|
100
100
|
commentBody,
|
|
101
|
+
signIn,
|
|
101
102
|
children
|
|
102
103
|
}) {
|
|
103
104
|
const notifierWarned = (0, import_react2.useRef)(false);
|
|
@@ -113,7 +114,8 @@ function AssociationsProvider({
|
|
|
113
114
|
...pickerOverrides !== void 0 ? { pickerOverrides } : {},
|
|
114
115
|
...entityDoors !== void 0 ? { entityDoors } : {},
|
|
115
116
|
...authorDisplay !== void 0 ? { authorDisplay } : {},
|
|
116
|
-
...commentBody !== void 0 ? { commentBody } : {}
|
|
117
|
+
...commentBody !== void 0 ? { commentBody } : {},
|
|
118
|
+
...signIn !== void 0 ? { signIn } : {}
|
|
117
119
|
},
|
|
118
120
|
children
|
|
119
121
|
}
|
|
@@ -471,6 +473,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
471
473
|
"crm_contact_candidate",
|
|
472
474
|
"crm_deal",
|
|
473
475
|
"crm_deal_stage_event",
|
|
476
|
+
"crm_enrichment_call",
|
|
474
477
|
"crm_interaction",
|
|
475
478
|
"crm_merge_candidate",
|
|
476
479
|
"crm_outreach_list",
|
|
@@ -908,6 +911,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
908
911
|
"ops_proof_check",
|
|
909
912
|
"ops_proof_run",
|
|
910
913
|
"ops_proof_scenario",
|
|
914
|
+
"ops_source_read_cache",
|
|
911
915
|
"ops_test_replay_cache",
|
|
912
916
|
"org_admin_audit",
|
|
913
917
|
"org_change_policy",
|
|
@@ -1244,6 +1248,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
1244
1248
|
"tool_bundle",
|
|
1245
1249
|
"tool_call",
|
|
1246
1250
|
"tool_call_facts",
|
|
1251
|
+
"tool_canary_run",
|
|
1247
1252
|
"tool_catalog_cache",
|
|
1248
1253
|
"tool_catalog_call",
|
|
1249
1254
|
"tool_catalog_call_attempt",
|
|
@@ -1253,6 +1258,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
1253
1258
|
"tool_catalog_provider",
|
|
1254
1259
|
"tool_definition_version",
|
|
1255
1260
|
"tool_executor",
|
|
1261
|
+
"tool_feature_scorecard",
|
|
1256
1262
|
"tool_surface_defaults",
|
|
1257
1263
|
"tool_test_sample",
|
|
1258
1264
|
"tool_ui",
|
|
@@ -1407,6 +1413,14 @@ function isEntityTypeToken(value) {
|
|
|
1407
1413
|
return typeof value === "string" && ENTITY_TYPE_TOKEN_SET.has(value);
|
|
1408
1414
|
}
|
|
1409
1415
|
|
|
1416
|
+
// src/core/rpcResult.ts
|
|
1417
|
+
var import_net = require("@ai-matrx/api/net");
|
|
1418
|
+
var SIGNED_OUT_LEAD = "You're signed out";
|
|
1419
|
+
var SIGNED_OUT_MESSAGE = `${SIGNED_OUT_LEAD}. Sign in again \u2014 your text is kept here.`;
|
|
1420
|
+
function isSignedOutMessage(text) {
|
|
1421
|
+
return typeof text === "string" && text.startsWith(SIGNED_OUT_LEAD);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1410
1424
|
// src/association-types.generated.ts
|
|
1411
1425
|
var ASSOCIATION_PAIRS = /* @__PURE__ */ new Set([
|
|
1412
1426
|
"agent>agent",
|
|
@@ -6288,6 +6302,7 @@ function CommentComposer({
|
|
|
6288
6302
|
autoFocus = false
|
|
6289
6303
|
}) {
|
|
6290
6304
|
const notifier = useNotifier();
|
|
6305
|
+
const { signIn } = useAssociationsUiPorts();
|
|
6291
6306
|
const [body, setBody] = (0, import_react26.useState)(initialValue);
|
|
6292
6307
|
const [submitting, setSubmitting] = (0, import_react26.useState)(false);
|
|
6293
6308
|
const [error, setError] = (0, import_react26.useState)(null);
|
|
@@ -6333,6 +6348,7 @@ function CommentComposer({
|
|
|
6333
6348
|
origin: "associations/CommentThread"
|
|
6334
6349
|
}
|
|
6335
6350
|
),
|
|
6351
|
+
error && signIn && isSignedOutMessage(error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SignInAgain, { onClick: signIn }),
|
|
6336
6352
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6337
6353
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_design_system15.Button, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
|
|
6338
6354
|
submitting && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
|
|
@@ -6578,6 +6594,7 @@ function CommentThread({
|
|
|
6578
6594
|
className
|
|
6579
6595
|
}) {
|
|
6580
6596
|
const thread = useComments({ token, id });
|
|
6597
|
+
const { signIn: signInPort } = useAssociationsUiPorts();
|
|
6581
6598
|
const tree = buildCommentTree(thread.comments);
|
|
6582
6599
|
const { childrenOf } = tree;
|
|
6583
6600
|
const roots = part ? tree.roots.filter((c) => partKeyOf(c) === part.key) : tree.roots;
|
|
@@ -6609,6 +6626,7 @@ function CommentThread({
|
|
|
6609
6626
|
origin: "associations/CommentThread",
|
|
6610
6627
|
children: [
|
|
6611
6628
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "min-w-0 flex-1", children: thread.error }),
|
|
6629
|
+
signInPort && isSignedOutMessage(thread.error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SignInAgain, { onClick: signInPort }),
|
|
6612
6630
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
6613
6631
|
import_design_system15.Button,
|
|
6614
6632
|
{
|
|
@@ -6652,4 +6670,7 @@ function CommentThread({
|
|
|
6652
6670
|
)
|
|
6653
6671
|
] });
|
|
6654
6672
|
}
|
|
6673
|
+
function SignInAgain({ onClick }) {
|
|
6674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_design_system15.Button, { type: "button", size: "sm", variant: "outline", onClick, children: "Sign in" });
|
|
6675
|
+
}
|
|
6655
6676
|
//# sourceMappingURL=index.cjs.map
|