@promptbook/core 0.113.0-5 → 0.113.0-7

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/core",
3
- "version": "0.113.0-5",
3
+ "version": "0.113.0-7",
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,
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-7';
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
@@ -16636,7 +16636,7 @@
16636
16636
  isAnimated: true,
16637
16637
  supportsPointerTracking: true,
16638
16638
  render({ context, size, palette, createRandom, timeMs, interaction }) {
16639
- const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
16639
+ const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
16640
16640
  const sceneCenterX = size * 0.5;
16641
16641
  const sceneCenterY = size * 0.535;
16642
16642
  const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
@@ -16984,10 +16984,7 @@
16984
16984
  Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
16985
16985
  lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
16986
16986
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
16987
- const tentacleTubeRadius = lowerBlend *
16988
- tentacleInfluence.core *
16989
- (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
16990
- radiusX;
16987
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
16991
16988
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
16992
16989
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
16993
16990
  const lowerDrop = lowerBlend *
@@ -16999,9 +16996,7 @@
16999
16996
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
17000
16997
  const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
17001
16998
  return {
17002
- x: Math.sin(effectiveLongitude) * planarRadiusX +
17003
- combinedTentacleSway +
17004
- tentacleCurl * radiusX * 0.18,
16999
+ x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
17005
17000
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
17006
17001
  upperBlend * radiusY * 0.12 +
17007
17002
  lowerDrop +
@@ -20171,10 +20166,10 @@
20171
20166
  *
20172
20167
  * @private
20173
20168
  */
20174
- const TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES = [
20175
- '- If a teammate is relevant to the request, consult that teammate using the matching tool.',
20176
- '- Do not ask the user for information that a listed teammate can provide directly.',
20177
- ];
20169
+ const TEAM_SYSTEM_MESSAGE_GUIDANCE = spacetrim.spaceTrim(`
20170
+ - If a teammate is relevant to the request, consult that teammate using the matching tool.
20171
+ - Do not ask the user for information that a listed teammate can provide directly.
20172
+ `);
20178
20173
  /**
20179
20174
  * Constant for remote agents by Url.
20180
20175
  */
@@ -20356,7 +20351,7 @@
20356
20351
  `);
20357
20352
  });
20358
20353
  return spacetrim.spaceTrim((block) => `
20359
- ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES.join('\n'))}
20354
+ ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
20360
20355
 
20361
20356
  ${block(teammateSections.join('\n\n'))}
20362
20357
  `);