@promptbook/node 0.112.0-54 → 0.112.0-57

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 (179) hide show
  1. package/esm/index.es.js +4651 -1293
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/cli.index.d.ts +10 -0
  4. package/esm/src/_packages/core.index.d.ts +12 -0
  5. package/esm/src/_packages/types.index.d.ts +8 -0
  6. package/esm/src/_packages/wizard.index.d.ts +10 -0
  7. package/esm/src/avatars/index.d.ts +1 -1
  8. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  9. package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
  10. package/esm/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  11. package/esm/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  12. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  13. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  14. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  15. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  16. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  17. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  18. package/esm/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  19. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  20. package/esm/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  21. package/esm/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  22. package/esm/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  23. package/esm/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  24. package/esm/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  25. package/esm/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  26. package/esm/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  27. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  28. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
  29. package/esm/src/commitments/ACTION/ACTION.d.ts +8 -2
  30. package/esm/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  31. package/esm/src/commitments/DELETE/DELETE.d.ts +7 -3
  32. package/esm/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  33. package/esm/src/commitments/FORMAT/FORMAT.d.ts +10 -4
  34. package/esm/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  35. package/esm/src/commitments/GOAL/GOAL.d.ts +4 -0
  36. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  37. package/esm/src/commitments/META/META.d.ts +2 -0
  38. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  39. package/esm/src/commitments/MODEL/MODEL.d.ts +4 -0
  40. package/esm/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  41. package/esm/src/commitments/RULE/RULE.d.ts +4 -0
  42. package/esm/src/commitments/TEAM/TEAM.d.ts +4 -0
  43. package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
  44. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  45. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
  46. package/esm/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  47. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  48. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  49. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  50. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  51. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  52. package/esm/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  53. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  54. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
  55. package/esm/src/commitments/index.d.ts +2 -2
  56. package/esm/src/commitments/index.test.d.ts +1 -0
  57. package/esm/src/llm-providers/agent/Agent.d.ts +2 -0
  58. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
  59. package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
  60. package/esm/src/playground/playground.d.ts +1 -0
  61. package/esm/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  62. package/esm/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  63. package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  64. package/esm/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  65. package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  66. package/esm/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  67. package/esm/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  68. package/esm/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  69. package/esm/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  70. package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  71. package/esm/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  72. package/esm/src/transpilers/agent-os/register.d.ts +12 -0
  73. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  74. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  75. package/esm/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  76. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  77. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  78. package/esm/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  79. package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  80. package/esm/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  81. package/esm/src/transpilers/e2b/register.d.ts +12 -0
  82. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  83. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  84. package/esm/src/transpilers/openai-agents/register.d.ts +12 -0
  85. package/esm/src/types/LlmToolDefinition.d.ts +17 -7
  86. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
  87. package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  88. package/esm/src/version.d.ts +1 -1
  89. package/package.json +3 -3
  90. package/umd/index.umd.js +4651 -1293
  91. package/umd/index.umd.js.map +1 -1
  92. package/umd/src/_packages/cli.index.d.ts +10 -0
  93. package/umd/src/_packages/core.index.d.ts +12 -0
  94. package/umd/src/_packages/types.index.d.ts +8 -0
  95. package/umd/src/_packages/wizard.index.d.ts +10 -0
  96. package/umd/src/avatars/index.d.ts +1 -1
  97. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  98. package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
  99. package/umd/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  100. package/umd/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  101. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  102. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  103. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  104. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  105. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  106. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  107. package/umd/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  108. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  109. package/umd/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  110. package/umd/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  111. package/umd/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  112. package/umd/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  113. package/umd/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  114. package/umd/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  115. package/umd/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  116. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  117. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
  118. package/umd/src/commitments/ACTION/ACTION.d.ts +8 -2
  119. package/umd/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  120. package/umd/src/commitments/DELETE/DELETE.d.ts +7 -3
  121. package/umd/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  122. package/umd/src/commitments/FORMAT/FORMAT.d.ts +10 -4
  123. package/umd/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  124. package/umd/src/commitments/GOAL/GOAL.d.ts +4 -0
  125. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  126. package/umd/src/commitments/META/META.d.ts +2 -0
  127. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  128. package/umd/src/commitments/MODEL/MODEL.d.ts +4 -0
  129. package/umd/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  130. package/umd/src/commitments/RULE/RULE.d.ts +4 -0
  131. package/umd/src/commitments/TEAM/TEAM.d.ts +4 -0
  132. package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
  133. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  134. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
  135. package/umd/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  136. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  137. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  138. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  139. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  140. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  141. package/umd/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  142. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  143. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
  144. package/umd/src/commitments/index.d.ts +2 -2
  145. package/umd/src/commitments/index.test.d.ts +1 -0
  146. package/umd/src/llm-providers/agent/Agent.d.ts +2 -0
  147. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
  148. package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
  149. package/umd/src/playground/playground.d.ts +1 -0
  150. package/umd/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  151. package/umd/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  152. package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  153. package/umd/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  154. package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  155. package/umd/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  156. package/umd/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  157. package/umd/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  158. package/umd/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  159. package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  160. package/umd/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  161. package/umd/src/transpilers/agent-os/register.d.ts +12 -0
  162. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  163. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  164. package/umd/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  165. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  166. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  167. package/umd/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  168. package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  169. package/umd/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  170. package/umd/src/transpilers/e2b/register.d.ts +12 -0
  171. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  172. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  173. package/umd/src/transpilers/openai-agents/register.d.ts +12 -0
  174. package/umd/src/types/LlmToolDefinition.d.ts +17 -7
  175. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
  176. package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  177. package/umd/src/version.d.ts +1 -1
  178. package/esm/src/commitments/USE/USE.d.ts +0 -51
  179. package/umd/src/commitments/USE/USE.d.ts +0 -51
