@promptbook/templates 0.82.0-0 → 0.82.0-3

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 (35) hide show
  1. package/esm/index.es.js +11 -11
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +2 -0
  4. package/esm/typings/src/_packages/remote-client.index.d.ts +9 -3
  5. package/esm/typings/src/_packages/remote-server.index.d.ts +8 -2
  6. package/esm/typings/src/_packages/types.index.d.ts +16 -26
  7. package/esm/typings/src/collection/PipelineCollection.d.ts +2 -0
  8. package/esm/typings/src/config.d.ts +6 -0
  9. package/esm/typings/src/conversion/compilePipelineOnRemoteServer.d.ts +6 -3
  10. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +2 -2
  11. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -7
  12. package/esm/typings/src/other/templates/getBookTemplates.d.ts +5 -3
  13. package/esm/typings/src/prepare/preparePipelineOnRemoteServer.d.ts +5 -2
  14. package/esm/typings/src/remote-server/createRemoteClient.d.ts +10 -0
  15. package/esm/typings/src/remote-server/{interfaces → socket-types/_common}/PromptbookServer_Error.d.ts +3 -3
  16. package/esm/typings/src/remote-server/socket-types/_common/PromptbookServer_Progress.d.ts +10 -0
  17. package/esm/typings/src/remote-server/socket-types/_subtypes/PromptbookServer_Identification.d.ts +49 -0
  18. package/esm/typings/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +17 -0
  19. package/esm/typings/src/remote-server/{interfaces → socket-types/listModels}/PromptbookServer_ListModels_Response.d.ts +4 -2
  20. package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Request.d.ts +17 -0
  21. package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Response.d.ts +12 -0
  22. package/esm/typings/src/remote-server/socket-types/prompt/PromptbookServer_Prompt_Request.d.ts +17 -0
  23. package/esm/typings/src/remote-server/{interfaces → socket-types/prompt}/PromptbookServer_Prompt_Response.d.ts +3 -3
  24. package/esm/typings/src/remote-server/startRemoteServer.d.ts +3 -2
  25. package/esm/typings/src/remote-server/types/RemoteClientOptions.d.ts +32 -0
  26. package/esm/typings/src/types/Arrayable.d.ts +1 -0
  27. package/esm/typings/src/types/NonEmptyArray.d.ts +8 -0
  28. package/package.json +2 -2
  29. package/umd/index.umd.js +11 -11
  30. package/umd/index.umd.js.map +1 -1
  31. package/esm/typings/src/remote-server/interfaces/PromptbookServer_ListModels_Request.d.ts +0 -38
  32. package/esm/typings/src/remote-server/interfaces/PromptbookServer_Prompt_Progress.d.ts +0 -12
  33. package/esm/typings/src/remote-server/interfaces/PromptbookServer_Prompt_Request.d.ts +0 -45
  34. package/esm/typings/src/remote-server/interfaces/RemoteLlmExecutionToolsOptions.d.ts +0 -54
  35. /package/esm/typings/src/remote-server/{interfaces → types}/RemoteServerOptions.d.ts +0 -0
package/esm/index.es.js CHANGED
@@ -16,7 +16,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/promptbook
18
18
  */
