@biffo/cli 0.438.1 → 0.439.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/dist/index.js CHANGED
@@ -28,11 +28,11 @@ import { z } from "zod";
28
28
  var SEMVER = /^(\d+)\.(\d+)\.(\d+)$/;
29
29
  var DeclinedMigrationSchema = z.object({
30
30
  /** The *template's* filename for the migration, e.g. `0010_add_organizations.py`. */
31
- file: z.string({ required_error: "file is required \u2014 it must name a template migration" }).min(1, "file is required \u2014 it must name a template migration"),
32
- // `required_error` as well as `min(1)`: zod reports a bare "Required" for an
31
+ file: z.string({ error: "file is required \u2014 it must name a template migration" }).min(1, "file is required \u2014 it must name a template migration"),
32
+ // `error` as well as `min(1)`: zod reports a bare "Required" for an
33
33
  // absent key, which would lose the guidance in the exact case most likely to
34
34
  // occur — someone adding an entry and omitting the field.
35
- reason: z.string({ required_error: "reason is required \u2014 a decline nobody can review is drift" }).min(1, "reason is required \u2014 a decline nobody can review is drift"),
35
+ reason: z.string({ error: "reason is required \u2014 a decline nobody can review is drift" }).min(1, "reason is required \u2014 a decline nobody can review is drift"),
36
36
  /** Optional `owner/repo#123` recording where the decline is being resolved. */
37
37
  upstream: z.string().optional()
38
38
  });
@@ -5496,8 +5496,8 @@ var BiffoConfigSchema = z5.object({
5496
5496
  database: z5.object({
5497
5497
  schema_path: z5.string().nullable().default(null),
5498
5498
  migrations_path: z5.string().default("services/api/migrations")
5499
- }).default({}),
5500
- modules: ModulesSchema.default({}),
5499
+ }).prefault({}),
5500
+ modules: ModulesSchema.prefault({}),
5501
5501
  design_tokens: DesignTokensSchema.optional()
