@bike4mind/cli 0.2.31-feat-python-playground.19625 → 0.2.31-feat-dynamic-agent-creation.19591

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-EEGKRFVP.js";
4
+ } from "./chunk-PLA2VBQW.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;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-2PXPXXDN.js";
5
+ } from "./chunk-PV6PZFPC.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -12,7 +12,7 @@ import {
12
12
  TextGenerationUsageTransaction,
13
13
  TransferCreditTransaction,
14
14
  VideoGenerationUsageTransaction
15
- } from "./chunk-EEGKRFVP.js";
15
+ } from "./chunk-PLA2VBQW.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-2PXPXXDN.js";
9
+ } from "./chunk-PV6PZFPC.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-EEGKRFVP.js";
14
+ } from "./chunk-PLA2VBQW.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@bike4mind/cli",
6
- version: "0.2.31-feat-python-playground.19625+2188a6ca0",
6
+ version: "0.2.31-feat-dynamic-agent-creation.19591+1497bcf8b",
7
7
  type: "module",
8
8
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9
9
  license: "UNLICENSED",
@@ -114,10 +114,10 @@ var package_default = {
114
114
  },
115
115
  devDependencies: {
116
116
  "@bike4mind/agents": "0.1.0",
117
- "@bike4mind/common": "2.52.1-feat-python-playground.19625+2188a6ca0",
118
- "@bike4mind/mcp": "1.31.1-feat-python-playground.19625+2188a6ca0",
119
- "@bike4mind/services": "2.50.1-feat-python-playground.19625+2188a6ca0",
120
- "@bike4mind/utils": "2.7.1-feat-python-playground.19625+2188a6ca0",
117
+ "@bike4mind/common": "2.52.1-feat-dynamic-agent-creation.19591+1497bcf8b",
118
+ "@bike4mind/mcp": "1.31.1-feat-dynamic-agent-creation.19591+1497bcf8b",
119
+ "@bike4mind/services": "2.50.1-feat-dynamic-agent-creation.19591+1497bcf8b",
120
+ "@bike4mind/utils": "2.7.1-feat-dynamic-agent-creation.19591+1497bcf8b",
121
121
  "@types/better-sqlite3": "^7.6.13",
122
122
  "@types/diff": "^5.0.9",
123
123
  "@types/jsonwebtoken": "^9.0.4",
@@ -138,7 +138,7 @@ var package_default = {
138
138
  optionalDependencies: {
139
139
  "@vscode/ripgrep": "^1.17.0"
140
140
  },
141
- gitHead: "2188a6ca0657db95ea8770071ddb90cc84b8b601"
141
+ gitHead: "1497bcf8bd75a74381bbab90d8ff59e5bbe1e02a"
142
142
  };
143
143
 
144
144
  // src/utils/updateChecker.ts
@@ -483,15 +483,6 @@ var LatticeArtifactSchema = ArtifactSchema.extend({
483
483
  lastComputedAt: z6.date().optional()
484
484
  })
485
485
  });
