@ai-matrx/alchemy 0.12.2 → 0.12.3
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 +6 -0
- package/dist/actions.d.cts +26 -16
- package/dist/actions.d.ts +26 -16
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +4 -2
- package/dist/core.d.ts +4 -2
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/menu.d.cts +24 -14
- package/dist/menu.d.ts +24 -14
- package/dist/operate.cjs +1 -1
- package/dist/operate.cjs.map +1 -1
- package/dist/operate.d.cts +4 -2
- package/dist/operate.d.ts +4 -2
- package/dist/operate.js +1 -1
- package/dist/operate.js.map +1 -1
- package/dist/ports.d.cts +18 -8
- package/dist/ports.d.ts +18 -8
- package/dist/react-host.d.cts +24 -14
- package/dist/react-host.d.ts +24 -14
- package/dist/react-overflow.d.cts +24 -14
- package/dist/react-overflow.d.ts +24 -14
- package/dist/surface.d.cts +18 -8
- package/dist/surface.d.ts +18 -8
- package/package.json +3 -3
package/dist/surface.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* no React. Runtime behaviour lives in `MountedSurface` (`/declare/host`) and in
|
|
6
6
|
* handler registrations, never here. Zero React, zero `@ai-matrx/agents`.
|
|
7
7
|
*/
|
|
8
|
-
type Json$
|
|
9
|
-
[key: string]: Json$
|
|
8
|
+
type Json$2 = null | boolean | number | string | Json$2[] | {
|
|
9
|
+
[key: string]: Json$2;
|
|
10
10
|
};
|
|
11
11
|
/** Unchanged from `ui_surface_value_type_chk`. */
|
|
12
12
|
type ValueType = "string" | "number" | "boolean" | "object" | "array" | "document";
|
|
@@ -254,7 +254,7 @@ type ActionResult<T = unknown> = {
|
|
|
254
254
|
/** `POST /actions/run` (aidream) — the request. */
|
|
255
255
|
interface ServerActionRunRequest {
|
|
256
256
|
name: string;
|
|
257
|
-
input: Json$
|
|
257
|
+
input: Json$2;
|
|
258
258
|
by: ActionCaller;
|
|
259
259
|
surface_name?: string;
|
|
260
260
|
policy?: ActionPolicy;
|
|
@@ -263,8 +263,8 @@ interface ServerActionRunRequest {
|
|
|
263
263
|
interface ServerActionRunResponse {
|
|
264
264
|
status: "applied" | "proposed" | "refused";
|
|
265
265
|
message: string;
|
|
266
|
-
receipts: Json$
|
|
267
|
-
proposal?: Json$
|
|
266
|
+
receipts: Json$2[];
|
|
267
|
+
proposal?: Json$2;
|
|
268
268
|
}
|
|
269
269
|
/** A mandate run request: by alias (an Action's `target`) or by key. */
|
|
270
270
|
type MandateRunRequest = ({
|
|
@@ -274,7 +274,7 @@ type MandateRunRequest = ({
|
|
|
274
274
|
key: string;
|
|
275
275
|
alias?: never;
|
|
276
276
|
}) & {
|
|
277
|
-
variables: Record<string, Json$
|
|
277
|
+
variables: Record<string, Json$2>;
|
|
278
278
|
userInput?: string;
|
|
279
279
|
by: ActionCaller;
|
|
280
280
|
policy: ActionPolicy;
|
|
@@ -402,6 +402,14 @@ interface ClickTarget {
|
|
|
402
402
|
host?: unknown;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Framework-neutral transfer contracts (Alchemy Operate, CONTRACT §2.3). All data crossing this boundary is JSON.
|
|
407
|
+
* Moved from `@ai-matrx/kit/content-transfer` in ALC-16; the format-adapter contract lives in `./contract`.
|
|
408
|
+
*/
|
|
409
|
+
type Json$1 = null | boolean | number | string | Json$1[] | {
|
|
410
|
+
[key: string]: Json$1;
|
|
411
|
+
};
|
|
412
|
+
|
|
405
413
|
/**
|
|
406
414
|
* Operate — the format and delivery contract (Matrx Alchemy CONTRACT §2.3, ALC-16).
|
|
407
415
|
*
|
|
@@ -430,7 +438,8 @@ type Receipt = {
|
|
|
430
438
|
to: WriteTargetRef;
|
|
431
439
|
sentence: string;
|
|
432
440
|
warning?: string;
|
|
433
|
-
fix?: string;
|
|
441
|
+
fix?: string; /** What the handler produced (e.g. the created record). */
|
|
442
|
+
result?: Json$1;
|
|
434
443
|
} | {
|
|
435
444
|
status: "queued";
|
|
436
445
|
to: WriteTargetRef;
|
|
@@ -521,7 +530,8 @@ type CannotApply = "stale" | "missing-record" | "broken-span";
|
|
|
521
530
|
*/
|
|
522
531
|
type WriteHandlerResult = void | {
|
|
523
532
|
status: "applied";
|
|
524
|
-
sentence?: string;
|
|
533
|
+
sentence?: string; /** What the write produced (e.g. the created record); passed to `receipt.result` unchanged. */
|
|
534
|
+
result?: Json;
|
|
525
535
|
} | {
|
|
526
536
|
status: "cannot-apply";
|
|
527
537
|
cannotApply: CannotApply;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/alchemy",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Matrx Alchemy: the complete Matrx copy, prepare-for-AI, and export experience, with framework-neutral core, React menu, glyph and styles; Declare (what a screen holds: types, registry, validation, JSON schema) and the one surface sync; Actions (the one action registry: eligibility, duplicate refusal, projected reads) and the one menu engine (model + bar, overflow, context, selection, sheet and palette layouts as per-layout React subpaths); Surface (the one SurfacePort runtime: the database surface chain with organization extensions, values, and Action runs).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -307,9 +307,9 @@
|
|
|
307
307
|
"*.css"
|
|
308
308
|
],
|
|
309
309
|
"dependencies": {
|
|
310
|
-
"@ai-matrx/design-system": "latest",
|
|
311
310
|
"@ai-matrx/print": "latest",
|
|
312
|
-
"@ai-matrx/kit": "latest"
|
|
311
|
+
"@ai-matrx/kit": "latest",
|
|
312
|
+
"@ai-matrx/design-system": "latest"
|
|
313
313
|
},
|
|
314
314
|
"scripts": {
|
|
315
315
|
"build": "pnpm clean && tsup && node ./scripts/copy-assets.mjs && node ./scripts/assert-distribution-artifacts.mjs && node ./scripts/check-subpath-sizes.mjs",
|