5502
5502
  }).superRefine((config, ctx) => {
5503
5503
  const dns = resolveDnsConfig(config);
@@ -6810,12 +6810,9 @@ import { z as z6 } from "zod";
6810
6810
  var RESERVED_COLUMN_NAMES = /* @__PURE__ */ new Set(["id", "tenant_id", "created_at", "updated_at"]);
6811
6811
  var COLUMN_TYPE_PATTERN = /^(String|Integer|Text|Boolean|Float|DateTime)(\(.*\))?$/;
6812
6812
  var ColumnDefinitionSchema = z6.object({
6813
- name: z6.string().refine(
6814
- (n) => !RESERVED_COLUMN_NAMES.has(n),
6815
- (n) => ({
6816
- message: `Column '${n}' is reserved and added automatically; it must not be declared in the manifest.`
6817
- })
6818
- ),
6813
+ name: z6.string().refine((n) => !RESERVED_COLUMN_NAMES.has(n), {
6814
+ error: (iss) => `Column '${String(iss.input)}' is reserved and added automatically; it must not be declared in the manifest.`
6815
+ }),
6819
6816
  type: z6.string().regex(
6820
6817
  COLUMN_TYPE_PATTERN,
6821
6818
  "must be one of String, Integer, Text, Boolean, Float, DateTime (e.g. 'String(255)')"
@@ -6837,17 +6834,17 @@ var PermissionRuleSchema = z6.object({
6837
6834
  permission_code: z6.string().default("")
6838
6835
  }).strict();
6839
6836
  var TablePermissionsSchema = z6.object({
6840
- list: PermissionRuleSchema.default({}),
6841
- read: PermissionRuleSchema.default({}),
6842
- create: PermissionRuleSchema.default({}),
6843
- update: PermissionRuleSchema.default({}),
6844
- delete: PermissionRuleSchema.default({})
6837
+ list: PermissionRuleSchema.prefault({}),
6838
+ read: PermissionRuleSchema.prefault({}),
6839
+ create: PermissionRuleSchema.prefault({}),
6840
+ update: PermissionRuleSchema.prefault({}),
6841
+ delete: PermissionRuleSchema.prefault({})
6845
6842
  }).strict();
6846
6843
  var TableDefinitionSchema = z6.object({
6847
6844
  name: z6.string().regex(/^[a-z][a-z0-9_]*$/, "table name must be snake_case, e.g. rbac_roles"),
6848
6845
  columns: z6.array(ColumnDefinitionSchema).default([]),
6849
6846
  indexes: z6.array(IndexDefinitionSchema).default([]),
6850
- permissions: TablePermissionsSchema.default({})
6847
+ permissions: TablePermissionsSchema.prefault({})
6851
6848
  }).superRefine((table, ctx) => {
6852
6849
  const colCounts = /* @__PURE__ */ new Map();
6853
6850
  for (const c of table.columns) colCounts.set(c.name, (colCounts.get(c.name) ?? 0) + 1);
@@ -6943,7 +6940,7 @@ var UserFrontendSchema = z6.object({
6943
6940
  var ToolDeclarationSchema = z6.object({
6944
6941
  name: z6.string(),
6945
6942
  description: z6.string(),
6946
- parameters: z6.record(z6.string(), z6.unknown()).default({})
6943
+ parameters: z6.record(z6.string(), z6.unknown()).prefault({})
6947
6944
  });
6948
6945
  var SeedDeclarationSchema = z6.object({
6949
6946
  dir: z6.string().regex(
@@ -16694,7 +16691,7 @@ import { existsSync as existsSync60, readFileSync as readFileSync48, readdirSync
16694
16691
  import { join as join72 } from "path";
16695
16692
 
16696
16693
  // src/lib/openrouter-model-snapshot.ts
16697
- var OPENROUTER_MODEL_SNAPSHOT_FETCHED_AT = "2026-11-09T19:18:17Z";
16694
+ var OPENROUTER_MODEL_SNAPSHOT_FETCHED_AT = "2026-11-30T21:46:31Z";
16698
16695
  var OPENROUTER_MODEL_IDS = [
16699
16696
  "aion-labs/aion-2.0",
16700
16697
  "aion-labs/aion-3.0",
@@ -16712,6 +16709,7 @@ var OPENROUTER_MODEL_IDS = [
16712
16709
  "anthropic/claude-fable-5.1",
16713
16710
  "anthropic/claude-fable-5.1:batch",
16714
16711
  "anthropic/claude-fable-5.2",
16712
+ "anthropic/claude-fable-5.2:batch",
16715
16713
  "anthropic/claude-fable-5:batch",
16716
16714
  "anthropic/claude-haiku-4.5",
16717
16715
  "anthropic/claude-haiku-4.5:batch",
@@ -16732,17 +16730,15 @@ var OPENROUTER_MODEL_IDS = [
16732
16730
  "anthropic/claude-opus-5.5:batch",
16733
16731
  "anthropic/claude-opus-5:batch",
16734
16732
  "anthropic/claude-sonnet-4.5",
16735
- "anthropic/claude-sonnet-4.5:batch",
16736
16733
  "anthropic/claude-sonnet-4.6",
16737
16734
  "anthropic/claude-sonnet-4.6:batch",
16738
16735
  "anthropic/claude-sonnet-5",
16739
16736
  "anthropic/claude-sonnet-5.5",
16740
16737
  "anthropic/claude-sonnet-5.5:batch",
16741
16738
  "anthropic/claude-sonnet-5:batch",
16742
- "bytedance-seed/seed-1.6",
16743
- "bytedance-seed/seed-1.6-flash",
16739
+ "baidu/ernie-5.5-flash-preview:free",
16740
+ "baidu/ernie-light-dt-1.0-intl",
16744
16741
  "bytedance-seed/seed-2-1-turbo",
16745
- "bytedance-seed/seed-2.0-code",
16746
16742
  "bytedance-seed/seed-2.0-lite",
16747
16743
  "bytedance-seed/seed-2.0-mini",
16748
16744
  "bytedance/ui-tars-1.5-7b",
@@ -16752,7 +16748,6 @@ var OPENROUTER_MODEL_IDS = [
16752
16748
  "cohere/command-r-08-2024",
16753
16749
  "cohere/command-r-plus-08-2024",
16754
16750
  "cohere/command-r7b-12-2024",
16755
- "cohere/north-mini-code:free",
16756
16751
  "deepseek/deepseek-chat",
16757
16752
  "deepseek/deepseek-chat-v3-0324",
16758
16753
  "deepseek/deepseek-chat-v3.1",
@@ -16770,7 +16765,6 @@ var OPENROUTER_MODEL_IDS = [
16770
16765
  "deepseek/deepseek-v4.1-flash-1017",
16771
16766
  "deepseek/deepseek-v4.1-flash-1017:batch",
16772
16767
  "deepseek/deepseek-v4.1-flash:batch",
16773
- "dots-studio/dots-3-note-preview:free",
16774
16768
  "elorian/glimpse",
16775
16769
  "fireworks/ember-1",
16776
16770
  "google/gemini-2.5-flash",
@@ -16803,6 +16797,12 @@ var OPENROUTER_MODEL_IDS = [
16803
16797
  "google/gemini-3.8-flash:batch",
16804
16798
  "google/gemini-4-argon",
16805
16799
  "google/gemini-4-argon:batch",
16800
+ "google/gemini-4-carbon",
16801
+ "google/gemini-4-carbon:batch",
16802
+ "google/gemini-4-hydrogen",
16803
+ "google/gemini-4-hydrogen:batch",
16804
+ "google/gemini-4-neon",
16805
+ "google/gemini-4-neon:batch",
16806
16806
  "google/gemini-nano-banana-2.1",
16807
16807
  "google/gemini-omni-1.1-flash",
16808
16808
  "google/gemini-omni-1.2-flash",
@@ -16820,20 +16820,19 @@ var OPENROUTER_MODEL_IDS = [
16820
16820
  "ibm-granite/granite-4.2-8b",
16821
16821
  "inclusionai/ling-3.0-flash",
16822
16822
  "inclusionai/ling-3.0-flash-vl",
16823
- "inclusionai/ling-3.0-tiny",
16824
16823
  "inclusionai/ling-3.1-flash",
16824
+ "inclusionai/ling-3.2-air",
16825
+ "inclusionai/ling-3.2-flash",
16826
+ "inclusionai/lingsante-3.1-air-vl",
16825
16827
  "inference-net/schematron-v2-small",
16826
16828
  "inference-net/schematron-v2-turbo",
16827
- "liquid/lfm-2.5-2.6b",
16828
- "liquid/lfm-2.5-2.6b:free",
16829
+ "kt/midm-k-3.0-pro",
16829
16830
  "liquid/lfm-2.5-24b-a2b",
16830
16831
  "liquid/lfm-3-1.7b",
16831
16832
  "liquid/lfm-3-1.7b:free",
16832
16833
  "mancer/weaver",
16833
- "meituan/longcat-2.0",
16834
16834
  "meta-llama/llama-3.1-70b-instruct",
16835
16835
  "meta-llama/llama-3.1-8b-instruct",
16836
- "meta-llama/llama-3.2-1b-instruct",
16837
16836
  "meta-llama/llama-3.2-3b-instruct",
16838
16837
  "meta-llama/llama-3.3-70b-instruct",
16839
16838
  "meta-llama/llama-4-maverick",
@@ -16856,50 +16855,48 @@ var OPENROUTER_MODEL_IDS = [
16856
16855
  "minimax/minimax-m3.1-flash",
16857
16856
  "minimax/minimax-m3:batch",
16858
16857
  "mistralai/codestral-2508",
16858
+ "mistralai/codestral-2508:batch",
16859
16859
  "mistralai/devstral-2512",
16860
16860
  "mistralai/ministral-14b-2512",
16861
16861
  "mistralai/ministral-3b-2512",
16862
16862
  "mistralai/ministral-8b-2512",
16863
+ "mistralai/ministral-8b-2512:batch",
16863
16864
  "mistralai/mistral-large",
16864
16865
  "mistralai/mistral-large-2407",
16865
16866
  "mistralai/mistral-large-2512",
16867
+ "mistralai/mistral-large-2512:batch",
16866
16868
  "mistralai/mistral-large-4-0",
16867
- "mistralai/mistral-medium-3",
16868
16869
  "mistralai/mistral-medium-3-5",
16869
16870
  "mistralai/mistral-medium-3-5:batch",
16870
- "mistralai/mistral-medium-3.1",
16871
16871
  "mistralai/mistral-nemo",
16872
16872
  "mistralai/mistral-saba",
16873
16873
  "mistralai/mistral-small-24b-instruct-2501",
16874
16874
  "mistralai/mistral-small-2603",
16875
+ "mistralai/mistral-small-2603:batch",
16875
16876
  "mistralai/mistral-small-3.1-24b-instruct",
16876
16877
  "mistralai/mistral-small-3.2-24b-instruct",
16877
16878
  "mistralai/mixtral-8x22b-instruct",
16879
+ "mistralai/pixtral-large-2502",
16878
16880
  "mistralai/voxtral-small-24b-2507",
16879
- "moondream/moondream3-preview",
16880
- "moondream/moondream3.1-9b-a2b",
16881
- "moonshotai/kimi-k2",
16882
16881
  "moonshotai/kimi-k2-0905",
16883
- "moonshotai/kimi-k2-thinking",
16884
16882
  "moonshotai/kimi-k2.5",
16885
16883
  "moonshotai/kimi-k2.6",
16886
16884
  "moonshotai/kimi-k2.7-code",
16887
16885
  "moonshotai/kimi-k3",
16888
16886
  "moonshotai/kimi-k3.1-pro",
16887
+ "moonshotai/kimi-k3.1-pro:batch",
16889
16888
  "moonshotai/kimi-k3:batch",
16890
16889
  "morph/morph-v3-fast",
16891
16890
  "morph/morph-v3-fast:batch",
16892
16891
  "morph/morph-v3-large",
16893
16892
  "morph/morph-v3-large:batch",
16894
- "nex-agi/nex-n2.5-mini",
16895
- "nex-agi/nex-n2.5-pro",
16893
+ "motif-technologies/motif-3",
16896
16894
  "nousresearch/hermes-4-405b",
16897
16895
  "nvidia/nemotron-3-nano-30b-a3b",
16898
16896
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
16899
16897
  "nvidia/nemotron-3-super-120b-a12b",
16900
16898
  "nvidia/nemotron-3-ultra-550b-a55b",
16901
16899
  "nvidia/nemotron-3-ultra-550b-a55b:free",
16902
- "nvidia/nemotron-3.5-content-safety",
16903
16900
  "nvidia/nemotron-3.5-lightning",
16904
16901
  "nvidia/nemotron-3.5-lightning:free",
16905
16902
  "nvidia/nemotron-3.5-super-vl",
@@ -16990,6 +16987,14 @@ var OPENROUTER_MODEL_IDS = [
16990
16987
  "openai/gpt-6.1-terra-pro",
16991
16988
  "openai/gpt-6.1-terra-pro:batch",
16992
16989
  "openai/gpt-6.1-terra:batch",
16990
+ "openai/gpt-6.2-astra",
16991
+ "openai/gpt-6.2-astra-pro",
16992
+ "openai/gpt-6.2-astra-pro:batch",
16993
+ "openai/gpt-6.2-astra:batch",
16994
+ "openai/gpt-6.2-sol",
16995
+ "openai/gpt-6.2-sol-pro",
16996
+ "openai/gpt-6.2-sol-pro:batch",
16997
+ "openai/gpt-6.2-sol:batch",
16993
16998
  "openai/gpt-audio",
16994
16999
  "openai/gpt-audio-mini",
16995
17000
  "openai/gpt-chat-latest",
@@ -17011,6 +17016,7 @@ var OPENROUTER_MODEL_IDS = [
17011
17016
  "openrouter/fusion",
17012
17017
  "openrouter/pareto-code",
17013
17018
  "particle-ai/particle-1",
17019
+ "particle-ai/particle-1:free",
17014
17020
  "perceptron/perceptron-mk1",
17015
17021
  "perceptron/perceptron-mk1.5",
17016
17022
  "perplexity/sonar",
@@ -17021,13 +17027,11 @@ var OPENROUTER_MODEL_IDS = [
17021
17027
  "prism-ml/ternary-bonsai-2-27b",
17022
17028
  "prism-ml/ternary-bonsai-2-9b",
17023
17029
  "qwen/qwen-2.5-72b-instruct",
17024
- "qwen/qwen-2.5-7b-instruct",
17025
17030
  "qwen/qwen-2.5-coder-32b-instruct",
17026
17031
  "qwen/qwen-plus",
17027
17032
  "qwen/qwen2.5-vl-72b-instruct",
17028
17033
  "qwen/qwen3-14b",
17029
17034
  "qwen/qwen3-235b-a22b-2507",
17030
- "qwen/qwen3-235b-a22b-thinking-2507",
17031
17035
  "qwen/qwen3-30b-a3b",
17032
17036
  "qwen/qwen3-30b-a3b-instruct-2507",
17033
17037
  "qwen/qwen3-32b",
@@ -17038,7 +17042,6 @@ var OPENROUTER_MODEL_IDS = [
17038
17042
  "qwen/qwen3-next-80b-a3b-instruct",
17039
17043
  "qwen/qwen3-vl-235b-a22b-instruct",
17040
17044
  "qwen/qwen3-vl-30b-a3b-instruct",
17041
- "qwen/qwen3-vl-30b-a3b-thinking",
17042
17045
  "qwen/qwen3-vl-8b-instruct",
17043
17046
  "qwen/qwen3.5-122b-a10b",
17044
17047
  "qwen/qwen3.5-27b",
@@ -17064,6 +17067,8 @@ var OPENROUTER_MODEL_IDS = [
17064
17067
  "qwen/qwen3.8-max-0902:batch",
17065
17068
  "qwen/qwen3.8-max-prime",
17066
17069
  "qwen/qwen3.8-omni-flash",
17070
+ "qwen/qwen4-max",
17071
+ "radixark/daisyrose-27b",
17067
17072
  "recursive/flint-v1.0:free",
17068
17073
  "reflection/beam-1.0-501b-a23b",
17069
17074
  "rekaai/reka-edge",
@@ -17079,29 +17084,30 @@ var OPENROUTER_MODEL_IDS = [
17079
17084
  "sao10k/l3.1-euryale-70b",
17080
17085
  "scaledown/extract",
17081
17086
  "scaledown/summarize",
17082
- "stealth/crouton-alpha",
17083
- "stepfun/step-3.5-flash",
17084
17087
  "stepfun/step-3.7-flash",
17088
+ "stepfun/step-5",
17085
17089
  "stepfun/step-5-preview",
17086
- "tencent/hunyuan-a13b-instruct",
17087
17090
  "tencent/hy-mt2-1.8b",
17088
17091
  "tencent/hy-mt2-30b-a3b",
17089
17092
  "tencent/hy-mt2-7b",
17090
17093
  "tencent/hy3",
17091
- "tencent/hy3-preview",
17092
17094
  "tencent/hy4",
17095
+ "tencent/hy4-flash",
17093
17096
  "tencent/hy4-preview",
17094
17097
  "thedrummer/cydonia-24b-v4.1",
17095
17098
  "thedrummer/skyfall-36b-v2",
17096
17099
  "thedrummer/unslopnemo-12b",
17097
17100
  "thinkingmachines/inkling",
17101
+ "thinkingmachines/inkling-2-mini",
17102
+ "thinkingmachines/inkling-2-small",
17098
17103
  "thinkingmachines/inkling-small",
17099
17104
  "thinkingmachines/inkling-small:batch",
17105
+ "tngtech/deepseek-r1t2-chimera",
17100
17106
  "typesafe/jev-router",
17101
- "unbiased/pareto-26.10",
17102
- "unbiased/pareto-26.9",
17103
17107
  "undi95/remm-slerp-l2-13b",
17108
+ "upstage/solar-mini-4-5",
17104
17109
  "upstage/solar-mini4",
17110
+ "upstage/solar-pro-4-contributor",
17105
17111
  "upstage/solar-pro4",
17106
17112
  "writer/palmyra-x5",
17107
17113
  "x-ai/grok-4.20",
@@ -17113,13 +17119,10 @@ var OPENROUTER_MODEL_IDS = [
17113
17119
  "x-ai/grok-4.6:batch",
17114
17120
  "x-ai/grok-4.7",
17115
17121
  "x-ai/grok-4.7:batch",
17116
- "x-ai/grok-build-0.1",
17117
- "xiaomi/mimo-v2.5",
17118
- "xiaomi/mimo-v2.5-pro",
17119
17122
  "xiaomi/mimo-v2.6-flash",
17123
+ "xiaomi/mimo-v2.6-flash-mopd",
17120
17124
  "xiaomi/mimo-v2.6-pro",
17121
17125
  "xiaomi/mimo-v2.6-pro-ultraspeed",
17122
- "xingchen-agi/xing4.0-29b-a4b:free",
17123
17126
  "z-ai/glm-4.5",
17124
17127
  "z-ai/glm-4.5-air",
17125
17128
  "z-ai/glm-4.5v",
@@ -17131,7 +17134,6 @@ var OPENROUTER_MODEL_IDS = [
17131
17134
  "z-ai/glm-5-turbo",
17132
17135
  "z-ai/glm-5.1",
17133
17136
  "z-ai/glm-5.2",
17134
- "z-ai/glm-5.2:batch",
17135
17137
  "z-ai/glm-5.3",
17136
17138
  "z-ai/glm-5.3-flash",
17137
17139
  "z-ai/glm-5.3-flash:batch",
@@ -17150,6 +17152,7 @@ var OPENROUTER_MODEL_IDS = [
17150
17152
  "~google/gemini-flash-latest",
17151
17153
  "~google/gemini-pro-latest",
17152
17154
  "~moonshotai/kimi-latest",
17155
+ "~moonshotai/kimi-pro-latest",
17153
17156
  "~openai/gpt-astra-latest",
17154
17157
  "~openai/gpt-luna-latest",
17155
17158
  "~openai/gpt-mini-latest",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.438.1",
3
+ "version": "0.439.0",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -64,7 +64,7 @@
64
64
  "inquirer": "^12.3.0",
65
65
  "ora": "^8.1.1",
66
66
  "smol-toml": "^1.9.0",
67
- "zod": "^3.24.1"
67
+ "zod": "^4.6.6"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@biffo/eslint-config": "workspace:*",
@@ -77,7 +77,7 @@
77
77
  "tsup": "^8.3.5",
78
78
  "tsx": "^4.19.2",
79
79
  "typescript": "^5.7.3",
80
- "vite": "^6.4.3",
80
+ "vite": "^6.4.4",
81
81
  "vitest": "^4.1.11"
82
82
  }
83
83
  }