@promptbook/core 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
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-6';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -16636,7 +16636,7 @@
|
|
|
16636
16636
|
isAnimated: true,
|
|
16637
16637
|
supportsPointerTracking: true,
|
|
16638
16638
|
render({ context, size, palette, createRandom, timeMs, interaction }) {
|
|
16639
|
-
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
|
|
16639
|
+
const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
|
|
16640
16640
|
const sceneCenterX = size * 0.5;
|
|
16641
16641
|
const sceneCenterY = size * 0.535;
|
|
16642
16642
|
const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
|
|
@@ -16984,10 +16984,7 @@
|
|
|
16984
16984
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
|
|
16985
16985
|
lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
|
|
16986
16986
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
16987
|
-
const tentacleTubeRadius = lowerBlend *
|
|
16988
|
-
tentacleInfluence.core *
|
|
16989
|
-
(0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
|
|
16990
|
-
radiusX;
|
|
16987
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
|
|
16991
16988
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
16992
16989
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
|
|
16993
16990
|
const lowerDrop = lowerBlend *
|
|
@@ -16999,9 +16996,7 @@
|
|
|
16999
16996
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
|
|
17000
16997
|
const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
|
|
17001
16998
|
return {
|
|
17002
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
17003
|
-
combinedTentacleSway +
|
|
17004
|
-
tentacleCurl * radiusX * 0.18,
|
|
16999
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
|
|
17005
17000
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
|
|
17006
17001
|
upperBlend * radiusY * 0.12 +
|
|
17007
17002
|
lowerDrop +
|
|
@@ -20171,10 +20166,10 @@
|
|
|
20171
20166
|
*
|
|
20172
20167
|
* @private
|
|
20173
20168
|
*/
|
|
20174
|
-
const
|
|
20175
|
-
|
|
20176
|
-
|
|
20177
|
-
|
|
20169
|
+
const TEAM_SYSTEM_MESSAGE_GUIDANCE = spacetrim.spaceTrim(`
|
|
20170
|
+
- If a teammate is relevant to the request, consult that teammate using the matching tool.
|
|
20171
|
+
- Do not ask the user for information that a listed teammate can provide directly.
|
|
20172
|
+
`);
|
|
20178
20173
|
/**
|
|
20179
20174
|
* Constant for remote agents by Url.
|
|
20180
20175
|
*/
|
|
@@ -20356,7 +20351,7 @@
|
|
|
20356
20351
|
`);
|
|
20357
20352
|
});
|
|
20358
20353
|
return spacetrim.spaceTrim((block) => `
|
|
20359
|
-
${block(
|
|
20354
|
+
${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
|
|
20360
20355
|
|
|
20361
20356
|
${block(teammateSections.join('\n\n'))}
|
|
20362
20357
|
`);
|