@promptbook/utils 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.
Files changed (147) hide show
  1. package/esm/index.es.js +1 -1
  2. package/esm/src/_packages/cli.index.d.ts +10 -0
  3. package/esm/src/_packages/core.index.d.ts +12 -0
  4. package/esm/src/_packages/types.index.d.ts +8 -0
  5. package/esm/src/_packages/wizard.index.d.ts +10 -0
  6. package/esm/src/avatars/index.d.ts +1 -1
  7. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  8. package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
  9. package/esm/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  10. package/esm/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  11. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  12. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  13. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
  14. package/esm/src/commitments/ACTION/ACTION.d.ts +8 -2
  15. package/esm/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  16. package/esm/src/commitments/DELETE/DELETE.d.ts +7 -3
  17. package/esm/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  18. package/esm/src/commitments/FORMAT/FORMAT.d.ts +10 -4
  19. package/esm/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  20. package/esm/src/commitments/GOAL/GOAL.d.ts +4 -0
  21. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  22. package/esm/src/commitments/META/META.d.ts +2 -0
  23. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  24. package/esm/src/commitments/MODEL/MODEL.d.ts +4 -0
  25. package/esm/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  26. package/esm/src/commitments/RULE/RULE.d.ts +4 -0
  27. package/esm/src/commitments/TEAM/TEAM.d.ts +4 -0
  28. package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
  29. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  30. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
  31. package/esm/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  32. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  33. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  34. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  35. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  36. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  37. package/esm/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  38. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  39. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
  40. package/esm/src/commitments/index.d.ts +2 -2
  41. package/esm/src/commitments/index.test.d.ts +1 -0
  42. package/esm/src/llm-providers/agent/Agent.d.ts +2 -0
  43. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
  44. package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
  45. package/esm/src/playground/playground.d.ts +1 -0
  46. package/esm/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  47. package/esm/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  48. package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  49. package/esm/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  50. package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  51. package/esm/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  52. package/esm/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  53. package/esm/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  54. package/esm/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  55. package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  56. package/esm/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  57. package/esm/src/transpilers/agent-os/register.d.ts +12 -0
  58. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  59. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  60. package/esm/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  61. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  62. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  63. package/esm/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  64. package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  65. package/esm/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  66. package/esm/src/transpilers/e2b/register.d.ts +12 -0
  67. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  68. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  69. package/esm/src/transpilers/openai-agents/register.d.ts +12 -0
  70. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
  71. package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  72. package/esm/src/version.d.ts +1 -1
  73. package/package.json +1 -1
  74. package/umd/index.umd.js +1 -1
  75. package/umd/src/_packages/cli.index.d.ts +10 -0
  76. package/umd/src/_packages/core.index.d.ts +12 -0
  77. package/umd/src/_packages/types.index.d.ts +8 -0
  78. package/umd/src/_packages/wizard.index.d.ts +10 -0
  79. package/umd/src/avatars/index.d.ts +1 -1
  80. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  81. package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +12 -0
  82. package/umd/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  83. package/umd/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  84. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  85. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  86. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +9 -8
  87. package/umd/src/commitments/ACTION/ACTION.d.ts +8 -2
  88. package/umd/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  89. package/umd/src/commitments/DELETE/DELETE.d.ts +7 -3
  90. package/umd/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  91. package/umd/src/commitments/FORMAT/FORMAT.d.ts +10 -4
  92. package/umd/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  93. package/umd/src/commitments/GOAL/GOAL.d.ts +4 -0
  94. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  95. package/umd/src/commitments/META/META.d.ts +2 -0
  96. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  97. package/umd/src/commitments/MODEL/MODEL.d.ts +4 -0
  98. package/umd/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  99. package/umd/src/commitments/RULE/RULE.d.ts +4 -0
  100. package/umd/src/commitments/TEAM/TEAM.d.ts +4 -0
  101. package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -4
  102. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  103. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +21 -1
  104. package/umd/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  105. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  106. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  107. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  108. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  109. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  110. package/umd/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  111. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  112. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +4 -0
  113. package/umd/src/commitments/index.d.ts +2 -2
  114. package/umd/src/commitments/index.test.d.ts +1 -0
  115. package/umd/src/llm-providers/agent/Agent.d.ts +2 -0
  116. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
  117. package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +4 -0
  118. package/umd/src/playground/playground.d.ts +1 -0
  119. package/umd/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  120. package/umd/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  121. package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  122. package/umd/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  123. package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  124. package/umd/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  125. package/umd/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  126. package/umd/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  127. package/umd/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  128. package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  129. package/umd/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  130. package/umd/src/transpilers/agent-os/register.d.ts +12 -0
  131. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  132. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  133. package/umd/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  134. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  135. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  136. package/umd/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  137. package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  138. package/umd/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  139. package/umd/src/transpilers/e2b/register.d.ts +12 -0
  140. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  141. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  142. package/umd/src/transpilers/openai-agents/register.d.ts +12 -0
  143. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +15 -0
  144. package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  145. package/umd/src/version.d.ts +1 -1
  146. package/esm/src/commitments/USE/USE.d.ts +0 -51
  147. package/umd/src/commitments/USE/USE.d.ts +0 -51
