@ai-matrx/alchemy 0.23.42 → 0.23.43
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.
|
@@ -234,22 +234,22 @@ interface MatrxCopyMenuProps {
|
|
|
234
234
|
human?: Resolvable<string>;
|
|
235
235
|
/**
|
|
236
236
|
* What `human` is. "markdown" makes it rich text: the main Copy click writes text/plain = the
|
|
237
|
-
* markdown plus text/html = formatted, and the panel leads with "Copy
|
|
237
|
+
* markdown plus text/html = formatted, and the panel leads with "Copy as Markdown", "Copy content" and "Copy formatted".
|
|
238
238
|
* Default "plain": a plain string, the existing Text / Markdown tiles.
|
|
239
239
|
*/
|
|
240
240
|
contentFlavor?: "plain" | "markdown";
|
|
241
241
|
/**
|
|
242
242
|
* The host's own rich copy, so one implementation serves every surface (matrx-frontend injects
|
|
243
243
|
* `copyRichContent`). Absent: the package writes the main click and Copy markdown through the session
|
|
244
|
-
* transport and offers no Copy
|
|
244
|
+
* transport and offers no Copy content tile (readable text is the host's one projection).
|
|
245
245
|
*/
|
|
246
246
|
richCopy?: (markdown: string, flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
247
247
|
/**
|
|
248
|
-
* Which
|
|
248
|
+
* Which of the three rich-copy tiles the panel leads with when `richCopy` is on. A host that
|
|
249
249
|
* already shows those two choices itself (the split Copy's own menu rows) passes `[]` so the panel
|
|
250
250
|
* carries only what is unique to it (Formatted, download, AI). Default: every flavor the host has.
|
|
251
251
|
*/
|
|
252
|
-
richCopyFlavors?: readonly ("markdown" | "text")[];
|
|
252
|
+
richCopyFlavors?: readonly ("markdown" | "text" | "formatted")[];
|
|
253
253
|
/**
|
|
254
254
|
* Model output: every copy of `human` leaves out its reasoning blocks (`<thinking>`, `<think>`,
|
|
255
255
|
* `<reasoning>`), and when it held any the panel offers "Copy including thinking" with the full text.
|
|
@@ -425,8 +425,8 @@ interface ContentTransferMenuProps {
|
|
|
425
425
|
envelope?: () => EnvelopeMeta | undefined;
|
|
426
426
|
/**
|
|
427
427
|
* Rich-text hosts: one implementation of the three copies. The main Copy click runs "default"
|
|
428
|
-
* (text/plain = markdown AND text/html = formatted); the panel leads with "Copy
|
|
429
|
-
* "Copy
|
|
428
|
+
* (text/plain = markdown AND text/html = formatted); the panel leads with "Copy as Markdown",
|
|
429
|
+
* "Copy content" and "Copy formatted". When set, the plain / Markdown / Formatted tiles give way.
|
|
430
430
|
*/
|
|
431
431
|
richCopy?: RichCopyRunner;
|
|
432
432
|
/** The flavors the runner can honestly produce as tiles (default both). A host with no readable-text projection omits "text". */
|
|
@@ -437,7 +437,13 @@ interface ContentTransferMenuProps {
|
|
|
437
437
|
*/
|
|
438
438
|
copyWithPrompt?: () => Promise<void>;
|
|
439
439
|
}
|
|
440
|
-
type RichCopyFlavor = "default" | "markdown" | "text";
|
|
440
|
+
type RichCopyFlavor = "default" | "markdown" | "text" | "formatted";
|
|
441
|
+
/** THE three names of a rich copy (Arman, 2026-10-11) — the host's rows carry the same words. */
|
|
442
|
+
declare const RICH_COPY_LABELS: {
|
|
443
|
+
readonly markdown: "Copy as Markdown";
|
|
444
|
+
readonly text: "Copy content";
|
|
445
|
+
readonly formatted: "Copy formatted";
|
|
446
|
+
};
|
|
441
447
|
type RichCopyRunner = (flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
442
448
|
interface ContentTransferController {
|
|
443
449
|
focusTrigger(): void;
|
|
@@ -479,4 +485,4 @@ declare const NOTICE_MS = 4000;
|
|
|
479
485
|
/** Failures stay longer — never less than five seconds. */
|
|
480
486
|
declare const NOTICE_ERROR_MS = 8000;
|
|
481
487
|
|
|
482
|
-
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, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, NOTICE_ERROR_MS, NOTICE_MS, 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 };
|
|
488
|
+
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, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, NOTICE_ERROR_MS, NOTICE_MS, PALETTE_HEADINGS, type PaletteHeading, RICH_COPY_LABELS, 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 };
|
|
@@ -234,22 +234,22 @@ interface MatrxCopyMenuProps {
|
|
|
234
234
|
human?: Resolvable<string>;
|
|
235
235
|
/**
|
|
236
236
|
* What `human` is. "markdown" makes it rich text: the main Copy click writes text/plain = the
|
|
237
|
-
* markdown plus text/html = formatted, and the panel leads with "Copy
|
|
237
|
+
* markdown plus text/html = formatted, and the panel leads with "Copy as Markdown", "Copy content" and "Copy formatted".
|
|
238
238
|
* Default "plain": a plain string, the existing Text / Markdown tiles.
|
|
239
239
|
*/
|
|
240
240
|
contentFlavor?: "plain" | "markdown";
|
|
241
241
|
/**
|
|
242
242
|
* The host's own rich copy, so one implementation serves every surface (matrx-frontend injects
|
|
243
243
|
* `copyRichContent`). Absent: the package writes the main click and Copy markdown through the session
|
|
244
|
-
* transport and offers no Copy
|
|
244
|
+
* transport and offers no Copy content tile (readable text is the host's one projection).
|
|
245
245
|
*/
|
|
246
246
|
richCopy?: (markdown: string, flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
247
247
|
/**
|
|
248
|
-
* Which
|
|
248
|
+
* Which of the three rich-copy tiles the panel leads with when `richCopy` is on. A host that
|
|
249
249
|
* already shows those two choices itself (the split Copy's own menu rows) passes `[]` so the panel
|
|
250
250
|
* carries only what is unique to it (Formatted, download, AI). Default: every flavor the host has.
|
|
251
251
|
*/
|
|
252
|
-
richCopyFlavors?: readonly ("markdown" | "text")[];
|
|
252
|
+
richCopyFlavors?: readonly ("markdown" | "text" | "formatted")[];
|
|
253
253
|
/**
|
|
254
254
|
* Model output: every copy of `human` leaves out its reasoning blocks (`<thinking>`, `<think>`,
|
|
255
255
|
* `<reasoning>`), and when it held any the panel offers "Copy including thinking" with the full text.
|
|
@@ -425,8 +425,8 @@ interface ContentTransferMenuProps {
|
|
|
425
425
|
envelope?: () => EnvelopeMeta | undefined;
|
|
426
426
|
/**
|
|
427
427
|
* Rich-text hosts: one implementation of the three copies. The main Copy click runs "default"
|
|
428
|
-
* (text/plain = markdown AND text/html = formatted); the panel leads with "Copy
|
|
429
|
-
* "Copy
|
|
428
|
+
* (text/plain = markdown AND text/html = formatted); the panel leads with "Copy as Markdown",
|
|
429
|
+
* "Copy content" and "Copy formatted". When set, the plain / Markdown / Formatted tiles give way.
|
|
430
430
|
*/
|
|
431
431
|
richCopy?: RichCopyRunner;
|
|
432
432
|
/** The flavors the runner can honestly produce as tiles (default both). A host with no readable-text projection omits "text". */
|
|
@@ -437,7 +437,13 @@ interface ContentTransferMenuProps {
|
|
|
437
437
|
*/
|
|
438
438
|
copyWithPrompt?: () => Promise<void>;
|
|
439
439
|
}
|
|
440
|
-
type RichCopyFlavor = "default" | "markdown" | "text";
|
|
440
|
+
type RichCopyFlavor = "default" | "markdown" | "text" | "formatted";
|
|
441
|
+
/** THE three names of a rich copy (Arman, 2026-10-11) — the host's rows carry the same words. */
|
|
442
|
+
declare const RICH_COPY_LABELS: {
|
|
443
|
+
readonly markdown: "Copy as Markdown";
|
|
444
|
+
readonly text: "Copy content";
|
|
445
|
+
readonly formatted: "Copy formatted";
|
|
446
|
+
};
|
|
441
447
|
type RichCopyRunner = (flavor: RichCopyFlavor) => Promise<TransferOutcome | boolean | void> | TransferOutcome | boolean | void;
|
|
442
448
|
interface ContentTransferController {
|
|
443
449
|
focusTrigger(): void;
|
|
@@ -479,4 +485,4 @@ declare const NOTICE_MS = 4000;
|
|
|
479
485
|
/** Failures stay longer — never less than five seconds. */
|
|
480
486
|
declare const NOTICE_ERROR_MS = 8000;
|
|
481
487
|
|
|
482
|
-
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, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, NOTICE_ERROR_MS, NOTICE_MS, 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 };
|
|
488
|
+
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, type EnvelopeMeta, GROOMER_LEVELS, MatrxCopyMenu, type MatrxCopyMenuProps, NOTICE_ERROR_MS, NOTICE_MS, PALETTE_HEADINGS, type PaletteHeading, RICH_COPY_LABELS, 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 };
|