@promptbook/cli 0.103.0-41 → 0.103.0-42

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.
package/esm/index.es.js CHANGED
@@ -48,7 +48,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
48
48
  * @generated
49
49
  * @see https://github.com/webgptorg/promptbook
50
50
  */
51
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-41';
51
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-42';
52
52
  /**
53
53
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
54
54
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -4991,7 +4991,7 @@ async function $provideLlmToolsForCli(options) {
4991
4991
  strategy = 'REMOTE_SERVER';
4992
4992
  }
4993
4993
  else {
4994
- console.log(colors.red(`Unknown provider: "${provider}", please use "BRING_YOUR_OWN_KEYS" or "REMOTE_SERVER"`));
4994
+ console.log(colors.red(`Unknown provider: "${provider}", please use "--provider BRING_YOUR_OWN_KEYS" or "--provider REMOTE_SERVER"`));
4995
4995
  process.exit(1);
4996
4996
  }
4997
4997
  if (strategy === 'BRING_YOUR_OWN_KEYS') {
@@ -20689,6 +20689,7 @@ class AgentCollectionInDirectory {
20689
20689
  }
20690
20690
  }
20691
20691
  /**
20692
+ * TODO: [🧠][🚙] `AgentXxx` vs `AgentsXxx` naming convention
20692
20693
  * TODO: [🖇] What about symlinks? Maybe option `isSymlinksFollowed`
20693
20694
  * TODO: [🧠] Maybe add option `isImmutable`
20694
20695
  * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
@@ -20714,6 +20715,7 @@ function $initializeStartAgentsServerCommand(program) {
20714
20715
  startServerCommand.alias('start');
20715
20716
  startServerCommand.action(handleActionErrors(async (path, cliOptions) => {
20716
20717
  const { port: portRaw, reload: isCacheReloaded, verbose: isVerbose } = cliOptions;
20718
+ // TODO: !!!! [🌕] DRY
20717
20719
  const port = parseInt(portRaw, 10);
20718
20720
  if (isNaN(port) || port <= 0 || port > 65535) {
20719
20721
  console.error(colors.red(`Invalid port number: ${portRaw}`));
@@ -20746,7 +20748,7 @@ function $initializeStartAgentsServerCommand(program) {
20746
20748
  // console.log({ isRichUi });
20747
20749
  TODO_USE(tools);
20748
20750
  TODO_USE(collection);
20749
- // TODO: !!!! Use
20751
+ // TODO: !!!! Use
20750
20752
  // TODO: !!!! Pass collection and tools to the server starter
20751
20753
  // TODO: !!!! The Next app should be build during the package build step not here
20752
20754
  /*