@ai-matrx/associations 0.14.79 → 0.14.81
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 +24 -1
- package/dist/{CommentThread-iSMK-0Lb.d.cts → CommentThread-RI-iPDmV.d.cts} +8 -1
- package/dist/{CommentThread-iSMK-0Lb.d.ts → CommentThread-RI-iPDmV.d.ts} +8 -1
- package/dist/{chunk-server-TWGNVHGE.js → chunk-server-TFJNKVMM.js} +9 -1
- package/dist/chunk-server-TFJNKVMM.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-DS6_WIIP.d.cts → results-Du0dzBb4.d.cts} +74 -3
- package/dist/{results-DS6_WIIP.d.ts → results-Du0dzBb4.d.ts} +74 -3
- package/package.json +4 -4
- package/dist/chunk-server-TWGNVHGE.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-Du0dzBb4.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-Du0dzBb4.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
|
}
|
|
@@ -508,6 +510,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
508
510
|
"cx_pending_injection",
|
|
509
511
|
"cx_request",
|
|
510
512
|
"cx_request_snapshot",
|
|
513
|
+
"cx_request_values",
|
|
511
514
|
"cx_tool_trace",
|
|
512
515
|
"cx_user_request",
|
|
513
516
|
"cx_user_todo",
|
|
@@ -1023,6 +1026,8 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
1023
1026
|
"recompute_queue",
|
|
1024
1027
|
"record",
|
|
1025
1028
|
"record_alias",
|
|
1029
|
+
"record_computed",
|
|
1030
|
+
"record_follow",
|
|
1026
1031
|
"redaction_mapping",
|
|
1027
1032
|
"relationship_rule",
|
|
1028
1033
|
"research_analysis",
|
|
@@ -1382,6 +1387,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
1382
1387
|
"workflow_checkpoint",
|
|
1383
1388
|
"workflow_checkpoint_value",
|
|
1384
1389
|
"workflow_comparison",
|
|
1390
|
+
"workflow_definition_overview",
|
|
1385
1391
|
"workflow_definition_version",
|
|
1386
1392
|
"workflow_idempotency",
|
|
1387
1393
|
"workflow_job",
|
|
@@ -1411,6 +1417,14 @@ function isEntityTypeToken(value) {
|
|
|
1411
1417
|
return typeof value === "string" && ENTITY_TYPE_TOKEN_SET.has(value);
|
|
1412
1418
|
}
|
|
1413
1419
|
|
|
1420
|
+
// src/core/rpcResult.ts
|
|
1421
|
+
var import_net = require("@ai-matrx/api/net");
|
|
1422
|
+
var SIGNED_OUT_LEAD = "You're signed out";
|
|
1423
|
+
var SIGNED_OUT_MESSAGE = `${SIGNED_OUT_LEAD}. Sign in again \u2014 your text is kept here.`;
|
|
1424
|
+
function isSignedOutMessage(text) {
|
|
1425
|
+
return typeof text === "string" && text.startsWith(SIGNED_OUT_LEAD);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1414
1428
|
// src/association-types.generated.ts
|
|
1415
1429
|
var ASSOCIATION_PAIRS = /* @__PURE__ */ new Set([
|
|
1416
1430
|
"agent>agent",
|
|
@@ -6292,6 +6306,7 @@ function CommentComposer({
|
|
|
6292
6306
|
autoFocus = false
|
|
6293
6307
|
}) {
|
|
6294
6308
|
const notifier = useNotifier();
|
|
6309
|
+
const { signIn } = useAssociationsUiPorts();
|
|
6295
6310
|
const [body, setBody] = (0, import_react26.useState)(initialValue);
|
|
6296
6311
|
const [submitting, setSubmitting] = (0, import_react26.useState)(false);
|
|
6297
6312
|
const [error, setError] = (0, import_react26.useState)(null);
|
|
@@ -6337,6 +6352,7 @@ function CommentComposer({
|
|
|
6337
6352
|
origin: "associations/CommentThread"
|
|
6338
6353
|
}
|
|
6339
6354
|
),
|
|
6355
|
+
error && signIn && isSignedOutMessage(error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SignInAgain, { onClick: signIn }),
|
|
6340
6356
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6341
6357
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_design_system15.Button, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
|
|
6342
6358
|
submitting && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
|
|
@@ -6582,6 +6598,7 @@ function CommentThread({
|
|
|
6582
6598
|
className
|
|
6583
6599
|
}) {
|
|
6584
6600
|
const thread = useComments({ token, id });
|
|
6601
|
+
const { signIn: signInPort } = useAssociationsUiPorts();
|
|
6585
6602
|
const tree = buildCommentTree(thread.comments);
|
|
6586
6603
|
const { childrenOf } = tree;
|
|
6587
6604
|
const roots = part ? tree.roots.filter((c) => partKeyOf(c) === part.key) : tree.roots;
|
|
@@ -6613,6 +6630,7 @@ function CommentThread({
|
|
|
6613
6630
|
origin: "associations/CommentThread",
|
|
6614
6631
|
children: [
|
|
6615
6632
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "min-w-0 flex-1", children: thread.error }),
|
|
6633
|
+
signInPort && isSignedOutMessage(thread.error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SignInAgain, { onClick: signInPort }),
|
|
6616
6634
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
6617
6635
|
import_design_system15.Button,
|
|
6618
6636
|
{
|
|
@@ -6656,4 +6674,7 @@ function CommentThread({
|
|
|
6656
6674
|
)
|
|
6657
6675
|
] });
|
|
6658
6676
|
}
|
|
6677
|
+
function SignInAgain({ onClick }) {
|
|
6678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_design_system15.Button, { type: "button", size: "sm", variant: "outline", onClick, children: "Sign in" });
|
|
6679
|
+
}
|
|
6659
6680
|
//# sourceMappingURL=index.cjs.map
|