@promptbook/cli 0.112.0-40 โ†’ 0.112.0-41

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 (66) hide show
  1. package/README.md +23 -21
  2. package/esm/apps/agents-server/src/database/acquireMigrationExecutionLock.d.ts +1 -1
  3. package/esm/apps/agents-server/src/database/importRuntimeModule.d.ts +8 -0
  4. package/esm/apps/agents-server/src/database/migratePrefix.d.ts +1 -1
  5. package/esm/apps/agents-server/src/database/resolveMigrationsDirectory.d.ts +2 -2
  6. package/esm/index.es.js +5567 -3375
  7. package/esm/index.es.js.map +1 -1
  8. package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +3 -1
  9. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +8 -2
  10. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +0 -10
  11. package/esm/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  12. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +46 -0
  13. package/esm/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  14. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +1 -1
  15. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  16. package/esm/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  17. package/esm/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  18. package/esm/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  19. package/esm/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  20. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  21. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  22. package/esm/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  23. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +7 -1
  24. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +52 -0
  25. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +128 -0
  26. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -3
  27. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +54 -0
  28. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  29. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +28 -0
  30. package/esm/src/types/number_usd.d.ts +1 -1
  31. package/esm/src/types/string_parameter_name.d.ts +2 -2
  32. package/esm/src/types/typeAliases.d.ts +2 -2
  33. package/esm/src/version.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/umd/apps/agents-server/src/database/acquireMigrationExecutionLock.d.ts +1 -1
  36. package/umd/apps/agents-server/src/database/importRuntimeModule.d.ts +8 -0
  37. package/umd/apps/agents-server/src/database/migratePrefix.d.ts +1 -1
  38. package/umd/apps/agents-server/src/database/resolveMigrationsDirectory.d.ts +2 -2
  39. package/umd/index.umd.js +5570 -3378
  40. package/umd/index.umd.js.map +1 -1
  41. package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +3 -1
  42. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +8 -2
  43. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +0 -10
  44. package/umd/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  45. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +46 -0
  46. package/umd/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  47. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +1 -1
  48. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  49. package/umd/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  50. package/umd/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  51. package/umd/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  52. package/umd/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  53. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  54. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  55. package/umd/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  56. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +7 -1
  57. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +52 -0
  58. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +128 -0
  59. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -3
  60. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +54 -0
  61. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  62. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +28 -0
  63. package/umd/src/types/number_usd.d.ts +1 -1
  64. package/umd/src/types/string_parameter_name.d.ts +2 -2
  65. package/umd/src/types/typeAliases.d.ts +2 -2
  66. package/umd/src/version.d.ts +1 -1
