@botpress/adk 1.2.3 → 1.2.4

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 +1 @@
1
- {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/generators/workflow-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAMF,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA+Ff"}
1
+ {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/generators/workflow-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAMF,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA4Ff"}
package/dist/index.js CHANGED
@@ -5297,7 +5297,6 @@ async function generateWorkflowTypes(project) {
5297
5297
  const workflowModule = await import(`${workflowPath}?t=${Date.now()}`);
5298
5298
  const workflowInstance = workflowModule[workflowRef.export] || workflowModule.default;
5299
5299
  if (!workflowInstance) {
5300
- console.warn(`No default export found in workflow file: ${workflowRef.path}`);
5301
5300
  continue;
5302
5301
  }
5303
5302
  const inputType = workflowInstance.inputSchema ? workflowInstance.inputSchema.toTypescriptType?.() || "any" : "{}";
@@ -6348,16 +6347,16 @@ export {};
6348
6347
 
6349
6348
  if (isWorkerMode() && isMainThread) {
6350
6349
  // Branch 1: Main thread in worker mode - initialize parent with pool
6351
- console.log("[Main] Initializing parent worker with pool...");
6350
+ if (process.env.BP_DEBUG) console.log("[Main] Initializing parent worker with pool...");
6352
6351
  initializeParentWorker(bot);
6353
6352
  } else if (isWorkerMode() && process.env.IS_DEV_WORKER === "true") {
6354
6353
  // Branch 2: Worker thread - run child worker
6355
- console.log("[Worker] Initializing child worker...");
6354
+ if (process.env.BP_DEBUG) console.log("[Worker] Initializing child worker...");
6356
6355
  runWorker(bot);
6357
6356
  setupAdkRuntime(bot);
6358
6357
  } else {
6359
6358
  // Branch 3: Worker mode disabled - single-thread mode
6360
- console.log("[Bot] Running in single-thread mode");
6359
+ if (process.env.BP_DEBUG) console.log("[Bot] Running in single-thread mode");
6361
6360
  setupAdkRuntime(bot);
6362
6361
  }
6363
6362
 
@@ -7194,5 +7193,5 @@ export {
7194
7193
  AgentProject
7195
7194
  };
7196
7195
 
7197
- //# debugId=CEE7EB582E73320264756E2164756E21
7196
+ //# debugId=78C3235DFD64E97C64756E2164756E21
7198
7197
  //# sourceMappingURL=index.js.map