@promptbook/cli 0.114.0-2 → 0.114.0-3
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/next.config.ts +11 -0
- package/apps/agents-server/src/app/layout.tsx +6 -0
- package/esm/index.es.js +677 -199
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +7 -0
- package/esm/scripts/run-codex-prompts/git/coderGitSync.d.ts +43 -0
- package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -1
- package/esm/scripts/run-codex-prompts/ping/buildCoderPingPrompt.d.ts +20 -0
- package/esm/scripts/run-codex-prompts/ping/extractCoderPingAnswer.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/ping/pingCoderHarness.d.ts +23 -0
- package/esm/scripts/run-codex-prompts/ping/printCoderPingResult.d.ts +5 -0
- package/esm/scripts/verify-prompts/verify-prompts.d.ts +5 -0
- package/esm/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/ping.d.ts +2 -5
- package/esm/src/cli/cli-commands/coder.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts +1 -0
- package/esm/src/cli/common/loadPromptsModule.d.ts +16 -0
- package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/esm/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/esm/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/book-3.0/LiteAgent.ts +11 -9
- package/src/book-components/Chat/utils/$provideServerDomWindow.ts +77 -0
- package/src/book-components/Chat/utils/renderMarkdown.ts +2 -23
- package/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.ts +14 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.ts +1 -0
- package/src/cli/cli-commands/coder/add.ts +40 -12
- package/src/cli/cli-commands/coder/generate-boilerplates.ts +31 -5
- package/src/cli/cli-commands/coder/init.ts +27 -1
- package/src/cli/cli-commands/coder/ping.ts +23 -45
- package/src/cli/cli-commands/coder/verify.ts +27 -12
- package/src/cli/cli-commands/coder.ts +3 -3
- package/src/cli/cli-commands/common/coderGitSyncCliOptions.ts +78 -0
- package/src/cli/cli-commands/run/prepareRunCommandResources.ts +2 -1
- package/src/cli/cli-commands/run/resolveRunInputParameters.ts +2 -1
- package/src/cli/cli-commands/runInteractiveChatbot.ts +2 -1
- package/src/cli/common/$provideLlmToolsForCli.ts +2 -1
- package/src/cli/common/loadPromptsModule.ts +13 -0
- package/src/conversion/archive/loadArchive.ts +2 -1
- package/src/conversion/archive/loadJsZipModule.ts +10 -0
- package/src/conversion/archive/saveArchive.ts +2 -1
- package/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.ts +13 -1
- package/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.ts +13 -1
- package/src/llm-providers/openai/OpenAiAgentKitExecutionTools.ts +6 -2
- package/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.ts +7 -5
- package/src/llm-providers/openai/OpenAiAssistantExecutionTools.ts +1 -1
- package/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.ts +1 -1
- package/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.ts +1 -1
- package/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.ts +1 -1
- package/src/llm-providers/openai/OpenAiCompatibleRequestManager.ts +12 -1
- package/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.ts +1 -1
- package/src/llm-providers/openai/utils/loadOpenAiAgentsModule.ts +11 -0
- package/src/llm-providers/openai/utils/uploadFilesToOpenAi.ts +1 -1
- package/src/other/templates/getTemplatesPipelineCollection.ts +678 -967
- package/src/remote-server/createRemoteClient.ts +12 -1
- package/src/scrapers/website/WebsiteScraper.ts +22 -2
- package/src/utils/misc/createLazyModuleLoader.ts +27 -0
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +750 -266
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +7 -0
- package/umd/scripts/run-codex-prompts/git/coderGitSync.d.ts +43 -0
- package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -1
- package/umd/scripts/run-codex-prompts/ping/buildCoderPingPrompt.d.ts +20 -0
- package/umd/scripts/run-codex-prompts/ping/extractCoderPingAnswer.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/ping/pingCoderHarness.d.ts +23 -0
- package/umd/scripts/run-codex-prompts/ping/printCoderPingResult.d.ts +5 -0
- package/umd/scripts/verify-prompts/verify-prompts.d.ts +5 -0
- package/umd/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/ping.d.ts +2 -5
- package/umd/src/cli/cli-commands/coder.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts +1 -0
- package/umd/src/cli/common/loadPromptsModule.d.ts +16 -0
- package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/umd/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/umd/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/scripts/run-agent-chat/runCoderPing.d.ts +0 -48
- package/umd/scripts/run-agent-chat/runCoderPing.d.ts +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ThinkingLevel } from '../../src/cli/cli-commands/coder/ThinkingLevel';
|
|
2
|
-
import type { PromptRunnerHarnessName } from '../../src/cli/cli-commands/common/promptRunnerCliOptions';
|
|
3
|
-
/**
|
|
4
|
-
* Options for one `ptbk coder ping` execution.
|
|
5
|
-
*/
|
|
6
|
-
export type RunCoderPingOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* Harness used for the disposable turn.
|
|
9
|
-
*/
|
|
10
|
-
readonly agentName: PromptRunnerHarnessName;
|
|
11
|
-
/**
|
|
12
|
-
* Optional model passed to the harness.
|
|
13
|
-
*/
|
|
14
|
-
readonly model?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional reasoning effort passed to the harness.
|
|
17
|
-
*/
|
|
18
|
-
readonly thinkingLevel?: ThinkingLevel;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the harness should receive the shared no-UI option.
|
|
21
|
-
*/
|
|
22
|
-
readonly isUiDisabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the harness may spend credits when its quota is exhausted.
|
|
25
|
-
*/
|
|
26
|
-
readonly isCreditsAllowed: boolean;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Result of one `ptbk coder ping` execution.
|
|
30
|
-
*/
|
|
31
|
-
export type CoderPingResult = {
|
|
32
|
-
/**
|
|
33
|
-
* Text returned by the harness after the dummy task.
|
|
34
|
-
*/
|
|
35
|
-
readonly result: string;
|
|
36
|
-
/**
|
|
37
|
-
* Time spent executing the disposable harness turn in milliseconds.
|
|
38
|
-
*/
|
|
39
|
-
readonly elapsedTimeMs: number;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Runs one small harness/model turn in a disposable temporary project.
|
|
43
|
-
*
|
|
44
|
-
* The temporary project is outside the caller's repository, so even a harness
|
|
45
|
-
* that writes files cannot change the project from which `ptbk coder ping` was
|
|
46
|
-
* started.
|
|
47
|
-
*/
|
|
48
|
-
export declare function runCoderPing(options: RunCoderPingOptions): Promise<CoderPingResult>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ThinkingLevel } from '../../src/cli/cli-commands/coder/ThinkingLevel';
|
|
2
|
-
import type { PromptRunnerHarnessName } from '../../src/cli/cli-commands/common/promptRunnerCliOptions';
|
|
3
|
-
/**
|
|
4
|
-
* Options for one `ptbk coder ping` execution.
|
|
5
|
-
*/
|
|
6
|
-
export type RunCoderPingOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* Harness used for the disposable turn.
|
|
9
|
-
*/
|
|
10
|
-
readonly agentName: PromptRunnerHarnessName;
|
|
11
|
-
/**
|
|
12
|
-
* Optional model passed to the harness.
|
|
13
|
-
*/
|
|
14
|
-
readonly model?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional reasoning effort passed to the harness.
|
|
17
|
-
*/
|
|
18
|
-
readonly thinkingLevel?: ThinkingLevel;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the harness should receive the shared no-UI option.
|
|
21
|
-
*/
|
|
22
|
-
readonly isUiDisabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the harness may spend credits when its quota is exhausted.
|
|
25
|
-
*/
|
|
26
|
-
readonly isCreditsAllowed: boolean;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Result of one `ptbk coder ping` execution.
|
|
30
|
-
*/
|
|
31
|
-
export type CoderPingResult = {
|
|
32
|
-
/**
|
|
33
|
-
* Text returned by the harness after the dummy task.
|
|
34
|
-
*/
|
|
35
|
-
readonly result: string;
|
|
36
|
-
/**
|
|
37
|
-
* Time spent executing the disposable harness turn in milliseconds.
|
|
38
|
-
*/
|
|
39
|
-
readonly elapsedTimeMs: number;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Runs one small harness/model turn in a disposable temporary project.
|
|
43
|
-
*
|
|
44
|
-
* The temporary project is outside the caller's repository, so even a harness
|
|
45
|
-
* that writes files cannot change the project from which `ptbk coder ping` was
|
|
46
|
-
* started.
|
|
47
|
-
*/
|
|
48
|
-
export declare function runCoderPing(options: RunCoderPingOptions): Promise<CoderPingResult>;
|