@promptbook/node 0.114.0-13 → 0.114.0-14

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
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-13';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-14';
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
@@ -12,3 +12,15 @@ export declare const DEFAULT_WAIT_AFTER_ERROR_MS: number;
12
12
  * @private internal utility of `ptbk coder` wait handling
13
13
  */
14
14
  export declare function parseOptionalWaitDuration(value: string | undefined, defaultMs: number): number;
15
+ /**
16
+ * Parses an optional Commander period duration string and returns the resolved milliseconds.
17
+ *
18
+ * Returns `undefined` when the flag was not provided or was provided without a non-empty value,
19
+ * which means the command runs only once instead of repeating itself.
20
+ *
21
+ * @throws {NotAllowed} When the duration is not a positive one, because a non-positive period
22
+ * would repeat the command without ever pausing between two rounds
23
+ *
24
+ * @private internal utility of `ptbk coder` wait handling
25
+ */
26
+ export declare function parseOptionalPeriodDuration(optionName: string, value: string | undefined): number | undefined;
@@ -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.114.0-12`).
18
+ * It follows semantic versioning (e.g., `0.114.0-13`).
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.114.0-13",
3
+ "version": "0.114.0-14",
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.114.0-13"
100
+ "@promptbook/core": "0.114.0-14"
101
101
  },
102
102
  "dependencies": {
103
103
  "@openai/agents": "0.4.15",
package/umd/index.umd.js CHANGED
@@ -47,7 +47,7 @@
47
47
  * @generated
48
48
  * @see https://github.com/webgptorg/promptbook
49
49
  */
50
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-13';
50
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-14';
51
51
  /**
52
52
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
53
53
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -12,3 +12,15 @@ export declare const DEFAULT_WAIT_AFTER_ERROR_MS: number;
12
12
  * @private internal utility of `ptbk coder` wait handling
13
13
  */
14
14
  export declare function parseOptionalWaitDuration(value: string | undefined, defaultMs: number): number;
15
+ /**
16
+ * Parses an optional Commander period duration string and returns the resolved milliseconds.
17
+ *
18
+ * Returns `undefined` when the flag was not provided or was provided without a non-empty value,
19
+ * which means the command runs only once instead of repeating itself.
20
+ *
21
+ * @throws {NotAllowed} When the duration is not a positive one, because a non-positive period
22
+ * would repeat the command without ever pausing between two rounds
23
+ *
24
+ * @private internal utility of `ptbk coder` wait handling
25
+ */
26
+ export declare function parseOptionalPeriodDuration(optionName: string, value: string | undefined): number | undefined;
@@ -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.114.0-12`).
18
+ * It follows semantic versioning (e.g., `0.114.0-13`).
19
19
  *
20
20
  * @generated
21
21
  */