@promptbook/browser 0.113.0-5 → 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.
@@ -8,7 +8,7 @@ export declare function insertDictationChunk(params: {
8
8
  readonly dictatedText: string;
9
9
  readonly selectionStart: number;
10
10
  readonly selectionEnd: number;
11
- readonly shouldReplaceSelection: boolean;
11
+ readonly isReplacingSelection: boolean;
12
12
  }): {
13
13
  nextValue: string;
14
14
  start: number;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Creates a Commander argument parser that accepts only positive integers.
3
+ *
4
+ * The returned parser is meant to be passed as the coercion callback of `command.option(...)`.
5
+ * It throws a branded `NotAllowed` error with a clear message referencing the given option name
6
+ * when the provided value is not a positive integer.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function createPositiveIntegerOptionParser(optionName: string): (value: string) => number;
@@ -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.113.0-4`).
18
+ * It follows semantic versioning (e.g., `0.113.0-5`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/browser",
3
- "version": "0.113.0-5",
3
+ "version": "0.113.0-8",
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,
@@ -98,7 +98,7 @@
98
98
  "types": "./esm/src/_packages/browser.index.d.ts",
99
99
  "typings": "./esm/src/_packages/browser.index.d.ts",
100
100
  "peerDependencies": {
101
- "@promptbook/core": "0.113.0-5"
101
+ "@promptbook/core": "0.113.0-8"
102
102
  },
103
103
  "dependencies": {
104
104
  "@openai/agents": "0.4.15",
package/umd/index.umd.js CHANGED
@@ -29,7 +29,7 @@
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.113.0-5';
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 @@
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 @@
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 @@
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 @@
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.spaceTrim(`
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 @@
13352
13347
  `);
13353
13348
  });
13354
13349
  return spacetrim.spaceTrim((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
  `);