@promptbook/cli 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/cli",
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,
package/umd/index.umd.js CHANGED
@@ -60,7 +60,7 @@
60
60
  * @generated
61
61
  * @see https://github.com/webgptorg/promptbook
62
62
  */
63
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-50';
63
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-52';
64
64
  /**
65
65
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
66
66
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2548,9 +2548,7 @@
2548
2548
  * Detects whether `.gitignore` already covers one exact rule.
2549
2549
  */
2550
2550
  function hasGitignoreRule(gitignoreContent, rule) {
2551
- const normalizedRulePattern = rule.startsWith('/')
2552
- ? `/?${escapeRegExp$1(rule.slice(1))}`
2553
- : escapeRegExp$1(rule);
2551
+ const normalizedRulePattern = rule.startsWith('/') ? `/?${escapeRegExp$1(rule.slice(1))}` : escapeRegExp$1(rule);
2554
2552
  return new RegExp(`(^|[\\r\\n])${normalizedRulePattern}(?:[\\r\\n]|$)`, 'u').test(gitignoreContent);
2555
2553
  }
2556
2554
  // Note: [🟡] Code for coder init gitignore bootstrapping [ensureCoderGitignoreFile](src/cli/cli-commands/coder/ensureCoderGitignoreFile.ts) should never be published outside of `@promptbook/cli`
@@ -3146,7 +3144,11 @@
3146
3144
  return undefined;
3147
3145
  }
3148
3146
  const parts = Array.isArray(value) ? value : [value];
3149
- const normalizedValue = parts.map((part) => part.trim()).filter(Boolean).join(' ').trim();
3147
+ const normalizedValue = parts
3148
+ .map((part) => part.trim())
3149
+ .filter(Boolean)
3150
+ .join(' ')
3151
+ .trim();
3150
3152
  return normalizedValue === '' ? undefined : normalizedValue;
3151
3153
  }
3152
3154
  // Note: [🟡] Code for CLI command [run](src/cli/cli-commands/coder/run.ts) should never be published outside of `@promptbook/cli`
@@ -25032,9 +25034,7 @@
25032
25034
  const searchEngine = new SerpSearchEngine();
25033
25035
  const results = await searchEngine.search(query, searchOptions);
25034
25036
  return _spaceTrim.spaceTrim((block) => `
25035
- ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0
25036
- ? ''
25037
- : ` with options ${JSON.stringify(searchOptions)}`}:
25037
+ ${resultLabel} results for "${query}"${Object.keys(searchOptions).length === 0 ? '' : ` with options ${JSON.stringify(searchOptions)}`}:
25038
25038
 
25039
25039
  ${block(results
25040
25040
  .map((result) => _spaceTrim.spaceTrim(`
@@ -52083,7 +52083,9 @@ bash "$1"
52083
52083
  * @private helper of `OpenAiAgentKitExecutionTools`
52084
52084
  */
52085
52085
  function buildDeepSearchToolInput(rawInput) {
52086
- const input = rawInput && typeof rawInput === 'object' ? rawInput : {};
52086
+ const input = rawInput && typeof rawInput === 'object'
52087
+ ? rawInput
52088
+ : {};
52087
52089
  const query = typeof input.query === 'string' ? input.query.trim() : '';
52088
52090
  const additionalHints = Object.entries(input)
52089
52091
  .filter(([key, value]) => key !== 'query' && value !== undefined && value !== null && String(value).trim() !== '')
@@ -53508,8 +53510,7 @@ bash "$1"
53508
53510
  console.info('[🤰]', 'Prepared OpenAI Assistant prompt', {
53509
53511
  agent: this.title,
53510
53512
  toolNames: (_b = (_a = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.tools) === null || _a === void 0 ? void 0 : _a.map((tool) => tool.name)) !== null && _b !== void 0 ? _b : [],
53511
- knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements
53512
- .knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
53513
+ knowledgeSourcesCount: (_d = (_c = promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools.modelRequirements.knowledgeSources) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
53513
53514
  });
53514
53515
  }
53515
53516
  return assistant.callChatModelStream(promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools, options.onProgress, options.streamOptions);