@promptbook/cli 0.103.0-40 → 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 +5 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -0
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +3 -0
- package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.d.ts +1 -0
- package/esm/typings/src/remote-server/startAgentServer.d.ts +23 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +5 -2
- package/umd/index.umd.js.map +1 -1
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-
|
|
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,6 +20748,7 @@ function $initializeStartAgentsServerCommand(program) {
|
|
|
20746
20748
|
// console.log({ isRichUi });
|
|
20747
20749
|
TODO_USE(tools);
|
|
20748
20750
|
TODO_USE(collection);
|
|
20751
|
+
// TODO: !!!! Use
|
|
20749
20752
|
// TODO: !!!! Pass collection and tools to the server starter
|
|
20750
20753
|
// TODO: !!!! The Next app should be build during the package build step not here
|
|
20751
20754
|
/*
|