@promptbook/remote-client 0.112.0-64 → 0.112.0-66

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 (55) hide show
  1. package/esm/index.es.js +90 -10
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/components.index.d.ts +0 -2
  4. package/esm/src/_packages/core.index.d.ts +2 -2
  5. package/esm/src/_packages/types.index.d.ts +0 -2
  6. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  7. package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  8. package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  9. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  10. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  11. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  12. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  13. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  14. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  15. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  16. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  17. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  18. package/esm/src/config.d.ts +3 -3
  19. package/esm/src/formfactors/index.d.ts +2 -2
  20. package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  21. package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  22. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  23. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  24. package/esm/src/utils/files/getPromptbookTempPath.d.ts +24 -0
  25. package/esm/src/version.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/umd/index.umd.js +93 -13
  28. package/umd/index.umd.js.map +1 -1
  29. package/umd/src/_packages/components.index.d.ts +0 -2
  30. package/umd/src/_packages/core.index.d.ts +2 -2
  31. package/umd/src/_packages/types.index.d.ts +0 -2
  32. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  33. package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  34. package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  35. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  36. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  37. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  38. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  39. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  40. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  41. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  42. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  43. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  44. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  45. package/umd/src/config.d.ts +3 -3
  46. package/umd/src/formfactors/index.d.ts +2 -2
  47. package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  48. package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  49. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  50. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  51. package/umd/src/utils/files/getPromptbookTempPath.d.ts +24 -0
  52. package/umd/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
  53. package/umd/src/version.d.ts +1 -1
  54. /package/esm/src/{commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts} +0 -0
  55. /package/{umd/src/commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → esm/src/utils/files/getPromptbookTempPath.test.d.ts} +0 -0
