@bike4mind/cli 0.2.31-b4m-cli-undo-command.19493 → 0.2.31-b4m-cli-undo-command.19534

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
@@ -1,22 +1,26 @@
1
1
  #!/usr/bin/env node
2
+ import "./chunk-GQGOWACU.js";
3
+ import "./chunk-F4PXVLZX.js";
4
+ import "./chunk-ERV5G6MX.js";
2
5
  import "./chunk-BPFEGDC7.js";
3
6
  import "./chunk-BDQBOLYG.js";
4
7
  import {
5
8
  getEffectiveApiKey,
6
9
  getOpenWeatherKey,
7
10
  getSerperKey
8
- } from "./chunk-T67NGQW6.js";
9
- import "./chunk-GQGOWACU.js";
11
+ } from "./chunk-JWJF6O4L.js";
10
12
  import {
11
13
  ConfigStore,
12
14
  logger
13
- } from "./chunk-LBTTUQJM.js";
15
+ } from "./chunk-32PKF3N7.js";
16
+ import {
17
+ checkForUpdate,
18
+ package_default
19
+ } from "./chunk-WVFOWKNW.js";
14
20
  import {
15
21
  selectActiveBackgroundAgents,
16
22
  useCliStore
17
23
  } from "./chunk-BYXFQJYT.js";
18
- import "./chunk-2LLA4MTN.js";
19
- import "./chunk-ZOWCX4MQ.js";
20
24
  import {
21
25
  BFLImageService,
22
26
  BaseStorage,
@@ -28,7 +32,7 @@ import {
28
32
  OpenAIBackend,
29
33
  OpenAIImageService,
30
34
  XAIImageService
31
- } from "./chunk-RI45VJW3.js";
35
+ } from "./chunk-3SPW5FYJ.js";
32
36
  import {
33
37
  AiEvents,
34
38
  ApiKeyEvents,
@@ -86,10 +90,10 @@ import {
86
90
  getMcpProviderMetadata,
87
91
  getViewById,
88
92
  resolveNavigationIntents
89
- } from "./chunk-GE7Q64MS.js";
93
+ } from "./chunk-NI22LIK3.js";
90
94
  import {
91
95
  Logger
92
- } from "./chunk-OCYRD7D6.js";
96
+ } from "./chunk-PFBYGCOW.js";
93
97
 
94
98
  // src/index.tsx
95
99
  import React21, { useState as useState10, useEffect as useEffect7, useCallback as useCallback2, useRef as useRef3 } from "react";
@@ -3220,7 +3224,7 @@ var AgentConfigSchema = z.union([
3220
3224
  type: z.string(),
3221
3225
  // Agent type name
3222
3226
  thoroughness: z.enum(["quick", "medium", "very_thorough"]).optional(),
3223
- config: z.record(z.unknown()).optional()
3227
+ config: z.record(z.string(), z.unknown()).optional()
3224
3228
  // Additional agent-specific config
3225
3229
  })
3226
3230
  ]);
@@ -3228,6 +3232,7 @@ var VALID_MODELS = ["opus", "sonnet", "haiku"];
3228
3232
  var FrontmatterSchema = z.object({
3229
3233
  // Display name for the skill (defaults to filename if not specified)
3230
3234
  name: z.string().optional(),
3235
+ // Command description
3231
3236
  description: flexibleString,
3232
3237
  "argument-hint": flexibleString,
3233
3238
  // Model override - validated against allowed values (opus, sonnet, haiku)
@@ -3235,16 +3240,16 @@ var FrontmatterSchema = z.object({
3235
3240
  // Agent integration fields
3236
3241
  agent: AgentConfigSchema.optional(),
3237
3242
  thoroughness: z.enum(["quick", "medium", "very_thorough"]).optional(),
3238
- variables: z.record(z.string()).optional(),
3243
+ variables: z.record(z.string(), z.string()).optional(),
3239
3244
  // Tool filtering - restrict which tools are available during skill execution
3240
3245
  "allowed-tools": flexibleStringArray,
3241
3246
  // Execution context: 'inline' (default) runs in main context, 'fork' runs in subagent
3242
- context: z.enum(["fork", "inline"]).default("inline"),
3247
+ context: z.enum(["fork", "inline"]).prefault("inline"),
3243
3248
  // Visibility controls
3244
3249
  /** When true, skill is hidden from AI's auto-loading in system prompt */
3245
- "disable-model-invocation": z.boolean().default(false),
3250
+ "disable-model-invocation": z.boolean().prefault(false),
3246
3251
  /** When false, skill is hidden from /commands menu but still callable */
3247
- "user-invocable": z.boolean().default(true),
3252
+ "user-invocable": z.boolean().prefault(true),
3248
3253
  // Lifecycle hooks
3249
3254
  hooks: HooksSchema
3250
3255
  });
@@ -4341,7 +4346,7 @@ var loginUserSchema = z5.object({
4341
4346
  colorDepth: z5.number(),
4342
4347
  pixelDepth: z5.number(),
4343
4348
  devicePixelRatio: z5.number(),
4344
- ip: z5.string().optional().default(""),
4349
+ ip: z5.string().optional().prefault(""),
4345
4350
  location: z5.string().optional()
4346
4351
  }).optional()
4347
4352
  });
@@ -4354,7 +4359,7 @@ import escapeRegExp from "lodash/escapeRegExp.js";
4354
4359
  import { randomUUID } from "crypto";
4355
4360
  import { z as z6 } from "zod";
4356
4361
  var forgotPasswordUserSchema = z6.object({
4357
- email: z6.string().email()
4362
+ email: z6.email()
4358
4363
  });
4359
4364
 
4360
4365
  // ../../b4m-core/packages/services/dist/src/userService/update.js
