@promptbook/core 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 +1 -1
- 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
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-106';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -15846,10 +15846,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
|
|
|
15846
15846
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
|
|
15847
15847
|
lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
|
|
15848
15848
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
15849
|
-
const tentacleTubeRadius = lowerBlend *
|
|
15850
|
-
tentacleInfluence.core *
|
|
15851
|
-
(0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
|
|
15852
|
-
radiusX;
|
|
15849
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
|
|
15853
15850
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
15854
15851
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
|
|
15855
15852
|
const lowerDrop = lowerBlend *
|
|
@@ -15860,8 +15857,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
|
|
|
15860
15857
|
tentacleInfluence.lengthScale * 0.22 +
|
|
15861
15858
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
|
|
15862
15859
|
return {
|
|
15863
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
15864
|
-
tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
15860
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
15865
15861
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
|
|
15866
15862
|
upperBlend * radiusY * 0.1 +
|
|
15867
15863
|
lowerDrop +
|
|
@@ -15935,8 +15931,11 @@ function resolveContinuousTentacleInfluence(options, longitude) {
|
|
|
15935
15931
|
*/
|
|
15936
15932
|
function resolveContinuousLobeWave(options, longitude) {
|
|
15937
15933
|
const { morphologyProfile, animationPhase, timeMs } = options;
|
|
15938
|
-
return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
15939
|
-
|
|
15934
|
+
return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
15935
|
+
animationPhase +
|
|
15936
|
+
timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
|
|
15937
|
+
1) /
|
|
15938
|
+
2);
|
|
15940
15939
|
}
|
|
15941
15940
|
/**
|
|
15942
15941
|
* Resolves one base fill tone for a patch on the continuous octopus mesh.
|
|
@@ -16000,8 +15999,7 @@ function drawProjectedSurfaceCurrents(options) {
|
|
|
16000
15999
|
for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
|
|
16001
16000
|
const progress = sampleIndex / 7;
|
|
16002
16001
|
const latitude = -0.46 + progress * 0.74;
|
|
16003
|
-
const longitude = baseLongitude +
|
|
16004
|
-
Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
16002
|
+
const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
16005
16003
|
const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
|
|
16006
16004
|
if (scenePoint.z > center.z - size * 0.016) {
|
|
16007
16005
|
projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));
|