@promptbook/node 0.113.0-5 → 0.113.0-7
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/esm/index.es.js +9 -14
- package/esm/index.es.js.map +1 -1
- package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +9 -14
- package/umd/index.umd.js.map +1 -1
- package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -8,7 +8,7 @@ export declare function insertDictationChunk(params: {
|
|
|
8
8
|
readonly dictatedText: string;
|
|
9
9
|
readonly selectionStart: number;
|
|
10
10
|
readonly selectionEnd: number;
|
|
11
|
-
readonly
|
|
11
|
+
readonly isReplacingSelection: boolean;
|
|
12
12
|
}): {
|
|
13
13
|
nextValue: string;
|
|
14
14
|
start: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a Commander argument parser that accepts only positive integers.
|
|
3
|
+
*
|
|
4
|
+
* The returned parser is meant to be passed as the coercion callback of `command.option(...)`.
|
|
5
|
+
* It throws a branded `NotAllowed` error with a clear message referencing the given option name
|
|
6
|
+
* when the provided value is not a positive integer.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function createPositiveIntegerOptionParser(optionName: string): (value: string) => number;
|
package/esm/src/version.d.ts
CHANGED
|
@@ -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.113.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.113.0-5`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.113.0-
|
|
3
|
+
"version": "0.113.0-7",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"types": "./esm/src/_packages/node.index.d.ts",
|
|
98
98
|
"typings": "./esm/src/_packages/node.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.113.0-
|
|
100
|
+
"@promptbook/core": "0.113.0-7"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* @generated
|
|
52
52
|
* @see https://github.com/webgptorg/promptbook
|
|
53
53
|
*/
|
|
54
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
54
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-7';
|
|
55
55
|
/**
|
|
56
56
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
57
57
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -18904,7 +18904,7 @@
|
|
|
18904
18904
|
isAnimated: true,
|
|
18905
18905
|
supportsPointerTracking: true,
|
|
18906
18906
|
render({ context, size, palette, createRandom, timeMs, interaction }) {
|
|
18907
|
-
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
|
|
18907
|
+
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
|
|
18908
18908
|
const sceneCenterX = size * 0.5;
|
|
18909
18909
|
const sceneCenterY = size * 0.535;
|
|
18910
18910
|
const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
|
|
@@ -19252,10 +19252,7 @@
|
|
|
19252
19252
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
|
|
19253
19253
|
lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
|
|
19254
19254
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
19255
|
-
const tentacleTubeRadius = lowerBlend *
|
|
19256
|
-
tentacleInfluence.core *
|
|
19257
|
-
(0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
|
|
19258
|
-
radiusX;
|
|
19255
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
|
|
19259
19256
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
19260
19257
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
|
|
19261
19258
|
const lowerDrop = lowerBlend *
|
|
@@ -19267,9 +19264,7 @@
|
|
|
19267
19264
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
|
|
19268
19265
|
const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
|
|
19269
19266
|
return {
|
|
19270
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
19271
|
-
combinedTentacleSway +
|
|
19272
|
-
tentacleCurl * radiusX * 0.18,
|
|
19267
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
|
|
19273
19268
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
|
|
19274
19269
|
upperBlend * radiusY * 0.12 +
|
|
19275
19270
|
lowerDrop +
|
|
@@ -22439,10 +22434,10 @@
|
|
|
22439
22434
|
*
|
|
22440
22435
|
* @private
|
|
22441
22436
|
*/
|
|
22442
|
-
const
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22437
|
+
const TEAM_SYSTEM_MESSAGE_GUIDANCE = _spaceTrim.spaceTrim(`
|
|
22438
|
+
- If a teammate is relevant to the request, consult that teammate using the matching tool.
|
|
22439
|
+
- Do not ask the user for information that a listed teammate can provide directly.
|
|
22440
|
+
`);
|
|
22446
22441
|
/**
|
|
22447
22442
|
* Constant for remote agents by Url.
|
|
22448
22443
|
*/
|
|
@@ -22624,7 +22619,7 @@
|
|
|
22624
22619
|
`);
|
|
22625
22620
|
});
|
|
22626
22621
|
return _spaceTrim.spaceTrim((block) => `
|
|
22627
|
-
${block(
|
|
22622
|
+
${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
|
|
22628
22623
|
|
|
22629
22624
|
${block(teammateSections.join('\n\n'))}
|
|
22630
22625
|
`);
|