@@ -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
+ };
@@ -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,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,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;
@@ -1,4 +1,18 @@
1
1
  import type { string_markdown_text, string_name } from './typeAliases';
2
+ /**
3
+ * Minimal recursive JSON Schema entry used by tool definitions.
4
+ *
5
+ * Note: [🚉] This is fully serializable as JSON
6
+ */
7
+ type LlmToolJsonSchema = {
8
+ type?: string;
9
+ description?: string;
10
+ properties?: Record<string, LlmToolJsonSchema>;
11
+ required?: string[];
12
+ items?: LlmToolJsonSchema;
13
+ enum?: Array<string | number | boolean | null>;
14
+ additionalProperties?: boolean;
15
+ };
2
16
  /**
3
17
  * Definition of a tool that can be used by the model
4
18
  *
@@ -16,13 +30,9 @@ export type LlmToolDefinition = {
16
30
  /**
17
31
  * Parameters of the tool in JSON Schema format
18
32
  */
19
- readonly parameters: {
33
+ readonly parameters: LlmToolJsonSchema & {
20
34
  readonly type: 'object';
21
- readonly properties: Record<string, {
22
- type: string;
23
- description?: string;
24
- }>;
25
- readonly required?: string[];
26
- readonly additionalProperties?: boolean;
35
+ readonly properties: Record<string, LlmToolJsonSchema>;
27
36
  };
28
37
  };
38
+ export {};
@@ -21,6 +21,10 @@ export type ResolveAgentAvatarOptions = {
21
21
  * Optional preferred avatar visual id coming from remote profile payloads.
22
22
  */
23
23
  readonly avatarVisualId?: AvatarVisualId;
24
+ /**
25
+ * Optional server-wide fallback visual id forwarded by federated server payloads.
26
+ */
27
+ readonly defaultAgentAvatarVisualId?: AvatarVisualId;
24
28
  };
