@bike4mind/cli 0.2.29 → 0.2.30-chore-upgrade-zod4.19187

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-TNFZP7FG.js";
4
+ } from "./chunk-LGSUWJTI.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
7
7
  var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
@@ -269,24 +269,25 @@ var AuthTokensSchema = z.object({
269
269
  userId: z.string()
270
270
  });
271
271
  var ApiConfigSchema = z.object({
272
- customUrl: z.string().url().optional()
272
+ customUrl: z.url().optional()
273
273
  });
274
274
  var McpServerSchema = z.object({
275
275
  name: z.string(),
276
276
  command: z.string().optional(),
277
277
  args: z.array(z.string()).optional(),
278
- env: z.record(z.string()).default({}),
279
- enabled: z.boolean().default(true)
278
+ env: z.record(z.string(), z.string()).prefault({}),
279
+ enabled: z.boolean().prefault(true)
280
280
  });
281
281
  var McpServersSchema = z.union([
282
282
  // Array format (B4M native)
283
283
  z.array(McpServerSchema),
284
284
  // Object format (portable - compatible with Claude Code)
285
285
  z.record(
286
+ z.string(),
286
287
  z.object({
287
288
  command: z.string().optional(),
288
289
  args: z.array(z.string()).optional(),
289
- env: z.record(z.string()).optional(),
290
+ env: z.record(z.string(), z.string()).optional(),
290
291
  enabled: z.boolean().optional()
291
292
  })
292
293
  )
@@ -325,24 +326,24 @@ var CliConfigSchema = z.object({
325
326
  maxTokens: z.number(),
326
327
  temperature: z.number(),
327
328
  autoSave: z.boolean(),
328
- autoCompact: z.boolean().optional().default(true),
329
+ autoCompact: z.boolean().optional().prefault(true),
329
330
  theme: z.enum(["light", "dark"]),
330
331
  exportFormat: z.enum(["markdown", "json"]),
331
- maxIterations: z.number().nullable().default(10),
332
- enableSkillTool: z.boolean().optional().default(true)
332
+ maxIterations: z.number().nullable().prefault(10),
333
+ enableSkillTool: z.boolean().optional().prefault(true)
333
334
  }),
334
335
  tools: z.object({
335
336
  enabled: z.array(z.string()),
336
337
  disabled: z.array(z.string()),
337
- config: z.record(z.any())
338
+ config: z.record(z.string(), z.any())
338
339
  }),
339
- trustedTools: z.array(z.string()).optional().default([])
340
+ trustedTools: z.array(z.string()).optional().prefault([])
340
341
  });
341
342
  var ProjectConfigSchema = z.object({
342
343
  tools: z.object({
343
344
  enabled: z.array(z.string()).optional(),
344
345
  denied: z.array(z.string()).optional(),
345
- config: z.record(z.any()).optional()
346
+ config: z.record(z.string(), z.any()).optional()
346
347
  }).optional(),
347
348
  defaultModel: z.string().optional(),
348
349
  mcpServers: McpServersSchema.optional(),
@@ -432,7 +433,7 @@ async function loadProjectConfig(projectDir) {
432
433
  return null;
433
434
  }
434
435
  if (error instanceof z.ZodError) {
435
- console.error("Project config validation error:", error.errors);
436
+ console.error("Project config validation error:", error.issues);
436
437
  return null;
437
438
  }
438
439
  console.error("Failed to load project config:", error);
@@ -455,7 +456,7 @@ async function loadProjectLocalConfig(projectDir) {
455
456
  return null;
456
457
  }
457
458
  if (error instanceof z.ZodError) {
458
- console.error("Project local config validation error:", error.errors);
459
+ console.error("Project local config validation error:", error.issues);
459
460
  return null;
460
461
  }
461
462
  console.error("Failed to load project local config:", error);
@@ -478,7 +479,7 @@ async function loadMcpJsonConfig(projectDir) {
478
479
  return null;
479
480
  }
480
481
  if (error instanceof z.ZodError) {
481
- console.error(".mcp.json validation error:", error.errors);
482
+ console.error(".mcp.json validation error:", error.issues);
482
483
  return null;
483
484
  }
484
485
  console.error("Failed to load .mcp.json:", error);
@@ -620,7 +621,7 @@ var ConfigStore = class {
620
621
  if (error.code === "ENOENT") {
621
622
  globalConfig = { ...DEFAULT_CONFIG };
622
623
  } else if (error instanceof z.ZodError) {
623
- console.error("Global config validation error:", error.errors);
624
+ console.error("Global config validation error:", error.issues);
624
625
  console.error("Using default configuration");
625
626
  globalConfig = { ...DEFAULT_CONFIG };
626
627
  } else {
@@ -657,7 +658,7 @@ var ConfigStore = class {
657
658
  return this.reset();
658
659
  }
659
660
  if (error instanceof z.ZodError) {
660
- console.error("Config validation error:", error.errors);
661
+ console.error("Config validation error:", error.issues);
661
662
  console.error("Resetting to default configuration");
662
663
  return this.reset();
663
664
  }