@promptbook/cli 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 +138 -45
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/ping/pingCoderHarnessPeriodically.d.ts +22 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/ping.ts +35 -9
- package/src/cli/cli-commands/coder/waitOptions.ts +33 -0
- package/src/other/templates/getTemplatesPipelineCollection.ts +830 -742
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +138 -45
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/ping/pingCoderHarnessPeriodically.d.ts +22 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PingCoderHarnessOptions } from './pingCoderHarness';
|
|
2
|
+
/**
|
|
3
|
+
* Options for the endless `ptbk coder ping --period <duration>` loop.
|
|
4
|
+
*/
|
|
5
|
+
export type PingCoderHarnessPeriodicallyOptions = PingCoderHarnessOptions & {
|
|
6
|
+
/**
|
|
7
|
+
* How long one ping period lasts, in milliseconds.
|
|
8
|
+
*
|
|
9
|
+
* The period is measured from the start of one ping to the start of the next one, so the pings
|
|
10
|
+
* really happen once per period instead of once per period plus the duration of the ping itself.
|
|
11
|
+
*/
|
|
12
|
+
readonly periodMs: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Pings the selected harness and model once per period until the process is stopped.
|
|
16
|
+
*
|
|
17
|
+
* This keeps the quota window of the harness refreshing without any real work, so the window is
|
|
18
|
+
* always open by the time you need it. The loop never ends on its own — it is stopped with `CTRL+C`
|
|
19
|
+
* or by killing the process — therefore a failing ping is reported and the next period is started
|
|
20
|
+
* instead of tearing the whole loop down.
|
|
21
|
+
*/
|
|
22
|
+
export declare function pingCoderHarnessPeriodically(options: PingCoderHarnessPeriodicallyOptions): Promise<never>;
|
|
@@ -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;
|
package/umd/src/version.d.ts
CHANGED
|
@@ -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-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.114.0-13`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|