@promptbook/remote-server 0.112.0-104 → 0.112.0-105

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
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
40
40
  * @generated
41
41
  * @see https://github.com/webgptorg/promptbook
42
42
  */
43
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-104';
43
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-105';
44
44
  /**
45
45
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
46
46
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -17023,10 +17023,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
17023
17023
  Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
17024
17024
  lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
17025
17025
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
17026
- const tentacleTubeRadius = lowerBlend *
17027
- tentacleInfluence.core *
17028
- (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
17029
- radiusX;
17026
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
17030
17027
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
17031
17028
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
17032
17029
  const lowerDrop = lowerBlend *
@@ -17037,8 +17034,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
17037
17034
  tentacleInfluence.lengthScale * 0.22 +
17038
17035
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
17039
17036
  return {
17040
- x: Math.sin(effectiveLongitude) * planarRadiusX +
17041
- tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
17037
+ x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
17042
17038
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
17043
17039
  upperBlend * radiusY * 0.1 +
17044
17040
  lowerDrop +
@@ -17112,8 +17108,11 @@ function resolveContinuousTentacleInfluence(options, longitude) {
17112
17108
  */
17113
17109
  function resolveContinuousLobeWave(options, longitude) {
17114
17110
  const { morphologyProfile, animationPhase, timeMs } = options;
17115
- return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT + animationPhase + timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
17116
- 1) / 2;
17111
+ return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
17112
+ animationPhase +
17113
+ timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
17114
+ 1) /
17115
+ 2);
17117
17116
  }
17118
17117
  /**
17119
17118
  * Resolves one base fill tone for a patch on the continuous octopus mesh.
@@ -17177,8 +17176,7 @@ function drawProjectedSurfaceCurrents(options) {
17177
17176
  for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
17178
17177
  const progress = sampleIndex / 7;
17179
17178
  const latitude = -0.46 + progress * 0.74;
17180
- const longitude = baseLongitude +
17181
- Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
17179
+ const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
17182
17180
  const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
17183
17181
  if (scenePoint.z > center.z - size * 0.016) {
17184
17182
  projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));