@ai-matrx/alchemy 0.13.0 → 0.15.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 +47 -0
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +18 -23
- package/dist/actions.d.ts +18 -23
- 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 +9 -4
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +24 -58
- package/dist/core.d.ts +24 -58
- package/dist/core.js +9 -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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -58
- package/dist/index.d.ts +24 -58
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/menu.d.cts +16 -21
- package/dist/menu.d.ts +16 -21
- 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 +9 -4
- package/dist/operate.cjs.map +1 -1
- package/dist/operate.d.cts +24 -58
- package/dist/operate.d.ts +24 -58
- package/dist/operate.js +9 -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.d.cts +2 -0
- package/dist/react-bar.d.ts +2 -0
- package/dist/react-host.d.cts +16 -21
- package/dist/react-host.d.ts +16 -21
- package/dist/react-menu.d.cts +2 -0
- package/dist/react-menu.d.ts +2 -0
- package/dist/react-overflow.d.cts +16 -21
- package/dist/react-overflow.d.ts +16 -21
- package/dist/react-palette.d.cts +2 -0
- package/dist/react-palette.d.ts +2 -0
- package/dist/react-selection.d.cts +2 -0
- package/dist/react-selection.d.ts +2 -0
- package/dist/react-sheet.d.cts +2 -0
- package/dist/react-sheet.d.ts +2 -0
- package/dist/react-workspace.cjs +2 -2
- package/dist/react-workspace.cjs.map +1 -1
- package/dist/react-workspace.d.cts +30 -1
- package/dist/react-workspace.d.ts +30 -1
- package/dist/react-workspace.js +1 -1
- package/dist/react-workspace.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 +4 -4
package/dist/actions.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TransferOutcome } from '@ai-matrx/alchemy/operate';
|
|
2
|
+
import { Json as Json$2 } from '@ai-matrx/kit/transfer-json';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Matrx Alchemy — Declare types (CONTRACT §2.1).
|
|
@@ -7,8 +8,8 @@ import { TransferOutcome } from '@ai-matrx/alchemy/operate';
|
|
|
7
8
|
* no React. Runtime behaviour lives in `MountedSurface` (`/declare/host`) and in
|
|
8
9
|
* handler registrations, never here. Zero React, zero `@ai-matrx/agents`.
|
|
9
10
|
*/
|
|
10
|
-
type Json$
|
|
11
|
-
[key: string]: Json$
|
|
11
|
+
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
12
|
+
[key: string]: Json$1;
|
|
12
13
|
};
|
|
13
14
|
/** Unchanged from `ui_surface_value_type_chk`. */
|
|
14
15
|
type ValueType = "string" | "number" | "boolean" | "object" | "array" | "document";
|
|
@@ -138,6 +139,8 @@ interface SurfaceDeclaration {
|
|
|
138
139
|
configNamespaces?: readonly ConfigNamespaceDeclaration[];
|
|
139
140
|
evidenceSources?: readonly EvidenceSourceDeclaration[];
|
|
140
141
|
skipBaselineValues?: boolean;
|
|
142
|
+
/** Opt out of the host's baseline item types (`baselineItemTypes`, e.g. `TABLE_ROW_ITEM_TYPE`). */
|
|
143
|
+
skipBaselineItemTypes?: boolean;
|
|
141
144
|
}
|
|
142
145
|
type ValueProvenance = {
|
|
143
146
|
kind: "own";
|
|
@@ -166,7 +169,7 @@ type QualifiedValueKey = string;
|
|
|
166
169
|
/** Live slot payloads (page-capture's shapes, kept). */
|
|
167
170
|
interface LiveValues {
|
|
168
171
|
selection?: {
|
|
169
|
-
choices: Record<string, Json$
|
|
172
|
+
choices: Record<string, Json$1>;
|
|
170
173
|
text: string | null;
|
|
171
174
|
};
|
|
172
175
|
"on-demand"?: readonly OnDemandSection[];
|
|
@@ -178,8 +181,8 @@ interface OnDemandSection {
|
|
|
178
181
|
title: string;
|
|
179
182
|
description?: string;
|
|
180
183
|
role: "data" | "request";
|
|
181
|
-
brief?: Json$
|
|
182
|
-
load(signal: AbortSignal): Promise<Json$
|
|
184
|
+
brief?: Json$1;
|
|
185
|
+
load(signal: AbortSignal): Promise<Json$1>;
|
|
183
186
|
}
|
|
184
187
|
interface RecentRequest {
|
|
185
188
|
method: string;
|
|
@@ -189,7 +192,7 @@ interface RecentRequest {
|
|
|
189
192
|
durationMs?: number;
|
|
190
193
|
requestId?: string;
|
|
191
194
|
client?: string;
|
|
192
|
-
requestBody?: Json$
|
|
195
|
+
requestBody?: Json$1;
|
|
193
196
|
requestBodyNote?: string;
|
|
194
197
|
errorSentence?: string;
|
|
195
198
|
timestamp: number;
|
|
@@ -258,14 +261,6 @@ interface ClickTarget {
|
|
|
258
261
|
host?: unknown;
|
|
259
262
|
}
|
|
260
263
|
|
|
261
|
-
/**
|
|
262
|
-
* Framework-neutral transfer contracts (Alchemy Operate, CONTRACT §2.3). All data crossing this boundary is JSON.
|
|
263
|
-
* Moved from `@ai-matrx/kit/content-transfer` in ALC-16; the format-adapter contract lives in `./contract`.
|
|
264
|
-
*/
|
|
265
|
-
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
266
|
-
[key: string]: Json$1;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
264
|
/**
|
|
270
265
|
* Operate — the format and delivery contract (Matrx Alchemy CONTRACT §2.3, ALC-16).
|
|
271
266
|
*
|
|
@@ -295,7 +290,7 @@ type Receipt = {
|
|
|
295
290
|
sentence: string;
|
|
296
291
|
warning?: string;
|
|
297
292
|
fix?: string; /** What the handler produced (e.g. the created record). */
|
|
298
|
-
result?: Json$
|
|
293
|
+
result?: Json$2;
|
|
299
294
|
} | {
|
|
300
295
|
status: "queued";
|
|
301
296
|
to: WriteTargetRef;
|
|
@@ -528,7 +523,7 @@ type ActionResult<T = unknown> = {
|
|
|
528
523
|
/** `POST /actions/run` (aidream) — the request. */
|
|
529
524
|
interface ServerActionRunRequest {
|
|
530
525
|
name: string;
|
|
531
|
-
input: Json$
|
|
526
|
+
input: Json$1;
|
|
532
527
|
by: ActionCaller;
|
|
533
528
|
surface_name?: string;
|
|
534
529
|
policy?: ActionPolicy;
|
|
@@ -537,8 +532,8 @@ interface ServerActionRunRequest {
|
|
|
537
532
|
interface ServerActionRunResponse {
|
|
538
533
|
status: "applied" | "proposed" | "refused";
|
|
539
534
|
message: string;
|
|
540
|
-
receipts: Json$
|
|
541
|
-
proposal?: Json$
|
|
535
|
+
receipts: Json$1[];
|
|
536
|
+
proposal?: Json$1;
|
|
542
537
|
}
|
|
543
538
|
/** A mandate run request: by alias (an Action's `target`) or by key. */
|
|
544
539
|
type MandateRunRequest = ({
|
|
@@ -548,7 +543,7 @@ type MandateRunRequest = ({
|
|
|
548
543
|
key: string;
|
|
549
544
|
alias?: never;
|
|
550
545
|
}) & {
|
|
551
|
-
variables: Record<string, Json$
|
|
546
|
+
variables: Record<string, Json$1>;
|
|
552
547
|
userInput?: string;
|
|
553
548
|
by: ActionCaller;
|
|
554
549
|
policy: ActionPolicy;
|
|
@@ -1099,11 +1094,11 @@ interface ReadOmission {
|
|
|
1099
1094
|
*/
|
|
1100
1095
|
interface ProjectedReads {
|
|
1101
1096
|
values(signal: AbortSignal): Promise<{
|
|
1102
|
-
values: Record<string, Json$
|
|
1097
|
+
values: Record<string, Json$1>;
|
|
1103
1098
|
omissions: readonly ReadOmission[];
|
|
1104
1099
|
}>;
|
|
1105
1100
|
item(signal: AbortSignal): Promise<{
|
|
1106
|
-
values: Record<string, Json$
|
|
1101
|
+
values: Record<string, Json$1>;
|
|
1107
1102
|
omissions: readonly ReadOmission[];
|
|
1108
1103
|
} | null>;
|
|
1109
1104
|
live(signal: AbortSignal): Promise<LiveValues>;
|
|
@@ -1235,7 +1230,7 @@ interface ProjectionSource {
|
|
|
1235
1230
|
}
|
|
1236
1231
|
/** Keep declared, ordinary, exportable values; record every removal. */
|
|
1237
1232
|
declare function projectValues(raw: Record<string, unknown>, declared: readonly Pick<DeclaredValue, "name" | "sensitivity">[], pathPrefix?: string): {
|
|
1238
|
-
values: Record<string, Json$
|
|
1233
|
+
values: Record<string, Json$1>;
|
|
1239
1234
|
omissions: ReadOmission[];
|
|
1240
1235
|
};
|
|
1241
1236
|
declare function createProjectedReads(source: ProjectionSource): ProjectedReads;
|
|
@@ -1332,7 +1327,7 @@ interface ClientToolRow {
|
|
|
1332
1327
|
name: string;
|
|
1333
1328
|
label: string;
|
|
1334
1329
|
description: string;
|
|
1335
|
-
input_schema: Json$
|
|
1330
|
+
input_schema: Json$1;
|
|
1336
1331
|
/** Live values: "ui" (applied directly) | "draft" (proposed for review). */
|
|
1337
1332
|
mode: "ui" | "draft";
|
|
1338
1333
|
declared_by?: ActionDeclaredBy;
|
package/dist/actions.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TransferOutcome } from '@ai-matrx/alchemy/operate';
|
|
2
|
+
import { Json as Json$2 } from '@ai-matrx/kit/transfer-json';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Matrx Alchemy — Declare types (CONTRACT §2.1).
|
|
@@ -7,8 +8,8 @@ import { TransferOutcome } from '@ai-matrx/alchemy/operate';
|
|
|
7
8
|
* no React. Runtime behaviour lives in `MountedSurface` (`/declare/host`) and in
|
|
8
9
|
* handler registrations, never here. Zero React, zero `@ai-matrx/agents`.
|
|
9
10
|
*/
|
|
10
|
-
type Json$
|
|
11
|
-
[key: string]: Json$
|
|
11
|
+
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
12
|
+
[key: string]: Json$1;
|
|
12
13
|
};
|
|
13
14
|
/** Unchanged from `ui_surface_value_type_chk`. */
|
|
14
15
|
type ValueType = "string" | "number" | "boolean" | "object" | "array" | "document";
|
|
@@ -138,6 +139,8 @@ interface SurfaceDeclaration {
|
|
|
138
139
|
configNamespaces?: readonly ConfigNamespaceDeclaration[];
|
|
139
140
|
evidenceSources?: readonly EvidenceSourceDeclaration[];
|
|
140
141
|
skipBaselineValues?: boolean;
|
|
142
|
+
/** Opt out of the host's baseline item types (`baselineItemTypes`, e.g. `TABLE_ROW_ITEM_TYPE`). */
|
|
143
|
+
skipBaselineItemTypes?: boolean;
|
|
141
144
|
}
|
|
142
145
|
type ValueProvenance = {
|
|
143
146
|
kind: "own";
|
|
@@ -166,7 +169,7 @@ type QualifiedValueKey = string;
|
|
|
166
169
|
/** Live slot payloads (page-capture's shapes, kept). */
|
|
167
170
|
interface LiveValues {
|
|
168
171
|
selection?: {
|
|
169
|
-
choices: Record<string, Json$
|
|
172
|
+
choices: Record<string, Json$1>;
|
|
170
173
|
text: string | null;
|
|
171
174
|
};
|
|
172
175
|
"on-demand"?: readonly OnDemandSection[];
|
|
@@ -178,8 +181,8 @@ interface OnDemandSection {
|
|
|
178
181
|
title: string;
|
|
179
182
|
description?: string;
|
|
180
183
|
role: "data" | "request";
|
|
181
|
-
brief?: Json$
|
|
182
|
-
load(signal: AbortSignal): Promise<Json$
|
|
184
|
+
brief?: Json$1;
|
|
185
|
+
load(signal: AbortSignal): Promise<Json$1>;
|
|
183
186
|
}
|
|
184
187
|
interface RecentRequest {
|
|
185
188
|
method: string;
|
|
@@ -189,7 +192,7 @@ interface RecentRequest {
|
|
|
189
192
|
durationMs?: number;
|
|
190
193
|
requestId?: string;
|
|
191
194
|
client?: string;
|
|
192
|
-
requestBody?: Json$
|
|
195
|
+
requestBody?: Json$1;
|
|
193
196
|
requestBodyNote?: string;
|
|
194
197
|
errorSentence?: string;
|
|
195
198
|
timestamp: number;
|
|
@@ -258,14 +261,6 @@ interface ClickTarget {
|
|
|
258
261
|
host?: unknown;
|
|
259
262
|
}
|
|
260
263
|
|
|
261
|
-
/**
|
|
262
|
-
* Framework-neutral transfer contracts (Alchemy Operate, CONTRACT §2.3). All data crossing this boundary is JSON.
|
|
263
|
-
* Moved from `@ai-matrx/kit/content-transfer` in ALC-16; the format-adapter contract lives in `./contract`.
|
|
264
|
-
*/
|
|
265
|
-
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
266
|
-
[key: string]: Json$1;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
264
|
/**
|
|
270
265
|
* Operate — the format and delivery contract (Matrx Alchemy CONTRACT §2.3, ALC-16).
|
|
271
266
|
*
|
|
@@ -295,7 +290,7 @@ type Receipt = {
|
|
|
295
290
|
sentence: string;
|
|
296
291
|
warning?: string;
|
|
297
292
|
fix?: string; /** What the handler produced (e.g. the created record). */
|
|
298
|
-
result?: Json$
|
|
293
|
+
result?: Json$2;
|
|
299
294
|
} | {
|
|
300
295
|
status: "queued";
|
|
301
296
|
to: WriteTargetRef;
|
|
@@ -528,7 +523,7 @@ type ActionResult<T = unknown> = {
|
|
|
528
523
|
/** `POST /actions/run` (aidream) — the request. */
|
|
529
524
|
interface ServerActionRunRequest {
|
|
530
525
|
name: string;
|
|
531
|
-
input: Json$
|
|
526
|
+
input: Json$1;
|
|
532
527
|
by: ActionCaller;
|
|
533
528
|
surface_name?: string;
|
|
534
529
|
policy?: ActionPolicy;
|
|
@@ -537,8 +532,8 @@ interface ServerActionRunRequest {
|
|
|
537
532
|
interface ServerActionRunResponse {
|
|
538
533
|
status: "applied" | "proposed" | "refused";
|
|
539
534
|
message: string;
|
|
540
|
-
receipts: Json$
|
|
541
|
-
proposal?: Json$
|
|
535
|
+
receipts: Json$1[];
|
|
536
|
+
proposal?: Json$1;
|
|
542
537
|
}
|
|
543
538
|
/** A mandate run request: by alias (an Action's `target`) or by key. */
|
|
544
539
|
type MandateRunRequest = ({
|
|
@@ -548,7 +543,7 @@ type MandateRunRequest = ({
|
|
|
548
543
|
key: string;
|
|
549
544
|
alias?: never;
|
|
550
545
|
}) & {
|
|
551
|
-
variables: Record<string, Json$
|
|
546
|
+
variables: Record<string, Json$1>;
|
|
552
547
|
userInput?: string;
|
|
553
548
|
by: ActionCaller;
|
|
554
549
|
policy: ActionPolicy;
|
|
@@ -1099,11 +1094,11 @@ interface ReadOmission {
|
|
|
1099
1094
|
*/
|
|
1100
1095
|
interface ProjectedReads {
|
|
1101
1096
|
values(signal: AbortSignal): Promise<{
|
|
1102
|
-
values: Record<string, Json$
|
|
1097
|
+
values: Record<string, Json$1>;
|
|
1103
1098
|
omissions: readonly ReadOmission[];
|
|
1104
1099
|
}>;
|
|
1105
1100
|
item(signal: AbortSignal): Promise<{
|
|
1106
|
-
values: Record<string, Json$
|
|
1101
|
+
values: Record<string, Json$1>;
|
|
1107
1102
|
omissions: readonly ReadOmission[];
|
|
1108
1103
|
} | null>;
|
|
1109
1104
|
live(signal: AbortSignal): Promise<LiveValues>;
|
|
@@ -1235,7 +1230,7 @@ interface ProjectionSource {
|
|
|
1235
1230
|
}
|
|
1236
1231
|
/** Keep declared, ordinary, exportable values; record every removal. */
|
|
1237
1232
|
declare function projectValues(raw: Record<string, unknown>, declared: readonly Pick<DeclaredValue, "name" | "sensitivity">[], pathPrefix?: string): {
|
|
1238
|
-
values: Record<string, Json$
|
|
1233
|
+
values: Record<string, Json$1>;
|
|
1239
1234
|
omissions: ReadOmission[];
|
|
1240
1235
|
};
|
|
1241
1236
|
declare function createProjectedReads(source: ProjectionSource): ProjectedReads;
|
|
@@ -1332,7 +1327,7 @@ interface ClientToolRow {
|
|
|
1332
1327
|
name: string;
|
|
1333
1328
|
label: string;
|
|
1334
1329
|
description: string;
|
|
1335
|
-
input_schema: Json$
|
|
1330
|
+
input_schema: Json$1;
|
|
1336
1331
|
/** Live values: "ui" (applied directly) | "draft" (proposed for review). */
|
|
1337
1332
|
mode: "ui" | "draft";
|
|
1338
1333
|
declared_by?: ActionDeclaredBy;
|