@promptbook/wizard 0.112.0-50 → 0.112.0-52

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.
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0-49`).
18
+ * It follows semantic versioning (e.g., `0.112.0-51`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/wizard",
3
- "version": "0.112.0-50",
3
+ "version": "0.112.0-52",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -99,7 +99,7 @@
99
99
  "types": "./esm/src/_packages/wizard.index.d.ts",
100
100
  "typings": "./esm/src/_packages/wizard.index.d.ts",
101
101
  "peerDependencies": {
102
- "@promptbook/core": "0.112.0-50"
102
+ "@promptbook/core": "0.112.0-52"
103
103
  },
104
104
  "dependencies": {
105
105
  "@ai-sdk/deepseek": "0.1.17",
package/umd/index.umd.js CHANGED
@@ -49,7 +49,7 @@
49
49
  * @generated
50
50
  * @see https://github.com/webgptorg/promptbook
51
51
  */
52
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-50';
52
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
53
53
  /**
54
54
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
55
55
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -25647,9 +25647,7 @@
25647
25647
  const searchEngine = new SerpSearchEngine();
25648
25648
  const results = await searchEngine.search(query, searchOptions);
25649
25649
  return _spaceTrim.spaceTrim((block) => `
25650
- ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
25651
- ? ''
25652
- : ` with options ${JSON.stringify(searchOptions)}`}:
25650
+ ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
25653
25651
 
25654
25652
  ${block(results
25655
25653
  .map((result) => _spaceTrim.spaceTrim(`
@@ -39453,7 +39451,9 @@
39453
39451
  * @private helper of `OpenAiAgentKitExecutionTools`
39454
39452
  */
39455
39453
  function buildDeepSearchToolInput(rawInput) {
39456
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
39454
+ const input = rawInput && typeof rawInput === 'object'
39455
+ ? rawInput
39456
+ : {};
39457
39457
  const query = typeof input.query === 'string' ? input.query.trim() : '';
39458
39458
  const additionalHints = Object.entries(input)
39459
39459
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -40878,8 +40878,7 @@
40878
40878
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
40879
40879
  agent: this.title,
40880
40880
  toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
40881
- knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
40882
- .knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
40881
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
40883
40882
  });
40884
40883
  }
40885
40884
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);