@promptbook/cli 0.112.0-102 → 0.112.0-104

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.
Files changed (54) hide show
  1. package/apps/agents-server/README.md +0 -6
  2. package/apps/agents-server/src/app/AddAgentButton.tsx +0 -5
  3. package/apps/agents-server/src/app/actions.ts +50 -0
  4. package/apps/agents-server/src/app/admin/image-generator-test/ImageAttachmentsEditor.tsx +11 -6
  5. package/apps/agents-server/src/app/admin/metadata/MetadataClient.tsx +13 -15
  6. package/apps/agents-server/src/app/admin/servers/useCreateServerWizard.ts +13 -14
  7. package/apps/agents-server/src/app/agents/[agentName]/AgentProfileChat.tsx +3 -4
  8. package/apps/agents-server/src/app/api/health/route.ts +18 -0
  9. package/apps/agents-server/src/app/api/upload/route.ts +110 -383
  10. package/apps/agents-server/src/components/AgentProfile/AgentProfile.tsx +1 -4
  11. package/apps/agents-server/src/components/Header/Header.tsx +0 -11
  12. package/apps/agents-server/src/components/Header/useHeaderAgentMenus.tsx +0 -5
  13. package/apps/agents-server/src/components/NewAgentDialog/useNewAgentDialog.tsx +39 -16
  14. package/apps/agents-server/src/constants/defaultAgentAvatarVisual.ts +1 -1
  15. package/apps/agents-server/src/database/migrations/2026-06-0200-default-agent-avatar-visual-octopus3d3.sql +16 -0
  16. package/apps/agents-server/src/middleware.ts +2 -1
  17. package/apps/agents-server/src/tools/$provideCdnForServer.ts +87 -49
  18. package/apps/agents-server/src/utils/agentRouting/resolveAgentRouteTarget.ts +27 -4
  19. package/apps/agents-server/src/utils/cdn/classes/DigitalOceanSpaces.ts +17 -49
  20. package/apps/agents-server/src/utils/cdn/classes/TrackedFilesStorage.ts +5 -2
  21. package/apps/agents-server/src/utils/cdn/interfaces/IFilesStorage.ts +5 -0
  22. package/apps/agents-server/src/utils/defaultAgents/defaultAgents.ts +168 -0
  23. package/apps/agents-server/src/utils/defaultAgents/installDefaultAgents.ts +139 -0
  24. package/apps/agents-server/src/utils/shareTargetPayloads.ts +15 -63
  25. package/apps/agents-server/src/utils/upload/createBookEditorUploadHandler.ts +23 -150
  26. package/apps/agents-server/src/utils/upload/uploadFileToServer.ts +113 -0
  27. package/esm/index.es.js +711 -41
  28. package/esm/index.es.js.map +1 -1
  29. package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +12 -0
  30. package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
  31. package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +1 -0
  32. package/esm/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -1
  33. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  34. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  35. package/esm/src/version.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/src/avatars/types/AvatarVisualDefinition.ts +1 -0
  38. package/src/avatars/visuals/avatarVisualRegistry.ts +2 -0
  39. package/src/avatars/visuals/octopus3d3AvatarVisual.ts +903 -0
  40. package/src/book-components/Chat/MarkdownContent/MarkdownContent.tsx +1 -3
  41. package/src/other/templates/getTemplatesPipelineCollection.ts +799 -809
  42. package/src/utils/agents/resolveAgentAvatarImageUrl.ts +1 -1
  43. package/src/version.ts +2 -2
  44. package/src/versions.txt +1 -0
  45. package/umd/index.umd.js +711 -41
  46. package/umd/index.umd.js.map +1 -1
  47. package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +12 -0
  48. package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
  49. package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +1 -0
  50. package/umd/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -1
  51. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  52. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  53. package/umd/src/version.d.ts +1 -1
  54. 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(): Promise<void>;
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
  */
@@ -7,7 +7,7 @@ import type { AvatarDefinition } from './AvatarDefinition';
7
7
  *
8
8
  * @private shared contract for the avatar rendering system
9
9
  */
10
- export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
10
+ export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'octopus3d3' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
11
11
  /**
12
12
  * Derived color palette used by avatar visuals.
13
13
  *
@@ -0,0 +1,7 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Octopus 3D 3 avatar visual.
4
+ *
5
+ * @private built-in avatar visual
6
+ */
7
+ export declare const octopus3d3AvatarVisual: AvatarVisualDefinition;
@@ -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-101`).
18
+ * It follows semantic versioning (e.g., `0.112.0-102`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/cli",
3
- "version": "0.112.0-102",
3
+ "version": "0.112.0-104",
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,
@@ -15,6 +15,7 @@ export type AvatarVisualId =
15
15
  | 'octopus3'
16
16
  | 'octopus3d'
17
17
  | 'octopus3d2'
18
+ | 'octopus3d3'
18
19
  | 'ascii-octopus'
19
20
  | 'minecraft'
20
21
  | 'minecraft2'
@@ -7,6 +7,7 @@ import { octopus2AvatarVisual } from './octopus2AvatarVisual';
7
7
  import { octopus3AvatarVisual } from './octopus3AvatarVisual';
8
8
  import { octopus3dAvatarVisual } from './octopus3dAvatarVisual';
9
9
  import { octopus3d2AvatarVisual } from './octopus3d2AvatarVisual';
10
+ import { octopus3d3AvatarVisual } from './octopus3d3AvatarVisual';
10
11
  import { octopusAvatarVisual } from './octopusAvatarVisual';
11
12
  import { orbAvatarVisual } from './orbAvatarVisual';
12
13
  import { pixelArtAvatarVisual } from './pixelArtAvatarVisual';
@@ -25,6 +26,7 @@ export const AVATAR_VISUALS: ReadonlyArray<AvatarVisualDefinition> = [
25
26
  octopus3AvatarVisual,
26
27
  octopus3dAvatarVisual,
27
28
  octopus3d2AvatarVisual,
29
+ octopus3d3AvatarVisual,
28
30
  asciiOctopusAvatarVisual,
29
31
  minecraftAvatarVisual,
30
32
  minecraft2AvatarVisual,