@promptbook/cli 0.112.0-127 → 0.112.0-129
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/apps/agents-server/src/middleware/resolveAccessControlResponse.ts +3 -2
- package/apps/agents-server/src/middleware/resolveMiddlewareResponse.ts +8 -3
- package/apps/agents-server/src/middleware.ts +14 -0
- package/esm/index.es.js +285 -95
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +27 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/run.ts +38 -10
- package/src/cli/cli-commands/coder/server.ts +31 -8
- package/src/cli/cli-commands/coder/waitOptions.ts +24 -0
- package/src/other/templates/getTemplatesPipelineCollection.ts +1115 -725
- package/src/version.ts +2 -2
- package/src/versions.txt +2 -1
- package/umd/index.umd.js +285 -95
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +27 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CoderRunUiHandle } from '../ui/renderCoderRunUi';
|
|
2
|
+
/**
|
|
3
|
+
* Distinct kinds of wait shown by the run loop so the UI can label them clearly.
|
|
4
|
+
*
|
|
5
|
+
* @public exported from `@promptbook/cli`
|
|
6
|
+
*/
|
|
7
|
+
export type CoderRunWaitKind = 'after-prompt' | 'between-prompts' | 'after-error';
|
|
8
|
+
/**
|
|
9
|
+
* Returns the human-readable status message used for one wait kind.
|
|
10
|
+
*
|
|
11
|
+
* @private internal utility of `sleepWithCountdown`
|
|
12
|
+
*/
|
|
13
|
+
export declare function describeCoderRunWait(waitKind: CoderRunWaitKind, remainingMs: number, totalMs?: number): string;
|
|
14
|
+
/**
|
|
15
|
+
* Sleeps the requested duration while refreshing the status message on a UI handle and the plain console.
|
|
16
|
+
*
|
|
17
|
+
* The wait kind is shown in the UI status so the user can distinguish `--wait-after-prompt`,
|
|
18
|
+
* `--wait-between-prompts`, and `--wait-after-error` waits at a glance.
|
|
19
|
+
*
|
|
20
|
+
* @public exported from `@promptbook/cli`
|
|
21
|
+
*/
|
|
22
|
+
export declare function sleepWithCountdown(options: {
|
|
23
|
+
durationMs: number;
|
|
24
|
+
waitKind: CoderRunWaitKind;
|
|
25
|
+
isRichUiEnabled: boolean;
|
|
26
|
+
uiHandle?: CoderRunUiHandle;
|
|
27
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default wait duration applied before retrying a prompt round after an error (10 minutes).
|
|
3
|
+
*
|
|
4
|
+
* @private internal constant of `ptbk coder` wait handling
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_WAIT_AFTER_ERROR_MS: number;
|
|
7
|
+
/**
|
|
8
|
+
* Parses an optional Commander duration string and returns the resolved milliseconds.
|
|
9
|
+
*
|
|
10
|
+
* Returns `defaultMs` when the flag was not provided or was provided without a non-empty value.
|
|
11
|
+
*
|
|
12
|
+
* @private internal utility of `ptbk coder` wait handling
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseOptionalWaitDuration(value: string | undefined, defaultMs: number): number;
|
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.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-128`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|