@promptbook/components 0.113.0-5 → 0.113.0-6
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/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +9 -14
- package/umd/index.umd.js.map +1 -1
- package/umd/src/version.d.ts +1 -1
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
package/umd/index.umd.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* @generated
|
|
35
35
|
* @see https://github.com/webgptorg/promptbook
|
|
36
36
|
*/
|
|
37
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
37
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-6';
|
|
38
38
|
/**
|
|
39
39
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
40
40
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6162,7 +6162,7 @@
|
|
|
6162
6162
|
isAnimated: true,
|
|
6163
6163
|
supportsPointerTracking: true,
|
|
6164
6164
|
render({ context, size, palette, createRandom, timeMs, interaction }) {
|
|
6165
|
-
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
|
|
6165
|
+
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
|
|
6166
6166
|
const sceneCenterX = size * 0.5;
|
|
6167
6167
|
const sceneCenterY = size * 0.535;
|
|
6168
6168
|
const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
|
|
@@ -6510,10 +6510,7 @@
|
|
|
6510
6510
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
|
|
6511
6511
|
lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
|
|
6512
6512
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
6513
|
-
const tentacleTubeRadius = lowerBlend *
|
|
6514
|
-
tentacleInfluence.core *
|
|
6515
|
-
(0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
|
|
6516
|
-
radiusX;
|
|
6513
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
|
|
6517
6514
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
6518
6515
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
|
|
6519
6516
|
const lowerDrop = lowerBlend *
|
|
@@ -6525,9 +6522,7 @@
|
|
|
6525
6522
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
|
|
6526
6523
|
const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
|
|
6527
6524
|
return {
|
|
6528
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
6529
|
-
combinedTentacleSway +
|
|
6530
|
-
tentacleCurl * radiusX * 0.18,
|
|
6525
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
|
|
6531
6526
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
|
|
6532
6527
|
upperBlend * radiusY * 0.12 +
|
|
6533
6528
|
lowerDrop +
|
|
@@ -14164,10 +14159,10 @@
|
|
|
14164
14159
|
*
|
|
14165
14160
|
* @private
|
|
14166
14161
|
*/
|
|
14167
|
-
const
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14162
|
+
const TEAM_SYSTEM_MESSAGE_GUIDANCE = spacetrim.spaceTrim(`
|
|
14163
|
+
- If a teammate is relevant to the request, consult that teammate using the matching tool.
|
|
14164
|
+
- Do not ask the user for information that a listed teammate can provide directly.
|
|
14165
|
+
`);
|
|
14171
14166
|
/**
|
|
14172
14167
|
* Constant for remote agents by Url.
|
|
14173
14168
|
*/
|
|
@@ -14349,7 +14344,7 @@
|
|
|
14349
14344
|
`);
|
|
14350
14345
|
});
|
|
14351
14346
|
return spacetrim.spaceTrim((block) => `
|
|
14352
|
-
${block(
|
|
14347
|
+
${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
|
|
14353
14348
|
|
|
14354
14349
|
${block(teammateSections.join('\n\n'))}
|
|
14355
14350
|
`);
|