@bike4mind/cli 0.2.52-chore-upgrade-dotenv.21139 → 0.2.52-chore-upgrade-dotenv.21189

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.
@@ -333,7 +333,9 @@ var b4mLLMTools = z5.enum([
333
333
  "quantum_schedule",
334
334
  "quantum_formulate",
335
335
  // Navigation tool
336
- "navigate_view"
336
+ "navigate_view",
337
+ // Excel generation
338
+ "excel_generation"
337
339
  ]);
338
340
  var B4MLLMToolsList = b4mLLMTools.options.map((tool) => tool);
339
341
  var RechartsChartTypeSchema = z5.enum([
@@ -613,6 +615,7 @@ var AppFileReservedTags;
613
615
  AppFileReservedTags2["ProfilePhoto"] = "profile-photo";
614
616
  AppFileReservedTags2["AdminLogo"] = "admin-logo";
615
617
  AppFileReservedTags2["AdminDarkLogo"] = "admin-dark-logo";
618
+ AppFileReservedTags2["DocxTemplate"] = "docx-template";
616
619
  })(AppFileReservedTags || (AppFileReservedTags = {}));
617
620
 
618
621
  // ../../b4m-core/packages/common/dist/src/types/entities/FabFileTypes.js
@@ -1243,6 +1246,7 @@ var SreTrackingStatus;
1243
1246
  SreTrackingStatus2["FAILED"] = "failed";
1244
1247
  SreTrackingStatus2["WONT_FIX"] = "wont_fix";
1245
1248
  SreTrackingStatus2["DISPATCH_FAILED"] = "dispatch_failed";
1249
+ SreTrackingStatus2["DRY_RUN"] = "dry_run";
1246
1250
  })(SreTrackingStatus || (SreTrackingStatus = {}));
