@ai-matrx/associations 0.8.11 → 0.9.1
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 +57 -0
- package/README.md +5 -6
- package/dist/{CommentThread--C4Vgv0S.d.cts → CommentThread-wI65Z4d8.d.cts} +2 -2
- package/dist/{CommentThread--C4Vgv0S.d.ts → CommentThread-wI65Z4d8.d.ts} +2 -2
- package/dist/core/index.cjs +242 -165
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +1 -37
- package/dist/core/index.d.ts +1 -37
- package/dist/core/index.js +242 -165
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +242 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2064 -128
- package/dist/index.d.ts +2064 -128
- package/dist/index.js +242 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +121 -195
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -12
- package/dist/react/index.d.ts +3 -12
- package/dist/react/index.js +142 -221
- 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 +4 -4
package/dist/core/index.d.cts
CHANGED
|
@@ -679,42 +679,6 @@ interface AssociationsStore {
|
|
|
679
679
|
*/
|
|
680
680
|
declare function createAssociationsStore(config: AssociationsConfig): AssociationsStore;
|
|
681
681
|
|
|
682
|
-
/** The name the self-test probes; MUST NOT exist in any schema. */
|
|
683
|
-
declare const SELF_TEST_MISSING_RPC = "assoc_probe_self_test_missing_fn";
|
|
684
|
-
interface DemandedSchemaReport {
|
|
685
|
-
ok: boolean;
|
|
686
|
-
/** Demanded functions the database cannot answer (PGRST202). */
|
|
687
|
-
missing: string[];
|
|
688
|
-
/** Functions the probe could not reach (transport/unknown failure). */
|
|
689
|
-
unreachable: {
|
|
690
|
-
fn: string;
|
|
691
|
-
error: unknown;
|
|
692
|
-
}[];
|
|
693
|
-
/** Functions that answered (success or any non-PGRST202 refusal). */
|
|
694
|
-
answered: string[];
|
|
695
|
-
}
|
|
696
|
-
interface AssertDemandedSchemaOptions {
|
|
697
|
-
/**
|
|
698
|
-
* Also probe a fabricated function name and REQUIRE it to come back
|
|
699
|
-
* missing — proves the probe can fail (the falsifiability rule).
|
|
700
|
-
*/
|
|
701
|
-
selfTest?: boolean;
|
|
702
|
-
/** Max in-flight probe calls (default 6). */
|
|
703
|
-
concurrency?: number;
|
|
704
|
-
/**
|
|
705
|
-
* Return the report instead of throwing on violation (for surfaces that
|
|
706
|
-
* render the report). The self-test failure ALWAYS throws.
|
|
707
|
-
*/
|
|
708
|
-
throwOnViolation?: boolean;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Probe every demanded RPC against `dataSource`. Throws an `Error` naming
|
|
712
|
-
* every missing function when the database violates the demanded schema
|
|
713
|
-
* (unless `throwOnViolation: false`), and ALWAYS throws when the probe
|
|
714
|
-
* itself cannot be trusted (unreachable database, failed self-test).
|
|
715
|
-
*/
|
|
716
|
-
declare function assertDemandedSchema(dataSource: AssociationsDataSource, options?: AssertDemandedSchemaOptions): Promise<DemandedSchemaReport>;
|
|
717
|
-
|
|
718
682
|
/** Source tokens that are structure, never container content. */
|
|
719
683
|
declare const NON_CONTENT_SOURCE_TYPES: ReadonlySet<string>;
|
|
720
684
|
/** True when edge metadata marks a container-membership edge. */
|
|
@@ -751,4 +715,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
|
|
|
751
715
|
*/
|
|
752
716
|
declare function createDefaultErrorSink(): ErrorSink;
|
|
753
717
|
|
|
754
|
-
export { type AddAssociationArgs, type AddCommentArgs, type
|
|
718
|
+
export { type AddAssociationArgs, type AddCommentArgs, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -679,42 +679,6 @@ interface AssociationsStore {
|
|
|
679
679
|
*/
|
|
680
680
|
declare function createAssociationsStore(config: AssociationsConfig): AssociationsStore;
|
|
681
681
|
|
|
682
|
-
/** The name the self-test probes; MUST NOT exist in any schema. */
|
|
683
|
-
declare const SELF_TEST_MISSING_RPC = "assoc_probe_self_test_missing_fn";
|
|
684
|
-
interface DemandedSchemaReport {
|
|
685
|
-
ok: boolean;
|
|
686
|
-
/** Demanded functions the database cannot answer (PGRST202). */
|
|
687
|
-
missing: string[];
|
|
688
|
-
/** Functions the probe could not reach (transport/unknown failure). */
|
|
689
|
-
unreachable: {
|
|
690
|
-
fn: string;
|
|
691
|
-
error: unknown;
|
|
692
|
-
}[];
|
|
693
|
-
/** Functions that answered (success or any non-PGRST202 refusal). */
|
|
694
|
-
answered: string[];
|
|
695
|
-
}
|
|
696
|
-
interface AssertDemandedSchemaOptions {
|
|
697
|
-
/**
|
|
698
|
-
* Also probe a fabricated function name and REQUIRE it to come back
|
|
699
|
-
* missing — proves the probe can fail (the falsifiability rule).
|
|
700
|
-
*/
|
|
701
|
-
selfTest?: boolean;
|
|
702
|
-
/** Max in-flight probe calls (default 6). */
|
|
703
|
-
concurrency?: number;
|
|
704
|
-
/**
|
|
705
|
-
* Return the report instead of throwing on violation (for surfaces that
|
|
706
|
-
* render the report). The self-test failure ALWAYS throws.
|
|
707
|
-
*/
|
|
708
|
-
throwOnViolation?: boolean;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Probe every demanded RPC against `dataSource`. Throws an `Error` naming
|
|
712
|
-
* every missing function when the database violates the demanded schema
|
|
713
|
-
* (unless `throwOnViolation: false`), and ALWAYS throws when the probe
|
|
714
|
-
* itself cannot be trusted (unreachable database, failed self-test).
|
|
715
|
-
*/
|
|
716
|
-
declare function assertDemandedSchema(dataSource: AssociationsDataSource, options?: AssertDemandedSchemaOptions): Promise<DemandedSchemaReport>;
|
|
717
|
-
|
|
718
682
|
/** Source tokens that are structure, never container content. */
|
|
719
683
|
declare const NON_CONTENT_SOURCE_TYPES: ReadonlySet<string>;
|
|
720
684
|
/** True when edge metadata marks a container-membership edge. */
|
|
@@ -751,4 +715,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
|
|
|
751
715
|
*/
|
|
752
716
|
declare function createDefaultErrorSink(): ErrorSink;
|
|
753
717
|
|
|
754
|
-
export { type AddAssociationArgs, type AddCommentArgs, type
|
|
718
|
+
export { type AddAssociationArgs, type AddCommentArgs, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };
|