@fugood/bricks-project 2.25.0-beta.20 → 2.25.0-beta.21

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.
@@ -838,6 +838,11 @@ export const templateActionNameMap = {
838
838
  seed: 'GENERATOR_LLM_SEED',
839
839
  typicalP: 'GENERATOR_LLM_TYPICAL_P',
840
840
  ignoreEos: 'GENERATOR_LLM_IGNORE_EOS',
841
+ mtpSpeculativeDecoding: 'GENERATOR_LLM_MTP_SPECULATIVE_DECODING',
842
+ mtpDraftTokens: 'GENERATOR_LLM_MTP_DRAFT_TOKENS',
843
+ mtpDraftMinTokens: 'GENERATOR_LLM_MTP_DRAFT_MIN_TOKENS',
844
+ mtpDraftMinProbability: 'GENERATOR_LLM_MTP_DRAFT_MIN_PROBABILITY',
845
+ mtpDraftSplitProbability: 'GENERATOR_LLM_MTP_DRAFT_SPLIT_PROBABILITY',
841
846
  functionCallEnabled: 'GENERATOR_LLM_FUNCTION_CALL_ENABLED',
842
847
  functionCallSchema: 'GENERATOR_LLM_FUNCTION_CALL_SCHEMA',
843
848
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.25.0-beta.20",
3
+ "version": "2.25.0-beta.21",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "typecheck": "tsc --noEmit",
7
7
  "build": "bun scripts/build.js"
8
8
  },
9
9
  "dependencies": {
10
- "@fugood/bricks-cli": "^2.25.0-beta.20",
10
+ "@fugood/bricks-cli": "^2.25.0-beta.21",
11
11
  "@huggingface/gguf": "^0.3.2",
12
12
  "@iarna/toml": "^3.0.0",
13
13
  "@modelcontextprotocol/sdk": "^1.15.0",
package/package.json.bak CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fugood/bricks-ctor",
3
- "version": "2.25.0-beta.20",
3
+ "version": "2.25.0-beta.21",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "typecheck": "tsc --noEmit",
7
7
  "build": "bun scripts/build.js"
8
8
  },
9
9
  "dependencies": {
10
- "@fugood/bricks-cli": "^2.25.0-beta.20",
10
+ "@fugood/bricks-cli": "^2.25.0-beta.21",
11
11
  "@huggingface/gguf": "^0.3.2",
12
12
  "@iarna/toml": "^3.0.0",
13
13
  "@modelcontextprotocol/sdk": "^1.15.0",
@@ -19,6 +19,8 @@ export function register(server: McpServer, projectDir: string) {
19
19
  }
20
20
  })
21
21
 
22
+ if (process.env.BRICKS_CTOR_MCP_DISABLE_PREVIEW === '1') return
23
+
22
24
  server.tool(
23
25
  'preview',
24
26
  {
@@ -1,6 +1,6 @@
1
1
  /* Auto generated by build script
2
2
  *
3
- * Rich text with HTML content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images
3
+ * Rich text with HTML or Markdown content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images
4
4
  */
5
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
6
  import type { Data, DataLink } from '../data'
@@ -23,6 +23,7 @@ Default property:
23
23
  {
24
24
  "content": "",
25
25
  "renderImage": false,
26
+ "renderMarkdown": false,
26
27
  "color": "#000",
27
28
  "fontWeight": "normal",
28
29
  "fontStyle": "normal",
@@ -42,6 +43,8 @@ Default property:
42
43
  content?: string | DataLink
43
44
  /* Render Image */
44
45
  renderImage?: boolean | DataLink
46
+ /* Treat content as Markdown (converted to HTML before rendering) */
47
+ renderMarkdown?: boolean | DataLink
45
48
  /* The text color */
46
49
  color?: string | DataLink
47
50
  /* Specifies font weight. The values 'normal' and are supported for most fonts. Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen. */
@@ -105,7 +108,7 @@ Default property:
105
108
  }
106
109
  }
107
110
 
108
- /* Rich text with HTML content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images */
111
+ /* Rich text with HTML or Markdown content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images */
109
112
  export type BrickRichText = Brick &
110
113
  BrickRichTextDef & {
111
114
  templateKey: 'BRICK_RICH_TEXT'
@@ -393,6 +393,31 @@ export type GeneratorLLMActionCompletion = ActionWithParams & {
393
393
  value?: boolean | DataLink | EventProperty
394
394
  mapping?: string
395
395
  }
396
+ | {
397
+ input: 'mtpSpeculativeDecoding'
398
+ value?: boolean | DataLink | EventProperty
399
+ mapping?: string
400
+ }
401
+ | {
402
+ input: 'mtpDraftTokens'
403
+ value?: number | DataLink | EventProperty
404
+ mapping?: string
405
+ }
406
+ | {
407
+ input: 'mtpDraftMinTokens'
408
+ value?: number | DataLink | EventProperty
409
+ mapping?: string
410
+ }
411
+ | {
412
+ input: 'mtpDraftMinProbability'
413
+ value?: number | DataLink | EventProperty
414
+ mapping?: string
415
+ }
416
+ | {
417
+ input: 'mtpDraftSplitProbability'
418
+ value?: number | DataLink | EventProperty
419
+ mapping?: string
420
+ }
396
421
  | {
397
422
  input: 'functionCallEnabled'
398
423
  value?: boolean | DataLink | EventProperty
@@ -465,6 +490,8 @@ Default property:
465
490
  "cacheVType": "f16",
466
491
  "ctxShift": true,
467
492
  "cpuMoeLayers": 0,
493
+ "mtpSpeculativeDecoding": false,
494
+ "mtpDraftTokens": 3,
468
495
  "transformScriptEnabled": false,
469
496
  "transformScriptCode": "\/\* Global variable: inputs = { prompt, messages, variables }, members = { llmUtils } \*\/\nreturn inputs.prompt",
470
497
  "transformScriptVariables": {},
@@ -575,6 +602,16 @@ Default property:
575
602
  ctxShift?: boolean | DataLink
576
603
  /* Number of layers to keep MoE weights on CPU */
577
604
  cpuMoeLayers?: number | DataLink
605
+ /* Enable MTP speculative decoding for GGUF models that contain MTP / NextN layers */
606
+ mtpSpeculativeDecoding?: boolean | DataLink
607
+ /* Maximum number of MTP draft tokens */
608
+ mtpDraftTokens?: number | DataLink
609
+ /* Minimum number of MTP draft tokens */
610
+ mtpDraftMinTokens?: number | DataLink
611
+ /* Minimum probability for greedy MTP draft tokens */
612
+ mtpDraftMinProbability?: number | DataLink
613
+ /* Split probability for MTP speculative decoding */
614
+ mtpDraftSplitProbability?: number | DataLink
578
615
  /* Enable Transform Script for processing the prompt */
579
616
  transformScriptEnabled?: boolean | DataLink
580
617
  /* Code of Transform Script */