package/README.md CHANGED
@@ -19,11 +19,13 @@ Create persistent AI agents that turn your company's scattered knowledge into ac
19
19
  [![๐Ÿงช Test types](https://github.com/webgptorg/promptbook/actions/workflows/test-types.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-types.yml)
20
20
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
21
21
 
22
+ ## ๐Ÿš€ Quick deploy
22
23
 
23
24
 
24
- ## ๐ŸŒŸ New Features
25
25
 
26
- - **Gemini 3 Support**
26
+ [![Vercel](https://img.shields.io/badge/Vercel-Deploy%20Agents%20Server-black?logo=vercel)](https://vercel.com/new/clone?project-name=promptbook-agents-server&repository-name=promptbook-agents-server&repository-url=https%3A%2F%2Fgithub.com%2Fwebgptorg%2Fpromptbook&root-directory=apps%2Fagents-server&demo-title=Promptbook+Agents+Server&demo-description=Persistent+AI+agents+with+a+built-in+admin+UI.+This+deploy+creates+a+Supabase+project+automatically%2C+injects+the+required+database+credentials%2C+and+Promptbook+runs+the+SQL+migrations+on+first+startup.&demo-url=https%3A%2F%2Fgallery.ptbk.io%2F&external-id=https%3A%2F%2Fgithub.com%2Fwebgptorg%2Fpromptbook%2Ftree%2Fmain%2Fapps%2Fagents-server&env=OPENAI_API_KEY%2CADMIN_PASSWORD%2CSUPABASE_AUTO_MIGRATE&envDescription=Supabase+is+created+automatically+by+the+required+Vercel+integration.+Add+OPENAI_API_KEY+from+https%3A%2F%2Fplatform.openai.com%2Fapi-keys%2C+choose+ADMIN_PASSWORD+for+your+first+admin+login%2C+and+leave+SUPABASE_AUTO_MIGRATE+enabled.&envLink=https%3A%2F%2Fgithub.com%2Fwebgptorg%2Fpromptbook%2Fblob%2Fmain%2FREADME.md%23vercel-form-fields&envDefaults=%7B%22SUPABASE_AUTO_MIGRATE%22%3A%22true%22%7D&stores=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22supabase%22%2C%22productSlug%22%3A%22supabase%22%7D%5D)
27
+
28
+
27
29
 
28
30
 
29
31
 
@@ -597,28 +599,28 @@ npx ptbk coder verify
597
599
 
598
600
  #### What each command does
599
601
 
600
- | Command | What it does |
601
- | --- | --- |
602
- | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.tmp`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
603
- | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
604
- | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, marks success or failure, then commits and pushes the result. |
605
- | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow|low|medium|high|xhigh|extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
606
- | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
602
+ | Command | What it does |
603
+ | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
604
+ | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.tmp`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
605
+ | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
606
+ | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, marks success or failure, then commits and pushes the result. |
607
+ | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
608
+ | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
607
609
 
608
610
  #### Most useful `ptbk coder run` flags
609
611
 
610
- | Flag | Purpose |
611
- | --- | --- |
612
- | `--agent <name>` | Selects the coding backend. |
613
- | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
614
- | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
615
- | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
616
- | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
617
- | `--ignore-git-changes` | Disables the clean-working-tree guard. |
618
- | `--priority <n>` | Runs only prompts at or above the given priority. |
619
- | `--dry-run` | Prints which prompts are ready instead of executing them. |
620
- | `--allow-credits` | Lets OpenAI Codex spend credits when required. |
621
- | `--auto-migrate` | Runs testing-server database migrations after each successful prompt. |
612
+ | Flag | Purpose |
613
+ | -------------------------- | -------------------------------------------------------------------------------------------------- |
614
+ | `--agent <name>` | Selects the coding backend. |
615
+ | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
616
+ | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
617
+ | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
618
+ | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
619
+ | `--ignore-git-changes` | Disables the clean-working-tree guard. |
620
+ | `--priority <n>` | Runs only prompts at or above the given priority. |
621
+ | `--dry-run` | Prints which prompts are ready instead of executing them. |
622
+ | `--allow-credits` | Lets OpenAI Codex spend credits when required. |
623
+ | `--auto-migrate` | Runs testing-server database migrations after each successful prompt. |
622
624
 
623
625
  #### Typical usage pattern
624
626
 
@@ -1,4 +1,4 @@
1
- import { Client } from 'pg';
1
+ import type { Client } from 'pg';
2
2
  import type { DatabaseMigrationLogger } from './runDatabaseMigrations';
3
3
  /**
4
4
  * Acquires advisory lock preventing concurrent migration execution across processes.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Imports a runtime-only module without letting Next.js statically bundle Node-only dependencies.
3
+ *
4
+ * @param specifier - Module specifier to import at runtime.
5
+ * @returns Imported module namespace.
6
+ * @private internal helper for runtime-only database utilities
7
+ */
8
+ export declare function importRuntimeModule<TModule>(specifier: string): Promise<TModule>;
@@ -1,4 +1,4 @@
1
- import { Client } from 'pg';
1
+ import type { Client } from 'pg';
2
2
  import type { DatabaseMigrationAppliedBy, DatabaseMigrationLogger } from './runDatabaseMigrations';
3
3
  /**
4
4
  * Context for one prefix migration pass.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @private function of runDatabaseMigrations
7
7
  */
8
- export declare function resolveMigrationsDirectory(): string;
8
+ export declare function resolveMigrationsDirectory(): Promise<string>;
9
9
  /**
10
10
  * Reads migration files from directory and sorts them lexicographically.
11
11
  *
@@ -14,4 +14,4 @@ export declare function resolveMigrationsDirectory(): string;
14
14
  *
15
15
  * @private function of runDatabaseMigrations
16
16
  */
17
- export declare function readMigrationFiles(migrationsDirectory: string): Array<string>;
17
+ export declare function readMigrationFiles(migrationsDirectory: string): Promise<Array<string>>;