@fugood/bricks-project 2.21.3 → 2.21.5

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/compile/index.ts CHANGED
@@ -856,6 +856,7 @@ export const compile = async (app: Application) => {
856
856
  fonts: app.fonts,
857
857
  ...compileApplicationSettings(app.settings),
858
858
  test_map: app.metadata?.TEMP_test_map || {},
859
+ automation_map: app.metadata?.TEMP_automation_map || {},
859
860
  }
860
861
  return config
861
862
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.21.3",
3
+ "version": "2.21.5",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.js"
package/types/canvas.ts CHANGED
@@ -14,7 +14,7 @@ interface CanvasDef {
14
14
  showingTimeout?: number | DataLink
15
15
  /* Canvas ID for change next canvas on showing timeout */
16
16
  nextCanvasId?: string | DataLink | (() => Canvas)
17
- /* Canvas's background color */
17
+ /* Background color of Canvas */
18
18
  backgroundColor?: string | DataLink
19
19
  /* Dismiss keyboard on press */
20
20
  dismissKeyboardOnPress?: boolean | DataLink
@@ -4334,6 +4334,8 @@ Default property:
4334
4334
  property?: {
4335
4335
  /* Enable MCP server. If enabled and Listening is false, the generator can still provide application-scoped resources. */
4336
4336
  enabled?: boolean | DataLink
4337
+ /* Application-scoped generator key, key cannot be the same with other application-scoped generators */
4338
+ globalGeneratorKey?: string | DataLink
4337
4339
  /* Start MCP server */
4338
4340
  listening?: boolean | DataLink
4339
4341
  /* HTTP server port */
@@ -4495,6 +4497,8 @@ Default property:
4495
4497
  isListening?: () => Data
4496
4498
  /* Last error of HTTP server */
4497
4499
  lastError?: () => Data
4500
+ /* MCP server endpoint URL */
4501
+ endpoint?: () => Data
4498
4502
  /* Connected remotes (Session ID) */
4499
4503
  connectedRemotes?: () => Data
4500
4504
  /* Last resource request ({ name: string, uri: string, params: object }) */
@@ -4523,6 +4527,7 @@ export type GeneratorMCPServer = Generator &
4523
4527
  outlet:
4524
4528
  | 'isListening'
4525
4529
  | 'lastError'
4530
+ | 'endpoint'
4526
4531
  | 'connectedRemotes'
4527
4532
  | 'lastResourceRequest'
4528
4533
  | 'lastToolCall'
@@ -4688,8 +4693,10 @@ Default property:
4688
4693
  sendHeaders?: {} | DataLink
4689
4694
  /* Bearer token for authentication */
4690
4695
  bearerToken?: string | DataLink
4691
- /* Generator MCPServer ID for direct link */
4696
+ /* Generator MCP Server ID for direct link */
4692
4697
  generatorId?: string | DataLink
4698
+ /* Application-scoped key of Generator MCP Server for direct link (If ID is not provided) */
4699
+ generatorKey?: string | DataLink
4693
4700
  /* Name of the MCP client */
4694
4701
  name?: string | DataLink
4695
4702
  /* Version of the MCP client */
@@ -6169,6 +6176,7 @@ Default property:
6169
6176
  "useMmap": true,
6170
6177
  "cacheKType": "f16",
6171
6178
  "cacheVType": "f16",
6179
+ "ctxShift": true,
6172
6180
  "transformScriptEnabled": false,
6173
6181
  "transformScriptCode": "\/\* Global variable: inputs = { prompt, messages, variables } \*\/\nreturn inputs.prompt",
6174
6182
  "transformScriptVariables": {},
@@ -6254,6 +6262,8 @@ Default property:
6254
6262
  cacheKType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
6255
6263
  /* KV cache data type for the V (Default: f16) */
6256
6264
  cacheVType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
6265
+ /* Enable context shift */
6266
+ ctxShift?: boolean | DataLink
6257
6267
  /* Enable Transform Script for processing the prompt */
6258
6268
  transformScriptEnabled?: boolean | DataLink
6259
6269
  /* Code of Transform Script */
@@ -6272,7 +6282,9 @@ Default property:
6272
6282
  sessionRemain?: number | DataLink
6273
6283
  /* TODO:loran_gqarms_norm_epsrope_freq_baserope_freq_scale */
6274
6284
  completionMode?: 'auto' | 'chat' | 'text' | DataLink
6275
- /* Tools for chat mode */
6285
+ /* Tools for chat mode using OpenAI-compatible function calling format
6286
+ Format: Array of objects with {type, function: {name, description, parameters}} structure
6287
+ See: https://platform.openai.com/docs/guides/function-calling */
6276
6288
  completionTools?: {} | DataLink
6277
6289
  /* Enable parallel tool calls */
6278
6290
  completionParallelToolCalls?: boolean | DataLink
@@ -6529,7 +6541,9 @@ Default property:
6529
6541
  stopWords?: Array<string | DataLink> | DataLink
6530
6542
  /* Tool call parser */
6531
6543
  toolCallParser?: 'llama3_json' | 'mistral' | DataLink
6532
- /* Tools for chat mode */
6544
+ /* Tools for chat mode using OpenAI-compatible function calling format
6545
+ Format: Array of objects with {type, function: {name, description, parameters}} structure
6546
+ See: https://platform.openai.com/docs/guides/function-calling */
6533
6547
  tools?: {} | DataLink
6534
6548
  /* Tool choice for chat mode */
6535
6549
  toolChoice?: 'none' | 'auto' | 'required' | DataLink
@@ -6709,7 +6723,9 @@ Default property:
6709
6723
  }
6710
6724
  >
6711
6725
  | DataLink
6712
- /* Tools for chat mode */
6726
+ /* Tools for chat mode following OpenAI function calling format
6727
+ Format: Array of objects with {type, function: {name, description, parameters}} structure
6728
+ See: https://platform.openai.com/docs/guides/function-calling */
6713
6729
  completionTools?: {} | DataLink
6714
6730
  /* Enable parallel tool calls */
6715
6731
  completionParallelToolCalls?: boolean | DataLink
@@ -785,6 +785,8 @@ export const templateEventPropsMap = {
785
785
  'GENERATOR_LLM_COMPLETION_RESULT', // type: string
786
786
  'GENERATOR_LLM_COMPLETION_TOOL_CALLS', // type: array
787
787
  'GENERATOR_LLM_COMPLETION_FULL_CONTEXT', // type: string
788
+ 'GENERATOR_LLM_COMPLETION_IS_CONTEXT_FULL', // type: bool
789
+ 'GENERATOR_LLM_COMPLETION_IS_TRUNCATED', // type: bool
788
790
  'GENERATOR_LLM_COMPLETION_RESULT_DETAILS', // type: object
789
791
  ],
790
792
  onCompletionFunctionCall: [