19
- var PROMPTBOOK_ENGINE_VERSION = '0.81.0-23';
19
+ var PROMPTBOOK_ENGINE_VERSION = '0.82.0-2';
20
20
  /**
21
21
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
22
22
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1575,7 +1575,7 @@ function getTemplatesPipelineCollection() {
1575
1575
  "preparations": [
1576
1576
  {
1577
1577
  "id": 1,
1578
- "promptbookVersion": "0.81.0-23",
1578
+ "promptbookVersion": "0.82.0-2",
1579
1579
  "usage": {
1580
1580
  "price": {
1581
1581
  "value": 0.005805
@@ -1793,7 +1793,7 @@ function getTemplatesPipelineCollection() {
1793
1793
  "preparations": [
1794
1794
  {
1795
1795
  "id": 1,
1796
- "promptbookVersion": "0.81.0-23",
1796
+ "promptbookVersion": "0.82.0-2",
1797
1797
  "usage": {
1798
1798
  "price": {
1799
1799
  "value": 0.005757
@@ -1915,7 +1915,7 @@ function getTemplatesPipelineCollection() {
1915
1915
  "preparations": [
1916
1916
  {
1917
1917
  "id": 1,
1918
- "promptbookVersion": "0.81.0-23",
1918
+ "promptbookVersion": "0.82.0-2",
1919
1919
  "usage": {
1920
1920
  "price": {
1921
1921
  "value": 0.005442000000000001
@@ -1980,7 +1980,7 @@ function getTemplatesPipelineCollection() {
1980
1980
  ],
1981
1981
  "sourceFile": "./book/books/templates/generator.book.md"
1982
1982
  }, {
1983
- "title": "😂 Topic-to-Joke Generator",
1983
+ "title": "😂 Joke Generator",
1984
1984
  "pipelineUrl": "https://github.com/webgptorg/book/blob/main/books/templates//book/books/templates/generic.book.md",
1985
1985
  "formfactorName": "GENERIC",
1986
1986
  "parameters": [
@@ -2011,7 +2011,7 @@ function getTemplatesPipelineCollection() {
2011
2011
  "preparations": [
2012
2012
  {
2013
2013
  "id": 1,
2014
- "promptbookVersion": "0.81.0-23",
2014
+ "promptbookVersion": "0.82.0-2",
2015
2015
  "usage": {
2016
2016
  "price": {
2017
2017
  "value": 0
@@ -2128,7 +2128,7 @@ function getTemplatesPipelineCollection() {
2128
2128
  "preparations": [
2129
2129
  {
2130
2130
  "id": 1,
2131
- "promptbookVersion": "0.81.0-23",
2131
+ "promptbookVersion": "0.82.0-2",
2132
2132
  "usage": {
2133
2133
  "price": {
2134
2134
  "value": 0.005124
@@ -2258,7 +2258,7 @@ function getTemplatesPipelineCollection() {
2258
2258
  "preparations": [
2259
2259
  {
2260
2260
  "id": 1,
2261
- "promptbookVersion": "0.81.0-23",
2261
+ "promptbookVersion": "0.82.0-2",
2262
2262
  "usage": {
2263
2263
  "price": {
2264
2264
  "value": 0.0054540000000000005
@@ -2534,7 +2534,7 @@ function getTemplatesPipelineCollection() {
2534
2534
  "preparations": [
2535
2535
  {
2536
2536
  "id": 1,
2537
- "promptbookVersion": "0.81.0-23",
2537
+ "promptbookVersion": "0.82.0-2",
2538
2538
  "usage": {
2539
2539
  "price": {
2540
2540
  "value": 0.006237
@@ -2621,7 +2621,7 @@ function getBookTemplates(formfactorName) {
2621
2621
  if (pipelines === null) {
2622
2622
  var collection_1 = getTemplatesPipelineCollection();
2623
2623
  var pipelineUrls = collection_1.listPipelines(); // <- Note: [0] Function `listPipelines` is sync because `templatesPipelineCollection` is `SimplePipelineCollection`
2624
- pipelines = pipelineUrls.map(function (pipelineUrl) { return collection_1 === null || collection_1 === void 0 ? void 0 : collection_1.getPipelineByUrl(pipelineUrl); } /* <- Note: [0] */);
2624
+ pipelines = pipelineUrls.map(function (pipelineUrl) { return collection_1 === null || collection_1 === void 0 ? void 0 : collection_1.getPipelineByUrl(pipelineUrl); });
2625
2625
  }
2626
2626
  if (formfactorName === undefined) {
2627
2627
  return pipelines;
@@ -2631,7 +2631,7 @@ function getBookTemplates(formfactorName) {
2631
2631
  }
2632
2632
  }
2633
2633
  /**
2634
- * TODO: Unit test
2634
+ * TODO: Unit test + test that what we guarantee - always return non-empty array is true for e
2635
2635
  * TODO: [🧠] Which is the best place for this function
2636
2636
  * TODO: !!6 For GENERIC template ensure at least one pipeline is present for typescript in `getBookTemplates`
2637
2637
  */