@@ -4402,7 +4407,7 @@ var sendFriendRequestSchema = z8.object({
4402
4407
  var adminUpdateUserSchema = updateUserSchema.extend({
4403
4408
  id: z9.string(),
4404
4409
  // Admins can directly update email addresses without verification
4405
- email: z9.string().email().optional(),
4410
+ email: z9.email().optional(),
4406
4411
  role: z9.string().optional().nullable(),
4407
4412
  isAdmin: z9.boolean().optional(),
4408
4413
  organizationId: z9.string().optional().nullable(),
@@ -4449,7 +4454,7 @@ var registerUserSchema = z11.object({
4449
4454
  colorDepth: z11.number(),
4450
4455
  pixelDepth: z11.number(),
4451
4456
  devicePixelRatio: z11.number(),
4452
- ip: z11.string().optional().default(""),
4457
+ ip: z11.string().optional().prefault(""),
4453
4458
  location: z11.string().optional()
4454
4459
  }).optional()
4455
4460
  });
@@ -4464,10 +4469,10 @@ var adminDeleteUserSchema = z12.object({
4464
4469
  import { z as z13 } from "zod";
4465
4470
  var searchUserCollectionSchema = z13.object({
4466
4471
  userId: z13.string(),
4467
- page: z13.coerce.number().optional().default(1),
4468
- limit: z13.coerce.number().optional().default(10),
4469
- search: z13.string().optional().default(""),
4470
- type: z13.nativeEnum(CollectionType).optional()
4472
+ page: z13.coerce.number().optional().prefault(1),
4473
+ limit: z13.coerce.number().optional().prefault(10),
4474
+ search: z13.string().optional().prefault(""),
4475
+ type: z13.enum(CollectionType).optional()
4471
4476
  });
4472
4477
 
4473
4478
  // ../../b4m-core/packages/services/dist/src/userService/recalculateUserStorage.js
@@ -4482,7 +4487,7 @@ var recalculateUserStorageSchema = z14.object({
4482
4487
  // ../../b4m-core/packages/services/dist/src/userService/listRecentActivities.js
4483
4488
  import { z as z15 } from "zod";
4484
4489
  var listRecentActivitiesSchema = z15.object({
4485
- coverage: z15.enum(["all", "important"]).default("important"),
4490
+ coverage: z15.enum(["all", "important"]).prefault("important"),
4486
4491
  userId: z15.string().optional()
4487
4492
  });
4488
4493
  var IMPORTANT_COUNTER_NAMES = [
@@ -4525,7 +4530,7 @@ import { randomUUID as randomUUID4 } from "crypto";
4525
4530
  import { z as z19 } from "zod";
4526
4531
  var requestEmailChangeSchema = z19.object({
4527
4532
  userId: z19.string(),
4528
- newEmail: z19.string().email(),
4533
+ newEmail: z19.email(),
4529
4534
  password: z19.string()
4530
4535
  });
4531
4536
 
@@ -4547,11 +4552,11 @@ import bcrypt5 from "bcryptjs";
4547
4552
  import { z as z22 } from "zod";
4548
4553
  var createUserApiKeySchema = z22.object({
4549
4554
  name: z22.string().min(1).max(100),
4550
- scopes: z22.array(z22.nativeEnum(ApiKeyScope)).min(1),
4555
+ scopes: z22.array(z22.enum(ApiKeyScope)).min(1),
4551
4556
  expiresAt: z22.date().optional(),
4552
4557
  rateLimit: z22.object({
4553
- requestsPerMinute: z22.number().min(1).max(1e3).default(60),
4554
- requestsPerDay: z22.number().min(1).max(1e4).default(1e3)
4558
+ requestsPerMinute: z22.number().min(1).max(1e3).prefault(60),
4559
+ requestsPerDay: z22.number().min(1).max(1e4).prefault(1e3)
4555
4560
  }).optional(),
4556
4561
  metadata: z22.object({
4557
4562
  clientIP: z22.string().optional(),
@@ -4740,8 +4745,8 @@ var generateDailyReportSchema = z26.object({
4740
4745
  import { z as z27 } from "zod";
4741
4746
  var incrementUserCounterSchema = z27.object({
4742
4747
  action: z27.string(),
4743
- increment: z27.coerce.number().default(1).optional(),
4744
- metadata: z27.record(z27.unknown()).optional()
4748
+ increment: z27.coerce.number().prefault(1).optional(),
4749
+ metadata: z27.record(z27.string(), z27.unknown()).optional()
4745
4750
  });
4746
4751
 
4747
4752
  // ../../b4m-core/packages/services/dist/src/countersService/sendSlackReport.js
@@ -4765,57 +4770,57 @@ import axios3 from "axios";
4765
4770
  import { z as z28 } from "zod";
4766
4771
  import last from "lodash/last.js";
4767
4772
  var epochDate = () => z28.preprocess((val) => new Date(Number(val) * 1e3), z28.date());
4768
- var openaiConversationSchema = z28.object({
4773
+ var openaiConversationSchema = z28.looseObject({
4769
4774
  id: z28.string(),
4770
4775
  title: z28.string(),
4771
4776
  create_time: epochDate(),
4772
4777
  update_time: epochDate().nullable(),
4773
4778
  mapping: z28.record(
4774
4779
  z28.string(),
4775
- z28.object({
4780
+ z28.looseObject({
4776
4781
  id: z28.string(),
4777
4782
  parent: z28.string().nullable(),
4778
4783
  children: z28.array(z28.string()),
4779
- message: z28.object({
4784
+ message: z28.looseObject({
4780
4785
  id: z28.string(),
4781
4786
  create_time: epochDate(),
4782
4787
  update_time: epochDate().nullable(),
4783
- author: z28.object({
4788
+ author: z28.looseObject({
4784
4789
  role: z28.string(),
4785
4790
  name: z28.string().nullable(),
4786
4791
  metadata: z28.any()
4787
4792
  // Accept any metadata structure
4788
- }).passthrough(),
4793
+ }),
4789
4794
  // Allow extra fields in author
4790
- content: z28.object({
4795
+ content: z28.looseObject({
4791
4796
  content_type: z28.string(),
4792
4797
  parts: z28.array(z28.any()).optional()
4793
4798
  // Accept any type in parts array (strings, objects, etc.)
4794
- }).passthrough(),
4799
+ }),
4795
4800
  // Allow extra fields in content
4796
4801
  status: z28.string(),
4797
4802
  end_turn: z28.boolean().nullable(),
4798
4803
  metadata: z28.any(),
4799
4804
  // Accept any metadata structure since it varies widely
4800
4805
  recipient: z28.string()
4801
- }).passthrough().nullable()
4802
- }).passthrough()
4806
+ }).nullable()
4807
+ })
4803
4808
  // Allow extra fields in mapping node
4804
4809
  )
4805
- }).passthrough();
4810
+ });
4806
4811
 
4807
4812
  // ../../b4m-core/packages/services/dist/src/importHistoryService/importClaudeHistory.js
4808
4813
  import { z as z29 } from "zod";
4809
- var claudeChatMessageSchema = z29.object({
4810
- uuid: z29.string().uuid(),
4814
+ var claudeChatMessageSchema = z29.looseObject({
4815
+ uuid: z29.uuid(),
4811
4816
  text: z29.string(),
4812
4817
  content: z29.array(
4813
- z29.object({
4818
+ z29.looseObject({
4814
4819
  type: z29.string(),
4815
4820
  // Accept any type: "text", "image", "tool_result", etc.
4816
4821
  text: z29.string().optional()
4817
4822
  // Make text optional since tool_result may not have it
4818
- }).passthrough()
4823
+ })
4819
4824
  // Allow all other fields
4820
4825
  ),
4821
4826
  sender: z29.enum(["human", "assistant"]),
@@ -4825,19 +4830,19 @@ var claudeChatMessageSchema = z29.object({
4825
4830
  // Accept any attachment structure
4826
4831
  files: z29.array(z29.any())
4827
4832
  // Accept any file structure
4828
- }).passthrough();
4829
- var claudeConversationSchema = z29.object({
4830
- uuid: z29.string().uuid(),
4833
+ });
4834
+ var claudeConversationSchema = z29.looseObject({
4835
+ uuid: z29.uuid(),
4831
4836
  name: z29.string(),
4832
4837
  summary: z29.string().optional(),
4833
4838
  // Summary field is optional
4834
4839
  created_at: z29.coerce.date(),
4835
4840
  updated_at: z29.coerce.date(),
4836
- account: z29.object({
4837
- uuid: z29.string().uuid()
4841
+ account: z29.looseObject({
4842
+ uuid: z29.uuid()
4838
4843
  }),
4839
4844
  chat_messages: z29.array(claudeChatMessageSchema)
4840
- }).passthrough();
4845
+ });
4841
4846
 
4842
4847
  // ../../b4m-core/packages/services/dist/src/importHistoryService/index.js
4843
4848
  var ImportSource;
@@ -4889,7 +4894,7 @@ var searchProjectsSchema = z34.object({
4889
4894
  search: z34.string().optional(),
4890
4895
  filters: z34.object({
4891
4896
  favorite: z34.coerce.boolean().optional(),
4892
- scope: z34.record(z34.any()).optional()
4897
+ scope: z34.record(z34.string(), z34.any()).optional()
4893
4898
  }).optional(),
4894
4899
  pagination: z34.object({
4895
4900
  page: z34.coerce.number().optional(),
@@ -4915,15 +4920,15 @@ var acceptInviteSchema = z35.object({
4915
4920
  import { z as z36 } from "zod";
4916
4921
  var cancelInviteSchema = z36.object({
4917
4922
  id: z36.string(),
4918
- type: z36.nativeEnum(InviteType),
4919
- email: z36.string().email().optional()
4923
+ type: z36.enum(InviteType),
4924
+ email: z36.email().optional()
4920
4925
  });
4921
4926
 
4922
4927
  // ../../b4m-core/packages/services/dist/src/sharingService/cancelOwnDocument.js
4923
4928
  import { z as z37 } from "zod";
4924
4929
  var cancelOwnDocumentInvitesSchema = z37.object({
4925
4930
  documentId: z37.string(),
4926
- type: z37.nativeEnum(InviteType)
4931
+ type: z37.enum(InviteType)
4927
4932
  });
4928
4933
 
4929
4934
  // ../../b4m-core/packages/services/dist/src/sharingService/create.js
@@ -4932,12 +4937,12 @@ var defaultExpiration = () => new Date((/* @__PURE__ */ new Date()).getFullYear(
4932
4937
  var DEFAULT_AVAILABLE = 1;
4933
4938
  var createInviteSchema = z38.object({
4934
4939
  id: z38.string(),
4935
- type: z38.nativeEnum(InviteType),
4936
- permissions: z38.array(z38.nativeEnum(Permission)),
4940
+ type: z38.enum(InviteType),
4941
+ permissions: z38.array(z38.enum(Permission)),
4937
4942
  recipients: z38.string().array().optional(),
4938
4943
  description: z38.string().optional(),
4939
- expiresAt: z38.date().optional().default(defaultExpiration()),
4940
- available: z38.number().optional().default(DEFAULT_AVAILABLE)
4944
+ expiresAt: z38.date().optional().prefault(defaultExpiration()),
4945
+ available: z38.number().optional().prefault(DEFAULT_AVAILABLE)
4941
4946
  });
4942
4947
 
4943
4948
  // ../../b4m-core/packages/services/dist/src/sharingService/get.js
@@ -4951,14 +4956,14 @@ var getInviteSchema = z39.object({
4951
4956
  import { z as z40 } from "zod";
4952
4957
  var listInviteByDocumentIdAndTypeSchema = z40.object({
4953
4958
  documentId: z40.string(),
4954
- type: z40.nativeEnum(InviteType)
4959
+ type: z40.enum(InviteType)
4955
4960
  });
4956
4961
 
4957
4962
  // ../../b4m-core/packages/services/dist/src/sharingService/listOwnPending.js
4958
4963
  import { z as z41 } from "zod";
4959
4964
  var listOwnPendingInvitesSchema = z41.object({
4960
- limit: z41.number().min(1).max(100).default(20),
4961
- page: z41.number().min(1).default(1)
4965
+ limit: z41.number().min(1).max(100).prefault(20),
4966
+ page: z41.number().min(1).prefault(1)
4962
4967
  });
4963
4968
 
4964
4969
  // ../../b4m-core/packages/services/dist/src/sharingService/refuse.js
@@ -4981,13 +4986,13 @@ import { z as z44 } from "zod";
4981
4986
  import uniq from "lodash/uniq.js";
4982
4987
  var addFilesProjectSchema = z44.object({
4983
4988
  projectId: z44.string().nonempty(),
4984
- fileIds: z44.array(z44.string().nonempty())
4989
+ fileIds: z44.tuple([z44.string()], z44.string())
4985
4990
  });
4986
4991
 
4987
4992
  // ../../b4m-core/packages/services/dist/src/projectService/addSessions.js
4988
4993
  var addSessionsProjectSchema = z45.object({
4989
4994
  projectId: z45.string().nonempty(),
4990
- sessionIds: z45.array(z45.string().nonempty())
4995
+ sessionIds: z45.tuple([z45.string()], z45.string())
4991
4996
  });
4992
4997
 
4993
4998
  // ../../b4m-core/packages/services/dist/src/projectService/get.js
@@ -5040,9 +5045,9 @@ var listProjectFilesSchema = z52.object({
5040
5045
  import { z as z53 } from "zod";
5041
5046
  var listProjectInvitesParamsSchema = z53.object({
5042
5047
  id: z53.string(),
5043
- statuses: z53.string().optional().default(""),
5044
- limit: z53.coerce.number().optional().default(10),
5045
- page: z53.coerce.number().optional().default(1)
5048
+ statuses: z53.string().optional().prefault(""),
5049
+ limit: z53.coerce.number().optional().prefault(10),
5050
+ page: z53.coerce.number().optional().prefault(1)
5046
5051
  });
5047
5052
 
5048
5053
  // ../../b4m-core/packages/services/dist/src/projectService/addSystemPrompts.js
@@ -5073,14 +5078,14 @@ import { z as z59 } from "zod";
5073
5078
  import { z as z57 } from "zod";
5074
5079
  var createFavoriteParametersSchema = z57.object({
5075
5080
  documentId: z57.string(),
5076
- documentType: z57.nativeEnum(FavoriteDocumentType)
5081
+ documentType: z57.enum(FavoriteDocumentType)
5077
5082
  });
5078
5083
 
5079
5084
  // ../../b4m-core/packages/services/dist/src/favoriteService/delete.js
5080
5085
  import { z as z58 } from "zod";
5081
5086
  var deleteFavoriteParametersSchema = z58.object({
5082
5087
  documentId: z58.string(),
5083
- documentType: z58.nativeEnum(FavoriteDocumentType)
5088
+ documentType: z58.enum(FavoriteDocumentType)
5084
5089
  });
5085
5090
 
5086
5091
  // ../../b4m-core/packages/services/dist/src/projectService/addFavorite.js
@@ -5187,18 +5192,18 @@ var searchSchema2 = z72.object({
5187
5192
  filters: z72.object({
5188
5193
  personal: z72.union([z72.enum(["true", "false"]).transform((val) => val === "true"), z72.boolean()]).optional(),
5189
5194
  userId: z72.string().optional()
5190
- }).default({}),
5195
+ }).prefault({}),
5191
5196
  pagination: z72.object({
5192
- page: z72.coerce.number().int().positive().default(1),
5193
- limit: z72.coerce.number().int().positive().max(100).default(10)
5194
- }).default({
5197
+ page: z72.coerce.number().int().positive().prefault(1),
5198
+ limit: z72.coerce.number().int().positive().max(100).prefault(10)
5199
+ }).prefault({
5195
5200
  page: 1,
5196
5201
  limit: 10
5197
5202
  }),
5198
5203
  orderBy: z72.object({
5199
- field: z72.enum(["name", "createdAt", "updatedAt"]).default("name"),
5200
- direction: z72.enum(["asc", "desc"]).default("asc")
5201
- }).default({
5204
+ field: z72.enum(["name", "createdAt", "updatedAt"]).prefault("name"),
5205
+ direction: z72.enum(["asc", "desc"]).prefault("asc")
5206
+ }).prefault({
5202
5207
  field: "name",
5203
5208
  direction: "asc"
5204
5209
  })
@@ -5233,8 +5238,8 @@ var getUsersSchema = z75.object({
5233
5238
  import { z as z76 } from "zod";
5234
5239
  var createSchema = z76.object({
5235
5240
  name: z76.string(),
5236
- personal: z76.boolean().default(false),
5237
- seats: z76.number().default(1),
5241
+ personal: z76.boolean().prefault(false),
5242
+ seats: z76.number().prefault(1),
5238
5243
  stripeCustomerId: z76.string().nullable(),
5239
5244
  billingOwnerId: z76.string().optional(),
5240
5245
  // Optional billing owner (defaults to user if not provided)
@@ -5286,10 +5291,10 @@ var organizationLeaveSchema = z81.object({
5286
5291
  import { z as z82 } from "zod";
5287
5292
  var createApiKeySchema = z82.object({
5288
5293
  apiKey: z82.string().min(6),
5289
- description: z82.string().optional().default(""),
5290
- isActive: z82.boolean().optional().default(true),
5291
- type: z82.nativeEnum(ApiKeyType),
5292
- expireDays: z82.number().min(1).max(365).default(90)
5294
+ description: z82.string().optional().prefault(""),
5295
+ isActive: z82.boolean().optional().prefault(true),
5296
+ type: z82.enum(ApiKeyType),
5297
+ expireDays: z82.number().min(1).max(365).prefault(90)
5293
5298
  // Default 90-day expiration
5294
5299
  });
5295
5300
 
@@ -5297,7 +5302,7 @@ var createApiKeySchema = z82.object({
5297
5302
  import { z as z83 } from "zod";
5298
5303
  var setApiKeySchema = z83.object({
5299
5304
  id: z83.string(),
5300
- type: z83.nativeEnum(ApiKeyType)
5305
+ type: z83.enum(ApiKeyType)
5301
5306
  });
5302
5307
 
5303
5308
  // ../../b4m-core/packages/services/dist/src/apiKeyService/delete.js
@@ -5327,7 +5332,7 @@ var updateFabFileSchema = z87.object({
5327
5332
  fileName: z87.string().optional(),
5328
5333
  mimeType: z87.string().optional(),
5329
5334
  fileContent: z87.string().optional(),
5330
- type: z87.nativeEnum(KnowledgeType).optional(),
5335
+ type: z87.enum(KnowledgeType).optional(),
5331
5336
  system: z87.boolean().optional(),
5332
5337
  systemPriority: z87.number().min(0).max(999).optional(),
5333
5338
  sessionId: z87.string().optional(),
@@ -5435,8 +5440,8 @@ var editFabFileSchema = z98.object({
5435
5440
  start: z98.number(),
5436
5441
  end: z98.number()
5437
5442
  }).optional(),
5438
- preserveFormatting: z98.boolean().optional().default(true),
5439
- applyImmediately: z98.boolean().optional().default(false)
5443
+ preserveFormatting: z98.boolean().optional().prefault(true),
5444
+ applyImmediately: z98.boolean().optional().prefault(false)
5440
5445
  });
5441
5446
 
5442
5447
  // ../../b4m-core/packages/services/dist/src/fabFileService/applyEdit.js
@@ -5446,7 +5451,7 @@ import { z as z99 } from "zod";
5446
5451
  var applyEditSchema = z99.object({
5447
5452
  id: z99.string(),
5448
5453
  modifiedContent: z99.string(),
5449
- createBackup: z99.boolean().optional().default(true)
5454
+ createBackup: z99.boolean().optional().prefault(true)
5450
5455
  });
5451
5456
 
5452
5457
  // ../../b4m-core/packages/services/dist/src/friendshipService/respondToFriendRequest.js
@@ -5957,8 +5962,8 @@ var researchTaskCreateSchema = z114.object({
5957
5962
  title: z114.string().max(100),
5958
5963
  description: z114.string().max(500),
5959
5964
  prompt: z114.string().max(500).optional(),
5960
- type: z114.nativeEnum(ResearchTaskType),
5961
- executionType: z114.nativeEnum(ResearchTaskExecutionType).default(ResearchTaskExecutionType.ON_DEMAND),
5965
+ type: z114.enum(ResearchTaskType),
5966
+ executionType: z114.enum(ResearchTaskExecutionType).prefault(ResearchTaskExecutionType.ON_DEMAND),
5962
5967
  fileTagId: z114.string().optional(),
5963
5968
  autoGeneratedTag: z114.object({
5964
5969
  name: z114.string(),
@@ -5967,13 +5972,13 @@ var researchTaskCreateSchema = z114.object({
5967
5972
  }).optional()
5968
5973
  });
5969
5974
  var researchTaskScrapeCreateSchema = researchTaskCreateSchema.extend({
5970
- urls: z114.array(z114.string().url()).min(1),
5975
+ urls: z114.array(z114.url()).min(1),
5971
5976
  canDiscoverLinks: z114.boolean()
5972
5977
  });
5973
5978
  var researchTaskPeriodicCreateSchema = researchTaskCreateSchema.extend({
5974
5979
  executionPeriodicStartAt: z114.coerce.date(),
5975
5980
  executionPeriodicEndAt: z114.coerce.date(),
5976
- executionPeriodicFrequency: z114.nativeEnum(ResearchTaskPeriodicFrequencyType)
5981
+ executionPeriodicFrequency: z114.enum(ResearchTaskPeriodicFrequencyType)
5977
5982
  });
5978
5983
  var researchTaskScheduledCreateSchema = researchTaskCreateSchema.extend({
5979
5984
  executionScheduledAt: z114.coerce.date()
@@ -6014,10 +6019,10 @@ var updateResearchTaskSchema = z117.object({
6014
6019
  id: z117.string(),
6015
6020
  title: z117.string(),
6016
6021
  description: z117.string(),
6017
- type: z117.nativeEnum(ResearchTaskType)
6022
+ type: z117.enum(ResearchTaskType)
6018
6023
  });
6019
6024
  var researchTaskScrapeUpdateSchema = updateResearchTaskSchema.extend({
6020
- urls: z117.array(z117.string().url()).min(1),
6025
+ urls: z117.array(z117.url()).min(1),
6021
6026
  canDiscoverLinks: z117.boolean()
6022
6027
  });
6023
6028
 
@@ -6103,7 +6108,7 @@ var tagCreateSchema = z126.object({
6103
6108
  icon: z126.string().optional(),
6104
6109
  description: z126.string().optional(),
6105
6110
  color: z126.string().optional(),
6106
- type: z126.nativeEnum(TagType)
6111
+ type: z126.enum(TagType)
6107
6112
  });
6108
6113
 
6109
6114
  // ../../b4m-core/packages/services/dist/src/tagService/update.js
@@ -6145,28 +6150,28 @@ var createArtifactSchema = z129.object({
6145
6150
  content: z129.string().min(1),
6146
6151
  projectId: z129.string().optional(),
6147
6152
  organizationId: z129.string().optional(),
6148
- visibility: z129.enum(["private", "project", "organization", "public"]).default("private"),
6149
- tags: z129.array(z129.string().max(50)).max(20).default([]),
6153
+ visibility: z129.enum(["private", "project", "organization", "public"]).prefault("private"),
6154
+ tags: z129.array(z129.string().max(50)).max(20).prefault([]),
6150
6155
  versionTag: z129.string().max(100).optional(),
6151
6156
  sourceQuestId: z129.string().optional(),
6152
6157
  sessionId: z129.string().optional(),
6153
6158
  parentArtifactId: z129.string().optional(),
6154
6159
  permissions: z129.object({
6155
- canRead: z129.array(z129.string()).default([]),
6156
- canWrite: z129.array(z129.string()).default([]),
6157
- canDelete: z129.array(z129.string()).default([]),
6158
- isPublic: z129.boolean().default(false),
6159
- inheritFromProject: z129.boolean().default(true)
6160
+ canRead: z129.array(z129.string()).prefault([]),
6161
+ canWrite: z129.array(z129.string()).prefault([]),
6162
+ canDelete: z129.array(z129.string()).prefault([]),
6163
+ isPublic: z129.boolean().prefault(false),
6164
+ inheritFromProject: z129.boolean().prefault(true)
6160
6165
  }).optional(),
6161
- metadata: z129.record(z129.unknown()).default({})
6166
+ metadata: z129.record(z129.string(), z129.unknown()).prefault({})
6162
6167
  });
6163
6168
 
6164
6169
  // ../../b4m-core/packages/services/dist/src/artifactService/get.js
6165
6170
  import { z as z130 } from "zod";
6166
6171
  var getArtifactSchema = z130.object({
6167
6172
  id: z130.string(),
6168
- includeContent: z130.boolean().default(false),
6169
- includeVersions: z130.boolean().default(false),
6173
+ includeContent: z130.boolean().prefault(false),
6174
+ includeVersions: z130.boolean().prefault(false),
6170
6175
  version: z130.number().optional()
6171
6176
  });
6172
6177
 
@@ -6180,11 +6185,11 @@ var listArtifactsSchema = z131.object({
6180
6185
  sessionId: z131.string().optional(),
6181
6186
  tags: z131.array(z131.string()).optional(),
6182
6187
  search: z131.string().optional(),
6183
- limit: z131.number().min(1).max(100).default(20),
6184
- offset: z131.number().min(0).default(0),
6185
- sortBy: z131.enum(["createdAt", "updatedAt", "title", "type"]).default("updatedAt"),
6186
- sortOrder: z131.enum(["asc", "desc"]).default("desc"),
6187
- includeDeleted: z131.boolean().default(false)
6188
+ limit: z131.number().min(1).max(100).prefault(20),
6189
+ offset: z131.number().min(0).prefault(0),
6190
+ sortBy: z131.enum(["createdAt", "updatedAt", "title", "type"]).prefault("updatedAt"),
6191
+ sortOrder: z131.enum(["asc", "desc"]).prefault("desc"),
6192
+ includeDeleted: z131.boolean().prefault(false)
6188
6193
  });
6189
6194
 
6190
6195
  // ../../b4m-core/packages/services/dist/src/artifactService/update.js
@@ -6205,7 +6210,7 @@ var updateArtifactSchema = z132.object({
6205
6210
  isPublic: z132.boolean().optional(),
6206
6211
  inheritFromProject: z132.boolean().optional()
6207
6212
  }).optional(),
6208
- metadata: z132.record(z132.unknown()).optional(),
6213
+ metadata: z132.record(z132.string(), z132.unknown()).optional(),
6209
6214
  changes: z132.array(z132.string()).optional(),
6210
6215
  changeDescription: z132.string().max(1e3).optional(),
6211
6216
  createNewVersion: z132.boolean().optional(),
@@ -6216,7 +6221,7 @@ var updateArtifactSchema = z132.object({
6216
6221
  import { z as z133 } from "zod";
6217
6222
  var deleteArtifactSchema = z133.object({
6218
6223
  id: z133.string(),
6219
- hardDelete: z133.boolean().default(false)
6224
+ hardDelete: z133.boolean().prefault(false)
6220
6225
  // For future implementation
6221
6226
  });
6222
6227
 
@@ -6226,14 +6231,14 @@ var questSchema = z134.object({
6226
6231
  id: z134.string(),
6227
6232
  title: z134.string().min(1).max(255),
6228
6233
  description: z134.string().max(MAX_DESCRIPTION_LENGTH),
6229
- status: z134.enum(["not_started", "in_progress", "completed", "blocked"]).default("not_started"),
6234
+ status: z134.enum(["not_started", "in_progress", "completed", "blocked"]).prefault("not_started"),
6230
6235
  order: z134.number().min(0),
6231
- dependencies: z134.array(z134.string()).default([]),
6236
+ dependencies: z134.array(z134.string()).prefault([]),
6232
6237
  estimatedTime: z134.string().optional()
6233
6238
  });
6234
6239
  var questResourceSchema = z134.object({
6235
6240
  title: z134.string().min(1).max(255),
6236
- url: z134.string().url(),
6241
+ url: z134.url(),
6237
6242
  type: z134.enum(["documentation", "tutorial", "reference", "example"])
6238
6243
  });
6239
6244
  var createQuestMasterSchema = z134.object({
@@ -6242,23 +6247,23 @@ var createQuestMasterSchema = z134.object({
6242
6247
  goal: z134.string().min(1).max(MAX_GOAL_LENGTH),
6243
6248
  complexity: z134.enum(["beginner", "intermediate", "advanced", "expert"]),
6244
6249
  estimatedTotalTime: z134.string().optional(),
6245
- prerequisites: z134.array(z134.string().max(200)).default([]),
6250
+ prerequisites: z134.array(z134.string().max(200)).prefault([]),
6246
6251
  quests: z134.array(questSchema).min(1),
6247
- resources: z134.array(questResourceSchema).default([]),
6252
+ resources: z134.array(questResourceSchema).prefault([]),
6248
6253
  projectId: z134.string().optional(),
6249
6254
  organizationId: z134.string().optional(),
6250
- visibility: z134.enum(["private", "project", "organization", "public"]).default("private"),
6251
- tags: z134.array(z134.string().max(MAX_TAG_LENGTH)).max(20).default([]),
6255
+ visibility: z134.enum(["private", "project", "organization", "public"]).prefault("private"),
6256
+ tags: z134.array(z134.string().max(MAX_TAG_LENGTH)).max(20).prefault([]),
6252
6257
  permissions: z134.object({
6253
- canRead: z134.array(z134.string()).default([]),
6254
- canWrite: z134.array(z134.string()).default([]),
6255
- canDelete: z134.array(z134.string()).default([]),
6256
- isPublic: z134.boolean().default(false),
6257
- inheritFromProject: z134.boolean().default(true)
6258
+ canRead: z134.array(z134.string()).prefault([]),
6259
+ canWrite: z134.array(z134.string()).prefault([]),
6260
+ canDelete: z134.array(z134.string()).prefault([]),
6261
+ isPublic: z134.boolean().prefault(false),
6262
+ inheritFromProject: z134.boolean().prefault(true)
6258
6263
  }).optional(),
6259
6264
  sourceQuestId: z134.string().optional(),
6260
6265
  sessionId: z134.string().optional(),
6261
- metadata: z134.record(z134.unknown()).default({})
6266
+ metadata: z134.record(z134.string(), z134.unknown()).prefault({})
6262
6267
  });
6263
6268
 
6264
6269
  // ../../b4m-core/packages/services/dist/src/questMasterService/updateQuestStatus.js
@@ -6326,20 +6331,20 @@ import { z as z137 } from "zod";
6326
6331
  var llmAnalysisResponseSchema = z137.object({
6327
6332
  summary: z137.string().min(1, "Summary cannot be empty"),
6328
6333
  entities: z137.object({
6329
- companies: z137.array(z137.string()).default([]),
6330
- people: z137.array(z137.string()).default([]),
6331
- products: z137.array(z137.string()).default([]),
6332
- technologies: z137.array(z137.string()).default([])
6334
+ companies: z137.array(z137.string()).prefault([]),
6335
+ people: z137.array(z137.string()).prefault([]),
6336
+ products: z137.array(z137.string()).prefault([]),
6337
+ technologies: z137.array(z137.string()).prefault([])
6333
6338
  }),
6334
6339
  sentiment: z137.enum(["positive", "neutral", "negative", "urgent"]),
6335
6340
  actionItems: z137.array(z137.object({
6336
6341
  description: z137.string(),
6337
6342
  deadline: z137.string().optional()
6338
6343
  // ISO date string from LLM
6339
- })).default([]),
6344
+ })).prefault([]),
6340
6345
  privacyRecommendation: z137.enum(["public", "team", "private"]),
6341
- embargoDetected: z137.boolean().default(false),
6342
- suggestedTags: z137.array(z137.string()).default([])
6346
+ embargoDetected: z137.boolean().prefault(false),
6347
+ suggestedTags: z137.array(z137.string()).prefault([])
6343
6348
  });
6344
6349
 
6345
6350
  // ../../b4m-core/packages/services/dist/src/llm/tools/ToolCacheManager.js
@@ -7537,8 +7542,8 @@ var editFileSchema = z138.object({
7537
7542
  start: z138.number().describe("Starting character position of the selection"),
7538
7543
  end: z138.number().describe("Ending character position of the selection")
7539
7544
  }).optional().describe("Optional selection range to edit within the file"),
7540
- preserveFormatting: z138.boolean().optional().default(true).describe("Whether to preserve the original formatting style"),
7541
- returnDiff: z138.boolean().optional().default(true).describe("Whether to return a diff of the changes")
7545
+ preserveFormatting: z138.boolean().optional().prefault(true).describe("Whether to preserve the original formatting style"),
7546
+ returnDiff: z138.boolean().optional().prefault(true).describe("Whether to return a diff of the changes")
7542
7547
  });
7543
7548
  function generateSimpleDiff(original, modified) {
7544
7549
  const differences = diffLines2(original, modified);
@@ -14563,10 +14568,10 @@ var ImageGenerationBodySchema = OpenAIImageGenerationInput.extend({
14563
14568
  userId: z141.string(),
14564
14569
  prompt: z141.string(),
14565
14570
  organizationId: z141.string().nullable().optional(),
14566
- safety_tolerance: z141.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().default(BFL_SAFETY_TOLERANCE.DEFAULT),
14567
- prompt_upsampling: z141.boolean().optional().default(false),
14571
+ safety_tolerance: z141.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().prefault(BFL_SAFETY_TOLERANCE.DEFAULT),
14572
+ prompt_upsampling: z141.boolean().optional().prefault(false),
14568
14573
  seed: z141.number().nullable().optional(),
14569
- output_format: z141.enum(["jpeg", "png"]).nullable().optional().default("png"),
14574
+ output_format: z141.enum(["jpeg", "png"]).nullable().optional().prefault("png"),
14570
14575
  width: z141.number().optional(),
14571
14576
  height: z141.number().optional(),
14572
14577
  aspect_ratio: z141.string().optional(),
@@ -14583,9 +14588,9 @@ var VideoGenerationBodySchema = z142.object({
14583
14588
  questId: z142.string(),
14584
14589
  userId: z142.string(),
14585
14590
  prompt: z142.string(),
14586
- model: z142.nativeEnum(VideoModels).default(VideoModels.SORA_2),
14587
- seconds: z142.union([z142.literal(4), z142.literal(8), z142.literal(12)]).default(4),
14588
- size: z142.enum(["720x1280", "1280x720", "1024x1792", "1792x1024"]).default(VIDEO_SIZE_CONSTRAINTS.SORA.defaultSize),
14591
+ model: z142.enum(VideoModels).prefault(VideoModels.SORA_2),
14592
+ seconds: z142.union([z142.literal(4), z142.literal(8), z142.literal(12)]).prefault(4),
14593
+ size: z142.enum(["720x1280", "1280x720", "1024x1792", "1792x1024"]).prefault(VIDEO_SIZE_CONSTRAINTS.SORA.defaultSize),
14589
14594
  organizationId: z142.string().nullable().optional()
14590
14595
  });
14591
14596
 
@@ -14601,10 +14606,10 @@ var ImageEditBodySchema = OpenAIImageGenerationInput.extend({
14601
14606
  userId: z143.string(),
14602
14607
  prompt: z143.string(),
14603
14608
  organizationId: z143.string().nullable().optional(),
14604
- safety_tolerance: z143.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().default(BFL_SAFETY_TOLERANCE.DEFAULT),
14605
- prompt_upsampling: z143.boolean().optional().default(false),
14609
+ safety_tolerance: z143.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().prefault(BFL_SAFETY_TOLERANCE.DEFAULT),
14610
+ prompt_upsampling: z143.boolean().optional().prefault(false),
14606
14611
  seed: z143.number().nullable().optional(),
14607
- output_format: z143.enum(["jpeg", "png"]).optional().default("png"),
14612
+ output_format: z143.enum(["jpeg", "png"]).optional().prefault("png"),
14608
14613
  width: z143.number().optional(),
14609
14614
  height: z143.number().optional(),
14610
14615
  aspect_ratio: z143.string().optional(),
@@ -14982,12 +14987,12 @@ var AgentFrontmatterSchema = z147.object({
14982
14987
  "denied-tools": z147.array(z147.string()).optional(),
14983
14988
  skills: z147.array(z147.string()).optional(),
14984
14989
  "max-iterations": z147.object({
14985
- quick: z147.number().int().positive().optional(),
14986
- medium: z147.number().int().positive().optional(),
14987
- very_thorough: z147.number().int().positive().optional()
14990
+ quick: z147.int().positive().optional(),
14991
+ medium: z147.int().positive().optional(),
14992
+ very_thorough: z147.int().positive().optional()
14988
14993
  }).optional(),
14989
14994
  "default-thoroughness": z147.enum(["quick", "medium", "very_thorough"]).optional(),
14990
- variables: z147.record(z147.string()).optional(),
14995
+ variables: z147.record(z147.string(), z147.string()).optional(),
14991
14996
  hooks: AgentHooksSchema
14992
14997
  });
14993
14998
  var DEFAULT_MAX_ITERATIONS = {
@@ -17361,147 +17366,6 @@ var ApiClient = class {
17361
17366
  // src/index.tsx
17362
17367
  import { isAxiosError as isAxiosError2 } from "axios";
17363
17368
 
17364
- // package.json
17365
- var package_default = {
17366
- name: "@bike4mind/cli",
17367
- version: "0.2.31-b4m-cli-undo-command.19493+44c80c9bc",
17368
- type: "module",
17369
- description: "Interactive CLI tool for Bike4Mind with ReAct agents",
17370
- license: "UNLICENSED",
17371
- author: "Bike4Mind",
17372
- repository: {
17373
- type: "git",
17374
- url: "git+https://github.com/bike4mind/lumina5.git"
17375
- },
17376
- homepage: "https://github.com/bike4mind/lumina5#readme",
17377
- bugs: "https://github.com/bike4mind/lumina5/issues",
17378
- publishConfig: {
17379
- access: "public"
17380
- },
17381
- keywords: [
17382
- "cli",
17383
- "ai",
17384
- "bike4mind",
17385
- "agent",
17386
- "mcp",
17387
- "react-agent"
17388
- ],
17389
- bin: {
17390
- b4m: "./bin/bike4mind-cli.mjs",
17391
- bike4mind: "./bin/bike4mind-cli.mjs"
17392
- },
17393
- files: [
17394
- "dist",
17395
- "bin"
17396
- ],
17397
- scripts: {
17398
- dev: "tsx src/index.tsx",
17399
- build: "tsup",
17400
- typecheck: "tsc --noEmit",
17401
- test: "vitest run",
17402
- "test:watch": "vitest",
17403
- start: "node dist/index.js",
17404
- prepublishOnly: "pnpm build",
17405
- postinstall: `node -e "try { require('better-sqlite3') } catch(e) { if(e.message.includes('bindings')) { console.log('\\n\u26A0\uFE0F Rebuilding better-sqlite3 native bindings...'); require('child_process').execSync('pnpm rebuild better-sqlite3', {stdio:'inherit'}) } }"`
17406
- },
17407
- dependencies: {
17408
- "@anthropic-ai/sdk": "^0.71.2",
17409
- "@aws-sdk/client-apigatewaymanagementapi": "3.654.0",
17410
- "@aws-sdk/client-bedrock-runtime": "3.654.0",
17411
- "@aws-sdk/client-cloudwatch": "3.654.0",
17412
- "@aws-sdk/client-lambda": "3.654.0",
17413
- "@aws-sdk/client-s3": "3.654.0",
17414
- "@aws-sdk/client-sqs": "3.654.0",
17415
- "@aws-sdk/client-transcribe": "3.654.0",
17416
- "@aws-sdk/credential-provider-node": "3.654.0",
17417
- "@aws-sdk/node-http-handler": "^3.374.0",
17418
- "@aws-sdk/s3-request-presigner": "3.654.0",
17419
- "@casl/ability": "^6.5.0",
17420
- "@google/genai": "^1.27.0",
17421
- "@google/generative-ai": "^0.21.0",
17422
- "@joplin/turndown-plugin-gfm": "^1.0.62",
17423
- "@mendable/firecrawl-js": "^1.29.3",
17424
- "@modelcontextprotocol/sdk": "1.20.1",
17425
- "@octokit/rest": "^22.0.0",
17426
- "@opensearch-project/opensearch": "2.11.0",
17427
- "async-mutex": "^0.5.0",
17428
- axios: "^1.13.2",
17429
- bcryptjs: "^2.4.3",
17430
- "better-sqlite3": "^12.5.0",
17431
- cheerio: "1.0.0-rc.12",
17432
- "cli-highlight": "^2.1.11",
17433
- "csv-parse": "^5.5.6",
17434
- dayjs: "^1.11.13",
17435
- diff: "^8.0.2",
17436
- dotenv: "^16.3.1",
17437
- "eventsource-parser": "^3.0.6",
17438
- "file-type": "^18.7.0",
17439
- "fuse.js": "^7.1.0",
17440
- glob: "^13.0.0",
17441
- "gray-matter": "^4.0.3",
17442
- ink: "^6.5.1",
17443
- "ink-select-input": "^6.2.0",
17444
- "ink-spinner": "^5.0.0",
17445
- "ink-text-input": "^6.0.0",
17446
- jsonwebtoken: "^9.0.2",
17447
- lodash: "^4.17.21",
17448
- mammoth: "^1.11.0",
17449
- marked: "^15.0.11",
17450
- mathjs: "^14.2.0",
17451
- "mime-types": "^2.1.35",
17452
- mongoose: "^8.8.3",
17453
- ollama: "^0.5.12",
17454
- open: "^11.0.0",
17455
- openai: "^6.18.0",
17456
- "p-limit": "^6.2.0",
17457
- picomatch: "^4.0.3",
17458
- qrcode: "^1.5.4",
17459
- react: "^19.2.3",
17460
- sharp: "^0.34.5",
17461
- speakeasy: "^2.0.0",
17462
- tiktoken: "^1.0.16",
17463
- "tree-sitter-wasms": "^0.1.13",
17464
- turndown: "^7.2.0",
17465
- unpdf: "^0.10.0",
17466
- uuid: "^9.0.1",
17467
- voyageai: "^0.0.4",
17468
- "web-tree-sitter": "0.25.10",
17469
- xlsx: "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
17470
- yargs: "^17.7.2",
17471
- yauzl: "^3.1.3",
17472
- zod: "^3.25.76",
17473
- "zod-validation-error": "^1.5.0",
17474
- zustand: "^4.5.4"
17475
- },
17476
- devDependencies: {
17477
- "@bike4mind/agents": "0.1.0",
17478
- "@bike4mind/common": "2.52.1-b4m-cli-undo-command.19493+44c80c9bc",
17479
- "@bike4mind/mcp": "1.31.1-b4m-cli-undo-command.19493+44c80c9bc",
17480
- "@bike4mind/services": "2.50.1-b4m-cli-undo-command.19493+44c80c9bc",
17481
- "@bike4mind/utils": "2.7.1-b4m-cli-undo-command.19493+44c80c9bc",
17482
- "@types/better-sqlite3": "^7.6.13",
17483
- "@types/diff": "^5.0.9",
17484
- "@types/jsonwebtoken": "^9.0.4",
17485
- "@types/node": "^22.9.0",
17486
- "@types/picomatch": "^4.0.2",
17487
- "@types/react": "^19.2.7",
17488
- "@types/uuid": "^9.0.7",
17489
- "@types/yargs": "^17.0.32",
17490
- fdir: "^6.5.0",
17491
- fzf: "^0.5.2",
17492
- ignore: "^7.0.5",
17493
- "ink-testing-library": "^4.0.0",
17494
- tsup: "^8.5.1",
17495
- tsx: "^4.21.0",
17496
- typescript: "^5.9.3",
17497
- vitest: "^3.2.4"
17498
- },
17499
- optionalDependencies: {
17500
- "@vscode/ripgrep": "^1.17.0"
17501
- },
17502
- gitHead: "44c80c9bcf8bf132a8b75c3635426a901adce99e"
17503
- };
17504
-
17505
17369
  // src/agents/toolFilter.ts
17506
17370
  function matchesToolPattern3(toolName, pattern) {
17507
17371
  const regexPattern = pattern.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
@@ -21453,6 +21317,19 @@ No usage data available for the last ${USAGE_DAYS} days.`);
21453
21317
  }
21454
21318
  );
21455
21319
  }
21320
+ try {
21321
+ const updateResult = await Promise.race([
21322
+ checkForUpdate(package_default.version),
21323
+ new Promise((resolve3) => setTimeout(() => resolve3(null), 3e3))
21324
+ ]);
21325
+ if (updateResult?.updateAvailable) {
21326
+ console.log(
21327
+ `\x1B[33m \u2B06 Update available: v${updateResult.currentVersion} \u2192 v${updateResult.latestVersion} (run: b4m update)\x1B[0m
21328
+ `
21329
+ );
21330
+ }
21331
+ } catch {
21332
+ }
21456
21333
  var isDevMode = import.meta.url.includes("/src/") || process.env.NODE_ENV === "development";
21457
21334
  if (isDevMode) {
21458
21335
  logger.debug("\u{1F527} Running in development mode (using TypeScript source)\n");