@promptbook/legacy-documents 0.100.3-0 → 0.101.0-0

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 (62) hide show
  1. package/esm/index.es.js +9 -2
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +4 -2
  4. package/esm/typings/src/_packages/markdown-utils.index.d.ts +14 -0
  5. package/esm/typings/src/_packages/types.index.d.ts +4 -6
  6. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +21 -0
  7. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentModelRequirements.d.ts +1 -1
  8. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentSourceParseResult.d.ts +3 -1
  9. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirements.d.ts +2 -2
  10. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirementsWithCommitments.d.ts +3 -3
  11. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createCommitmentRegex.d.ts +2 -2
  12. package/esm/typings/src/book-2.0/agent-source/extractMetaLinks.d.ts +8 -0
  13. package/esm/typings/src/book-2.0/agent-source/parseAgentSource.d.ts +4 -19
  14. package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +9 -0
  15. package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +1 -1
  16. package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +1 -1
  17. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +1 -1
  18. package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +1 -1
  19. package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +1 -1
  20. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +1 -1
  21. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +1 -1
  22. package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +1 -1
  23. package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +1 -1
  24. package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +1 -1
  25. package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +1 -1
  26. package/esm/typings/src/book-2.0/commitments/_base/BaseCommitmentDefinition.d.ts +1 -1
  27. package/esm/typings/src/book-2.0/commitments/_base/CommitmentDefinition.d.ts +1 -1
  28. package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +1 -1
  29. package/esm/typings/src/book-2.0/commitments/{_misc → _base}/ParsedCommitment.d.ts +1 -1
  30. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  31. package/esm/typings/src/book-2.0/utils/extractAgentMetadata.d.ts +17 -0
  32. package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +12 -0
  33. package/esm/typings/src/book-2.0/utils/generateGravatarUrl.d.ts +10 -0
  34. package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +10 -0
  35. package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -1
  36. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +2 -8
  37. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +6 -0
  38. package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  39. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +1 -1
  40. package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +2 -1
  41. package/esm/typings/src/utils/expectation-counters/countLines.d.ts +2 -1
  42. package/esm/typings/src/utils/expectation-counters/countPages.d.ts +2 -1
  43. package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +2 -1
  44. package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +1 -0
  45. package/esm/typings/src/utils/expectation-counters/countWords.d.ts +3 -1
  46. package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +12 -0
  47. package/esm/typings/src/utils/markdown/humanizeAiText.test.d.ts +1 -0
  48. package/esm/typings/src/utils/markdown/humanizeAiTextEllipsis.d.ts +12 -0
  49. package/esm/typings/src/utils/markdown/humanizeAiTextEmdashed.d.ts +12 -0
  50. package/esm/typings/src/utils/markdown/humanizeAiTextQuotes.d.ts +12 -0
  51. package/esm/typings/src/utils/markdown/humanizeAiTextWhitespace.d.ts +12 -0
  52. package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +11 -0
  53. package/esm/typings/src/utils/markdown/promptbookifyAiText.test.d.ts +1 -0
  54. package/esm/typings/src/utils/markdown/removeMarkdownLinks.d.ts +11 -0
  55. package/esm/typings/src/utils/markdown/removeMarkdownLinks.test.d.ts +4 -0
  56. package/esm/typings/src/version.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/umd/index.umd.js +9 -2
  59. package/umd/index.umd.js.map +1 -1
  60. package/esm/typings/src/book-2.0/commitments/_misc/parseAgentSourceWithCommitments.d.ts +0 -24
  61. package/esm/typings/src/book-2.0/utils/profileImageUtils.d.ts +0 -39
  62. /package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/removeCommentsFromSystemMessage.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Removes Markdown link tags from a string.
3
+ *
4
+ * @param {string} str - The string to remove Markdown tags from.
5
+ * @returns {string} The input string with all Markdown tags removed.
6
+ * @public exported from `@promptbook/markdown-utils`
7
+ */
8
+ export declare function removeMarkdownLinks(str: string): string;
9
+ /**
10
+ * @see https://chat.openai.com/chat/bb7c3a5b-fe9c-4ccc-9057-f47e0fd66489
11
+ */
@@ -0,0 +1,4 @@
1
+ export {};
2
+ /**
3
+ * @see https://chat.openai.com/chat/bb7c3a5b-fe9c-4ccc-9057-f47e0fd66489
4
+ */
@@ -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.100.2`).
18
+ * It follows semantic versioning (e.g., `0.100.4-0`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/legacy-documents",
3
- "version": "0.100.3-0",
3
+ "version": "0.101.0-0",
4
4
  "description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -95,7 +95,7 @@
95
95
  "module": "./esm/index.es.js",
96
96
  "typings": "./esm/typings/src/_packages/legacy-documents.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.100.3-0"
98
+ "@promptbook/core": "0.101.0-0"
99
99
  },
100
100
  "dependencies": {
101
101
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -27,7 +27,7 @@
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.100.3-0';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -3169,7 +3169,7 @@
3169
3169
  };
3170
3170
  /**
3171
3171
  * TODO: Refactor this - each profile must be alongside the provider definition
3172
- * TODO: [🕛] Unite `AvatarProfileProps`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
3172
+ * TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
3173
3173
  * Note: [💞] Ignore a discrepancy between file name and entity name
3174
3174
  */
3175
3175
 
@@ -5083,6 +5083,7 @@
5083
5083
  }
5084
5084
  /**
5085
5085
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5086
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5086
5087
  */
5087
5088
 
5088
5089
  /**
@@ -5117,6 +5118,7 @@
5117
5118
  }
5118
5119
  /**
5119
5120
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5121
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5120
5122
  */
5121
5123
 
5122
5124
  /**
@@ -5131,6 +5133,7 @@
5131
5133
  }
5132
5134
  /**
5133
5135
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5136
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5134
5137
  */
5135
5138
 
5136
5139
  /**
@@ -5143,6 +5146,7 @@
5143
5146
  }
5144
5147
  /**
5145
5148
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5149
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5146
5150
  */
5147
5151
 
5148
5152
  /**
@@ -5163,6 +5167,7 @@
5163
5167
  }
5164
5168
  /**
5165
5169
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5170
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5166
5171
  */
5167
5172
 
5168
5173
  /**
@@ -5179,6 +5184,8 @@
5179
5184
  }
5180
5185
  /**
5181
5186
  * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
5187
+ * TODO: [🧠][✌️] Make some Promptbook-native token system
5188
+ * TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
5182
5189
  */
5183
5190
 
5184
5191
  /**