@promptbook/node 0.103.0-47 → 0.103.0-48

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.
Files changed (31) hide show
  1. package/esm/index.es.js +10 -1
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +6 -0
  4. package/esm/typings/src/_packages/types.index.d.ts +2 -0
  5. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -3
  6. package/esm/typings/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +2 -1
  7. package/esm/typings/src/book-2.0/agent-source/computeAgentHash.d.ts +8 -0
  8. package/esm/typings/src/book-2.0/agent-source/computeAgentHash.test.d.ts +1 -0
  9. package/esm/typings/src/book-2.0/agent-source/createDefaultAgentName.d.ts +8 -0
  10. package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.d.ts +9 -0
  11. package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.test.d.ts +1 -0
  12. package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +1 -1
  13. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +57 -32
  14. package/esm/typings/src/llm-providers/_common/utils/assertUniqueModels.d.ts +12 -0
  15. package/esm/typings/src/llm-providers/agent/Agent.d.ts +7 -2
  16. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +4 -0
  17. package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +2 -2
  18. package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +24 -3
  19. package/esm/typings/src/llm-providers/openai/openai-models.test.d.ts +4 -0
  20. package/esm/typings/src/remote-server/startAgentServer.d.ts +1 -1
  21. package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -2
  22. package/esm/typings/src/transpilers/openai-sdk/register.d.ts +1 -1
  23. package/esm/typings/src/types/typeAliases.d.ts +6 -0
  24. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -0
  25. package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +3 -0
  26. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -0
  27. package/esm/typings/src/utils/normalization/titleToName.d.ts +2 -0
  28. package/esm/typings/src/version.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/umd/index.umd.js +10 -1
  31. package/umd/index.umd.js.map +1 -1
package/esm/index.es.js CHANGED
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
28
28
  * @generated
29
29
  * @see https://github.com/webgptorg/promptbook
30
30
  */
31
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-47';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-48';
32
32
  /**
33
33
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
34
34
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -6450,6 +6450,8 @@ function $registeredScrapersMessage(availableScrapers) {
6450
6450
  /**
6451
6451
  * Converts a given text to kebab-case format.
6452
6452
  *
6453
+ * Note: [🔂] This function is idempotent.
6454
+ *
6453
6455
  * @param text The text to be converted.
6454
6456
  * @returns The kebab-case formatted string.
6455
6457
  * @example 'hello-world'
@@ -6605,6 +6607,8 @@ function removeEmojis(text) {
6605
6607
  /**
6606
6608
  * Converts a title string into a normalized name.
6607
6609
  *
6610
+ * Note: [🔂] This function is idempotent.
6611
+ *
6608
6612
  * @param value The title string to be converted to a name.
6609
6613
  * @returns A normalized name derived from the input title.
6610
6614
  * @example 'Hello World!' -> 'hello-world'
@@ -7887,6 +7891,8 @@ const expectCommandParser = {
7887
7891
  /**
7888
7892
  * Normalizes a given text to camelCase format.
7889
7893
  *
7894
+ * Note: [🔂] This function is idempotent.
7895
+ *
7890
7896
  * @param text The text to be normalized.
7891
7897
  * @param _isFirstLetterCapital Whether the first letter should be capitalized.
7892
7898
  * @returns The camelCase formatted string.
@@ -11666,6 +11672,9 @@ function nameToUriParts(name) {
11666
11672
  }
11667
11673
 
11668
11674
  /**
11675
+ * Normalizes a given text to PascalCase format.
11676
+ *
11677
+ * Note: [🔂] This function is idempotent.
11669
11678
  *
11670
11679
  * @param text @public exported from `@promptbook/utils`
11671
11680
  * @returns