package/umd/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('crypto'), require('socket.io-client'), require('crypto-js'), require('crypto-js/enc-hex'), require('papaparse'), require('path')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'crypto', 'socket.io-client', 'crypto-js', 'crypto-js/enc-hex', 'papaparse', 'path'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-remote-client"] = {}, global.spacetrim, global.crypto, global.socket_ioClient, global.cryptoJs, global.hexEncoder, global.papaparse, global.path));
5
- })(this, (function (exports, spacetrim, crypto, socket_ioClient, cryptoJs, hexEncoder, papaparse, path) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('crypto'), require('path'), require('socket.io-client'), require('crypto-js'), require('crypto-js/enc-hex'), require('papaparse')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'crypto', 'path', 'socket.io-client', 'crypto-js', 'crypto-js/enc-hex', 'papaparse'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-remote-client"] = {}, global.spacetrim, global.crypto, global.path, global.socket_ioClient, global.cryptoJs, global.hexEncoder, global.papaparse));
5
+ })(this, (function (exports, spacetrim, crypto, path, socket_ioClient, cryptoJs, hexEncoder, papaparse) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -22,7 +22,7 @@
22
22
  * @generated
23
23
  * @see https://github.com/webgptorg/promptbook
24
24
  */
25
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-64';
25
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-66';
26
26
  /**
27
27
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
28
28
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1233,6 +1233,29 @@
1233
1233
  }
1234
1234
  // TODO: Maybe implement by mix+hsl
1235
1235
 
1236
+ /**
1237
+ * Relative directory name without the `./` prefix for Git ignore rules and glob patterns.
1238
+ *
1239
+ * @private internal utility for Promptbook-owned temp files
1240
+ */
1241
+ const PROMPTBOOK_TEMP_DIRECTORY_NAME = '.promptbook';
1242
+ /**
1243
+ * Builds one project-relative path inside the shared Promptbook working directory.
1244
+ *
1245
+ * @private internal utility for Promptbook-owned temp files
1246
+ */
1247
+ function getPromptbookTempPath(...pathSegments) {
1248
+ return `./${getPromptbookTempPosixPath(...pathSegments)}`;
1249
+ }
1250
+ /**
1251
+ * Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
1252
+ *
1253
+ * @private internal utility for Promptbook-owned temp files
1254
+ */
1255
+ function getPromptbookTempPosixPath(...pathSegments) {
1256
+ return path.posix.join(PROMPTBOOK_TEMP_DIRECTORY_NAME, ...pathSegments);
1257
+ }
1258
+
1236
1259
  /**
1237
1260
  * Returns the same value that is passed as argument.
1238
1261
  * No side effects.
@@ -1359,6 +1382,31 @@
1359
1382
  * @private within the repository - too low-level in comparison with other `MAX_...`
1360
1383
  */
1361
1384
  const CONNECTION_RETRIES_LIMIT = 5;
1385
+ // <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
1386
+ /**
1387
+ * Where to store the temporary downloads
1388
+ *
1389
+ * Note: When the folder does not exist, it is created recursively
1390
+ *
1391
+ * @public exported from `@promptbook/core`
1392
+ */
1393
+ getPromptbookTempPath('download-cache');
1394
+ /**
1395
+ * Where to store the cache of executions for promptbook CLI
1396
+ *
1397
+ * Note: When the folder does not exist, it is created recursively
1398
+ *
1399
+ * @public exported from `@promptbook/core`
1400
+ */
1401
+ getPromptbookTempPath('execution-cache');
1402
+ /**
1403
+ * Where to store the scrape cache
1404
+ *
1405
+ * Note: When the folder does not exist, it is created recursively
1406
+ *
1407
+ * @public exported from `@promptbook/core`
1408
+ */
1409
+ getPromptbookTempPath('scrape-cache');
1362
1410
  // <- TODO: [🧜‍♂️]
1363
1411
  /**
1364
1412
  * Default settings for parsing and generating CSV files in Promptbook.
@@ -4071,8 +4119,10 @@
4071
4119
  */
4072
4120
  const MatcherFormfactorDefinition = {
4073
4121
  name: 'EXPERIMENTAL_MATCHER',
4074
- description: `An evaluation system that determines whether content meets specific criteria or patterns.
4075
- Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.`,
4122
+ description: spacetrim.spaceTrim(`
4123
+ An evaluation system that determines whether content meets specific criteria or patterns.
4124
+ Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.
4125
+ `),
4076
4126
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/177`,
4077
4127
  pipelineInterface: {
4078
4128
  inputParameters: [
@@ -4129,9 +4179,11 @@
4129
4179
  */
4130
4180
  const TranslatorFormfactorDefinition = {
4131
4181
  name: 'TRANSLATOR',
4132
- description: `A text transformation system that converts input content into different forms,
4133
- including language translations, paraphrasing, style conversions, and tone adjustments.
4134
- This form factor takes one input and produces one transformed output.`,
4182
+ description: spacetrim.spaceTrim(`
4183
+ A text transformation system that converts input content into different forms,
4184
+ including language translations, paraphrasing, style conversions, and tone adjustments.
4185
+ This form factor takes one input and produces one transformed output.
4186
+ `),
4135
4187
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/175`,
4136
4188
  pipelineInterface: {
4137
4189
  inputParameters: [
@@ -5537,12 +5589,21 @@
5537
5589
  // <- TODO: [🧠] Make this dynamic, async, prepare-phase HLAs
5538
5590
  ],
5539
5591
  });
5540
- // TODO: Use spaceTrim in multiline strings
5541
5592
  $pipelineJson.tasks.push({
5542
5593
  taskType: 'PROMPT_TASK',
5543
5594
  name: 'create-an-answer',
5544
5595
  title: 'Create an answer',
5545
- content: 'Write a response to the user message:\n\n**Question from user**\n\n> {userMessage}\n\n**Previous conversation**\n\n> {previousConversationSummary}',
5596
+ content: spacetrim.spaceTrim(`
5597
+ Write a response to the user message:
5598
+
5599
+ **Question from user**
5600
+
5601
+ > {userMessage}
5602
+
5603
+ **Previous conversation**
5604
+
5605
+ > {previousConversationSummary}
5606
+ `),
5546
5607
  resultingParameterName: 'chatbotResponse',
5547
5608
  personaName,
5548
5609
  dependentParameterNames: [
@@ -5554,7 +5615,26 @@
5554
5615
  taskType: 'PROMPT_TASK',
5555
5616
  name: 'summarize-the-conversation',
5556
5617
  title: 'Summarize the conversation',
5557
- content: 'Summarize the conversation in a few words:\n\n## Rules\n\n- Summarise the text of the conversation in a few words\n- Convert the text to its basic idea\n- Imagine you are writing the headline or subject line of an email\n- Respond with a few words of summary only\n\n## Conversation\n\n**User:**\n\n> {userMessage}\n\n**You:**\n\n> {chatbotResponse}',
5618
+ content: spacetrim.spaceTrim(`
5619
+ Summarize the conversation in a few words:
5620
+
5621
+ ## Rules
5622
+
5623
+ - Summarise the text of the conversation in a few words
5624
+ - Convert the text to its basic idea
5625
+ - Imagine you are writing the headline or subject line of an email
5626
+ - Respond with a few words of summary only
5627
+
5628
+ ## Conversation
5629
+
5630
+ **User:**
5631
+
5632
+ > {userMessage}
5633
+
5634
+ **You:**
5635
+
5636
+ > {chatbotResponse}
5637
+ `),
5558
5638
  resultingParameterName: 'conversationSummary',
5559
5639
  personaName,
5560
5640
  expectations: {