@promptbook/cli 0.112.0-102 → 0.112.0-103
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/README.md +0 -6
- package/apps/agents-server/src/app/admin/image-generator-test/ImageAttachmentsEditor.tsx +11 -6
- package/apps/agents-server/src/app/admin/metadata/MetadataClient.tsx +13 -15
- package/apps/agents-server/src/app/admin/servers/useCreateServerWizard.ts +13 -14
- package/apps/agents-server/src/app/api/upload/route.ts +110 -383
- package/apps/agents-server/src/tools/$provideCdnForServer.ts +52 -55
- package/apps/agents-server/src/utils/cdn/classes/DigitalOceanSpaces.ts +17 -49
- package/apps/agents-server/src/utils/cdn/classes/TrackedFilesStorage.ts +5 -2
- package/apps/agents-server/src/utils/cdn/interfaces/IFilesStorage.ts +5 -0
- package/apps/agents-server/src/utils/shareTargetPayloads.ts +15 -63
- package/apps/agents-server/src/utils/upload/createBookEditorUploadHandler.ts +23 -150
- package/apps/agents-server/src/utils/upload/uploadFileToServer.ts +113 -0
- package/esm/index.es.js +194 -35
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +12 -0
- package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
- package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +1 -0
- package/esm/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/book-components/Chat/MarkdownContent/MarkdownContent.tsx +1 -3
- package/src/other/templates/getTemplatesPipelineCollection.ts +737 -815
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +194 -35
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +12 -0
- package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
- package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +1 -0
- package/umd/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
- package/apps/agents-server/src/utils/cdn/resolveCdnStorageProvider.ts +0 -40
|
@@ -30,6 +30,18 @@ export declare function checkPause(options?: {
|
|
|
30
30
|
* Returns the current pause state for external consumers such as the terminal UI.
|
|
31
31
|
*/
|
|
32
32
|
export declare function getPauseState(): CoderRunPauseState;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the label of the next checkpoint where pausing will take effect.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getPauseTargetLabel(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Updates the label of the next pause checkpoint.
|
|
39
|
+
*/
|
|
40
|
+
export declare function announcePauseTargetLabel(nextPauseTargetLabel: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Restores the default generic pause target label.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resetPauseTargetLabel(): void;
|
|
33
45
|
/**
|
|
34
46
|
* Requests a pause from an external controller (e.g. the Ink UI).
|
|
35
47
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WaitForCoderRunPauseCheckpoint } from '../common/CoderRunPauseCheckpoint';
|
|
1
2
|
import type { CliProgressDisplay } from '../common/cliProgressDisplay';
|
|
2
3
|
import type { RunOptions } from '../cli/RunOptions';
|
|
3
4
|
import type { PromptSelection } from '../prompts/types/PromptSelection';
|
|
@@ -19,7 +20,7 @@ type RunPromptRoundOptions = {
|
|
|
19
20
|
isRichUiEnabled: boolean;
|
|
20
21
|
progressDisplay?: CliProgressDisplay;
|
|
21
22
|
uiHandle?: CoderRunUiHandle;
|
|
22
|
-
waitForRequestedPause
|
|
23
|
+
waitForRequestedPause: WaitForCoderRunPauseCheckpoint;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* Runs one prompt round from prompt construction through commit or failure logging.
|
|
@@ -12,6 +12,7 @@ export type BuildCoderRunUiFrameOptions = {
|
|
|
12
12
|
readonly animationFrame: number;
|
|
13
13
|
readonly spinner: string;
|
|
14
14
|
readonly pauseState: CoderRunPauseState;
|
|
15
|
+
readonly pauseTargetLabel: string;
|
|
15
16
|
readonly config: CoderRunConfig;
|
|
16
17
|
readonly phase: CoderRunPhase;
|
|
17
18
|
readonly currentPromptLabel: string;
|
|
@@ -42,7 +42,7 @@ export declare function buildScriptPathSessionRows(scriptPaths: readonly string[
|
|
|
42
42
|
/**
|
|
43
43
|
* Builds the colored phase badge shown in the session box.
|
|
44
44
|
*/
|
|
45
|
-
export declare function buildPausePresentation(phase: CoderRunPhase, pauseState: CoderRunPauseState, statusMessage: string): PausePresentation;
|
|
45
|
+
export declare function buildPausePresentation(phase: CoderRunPhase, pauseState: CoderRunPauseState, pauseTargetLabel: string, statusMessage: string): PausePresentation;
|
|
46
46
|
/**
|
|
47
47
|
* Builds the progress bar shown in the session box.
|
|
48
48
|
*/
|
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-102`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported file storage backends for Agents Server CDN uploads.
|
|
3
|
-
*
|
|
4
|
-
* @private internal CDN configuration helper.
|
|
5
|
-
*/
|
|
6
|
-
export type CdnStorageProvider = 's3' | 'vercel';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Resolves the configured CDN storage provider.
|
|
10
|
-
*
|
|
11
|
-
* @private internal CDN configuration helper.
|
|
12
|
-
*/
|
|
13
|
-
export function resolveCdnStorageProvider(): CdnStorageProvider {
|
|
14
|
-
const rawProvider = (process.env.NEXT_PUBLIC_CDN_STORAGE_PROVIDER || '').trim().toLowerCase();
|
|
15
|
-
|
|
16
|
-
switch (rawProvider) {
|
|
17
|
-
case 's3':
|
|
18
|
-
case 'minio':
|
|
19
|
-
case 'external-s3':
|
|
20
|
-
case 'self-contained-s3':
|
|
21
|
-
return 's3';
|
|
22
|
-
|
|
23
|
-
case 'vercel':
|
|
24
|
-
case 'vercel-blob':
|
|
25
|
-
case '':
|
|
26
|
-
return 'vercel';
|
|
27
|
-
|
|
28
|
-
default:
|
|
29
|
-
throw new Error(`Unsupported CDN storage provider \`${rawProvider}\`.`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Checks whether browser uploads should be routed through the Agents Server API.
|
|
35
|
-
*
|
|
36
|
-
* @private internal CDN configuration helper.
|
|
37
|
-
*/
|
|
38
|
-
export function isServerRoutedCdnUploadProvider(provider: CdnStorageProvider = resolveCdnStorageProvider()): boolean {
|
|
39
|
-
return provider === 's3';
|
|
40
|
-
}
|