package/esm/index.es.js CHANGED
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-54';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-56';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -30,7 +30,12 @@ import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
30
30
  import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
31
31
  import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
32
32
  import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
33
+ import { _AgentOsTranspilerRegistration } from '../transpilers/agent-os/register';
34
+ import { _AnthropicClaudeManagedTranspilerRegistration } from '../transpilers/anthropic-claude-managed/register';
35
+ import { _AnthropicClaudeSdkTranspilerRegistration } from '../transpilers/anthropic-claude-sdk/register';
36
+ import { _E2BTranspilerRegistration } from '../transpilers/e2b/register';
33
37
  import { _FormattedBookInMarkdownTranspilerRegistration } from '../transpilers/formatted-book-in-markdown/register';
38
+ import { _OpenAiAgentsTranspilerRegistration } from '../transpilers/openai-agents/register';
34
39
  import { _OpenAiSdkTranspilerRegistration } from '../transpilers/openai-sdk/register';
35
40
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
36
41
  export { _CLI };
@@ -64,5 +69,10 @@ export { _PdfScraperRegistration };
64
69
  export { _PdfScraperMetadataRegistration };
65
70
  export { _WebsiteScraperRegistration };
66
71
  export { _WebsiteScraperMetadataRegistration };
72
+ export { _AgentOsTranspilerRegistration };
73
+ export { _AnthropicClaudeManagedTranspilerRegistration };
74
+ export { _AnthropicClaudeSdkTranspilerRegistration };
75
+ export { _E2BTranspilerRegistration };
67
76
  export { _FormattedBookInMarkdownTranspilerRegistration };
77
+ export { _OpenAiAgentsTranspilerRegistration };
68
78
  export { _OpenAiSdkTranspilerRegistration };
@@ -18,6 +18,7 @@ import { createPipelineCollectionFromPromise } from '../collection/pipeline-coll
18
18
  import { createPipelineCollectionFromUrl } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromUrl';
19
19
  import { createPipelineSubcollection } from '../collection/pipeline-collection/constructors/createPipelineSubcollection';
20
20
  import { pipelineCollectionToJson } from '../collection/pipeline-collection/pipelineCollectionToJson';
