@promptbook/browser 0.113.0-4 → 0.113.0-8

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 CHANGED
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.113.0-4';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-8';
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
@@ -9558,7 +9558,7 @@ const octopus3d4AvatarVisual = {
9558
9558
  isAnimated: true,
9559
9559
  supportsPointerTracking: true,
9560
9560
  render({ context, size, palette, createRandom, timeMs, interaction }) {
9561
- const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
9561
+ const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
9562
9562
  const sceneCenterX = size * 0.5;
9563
9563
  const sceneCenterY = size * 0.535;
9564
9564
  const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
@@ -9906,10 +9906,7 @@ function sampleBlobbyContinuousSurfacePointWithLongitudeCache(options, latitude,
9906
9906
  Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
9907
9907
  lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
9908
9908
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
9909
- const tentacleTubeRadius = lowerBlend *
9910
- tentacleInfluence.core *
9911
- (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
9912
- radiusX;
9909
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
9913
9910
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
9914
9911
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
9915
9912
  const lowerDrop = lowerBlend *
@@ -9921,9 +9918,7 @@ function sampleBlobbyContinuousSurfacePointWithLongitudeCache(options, latitude,
9921
9918
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
9922
9919
  const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
9923
9920
  return {
9924
- x: Math.sin(effectiveLongitude) * planarRadiusX +
9925
- combinedTentacleSway +
9926
- tentacleCurl * radiusX * 0.18,
9921
+ x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
9927
9922
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
9928
9923
  upperBlend * radiusY * 0.12 +
9929
9924
  lowerDrop +
@@ -13167,10 +13162,10 @@ const teamToolTitles = {};
13167
13162
  *
13168
13163
  * @private
13169
13164
  */
13170
- const TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES = [
13171
- '- If a teammate is relevant to the request, consult that teammate using the matching tool.',
13172
- '- Do not ask the user for information that a listed teammate can provide directly.',
13173
- ];
13165
+ const TEAM_SYSTEM_MESSAGE_GUIDANCE = spaceTrim$1(`
13166
+ - If a teammate is relevant to the request, consult that teammate using the matching tool.
13167
+ - Do not ask the user for information that a listed teammate can provide directly.
13168
+ `);
13174
13169
  /**
13175
13170
  * Constant for remote agents by Url.
13176
13171
  */
@@ -13352,7 +13347,7 @@ function buildTeamSystemMessageBody(teamEntries) {
13352
13347
  `);
13353
13348
  });
13354
13349
  return spaceTrim$1((block) => `
13355
- ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES.join('\n'))}
13350
+ ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
13356
13351
 
13357
13352
  ${block(teammateSections.join('\n\n'))}
13358
13353
  `);