@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
|
@@ -6,6 +6,7 @@ import type { number_positive } from '../../types/number_positive';
|
|
|
6
6
|
import type { string_knowledge_source_content } from '../../types/string_knowledge_source_content';
|
|
7
7
|
import type { string_css_value } from '../../types/string_markdown';
|
|
8
8
|
import type { HoistedMenuItem } from '../_common/MenuHoisting/MenuHoistingContext';
|
|
9
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
9
10
|
/**
|
|
10
11
|
* Monaco diagnostic shown inside `BookEditor`.
|
|
11
12
|
*
|
|
@@ -94,14 +95,14 @@ export type BookEditorProps = {
|
|
|
94
95
|
*/
|
|
95
96
|
readonly style?: CSSProperties;
|
|
96
97
|
/**
|
|
97
|
-
* Resolved
|
|
98
|
+
* Resolved host application theme.
|
|
98
99
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
100
|
+
* `<BookEditor/>` accepts this for integration compatibility, but the notebook
|
|
101
|
+
* editor itself is intentionally rendered as light paper in every app theme.
|
|
101
102
|
*
|
|
102
103
|
* @default 'LIGHT'
|
|
103
104
|
*/
|
|
104
|
-
readonly theme?:
|
|
105
|
+
readonly theme?: BookEditorTheme;
|
|
105
106
|
/**
|
|
106
107
|
* Height of the `BookEditor` component
|
|
107
108
|
*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visual theme accepted by `<BookEditor/>` integrations.
|
|
3
|
+
*
|
|
4
|
+
* @private internal type of `BookEditor`
|
|
5
|
+
*/
|
|
6
|
+
export type BookEditorTheme = 'LIGHT' | 'DARK';
|
|
7
|
+
/**
|
|
8
|
+
* Theme used for the actual notebook editor surface.
|
|
9
|
+
*
|
|
10
|
+
* The host application can still pass its resolved app theme, but book sources
|
|
11
|
+
* are intentionally rendered as light paper in both light and dark app modes.
|
|
12
|
+
*
|
|
13
|
+
* @private internal constant of `BookEditor`
|
|
14
|
+
*/
|
|
15
|
+
export declare const BOOK_EDITOR_RENDER_THEME = "LIGHT";
|
|
16
|
+
/**
|
|
17
|
+
* Resolves an app-level theme into the visual theme used by `<BookEditor/>`.
|
|
18
|
+
*
|
|
19
|
+
* @param hostTheme - Resolved theme from the embedding application.
|
|
20
|
+
* @returns Light theme used by the Book editor surface.
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility of `BookEditor`
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveBookEditorRenderTheme(hostTheme?: BookEditorTheme): BookEditorTheme;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import type { editor } from 'monaco-editor';
|
|
2
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
2
3
|
/**
|
|
3
4
|
* Type describing monaco editor.
|
|
4
5
|
*/
|
|
5
6
|
type MonacoEditor = typeof import('monaco-editor');
|
|
6
|
-
/**
|
|
7
|
-
* Resolved visual theme supported by the Book editor.
|
|
8
|
-
*
|
|
9
|
-
* @private function of BookEditorMonaco
|
|
10
|
-
*/
|
|
11
|
-
type BookEditorTheme = 'LIGHT' | 'DARK';
|
|
12
7
|
/**
|
|
13
8
|
* Props for use book editor monaco language.
|
|
14
9
|
*/
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { editor } from 'monaco-editor';
|
|
2
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
2
3
|
/**
|
|
3
4
|
* Type describing monaco editor.
|
|
4
5
|
*/
|
|
5
6
|
type MonacoEditor = typeof import('monaco-editor');
|
|
6
|
-
/**
|
|
7
|
-
* Resolved visual theme supported by the Book editor.
|
|
8
|
-
*/
|
|
9
|
-
type BookEditorTheme = 'LIGHT' | 'DARK';
|
|
10
7
|
/**
|
|
11
8
|
* Props for use book editor monaco lifecycle.
|
|
12
9
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
1
2
|
/**
|
|
2
3
|
* Props for use book editor monaco styles.
|
|
3
4
|
*/
|
|
@@ -7,7 +8,7 @@ type UseBookEditorMonacoStylesProps = {
|
|
|
7
8
|
readonly scaledContentPaddingLeft: number;
|
|
8
9
|
readonly scaledVerticalLineLeft: number;
|
|
9
10
|
readonly zoomLevel: number;
|
|
10
|
-
readonly theme:
|
|
11
|
+
readonly theme: BookEditorTheme;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* Injects notebook-inspired styling that is unique per `BookEditorMonaco` instance.
|
|
@@ -28,6 +28,12 @@ export declare const AGENT_QUEUED_MESSAGES_DIRECTORY_PATH: string;
|
|
|
28
28
|
* @private internal utility of `ptbk agent-folder`
|
|
29
29
|
*/
|
|
30
30
|
export declare const AGENT_FINISHED_MESSAGES_DIRECTORY_PATH: string;
|
|
31
|
+
/**
|
|
32
|
+
* Relative path to messages that the agent runner stopped retrying.
|
|
33
|
+
*
|
|
34
|
+
* @private internal utility of `ptbk agent-folder`
|
|
35
|
+
*/
|
|
36
|
+
export declare const AGENT_FAILED_MESSAGES_DIRECTORY_PATH: string;
|
|
31
37
|
/**
|
|
32
38
|
* Relative path to generated local agent documentation initialized by `ptbk agent-folder init`.
|
|
33
39
|
*
|
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.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-105`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-106",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"types": "./esm/src/_packages/node.index.d.ts",
|
|
98
98
|
"typings": "./esm/src/_packages/node.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.112.0-
|
|
100
|
+
"@promptbook/core": "0.112.0-106"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-106';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -19878,10 +19878,7 @@
|
|
|
19878
19878
|
Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
|
|
19879
19879
|
lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
|
|
19880
19880
|
Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
|
|
19881
|
-
const tentacleTubeRadius = lowerBlend *
|
|
19882
|
-
tentacleInfluence.core *
|
|
19883
|
-
(0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
|
|
19884
|
-
radiusX;
|
|
19881
|
+
const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
|
|
19885
19882
|
const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
|
|
19886
19883
|
const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
|
|
19887
19884
|
const lowerDrop = lowerBlend *
|
|
@@ -19892,8 +19889,7 @@
|
|
|
19892
19889
|
tentacleInfluence.lengthScale * 0.22 +
|
|
19893
19890
|
(morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
|
|
19894
19891
|
return {
|
|
19895
|
-
x: Math.sin(effectiveLongitude) * planarRadiusX +
|
|
19896
|
-
tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
19892
|
+
x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
|
|
19897
19893
|
y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
|
|
19898
19894
|
upperBlend * radiusY * 0.1 +
|
|
19899
19895
|
lowerDrop +
|
|
@@ -19967,8 +19963,11 @@
|
|
|
19967
19963
|
*/
|
|
19968
19964
|
function resolveContinuousLobeWave(options, longitude) {
|
|
19969
19965
|
const { morphologyProfile, animationPhase, timeMs } = options;
|
|
19970
|
-
return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
19971
|
-
|
|
19966
|
+
return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
|
|
19967
|
+
animationPhase +
|
|
19968
|
+
timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
|
|
19969
|
+
1) /
|
|
19970
|
+
2);
|
|
19972
19971
|
}
|
|
19973
19972
|
/**
|
|
19974
19973
|
* Resolves one base fill tone for a patch on the continuous octopus mesh.
|
|
@@ -20032,8 +20031,7 @@
|
|
|
20032
20031
|
for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
|
|
20033
20032
|
const progress = sampleIndex / 7;
|
|
20034
20033
|
const latitude = -0.46 + progress * 0.74;
|
|
20035
|
-
const longitude = baseLongitude +
|
|
20036
|
-
Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
20034
|
+
const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
|
|
20037
20035
|
const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
|
|
20038
20036
|
if (scenePoint.z > center.z - size * 0.016) {
|
|
20039
20037
|
projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));
|