@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.
Files changed (105) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/actions.cjs.map +1 -1
  3. package/dist/actions.d.cts +19 -24
  4. package/dist/actions.d.ts +19 -24
  5. package/dist/actions.js.map +1 -1
  6. package/dist/checks.d.cts +2 -0
  7. package/dist/checks.d.ts +2 -0
  8. package/dist/core.cjs +4 -4
  9. package/dist/core.cjs.map +1 -1
  10. package/dist/core.d.cts +8 -58
  11. package/dist/core.d.ts +8 -58
  12. package/dist/core.js +4 -4
  13. package/dist/core.js.map +1 -1
  14. package/dist/declare/schema.json +3 -0
  15. package/dist/declare.cjs +1 -1
  16. package/dist/declare.cjs.map +1 -1
  17. package/dist/declare.d.cts +26 -1
  18. package/dist/declare.d.ts +26 -1
  19. package/dist/declare.js +1 -1
  20. package/dist/declare.js.map +1 -1
  21. package/dist/index.cjs +4 -4
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +8 -58
  24. package/dist/index.d.ts +8 -58
  25. package/dist/index.js +4 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/menu.d.cts +17 -22
  28. package/dist/menu.d.ts +17 -22
  29. package/dist/operate-document.cjs +2 -2
  30. package/dist/operate-document.cjs.map +1 -1
  31. package/dist/operate-document.d.cts +4 -42
  32. package/dist/operate-document.d.ts +4 -42
  33. package/dist/operate-document.js +2 -2
  34. package/dist/operate-document.js.map +1 -1
  35. package/dist/operate-rich-html.cjs +1 -1
  36. package/dist/operate-rich-html.cjs.map +1 -1
  37. package/dist/operate-rich-html.d.cts +3 -42
  38. package/dist/operate-rich-html.d.ts +3 -42
  39. package/dist/operate-rich-html.js +1 -1
  40. package/dist/operate-rich-html.js.map +1 -1
  41. package/dist/operate-server.cjs +1 -1
  42. package/dist/operate-server.cjs.map +1 -1
  43. package/dist/operate-server.d.cts +8 -46
  44. package/dist/operate-server.d.ts +8 -46
  45. package/dist/operate-server.js +1 -1
  46. package/dist/operate-server.js.map +1 -1
  47. package/dist/operate-xlsx.cjs +2 -2
  48. package/dist/operate-xlsx.cjs.map +1 -1
  49. package/dist/operate-xlsx.d.cts +4 -42
  50. package/dist/operate-xlsx.d.ts +4 -42
  51. package/dist/operate-xlsx.js +2 -2
  52. package/dist/operate-xlsx.js.map +1 -1
  53. package/dist/operate.cjs +4 -4
  54. package/dist/operate.cjs.map +1 -1
  55. package/dist/operate.d.cts +8 -58
  56. package/dist/operate.d.ts +8 -58
  57. package/dist/operate.js +4 -4
  58. package/dist/operate.js.map +1 -1
  59. package/dist/ports.d.cts +11 -15
  60. package/dist/ports.d.ts +11 -15
  61. package/dist/react-bar.cjs.map +1 -1
  62. package/dist/react-bar.d.cts +3 -1
  63. package/dist/react-bar.d.ts +3 -1
  64. package/dist/react-bar.js.map +1 -1
  65. package/dist/react-host.d.cts +17 -22
  66. package/dist/react-host.d.ts +17 -22
  67. package/dist/react-menu.cjs.map +1 -1
  68. package/dist/react-menu.d.cts +3 -1
  69. package/dist/react-menu.d.ts +3 -1
  70. package/dist/react-menu.js.map +1 -1
  71. package/dist/react-overflow.cjs.map +1 -1
  72. package/dist/react-overflow.d.cts +17 -22
  73. package/dist/react-overflow.d.ts +17 -22
  74. package/dist/react-overflow.js.map +1 -1
  75. package/dist/react-palette.cjs.map +1 -1
  76. package/dist/react-palette.d.cts +3 -1
  77. package/dist/react-palette.d.ts +3 -1
  78. package/dist/react-palette.js.map +1 -1
  79. package/dist/react-selection.cjs.map +1 -1
  80. package/dist/react-selection.d.cts +3 -1
  81. package/dist/react-selection.d.ts +3 -1
  82. package/dist/react-selection.js.map +1 -1
  83. package/dist/react-sheet.cjs.map +1 -1
  84. package/dist/react-sheet.d.cts +3 -1
  85. package/dist/react-sheet.d.ts +3 -1
  86. package/dist/react-sheet.js.map +1 -1
  87. package/dist/react-workspace.cjs +7 -0
  88. package/dist/react-workspace.cjs.map +1 -0
  89. package/dist/react-workspace.d.cts +441 -0
  90. package/dist/react-workspace.d.ts +441 -0
  91. package/dist/react-workspace.js +7 -0
  92. package/dist/react-workspace.js.map +1 -0
  93. package/dist/react.cjs +1 -1
  94. package/dist/react.cjs.map +1 -1
  95. package/dist/react.d.cts +2 -2
  96. package/dist/react.d.ts +2 -2
  97. package/dist/react.js +1 -1
  98. package/dist/react.js.map +1 -1
  99. package/dist/surface.cjs +1 -1
  100. package/dist/surface.cjs.map +1 -1
  101. package/dist/surface.d.cts +222 -16
  102. package/dist/surface.d.ts +222 -16
  103. package/dist/surface.js +1 -1
  104. package/dist/surface.js.map +1 -1
  105. package/package.json +14 -4
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { TransferOutcome } from '@ai-matrx/kit/content-transfer';
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$2 = null | boolean | number | string | Json$2[] | {
12
- [key: string]: Json$2;
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$2>;
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$2;
183
- load(signal: AbortSignal): Promise<Json$2>;
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$2;
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$1;
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$2;
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$2[];
469
- proposal?: Json$2;
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$2>;
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$2>;
1006
+ values: Record<string, Json$1>;
1012
1007
  omissions: readonly ReadOmission[];
1013
1008
  }>;
1014
1009
  item(signal: AbortSignal): Promise<{
1015
- values: Record<string, Json$2>;
1010
+ values: Record<string, Json$1>;
1016
1011
  omissions: readonly ReadOmission[];
1017
1012
  } | null>;
1018
1013
  live(signal: AbortSignal): Promise<LiveValues>;