25
29
  /**
26
30
  * Optional base URL used to resolve relative meta images and placeholders.
@@ -52,6 +56,17 @@ export type ResolvedAgentAvatar = {
52
56
  readonly avatarDefinition: AvatarDefinition;
53
57
  readonly visualId: AvatarVisualId;
54
58
  };
59
+ /**
60
+ * Resolves the avatar visual preferred by an agent, then falls back to a federated server default
61
+ * and finally to the caller/server default.
62
+ *
63
+ * @param agent Agent metadata and optional remote-profile visual id.
64
+ * @param defaultAvatarVisualId Optional metadata-resolved server default.
65
+ * @returns Supported avatar visual id.
66
+ *
67
+ * @private shared avatar contract
68
+ */
69
+ export declare function resolveAgentAvatarVisualId(agent: ResolveAgentAvatarOptions['agent'], defaultAvatarVisualId?: AvatarVisualId): AvatarVisualId;
55
70
  /**
56
71
  * Resolve the fallback avatar URL for an agent.
57
72
  *
@@ -1,6 +1,6 @@
1
1
  import type { string_markdown } from '../../types/typeAliases';
2
2
  /**
3
- * Change dash-like characters to regular dashes `—` -> `-` and remove soft hyphens
3
+ * Change dash-like characters to regular dashes `-` -> `-` and remove soft hyphens
4
4
  *
5
5
  * Note: [🔂] This function is idempotent.
6
6
  * Tip: If you want to do the full cleanup, look for `humanizeAiText` exported `@promptbook/markdown-utils`
@@ -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-53`).
18
+ * It follows semantic versioning (e.g., `0.112.0-56`).
19
19
  *
20
20
  * @generated
21
21
  */
@@ -1,51 +0,0 @@
1
- import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
- import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
- /**
4
- * USE commitment definition
5
- *
6
- * The USE commitment indicates that the agent should utilize specific tools or capabilities
7
- * to access and interact with external systems when necessary.
8
- *
9
- * Supported USE types:
10
- * - USE BROWSER: Enables the agent to use a web browser tool
11
- * - USE SEARCH ENGINE (future): Enables search engine access
12
- * - USE DEEPSEARCH: Enables deeper research-oriented search access
13
- * - USE FILE SYSTEM (future): Enables file system operations
14
- * - USE MCP (future): Enables MCP server connections
15
- *
16
- * The content following the USE commitment is ignored (similar to NOTE).
17
- *
18
- * Example usage in agent source:
19
- *
20
- * ```book
21
- * USE BROWSER
22
- * USE SEARCH ENGINE
23
- * ```
24
- *
25
- * @private [🪔] Maybe export the commitments through some package
26
- */
27
- export declare class UseCommitmentDefinition extends BaseCommitmentDefinition<`USE${string}`> {
28
- constructor();
29
- /**
30
- * Short one-line description of USE commitments.
31
- */
32
- get description(): string;
33
- /**
34
- * Icon for this commitment.
35
- */
36
- get icon(): string;
37
- /**
38
- * Markdown documentation for USE commitment.
39
- */
40
- get documentation(): string;
41
- applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
42
- /**
43
- * Extracts the tool type from the USE commitment
44
- * This is used by the parsing logic
45
- */
46
- extractToolType(content: string): string | null;
47
- /**
48
- * Checks if this is a known USE type
49
- */
50
- isKnownUseType(useType: string): boolean;
51
- }
@@ -1,51 +0,0 @@
1
- import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
- import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
- /**
4
- * USE commitment definition
5
- *
6
- * The USE commitment indicates that the agent should utilize specific tools or capabilities
7
- * to access and interact with external systems when necessary.
8
- *
9
- * Supported USE types:
10
- * - USE BROWSER: Enables the agent to use a web browser tool
11
- * - USE SEARCH ENGINE (future): Enables search engine access
12
- * - USE DEEPSEARCH: Enables deeper research-oriented search access
13
- * - USE FILE SYSTEM (future): Enables file system operations
14
- * - USE MCP (future): Enables MCP server connections
15
- *
16
- * The content following the USE commitment is ignored (similar to NOTE).
17
- *
18
- * Example usage in agent source:
19
- *
20
- * ```book
21
- * USE BROWSER
22
- * USE SEARCH ENGINE
23
- * ```
24
- *
25
- * @private [🪔] Maybe export the commitments through some package
26
- */
27
- export declare class UseCommitmentDefinition extends BaseCommitmentDefinition<`USE${string}`> {
28
- constructor();
29
- /**
30
- * Short one-line description of USE commitments.
31
- */
32
- get description(): string;
33
- /**
34
- * Icon for this commitment.
35
- */
36
- get icon(): string;
37
- /**
38
- * Markdown documentation for USE commitment.
39
- */
40
- get documentation(): string;
41
- applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
42
- /**
43
- * Extracts the tool type from the USE commitment
44
- * This is used by the parsing logic
45
- */
46
- extractToolType(content: string): string | null;
47
- /**
48
- * Checks if this is a known USE type
49
- */
50
- isKnownUseType(useType: string): boolean;
51
- }