@promptbook/templates 0.88.0 → 0.89.0-2
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/README.md +4 -0
- package/esm/index.es.js +9 -9
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +6 -2
- package/esm/typings/src/_packages/types.index.d.ts +16 -4
- package/esm/typings/src/cli/cli-commands/login.d.ts +15 -0
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -2
- package/esm/typings/src/execution/PromptResult.d.ts +2 -2
- package/esm/typings/src/execution/{PromptResultUsage.d.ts → Usage.d.ts} +5 -5
- package/esm/typings/src/execution/utils/addUsage.d.ts +2 -2
- package/esm/typings/src/execution/utils/computeUsageCounts.d.ts +3 -3
- package/esm/typings/src/execution/utils/usage-constants.d.ts +77 -60
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +5 -5
- package/esm/typings/src/execution/utils/usageToWorktime.d.ts +5 -5
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +9 -2
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/{countTotalUsage.d.ts → countUsage.d.ts} +1 -1
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +2 -2
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +0 -9
- package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.d.ts +2 -2
- package/esm/typings/src/pipeline/PipelineJson/PreparationJson.d.ts +2 -2
- package/esm/typings/src/playground/BrjappConnector.d.ts +67 -0
- package/esm/typings/src/playground/brjapp-api-schema.d.ts +12879 -0
- package/esm/typings/src/playground/playground.d.ts +5 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/PromptbookServer_Identification.d.ts +2 -1
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +15 -3
- package/esm/typings/src/types/typeAliases.d.ts +8 -2
- package/package.json +2 -2
- package/umd/index.umd.js +9 -9
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
<blockquote style="color: #ff8811">
|
|
27
|
+
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
28
|
+
</blockquote>
|
|
29
|
+
|
|
26
30
|
## 📦 Package `@promptbook/templates`
|
|
27
31
|
|
|
28
32
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
package/esm/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.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
|
|
@@ -1494,7 +1494,7 @@ function getTemplatesPipelineCollection() {
|
|
|
1494
1494
|
"preparations": [
|
|
1495
1495
|
{
|
|
1496
1496
|
"id": 1,
|
|
1497
|
-
"promptbookVersion": "0.
|
|
1497
|
+
"promptbookVersion": "0.89.0-1",
|
|
1498
1498
|
"usage": {
|
|
1499
1499
|
"price": {
|
|
1500
1500
|
"value": 0.005718
|
|
@@ -1975,7 +1975,7 @@ function getTemplatesPipelineCollection() {
|
|
|
1975
1975
|
"preparations": [
|
|
1976
1976
|
{
|
|
1977
1977
|
"id": 1,
|
|
1978
|
-
"promptbookVersion": "0.
|
|
1978
|
+
"promptbookVersion": "0.89.0-1",
|
|
1979
1979
|
"usage": {
|
|
1980
1980
|
"price": {
|
|
1981
1981
|
"value": 0.005718
|
|
@@ -2551,7 +2551,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2551
2551
|
"preparations": [
|
|
2552
2552
|
{
|
|
2553
2553
|
"id": 1,
|
|
2554
|
-
"promptbookVersion": "0.
|
|
2554
|
+
"promptbookVersion": "0.89.0-1",
|
|
2555
2555
|
"usage": {
|
|
2556
2556
|
"price": {
|
|
2557
2557
|
"value": 0.00588
|
|
@@ -2673,7 +2673,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2673
2673
|
"preparations": [
|
|
2674
2674
|
{
|
|
2675
2675
|
"id": 1,
|
|
2676
|
-
"promptbookVersion": "0.
|
|
2676
|
+
"promptbookVersion": "0.89.0-1",
|
|
2677
2677
|
"usage": {
|
|
2678
2678
|
"price": {
|
|
2679
2679
|
"value": 0.005865
|
|
@@ -2769,7 +2769,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2769
2769
|
"preparations": [
|
|
2770
2770
|
{
|
|
2771
2771
|
"id": 1,
|
|
2772
|
-
"promptbookVersion": "0.
|
|
2772
|
+
"promptbookVersion": "0.89.0-1",
|
|
2773
2773
|
"usage": {
|
|
2774
2774
|
"price": {
|
|
2775
2775
|
"value": 0
|
|
@@ -2886,7 +2886,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2886
2886
|
"preparations": [
|
|
2887
2887
|
{
|
|
2888
2888
|
"id": 1,
|
|
2889
|
-
"promptbookVersion": "0.
|
|
2889
|
+
"promptbookVersion": "0.89.0-1",
|
|
2890
2890
|
"usage": {
|
|
2891
2891
|
"price": {
|
|
2892
2892
|
"value": 0.005412
|
|
@@ -3016,7 +3016,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3016
3016
|
"preparations": [
|
|
3017
3017
|
{
|
|
3018
3018
|
"id": 1,
|
|
3019
|
-
"promptbookVersion": "0.
|
|
3019
|
+
"promptbookVersion": "0.89.0-1",
|
|
3020
3020
|
"usage": {
|
|
3021
3021
|
"price": {
|
|
3022
3022
|
"value": 0.005442000000000001
|
|
@@ -3326,7 +3326,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3326
3326
|
"preparations": [
|
|
3327
3327
|
{
|
|
3328
3328
|
"id": 1,
|
|
3329
|
-
"promptbookVersion": "0.
|
|
3329
|
+
"promptbookVersion": "0.89.0-1",
|
|
3330
3330
|
"usage": {
|
|
3331
3331
|
"price": {
|
|
3332
3332
|
"value": 0.005895
|