@promptbook/node 0.112.0-54 → 0.112.0-56
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/esm/index.es.js +3577 -204
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/cli.index.d.ts +10 -0
- package/esm/src/_packages/core.index.d.ts +12 -0
- package/esm/src/_packages/types.index.d.ts +8 -0
- package/esm/src/_packages/wizard.index.d.ts +10 -0
- package/esm/src/avatars/index.d.ts +1 -1
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
- package/esm/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
- package/esm/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
- package/esm/src/commitments/ACTION/ACTION.d.ts +8 -2
- package/esm/src/commitments/ACTION/ACTION.test.d.ts +1 -0
- package/esm/src/commitments/DELETE/DELETE.d.ts +7 -3
- package/esm/src/commitments/DELETE/DELETE.test.d.ts +1 -0
- package/esm/src/commitments/FORMAT/FORMAT.d.ts +10 -4
- package/esm/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
- package/esm/src/commitments/GOAL/GOAL.d.ts +4 -0
- package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
- package/esm/src/commitments/META/META.d.ts +2 -0
- package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
- package/esm/src/commitments/MODEL/MODEL.d.ts +4 -0
- package/esm/src/commitments/MODEL/MODEL.test.d.ts +1 -0
- package/esm/src/commitments/RULE/RULE.d.ts +4 -0
- package/esm/src/commitments/TEAM/TEAM.d.ts +4 -0
- package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
- package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
- package/esm/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
- package/esm/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
- package/esm/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
- package/esm/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
- package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
- package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
- package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
- package/esm/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
- package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
- package/esm/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
- package/esm/src/commitments/index.d.ts +2 -2
- package/esm/src/commitments/index.test.d.ts +1 -0
- package/esm/src/llm-providers/agent/Agent.d.ts +2 -0
- package/esm/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
- package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
- package/esm/src/playground/playground.d.ts +1 -0
- package/esm/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
- package/esm/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
- package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
- package/esm/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
- package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
- package/esm/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
- package/esm/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
- package/esm/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
- package/esm/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
- package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
- package/esm/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
- package/esm/src/transpilers/agent-os/register.d.ts +12 -0
- package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
- package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
- package/esm/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
- package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
- package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
- package/esm/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
- package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
- package/esm/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
- package/esm/src/transpilers/e2b/register.d.ts +12 -0
- package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
- package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
- package/esm/src/transpilers/openai-agents/register.d.ts +12 -0
- package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
- package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +3577 -204
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/cli.index.d.ts +10 -0
- package/umd/src/_packages/core.index.d.ts +12 -0
- package/umd/src/_packages/types.index.d.ts +8 -0
- package/umd/src/_packages/wizard.index.d.ts +10 -0
- package/umd/src/avatars/index.d.ts +1 -1
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
- package/umd/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
- package/umd/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
- package/umd/src/commitments/ACTION/ACTION.d.ts +8 -2
- package/umd/src/commitments/ACTION/ACTION.test.d.ts +1 -0
- package/umd/src/commitments/DELETE/DELETE.d.ts +7 -3
- package/umd/src/commitments/DELETE/DELETE.test.d.ts +1 -0
- package/umd/src/commitments/FORMAT/FORMAT.d.ts +10 -4
- package/umd/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
- package/umd/src/commitments/GOAL/GOAL.d.ts +4 -0
- package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
- package/umd/src/commitments/META/META.d.ts +2 -0
- package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
- package/umd/src/commitments/MODEL/MODEL.d.ts +4 -0
- package/umd/src/commitments/MODEL/MODEL.test.d.ts +1 -0
- package/umd/src/commitments/RULE/RULE.d.ts +4 -0
- package/umd/src/commitments/TEAM/TEAM.d.ts +4 -0
- package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
- package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
- package/umd/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
- package/umd/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
- package/umd/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
- package/umd/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
- package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
- package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
- package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
- package/umd/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
- package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
- package/umd/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
- package/umd/src/commitments/index.d.ts +2 -2
- package/umd/src/commitments/index.test.d.ts +1 -0
- package/umd/src/llm-providers/agent/Agent.d.ts +2 -0
- package/umd/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
- package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
- package/umd/src/playground/playground.d.ts +1 -0
- package/umd/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
- package/umd/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
- package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
- package/umd/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
- package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
- package/umd/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
- package/umd/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
- package/umd/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
- package/umd/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
- package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
- package/umd/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
- package/umd/src/transpilers/agent-os/register.d.ts +12 -0
- package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
- package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
- package/umd/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
- package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
- package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
- package/umd/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
- package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
- package/umd/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
- package/umd/src/transpilers/e2b/register.d.ts +12 -0
- package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
- package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
- package/umd/src/transpilers/openai-agents/register.d.ts +12 -0
- package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
- package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
- package/esm/src/commitments/USE/USE.d.ts +0 -51
- package/umd/src/commitments/USE/USE.d.ts +0 -51
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CommitmentDefinition } from '../_base/CommitmentDefinition';
|
|
2
|
+
/**
|
|
3
|
+
* Sorting options for commitment definitions.
|
|
4
|
+
*
|
|
5
|
+
* @private internal helper of commitment catalog sorting
|
|
6
|
+
*/
|
|
7
|
+
type CommitmentDefinitionSortOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* When enabled, deprecated commitments are moved behind all non-deprecated commitments.
|
|
10
|
+
*/
|
|
11
|
+
readonly isDeprecatedLast?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* When enabled, unfinished commitments are moved behind all other commitments.
|
|
14
|
+
*/
|
|
15
|
+
readonly isUnfinishedLast?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When enabled, low-level commitments are moved behind all other commitments.
|
|
18
|
+
*/
|
|
19
|
+
readonly isLowLevelLast?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Sorts commitment definitions so the important ones stay at the top.
|
|
23
|
+
*
|
|
24
|
+
* @param commitmentDefinitions - Definitions to sort.
|
|
25
|
+
* @param options - Sorting options.
|
|
26
|
+
* @returns Sorted commitment definitions.
|
|
27
|
+
*
|
|
28
|
+
* @private internal helper of commitment catalog sorting
|
|
29
|
+
*/
|
|
30
|
+
export declare function sortCommitmentDefinitions<TCommitmentDefinition extends CommitmentDefinition>(commitmentDefinitions: ReadonlyArray<TCommitmentDefinition>, options?: CommitmentDefinitionSortOptions): ReadonlyArray<TCommitmentDefinition>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Header used for same-server TEAM calls that may access private teammate agents.
|
|
3
|
+
*
|
|
4
|
+
* @private internal Agents Server access wiring
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEAM_INTERNAL_AGENT_ACCESS_HEADER = "x-promptbook-team-agent-access-token";
|
|
7
|
+
/**
|
|
8
|
+
* Options for creating same-server TEAM access headers.
|
|
9
|
+
*
|
|
10
|
+
* @private internal Agents Server access wiring
|
|
11
|
+
*/
|
|
12
|
+
export type TeamInternalAgentAccessHeadersOptions = {
|
|
13
|
+
/**
|
|
14
|
+
* URL of the teammate agent that is about to be contacted.
|
|
15
|
+
*/
|
|
16
|
+
readonly agentUrl: string;
|
|
17
|
+
/**
|
|
18
|
+
* Origin of the current Agents Server.
|
|
19
|
+
*/
|
|
20
|
+
readonly localServerUrl?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Resolved internal access token carried by the runtime context.
|
|
23
|
+
*/
|
|
24
|
+
readonly accessToken?: string | null;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Resolves the internal token used by same-server TEAM calls.
|
|
28
|
+
*
|
|
29
|
+
* @returns Hashed token, or `null` when the server does not have a private secret.
|
|
30
|
+
*
|
|
31
|
+
* @private internal Agents Server access wiring
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveTeamInternalAgentAccessToken(): string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Creates request headers for same-server TEAM calls.
|
|
36
|
+
*
|
|
37
|
+
* @param options - Target agent URL, local server URL, and resolved access token.
|
|
38
|
+
* @returns Header map when the target is same-origin; otherwise an empty map.
|
|
39
|
+
*
|
|
40
|
+
* @private internal Agents Server access wiring
|
|
41
|
+
*/
|
|
42
|
+
export declare function createTeamInternalAgentAccessHeaders(options: TeamInternalAgentAccessHeadersOptions): Record<string, string>;
|
|
43
|
+
/**
|
|
44
|
+
* Checks whether an incoming header carries the current same-server TEAM access token.
|
|
45
|
+
*
|
|
46
|
+
* @param value - Raw request header value.
|
|
47
|
+
* @returns `true` only when the server has a private token and the value matches it.
|
|
48
|
+
*
|
|
49
|
+
* @private internal Agents Server access wiring
|
|
50
|
+
*/
|
|
51
|
+
export declare function isTeamInternalAgentAccessToken(value: string | null | undefined): boolean;
|
|
@@ -17,6 +17,7 @@ import { MessageCommitmentDefinition } from './MESSAGE/MESSAGE';
|
|
|
17
17
|
import { UserMessageCommitmentDefinition } from './MESSAGE/UserMessageCommitmentDefinition';
|
|
18
18
|
import { MessageSuffixCommitmentDefinition } from './MESSAGE_SUFFIX/MESSAGE_SUFFIX';
|
|
19
19
|
import { MetaCommitmentDefinition } from './META/META';
|
|
20
|
+
import { MetaAvatarCommitmentDefinition } from './META_AVATAR/META_AVATAR';
|
|
20
21
|
import { MetaColorCommitmentDefinition } from './META_COLOR/META_COLOR';
|
|
21
22
|
import { MetaDomainCommitmentDefinition } from './META_DOMAIN/META_DOMAIN';
|
|
22
23
|
import { MetaDisclaimerCommitmentDefinition } from './META_DISCLAIMER/META_DISCLAIMER';
|
|
@@ -35,7 +36,6 @@ import { ScenarioCommitmentDefinition } from './SCENARIO/SCENARIO';
|
|
|
35
36
|
import { StyleCommitmentDefinition } from './STYLE/STYLE';
|
|
36
37
|
import { TeamCommitmentDefinition } from './TEAM/TEAM';
|
|
37
38
|
import { TemplateCommitmentDefinition } from './TEMPLATE/TEMPLATE';
|
|
38
|
-
import { UseCommitmentDefinition } from './USE/USE';
|
|
39
39
|
import { UseBrowserCommitmentDefinition } from './USE_BROWSER/USE_BROWSER';
|
|
40
40
|
import { UseCalendarCommitmentDefinition } from './USE_CALENDAR/USE_CALENDAR';
|
|
41
41
|
import { UseDeepSearchCommitmentDefinition } from './USE_DEEPSEARCH/USE_DEEPSEARCH';
|
|
@@ -60,4 +60,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
|
|
|
60
60
|
*
|
|
61
61
|
* @private Use functions to access commitments instead of this array directly
|
|
62
62
|
*/
|
|
63
|
-
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition,
|
|
63
|
+
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import type { CallChatModelStreamOptions, LlmExecutionTools } from '../../execut
|
|
|
5
5
|
import type { ChatPromptResult } from '../../execution/PromptResult';
|
|
6
6
|
import type { Prompt } from '../../types/Prompt';
|
|
7
7
|
import type { string_agent_hash, string_agent_name, string_agent_url, string_color, string_fonts, string_url_image } from '../../types/typeAliases';
|
|
8
|
+
import type { AvatarVisualId } from '../../avatars/types/AvatarVisualDefinition';
|
|
8
9
|
import { AgentLlmExecutionTools } from './AgentLlmExecutionTools';
|
|
9
10
|
import type { AgentOptions } from './AgentOptions';
|
|
10
11
|
/**
|
|
@@ -69,6 +70,7 @@ export declare class Agent extends AgentLlmExecutionTools implements LlmExecutio
|
|
|
69
70
|
meta: {
|
|
70
71
|
fullname?: string;
|
|
71
72
|
image?: string_url_image;
|
|
73
|
+
avatar?: AvatarVisualId;
|
|
72
74
|
link?: string;
|
|
73
75
|
font?: string_fonts;
|
|
74
76
|
color?: string_color;
|
|
@@ -8,4 +8,8 @@ export type RemoteAgentOptions = Omit<CommonToolsOptions, 'teacherAgent'> & {
|
|
|
8
8
|
* Url of the remote agent
|
|
9
9
|
*/
|
|
10
10
|
agentUrl: string_agent_url;
|
|
11
|
+
/**
|
|
12
|
+
* Additional HTTP headers sent to the remote agent profile, chat, and voice endpoints.
|
|
13
|
+
*/
|
|
14
|
+
requestHeaders?: Record<string, string>;
|
|
11
15
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import type { AgentReferenceResolver } from '../../book-2.0/agent-source/AgentReferenceResolver';
|
|
2
|
+
import type { TeammateProfileResolver } from '../../book-2.0/agent-source/TeammateProfileResolver';
|
|
1
3
|
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';
|
|
4
|
+
import type { InlineKnowledgeSourceUploader } from '../../utils/knowledge/inlineKnowledgeSource';
|
|
5
|
+
import type { TranspiledTeamExport } from './TranspiledTeamExport';
|
|
2
6
|
/**
|
|
3
7
|
* Options for the BookTranspiler.
|
|
4
8
|
*/
|
|
@@ -15,4 +19,20 @@ export type BookTranspilerOptions = Omit<CommonToolsOptions, 'maxRequestsPerMinu
|
|
|
15
19
|
* @default true
|
|
16
20
|
*/
|
|
17
21
|
readonly shouldIncludeComments?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Resolver that transforms compact agent references into concrete URLs before transpilation.
|
|
24
|
+
*/
|
|
25
|
+
readonly agentReferenceResolver?: AgentReferenceResolver;
|
|
26
|
+
/**
|
|
27
|
+
* Optional hook used to upload inline knowledge files before finalizing transpiled model requirements.
|
|
28
|
+
*/
|
|
29
|
+
readonly inlineKnowledgeSourceUploader?: InlineKnowledgeSourceUploader;
|
|
30
|
+
/**
|
|
31
|
+
* Optional resolver that provides actual agent names and descriptions for teammate URLs.
|
|
32
|
+
*/
|
|
33
|
+
readonly teammateProfileResolver?: TeammateProfileResolver;
|
|
34
|
+
/**
|
|
35
|
+
* Built-in TEAM hierarchy resolved by Agents Server for self-contained transpiled exports.
|
|
36
|
+
*/
|
|
37
|
+
readonly transpiledTeam?: TranspiledTeamExport;
|
|
18
38
|
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
3
|
+
import type { PseudoAgentKind } from '../../book-2.0/agent-source/pseudoAgentReferences';
|
|
4
|
+
import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
|
|
5
|
+
/**
|
|
6
|
+
* Model-requirement fields embedded for one built-in teammate in transpiled code.
|
|
7
|
+
*/
|
|
8
|
+
export type TranspiledTeamAgentModelRequirements = Pick<AgentModelRequirements, 'systemMessage' | 'promptSuffix' | 'modelName' | 'temperature' | 'topP' | 'topK' | 'knowledgeSources' | 'samples'> & {
|
|
9
|
+
/**
|
|
10
|
+
* Tool definitions visible to this built-in teammate.
|
|
11
|
+
*/
|
|
12
|
+
readonly tools: ReadonlyArray<LlmToolDefinition>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* One TEAM edge embedded into transpiled code.
|
|
16
|
+
*/
|
|
17
|
+
export type TranspiledTeamTeammate = {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical teammate URL.
|
|
20
|
+
*/
|
|
21
|
+
readonly url: string;
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable teammate label.
|
|
24
|
+
*/
|
|
25
|
+
readonly label: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tool name used by the owning agent to consult this teammate.
|
|
28
|
+
*/
|
|
29
|
+
readonly toolName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional instructions from the TEAM commitment.
|
|
32
|
+
*/
|
|
33
|
+
readonly instructions?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Pseudo-agent kind for `{User}` and `{Void}` teammates.
|
|
36
|
+
*/
|
|
37
|
+
readonly pseudoAgentKind?: PseudoAgentKind;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* One agent node embedded into a transpiled TEAM hierarchy.
|
|
41
|
+
*/
|
|
42
|
+
export type TranspiledTeamAgent = {
|
|
43
|
+
/**
|
|
44
|
+
* Canonical URL used as the stable team-member identifier.
|
|
45
|
+
*/
|
|
46
|
+
readonly url: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-readable agent name.
|
|
49
|
+
*/
|
|
50
|
+
readonly agentName: string;
|
|
51
|
+
/**
|
|
52
|
+
* Resolved Book source for this agent.
|
|
53
|
+
*/
|
|
54
|
+
readonly agentSource: string_book;
|
|
55
|
+
/**
|
|
56
|
+
* Compiled model requirements used by the exported harness.
|
|
57
|
+
*/
|
|
58
|
+
readonly modelRequirements: TranspiledTeamAgentModelRequirements;
|
|
59
|
+
/**
|
|
60
|
+
* Teammates directly available to this agent.
|
|
61
|
+
*/
|
|
62
|
+
readonly teammates: ReadonlyArray<TranspiledTeamTeammate>;
|
|
63
|
+
/**
|
|
64
|
+
* Marks the root exported agent in the hierarchy.
|
|
65
|
+
*/
|
|
66
|
+
readonly isRootAgent?: boolean;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Full built-in TEAM hierarchy embedded into transpiled code.
|
|
70
|
+
*/
|
|
71
|
+
export type TranspiledTeamExport = {
|
|
72
|
+
/**
|
|
73
|
+
* Canonical URL of the root exported agent.
|
|
74
|
+
*/
|
|
75
|
+
readonly rootAgentUrl: string;
|
|
76
|
+
/**
|
|
77
|
+
* Root agent and all reachable teammates.
|
|
78
|
+
*/
|
|
79
|
+
readonly agents: ReadonlyArray<TranspiledTeamAgent>;
|
|
80
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { string_javascript_name } from '../../_packages/types.index';
|
|
2
|
+
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
3
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
4
|
+
import type { TranspiledTeamAgentModelRequirements, TranspiledTeamExport, TranspiledTeamTeammate } from './TranspiledTeamExport';
|
|
5
|
+
/**
|
|
6
|
+
* Creates the full transpiled TEAM export used by generated harnesses.
|
|
7
|
+
*
|
|
8
|
+
* @param options - Root source, compiled requirements, and optional server-resolved hierarchy.
|
|
9
|
+
* @returns Normalized team export, or `null` when no TEAM tools are present.
|
|
10
|
+
*
|
|
11
|
+
* @private shared between transpilers
|
|
12
|
+
*/
|
|
13
|
+
export declare function createTranspiledTeamExportForContext(options: {
|
|
14
|
+
readonly agentName: string;
|
|
15
|
+
readonly agentSource: string_book;
|
|
16
|
+
readonly modelRequirements: AgentModelRequirements;
|
|
17
|
+
readonly transpiledTeam?: TranspiledTeamExport;
|
|
18
|
+
}): TranspiledTeamExport | null;
|
|
19
|
+
/**
|
|
20
|
+
* Extracts serializable TEAM teammate metadata from model requirements.
|
|
21
|
+
*
|
|
22
|
+
* @param modelRequirements - Compiled agent requirements with TEAM metadata.
|
|
23
|
+
* @returns Teammates safe to embed in transpiled code.
|
|
24
|
+
*
|
|
25
|
+
* @private shared between transpilers
|
|
26
|
+
*/
|
|
27
|
+
export declare function extractTranspiledTeamTeammates(modelRequirements: AgentModelRequirements): ReadonlyArray<TranspiledTeamTeammate>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates the serializable model-requirement subset embedded for each built-in teammate.
|
|
30
|
+
*
|
|
31
|
+
* @param modelRequirements - Full compiled model requirements.
|
|
32
|
+
* @returns Minimal model requirements needed by transpiled TEAM helpers.
|
|
33
|
+
*
|
|
34
|
+
* @private shared between transpilers
|
|
35
|
+
*/
|
|
36
|
+
export declare function createTranspiledTeamAgentModelRequirements(modelRequirements: AgentModelRequirements): TranspiledTeamAgentModelRequirements;
|
|
37
|
+
/**
|
|
38
|
+
* Replaces TEAM tool closures with self-contained transpiled TEAM tool functions.
|
|
39
|
+
*
|
|
40
|
+
* @param usedToolFunctions - Tool implementation sources collected from commitment definitions.
|
|
41
|
+
* @param transpiledTeam - Built-in team hierarchy prepared for the generated harness.
|
|
42
|
+
* @returns Tool implementations with TEAM tools pointing to the reusable runtime helper.
|
|
43
|
+
*
|
|
44
|
+
* @private shared between transpilers
|
|
45
|
+
*/
|
|
46
|
+
export declare function createTranspiledTeamAwareToolFunctions(usedToolFunctions: Record<string_javascript_name, string>, transpiledTeam: TranspiledTeamExport | null): Record<string_javascript_name, string>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates the reusable JavaScript TEAM runtime block embedded into generated harnesses.
|
|
49
|
+
*
|
|
50
|
+
* @param transpiledTeam - Built-in team hierarchy prepared for the generated harness.
|
|
51
|
+
* @returns JavaScript source, or an empty string when there is no TEAM hierarchy.
|
|
52
|
+
*
|
|
53
|
+
* @private shared between transpilers
|
|
54
|
+
*/
|
|
55
|
+
export declare function createTranspiledTeamRuntimeSection(transpiledTeam: TranspiledTeamExport | null): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a JSON-schema fragment into a Zod expression for generated transpiled code.
|
|
3
|
+
*
|
|
4
|
+
* The Claude Code and AgentOS transpilers both need the same JSON-schema-to-Zod conversion,
|
|
5
|
+
* but Claude Code needs raw Zod shapes while AgentOS needs wrapped `z.object(...)` schemas.
|
|
6
|
+
*
|
|
7
|
+
* @param schema - JSON-schema fragment used for one tool input definition.
|
|
8
|
+
* @returns Zod expression source ready to embed in generated JavaScript.
|
|
9
|
+
*
|
|
10
|
+
* @private shared between Claude and AgentOS transpilers
|
|
11
|
+
*/
|
|
12
|
+
export declare function createZodSchemaSource(schema: JsonSchemaLike): string;
|
|
13
|
+
/**
|
|
14
|
+
* Formats a JSON-schema fragment into a raw Zod shape object literal.
|
|
15
|
+
*
|
|
16
|
+
* Claude Code SDK custom tools expect a Zod raw shape instead of a wrapped `z.object(...)`
|
|
17
|
+
* expression, so this helper reuses the same conversion logic but returns only the object literal
|
|
18
|
+
* body.
|
|
19
|
+
*
|
|
20
|
+
* @param schema - JSON-schema fragment used for one tool input definition.
|
|
21
|
+
* @returns Raw Zod shape source ready to embed in `tool(...)`.
|
|
22
|
+
*
|
|
23
|
+
* @private shared between Claude and AgentOS transpilers
|
|
24
|
+
*/
|
|
25
|
+
export declare function createZodShapeSource(schema: JsonSchemaLike): string;
|
|
26
|
+
/**
|
|
27
|
+
* Minimal JSON-schema shape used by the transpiled Claude and AgentOS harness generators.
|
|
28
|
+
*
|
|
29
|
+
* @private shared between Claude and AgentOS transpilers
|
|
30
|
+
*/
|
|
31
|
+
type JsonSchemaLike = {
|
|
32
|
+
readonly type?: string;
|
|
33
|
+
readonly description?: string;
|
|
34
|
+
readonly properties?: Record<string, JsonSchemaLike>;
|
|
35
|
+
readonly required?: ReadonlyArray<string>;
|
|
36
|
+
readonly items?: JsonSchemaLike;
|
|
37
|
+
readonly enum?: ReadonlyArray<string | number | boolean | null>;
|
|
38
|
+
readonly additionalProperties?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { string_javascript_name } from '../../_packages/types.index';
|
|
2
|
+
/**
|
|
3
|
+
* Formats used tool functions into object-literal method syntax for generated SDK harnesses.
|
|
4
|
+
*
|
|
5
|
+
* Tool implementations are authored in several shapes across the repository:
|
|
6
|
+
* - object-literal methods
|
|
7
|
+
* - function declarations
|
|
8
|
+
* - arrow functions
|
|
9
|
+
*
|
|
10
|
+
* This helper normalizes all supported shapes into valid object members so the
|
|
11
|
+
* transpiled `tools` block stays syntactically correct.
|
|
12
|
+
*
|
|
13
|
+
* @param usedToolFunctions - Tool function sources indexed by tool name.
|
|
14
|
+
* @returns Object-member definitions ready to embed inside a transpiled `const tools = { ... }` block.
|
|
15
|
+
*
|
|
16
|
+
* @private shared between SDK transpilers
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatUsedToolFunctions(usedToolFunctions: Record<string_javascript_name, string>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
3
|
+
import type { BookTranspilerOptions } from './BookTranspilerOptions';
|
|
4
|
+
import type { TranspiledTeamExport } from './TranspiledTeamExport';
|
|
5
|
+
/**
|
|
6
|
+
* Parsed data shared by SDK-oriented transpilers.
|
|
7
|
+
*
|
|
8
|
+
* @private shared between SDK transpilers
|
|
9
|
+
*/
|
|
10
|
+
export type PreparedSdkTranspilerContext = {
|
|
11
|
+
/**
|
|
12
|
+
* Parsed agent name used in the generated CLI harness.
|
|
13
|
+
*/
|
|
14
|
+
readonly agentName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Fully compiled model requirements generated from the Book source.
|
|
17
|
+
*/
|
|
18
|
+
readonly modelRequirements: AgentModelRequirements;
|
|
19
|
+
/**
|
|
20
|
+
* Inline knowledge snippets embedded directly into the generated harness.
|
|
21
|
+
*/
|
|
22
|
+
readonly directKnowledge: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Remote or file-based knowledge sources loaded by the generated harness at runtime.
|
|
25
|
+
*/
|
|
26
|
+
readonly knowledgeSources: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Tool implementations extracted from commitment definitions and embedded into the harness.
|
|
29
|
+
*/
|
|
30
|
+
readonly usedToolFunctions: Record<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the transpiler should emit the retrieval-augmented scaffold.
|
|
33
|
+
*/
|
|
34
|
+
readonly isKnowledgeHandledWithRetrieval: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Built-in TEAM hierarchy embedded into the generated harness.
|
|
37
|
+
*/
|
|
38
|
+
readonly transpiledTeam: TranspiledTeamExport | null;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Prepares the common parsed context reused by JavaScript SDK transpilers.
|
|
42
|
+
*
|
|
43
|
+
* @param book - Agent Book source being transpiled.
|
|
44
|
+
* @param options - Optional transpiler hooks such as reference resolvers and built-in TEAM data.
|
|
45
|
+
* @returns Shared transpiler context derived from the Book.
|
|
46
|
+
* @private shared between SDK transpilers
|
|
47
|
+
*/
|
|
48
|
+
export declare function prepareSdkTranspilerContext(book: string_book, options?: BookTranspilerOptions): Promise<PreparedSdkTranspilerContext>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a Claude model name compatible with generated Claude-based harnesses.
|
|
3
|
+
*
|
|
4
|
+
* The Promptbook Book can still specify a non-Claude model, but Claude-based transpilers
|
|
5
|
+
* need a Claude-compatible default so the generated harness remains runnable.
|
|
6
|
+
*
|
|
7
|
+
* @param modelName - Model requested by the Book source.
|
|
8
|
+
* @returns Claude-compatible model name for the generated export.
|
|
9
|
+
*
|
|
10
|
+
* @private shared between Claude transpilers
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveClaudeModelName(modelName?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
3
|
+
import type { string_script } from '../../types/typeAliases';
|
|
4
|
+
import type { BookTranspilerOptions } from '../_common/BookTranspilerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Transpiler to JavaScript code using AgentOS.
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/core`
|
|
9
|
+
*/
|
|
10
|
+
export declare const AgentOsTranspiler: {
|
|
11
|
+
readonly name: "agent-os";
|
|
12
|
+
readonly title: "AgentOS";
|
|
13
|
+
readonly packageName: "@promptbook/core";
|
|
14
|
+
readonly className: "AgentOsTranspiler";
|
|
15
|
+
readonly transpileBook: (book: string_book, tools: ExecutionTools, options?: BookTranspilerOptions) => Promise<string_script>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/misc/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of transpiler.
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools.
|
|
6
|
+
*
|
|
7
|
+
* TODO: [🧠] Which package should export this?
|
|
8
|
+
*
|
|
9
|
+
* @public exported from `@promptbook/wizard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _AgentOsTranspilerRegistration: Registration;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
3
|
+
import type { string_script } from '../../types/typeAliases';
|
|
4
|
+
import type { BookTranspilerOptions } from '../_common/BookTranspilerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Transpiler to JavaScript code using Anthropic Claude Agent SDK managed sessions.
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/core`
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnthropicClaudeManagedTranspiler: {
|
|
11
|
+
readonly name: "anthropic-claude-managed";
|
|
12
|
+
readonly title: "Anthropic Claude Managed";
|
|
13
|
+
readonly packageName: "@promptbook/core";
|
|
14
|
+
readonly className: "AnthropicClaudeManagedTranspiler";
|
|
15
|
+
readonly transpileBook: (book: string_book, tools: ExecutionTools, options?: BookTranspilerOptions) => Promise<string_script>;
|
|
16
|
+
};
|
package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/misc/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of transpiler.
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools.
|
|
6
|
+
*
|
|
7
|
+
* TODO: [🧠] Which package should export this?
|
|
8
|
+
*
|
|
9
|
+
* @public exported from `@promptbook/wizard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _AnthropicClaudeManagedTranspilerRegistration: Registration;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
3
|
+
import type { string_script } from '../../types/typeAliases';
|
|
4
|
+
import type { BookTranspilerOptions } from '../_common/BookTranspilerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Transpiler to JavaScript code using Anthropic's Claude SDK.
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/core`
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnthropicClaudeSdkTranspiler: {
|
|
11
|
+
readonly name: "anthropic-claude-sdk";
|
|
12
|
+
readonly title: "Anthropic Claude SDK";
|
|
13
|
+
readonly packageName: "@promptbook/core";
|
|
14
|
+
readonly className: "AnthropicClaudeSdkTranspiler";
|
|
15
|
+
readonly transpileBook: (book: string_book, tools: ExecutionTools, options?: BookTranspilerOptions) => Promise<string_script>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/misc/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of transpiler
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools
|
|
6
|
+
*
|
|
7
|
+
* TODO: [🧠] Which package should export this?
|
|
8
|
+
*
|
|
9
|
+
* @public exported from `@promptbook/wizard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _AnthropicClaudeSdkTranspilerRegistration: Registration;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
3
|
+
import type { string_script } from '../../types/typeAliases';
|
|
4
|
+
import type { BookTranspilerOptions } from '../_common/BookTranspilerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Transpiler to a JavaScript launcher that runs the exported agent inside an E2B sandbox.
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/core`
|
|
9
|
+
*/
|
|
10
|
+
export declare const E2BTranspiler: {
|
|
11
|
+
readonly name: "e2b";
|
|
12
|
+
readonly title: "E2B";
|
|
13
|
+
readonly packageName: "@promptbook/core";
|
|
14
|
+
readonly className: "E2BTranspiler";
|
|
15
|
+
readonly transpileBook: (book: string_book, tools: ExecutionTools, options?: BookTranspilerOptions) => Promise<string_script>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/misc/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of transpiler.
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools.
|
|
6
|
+
*
|
|
7
|
+
* TODO: [🧠] Which package should export this?
|
|
8
|
+
*
|
|
9
|
+
* @public exported from `@promptbook/wizard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _E2BTranspilerRegistration: Registration;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
3
|
+
import type { string_script } from '../../types/typeAliases';
|
|
4
|
+
import type { BookTranspilerOptions } from '../_common/BookTranspilerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Transpiler to JavaScript code using the OpenAI Agents SDK.
|
|
7
|
+
*
|
|
8
|
+
* @public exported from `@promptbook/core`
|
|
9
|
+
*/
|
|
10
|
+
export declare const OpenAiAgentsTranspiler: {
|
|
11
|
+
readonly name: "openai-agents";
|
|
12
|
+
readonly title: "OpenAI Agents SDK";
|
|
13
|
+
readonly packageName: "@promptbook/core";
|
|
14
|
+
readonly className: "OpenAiAgentsTranspiler";
|
|
15
|
+
readonly transpileBook: (book: string_book, tools: ExecutionTools, options?: BookTranspilerOptions) => Promise<string_script>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/misc/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of transpiler.
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools.
|
|
6
|
+
*
|
|
7
|
+
* TODO: [🧠] Which package should export this?
|
|
8
|
+
*
|
|
9
|
+
* @public exported from `@promptbook/wizard`
|
|
10
|
+
* @public exported from `@promptbook/cli`
|
|
11
|
+
*/
|
|
12
|
+
export declare const _OpenAiAgentsTranspilerRegistration: Registration;
|