@ai-matrx/content-ir-react 0.16.0 → 0.17.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 +24 -0
- package/dist/{directive-host-C4TcPpxX.d.cts → directive-host-BOML4BQ7.d.cts} +27 -1
- package/dist/{directive-host-C4TcPpxX.d.ts → directive-host-BOML4BQ7.d.ts} +27 -1
- package/dist/directives.cjs +106 -11
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.d.cts +29 -4
- package/dist/directives.d.ts +29 -4
- package/dist/directives.js +106 -11
- package/dist/directives.js.map +1 -1
- package/dist/{host-types-a0XEr5b3.d.cts → host-types-Dxzs0C3f.d.cts} +1 -1
- package/dist/{host-types-CEc86R-v.d.ts → host-types-uKO1zZo3.d.ts} +1 -1
- package/dist/host.cjs.map +1 -1
- package/dist/host.d.cts +3 -3
- package/dist/host.d.ts +3 -3
- package/dist/host.js.map +1 -1
- package/dist/index.cjs +106 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.js +106 -11
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +104 -11
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +104 -11
- package/dist/react.js.map +1 -1
- package/dist/{route-De9c5YgW.d.ts → route-CfKxIEdj.d.ts} +27 -1
- package/dist/{route-YcoyR3Fj.d.cts → route-DjGv9skd.d.cts} +27 -1
- package/dist/route.d.cts +1 -1
- package/dist/route.d.ts +1 -1
- package/package.json +3 -3
|
@@ -167,6 +167,32 @@ interface DirectiveHost {
|
|
|
167
167
|
itemKind?: DirectiveItemKindLookup;
|
|
168
168
|
/** Where a decode failure or an unhonourable shell is reported. Default: console.error. */
|
|
169
169
|
reportError?: (message: string) => void;
|
|
170
|
+
/**
|
|
171
|
+
* Plain words for a failed apply the host recognises ("This button can't
|
|
172
|
+
* create a task yet." + "Create it from Tasks instead."). The card never shows
|
|
173
|
+
* the server's raw text as its sentence: it shows these words — or its own
|
|
174
|
+
* verb-aware default — and keeps the raw text behind "Details". Return null
|
|
175
|
+
* to use the default.
|
|
176
|
+
*/
|
|
177
|
+
explainFailure?: (failure: DirectiveFailure) => DirectiveFailureWords | null;
|
|
178
|
+
}
|
|
179
|
+
/** One failed apply, as the card knows it. */
|
|
180
|
+
interface DirectiveFailure {
|
|
181
|
+
/** The server's / host's own text — technical; shown only behind Details. */
|
|
182
|
+
raw: string;
|
|
183
|
+
directiveClass: string;
|
|
184
|
+
noun: string;
|
|
185
|
+
/** The noun's display label ("Task"). */
|
|
186
|
+
nounLabel: string;
|
|
187
|
+
/** Items that failed, when some applied and some did not. */
|
|
188
|
+
failed?: number;
|
|
189
|
+
/** Items in the block. */
|
|
190
|
+
total?: number;
|
|
191
|
+
}
|
|
192
|
+
/** What failed and what to do — each one short sentence. */
|
|
193
|
+
interface DirectiveFailureWords {
|
|
194
|
+
what: string;
|
|
195
|
+
next: string;
|
|
170
196
|
}
|
|
171
197
|
/** Where a directive renders — today, the conversation it sits in (if any). */
|
|
172
198
|
interface DirectiveScope {
|
|
@@ -682,4 +708,4 @@ interface KindRouteBinding {
|
|
|
682
708
|
/** Bind the pure routes to one host's env + owned block types. */
|
|
683
709
|
declare function createKindRouteBinding(env: KindRouteEnv, options?: KindRouteOptions): KindRouteBinding;
|
|
684
710
|
|
|
685
|
-
export {
|
|
711
|
+
export { type SupersededKindRender as A, applyIrKindRoute as B, type ContentIrHost as C, type DirectiveFailure as D, createKindRouteBinding as E, envelopeFromPartialKind as F, GENERIC_STRUCTURED_COMPONENT_KEY as G, isPartialReadyKind as H, IR_PROVISIONAL_KEY as I, isProvisionalBlock as J, type KindRouteEnv as K, kindServerDataFromStoredValue as L, markKindPartialUnsafe as M, readIrRouteMarker as N, resetPartialUnsafeKinds as O, type PartialRenderOptions as P, resetSourcelessDbRowReports as Q, resolveAnnouncedKindLoading as R, type StructuredValueRenderProps as S, resolveProvisionalKindRender as T, resolveSupersededKindRender as U, routeEnvOf as V, useDirectiveHost as W, useDirectiveScope as X, type KindDefinitionSource as a, type DirectiveFailureWords as b, type DirectiveRecordRef as c, type ContentIrRenderSeams as d, DB_KIND_COMPONENT_KEY as e, DIRECTIVE_BLOCK_TYPE as f, type DirectiveApplyResult as g, type DirectiveApplyState as h, type DirectiveAskRequest as i, type DirectiveCopyProps as j, type DirectiveHost as k, DirectiveHostProvider as l, type DirectiveHostProviderProps as m, type DirectiveOpenItemOptions as n, type DirectiveRecordProps as o, type DirectiveScope as p, DirectiveScopeProvider as q, type DirectiveShell as r, type GenericFallbackReason as s, IR_ROUTE_KEY as t, type IrRenderBlock as u, type IrRoutableBlock as v, type IrRouteMarker as w, type KindRouteBinding as x, type KindRouteOptions as y, type ProvisionalKindRender as z };
|
|
@@ -167,6 +167,32 @@ interface DirectiveHost {
|
|
|
167
167
|
itemKind?: DirectiveItemKindLookup;
|
|
168
168
|
/** Where a decode failure or an unhonourable shell is reported. Default: console.error. */
|
|
169
169
|
reportError?: (message: string) => void;
|
|
170
|
+
/**
|
|
171
|
+
* Plain words for a failed apply the host recognises ("This button can't
|
|
172
|
+
* create a task yet." + "Create it from Tasks instead."). The card never shows
|
|
173
|
+
* the server's raw text as its sentence: it shows these words — or its own
|
|
174
|
+
* verb-aware default — and keeps the raw text behind "Details". Return null
|
|
175
|
+
* to use the default.
|
|
176
|
+
*/
|
|
177
|
+
explainFailure?: (failure: DirectiveFailure) => DirectiveFailureWords | null;
|
|
178
|
+
}
|
|
179
|
+
/** One failed apply, as the card knows it. */
|
|
180
|
+
interface DirectiveFailure {
|
|
181
|
+
/** The server's / host's own text — technical; shown only behind Details. */
|
|
182
|
+
raw: string;
|
|
183
|
+
directiveClass: string;
|
|
184
|
+
noun: string;
|
|
185
|
+
/** The noun's display label ("Task"). */
|
|
186
|
+
nounLabel: string;
|
|
187
|
+
/** Items that failed, when some applied and some did not. */
|
|
188
|
+
failed?: number;
|
|
189
|
+
/** Items in the block. */
|
|
190
|
+
total?: number;
|
|
191
|
+
}
|
|
192
|
+
/** What failed and what to do — each one short sentence. */
|
|
193
|
+
interface DirectiveFailureWords {
|
|
194
|
+
what: string;
|
|
195
|
+
next: string;
|
|
170
196
|
}
|
|
171
197
|
/** Where a directive renders — today, the conversation it sits in (if any). */
|
|
172
198
|
interface DirectiveScope {
|
|
@@ -682,4 +708,4 @@ interface KindRouteBinding {
|
|
|
682
708
|
/** Bind the pure routes to one host's env + owned block types. */
|
|
683
709
|
declare function createKindRouteBinding(env: KindRouteEnv, options?: KindRouteOptions): KindRouteBinding;
|
|
684
710
|
|
|
685
|
-
export {
|
|
711
|
+
export { type SupersededKindRender as A, applyIrKindRoute as B, type ContentIrHost as C, type DirectiveFailure as D, createKindRouteBinding as E, envelopeFromPartialKind as F, GENERIC_STRUCTURED_COMPONENT_KEY as G, isPartialReadyKind as H, IR_PROVISIONAL_KEY as I, isProvisionalBlock as J, type KindRouteEnv as K, kindServerDataFromStoredValue as L, markKindPartialUnsafe as M, readIrRouteMarker as N, resetPartialUnsafeKinds as O, type PartialRenderOptions as P, resetSourcelessDbRowReports as Q, resolveAnnouncedKindLoading as R, type StructuredValueRenderProps as S, resolveProvisionalKindRender as T, resolveSupersededKindRender as U, routeEnvOf as V, useDirectiveHost as W, useDirectiveScope as X, type KindDefinitionSource as a, type DirectiveFailureWords as b, type DirectiveRecordRef as c, type ContentIrRenderSeams as d, DB_KIND_COMPONENT_KEY as e, DIRECTIVE_BLOCK_TYPE as f, type DirectiveApplyResult as g, type DirectiveApplyState as h, type DirectiveAskRequest as i, type DirectiveCopyProps as j, type DirectiveHost as k, DirectiveHostProvider as l, type DirectiveHostProviderProps as m, type DirectiveOpenItemOptions as n, type DirectiveRecordProps as o, type DirectiveScope as p, DirectiveScopeProvider as q, type DirectiveShell as r, type GenericFallbackReason as s, IR_ROUTE_KEY as t, type IrRenderBlock as u, type IrRoutableBlock as v, type IrRouteMarker as w, type KindRouteBinding as x, type KindRouteOptions as y, type ProvisionalKindRender as z };
|
package/dist/route.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-DjGv9skd.cjs';
|
|
2
2
|
import './component-resolution.types-DLO2w-0n.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/content-ir';
|
package/dist/route.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-CfKxIEdj.js';
|
|
2
2
|
import './component-resolution.types-DLO2w-0n.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/content-ir';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/content-ir-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "The shared AI Matrx Content IR RENDER layer: kind routing, the component resolver, provisional (streaming) rendering, the runtime-wrapper chrome, and the generic structured floor — as portable React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
"react": ">=19.0.0"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@ai-matrx/
|
|
128
|
-
"@ai-matrx/
|
|
127
|
+
"@ai-matrx/kit": "latest",
|
|
128
|
+
"@ai-matrx/content-ir": "latest"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@arethetypeswrong/cli": "^0.18.5",
|