@ai-matrx/associations 0.10.7 → 0.11.0
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 +20 -0
- package/dist/{CommentThread-DobuYuwz.d.cts → CommentThread-ZWiJVDpI.d.cts} +57 -21
- package/dist/{CommentThread-DobuYuwz.d.ts → CommentThread-ZWiJVDpI.d.ts} +57 -21
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +135 -38
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +135 -38
- 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/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,18 @@ import { ElementType, ComponentType, ReactNode } from 'react';
|
|
|
2
2
|
|
|
3
3
|
declare const ASSOCIATION_TARGET_TYPES: readonly ["organization", "scope", "scope_type", "project", "task", "context_item", "thread", "war_room", "category", "conversation", "fc_set", "fc_card", "study_media", "assessment", "note", "file", "quiz_session", "agent", "agent_term_list", "research_tag", "skill", "surface", "plan_entity", "plan_node", "web_site", "seo_topic", "seo_keyword", "web_page", "web_screenshot", "party", "crm_outreach_list", "crm_deal", "rulebook"];
|
|
4
4
|
type AssociationTargetType = (typeof ASSOCIATION_TARGET_TYPES)[number];
|
|
5
|
+
/** Runtime guard: is this token one of the deliberate container (target) types? */
|
|
6
|
+
declare function isAssociationTargetType(value: unknown): value is AssociationTargetType;
|
|
7
|
+
/**
|
|
8
|
+
* Which edges a primary entity's association surfaces read and write.
|
|
9
|
+
* - `incoming` (default) — the primary is a CONTAINER: it lists what is
|
|
10
|
+
* attached INTO it (`resource → primary`) and "+" attaches resources to it.
|
|
11
|
+
* - `outgoing` — the primary is FILED UNDER things (a Source under a project,
|
|
12
|
+
* a research topic, a Library): it lists its own `primary → container`
|
|
13
|
+
* edges and "+" files it under a container. Only container (target) types
|
|
14
|
+
* can be filed under.
|
|
15
|
+
*/
|
|
16
|
+
type AssociationDirection = "incoming" | "outgoing";
|
|
5
17
|
interface AssociationEdge {
|
|
6
18
|
id: string;
|
|
7
19
|
direction: "outgoing" | "incoming";
|
|
@@ -16767,6 +16779,11 @@ interface AssociationPickerProps {
|
|
|
16767
16779
|
ok: boolean;
|
|
16768
16780
|
error?: string;
|
|
16769
16781
|
}>;
|
|
16782
|
+
/**
|
|
16783
|
+
* Filed-under mode: the primary is being FILED UNDER the picked items
|
|
16784
|
+
* (`primary → item`), so the header says "File … under" not "Attach to".
|
|
16785
|
+
*/
|
|
16786
|
+
filing?: boolean;
|
|
16770
16787
|
}
|
|
16771
16788
|
/** Per-token picker override map — absent tokens use the generic picker sheet. */
|
|
16772
16789
|
type PickerOverrideMap = Partial<Record<EntityTypeToken, ComponentType<AssociationPickerProps>>>;
|
|
@@ -16848,4 +16865,4 @@ interface AssociationsConfig {
|
|
|
16848
16865
|
authorDisplay?: AuthorDisplayPort;
|
|
16849
16866
|
}
|
|
16850
16867
|
|
|
16851
|
-
export { ASSOCIATION_TARGET_TYPES, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationsRpcErr, isEntityTypeToken };
|
|
16868
|
+
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,18 @@ import { ElementType, ComponentType, ReactNode } from 'react';
|
|
|
2
2
|
|
|
3
3
|
declare const ASSOCIATION_TARGET_TYPES: readonly ["organization", "scope", "scope_type", "project", "task", "context_item", "thread", "war_room", "category", "conversation", "fc_set", "fc_card", "study_media", "assessment", "note", "file", "quiz_session", "agent", "agent_term_list", "research_tag", "skill", "surface", "plan_entity", "plan_node", "web_site", "seo_topic", "seo_keyword", "web_page", "web_screenshot", "party", "crm_outreach_list", "crm_deal", "rulebook"];
|
|
4
4
|
type AssociationTargetType = (typeof ASSOCIATION_TARGET_TYPES)[number];
|
|
5
|
+
/** Runtime guard: is this token one of the deliberate container (target) types? */
|
|
6
|
+
declare function isAssociationTargetType(value: unknown): value is AssociationTargetType;
|
|
7
|
+
/**
|
|
8
|
+
* Which edges a primary entity's association surfaces read and write.
|
|
9
|
+
* - `incoming` (default) — the primary is a CONTAINER: it lists what is
|
|
10
|
+
* attached INTO it (`resource → primary`) and "+" attaches resources to it.
|
|
11
|
+
* - `outgoing` — the primary is FILED UNDER things (a Source under a project,
|
|
12
|
+
* a research topic, a Library): it lists its own `primary → container`
|
|
13
|
+
* edges and "+" files it under a container. Only container (target) types
|
|
14
|
+
* can be filed under.
|
|
15
|
+
*/
|
|
16
|
+
type AssociationDirection = "incoming" | "outgoing";
|
|
5
17
|
interface AssociationEdge {
|
|
6
18
|
id: string;
|
|
7
19
|
direction: "outgoing" | "incoming";
|
|
@@ -16767,6 +16779,11 @@ interface AssociationPickerProps {
|
|
|
16767
16779
|
ok: boolean;
|
|
16768
16780
|
error?: string;
|
|
16769
16781
|
}>;
|
|
16782
|
+
/**
|
|
16783
|
+
* Filed-under mode: the primary is being FILED UNDER the picked items
|
|
16784
|
+
* (`primary → item`), so the header says "File … under" not "Attach to".
|
|
16785
|
+
*/
|
|
16786
|
+
filing?: boolean;
|
|
16770
16787
|
}
|
|
16771
16788
|
/** Per-token picker override map — absent tokens use the generic picker sheet. */
|
|
16772
16789
|
type PickerOverrideMap = Partial<Record<EntityTypeToken, ComponentType<AssociationPickerProps>>>;
|
|
@@ -16848,4 +16865,4 @@ interface AssociationsConfig {
|
|
|
16848
16865
|
authorDisplay?: AuthorDisplayPort;
|
|
16849
16866
|
}
|
|
16850
16867
|
|
|
16851
|
-
export { ASSOCIATION_TARGET_TYPES, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationsRpcErr, isEntityTypeToken };
|
|
16868
|
+
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
package/dist/index.js
CHANGED
|
@@ -2107,6 +2107,9 @@ var ASSOCIATION_TARGET_TYPES = [
|
|
|
2107
2107
|
"rulebook"
|
|
2108
2108
|
// a Masterwork Rulebook — its Scout interviews attach here (conversation→rulebook, role 'interview')
|
|
2109
2109
|
];
|
|
2110
|
+
function isAssociationTargetType(value) {
|
|
2111
|
+
return typeof value === "string" && ASSOCIATION_TARGET_TYPES.includes(value);
|
|
2112
|
+
}
|
|
2110
2113
|
|
|
2111
2114
|
// src/results.ts
|
|
2112
2115
|
function isAssociationsRpcErr(r) {
|
|
@@ -2152,6 +2155,7 @@ export {
|
|
|
2152
2155
|
ENTITY_TYPE_TOKENS,
|
|
2153
2156
|
REFERENCE_CATEGORY_DISPLAY,
|
|
2154
2157
|
SCHEMA_DISPLAY,
|
|
2158
|
+
isAssociationTargetType,
|
|
2155
2159
|
isAssociationsRpcErr,
|
|
2156
2160
|
isEntityTypeToken
|
|
2157
2161
|
};
|