21
+ import type { CommitmentDefinition } from '../commitments/_base/CommitmentDefinition';
21
22
  import { createEmptyAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
22
23
  import { createBasicAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
23
24
  import { NotYetImplementedCommitmentDefinition } from '../commitments/_base/NotYetImplementedCommitmentDefinition';
@@ -196,7 +197,12 @@ import { BlackholeStorage } from '../storage/blackhole/BlackholeStorage';
196
197
  import { MemoryStorage } from '../storage/memory/MemoryStorage';
197
198
  import { PrefixStorage } from '../storage/utils/PrefixStorage';
198
199
  import { $bookTranspilersRegister } from '../transpilers/_common/register/$bookTranspilersRegister';
200
+ import { AgentOsTranspiler } from '../transpilers/agent-os/AgentOsTranspiler';
201
+ import { AnthropicClaudeManagedTranspiler } from '../transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler';
202
+ import { AnthropicClaudeSdkTranspiler } from '../transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler';
203
+ import { E2BTranspiler } from '../transpilers/e2b/E2BTranspiler';
199
204
  import { FormattedBookInMarkdownTranspiler } from '../transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler';
205
+ import { OpenAiAgentsTranspiler } from '../transpilers/openai-agents/OpenAiAgentsTranspiler';
200
206
  import { OpenAiSdkTranspiler } from '../transpilers/openai-sdk/OpenAiSdkTranspiler';
201
207
  import { MODEL_VARIANTS } from '../types/ModelVariant';
202
208
  import { NonTaskSectionTypes } from '../types/SectionType';
@@ -236,6 +242,7 @@ export { createPipelineCollectionFromPromise };
236
242
  export { createPipelineCollectionFromUrl };
237
243
  export { createPipelineSubcollection };
238
244
  export { pipelineCollectionToJson };
245
+ export type { CommitmentDefinition };
239
246
  export { createEmptyAgentModelRequirements };
240
247
  export { createBasicAgentModelRequirements };
241
248
  export { NotYetImplementedCommitmentDefinition };
@@ -414,7 +421,12 @@ export { BlackholeStorage };
414
421
  export { MemoryStorage };
415
422
  export { PrefixStorage };
416
423
  export { $bookTranspilersRegister };
424
+ export { AgentOsTranspiler };
425
+ export { AnthropicClaudeManagedTranspiler };
426
+ export { AnthropicClaudeSdkTranspiler };
427
+ export { E2BTranspiler };
417
428
  export { FormattedBookInMarkdownTranspiler };
429
+ export { OpenAiAgentsTranspiler };
418
430
  export { OpenAiSdkTranspiler };
419
431
  export { MODEL_VARIANTS };
420
432
  export { NonTaskSectionTypes };
@@ -222,6 +222,10 @@ import type { FileCacheStorageOptions } from '../storage/file-cache-storage/File
222
222
  import type { IndexedDbStorageOptions } from '../storage/local-storage/utils/IndexedDbStorageOptions';
223
223
  import type { BookTranspiler } from '../transpilers/_common/BookTranspiler';
224
224
  import type { BookTranspilerOptions } from '../transpilers/_common/BookTranspilerOptions';
225
+ import type { TranspiledTeamAgentModelRequirements } from '../transpilers/_common/TranspiledTeamExport';
226
+ import type { TranspiledTeamTeammate } from '../transpilers/_common/TranspiledTeamExport';
227
+ import type { TranspiledTeamAgent } from '../transpilers/_common/TranspiledTeamExport';
228
+ import type { TranspiledTeamExport } from '../transpilers/_common/TranspiledTeamExport';
225
229
  import type { IntermediateFilesStrategy } from '../types/IntermediateFilesStrategy';
226
230
  import type { LlmCall } from '../types/LlmCall';
227
231
  import type { LlmToolDefinition } from '../types/LlmToolDefinition';
@@ -651,6 +655,10 @@ export type { FileCacheStorageOptions };
651
655
  export type { IndexedDbStorageOptions };
652
656
  export type { BookTranspiler };
653
657
  export type { BookTranspilerOptions };
658
+ export type { TranspiledTeamAgentModelRequirements };
659
+ export type { TranspiledTeamTeammate };
660
+ export type { TranspiledTeamAgent };
661
+ export type { TranspiledTeamExport };
654
662
  export type { IntermediateFilesStrategy };
655
663
  export type { LlmCall };
656
664
  export type { LlmToolDefinition };
@@ -29,7 +29,12 @@ import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
29
29
  import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
30
30
  import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
31
31
  import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
32
+ import { _AgentOsTranspilerRegistration } from '../transpilers/agent-os/register';
33
+ import { _AnthropicClaudeManagedTranspilerRegistration } from '../transpilers/anthropic-claude-managed/register';
34
+ import { _AnthropicClaudeSdkTranspilerRegistration } from '../transpilers/anthropic-claude-sdk/register';
35
+ import { _E2BTranspilerRegistration } from '../transpilers/e2b/register';
32
36
  import { _FormattedBookInMarkdownTranspilerRegistration } from '../transpilers/formatted-book-in-markdown/register';
37
+ import { _OpenAiAgentsTranspilerRegistration } from '../transpilers/openai-agents/register';
33
38
  import { _OpenAiSdkTranspilerRegistration } from '../transpilers/openai-sdk/register';
34
39
  import { wizard } from '../wizard/wizard';
35
40
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
@@ -63,6 +68,11 @@ export { _PdfScraperRegistration };
63
68
  export { _PdfScraperMetadataRegistration };
64
69
  export { _WebsiteScraperRegistration };
65
70
  export { _WebsiteScraperMetadataRegistration };
71
+ export { _AgentOsTranspilerRegistration };
72
+ export { _AnthropicClaudeManagedTranspilerRegistration };
73
+ export { _AnthropicClaudeSdkTranspilerRegistration };
74
+ export { _E2BTranspilerRegistration };
66
75
  export { _FormattedBookInMarkdownTranspilerRegistration };
76
+ export { _OpenAiAgentsTranspilerRegistration };
67
77
  export { _OpenAiSdkTranspilerRegistration };
68
78
  export { wizard };
@@ -2,6 +2,6 @@ export { Avatar } from './Avatar';
2
2
  export { AvatarOrImage } from './AvatarOrImage';
3
3
  export { renderAvatarVisual } from './renderAvatarVisual';
4
4
  export { createAvatarDefinitionFromAgentBasicInformation } from './avatarRenderingUtils';
5
- export { AVATAR_VISUALS, getAvatarVisualById } from './visuals/avatarVisualRegistry';
5
+ export { AVATAR_VISUALS, getAvatarVisualById, resolveAvatarVisualId } from './visuals/avatarVisualRegistry';
6
6
  export type { AvatarDefinition } from './types/AvatarDefinition';
7
7
  export type { AvatarInteractionState, AvatarPalette, AvatarPointerType, AvatarProps, AvatarVisual, AvatarVisualDefinition, AvatarVisualId, AvatarVisualRenderContext, RenderAvatarVisualOptions, } from './types/AvatarVisualDefinition';
@@ -6,7 +6,7 @@ import type { AvatarDefinition } from './AvatarDefinition';
6
6
  *
7
7
  * @private shared contract for the avatar rendering system
8
8
  */
9
- export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'ascii-octopus' | 'minecraft' | 'fractal';
9
+ export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'ascii-octopus' | 'minecraft' | 'fractal' | 'orb';
10
10
  /**
11
11
  * Derived color palette used by avatar visuals.
12
12
  *
@@ -14,3 +14,15 @@ export declare const AVATAR_VISUALS: ReadonlyArray<AvatarVisualDefinition>;
14
14
  * @private shared registry for the avatar rendering system
15
15
  */
16
16
  export declare function getAvatarVisualById(visualId: AvatarVisualId): AvatarVisualDefinition;
17
+ /**
18
+ * Resolves a user-facing avatar visual value to a supported built-in visual id.
19
+ *
20
+ * The lookup is derived from `AVATAR_VISUALS`, so new visuals become selectable by
21
+ * adding them to the registry rather than updating parser-specific option lists.
22
+ *
23
+ * @param value Raw visual id/title, for example `PIXEL_ART`, `pixel art`, or `pixel-art`.
24
+ * @returns Matching visual id or `null` when the value is empty/unknown.
25
+ *
26
+ * @private shared registry for the avatar rendering system
27
+ */
28
+ export declare function resolveAvatarVisualId(value: string | null | undefined): AvatarVisualId | null;
@@ -0,0 +1,48 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Orb family labels used to keep the silhouette circle-based while still varying the rendering style.
4
+ *
5
+ * @private helper of `orbAvatarVisual`
6
+ */
7
+ type OrbFamily = 'pearl' | 'nebula' | 'ember' | 'glacier';
8
+ /**
9
+ * Deterministic orb profile used to keep the orb recognizable while still varying its motion and shape.
10
+ *
11
+ * @private helper of `orbAvatarVisual`
12
+ */
13
+ type OrbMorphologyProfile = {
14
+ family: OrbFamily;
15
+ baseRadiusRatio: number;
16
+ horizontalStretch: number;
17
+ verticalStretch: number;
18
+ wobbleAmplitude: number;
19
+ wobbleFrequencyOne: number;
20
+ wobbleFrequencyTwo: number;
21
+ wobbleFrequencyThree: number;
22
+ ringCount: number;
23
+ sparkleCount: number;
24
+ haloCount: number;
25
+ coreShiftX: number;
26
+ coreShiftY: number;
27
+ highlightAngle: number;
28
+ bandRotation: number;
29
+ pulseSpeed: number;
30
+ haloBlurRatio: number;
31
+ sheenStrength: number;
32
+ };
33
+ /**
34
+ * Built-in Orb avatar visual.
35
+ *
36
+ * @private built-in avatar visual
37
+ */
38
+ export declare const orbAvatarVisual: AvatarVisualDefinition;
39
+ /**
40
+ * Builds the deterministic orb profile from the seeded avatar random factory.
41
+ *
42
+ * @param createRandom Seeded random factory.
43
+ * @returns Stable orb morphology profile.
44
+ *
45
+ * @private helper of `orbAvatarVisual`
46
+ */
47
+ export declare function createOrbMorphologyProfile(createRandom: (salt: string) => () => number): OrbMorphologyProfile;
48
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type { string_agent_hash, string_agent_name, string_agent_permanent_id, string_agent_url, string_color, string_fonts, string_url_image } from '../../types/typeAliases';
2
+ import type { AvatarVisualId } from '../../avatars/types/AvatarVisualDefinition';
2
3
  /**
3
4
  * Unified parameter representation that supports two different notations:
4
5
  * 1. @Parameter - single word parameter starting with @
@@ -87,6 +88,7 @@ export type AgentBasicInformation = {
87
88
  inputPlaceholder?: string;
88
89
  messageSuffix?: string;
89
90
  image?: string_url_image;
91
+ avatar?: AvatarVisualId;
90
92
  domain?: string;
91
93
  font?: string_fonts;
92
94
  color?: string_color;
@@ -1,10 +1,10 @@
1
1
  import type { string_book } from '../../book-2.0/agent-source/string_book';
2
2
  /**
3
- * Monaco diagnostic shape used by deprecated-commitment warnings.
3
+ * Monaco diagnostic shape used by deprecated, unfinished, and low-level commitment warnings.
4
4
  *
5
5
  * @private internal type of `BookEditorMonaco`
6
6
  */
7
- type DeprecatedCommitmentDiagnostic = {
7
+ type CommitmentNoticeDiagnostic = {
8
8
  readonly startLineNumber: number;
9
9
  readonly startColumn: number;
10
10
  readonly endLineNumber: number;
@@ -14,16 +14,17 @@ type DeprecatedCommitmentDiagnostic = {
14
14
  readonly severity: 'warning';
15
15
  };
16
16
  /**
17
- * Creates Book editor diagnostics for deprecated commitment keywords.
17
+ * Creates Book editor diagnostics for deprecated, unfinished, and low-level commitment keywords.
18
18
  *
19
- * The deprecation metadata is UI-only. This helper surfaces it in Monaco so
20
- * legacy commitments remain functional while still guiding authors toward
21
- * preferred replacements.
19
+ * The notice metadata is UI-only. This helper surfaces it in Monaco so legacy,
20
+ * unfinished, and low-level commitments remain functional while still guiding
21
+ * authors toward preferred replacements or cautioning them about low-level
22
+ * usage.
22
23
  *
23
24
  * @param agentSource - Current editor content.
24
- * @returns Warning markers for deprecated commitment keywords.
25
+ * @returns Warning markers for deprecated, unfinished, and low-level commitment keywords.
25
26
  *
26
27
  * @private internal utility of `BookEditorMonaco`
27
28
  */
28
- export declare function createDeprecatedCommitmentDiagnostics(agentSource?: string_book): ReadonlyArray<DeprecatedCommitmentDiagnostic>;
29
+ export declare function createDeprecatedCommitmentDiagnostics(agentSource?: string_book): ReadonlyArray<CommitmentNoticeDiagnostic>;
29
30
  export {};
@@ -3,8 +3,8 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * ACTION commitment definition
5
5
  *
6
- * The ACTION commitment defines specific actions or capabilities that the agent can perform.
7
- * This helps define what the agent is capable of doing and how it should approach tasks.
6
+ * Deprecated legacy commitment for broad capability notes.
7
+ * New books should prefer the appropriate `USE*` commitment instead.
8
8
  *
9
9
  * Example usage in agent source:
10
10
  *
@@ -21,6 +21,12 @@ export declare class ActionCommitmentDefinition extends BaseCommitmentDefinition
21
21
  * Short one-line description of ACTION.
22
22
  */
23
23
  get description(): string;
24
+ /**
25
+ * Optional UI/docs-only deprecation metadata.
26
+ */
27
+ get deprecation(): {
28
+ readonly message: "Use a concrete `USE*` commitment instead.";
29
+ };
24
30
  /**
25
31
  * Icon for this commitment.
26
32
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -3,9 +3,9 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * DELETE commitment definition
5
5
  *
6
- * The DELETE commitment (and its aliases CANCEL, DISCARD, REMOVE) is used to
7
- * remove or disregard certain information or context. This can be useful for
8
- * overriding previous commitments or removing unwanted behaviors.
6
+ * The DELETE commitment (and its aliases CANCEL, DISCARD, REMOVE) is a low-level
7
+ * unfinished commitment used to remove or disregard certain information or context.
8
+ * It is intentionally surfaced with caution because it is not ready for broad use yet.
9
9
  *
10
10
  * Example usage in agent source:
11
11
  *
@@ -24,6 +24,10 @@ export declare class DeleteCommitmentDefinition extends BaseCommitmentDefinition
24
24
  * Short one-line description of DELETE/CANCEL/DISCARD/REMOVE.
25
25
  */
26
26
  get description(): string;
27
+ /**
28
+ * Marks DELETE as unfinished and not ready to use.
29
+ */
30
+ get isUnfinished(): boolean;
27
31
  /**
28
32
  * Icon for this commitment.
29
33
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -3,11 +3,10 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * FORMAT commitment definition
5
5
  *
6
- * The FORMAT commitment defines the specific output structure and formatting
7
- * that the agent should use in its responses. This includes data formats,
8
- * response templates, and structural requirements.
6
+ * Deprecated legacy commitment for output formatting and response structure.
7
+ * New books should prefer `WRITING SAMPLE` and `WRITING RULES`.
9
8
  *
10
- * Example usage in agent source:
9
+ * Legacy example usage in agent source:
11
10
  *
12
11
  * ```book
13
12
  * FORMAT Always respond in JSON format with 'status' and 'data' fields
@@ -22,6 +21,13 @@ export declare class FormatCommitmentDefinition extends BaseCommitmentDefinition
22
21
  * Short one-line description of FORMAT.
23
22
  */
24
23
  get description(): string;
24
+ /**
25
+ * Optional UI/docs-only deprecation metadata.
26
+ */
27
+ get deprecation(): {
28
+ readonly message: "Use `WRITING SAMPLE` and `WRITING RULES` instead.";
29
+ readonly replacedBy: readonly ["WRITING SAMPLE", "WRITING RULES"];
30
+ };
25
31
  /**
26
32
  * Icon for this commitment.
27
33
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -22,6 +22,10 @@ export declare class GoalCommitmentDefinition extends BaseCommitmentDefinition<'
22
22
  * Short one-line description of GOAL.
23
23
  */
24
24
  get description(): string;
25
+ /**
26
+ * Marks GOAL as one of the priority commitments surfaced first in catalogues.
27
+ */
28
+ get isImportant(): boolean;
25
29
  /**
26
30
  * Icon for this commitment.
27
31
  */
@@ -24,6 +24,10 @@ export declare class KnowledgeCommitmentDefinition extends BaseCommitmentDefinit
24
24
  * Short one-line description of KNOWLEDGE.
25
25
  */
26
26
  get description(): string;
27
+ /**
28
+ * Marks KNOWLEDGE as one of the priority commitments surfaced first in catalogues.
29
+ */
30
+ get isImportant(): boolean;
27
31
  /**
28
32
  * Icon for this commitment.
29
33
  */
@@ -4,6 +4,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
4
4
  * META commitment definition
5
5
  *
6
6
  * The META commitment handles all meta-information about the agent such as:
7
+ * - META AVATAR: Sets the agent's built-in default avatar visual
7
8
  * - META IMAGE: Sets the agent's avatar/profile image URL
8
9
  * - META LINK: Provides profile/source links for the person the agent models
9
10
  * - META DOMAIN: Sets the canonical custom domain/host of the agent
@@ -18,6 +19,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
18
19
  * Example usage in agent source:
19
20
  *
20
21
  * ```book
22
+ * META AVATAR pixel-art
21
23
  * META IMAGE https://example.com/avatar.jpg
22
24
  * META LINK https://twitter.com/username
23
25
  * META DOMAIN my-agent.com
@@ -0,0 +1,26 @@
1
+ import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
+ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
+ /**
4
+ * META AVATAR commitment definition
5
+ *
6
+ * The `META AVATAR` commitment sets the built-in default avatar visual used when
7
+ * the agent does not provide an explicit `META IMAGE`.
8
+ *
9
+ * @private [🪔] Maybe export the commitments through some package
10
+ */
11
+ export declare class MetaAvatarCommitmentDefinition extends BaseCommitmentDefinition<'META AVATAR'> {
12
+ constructor();
13
+ /**
14
+ * Short one-line description of META AVATAR.
15
+ */
16
+ get description(): string;
17
+ /**
18
+ * Icon for this commitment.
19
+ */
20
+ get icon(): string;
21
+ /**
22
+ * Markdown documentation for META AVATAR commitment.
23
+ */
24
+ get documentation(): string;
25
+ applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
26
+ }
@@ -31,6 +31,10 @@ export declare class ModelCommitmentDefinition extends BaseCommitmentDefinition<
31
31
  * Short one-line description of MODEL.
32
32
  */
33
33
  get description(): string;
34
+ /**
35
+ * Marks MODEL as a low-level commitment surfaced with caution.
36
+ */
37
+ get isLowLevel(): boolean;
34
38
  /**
35
39
  * Icon for this commitment.
36
40
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -21,6 +21,10 @@ export declare class RuleCommitmentDefinition extends BaseCommitmentDefinition<'
21
21
  * Short one-line description of RULE/RULES.
22
22
  */
23
23
  get description(): string;
24
+ /**
25
+ * Marks RULE as one of the priority commitments surfaced first in catalogues.
26
+ */
27
+ get isImportant(): boolean;
24
28
  /**
25
29
  * Icon for this commitment.
26
30
  */
@@ -22,6 +22,10 @@ export declare class TeamCommitmentDefinition extends BaseCommitmentDefinition<'
22
22
  * Short one-line description of TEAM.
23
23
  */
24
24
  get description(): string;
25
+ /**
26
+ * Marks TEAM as one of the priority commitments surfaced first in catalogues.
27
+ */
28
+ get isImportant(): boolean;
25
29
  /**
26
30
  * Icon for this commitment.
27
31
  */
@@ -3,11 +3,10 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * TEMPLATE commitment definition
5
5
  *
6
- * The TEMPLATE commitment enforces a specific response structure or template
7
- * that the agent must follow when generating responses. This helps ensure
8
- * consistent message formatting across all agent interactions.
6
+ * Deprecated legacy commitment for response templates and output structure.
7
+ * New books should prefer `WRITING SAMPLE` and `WRITING RULES`.
9
8
  *
10
- * Example usage in agent source:
9
+ * Legacy example usage in agent source:
11
10
  *
12
11
  * ```book
13
12
  * TEMPLATE Always structure your response with: 1) Summary, 2) Details, 3) Next steps
@@ -25,6 +24,13 @@ export declare class TemplateCommitmentDefinition extends BaseCommitmentDefiniti
25
24
  * Short one-line description of TEMPLATE.
26
25
  */
27
26
  get description(): string;
27
+ /**
28
+ * Optional UI/docs-only deprecation metadata.
29
+ */
30
+ get deprecation(): {
31
+ readonly message: "Use `WRITING SAMPLE` and `WRITING RULES` instead.";
32
+ readonly replacedBy: readonly ["WRITING SAMPLE", "WRITING RULES"];
33
+ };
28
34
  /**
29
35
  * Icon for this commitment.
30
36
  */
@@ -28,6 +28,18 @@ export declare abstract class BaseCommitmentDefinition<TBookCommitment extends s
28
28
  * It should be a single emoji.
29
29
  */
30
30
  abstract get icon(): string;
31
+ /**
32
+ * Whether this commitment should be prioritized in menus, documentation, and intellisense.
33
+ */
34
+ get isImportant(): boolean;
35
+ /**
36
+ * Whether this commitment is unfinished and not ready to use.
37
+ */
38
+ get isUnfinished(): boolean;
39
+ /**
40
+ * Whether this commitment is low-level and should be surfaced with caution.
41
+ */
42
+ get isLowLevel(): boolean;
31
43
  /**
32
44
  * Human-readable markdown documentation for this commitment, available at runtime.
33
45
  * Must be implemented by each concrete commitment.
@@ -17,11 +17,13 @@ type CommitmentDeprecation = {
17
17
  readonly replacedBy?: ReadonlyArray<string>;
18
18
  };
19
19
  /**
20
- * Definition of a commitment that can be applied to agent model requirements
20
+ * Definition of a commitment that can be applied to agent model requirements.
21
21
  *
22
22
  * Each commitment is self-contained and manages its own logic for:
23
23
  * - Creating regex patterns for parsing
24
24
  * - Applying its effects to agent model requirements
25
+ *
26
+ * @public exported from `@promptbook/core`
25
27
  */
26
28
  export type CommitmentDefinition = {
27
29
  /**
@@ -38,6 +40,24 @@ export type CommitmentDefinition = {
38
40
  * It should be a single emoji.
39
41
  */
40
42
  readonly icon: string;
43
+ /**
44
+ * Whether this commitment should be prioritized in menus, documentation, and intellisense.
45
+ */
46
+ readonly isImportant: boolean;
47
+ /**
48
+ * Whether this commitment is unfinished and not ready to use.
49
+ *
50
+ * Unfinished commitments are surfaced with low-level caution in the UI,
51
+ * documentation, and editor diagnostics.
52
+ */
53
+ readonly isUnfinished: boolean;
54
+ /**
55
+ * Whether this commitment is low-level and should be surfaced with caution.
56
+ *
57
+ * Low-level commitments are fully implemented, but they are intended for
58
+ * advanced use and are not used by most users.
59
+ */
60
+ readonly isLowLevel: boolean;
41
61
  /**
42
62
  * Human-readable markdown documentation for this commitment.
43
63
  * Should explain what the commitment does and include example usage.
@@ -0,0 +1,51 @@
1
+ import type { CommitmentDefinition } from '../_base/CommitmentDefinition';
2
+ /**
3
+ * Type of commitment notice surfaced in docs and editor UI.
4
+ *
5
+ * @private internal type of commitment catalog presentation
6
+ */
7
+ export type CommitmentNoticeMetadata = {
8
+ /**
9
+ * Machine-readable notice kind.
10
+ */
11
+ readonly kind: 'deprecated' | 'unfinished' | 'lowLevel';
12
+ /**
13
+ * Short badge label shown in documentation and menus.
14
+ */
15
+ readonly badgeLabel: string;
16
+ /**
17
+ * Longer label used in documentation bodies and editor details.
18
+ */
19
+ readonly detailLabel: string;
20
+ /**
21
+ * Human-readable notice message shown in editor and documentation callouts.
22
+ */
23
+ readonly message: string;
24
+ };
25
+ /**
26
+ * Formats preferred replacement guidance for deprecated commitments.
27
+ *
28
+ * @param replacedBy - Preferred replacement commitment keywords.
29
+ * @returns Optional replacement guidance sentence with leading space.
30
+ *
31
+ * @private internal utility of commitment catalog notices
32
+ */
33
+ export declare function formatCommitmentReplacementText(replacedBy?: ReadonlyArray<string>): string;
34
+ /**
35
+ * Returns true when one commitment notice should be rendered with low-visibility styling.
36
+ *
37
+ * @param notice - Commitment notice metadata or null.
38
+ * @returns True for unfinished and low-level notices.
39
+ *
40
+ * @private internal utility of commitment catalog notices
41
+ */
42
+ export declare function isLowVisibilityCommitmentNotice(notice: CommitmentNoticeMetadata | null): boolean;
43
+ /**
44
+ * Resolves the notice metadata for deprecated, unfinished, or low-level commitments.
45
+ *
46
+ * @param definition - Commitment definition to inspect.
47
+ * @returns Notice metadata when the commitment should be surfaced with caution.
48
+ *
49
+ * @private internal utility of commitment catalog notices
50
+ */
51
+ export declare function getCommitmentNoticeMetadata(definition: Pick<CommitmentDefinition, 'deprecation'> & Partial<Pick<CommitmentDefinition, 'isUnfinished' | 'isLowLevel'>>): CommitmentNoticeMetadata | null;