@promptbook/node 0.112.0-104 → 0.112.0-106
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 -11
- package/esm/index.es.js.map +1 -1
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +5 -4
- package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +6 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +9 -11
- package/umd/index.umd.js.map +1 -1
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +5 -4
- package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +6 -0
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
35
35
|
* @generated
|
|
36
36
|
* @see https://github.com/webgptorg/promptbook
|
|
37
37
|
*/
|
|
38
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
38
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-106';
|
|
39
39
|
/**
|
|
40
40
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
41
41
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -19865,10 +19865,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
|
|
|
19865
19865
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
|
|
19866
19866
|
lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
|
|
19867
19867
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
19868
|
-
const tentacleTubeRadius = lowerBlend *
|
|
19869
|
-
tentacleInfluence.core *
|
|
19870
|
-
(0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
|
|
19871
|
-
radiusX;
|
|
19868
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
|
|
19872
19869
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
19873
19870
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
|
|
19874
19871
|
const lowerDrop = lowerBlend *
|
|
@@ -19879,8 +19876,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
|
|
|
19879
19876
|
tentacleInfluence.lengthScale * 0.22 +
|
|
19880
19877
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
|
|
19881
19878
|
return {
|
|
19882
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
19883
|
-
tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
19879
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
19884
19880
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
|
|
19885
19881
|
upperBlend * radiusY * 0.1 +
|
|
19886
19882
|
lowerDrop +
|
|
@@ -19954,8 +19950,11 @@ function resolveContinuousTentacleInfluence(options, longitude) {
|
|
|
19954
19950
|
*/
|
|
19955
19951
|
function resolveContinuousLobeWave(options, longitude) {
|
|
19956
19952
|
const { morphologyProfile, animationPhase, timeMs } = options;
|
|
19957
|
-
return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
19958
|
-
|
|
19953
|
+
return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
19954
|
+
animationPhase +
|
|
19955
|
+
timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
|
|
19956
|
+
1) /
|
|
19957
|
+
2);
|
|
19959
19958
|
}
|
|
19960
19959
|
/**
|
|
19961
19960
|
* Resolves one base fill tone for a patch on the continuous octopus mesh.
|
|
@@ -20019,8 +20018,7 @@ function drawProjectedSurfaceCurrents(options) {
|
|
|
20019
20018
|
for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
|
|
20020
20019
|
const progress = sampleIndex / 7;
|
|
20021
20020
|
const latitude = -0.46 + progress * 0.74;
|
|
20022
|
-
const longitude = baseLongitude +
|
|
20023
|
-
Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
20021
|
+
const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
20024
20022
|
const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
|
|
20025
20023
|
if (scenePoint.z > center.z - size * 0.016) {
|
|
20026
20024
|
projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));
|