1247
1251
  var SRE_GATE_DEFAULTS = {
1248
1252
  enabled: true,
@@ -1736,6 +1740,17 @@ var UpdateFabFileChunkVectorStatusAction = z11.object({
1736
1740
  vectorizeStatus: z11.enum(["ongoing", "complete", "failed"]).optional(),
1737
1741
  failedMessage: z11.string().optional()
1738
1742
  });
1743
+ var DataLakeBatchProgressAction = z11.object({
1744
+ action: z11.literal("data_lake_batch_progress"),
1745
+ clientId: z11.string().optional(),
1746
+ batchId: z11.string(),
1747
+ uploadedFiles: z11.number().optional(),
1748
+ chunkedFiles: z11.number().optional(),
1749
+ vectorizedFiles: z11.number().optional(),
1750
+ failedFiles: z11.number().optional(),
1751
+ totalFiles: z11.number().optional(),
1752
+ status: z11.enum(["preparing", "uploading", "processing", "completed", "completed_with_errors", "failed", "cancelled"]).optional()
1753
+ });
1739
1754
  var UpdateResearchTaskStatusAction = z11.object({
1740
1755
  action: z11.literal("update_research_task_status"),
1741
1756
  clientId: z11.string().optional(),
@@ -1990,7 +2005,8 @@ var MessageDataToClient = z11.discriminatedUnion("action", [
1990
2005
  KeepCommandAction,
1991
2006
  KeepCommandResultAction,
1992
2007
  TavernSceneBroadcastAction,
1993
- TavernHeartbeatLogAction
2008
+ TavernHeartbeatLogAction,
2009
+ DataLakeBatchProgressAction
1994
2010
  ]);
1995
2011
 
1996
2012
  // ../../b4m-core/packages/common/dist/src/schemas/cliCompletions.js
@@ -2512,7 +2528,15 @@ var FileGeneratePresignedUrlRequestInput = z14.object({
2512
2528
  mimeType: z14.string(),
2513
2529
  fileSize: z14.number(),
2514
2530
  /** The path to the file */
2515
- path: z14.string().optional()
2531
+ path: z14.string().optional(),
2532
+ /** SHA-256 content hash for deduplication */
2533
+ contentHash: z14.string().optional(),
2534
+ /** Batch ID for data lake uploads */
2535
+ batchId: z14.string().optional(),
2536
+ /** Original relative path from folder upload */
2537
+ relativePath: z14.string().optional(),
2538
+ /** Tags to apply to the file on creation */
2539
+ tags: z14.array(z14.object({ name: z14.string(), strength: z14.number() })).optional()
2516
2540
  });
2517
2541
  var CreateFabFileRequestInput = z14.object({
2518
2542
  // file: z.any(),
@@ -6064,6 +6088,90 @@ var safeParseLatticeRule = (data) => {
6064
6088
  return LatticeRuleSchema.safeParse(data);
6065
6089
  };
6066
6090
 
6091
+ // ../../b4m-core/packages/common/dist/src/schemas/dataLake.js
6092
+ import z28 from "zod";
6093
+ var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
6094
+ var sha256Regex = /^[a-f0-9]{64}$/;
6095
+ var CreateDataLakeRequestInput = z28.object({
6096
+ name: z28.string().min(1).max(200),
6097
+ slug: z28.string().min(2).max(60).regex(slugRegex, 'Slug must be lowercase alphanumeric with hyphens (e.g. "my-data-lake")'),
6098
+ description: z28.string().max(2e3).optional(),
6099
+ fileTagPrefix: z28.string().min(2).max(30).refine((s) => s.endsWith(":"), 'Tag prefix must end with ":" (e.g. "acme:")'),
6100
+ requiredUserTag: z28.string().max(100).optional(),
6101
+ organizationId: z28.string().optional()
6102
+ });
6103
+ var UpdateDataLakeRequestInput = z28.object({
6104
+ name: z28.string().min(1).max(200).optional(),
6105
+ description: z28.string().max(2e3).optional(),
6106
+ requiredUserTag: z28.string().min(1).max(100).optional(),
6107
+ status: z28.enum(["active", "archived"]).optional()
6108
+ });
6109
+ var DataLakeListRequestInput = z28.object({
6110
+ organizationId: z28.string().optional(),
6111
+ status: z28.enum(["active", "archived"]).optional()
6112
+ });
6113
+ var BatchPresignedUrlFileItem = z28.object({
6114
+ fileName: z28.string().min(1),
6115
+ mimeType: z28.string().min(1),
6116
+ fileSize: z28.number().positive(),
6117
+ contentHash: z28.string().regex(sha256Regex).optional(),
6118
+ tags: z28.array(z28.object({
6119
+ name: z28.string().min(1),
6120
+ strength: z28.number().min(0).max(1)
6121
+ })).optional(),
6122
+ relativePath: z28.string().optional()
6123
+ });
6124
+ var BatchPresignedUrlRequestInput = z28.object({
6125
+ files: z28.array(BatchPresignedUrlFileItem).min(1).max(100),
6126
+ dataLakeSlug: z28.string().optional()
6127
+ });
6128
+ var InferTaxonomyFolderEntry = z28.object({
6129
+ relativePath: z28.string(),
6130
+ fileName: z28.string(),
6131
+ fileSize: z28.number(),
6132
+ mimeType: z28.string().optional(),
6133
+ /** First ~500 chars of file content for AI analysis */
6134
+ contentSample: z28.string().max(1e3).optional()
6135
+ });
6136
+ var InferTaxonomyRequestInput = z28.object({
6137
+ folderTree: z28.array(InferTaxonomyFolderEntry).min(1).max(500),
6138
+ /** If re-running for an existing data lake, pass its prefix */
6139
+ existingPrefix: z28.string().optional(),
6140
+ /** User description of the data (helps the AI) */
6141
+ context: z28.string().max(2e3).optional()
6142
+ });
6143
+ var CheckDuplicatesRequestInput = z28.object({
6144
+ hashes: z28.array(z28.string().regex(sha256Regex)).min(1).max(500)
6145
+ });
6146
+ var SyncDeltaFileEntry = z28.object({
6147
+ relativePath: z28.string(),
6148
+ fileName: z28.string(),
6149
+ contentHash: z28.string().regex(sha256Regex),
6150
+ fileSize: z28.number()
6151
+ });
6152
+ var ComputeSyncDeltaRequestInput = z28.object({
6153
+ dataLakeSlug: z28.string(),
6154
+ currentFiles: z28.array(SyncDeltaFileEntry).min(1).max(1e4)
6155
+ });
6156
+ var ApplySyncRequestInput = z28.object({
6157
+ dataLakeSlug: z28.string(),
6158
+ actions: z28.object({
6159
+ upload: z28.array(z28.object({
6160
+ relativePath: z28.string(),
6161
+ fileName: z28.string(),
6162
+ contentHash: z28.string().regex(sha256Regex)
6163
+ })),
6164
+ update: z28.array(z28.object({
6165
+ existingFileId: z28.string(),
6166
+ relativePath: z28.string(),
6167
+ fileName: z28.string(),
6168
+ contentHash: z28.string().regex(sha256Regex)
6169
+ })),
6170
+ remove: z28.array(z28.string()),
6171
+ skip: z28.array(z28.string())
6172
+ })
6173
+ });
6174
+
6067
6175
  // ../../b4m-core/packages/common/dist/src/constants/user.js
6068
6176
  var PREDEFINED_USER_TAGS = ["Developer", "Analyst", "Customer", "Opti"];
6069
6177
  var isPredefinedTag = (tag) => {
@@ -6090,147 +6198,155 @@ var DATA_LAKES = [
6090
6198
  datalakeTag: "datalake:opti-knowledge"
6091
6199
  }
6092
6200
  ];
6093
- function getAccessibleDataLakes(userTags) {
6201
+ function getAccessibleDataLakes(userTags, dynamicDataLakes) {
6094
6202
  const normalizedUserTags = userTags.map((tag) => tag.toLowerCase());
6095
- return DATA_LAKES.filter((dl) => normalizedUserTags.includes(dl.requiredUserTag.toLowerCase()));
6203
+ let allLakes;
6204
+ if (dynamicDataLakes && dynamicDataLakes.length > 0) {
6205
+ const dynamicIds = new Set(dynamicDataLakes.map((d) => d.id));
6206
+ const fallbacks = DATA_LAKES.filter((dl) => !dynamicIds.has(dl.id));
6207
+ allLakes = [...dynamicDataLakes, ...fallbacks];
6208
+ } else {
6209
+ allLakes = DATA_LAKES;
6210
+ }
6211
+ return allLakes.filter((dl) => normalizedUserTags.includes(dl.requiredUserTag.toLowerCase()));
6096
6212
  }
6097
- function getDataLakeTags(userTags) {
6098
- return getAccessibleDataLakes(userTags).map((dl) => dl.datalakeTag);
6213
+ function getDataLakeTags(userTags, dynamicDataLakes) {
6214
+ return getAccessibleDataLakes(userTags, dynamicDataLakes).map((dl) => dl.datalakeTag);
6099
6215
  }
6100
6216
 
6101
6217
  // ../../b4m-core/packages/common/dist/src/llm.js
6102
- import { z as z28 } from "zod";
6103
- var DashboardParamsSchema = z28.object({
6104
- dashboardDataSources: z28.array(z28.object({
6105
- sourceName: z28.string(),
6106
- data: z28.any()
6218
+ import { z as z29 } from "zod";
6219
+ var DashboardParamsSchema = z29.object({
6220
+ dashboardDataSources: z29.array(z29.object({
6221
+ sourceName: z29.string(),
6222
+ data: z29.any()
6107
6223
  })),
6108
- promptName: z28.string().optional()
6109
- });
6110
- var QuestMasterParamsSchema = z28.object({
6111
- questMasterPlanId: z28.string(),
6112
- questId: z28.string(),
6113
- subQuestId: z28.string()
6114
- });
6115
- var ResearchModeConfigurationSchema = z28.object({
6116
- id: z28.string(),
6117
- enabled: z28.boolean(),
6118
- model: z28.string(),
6119
- parameters: z28.object({
6120
- temperature: z28.number().optional(),
6121
- maxTokens: z28.number().optional(),
6122
- topP: z28.number().optional(),
6123
- presencePenalty: z28.number().optional(),
6124
- frequencyPenalty: z28.number().optional()
6125
- }),
6126
- label: z28.string().optional()
6127
- });
6128
- var ResearchModeParamsSchema = z28.object({
6129
- enabled: z28.boolean(),
6130
- configurations: z28.array(ResearchModeConfigurationSchema).max(4)
6224
+ promptName: z29.string().optional()
6225
+ });
6226
+ var QuestMasterParamsSchema = z29.object({
6227
+ questMasterPlanId: z29.string(),
6228
+ questId: z29.string(),
6229
+ subQuestId: z29.string()
6230
+ });
6231
+ var ResearchModeConfigurationSchema = z29.object({
6232
+ id: z29.string(),
6233
+ enabled: z29.boolean(),
6234
+ model: z29.string(),
6235
+ parameters: z29.object({
6236
+ temperature: z29.number().optional(),
6237
+ maxTokens: z29.number().optional(),
6238
+ topP: z29.number().optional(),
6239
+ presencePenalty: z29.number().optional(),
6240
+ frequencyPenalty: z29.number().optional()
6241
+ }),
6242
+ label: z29.string().optional()
6243
+ });
6244
+ var ResearchModeParamsSchema = z29.object({
6245
+ enabled: z29.boolean(),
6246
+ configurations: z29.array(ResearchModeConfigurationSchema).max(4)
6131
6247
  });
6132
6248
  var GenerateImageIvokeParamsSchema = OpenAIImageGenerationInput.extend({
6133
- sessionId: z28.string(),
6134
- questId: z28.string().optional(),
6135
- organizationId: z28.string().nullable().optional(),
6136
- width: z28.number().optional(),
6137
- height: z28.number().optional(),
6138
- aspect_ratio: z28.string().optional(),
6139
- fabFileIds: z28.array(z28.string()).prefault([]),
6140
- tools: z28.array(z28.union([b4mLLMTools, z28.string()])).optional(),
6141
- promptEnhancement: z28.object({
6142
- originalPrompt: z28.string(),
6143
- enhancedPrompt: z28.string(),
6144
- promptWasEnhanced: z28.boolean()
6249
+ sessionId: z29.string(),
6250
+ questId: z29.string().optional(),
6251
+ organizationId: z29.string().nullable().optional(),
6252
+ width: z29.number().optional(),
6253
+ height: z29.number().optional(),
6254
+ aspect_ratio: z29.string().optional(),
6255
+ fabFileIds: z29.array(z29.string()).prefault([]),
6256
+ tools: z29.array(z29.union([b4mLLMTools, z29.string()])).optional(),
6257
+ promptEnhancement: z29.object({
6258
+ originalPrompt: z29.string(),
6259
+ enhancedPrompt: z29.string(),
6260
+ promptWasEnhanced: z29.boolean()
6145
6261
  }).optional()
6146
6262
  });
6147
6263
  var GenerateImageRequestBodySchema = GenerateImageIvokeParamsSchema.extend({
6148
- sessionId: z28.string().optional(),
6149
- sessionName: z28.string().optional(),
6150
- projectId: z28.string().optional()
6264
+ sessionId: z29.string().optional(),
6265
+ sessionName: z29.string().optional(),
6266
+ projectId: z29.string().optional()
6151
6267
  });
6152
6268
  var GenerateImageToolCallSchema = OpenAIImageGenerationInput.extend({
6153
- safety_tolerance: z28.number().optional(),
6154
- prompt_upsampling: z28.boolean().optional(),
6155
- output_format: z28.enum(["jpeg", "png"]).nullable().optional(),
6156
- seed: z28.number().nullable().optional(),
6157
- editModel: z28.string().optional()
6269
+ safety_tolerance: z29.number().optional(),
6270
+ prompt_upsampling: z29.boolean().optional(),
6271
+ output_format: z29.enum(["jpeg", "png"]).nullable().optional(),
6272
+ seed: z29.number().nullable().optional(),
6273
+ editModel: z29.string().optional()
6158
6274
  // Model to use for image editing operations (separate from generation model)
6159
6275
  }).omit({
6160
6276
  prompt: true
6161
6277
  });
6162
6278
  var EditImageRequestBodySchema = OpenAIImageGenerationInput.extend({
6163
- sessionId: z28.string(),
6164
- questId: z28.string().optional(),
6165
- organizationId: z28.string().nullable().optional(),
6166
- aspect_ratio: z28.string().optional(),
6167
- fabFileIds: z28.array(z28.string()).prefault([]),
6168
- image: z28.string()
6169
- });
6170
- var ChatCompletionInvokeParamsSchema = z28.object({
6279
+ sessionId: z29.string(),
6280
+ questId: z29.string().optional(),
6281
+ organizationId: z29.string().nullable().optional(),
6282
+ aspect_ratio: z29.string().optional(),
6283
+ fabFileIds: z29.array(z29.string()).prefault([]),
6284
+ image: z29.string()
6285
+ });
6286
+ var ChatCompletionInvokeParamsSchema = z29.object({
6171
6287
  /** Notebook session ID */
6172
- sessionId: z28.string(),
6173
- historyCount: z28.number(),
6288
+ sessionId: z29.string(),
6289
+ historyCount: z29.number(),
6174
6290
  imageConfig: GenerateImageToolCallSchema.optional(),
6175
- deepResearchConfig: z28.object({
6176
- maxDepth: z28.number().optional(),
6177
- duration: z28.number().optional(),
6291
+ deepResearchConfig: z29.object({
6292
+ maxDepth: z29.number().optional(),
6293
+ duration: z29.number().optional(),
6178
6294
  // Note: searchers are passed via ToolContext and not through this API schema
6179
- searchers: z28.array(z28.any()).optional()
6295
+ searchers: z29.array(z29.any()).optional()
6180
6296
  }).optional(),
6181
- fabFileIds: z28.array(z28.string()),
6297
+ fabFileIds: z29.array(z29.string()),
6182
6298
  /** Prompt message */
6183
- message: z28.string(),
6184
- messageFileIds: z28.array(z28.string()).prefault([]),
6185
- questId: z28.string().optional(),
6299
+ message: z29.string(),
6300
+ messageFileIds: z29.array(z29.string()).prefault([]),
6301
+ questId: z29.string().optional(),
6186
6302
  /** Extra context messages to include in the conversation from external sources */
6187
- extraContextMessages: z28.array(z28.object({
6188
- role: z28.enum(["user", "assistant", "system", "function", "tool"]),
6189
- content: z28.union([z28.string(), z28.array(z28.any())]),
6190
- fabFileIds: z28.array(z28.string()).optional()
6303
+ extraContextMessages: z29.array(z29.object({
6304
+ role: z29.enum(["user", "assistant", "system", "function", "tool"]),
6305
+ content: z29.union([z29.string(), z29.array(z29.any())]),
6306
+ fabFileIds: z29.array(z29.string()).optional()
6191
6307
  })).optional(),
6192
6308
  /** Dashboard related params */
6193
6309
  dashboardParams: DashboardParamsSchema.optional(),
6194
6310
  /** LLM params */
6195
6311
  params: ChatCompletionCreateInputSchema,
6196
6312
  /** Whether Quest Master is enabled */
6197
- enableQuestMaster: z28.boolean().optional(),
6313
+ enableQuestMaster: z29.boolean().optional(),
6198
6314
  /** Whether Mementos is enabled */
6199
- enableMementos: z28.boolean().optional(),
6315
+ enableMementos: z29.boolean().optional(),
6200
6316
  /** Whether Artifacts is enabled */
6201
- enableArtifacts: z28.boolean().optional(),
6317
+ enableArtifacts: z29.boolean().optional(),
6202
6318
  /** Whether Agents is enabled */
6203
- enableAgents: z28.boolean().optional(),
6319
+ enableAgents: z29.boolean().optional(),
6204
6320
  /** Whether Lattice (financial pro-forma modeling) is enabled */
6205
- enableLattice: z28.boolean().optional(),
6321
+ enableLattice: z29.boolean().optional(),
6206
6322
  /** LLM tools to enable (built-in tools or MCP tool names) */
6207
- tools: z28.array(z28.union([b4mLLMTools, z28.string()])).optional(),
6323
+ tools: z29.array(z29.union([b4mLLMTools, z29.string()])).optional(),
6208
6324
  /** Enabled MCP servers */
6209
- mcpServers: z28.array(z28.string()).optional(),
6325
+ mcpServers: z29.array(z29.string()).optional(),
6210
6326
  /** Project ID */
6211
- projectId: z28.string().optional(),
6327
+ projectId: z29.string().optional(),
6212
6328
  /** Organization ID */
6213
- organizationId: z28.string().nullable().optional(),
6329
+ organizationId: z29.string().nullable().optional(),
6214
6330
  /** Tool prompt ID to use for the LLM */
6215
- toolPromptId: z28.string().optional(),
6331
+ toolPromptId: z29.string().optional(),
6216
6332
  /** Quest Master related params */
6217
6333
  questMaster: QuestMasterParamsSchema.optional(),
6218
6334
  /** Research Mode related params */
6219
6335
  researchMode: ResearchModeParamsSchema.optional(),
6220
6336
  /** Fallback model ID to try if primary model fails */
6221
- fallbackModel: z28.string().optional(),
6337
+ fallbackModel: z29.string().optional(),
6222
6338
  /** Embedding model to use */
6223
- embeddingModel: z28.string().optional(),
6339
+ embeddingModel: z29.string().optional(),
6224
6340
  /** User's timezone (IANA format, e.g., "America/New_York") */
6225
- timezone: z28.string().optional(),
6341
+ timezone: z29.string().optional(),
6226
6342
  /** Persona-based sub-agent filter — only these agent names are available for delegation */
6227
- allowedAgents: z28.array(z28.string()).optional()
6343
+ allowedAgents: z29.array(z29.string()).optional()
6228
6344
  });
6229
6345
  var LLMApiRequestBodySchema = ChatCompletionInvokeParamsSchema.extend({
6230
6346
  /** Notebook session ID */
6231
- sessionId: z28.string().optional(),
6347
+ sessionId: z29.string().optional(),
6232
6348
  /** Notebook session name */
6233
- sessionName: z28.string().optional()
6349
+ sessionName: z29.string().optional()
6234
6350
  });
6235
6351
 
6236
6352
  // ../../b4m-core/packages/common/dist/src/utils.js
@@ -6379,16 +6495,16 @@ var extractSnippetMeta = (content) => {
6379
6495
  };
6380
6496
 
6381
6497
  // ../../b4m-core/packages/common/dist/src/search.js
6382
- import { z as z29 } from "zod";
6383
- var searchSchema = z29.object({
6384
- search: z29.string().optional(),
6385
- pagination: z29.object({
6386
- page: z29.coerce.number().int().positive(),
6387
- limit: z29.coerce.number().int().positive()
6498
+ import { z as z30 } from "zod";
6499
+ var searchSchema = z30.object({
6500
+ search: z30.string().optional(),
6501
+ pagination: z30.object({
6502
+ page: z30.coerce.number().int().positive(),
6503
+ limit: z30.coerce.number().int().positive()
6388
6504
  }).optional(),
6389
- orderBy: z29.object({
6390
- field: z29.string(),
6391
- direction: z29.enum(["asc", "desc"])
6505
+ orderBy: z30.object({
6506
+ field: z30.string(),
6507
+ direction: z30.enum(["asc", "desc"])
6392
6508
  }).optional()
6393
6509
  });
6394
6510
 
@@ -10019,89 +10135,89 @@ var getMcpProviderMetadata = (providerName) => {
10019
10135
  };
10020
10136
 
10021
10137
  // ../../b4m-core/packages/common/dist/src/schemas/artifacts.js
10022
- import { z as z30 } from "zod";
10023
- var ArtifactStatusSchema = z30.enum(["draft", "review", "published", "archived", "deleted"]);
10024
- var VisibilitySchema = z30.enum(["private", "project", "organization", "public"]);
10025
- var ArtifactPermissionsSchema = z30.object({
10026
- canRead: z30.array(z30.string()),
10027
- canWrite: z30.array(z30.string()),
10028
- canDelete: z30.array(z30.string()),
10029
- isPublic: z30.boolean().prefault(false),
10030
- inheritFromProject: z30.boolean().prefault(true)
10031
- });
10032
- var BaseArtifactSchema = z30.object({
10033
- id: z30.uuid(),
10138
+ import { z as z31 } from "zod";
10139
+ var ArtifactStatusSchema = z31.enum(["draft", "review", "published", "archived", "deleted"]);
10140
+ var VisibilitySchema = z31.enum(["private", "project", "organization", "public"]);
10141
+ var ArtifactPermissionsSchema = z31.object({
10142
+ canRead: z31.array(z31.string()),
10143
+ canWrite: z31.array(z31.string()),
10144
+ canDelete: z31.array(z31.string()),
10145
+ isPublic: z31.boolean().prefault(false),
10146
+ inheritFromProject: z31.boolean().prefault(true)
10147
+ });
10148
+ var BaseArtifactSchema = z31.object({
10149
+ id: z31.uuid(),
10034
10150
  type: ArtifactTypeSchema,
10035
- title: z30.string().min(1).max(255),
10036
- description: z30.string().max(1e3).optional(),
10151
+ title: z31.string().min(1).max(255),
10152
+ description: z31.string().max(1e3).optional(),
10037
10153
  // Versioning
10038
- version: z30.int().positive().prefault(1),
10039
- versionTag: z30.string().max(100).optional(),
10040
- currentVersionId: z30.uuid().optional(),
10041
- parentVersionId: z30.uuid().optional(),
10154
+ version: z31.int().positive().prefault(1),
10155
+ versionTag: z31.string().max(100).optional(),
10156
+ currentVersionId: z31.uuid().optional(),
10157
+ parentVersionId: z31.uuid().optional(),
10042
10158
  // Timestamps
10043
- createdAt: z30.date(),
10044
- updatedAt: z30.date(),
10045
- publishedAt: z30.date().optional(),
10046
- deletedAt: z30.date().optional(),
10159
+ createdAt: z31.date(),
10160
+ updatedAt: z31.date(),
10161
+ publishedAt: z31.date().optional(),
10162
+ deletedAt: z31.date().optional(),
10047
10163
  // Ownership & Access
10048
- userId: z30.string(),
10049
- projectId: z30.string().optional(),
10050
- organizationId: z30.string().optional(),
10164
+ userId: z31.string(),
10165
+ projectId: z31.string().optional(),
10166
+ organizationId: z31.string().optional(),
10051
10167
  visibility: VisibilitySchema.prefault("private"),
10052
10168
  permissions: ArtifactPermissionsSchema,
10053
10169
  // Relationships
10054
- sourceQuestId: z30.string().optional(),
10055
- sessionId: z30.string().optional(),
10056
- parentArtifactId: z30.uuid().optional(),
10170
+ sourceQuestId: z31.string().optional(),
10171
+ sessionId: z31.string().optional(),
10172
+ parentArtifactId: z31.uuid().optional(),
10057
10173
  // Status
10058
10174
  status: ArtifactStatusSchema.prefault("draft"),
10059
- tags: z30.array(z30.string().max(50)).max(20).prefault([]),
10175
+ tags: z31.array(z31.string().max(50)).max(20).prefault([]),
10060
10176
  // Content
10061
- contentHash: z30.string(),
10062
- contentSize: z30.int().nonnegative(),
10177
+ contentHash: z31.string(),
10178
+ contentSize: z31.int().nonnegative(),
10063
10179
  // Metadata
10064
- metadata: z30.record(z30.string(), z30.unknown()).optional()
10180
+ metadata: z31.record(z31.string(), z31.unknown()).optional()
10065
10181
  });
10066
- var EnhancedArtifactMetadataSchema = z30.object({
10067
- language: z30.string().optional(),
10068
- dependencies: z30.array(z30.string()).optional(),
10069
- settings: z30.record(z30.string(), z30.unknown()).optional()
10182
+ var EnhancedArtifactMetadataSchema = z31.object({
10183
+ language: z31.string().optional(),
10184
+ dependencies: z31.array(z31.string()).optional(),
10185
+ settings: z31.record(z31.string(), z31.unknown()).optional()
10070
10186
  });
10071
10187
  var ReactArtifactV2Schema = BaseArtifactSchema.extend({
10072
- type: z30.literal("react"),
10073
- content: z30.string(),
10188
+ type: z31.literal("react"),
10189
+ content: z31.string(),
10074
10190
  metadata: EnhancedArtifactMetadataSchema.extend({
10075
- dependencies: z30.array(z30.string()),
10076
- props: z30.record(z30.string(), z30.unknown()).optional(),
10077
- hasDefaultExport: z30.boolean(),
10078
- errorBoundary: z30.boolean().prefault(true)
10191
+ dependencies: z31.array(z31.string()),
10192
+ props: z31.record(z31.string(), z31.unknown()).optional(),
10193
+ hasDefaultExport: z31.boolean(),
10194
+ errorBoundary: z31.boolean().prefault(true)
10079
10195
  })
10080
10196
  });
10081
10197
  var HtmlArtifactV2Schema = BaseArtifactSchema.extend({
10082
- type: z30.literal("html"),
10083
- content: z30.string(),
10198
+ type: z31.literal("html"),
10199
+ content: z31.string(),
10084
10200
  metadata: EnhancedArtifactMetadataSchema.extend({
10085
- allowedScripts: z30.array(z30.string()).prefault([]),
10086
- cspPolicy: z30.string().optional(),
10087
- sanitized: z30.boolean().prefault(false)
10201
+ allowedScripts: z31.array(z31.string()).prefault([]),
10202
+ cspPolicy: z31.string().optional(),
10203
+ sanitized: z31.boolean().prefault(false)
10088
10204
  })
10089
10205
  });
10090
10206
  var SvgArtifactV2Schema = BaseArtifactSchema.extend({
10091
- type: z30.literal("svg"),
10092
- content: z30.string(),
10207
+ type: z31.literal("svg"),
10208
+ content: z31.string(),
10093
10209
  metadata: EnhancedArtifactMetadataSchema.extend({
10094
- viewBox: z30.string().optional(),
10095
- width: z30.number().positive().optional(),
10096
- height: z30.number().positive().optional(),
10097
- sanitized: z30.boolean().prefault(false)
10210
+ viewBox: z31.string().optional(),
10211
+ width: z31.number().positive().optional(),
10212
+ height: z31.number().positive().optional(),
10213
+ sanitized: z31.boolean().prefault(false)
10098
10214
  })
10099
10215
  });
10100
10216
  var MermaidArtifactV2Schema = BaseArtifactSchema.extend({
10101
- type: z30.literal("mermaid"),
10102
- content: z30.string(),
10217
+ type: z31.literal("mermaid"),
10218
+ content: z31.string(),
10103
10219
  metadata: EnhancedArtifactMetadataSchema.extend({
10104
- chartType: z30.enum([
10220
+ chartType: z31.enum([
10105
10221
  "flowchart",
10106
10222
  "sequenceDiagram",
10107
10223
  "classDiagram",
@@ -10111,17 +10227,17 @@ var MermaidArtifactV2Schema = BaseArtifactSchema.extend({
10111
10227
  "pie",
10112
10228
  "mindmap"
10113
10229
  ]).optional(),
10114
- description: z30.string().optional()
10230
+ description: z31.string().optional()
10115
10231
  })
10116
10232
  });
10117
10233
  var PythonArtifactV2Schema = BaseArtifactSchema.extend({
10118
- type: z30.literal("python"),
10119
- content: z30.string(),
10234
+ type: z31.literal("python"),
10235
+ content: z31.string(),
10120
10236
  metadata: EnhancedArtifactMetadataSchema.extend({
10121
- packages: z30.array(z30.string()).default([]),
10122
- hasOutput: z30.boolean().default(false),
10123
- executionState: z30.enum(["idle", "running", "completed", "error"]).optional(),
10124
- lastExecutionTime: z30.number().optional()
10237
+ packages: z31.array(z31.string()).default([]),
10238
+ hasOutput: z31.boolean().default(false),
10239
+ executionState: z31.enum(["idle", "running", "completed", "error"]).optional(),
10240
+ lastExecutionTime: z31.number().optional()
10125
10241
  })
10126
10242
  });
10127
10243
  var ArtifactStatuses;
@@ -10152,39 +10268,39 @@ var validatePythonArtifactV2 = (data) => {
10152
10268
  };
10153
10269
 
10154
10270
  // ../../b4m-core/packages/common/dist/src/schemas/questmaster.js
10155
- import { z as z31 } from "zod";
10156
- var QuestStatusSchema = z31.enum(["pending", "in-progress", "completed", "skipped"]);
10157
- var QuestSchema = z31.object({
10158
- id: z31.uuid(),
10159
- title: z31.string().min(1).max(255),
10160
- description: z31.string().max(1e3),
10271
+ import { z as z32 } from "zod";
10272
+ var QuestStatusSchema = z32.enum(["pending", "in-progress", "completed", "skipped"]);
10273
+ var QuestSchema = z32.object({
10274
+ id: z32.uuid(),
10275
+ title: z32.string().min(1).max(255),
10276
+ description: z32.string().max(1e3),
10161
10277
  status: QuestStatusSchema.prefault("pending"),
10162
- order: z31.int().nonnegative(),
10163
- dependencies: z31.array(z31.uuid()).optional(),
10164
- estimatedMinutes: z31.int().positive().optional(),
10165
- completedAt: z31.date().optional(),
10166
- completedBy: z31.string().optional(),
10167
- metadata: z31.record(z31.string(), z31.unknown()).optional()
10168
- });
10169
- var QuestResourceSchema = z31.object({
10170
- type: z31.enum(["documentation", "tutorial", "example", "tool"]),
10171
- title: z31.string().min(1).max(255),
10172
- url: z31.url(),
10173
- description: z31.string().max(500).optional()
10174
- });
10175
- var QuestMasterContentSchema = z31.object({
10176
- goal: z31.string().min(1).max(500),
10177
- quests: z31.array(QuestSchema).min(1),
10178
- totalSteps: z31.int().positive(),
10179
- estimatedDuration: z31.int().positive().optional(),
10180
- complexity: z31.enum(["low", "medium", "high"]),
10181
- category: z31.string().max(100).optional(),
10182
- prerequisites: z31.array(z31.string().max(255)).optional(),
10183
- completionCriteria: z31.array(z31.string().max(500)).optional(),
10184
- resources: z31.array(QuestResourceSchema).optional()
10278
+ order: z32.int().nonnegative(),
10279
+ dependencies: z32.array(z32.uuid()).optional(),
10280
+ estimatedMinutes: z32.int().positive().optional(),
10281
+ completedAt: z32.date().optional(),
10282
+ completedBy: z32.string().optional(),
10283
+ metadata: z32.record(z32.string(), z32.unknown()).optional()
10284
+ });
10285
+ var QuestResourceSchema = z32.object({
10286
+ type: z32.enum(["documentation", "tutorial", "example", "tool"]),
10287
+ title: z32.string().min(1).max(255),
10288
+ url: z32.url(),
10289
+ description: z32.string().max(500).optional()
10290
+ });
10291
+ var QuestMasterContentSchema = z32.object({
10292
+ goal: z32.string().min(1).max(500),
10293
+ quests: z32.array(QuestSchema).min(1),
10294
+ totalSteps: z32.int().positive(),
10295
+ estimatedDuration: z32.int().positive().optional(),
10296
+ complexity: z32.enum(["low", "medium", "high"]),
10297
+ category: z32.string().max(100).optional(),
10298
+ prerequisites: z32.array(z32.string().max(255)).optional(),
10299
+ completionCriteria: z32.array(z32.string().max(500)).optional(),
10300
+ resources: z32.array(QuestResourceSchema).optional()
10185
10301
  });
10186
10302
  var QuestMasterArtifactV2Schema = BaseArtifactSchema.extend({
10187
- type: z31.literal("questmaster"),
10303
+ type: z32.literal("questmaster"),
10188
10304
  content: QuestMasterContentSchema
10189
10305
  });
10190
10306
  var validateQuest = (data) => {
@@ -10201,13 +10317,13 @@ var safeParseQuestMasterArtifactV2 = (data) => {
10201
10317
  };
10202
10318
 
10203
10319
  // ../../b4m-core/packages/common/dist/src/schemas/curation.js
10204
- import { z as z32 } from "zod";
10320
+ import { z as z33 } from "zod";
10205
10321
  var CurationType;
10206
10322
  (function(CurationType2) {
10207
10323
  CurationType2["TRANSCRIPT"] = "transcript";
10208
10324
  CurationType2["EXECUTIVE_SUMMARY"] = "executive_summary";
10209
10325
  })(CurationType || (CurationType = {}));
10210
- var CurationTypeSchema = z32.enum(CurationType);
10326
+ var CurationTypeSchema = z33.enum(CurationType);
10211
10327
  var CurationArtifactType;
10212
10328
  (function(CurationArtifactType2) {
10213
10329
  CurationArtifactType2["CODE"] = "code";
@@ -10220,7 +10336,7 @@ var CurationArtifactType;
10220
10336
  CurationArtifactType2["DEEP_RESEARCH"] = "deep_research";
10221
10337
  CurationArtifactType2["IMAGE"] = "image";
10222
10338
  })(CurationArtifactType || (CurationArtifactType = {}));
10223
- var CurationArtifactTypeSchema = z32.enum([
10339
+ var CurationArtifactTypeSchema = z33.enum([
10224
10340
  "CODE",
10225
10341
  "REACT",
10226
10342
  "HTML",
@@ -10231,28 +10347,28 @@ var CurationArtifactTypeSchema = z32.enum([
10231
10347
  "DEEP_RESEARCH",
10232
10348
  "IMAGE"
10233
10349
  ]);
10234
- var ExportFormatSchema = z32.enum(["markdown", "txt", "html"]);
10235
- var CurationOptionsSchema = z32.object({
10350
+ var ExportFormatSchema = z33.enum(["markdown", "txt", "html"]);
10351
+ var CurationOptionsSchema = z33.object({
10236
10352
  /** Curation type: transcript (Option 1) or executive_summary (Option 2) */
10237
10353
  curationType: CurationTypeSchema.prefault(CurationType.TRANSCRIPT),
10238
10354
  /** Include code artifacts in the curated notebook */
10239
- includeCode: z32.boolean().prefault(true),
10355
+ includeCode: z33.boolean().prefault(true),
10240
10356
  /** Include diagrams (Mermaid, SVG) in the curated notebook */
10241
- includeDiagrams: z32.boolean().prefault(true),
10357
+ includeDiagrams: z33.boolean().prefault(true),
10242
10358
  /** Include data visualizations (Recharts) in the curated notebook */
10243
- includeDataViz: z32.boolean().prefault(true),
10359
+ includeDataViz: z33.boolean().prefault(true),
10244
10360
  /** Include QuestMaster plans in the curated notebook */
10245
- includeQuestMaster: z32.boolean().prefault(true),
10361
+ includeQuestMaster: z33.boolean().prefault(true),
10246
10362
  /** Include Deep Research findings in the curated notebook */
10247
- includeResearch: z32.boolean().prefault(true),
10363
+ includeResearch: z33.boolean().prefault(true),
10248
10364
  /** Include images in the curated notebook */
10249
- includeImages: z32.boolean().prefault(true),
10365
+ includeImages: z33.boolean().prefault(true),
10250
10366
  /** Token budget for processing (varies by curation type) */
10251
- tokenBudget: z32.number().optional(),
10367
+ tokenBudget: z33.number().optional(),
10252
10368
  /** Export format for the curated notebook */
10253
10369
  exportFormat: ExportFormatSchema.prefault("markdown"),
10254
10370
  /** Custom notebook name (optional, defaults to curated-notebook-{sessionId}) */
10255
- customNotebookName: z32.string().optional()
10371
+ customNotebookName: z33.string().optional()
10256
10372
  });
10257
10373
 
10258
10374
  // ../../b4m-core/packages/common/dist/src/utils/artifactHelpers.js
@@ -11717,6 +11833,7 @@ export {
11717
11833
  HeartbeatPongAction,
11718
11834
  InvalidateQueryAction,
11719
11835
  UpdateFabFileChunkVectorStatusAction,
11836
+ DataLakeBatchProgressAction,
11720
11837
  UpdateResearchTaskStatusAction,
11721
11838
  ImportHistoryJobProgressUpdateAction,
11722
11839
  ResearchModeStreamAction,
@@ -11917,6 +12034,17 @@ export {
11917
12034
  safeParseLatticeModel,
11918
12035
  safeParseLatticeEntity,
11919
12036
  safeParseLatticeRule,
12037
+ CreateDataLakeRequestInput,
12038
+ UpdateDataLakeRequestInput,
12039
+ DataLakeListRequestInput,
12040
+ BatchPresignedUrlFileItem,
12041
+ BatchPresignedUrlRequestInput,
12042
+ InferTaxonomyFolderEntry,
12043
+ InferTaxonomyRequestInput,
12044
+ CheckDuplicatesRequestInput,
12045
+ SyncDeltaFileEntry,
12046
+ ComputeSyncDeltaRequestInput,
12047
+ ApplySyncRequestInput,
11920
12048
  PREDEFINED_USER_TAGS,
11921
12049
  isPredefinedTag,
11922
12050
  getPredefinedTags,