@ai-matrx/content-ir 0.19.28 → 0.20.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 +14 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/registry.d.cts +26 -2
- package/dist/registry.d.ts +26 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 0.20.0
|
|
5
|
+
|
|
6
|
+
### `KindDefinition.schemaSource: "table"` + `table` facet (KINDS-GLUE wave 3 slice 4)
|
|
7
|
+
|
|
8
|
+
- A `table:<uuid>` kind ("a record of that Table") is answered by the host from the Table's live Fields, never a
|
|
9
|
+
`kind_definition` row. `schemaSource` gains `"table"`; `KindDefinition.table?: TableKindFacet` carries the
|
|
10
|
+
Table id, organization, name, title field, stamp, field ids, options-table ids and the store's refusal sentence.
|
|
11
|
+
|
|
12
|
+
### Consumer action
|
|
13
|
+
|
|
14
|
+
- None required; a host that switches on `schemaSource` exhaustively handles `"table"`.
|
|
15
|
+
|
|
3
16
|
## 0.19.28
|
|
4
17
|
|
|
5
18
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
19
|
`git diff npm/content-ir-core/v0.19.27..npm/content-ir-core/v0.19.28 -- apps/shared/content-ir-core`).
|
|
7
20
|
No source changes intended and no consumer action required.
|
|
8
21
|
|
|
22
|
+
|
|
9
23
|
## 0.19.27
|
|
10
24
|
|
|
11
25
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { I as IrTree, a as IrTreeNode, J as JsonPath, K as KindStreamEvent, b as
|
|
|
3
3
|
export { CompleteValueEnvelopeOptions, CompliantKindSnapshot, ContentRegionInit, Fingerprinter, IR_ENVELOPE_CACHE_VERSION, InboundEnvelopeHooks, InboundEnvelopeVerdict, IrEnvelopeCache, JSON_DISCRIMINATOR, JsonStreamTokenizer, JsonToken, KindResolution, NormalizeJsonRegionOptions, Punct, RegionEndReason, RegionFormat, RegionSourceKind, SchemaLayoutMode, buildCompliantKindSnapshot, classifyInboundEnvelopeMetadata, createFingerprinter, emptyValueForFieldSchema, envelopeCacheFromEnvelopes, envelopeFromCompleteValue, fenceDiscriminator, fingerprintText, formatBlockLabel, isCanonicalBlockIR, isIrEnvelopeCache, mergeResidueIntoValue, normalizeJsonRegion, readEnvelope, reconstructRegionValue, reuseEnvelopeIfCurrent, sanitizeInboundEnvelopeMetadata, schemaLayoutMode, schemaStructureDepth, stripKindDeep, xmlDiscriminator } from './core.cjs';
|
|
4
4
|
export { A as ArrayItemScalarType, F as FieldSchema, K as KIND_KEY, a as KindSchema, R as RecordValueType, S as ScalarFieldType, i as isJsonAnyField, b as isScalarArrayType, r as readObjectKind, s as scalarArrayItemType } from './kind-schema.types-CwncWj9U.cjs';
|
|
5
5
|
export { ParseSession, ParseSessionOptions, disposeParseSession, getParseSession, openParseSession } from './session.cjs';
|
|
6
|
-
export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateResult, Json, KindBlockProps, KindDefinition, KindEdgeSpec, KindStorageError, KindStorageShape, KindTier, KindValidationResult, KindValidator, KindValidatorOptions, LegResult, ROOT_STORAGE_NAME, SchemaSourcePort, SchemaUnavailableReason, StoredFieldElement, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg } from './registry.cjs';
|
|
6
|
+
export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateResult, Json, KindBlockProps, KindDefinition, KindEdgeSpec, KindStorageError, KindStorageShape, KindTier, KindValidationResult, KindValidator, KindValidatorOptions, LegResult, ROOT_STORAGE_NAME, SchemaSourcePort, SchemaUnavailableReason, StoredFieldElement, TableKindFacet, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg } from './registry.cjs';
|
|
7
7
|
export { ArrayItemKindBinding, BlockSchemaDraft, CONTROL_KEYS, CONTROL_KEY_FIELDS, ControlKey, ControlKeysMode, ConversionProblem, DroppedMetadata, FieldComparison, ItemKindRefCheck, JsonSchemaNode, KindJsonSchemaExport, KindJsonSchemaOptions, KindSchemaFromJsonOptions, KindSchemaFromJsonResult, RECORD_DISPOSITION, SavePlanEntry, SavePlanValidation, SchemaConversionResult, WithControlKeysOptions, buildAgentSchemaWithRenderBlockSupport, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, controlKeysApplyTo, convertAiSchemaToBlockFields, fieldsToDbPayload, injectKindIntoObjectSchema, isDuplicateBlockSlug, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, normalizeAiSchemaInput, runSchemaConversion, stripControlKeys, validateBlockSchemaSavePlan, withControlKeyFields, withControlKeys } from './convert.cjs';
|
|
8
8
|
export { AnyPartialKindEvent, IR_PARTIAL_KEY, KindVerdict, NODE_OUTCOME_KIND, NodeOutcomeWrapper, PartialKindEvent, PartialKindNode, PartialKindState, RUN_RESULT_KIND, RetractedKindEvent, RunResultWrapper, SupersededKindEvent, advancePartialKind, emitPayloadFence, emitPayloadJson, isProvisionalKind, isTerminalKindEvent, kindVerdictOf, makePartialKindStalenessGate, readNodeOutcomeValue, readOutputRef, readPartialKindEvent, readRunResultValue, rehydrateNodeOutcome, rehydrateRunResult, sanitizeInboundPartialKindMetadata, withRootKind } from './wire.cjs';
|
|
9
9
|
export { ACTION_BY_CLASS, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DecodedDirective, DirectiveCapability, DirectiveClass, DirectiveDecodeError, DirectiveDisplay, DirectiveItemKindLookup, DirectiveItemsEdge, DirectiveNounCatalog, DirectiveNounEntry, DirectiveSlug, IN_CONTENT_CLASSES, ItemFact, KindDirectiveShell, RESERVED_PREFIX, SIDE_EFFECT_CLASSES, SLUG_PREFIX, asKindInstance, buildDirectiveSlug, buildKindDirective, capabilityOf, decodeDirective, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, executesAtOutputRoot, isDirectiveClass, isKindDirective, isLegacyShell, isReservedDirectiveSlug, itemFacts, itemSubtitle, itemTitle, legacyShellUses, looksLikeDirectiveHead, nounFamily, nounLabel, nounTitleColumn, parseDirectiveSlug, resetLegacyShellUses, resolvesInContent, titleCaseToken, tryDecodeDirective, tryDecodeDirectiveContent } from './directives.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { I as IrTree, a as IrTreeNode, J as JsonPath, K as KindStreamEvent, b as
|
|
|
3
3
|
export { CompleteValueEnvelopeOptions, CompliantKindSnapshot, ContentRegionInit, Fingerprinter, IR_ENVELOPE_CACHE_VERSION, InboundEnvelopeHooks, InboundEnvelopeVerdict, IrEnvelopeCache, JSON_DISCRIMINATOR, JsonStreamTokenizer, JsonToken, KindResolution, NormalizeJsonRegionOptions, Punct, RegionEndReason, RegionFormat, RegionSourceKind, SchemaLayoutMode, buildCompliantKindSnapshot, classifyInboundEnvelopeMetadata, createFingerprinter, emptyValueForFieldSchema, envelopeCacheFromEnvelopes, envelopeFromCompleteValue, fenceDiscriminator, fingerprintText, formatBlockLabel, isCanonicalBlockIR, isIrEnvelopeCache, mergeResidueIntoValue, normalizeJsonRegion, readEnvelope, reconstructRegionValue, reuseEnvelopeIfCurrent, sanitizeInboundEnvelopeMetadata, schemaLayoutMode, schemaStructureDepth, stripKindDeep, xmlDiscriminator } from './core.js';
|
|
4
4
|
export { A as ArrayItemScalarType, F as FieldSchema, K as KIND_KEY, a as KindSchema, R as RecordValueType, S as ScalarFieldType, i as isJsonAnyField, b as isScalarArrayType, r as readObjectKind, s as scalarArrayItemType } from './kind-schema.types-CwncWj9U.js';
|
|
5
5
|
export { ParseSession, ParseSessionOptions, disposeParseSession, getParseSession, openParseSession } from './session.js';
|
|
6
|
-
export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateResult, Json, KindBlockProps, KindDefinition, KindEdgeSpec, KindStorageError, KindStorageShape, KindTier, KindValidationResult, KindValidator, KindValidatorOptions, LegResult, ROOT_STORAGE_NAME, SchemaSourcePort, SchemaUnavailableReason, StoredFieldElement, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg } from './registry.js';
|
|
6
|
+
export { DualGateDefinition, DualGateInput, DualGateResolvedComponent, DualGateResult, Json, KindBlockProps, KindDefinition, KindEdgeSpec, KindStorageError, KindStorageShape, KindTier, KindValidationResult, KindValidator, KindValidatorOptions, LegResult, ROOT_STORAGE_NAME, SchemaSourcePort, SchemaUnavailableReason, StoredFieldElement, TableKindFacet, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg } from './registry.js';
|
|
7
7
|
export { ArrayItemKindBinding, BlockSchemaDraft, CONTROL_KEYS, CONTROL_KEY_FIELDS, ControlKey, ControlKeysMode, ConversionProblem, DroppedMetadata, FieldComparison, ItemKindRefCheck, JsonSchemaNode, KindJsonSchemaExport, KindJsonSchemaOptions, KindSchemaFromJsonOptions, KindSchemaFromJsonResult, RECORD_DISPOSITION, SavePlanEntry, SavePlanValidation, SchemaConversionResult, WithControlKeysOptions, buildAgentSchemaWithRenderBlockSupport, collectReferencedKinds, collectSchemaReferencedKinds, compareWithExistingKindSchema, controlKeysApplyTo, convertAiSchemaToBlockFields, fieldsToDbPayload, injectKindIntoObjectSchema, isDuplicateBlockSlug, kindSchemaFromJsonSchema, kindSchemaToJsonSchema, normalizeAiSchemaInput, runSchemaConversion, stripControlKeys, validateBlockSchemaSavePlan, withControlKeyFields, withControlKeys } from './convert.js';
|
|
8
8
|
export { AnyPartialKindEvent, IR_PARTIAL_KEY, KindVerdict, NODE_OUTCOME_KIND, NodeOutcomeWrapper, PartialKindEvent, PartialKindNode, PartialKindState, RUN_RESULT_KIND, RetractedKindEvent, RunResultWrapper, SupersededKindEvent, advancePartialKind, emitPayloadFence, emitPayloadJson, isProvisionalKind, isTerminalKindEvent, kindVerdictOf, makePartialKindStalenessGate, readNodeOutcomeValue, readOutputRef, readPartialKindEvent, readRunResultValue, rehydrateNodeOutcome, rehydrateRunResult, sanitizeInboundPartialKindMetadata, withRootKind } from './wire.js';
|
|
9
9
|
export { ACTION_BY_CLASS, CAPABILITY_BY_CLASS, CLASSES, DIRECTIVE_VERSION, DecodedDirective, DirectiveCapability, DirectiveClass, DirectiveDecodeError, DirectiveDisplay, DirectiveItemKindLookup, DirectiveItemsEdge, DirectiveNounCatalog, DirectiveNounEntry, DirectiveSlug, IN_CONTENT_CLASSES, ItemFact, KindDirectiveShell, RESERVED_PREFIX, SIDE_EFFECT_CLASSES, SLUG_PREFIX, asKindInstance, buildDirectiveSlug, buildKindDirective, capabilityOf, decodeDirective, directiveDisplay, directiveItemKindFromEdges, directiveSlugOf, executesAtOutputRoot, isDirectiveClass, isKindDirective, isLegacyShell, isReservedDirectiveSlug, itemFacts, itemSubtitle, itemTitle, legacyShellUses, looksLikeDirectiveHead, nounFamily, nounLabel, nounTitleColumn, parseDirectiveSlug, resetLegacyShellUses, resolvesInContent, titleCaseToken, tryDecodeDirective, tryDecodeDirectiveContent } from './directives.js';
|
package/dist/registry.d.cts
CHANGED
|
@@ -29,13 +29,37 @@ interface KindBlockProps {
|
|
|
29
29
|
resolve: (kind: string) => KindSchema | undefined;
|
|
30
30
|
}
|
|
31
31
|
type KindTier = "eager" | "warm" | "cold";
|
|
32
|
+
/**
|
|
33
|
+
* A TABLE AS A KIND (KINDS-GLUE wave 3 §1.4): what the host learned from the store's
|
|
34
|
+
* `custom.table_kind_facts` when it answered a `table:<uuid>` kind. `stamp` moves on any Field or
|
|
35
|
+
* choice change; `optionsTableIds` are the Tables whose records are this Table's choices (a change
|
|
36
|
+
* there is a change here). `refusal` is the store's own sentence when the person may not open the
|
|
37
|
+
* Table — the definition still exists so the card can say so instead of loading forever.
|
|
38
|
+
*/
|
|
39
|
+
interface TableKindFacet {
|
|
40
|
+
tableId: string;
|
|
41
|
+
organizationId: string | null;
|
|
42
|
+
name: string | null;
|
|
43
|
+
titleField: string | null;
|
|
44
|
+
stamp: string | null;
|
|
45
|
+
fieldIds: string[];
|
|
46
|
+
optionsTableIds: string[];
|
|
47
|
+
refusal?: string | null;
|
|
48
|
+
}
|
|
32
49
|
interface KindDefinition {
|
|
33
50
|
/** Canonical slug — THE key. */
|
|
34
51
|
kind: string;
|
|
35
52
|
/** null until the warm/cold fetch delivers it. */
|
|
36
53
|
schema: KindSchema | null;
|
|
37
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Where the schema came from. `"table"` (KINDS-GLUE wave 3): the kind is `table:<uuid>` — "a
|
|
56
|
+
* record of that Table" — and its schema is derived from the Table's live Fields
|
|
57
|
+
* (`@ai-matrx/records` `tableRenderSchema`), never a `kind_definition` row.
|
|
58
|
+
*/
|
|
59
|
+
schemaSource: "system" | "flexible_data" | "content_ir" | "table";
|
|
38
60
|
tier: KindTier;
|
|
61
|
+
/** Present only for `schemaSource: "table"` — the Table the kind is derived from. */
|
|
62
|
+
table?: TableKindFacet;
|
|
39
63
|
/** Component facet — lazy-loaded renderer for this kind. */
|
|
40
64
|
component?: {
|
|
41
65
|
load: () => Promise<{
|
|
@@ -457,4 +481,4 @@ interface KindValidatorOptions {
|
|
|
457
481
|
/** Build a validator over one host's schema source. */
|
|
458
482
|
declare function createKindValidator(source: SchemaSourcePort, options?: KindValidatorOptions): KindValidator;
|
|
459
483
|
|
|
460
|
-
export { type DualGateDefinition, type DualGateInput, type DualGateResolvedComponent, type DualGateResult, type Json, type KindBlockProps, type KindDefinition, type KindEdgeSpec, KindStorageError, type KindStorageShape, type KindTier, type KindValidationResult, type KindValidator, type KindValidatorOptions, type LegResult, ROOT_STORAGE_NAME, type SchemaSourcePort, type SchemaUnavailableReason, type StoredFieldElement, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg };
|
|
484
|
+
export { type DualGateDefinition, type DualGateInput, type DualGateResolvedComponent, type DualGateResult, type Json, type KindBlockProps, type KindDefinition, type KindEdgeSpec, KindStorageError, type KindStorageShape, type KindTier, type KindValidationResult, type KindValidator, type KindValidatorOptions, type LegResult, ROOT_STORAGE_NAME, type SchemaSourcePort, type SchemaUnavailableReason, type StoredFieldElement, type TableKindFacet, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg };
|
package/dist/registry.d.ts
CHANGED
|
@@ -29,13 +29,37 @@ interface KindBlockProps {
|
|
|
29
29
|
resolve: (kind: string) => KindSchema | undefined;
|
|
30
30
|
}
|
|
31
31
|
type KindTier = "eager" | "warm" | "cold";
|
|
32
|
+
/**
|
|
33
|
+
* A TABLE AS A KIND (KINDS-GLUE wave 3 §1.4): what the host learned from the store's
|
|
34
|
+
* `custom.table_kind_facts` when it answered a `table:<uuid>` kind. `stamp` moves on any Field or
|
|
35
|
+
* choice change; `optionsTableIds` are the Tables whose records are this Table's choices (a change
|
|
36
|
+
* there is a change here). `refusal` is the store's own sentence when the person may not open the
|
|
37
|
+
* Table — the definition still exists so the card can say so instead of loading forever.
|
|
38
|
+
*/
|
|
39
|
+
interface TableKindFacet {
|
|
40
|
+
tableId: string;
|
|
41
|
+
organizationId: string | null;
|
|
42
|
+
name: string | null;
|
|
43
|
+
titleField: string | null;
|
|
44
|
+
stamp: string | null;
|
|
45
|
+
fieldIds: string[];
|
|
46
|
+
optionsTableIds: string[];
|
|
47
|
+
refusal?: string | null;
|
|
48
|
+
}
|
|
32
49
|
interface KindDefinition {
|
|
33
50
|
/** Canonical slug — THE key. */
|
|
34
51
|
kind: string;
|
|
35
52
|
/** null until the warm/cold fetch delivers it. */
|
|
36
53
|
schema: KindSchema | null;
|
|
37
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Where the schema came from. `"table"` (KINDS-GLUE wave 3): the kind is `table:<uuid>` — "a
|
|
56
|
+
* record of that Table" — and its schema is derived from the Table's live Fields
|
|
57
|
+
* (`@ai-matrx/records` `tableRenderSchema`), never a `kind_definition` row.
|
|
58
|
+
*/
|
|
59
|
+
schemaSource: "system" | "flexible_data" | "content_ir" | "table";
|
|
38
60
|
tier: KindTier;
|
|
61
|
+
/** Present only for `schemaSource: "table"` — the Table the kind is derived from. */
|
|
62
|
+
table?: TableKindFacet;
|
|
39
63
|
/** Component facet — lazy-loaded renderer for this kind. */
|
|
40
64
|
component?: {
|
|
41
65
|
load: () => Promise<{
|
|
@@ -457,4 +481,4 @@ interface KindValidatorOptions {
|
|
|
457
481
|
/** Build a validator over one host's schema source. */
|
|
458
482
|
declare function createKindValidator(source: SchemaSourcePort, options?: KindValidatorOptions): KindValidator;
|
|
459
483
|
|
|
460
|
-
export { type DualGateDefinition, type DualGateInput, type DualGateResolvedComponent, type DualGateResult, type Json, type KindBlockProps, type KindDefinition, type KindEdgeSpec, KindStorageError, type KindStorageShape, type KindTier, type KindValidationResult, type KindValidator, type KindValidatorOptions, type LegResult, ROOT_STORAGE_NAME, type SchemaSourcePort, type SchemaUnavailableReason, type StoredFieldElement, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg };
|
|
484
|
+
export { type DualGateDefinition, type DualGateInput, type DualGateResolvedComponent, type DualGateResult, type Json, type KindBlockProps, type KindDefinition, type KindEdgeSpec, KindStorageError, type KindStorageShape, type KindTier, type KindValidationResult, type KindValidator, type KindValidatorOptions, type LegResult, ROOT_STORAGE_NAME, type SchemaSourcePort, type SchemaUnavailableReason, type StoredFieldElement, type TableKindFacet, createKindValidator, describeDualGateFailure, kindSchemaToStorage, runKindDualGate, storageToKindSchema, validateStructuralLeg };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/content-ir",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "The pure AI Matrx Content IR parser, normalized envelope, session, schema conversion, and structural validation kernel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|