@ai-matrx/alchemy 0.12.3 → 0.14.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 +46 -0
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +19 -24
- package/dist/actions.d.ts +19 -24
- package/dist/actions.js.map +1 -1
- package/dist/checks.d.cts +2 -0
- package/dist/checks.d.ts +2 -0
- package/dist/core.cjs +4 -4
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +8 -58
- package/dist/core.d.ts +8 -58
- package/dist/core.js +4 -4
- package/dist/core.js.map +1 -1
- package/dist/declare/schema.json +3 -0
- package/dist/declare.cjs +1 -1
- package/dist/declare.cjs.map +1 -1
- package/dist/declare.d.cts +26 -1
- package/dist/declare.d.ts +26 -1
- package/dist/declare.js +1 -1
- package/dist/declare.js.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -58
- package/dist/index.d.ts +8 -58
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/menu.d.cts +17 -22
- package/dist/menu.d.ts +17 -22
- package/dist/operate-document.cjs +2 -2
- package/dist/operate-document.cjs.map +1 -1
- package/dist/operate-document.d.cts +4 -42
- package/dist/operate-document.d.ts +4 -42
- package/dist/operate-document.js +2 -2
- package/dist/operate-document.js.map +1 -1
- package/dist/operate-rich-html.cjs +1 -1
- package/dist/operate-rich-html.cjs.map +1 -1
- package/dist/operate-rich-html.d.cts +3 -42
- package/dist/operate-rich-html.d.ts +3 -42
- package/dist/operate-rich-html.js +1 -1
- package/dist/operate-rich-html.js.map +1 -1
- package/dist/operate-server.cjs +1 -1
- package/dist/operate-server.cjs.map +1 -1
- package/dist/operate-server.d.cts +8 -46
- package/dist/operate-server.d.ts +8 -46
- package/dist/operate-server.js +1 -1
- package/dist/operate-server.js.map +1 -1
- package/dist/operate-xlsx.cjs +2 -2
- package/dist/operate-xlsx.cjs.map +1 -1
- package/dist/operate-xlsx.d.cts +4 -42
- package/dist/operate-xlsx.d.ts +4 -42
- package/dist/operate-xlsx.js +2 -2
- package/dist/operate-xlsx.js.map +1 -1
- package/dist/operate.cjs +4 -4
- package/dist/operate.cjs.map +1 -1
- package/dist/operate.d.cts +8 -58
- package/dist/operate.d.ts +8 -58
- package/dist/operate.js +4 -4
- package/dist/operate.js.map +1 -1
- package/dist/ports.d.cts +11 -15
- package/dist/ports.d.ts +11 -15
- package/dist/react-bar.cjs.map +1 -1
- package/dist/react-bar.d.cts +3 -1
- package/dist/react-bar.d.ts +3 -1
- package/dist/react-bar.js.map +1 -1
- package/dist/react-host.d.cts +17 -22
- package/dist/react-host.d.ts +17 -22
- package/dist/react-menu.cjs.map +1 -1
- package/dist/react-menu.d.cts +3 -1
- package/dist/react-menu.d.ts +3 -1
- package/dist/react-menu.js.map +1 -1
- package/dist/react-overflow.cjs.map +1 -1
- package/dist/react-overflow.d.cts +17 -22
- package/dist/react-overflow.d.ts +17 -22
- package/dist/react-overflow.js.map +1 -1
- package/dist/react-palette.cjs.map +1 -1
- package/dist/react-palette.d.cts +3 -1
- package/dist/react-palette.d.ts +3 -1
- package/dist/react-palette.js.map +1 -1
- package/dist/react-selection.cjs.map +1 -1
- package/dist/react-selection.d.cts +3 -1
- package/dist/react-selection.d.ts +3 -1
- package/dist/react-selection.js.map +1 -1
- package/dist/react-sheet.cjs.map +1 -1
- package/dist/react-sheet.d.cts +3 -1
- package/dist/react-sheet.d.ts +3 -1
- package/dist/react-sheet.js.map +1 -1
- package/dist/react-workspace.cjs +7 -0
- package/dist/react-workspace.cjs.map +1 -0
- package/dist/react-workspace.d.cts +441 -0
- package/dist/react-workspace.d.ts +441 -0
- package/dist/react-workspace.js +7 -0
- package/dist/react-workspace.js.map +1 -0
- package/dist/react.cjs +1 -1
- 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 +1 -1
- package/dist/react.js.map +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.cjs.map +1 -1
- package/dist/surface.d.cts +222 -16
- package/dist/surface.d.ts +222 -16
- package/dist/surface.js +1 -1
- package/dist/surface.js.map +1 -1
- package/package.json +14 -4
package/dist/react-host.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TransferOutcome } from '@ai-matrx/
|
|
2
|
+
import { TransferOutcome } from '@ai-matrx/alchemy/operate';
|
|
3
|
+
import { Json as Json$2 } from '@ai-matrx/kit/transfer-json';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Matrx Alchemy — Declare types (CONTRACT §2.1).
|
|
@@ -8,8 +9,8 @@ import { TransferOutcome } from '@ai-matrx/kit/content-transfer';
|
|
|
8
9
|
* no React. Runtime behaviour lives in `MountedSurface` (`/declare/host`) and in
|
|
9
10
|
* handler registrations, never here. Zero React, zero `@ai-matrx/agents`.
|
|
10
11
|
*/
|
|
11
|
-
type Json$
|
|
12
|
-
[key: string]: Json$
|
|
12
|
+
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
13
|
+
[key: string]: Json$1;
|
|
13
14
|
};
|
|
14
15
|
/** Unchanged from `ui_surface_value_type_chk`. */
|
|
15
16
|
type ValueType = "string" | "number" | "boolean" | "object" | "array" | "document";
|
|
@@ -139,6 +140,8 @@ interface SurfaceDeclaration {
|
|
|
139
140
|
configNamespaces?: readonly ConfigNamespaceDeclaration[];
|
|
140
141
|
evidenceSources?: readonly EvidenceSourceDeclaration[];
|
|
141
142
|
skipBaselineValues?: boolean;
|
|
143
|
+
/** Opt out of the host's baseline item types (`baselineItemTypes`, e.g. `TABLE_ROW_ITEM_TYPE`). */
|
|
144
|
+
skipBaselineItemTypes?: boolean;
|
|
142
145
|
}
|
|
143
146
|
type ValueProvenance = {
|
|
144
147
|
kind: "own";
|
|
@@ -167,7 +170,7 @@ type QualifiedValueKey = string;
|
|
|
167
170
|
/** Live slot payloads (page-capture's shapes, kept). */
|
|
168
171
|
interface LiveValues {
|
|
169
172
|
selection?: {
|
|
170
|
-
choices: Record<string, Json$
|
|
173
|
+
choices: Record<string, Json$1>;
|
|
171
174
|
text: string | null;
|
|
172
175
|
};
|
|
173
176
|
"on-demand"?: readonly OnDemandSection[];
|
|
@@ -179,8 +182,8 @@ interface OnDemandSection {
|
|
|
179
182
|
title: string;
|
|
180
183
|
description?: string;
|
|
181
184
|
role: "data" | "request";
|
|
182
|
-
brief?: Json$
|
|
183
|
-
load(signal: AbortSignal): Promise<Json$
|
|
185
|
+
brief?: Json$1;
|
|
186
|
+
load(signal: AbortSignal): Promise<Json$1>;
|
|
184
187
|
}
|
|
185
188
|
interface RecentRequest {
|
|
186
189
|
method: string;
|
|
@@ -190,7 +193,7 @@ interface RecentRequest {
|
|
|
190
193
|
durationMs?: number;
|
|
191
194
|
requestId?: string;
|
|
192
195
|
client?: string;
|
|
193
|
-
requestBody?: Json$
|
|
196
|
+
requestBody?: Json$1;
|
|
194
197
|
requestBodyNote?: string;
|
|
195
198
|
errorSentence?: string;
|
|
196
199
|
timestamp: number;
|
|
@@ -259,14 +262,6 @@ interface ClickTarget {
|
|
|
259
262
|
host?: unknown;
|
|
260
263
|
}
|
|
261
264
|
|
|
262
|
-
/**
|
|
263
|
-
* Framework-neutral transfer contracts (Alchemy Operate, CONTRACT §2.3). All data crossing this boundary is JSON.
|
|
264
|
-
* Moved from `@ai-matrx/kit/content-transfer` in ALC-16; the format-adapter contract lives in `./contract`.
|
|
265
|
-
*/
|
|
266
|
-
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
267
|
-
[key: string]: Json$1;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
265
|
/**
|
|
271
266
|
* Operate — the format and delivery contract (Matrx Alchemy CONTRACT §2.3, ALC-16).
|
|
272
267
|
*
|
|
@@ -296,7 +291,7 @@ type Receipt = {
|
|
|
296
291
|
sentence: string;
|
|
297
292
|
warning?: string;
|
|
298
293
|
fix?: string; /** What the handler produced (e.g. the created record). */
|
|
299
|
-
result?: Json$
|
|
294
|
+
result?: Json$2;
|
|
300
295
|
} | {
|
|
301
296
|
status: "queued";
|
|
302
297
|
to: WriteTargetRef;
|
|
@@ -456,7 +451,7 @@ type ActionResult<T = unknown> = {
|
|
|
456
451
|
/** `POST /actions/run` (aidream) — the request. */
|
|
457
452
|
interface ServerActionRunRequest {
|
|
458
453
|
name: string;
|
|
459
|
-
input: Json$
|
|
454
|
+
input: Json$1;
|
|
460
455
|
by: ActionCaller;
|
|
461
456
|
surface_name?: string;
|
|
462
457
|
policy?: ActionPolicy;
|
|
@@ -465,8 +460,8 @@ interface ServerActionRunRequest {
|
|
|
465
460
|
interface ServerActionRunResponse {
|
|
466
461
|
status: "applied" | "proposed" | "refused";
|
|
467
462
|
message: string;
|
|
468
|
-
receipts: Json$
|
|
469
|
-
proposal?: Json$
|
|
463
|
+
receipts: Json$1[];
|
|
464
|
+
proposal?: Json$1;
|
|
470
465
|
}
|
|
471
466
|
/** A mandate run request: by alias (an Action's `target`) or by key. */
|
|
472
467
|
type MandateRunRequest = ({
|
|
@@ -476,7 +471,7 @@ type MandateRunRequest = ({
|
|
|
476
471
|
key: string;
|
|
477
472
|
alias?: never;
|
|
478
473
|
}) & {
|
|
479
|
-
variables: Record<string, Json$
|
|
474
|
+
variables: Record<string, Json$1>;
|
|
480
475
|
userInput?: string;
|
|
481
476
|
by: ActionCaller;
|
|
482
477
|
policy: ActionPolicy;
|
|
@@ -1008,11 +1003,11 @@ interface ReadOmission {
|
|
|
1008
1003
|
*/
|
|
1009
1004
|
interface ProjectedReads {
|
|
1010
1005
|
values(signal: AbortSignal): Promise<{
|
|
1011
|
-
values: Record<string, Json$
|
|
1006
|
+
values: Record<string, Json$1>;
|
|
1012
1007
|
omissions: readonly ReadOmission[];
|
|
1013
1008
|
}>;
|
|
1014
1009
|
item(signal: AbortSignal): Promise<{
|
|
1015
|
-
values: Record<string, Json$
|
|
1010
|
+
values: Record<string, Json$1>;
|
|
1016
1011
|
omissions: readonly ReadOmission[];
|
|
1017
1012
|
} | null>;
|
|
1018
1013
|
live(signal: AbortSignal): Promise<LiveValues>;
|