@fugood/bricks-project 2.24.0-beta.26 → 2.24.0-beta.28

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.
@@ -702,6 +702,8 @@ export const templateActionNameMap = {
702
702
  parallelToolCalls: 'GENERATOR_LLM_PARALLEL_TOOL_CALLS',
703
703
  toolChoice: 'GENERATOR_LLM_TOOL_CHOICE',
704
704
  enableThinking: 'GENERATOR_LLM_ENABLE_THINKING',
705
+ thinkingBudgetTokens: 'GENERATOR_LLM_THINKING_BUDGET_TOKENS',
706
+ thinkingBudgetMessage: 'GENERATOR_LLM_THINKING_BUDGET_MESSAGE',
705
707
  prompt: 'GENERATOR_LLM_PROMPT',
706
708
  promptMediaPaths: 'GENERATOR_LLM_PROMPT_MEDIA_PATHS',
707
709
  promptTemplateData: 'GENERATOR_LLM_PROMPT_TEMPLATE_DATA',
@@ -719,6 +721,8 @@ export const templateActionNameMap = {
719
721
  parallelToolCalls: 'GENERATOR_LLM_PARALLEL_TOOL_CALLS',
720
722
  toolChoice: 'GENERATOR_LLM_TOOL_CHOICE',
721
723
  enableThinking: 'GENERATOR_LLM_ENABLE_THINKING',
724
+ thinkingBudgetTokens: 'GENERATOR_LLM_THINKING_BUDGET_TOKENS',
725
+ thinkingBudgetMessage: 'GENERATOR_LLM_THINKING_BUDGET_MESSAGE',
722
726
  useReasoningFormat: 'GENERATOR_LLM_USE_REASONING_FORMAT',
723
727
  prompt: 'GENERATOR_LLM_PROMPT',
724
728
  promptMediaPaths: 'GENERATOR_LLM_PROMPT_MEDIA_PATHS',
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.24.0-beta.26",
3
+ "version": "2.24.0-beta.28",
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.24.0-beta.26",
10
+ "@fugood/bricks-cli": "^2.24.0-beta.27",
11
11
  "@huggingface/gguf": "^0.3.2",
12
12
  "@iarna/toml": "^3.0.0",
13
13
  "@modelcontextprotocol/sdk": "^1.15.0",
@@ -24,5 +24,5 @@
24
24
  "peerDependencies": {
25
25
  "oxfmt": "^0.36.0"
26
26
  },
27
- "gitHead": "e64d47dd9bb23cf01ebac0e088188728dfee0c05"
27
+ "gitHead": "74a2b1e994a5a745cf9a030b6c79ce6a210c0f52"
28
28
  }
package/tools/deploy.ts CHANGED
@@ -8,6 +8,8 @@ const {
8
8
  changelogs: changelogsArg,
9
9
  'changelogs-file': changelogsFile,
10
10
  'auto-commit': autoCommit,
11
+ 'auto-version': autoVersion,
12
+ version: versionArg,
11
13
  yes,
12
14
  help,
13
15
  },
@@ -17,6 +19,8 @@ const {
17
19
  changelogs: { type: 'string' },
18
20
  'changelogs-file': { type: 'string' },
19
21
  'auto-commit': { type: 'boolean' },
22
+ 'auto-version': { type: 'boolean' },
23
+ version: { type: 'string' },
20
24
  yes: { type: 'boolean', short: 'y' },
21
25
  help: { type: 'boolean', short: 'h' },
22
26
  },
@@ -28,6 +32,8 @@ if (help) {
28
32
  --changelogs <text> Changelogs text for the release
29
33
  --changelogs-file <path> Read changelogs from a file
30
34
  --auto-commit Auto-commit unstaged changes before deploying
35
+ --auto-version Auto-bump patch version before deploying
36
+ --version <version> Set explicit version for the release
31
37
  -y, --yes Skip all prompts
32
38
  -h, --help Show this help message`)
33
39
  process.exit(0)
@@ -46,9 +52,28 @@ if (!isGitRepo && !yes) {
46
52
  const app = await Bun.file(`${cwd}/application.json`).json()
47
53
  const config = await Bun.file(`${cwd}/.bricks/build/application-config.json`).json()
48
54
 
49
- // Get version from project's package.json
55
+ // Resolve version: explicit flag > auto-bump > package.json
50
56
  const pkgFile = Bun.file(`${cwd}/package.json`)
51
- const version = (await pkgFile.exists()) ? (await pkgFile.json()).version : undefined
57
+ const pkgExists = await pkgFile.exists()
58
+ let version: string | undefined
59
+
60
+ if (versionArg) {
61
+ version = versionArg
62
+ if (pkgExists) {
63
+ const pkg = await pkgFile.json()
64
+ pkg.version = version
65
+ await Bun.write(`${cwd}/package.json`, JSON.stringify(pkg, null, 2) + '\n')
66
+ }
67
+ } else if (autoVersion && pkgExists) {
68
+ const pkg = await pkgFile.json()
69
+ const parts = (pkg.version || '0.0.0').split('.')
70
+ parts[2] = String(Number(parts[2] || 0) + 1)
71
+ version = parts.join('.')
72
+ pkg.version = version
73
+ await Bun.write(`${cwd}/package.json`, JSON.stringify(pkg, null, 2) + '\n')
74
+ } else {
75
+ version = pkgExists ? (await pkgFile.json()).version : undefined
76
+ }
52
77
 
53
78
  // Get changelog from flag or file
54
79
  let changelogs = ''
@@ -97,6 +97,16 @@ export type GeneratorLLMActionProcessPrompt = ActionWithParams & {
97
97
  value?: boolean | DataLink | EventProperty
98
98
  mapping?: string
99
99
  }
100
+ | {
101
+ input: 'thinkingBudgetTokens'
102
+ value?: number | DataLink | EventProperty
103
+ mapping?: string
104
+ }
105
+ | {
106
+ input: 'thinkingBudgetMessage'
107
+ value?: string | DataLink | EventProperty
108
+ mapping?: string
109
+ }
100
110
  | {
101
111
  input: 'prompt'
102
112
  value?: string | DataLink | EventProperty
@@ -179,6 +189,16 @@ export type GeneratorLLMActionCompletion = ActionWithParams & {
179
189
  value?: boolean | DataLink | EventProperty
180
190
  mapping?: string
181
191
  }
192
+ | {
193
+ input: 'thinkingBudgetTokens'
194
+ value?: number | DataLink | EventProperty
195
+ mapping?: string
196
+ }
197
+ | {
198
+ input: 'thinkingBudgetMessage'
199
+ value?: string | DataLink | EventProperty
200
+ mapping?: string
201
+ }
182
202
  | {
183
203
  input: 'useReasoningFormat'
184
204
  value?: string | DataLink | EventProperty
@@ -514,6 +534,8 @@ Default property:
514
534
  useMlock?: boolean | DataLink
515
535
  /* Use mmap */
516
536
  useMmap?: boolean | DataLink
537
+ /* Disable extra buffer types for weight repacking. Reduces memory usage at the cost of slower prompt processing. */
538
+ noExtraBuffs?: boolean | DataLink
517
539
  /* Use Flash Attention for inference (Recommended with GPU enabled) */
518
540
  useFlashAttn?: 'auto' | 'on' | 'off' | DataLink
519
541
  /* KV cache data type for the K (Default: f16) */
@@ -588,6 +610,10 @@ Default property:
588
610
  }
589
611
  /* Enable thinking */
590
612
  completionEnableThinking?: boolean | DataLink
613
+ /* Maximum tokens allowed inside the model's thinking block before forcing it closed. Only applies when chat formatting exposes thinking tags. */
614
+ completionThinkingBudgetTokens?: number | DataLink
615
+ /* Message injected before the thinking end tag when the thinking budget is exhausted. */
616
+ completionThinkingBudgetMessage?: string | DataLink
591
617
  /* Add generation prompt */
592
618
  completionAddGenerationPrompt?: boolean | DataLink
593
619
  /* Now (for fill current date in chat template if supported) */
@@ -120,6 +120,7 @@ Default property:
120
120
  | 'Gemma 2 2B Instruct (Tailpatched)'
121
121
  | 'Gemma 2 2B Instruct (Tailpatched MDLA53)'
122
122
  | 'Qwen 2.5 0.5B Instruct'
123
+ | 'Qwen 2.5 1.5B Instruct'
123
124
  | 'Llama 3 8B Instruct'
124
125
  | DataLink
125
126
  /* Override base URL for NeuroPilot model bundle downloads */