@promptbook/wizard 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/wizard",
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,
@@ -99,7 +99,7 @@
99
99
  "types": "./esm/src/_packages/wizard.index.d.ts",
100
100
  "typings": "./esm/src/_packages/wizard.index.d.ts",
101
101
  "peerDependencies": {
102
- "@promptbook/core": "0.113.0-5"
102
+ "@promptbook/core": "0.113.0-8"
103
103
  },
104
104
  "dependencies": {
105
105
  "@ai-sdk/deepseek": "0.1.17",
package/umd/index.umd.js CHANGED
@@ -52,7 +52,7 @@
52
52
  * @generated
53
53
  * @see https://github.com/webgptorg/promptbook
54
54
  */
55
- const PROMPTBOOK_ENGINE_VERSION = '0.113.0-5';
55
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-8';
56
56
  /**
57
57
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
58
58
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -25508,7 +25508,7 @@
25508
25508
  isAnimated: true,
25509
25509
  supportsPointerTracking: true,
25510
25510
  render({ context, size, palette, createRandom, timeMs, interaction }) {
25511
- const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots } = getOctopus3d4StableState(createRandom);
25511
+ const { morphologyProfile, animationPhase, leftEyePhaseOffset, rightEyePhaseOffset, tentacleProfiles, skinSpots, } = getOctopus3d4StableState(createRandom);
25512
25512
  const sceneCenterX = size * 0.5;
25513
25513
  const sceneCenterY = size * 0.535;
25514
25514
  const bob = Math.sin(timeMs / 980 + animationPhase) * size * 0.013;
@@ -25856,10 +25856,7 @@
25856
25856
  Math.max(0, Math.cos(effectiveLongitude)) * 0.12 +
25857
25857
  lowerBlend * tentacleInfluence.core * (0.12 + tentacleInfluence.depthScale * 0.07) -
25858
25858
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
25859
- const tentacleTubeRadius = lowerBlend *
25860
- tentacleInfluence.core *
25861
- (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) *
25862
- radiusX;
25859
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.12 + tipBlend * 0.07 + tentacleInfluence.widthScale * 0.028) * radiusX;
25863
25860
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
25864
25861
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.74;
25865
25862
  const lowerDrop = lowerBlend *
@@ -25871,9 +25868,7 @@
25871
25868
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.1));
25872
25869
  const combinedTentacleSway = (primaryTentacleWave + secondaryTentacleWave) * radiusX * (0.06 + tipBlend * 0.06);
25873
25870
  return {
25874
- x: Math.sin(effectiveLongitude) * planarRadiusX +
25875
- combinedTentacleSway +
25876
- tentacleCurl * radiusX * 0.18,
25871
+ x: Math.sin(effectiveLongitude) * planarRadiusX + combinedTentacleSway + tentacleCurl * radiusX * 0.18,
25877
25872
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.14) -
25878
25873
  upperBlend * radiusY * 0.12 +
25879
25874
  lowerDrop +
@@ -29043,10 +29038,10 @@
29043
29038
  *
29044
29039
  * @private
29045
29040
  */
29046
- const TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES = [
29047
- '- If a teammate is relevant to the request, consult that teammate using the matching tool.',
29048
- '- Do not ask the user for information that a listed teammate can provide directly.',
29049
- ];
29041
+ const TEAM_SYSTEM_MESSAGE_GUIDANCE = _spaceTrim.spaceTrim(`
29042
+ - If a teammate is relevant to the request, consult that teammate using the matching tool.
29043
+ - Do not ask the user for information that a listed teammate can provide directly.
29044
+ `);
29050
29045
  /**
29051
29046
  * Constant for remote agents by Url.
29052
29047
  */
@@ -29228,7 +29223,7 @@
29228
29223
  `);
29229
29224
  });
29230
29225
  return _spaceTrim.spaceTrim((block) => `
29231
- ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE_LINES.join('\n'))}
29226
+ ${block(TEAM_SYSTEM_MESSAGE_GUIDANCE)}
29232
29227
 
29233
29228
  ${block(teammateSections.join('\n\n'))}
29234
29229
  `);