@ai-matrx/alchemy 0.14.0 → 0.16.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 +49 -0
- package/dist/core.cjs +7 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +43 -2
- package/dist/core.d.ts +43 -2
- package/dist/core.js +8 -3
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -2
- package/dist/index.d.ts +43 -2
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/operate-capture.cjs +2 -0
- package/dist/operate-capture.cjs.map +1 -0
- package/dist/operate-capture.d.cts +76 -0
- package/dist/operate-capture.d.ts +76 -0
- package/dist/operate-capture.js +2 -0
- package/dist/operate-capture.js.map +1 -0
- package/dist/operate-document.cjs +1 -1
- package/dist/operate-document.cjs.map +1 -1
- package/dist/operate-document.js +1 -1
- package/dist/operate-document.js.map +1 -1
- package/dist/operate-read.cjs +6 -0
- package/dist/operate-read.cjs.map +1 -0
- package/dist/operate-read.d.cts +174 -0
- package/dist/operate-read.d.ts +174 -0
- package/dist/operate-read.js +6 -0
- package/dist/operate-read.js.map +1 -0
- package/dist/operate-rich-html.cjs +1 -1
- package/dist/operate-rich-html.cjs.map +1 -1
- 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.js +1 -1
- package/dist/operate-server.js.map +1 -1
- package/dist/operate-xlsx.cjs +3 -2
- package/dist/operate-xlsx.cjs.map +1 -1
- package/dist/operate-xlsx.d.cts +1227 -6
- package/dist/operate-xlsx.d.ts +1227 -6
- package/dist/operate-xlsx.js +3 -2
- package/dist/operate-xlsx.js.map +1 -1
- package/dist/operate.cjs +7 -2
- package/dist/operate.cjs.map +1 -1
- package/dist/operate.d.cts +43 -2
- package/dist/operate.d.ts +43 -2
- package/dist/operate.js +8 -3
- package/dist/operate.js.map +1 -1
- 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/package.json +27 -3
|
@@ -160,10 +160,18 @@ type ContentTransferEmailPort = {
|
|
|
160
160
|
signal: AbortSignal;
|
|
161
161
|
}): Promise<TransferOutcome>;
|
|
162
162
|
};
|
|
163
|
+
/** The host's HTML preview (a window or overlay that renders the document); Alchemy only decides when to offer it. */
|
|
164
|
+
type ContentTransferHtmlPreviewPort = {
|
|
165
|
+
open(request: {
|
|
166
|
+
content: string;
|
|
167
|
+
title: string;
|
|
168
|
+
}): void | Promise<void>;
|
|
169
|
+
};
|
|
163
170
|
/** A sealed, projection-safe representation of a tabular draft's declared schema and values. */
|
|
164
171
|
declare const tableSchemaFormat: FormatAdapter;
|
|
165
172
|
/** Flat row JSON keyed by user-facing display labels, never raw table records. */
|
|
166
173
|
declare const tableDataFormat: FormatAdapter;
|
|
174
|
+
type TransferHtmlPreviewAction = PageAction;
|
|
167
175
|
type TransferEmailAction = PageAction & {
|
|
168
176
|
prepared: true;
|
|
169
177
|
group: "email";
|
|
@@ -172,6 +180,11 @@ type TransferEmailAction = PageAction & {
|
|
|
172
180
|
declare function createTransferEmailActions(email: ContentTransferEmailPort, options?: {
|
|
173
181
|
jsonFormat?: FormatAdapter;
|
|
174
182
|
}): TransferEmailAction[];
|
|
183
|
+
/**
|
|
184
|
+
* "HTML preview": opens the host's preview on the PREPARED text (what the person would copy, edits
|
|
185
|
+
* and thinking-strip included). Offered for Markdown and text drafts only — a table has no document.
|
|
186
|
+
*/
|
|
187
|
+
declare function createTransferHtmlPreviewAction(port: ContentTransferHtmlPreviewPort): TransferHtmlPreviewAction;
|
|
175
188
|
|
|
176
189
|
interface AlchemyCopyVariant {
|
|
177
190
|
id: string;
|
|
@@ -230,6 +243,18 @@ interface MatrxCopyMenuProps {
|
|
|
230
243
|
* transport and offers no Copy text tile (readable text is the host's one projection).
|
|
231
244
|
*/
|
|
232
245
|
richCopy?: (markdown: string, flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
246
|
+
/**
|
|
247
|
+
* Model output: every copy of `human` leaves out its reasoning blocks (`<thinking>`, `<think>`,
|
|
248
|
+
* `<reasoning>`), and when it held any the panel offers "Copy including thinking" with the full text.
|
|
249
|
+
* A function `human` is never read to decide this (opening the menu prepares nothing), so the
|
|
250
|
+
* variant is offered for a string `human` only.
|
|
251
|
+
*/
|
|
252
|
+
stripThinking?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Offer "HTML preview" for `human` (markdown) when the host bound `capabilities.htmlPreview`.
|
|
255
|
+
* Default true for `contentFlavor="markdown"`; pass false where the host's editable preview is the one action.
|
|
256
|
+
*/
|
|
257
|
+
htmlPreview?: boolean;
|
|
233
258
|
json?: Resolvable<unknown>;
|
|
234
259
|
agent?: Resolvable<AgentPayloadInput | string>;
|
|
235
260
|
aiVariants?: AlchemyCopyVariant[];
|
|
@@ -299,6 +324,8 @@ type ContentTransferCapabilities = TransferCapabilities & {
|
|
|
299
324
|
transport?: Transport;
|
|
300
325
|
reference?: ContentTransferReferencePort;
|
|
301
326
|
email?: ContentTransferEmailPort;
|
|
327
|
+
/** The host's HTML preview. Bound: a menu mounted with `htmlPreview` offers the "HTML preview" action. */
|
|
328
|
+
htmlPreview?: ContentTransferHtmlPreviewPort;
|
|
302
329
|
actions?: PageAction[];
|
|
303
330
|
preferences?: TransferPreferenceOverrides;
|
|
304
331
|
onOutcome?: (outcome: TransferOutcome) => void;
|
|
@@ -376,6 +403,8 @@ interface ContentTransferMenuProps {
|
|
|
376
403
|
/** Named alternate sources open this same preparation workspace. */
|
|
377
404
|
variants?: readonly TransferMenuVariant[];
|
|
378
405
|
actions?: (PageAction & TransferMenuPresentation)[];
|
|
406
|
+
/** Offer "HTML preview" (Markdown and text only) when the host bound `capabilities.htmlPreview`. */
|
|
407
|
+
htmlPreview?: boolean;
|
|
379
408
|
capabilities?: ContentTransferCapabilities;
|
|
380
409
|
disabled?: boolean;
|
|
381
410
|
/** Portal is the default Alchemy mark; copy-transform remains opt-in. */
|
|
@@ -438,4 +467,4 @@ type ShapedSource = Source & {
|
|
|
438
467
|
shape?: SourceShape;
|
|
439
468
|
};
|
|
440
469
|
|
|
441
|
-
export { type AlchemyCopyVariant, type AlchemyCustomSource, type AlchemyDetail, type AlchemyExportItem, AlchemyGlyph, type AlchemyGroomerConfig, type AlchemyGroomerPreset, type AlchemyGroomerSection, type AlchemyOptionValues, type AlchemySourceOption, AlchemyTableCopyControls, type ContentTransferCapabilities, ContentTransferCapabilitiesProvider, type ContentTransferController, type ContentTransferEmailPort, ContentTransferMenu, type ContentTransferMenuProps, type ContentTransferReferenceAction, type ContentTransferReferencePort, ContentTransferSurfaceProvider, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, PALETTE_HEADINGS, type PaletteHeading, type RichCopyFlavor, type RichCopyRunner, type SerializableFormat, type ShapedSource, type SourceShape, type TransferCapabilities, type TransferMenuPresentation, type TransferMenuVariant, type WorkspaceLevers, type WorkspaceWindowHandle, type WorkspaceWindowPort, applyGroomerPreset, buildGroomerPresetPayload, createTransferEmailActions, defaultGroomerSelections, groomerPresetVariants, tableDataFormat, tableSchemaFormat, useContentTransferCapabilities, useContentTransferSurface };
|
|
470
|
+
export { type AlchemyCopyVariant, type AlchemyCustomSource, type AlchemyDetail, type AlchemyExportItem, AlchemyGlyph, type AlchemyGroomerConfig, type AlchemyGroomerPreset, type AlchemyGroomerSection, type AlchemyOptionValues, type AlchemySourceOption, AlchemyTableCopyControls, type ContentTransferCapabilities, ContentTransferCapabilitiesProvider, type ContentTransferController, type ContentTransferEmailPort, type ContentTransferHtmlPreviewPort, ContentTransferMenu, type ContentTransferMenuProps, type ContentTransferReferenceAction, type ContentTransferReferencePort, ContentTransferSurfaceProvider, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, PALETTE_HEADINGS, type PaletteHeading, type RichCopyFlavor, type RichCopyRunner, type SerializableFormat, type ShapedSource, type SourceShape, type TransferCapabilities, type TransferMenuPresentation, type TransferMenuVariant, type WorkspaceLevers, type WorkspaceWindowHandle, type WorkspaceWindowPort, applyGroomerPreset, buildGroomerPresetPayload, createTransferEmailActions, createTransferHtmlPreviewAction, defaultGroomerSelections, groomerPresetVariants, tableDataFormat, tableSchemaFormat, useContentTransferCapabilities, useContentTransferSurface };
|
|
@@ -160,10 +160,18 @@ type ContentTransferEmailPort = {
|
|
|
160
160
|
signal: AbortSignal;
|
|
161
161
|
}): Promise<TransferOutcome>;
|
|
162
162
|
};
|
|
163
|
+
/** The host's HTML preview (a window or overlay that renders the document); Alchemy only decides when to offer it. */
|
|
164
|
+
type ContentTransferHtmlPreviewPort = {
|
|
165
|
+
open(request: {
|
|
166
|
+
content: string;
|
|
167
|
+
title: string;
|
|
168
|
+
}): void | Promise<void>;
|
|
169
|
+
};
|
|
163
170
|
/** A sealed, projection-safe representation of a tabular draft's declared schema and values. */
|
|
164
171
|
declare const tableSchemaFormat: FormatAdapter;
|
|
165
172
|
/** Flat row JSON keyed by user-facing display labels, never raw table records. */
|
|
166
173
|
declare const tableDataFormat: FormatAdapter;
|
|
174
|
+
type TransferHtmlPreviewAction = PageAction;
|
|
167
175
|
type TransferEmailAction = PageAction & {
|
|
168
176
|
prepared: true;
|
|
169
177
|
group: "email";
|
|
@@ -172,6 +180,11 @@ type TransferEmailAction = PageAction & {
|
|
|
172
180
|
declare function createTransferEmailActions(email: ContentTransferEmailPort, options?: {
|
|
173
181
|
jsonFormat?: FormatAdapter;
|
|
174
182
|
}): TransferEmailAction[];
|
|
183
|
+
/**
|
|
184
|
+
* "HTML preview": opens the host's preview on the PREPARED text (what the person would copy, edits
|
|
185
|
+
* and thinking-strip included). Offered for Markdown and text drafts only — a table has no document.
|
|
186
|
+
*/
|
|
187
|
+
declare function createTransferHtmlPreviewAction(port: ContentTransferHtmlPreviewPort): TransferHtmlPreviewAction;
|
|
175
188
|
|
|
176
189
|
interface AlchemyCopyVariant {
|
|
177
190
|
id: string;
|
|
@@ -230,6 +243,18 @@ interface MatrxCopyMenuProps {
|
|
|
230
243
|
* transport and offers no Copy text tile (readable text is the host's one projection).
|
|
231
244
|
*/
|
|
232
245
|
richCopy?: (markdown: string, flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
246
|
+
/**
|
|
247
|
+
* Model output: every copy of `human` leaves out its reasoning blocks (`<thinking>`, `<think>`,
|
|
248
|
+
* `<reasoning>`), and when it held any the panel offers "Copy including thinking" with the full text.
|
|
249
|
+
* A function `human` is never read to decide this (opening the menu prepares nothing), so the
|
|
250
|
+
* variant is offered for a string `human` only.
|
|
251
|
+
*/
|
|
252
|
+
stripThinking?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Offer "HTML preview" for `human` (markdown) when the host bound `capabilities.htmlPreview`.
|
|
255
|
+
* Default true for `contentFlavor="markdown"`; pass false where the host's editable preview is the one action.
|
|
256
|
+
*/
|
|
257
|
+
htmlPreview?: boolean;
|
|
233
258
|
json?: Resolvable<unknown>;
|
|
234
259
|
agent?: Resolvable<AgentPayloadInput | string>;
|
|
235
260
|
aiVariants?: AlchemyCopyVariant[];
|
|
@@ -299,6 +324,8 @@ type ContentTransferCapabilities = TransferCapabilities & {
|
|
|
299
324
|
transport?: Transport;
|
|
300
325
|
reference?: ContentTransferReferencePort;
|
|
301
326
|
email?: ContentTransferEmailPort;
|
|
327
|
+
/** The host's HTML preview. Bound: a menu mounted with `htmlPreview` offers the "HTML preview" action. */
|
|
328
|
+
htmlPreview?: ContentTransferHtmlPreviewPort;
|
|
302
329
|
actions?: PageAction[];
|
|
303
330
|
preferences?: TransferPreferenceOverrides;
|
|
304
331
|
onOutcome?: (outcome: TransferOutcome) => void;
|
|
@@ -376,6 +403,8 @@ interface ContentTransferMenuProps {
|
|
|
376
403
|
/** Named alternate sources open this same preparation workspace. */
|
|
377
404
|
variants?: readonly TransferMenuVariant[];
|
|
378
405
|
actions?: (PageAction & TransferMenuPresentation)[];
|
|
406
|
+
/** Offer "HTML preview" (Markdown and text only) when the host bound `capabilities.htmlPreview`. */
|
|
407
|
+
htmlPreview?: boolean;
|
|
379
408
|
capabilities?: ContentTransferCapabilities;
|
|
380
409
|
disabled?: boolean;
|
|
381
410
|
/** Portal is the default Alchemy mark; copy-transform remains opt-in. */
|
|
@@ -438,4 +467,4 @@ type ShapedSource = Source & {
|
|
|
438
467
|
shape?: SourceShape;
|
|
439
468
|
};
|
|
440
469
|
|
|
441
|
-
export { type AlchemyCopyVariant, type AlchemyCustomSource, type AlchemyDetail, type AlchemyExportItem, AlchemyGlyph, type AlchemyGroomerConfig, type AlchemyGroomerPreset, type AlchemyGroomerSection, type AlchemyOptionValues, type AlchemySourceOption, AlchemyTableCopyControls, type ContentTransferCapabilities, ContentTransferCapabilitiesProvider, type ContentTransferController, type ContentTransferEmailPort, ContentTransferMenu, type ContentTransferMenuProps, type ContentTransferReferenceAction, type ContentTransferReferencePort, ContentTransferSurfaceProvider, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, PALETTE_HEADINGS, type PaletteHeading, type RichCopyFlavor, type RichCopyRunner, type SerializableFormat, type ShapedSource, type SourceShape, type TransferCapabilities, type TransferMenuPresentation, type TransferMenuVariant, type WorkspaceLevers, type WorkspaceWindowHandle, type WorkspaceWindowPort, applyGroomerPreset, buildGroomerPresetPayload, createTransferEmailActions, defaultGroomerSelections, groomerPresetVariants, tableDataFormat, tableSchemaFormat, useContentTransferCapabilities, useContentTransferSurface };
|
|
470
|
+
export { type AlchemyCopyVariant, type AlchemyCustomSource, type AlchemyDetail, type AlchemyExportItem, AlchemyGlyph, type AlchemyGroomerConfig, type AlchemyGroomerPreset, type AlchemyGroomerSection, type AlchemyOptionValues, type AlchemySourceOption, AlchemyTableCopyControls, type ContentTransferCapabilities, ContentTransferCapabilitiesProvider, type ContentTransferController, type ContentTransferEmailPort, type ContentTransferHtmlPreviewPort, ContentTransferMenu, type ContentTransferMenuProps, type ContentTransferReferenceAction, type ContentTransferReferencePort, ContentTransferSurfaceProvider, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, PALETTE_HEADINGS, type PaletteHeading, type RichCopyFlavor, type RichCopyRunner, type SerializableFormat, type ShapedSource, type SourceShape, type TransferCapabilities, type TransferMenuPresentation, type TransferMenuVariant, type WorkspaceLevers, type WorkspaceWindowHandle, type WorkspaceWindowPort, applyGroomerPreset, buildGroomerPresetPayload, createTransferEmailActions, createTransferHtmlPreviewAction, defaultGroomerSelections, groomerPresetVariants, tableDataFormat, tableSchemaFormat, useContentTransferCapabilities, useContentTransferSurface };
|