@promptbook/core 0.113.0-6 → 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.
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.113.0-6';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-7';
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
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/core",
3
- "version": "0.113.0-6",
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-6';
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
@@ -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;