486
- var PythonArtifactSchema = ArtifactSchema.extend({
487
- type: z6.literal("python"),
488
- metadata: ArtifactMetadataSchema.extend({
489
- packages: z6.array(z6.string()).default([]),
490
- hasOutput: z6.boolean().default(false),
491
- executionState: z6.enum(["idle", "running", "completed", "error"]).optional(),
492
- lastExecutionTime: z6.number().optional()
493
- })
494
- });
495
486
  var MermaidChartMetadataSchema = z6.object({
496
487
  chartType: z6.enum([
497
488
  "flowchart",
@@ -526,8 +517,7 @@ var ClaudeArtifactMimeTypes = {
526
517
  RECHARTS: "application/vnd.ant.recharts",
527
518
  CODE: "application/vnd.ant.code",
528
519
  MARKDOWN: "text/markdown",
529
- LATTICE: "application/vnd.b4m.lattice",
530
- PYTHON: "application/vnd.ant.python"
520
+ LATTICE: "application/vnd.b4m.lattice"
531
521
  };
532
522
 
533
523
  // ../../b4m-core/packages/common/dist/src/types/entities/AppFileTypes.js
@@ -9129,16 +9119,6 @@ var MermaidArtifactV2Schema = BaseArtifactSchema.extend({
9129
9119
  description: z28.string().optional()
9130
9120
  })
9131
9121
  });
9132
- var PythonArtifactV2Schema = BaseArtifactSchema.extend({
9133
- type: z28.literal("python"),
9134
- content: z28.string(),
9135
- metadata: EnhancedArtifactMetadataSchema.extend({
9136
- packages: z28.array(z28.string()).default([]),
9137
- hasOutput: z28.boolean().default(false),
9138
- executionState: z28.enum(["idle", "running", "completed", "error"]).optional(),
9139
- lastExecutionTime: z28.number().optional()
9140
- })
9141
- });
9142
9122
  var ArtifactStatuses;
9143
9123
  (function(ArtifactStatuses2) {
9144
9124
  ArtifactStatuses2["DRAFT"] = "draft";
@@ -9162,9 +9142,6 @@ var validateSvgArtifactV2 = (data) => {
9162
9142
  var validateMermaidArtifactV2 = (data) => {
9163
9143
  return MermaidArtifactV2Schema.parse(data);
9164
9144
  };
9165
- var validatePythonArtifactV2 = (data) => {
9166
- return PythonArtifactV2Schema.parse(data);
9167
- };
9168
9145
 
9169
9146
  // ../../b4m-core/packages/common/dist/src/schemas/questmaster.js
9170
9147
  import { z as z29 } from "zod";
@@ -10207,7 +10184,6 @@ export {
10207
10184
  MermaidArtifactSchema,
10208
10185
  RechartsArtifactSchema,
10209
10186
  LatticeArtifactSchema,
10210
- PythonArtifactSchema,
10211
10187
  MermaidChartMetadataSchema,
10212
10188
  ChatHistoryItemWithArtifactsSchema,
10213
10189
  ArtifactOperationSchema,
@@ -10556,14 +10532,12 @@ export {
10556
10532
  HtmlArtifactV2Schema,
10557
10533
  SvgArtifactV2Schema,
10558
10534
  MermaidArtifactV2Schema,
10559
- PythonArtifactV2Schema,
10560
10535
  ArtifactStatuses,
10561
10536
  validateBaseArtifact,
10562
10537
  validateReactArtifactV2,
10563
10538
  validateHtmlArtifactV2,
10564
10539
  validateSvgArtifactV2,
10565
10540
  validateMermaidArtifactV2,
10566
- validatePythonArtifactV2,
10567
10541
  QuestStatusSchema,
10568
10542
  QuestSchema,
10569
10543
  QuestResourceSchema,
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-EEGKRFVP.js";
19
+ } from "./chunk-PLA2VBQW.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-PFBYGCOW.js";
@@ -3097,25 +3097,8 @@ IMPORTANT! Only when someone asks, remember that you are specifically the ${mode
3097
3097
  return;
3098
3098
  }
3099
3099
  } else {
3100
- this.logger.info("[AnthropicBackend] Non-streaming request", {
3101
- model,
3102
- hasThinking: !!apiParams.thinking,
3103
- thinkingBudget: apiParams.thinking?.budget_tokens,
3104
- maxTokens: apiParams.max_tokens,
3105
- temperature: apiParams.temperature,
3106
- isThinkingEnabled: this.isThinkingEnabled
3107
- });
3108
3100
  const response = await this._api.messages.create(apiParams, { signal: options.abortSignal });
3109
3101
  const streamedText = [];
3110
- const contentTypes = "content" in response && Array.isArray(response.content) ? response.content.map((c) => c.type || (c.text ? "text" : "unknown")) : [];
3111
- this.logger.info("[AnthropicBackend] Non-streaming response received", {
3112
- model,
3113
- stopReason: response.stop_reason,
3114
- contentBlockCount: contentTypes.length,
3115
- contentTypes: contentTypes.join(","),
3116
- inputTokens: response.usage?.input_tokens,
3117
- outputTokens: response.usage?.output_tokens
3118
- });
3119
3102
  if ("content" in response && Array.isArray(response.content)) {
3120
3103
  if (this.isThinkingEnabled) {
3121
3104
  this.lastAssistantContent = response.content;
@@ -3124,21 +3107,12 @@ IMPORTANT! Only when someone asks, remember that you are specifically the ${mode
3124
3107
  const content = response.content[i];
3125
3108
  if ("text" in content) {
3126
3109
  streamedText.push(content.text);
3127
- this.logger.debug("[AnthropicBackend] Text block extracted", {
3128
- blockIndex: i,
3129
- textLength: content.text.length
3130
- });
3131
3110
  } else if ("type" in content) {
3132
3111
  if (content.type === "tool_use") {
3133
3112
  func[i] ||= {};
3134
3113
  func[i].name = content.name;
3135
3114
  func[i].id = content.id;
3136
3115
  func[i].parameters = JSON.stringify(content.input || {});
3137
- } else if (content.type === "thinking") {
3138
- this.logger.warn("[AnthropicBackend] Unexpected thinking block in response", {
3139
- blockIndex: i,
3140
- thinkingLength: content.thinking?.length || 0
3141
- });
3142
3116
  }
3143
3117
  }
3144
3118
  }
@@ -4158,6 +4132,8 @@ ${modelIdentity}` : modelIdentity;
4158
4132
  topP: options.topP
4159
4133
  }
4160
4134
  }, null, 2)}`);
4135
+ const bodyStr = JSON.stringify(body);
4136
+ console.log(`[AnthropicBedrockBackend] Request body: ${bodyStr.substring(0, 1e3)}${bodyStr.length > 1e3 ? "..." : ""}`);
4161
4137
  return {
4162
4138
  modelId,
4163
4139
  contentType: "application/json",
@@ -4215,30 +4191,7 @@ ${modelIdentity}` : modelIdentity;
4215
4191
  translateChunk(model, chunk) {
4216
4192
  try {
4217
4193
  const response = chunk;
4218
- const contentTypes = response.content.map((c) => c.type);
4219
- const thinkingBlocks = response.content.filter((c) => c.type === "thinking");
4220
- console.log(`[AnthropicBedrockBackend] Response received:`, {
4221
- model,
4222
- stopReason: response.stop_reason,
4223
- contentBlockCount: response.content.length,
4224
- contentTypes: contentTypes.join(","),
4225
- hasThinkingBlocks: thinkingBlocks.length > 0,
4226
- thinkingBlockCount: thinkingBlocks.length,
4227
- inputTokens: response.usage?.input_tokens,
4228
- outputTokens: response.usage?.output_tokens
4229
- });
4230
- if (thinkingBlocks.length > 0) {
4231
- console.warn(`[AnthropicBedrockBackend] Unexpected thinking blocks in response`, {
4232
- thinkingBlockCount: thinkingBlocks.length,
4233
- thinkingLengths: thinkingBlocks.map((b) => b.thinking?.length || 0)
4234
- });
4235
- }
4236
4194
  const textContent = response.content.filter((item) => item.type === "text").map((item) => item.text || "").join("");
4237
- console.log(`[AnthropicBedrockBackend] Text extracted:`, {
4238
- textLength: textContent.length,
4239
- textPreview: textContent.substring(0, 200),
4240
- endsWithCloseBrace: textContent.trim().endsWith("}")
4241
- });
4242
4195
  const toolUseBlocks = response.content.filter((item) => item.type === "tool_use");
4243
4196
  let choice;
4244
4197
  if (toolUseBlocks.length > 0) {
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-2PXPXXDN.js";
10
+ } from "./chunk-PV6PZFPC.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-EEGKRFVP.js";
14
+ } from "./chunk-PLA2VBQW.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -330,7 +330,8 @@ var CliConfigSchema = z.object({
330
330
  theme: z.enum(["light", "dark"]),
331
331
  exportFormat: z.enum(["markdown", "json"]),
332
332
  maxIterations: z.number().nullable().prefault(10),
333
- enableSkillTool: z.boolean().optional().prefault(true)
333
+ enableSkillTool: z.boolean().optional().prefault(true),
334
+ enableDynamicAgentCreation: z.boolean().optional().prefault(false)
334
335
  }),
335
336
  tools: z.object({
336
337
  enabled: z.array(z.string()),
@@ -354,7 +355,8 @@ var ProjectConfigSchema = z.object({
354
355
  autoCompact: z.boolean().optional(),
355
356
  theme: z.enum(["light", "dark"]).optional(),
356
357
  exportFormat: z.enum(["markdown", "json"]).optional(),
357
- enableSkillTool: z.boolean().optional()
358
+ enableSkillTool: z.boolean().optional(),
359
+ enableDynamicAgentCreation: z.boolean().optional()
358
360
  }).optional()
359
361
  });
360
362
  var ProjectLocalConfigSchema = z.object({
@@ -370,7 +372,8 @@ var ProjectLocalConfigSchema = z.object({
370
372
  autoCompact: z.boolean().optional(),
371
373
  theme: z.enum(["light", "dark"]).optional(),
372
374
  exportFormat: z.enum(["markdown", "json"]).optional(),
373
- enableSkillTool: z.boolean().optional()
375
+ enableSkillTool: z.boolean().optional(),
376
+ enableDynamicAgentCreation: z.boolean().optional()
374
377
  }).optional(),
375
378
  mcpServers: McpServersSchema.optional()
376
379
  });
@@ -391,7 +394,8 @@ var DEFAULT_CONFIG = {
391
394
  theme: "dark",
392
395
  exportFormat: "markdown",
393
396
  maxIterations: 10,
394
- enableSkillTool: true
397
+ enableSkillTool: true,
398
+ enableDynamicAgentCreation: false
395
399
  },
396
400
  tools: {
397
401
  enabled: [],
@@ -3,7 +3,7 @@ import {
3
3
  fetchLatestVersion,
4
4
  forceCheckForUpdate,
5
5
  package_default
6
- } from "../chunk-S3S2FV2N.js";
6
+ } from "../chunk-FC7EFQL5.js";
7
7
 
8
8
  // src/commands/doctorCommand.ts
9
9
  import { execSync } from "child_process";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ConfigStore
4
- } from "../chunk-32PKF3N7.js";
4
+ } from "../chunk-ZS65NK25.js";
5
5
 
6
6
  // src/commands/mcpCommand.ts
7
7
  async function handleMcpCommand(subcommand, argv) {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  forceCheckForUpdate,
4
4
  package_default
5
- } from "../chunk-S3S2FV2N.js";
5
+ } from "../chunk-FC7EFQL5.js";
6
6
 
7
7
  // src/commands/updateCommand.ts
8
8
  import { execSync } from "child_process";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-RTD3GUAP.js";
6
- import "./chunk-2PXPXXDN.js";
7
- import "./chunk-EEGKRFVP.js";
5
+ } from "./chunk-S6AUIWWB.js";
6
+ import "./chunk-PV6PZFPC.js";
7
+ import "./chunk-PLA2VBQW.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {
10
10
  createFabFile,