@promptbook/utils 0.103.0-42 → 0.103.0-44
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 +6 -18
- package/esm/index.es.js +58 -99
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +6 -0
- package/esm/typings/src/_packages/node.index.d.ts +0 -2
- package/esm/typings/src/_packages/types.index.d.ts +22 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -4
- package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +1 -1
- package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +1 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +6 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/typings/src/book-components/Qr/BrandedQrCode.d.ts +1 -1
- package/esm/typings/src/book-components/Qr/useQrCode.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/about.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/hello.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/list-models.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/login.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/make.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/start-agents-server.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/test-command.d.ts +1 -1
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +1 -1
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +2 -29
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +107 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +129 -0
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
- package/esm/typings/src/config.d.ts +1 -1
- package/esm/typings/src/errors/0-index.d.ts +3 -0
- package/esm/typings/src/errors/DatabaseError.d.ts +12 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -1
- package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +1 -1
- package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +5 -2
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +4 -2
- package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +4 -3
- package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +1 -0
- package/esm/typings/src/remote-server/startAgentServer.d.ts +2 -2
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +0 -19
- package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +1 -1
- package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +5 -1
- package/esm/typings/src/transpilers/_common/BookTranspilerOptions.d.ts +1 -1
- package/esm/typings/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -1
- package/esm/typings/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +4 -1
- package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +1 -1
- package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +4 -1
- package/esm/typings/src/transpilers/openai-sdk/register.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +19 -1
- package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
- package/esm/typings/src/utils/color/operators/darken.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/grayscale.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/lighten.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/mixWithColor.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/saturate.d.ts +1 -1
- package/esm/typings/src/utils/environment/$detectRuntimeEnvironment.d.ts +16 -0
- package/esm/typings/src/utils/execCommand/$execCommand.d.ts +1 -1
- package/esm/typings/src/utils/execCommand/$execCommands.d.ts +1 -1
- package/esm/typings/src/utils/files/$induceBookDownload.d.ts +2 -2
- package/esm/typings/src/utils/files/$induceFileDownload.d.ts +2 -2
- package/esm/typings/src/utils/files/ObjectUrl.d.ts +1 -1
- package/esm/typings/src/utils/misc/aboutPromptbookInformation.d.ts +6 -0
- package/esm/typings/src/utils/organization/$side_effect.d.ts +1 -1
- package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +25 -0
- package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
- package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
- package/esm/typings/src/utils/random/$randomToken.d.ts +2 -0
- package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +1 -1
- package/esm/typings/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +58 -98
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.d.ts +0 -89
- package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.test.d.ts +0 -1
- package/esm/typings/src/commands/_common/parseCommand.test.d.ts +0 -1
- package/esm/typings/src/execution/utils/logLlmCall.d.ts +0 -8
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ Turn your company's scattered knowledge into AI ready Books
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
13
|
+
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
14
14
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
15
15
|
[](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml)
|
|
16
16
|
[](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml)
|
|
@@ -23,11 +23,7 @@ Turn your company's scattered knowledge into AI ready Books
|
|
|
23
23
|
|
|
24
24
|
## 🌟 New Features
|
|
25
25
|
|
|
26
|
-
-
|
|
27
|
-
- 💡 VS Code support for `.book` files with syntax highlighting and IntelliSense
|
|
28
|
-
- 🐳 Official Docker image (`hejny/promptbook`) for seamless containerized usage
|
|
29
|
-
- 🔥 Native support for OpenAI `o3-mini`, GPT-4 and other leading LLMs
|
|
30
|
-
- 🔍 DeepSeek integration for advanced knowledge search
|
|
26
|
+
- **Gemini 3 Support**
|
|
31
27
|
|
|
32
28
|
|
|
33
29
|
|
|
@@ -419,7 +415,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
419
415
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
420
416
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
421
417
|
<br/>
|
|
422
|
-
**KNOWLEDGE**
|
|
418
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
423
419
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
424
420
|
|
|
425
421
|
</td></tr></table>
|
|
@@ -441,7 +437,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
441
437
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
442
438
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
443
439
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
444
|
-
**KNOWLEDGE**
|
|
440
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
445
441
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
446
442
|
|
|
447
443
|
</td></tr></table>
|
|
@@ -461,7 +457,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
461
457
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
462
458
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
463
459
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
464
|
-
**KNOWLEDGE**
|
|
460
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
465
461
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
466
462
|
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
467
463
|
|
|
@@ -512,14 +508,10 @@ Now you want to use it. There are several ways how to write your first book:
|
|
|
512
508
|
|
|
513
509
|
We have written ai asistant in book who can help you with writing your first book.
|
|
514
510
|
|
|
515
|
-
|
|
516
|
-
|
|
517
511
|
#### Your AI twin
|
|
518
512
|
|
|
519
513
|
Copy your own behavior, personality, and knowledge into book and create your AI twin. It can help you with your work, personal life, or any other task.
|
|
520
514
|
|
|
521
|
-
|
|
522
|
-
|
|
523
515
|
#### AI persona workpool
|
|
524
516
|
|
|
525
517
|
Or you can pick from our library of pre-written books for various roles and tasks. You can find books for customer support, coding, marketing, sales, HR, legal, and many other roles.
|
|
@@ -639,8 +631,6 @@ Join our growing community of developers and users:
|
|
|
639
631
|
|
|
640
632
|
|
|
641
633
|
|
|
642
|
-
|
|
643
|
-
|
|
644
634
|
## 📚 Documentation
|
|
645
635
|
|
|
646
636
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -717,8 +707,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
717
707
|
|
|
718
708
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
719
709
|
|
|
720
|
-
|
|
721
|
-
|
|
722
710
|
### 💯 Core concepts
|
|
723
711
|
|
|
724
712
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -9,14 +9,14 @@ import { randomBytes } from 'crypto';
|
|
|
9
9
|
* @generated
|
|
10
10
|
* @see https://github.com/webgptorg/book
|
|
11
11
|
*/
|
|
12
|
-
const BOOK_LANGUAGE_VERSION = '
|
|
12
|
+
const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
13
13
|
/**
|
|
14
14
|
* The version of the Promptbook engine
|
|
15
15
|
*
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-44';
|
|
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
|
|
@@ -680,6 +680,23 @@ class Color {
|
|
|
680
680
|
* TODO: Maybe connect with textures
|
|
681
681
|
*/
|
|
682
682
|
|
|
683
|
+
/**
|
|
684
|
+
* Makes color transformer which returns a grayscale version of the color
|
|
685
|
+
*
|
|
686
|
+
* @param amount from 0 to 1
|
|
687
|
+
*
|
|
688
|
+
* @public exported from `@promptbook/color`
|
|
689
|
+
*/
|
|
690
|
+
function grayscale(amount) {
|
|
691
|
+
return ({ red, green, blue, alpha }) => {
|
|
692
|
+
const average = (red + green + blue) / 3;
|
|
693
|
+
red = Math.round(average * amount + red * (1 - amount));
|
|
694
|
+
green = Math.round(average * amount + green * (1 - amount));
|
|
695
|
+
blue = Math.round(average * amount + blue * (1 - amount));
|
|
696
|
+
return Color.fromValues(red, green, blue, alpha);
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
|
|
683
700
|
/**
|
|
684
701
|
* Converts HSL values to RGB values
|
|
685
702
|
*
|
|
@@ -795,102 +812,6 @@ function lighten(amount) {
|
|
|
795
812
|
* TODO: Maybe implement by mix+hsl
|
|
796
813
|
*/
|
|
797
814
|
|
|
798
|
-
/**
|
|
799
|
-
* Calculates distance between two colors
|
|
800
|
-
*
|
|
801
|
-
* @param color1 first color
|
|
802
|
-
* @param color2 second color
|
|
803
|
-
*
|
|
804
|
-
* Note: This function is inefficient. Use colorDistanceSquared instead if possible.
|
|
805
|
-
*
|
|
806
|
-
* @public exported from `@promptbook/color`
|
|
807
|
-
*/
|
|
808
|
-
/**
|
|
809
|
-
* Calculates distance between two colors without square root
|
|
810
|
-
*
|
|
811
|
-
* @param color1 first color
|
|
812
|
-
* @param color2 second color
|
|
813
|
-
*
|
|
814
|
-
* @public exported from `@promptbook/color`
|
|
815
|
-
*/
|
|
816
|
-
function colorDistanceSquared(color1, color2) {
|
|
817
|
-
const rmean = (color1.red + color2.red) / 2;
|
|
818
|
-
const r = color1.red - color2.red;
|
|
819
|
-
const g = color1.green - color2.green;
|
|
820
|
-
const b = color1.blue - color2.blue;
|
|
821
|
-
const weightR = 2 + rmean / 256;
|
|
822
|
-
const weightG = 4.0;
|
|
823
|
-
const weightB = 2 + (255 - rmean) / 256;
|
|
824
|
-
const distance = weightR * r * r + weightG * g * g + weightB * b * b;
|
|
825
|
-
return distance;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Makes color transformer which finds the nearest color from the given list
|
|
830
|
-
*
|
|
831
|
-
* @param colors array of colors to choose from
|
|
832
|
-
*
|
|
833
|
-
* @public exported from `@promptbook/color`
|
|
834
|
-
*/
|
|
835
|
-
function nearest(...colors) {
|
|
836
|
-
return (color) => {
|
|
837
|
-
const distances = colors.map((c) => colorDistanceSquared(c, color));
|
|
838
|
-
const minDistance = Math.min(...distances);
|
|
839
|
-
const minIndex = distances.indexOf(minDistance);
|
|
840
|
-
const nearestColor = colors[minIndex];
|
|
841
|
-
return nearestColor;
|
|
842
|
-
};
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* Color transformer which returns the negative color
|
|
847
|
-
*
|
|
848
|
-
* @public exported from `@promptbook/color`
|
|
849
|
-
*/
|
|
850
|
-
function negative(color) {
|
|
851
|
-
const r = 255 - color.red;
|
|
852
|
-
const g = 255 - color.green;
|
|
853
|
-
const b = 255 - color.blue;
|
|
854
|
-
return Color.fromValues(r, g, b, color.alpha);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Makes color transformer which finds the furthest color from the given list
|
|
859
|
-
*
|
|
860
|
-
* @param colors array of colors to choose from
|
|
861
|
-
*
|
|
862
|
-
* @public exported from `@promptbook/color`
|
|
863
|
-
*/
|
|
864
|
-
function furthest(...colors) {
|
|
865
|
-
return (color) => {
|
|
866
|
-
const furthestColor = negative(nearest(...colors.map(negative))(color));
|
|
867
|
-
return furthestColor;
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Makes color transformer which finds the best text color (black or white) for the given background color
|
|
872
|
-
*
|
|
873
|
-
* @public exported from `@promptbook/color`
|
|
874
|
-
*/
|
|
875
|
-
furthest(Color.get('white'), Color.from('black'));
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Makes color transformer which returns a grayscale version of the color
|
|
879
|
-
*
|
|
880
|
-
* @param amount from 0 to 1
|
|
881
|
-
*
|
|
882
|
-
* @public exported from `@promptbook/color`
|
|
883
|
-
*/
|
|
884
|
-
function grayscale(amount) {
|
|
885
|
-
return ({ red, green, blue, alpha }) => {
|
|
886
|
-
const average = (red + green + blue) / 3;
|
|
887
|
-
red = Math.round(average * amount + red * (1 - amount));
|
|
888
|
-
green = Math.round(average * amount + green * (1 - amount));
|
|
889
|
-
blue = Math.round(average * amount + blue * (1 - amount));
|
|
890
|
-
return Color.fromValues(red, green, blue, alpha);
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
|
|
894
815
|
/**
|
|
895
816
|
* Makes color transformer which saturate the given color
|
|
896
817
|
*
|
|
@@ -2082,6 +2003,22 @@ class CollectionError extends Error {
|
|
|
2082
2003
|
}
|
|
2083
2004
|
}
|
|
2084
2005
|
|
|
2006
|
+
/**
|
|
2007
|
+
* This error indicates error from the database
|
|
2008
|
+
*
|
|
2009
|
+
* @public exported from `@promptbook/core`
|
|
2010
|
+
*/
|
|
2011
|
+
class DatabaseError extends Error {
|
|
2012
|
+
constructor(message) {
|
|
2013
|
+
super(message);
|
|
2014
|
+
this.name = 'DatabaseError';
|
|
2015
|
+
Object.setPrototypeOf(this, DatabaseError.prototype);
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
|
|
2020
|
+
*/
|
|
2021
|
+
|
|
2085
2022
|
/**
|
|
2086
2023
|
* This error type indicates that you try to use a feature that is not available in the current environment
|
|
2087
2024
|
*
|
|
@@ -2223,6 +2160,7 @@ class ParseError extends Error {
|
|
|
2223
2160
|
/**
|
|
2224
2161
|
* Generates random token
|
|
2225
2162
|
*
|
|
2163
|
+
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
|
|
2226
2164
|
* Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
|
|
2227
2165
|
*
|
|
2228
2166
|
* @private internal helper function
|
|
@@ -2232,6 +2170,7 @@ function $randomToken(randomness) {
|
|
|
2232
2170
|
return randomBytes(randomness).toString('hex');
|
|
2233
2171
|
}
|
|
2234
2172
|
/**
|
|
2173
|
+
* TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
2235
2174
|
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2236
2175
|
*/
|
|
2237
2176
|
|
|
@@ -2318,6 +2257,7 @@ const PROMPTBOOK_ERRORS = {
|
|
|
2318
2257
|
UnexpectedError,
|
|
2319
2258
|
WrappedError,
|
|
2320
2259
|
NotAllowed,
|
|
2260
|
+
DatabaseError,
|
|
2321
2261
|
// TODO: [🪑]> VersionMismatchError,
|
|
2322
2262
|
};
|
|
2323
2263
|
/**
|
|
@@ -2839,6 +2779,25 @@ const $isRunningInWebWorker = new Function(`
|
|
|
2839
2779
|
* TODO: [🎺]
|
|
2840
2780
|
*/
|
|
2841
2781
|
|
|
2782
|
+
/**
|
|
2783
|
+
* Returns information about the current runtime environment
|
|
2784
|
+
*
|
|
2785
|
+
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environments
|
|
2786
|
+
*
|
|
2787
|
+
* @public exported from `@promptbook/utils`
|
|
2788
|
+
*/
|
|
2789
|
+
function $detectRuntimeEnvironment() {
|
|
2790
|
+
return {
|
|
2791
|
+
isRunningInBrowser: $isRunningInBrowser(),
|
|
2792
|
+
isRunningInJest: $isRunningInJest(),
|
|
2793
|
+
isRunningInNode: $isRunningInNode(),
|
|
2794
|
+
isRunningInWebWorker: $isRunningInWebWorker(),
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
/**
|
|
2798
|
+
* TODO: [🎺] Also detect and report node version here
|
|
2799
|
+
*/
|
|
2800
|
+
|
|
2842
2801
|
/**
|
|
2843
2802
|
* Number of characters per standard line with 11pt Arial font size.
|
|
2844
2803
|
*
|
|
@@ -3848,5 +3807,5 @@ function isValidUuid(value) {
|
|
|
3848
3807
|
return /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i.test(value);
|
|
3849
3808
|
}
|
|
3850
3809
|
|
|
3851
|
-
export { $deepFreeze, $getCurrentDate, $isRunningInBrowser, $isRunningInJest, $isRunningInNode, $isRunningInWebWorker, BOOK_LANGUAGE_VERSION, CHARACTERS_PER_STANDARD_LINE, CountUtils, DIACRITIC_VARIANTS_LETTERS, LINES_PER_STANDARD_PAGE, PROMPTBOOK_ENGINE_VERSION, SMALL_NUMBER, VALUE_STRINGS, capitalize, checkSerializableAsJson, clonePipeline, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, debounce, decapitalize, deepClone, deserializeError, difference, exportJson, extractParameterNames, forEachAsync, intersection, isHostnameOnPrivateNetwork, isRootPath, isSerializableAsJson, isUrlOnPrivateNetwork, isValidCsvString, isValidEmail, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidKeyword, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, isValidXmlString, jsonParse, jsonStringsToJsons, nameToUriPart, nameToUriParts, normalizeToKebabCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_camelCase, normalizeTo_snake_case, normalizeWhitespaces, numberToString, orderJson, parseKeywords, parseKeywordsFromString, parseNumber, prompt, promptTemplate, removeDiacritics, removeEmojis, removeQuotes, renderPromptbookMermaid, searchKeywords, serializeError, serializeToPromptbookJavascript, spaceTrim, splitIntoSentences, suffixUrl, templateParameters, titleToName, union, unwrapResult, valueToString };
|
|
3810
|
+
export { $deepFreeze, $detectRuntimeEnvironment, $getCurrentDate, $isRunningInBrowser, $isRunningInJest, $isRunningInNode, $isRunningInWebWorker, BOOK_LANGUAGE_VERSION, CHARACTERS_PER_STANDARD_LINE, CountUtils, DIACRITIC_VARIANTS_LETTERS, LINES_PER_STANDARD_PAGE, PROMPTBOOK_ENGINE_VERSION, SMALL_NUMBER, VALUE_STRINGS, capitalize, checkSerializableAsJson, clonePipeline, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, debounce, decapitalize, deepClone, deserializeError, difference, exportJson, extractParameterNames, forEachAsync, intersection, isHostnameOnPrivateNetwork, isRootPath, isSerializableAsJson, isUrlOnPrivateNetwork, isValidCsvString, isValidEmail, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidKeyword, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, isValidXmlString, jsonParse, jsonStringsToJsons, nameToUriPart, nameToUriParts, normalizeToKebabCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_camelCase, normalizeTo_snake_case, normalizeWhitespaces, numberToString, orderJson, parseKeywords, parseKeywordsFromString, parseNumber, prompt, promptTemplate, removeDiacritics, removeEmojis, removeQuotes, renderPromptbookMermaid, searchKeywords, serializeError, serializeToPromptbookJavascript, spaceTrim, splitIntoSentences, suffixUrl, templateParameters, titleToName, union, unwrapResult, valueToString };
|
|
3852
3811
|
//# sourceMappingURL=index.es.js.map
|