@promptbook/types 0.112.0-99 → 0.113.0-0

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 (166) hide show
  1. package/README.md +76 -44
  2. package/esm/src/_packages/components.index.d.ts +4 -0
  3. package/esm/src/_packages/core.index.d.ts +22 -2
  4. package/esm/src/_packages/node.index.d.ts +40 -0
  5. package/esm/src/_packages/types.index.d.ts +20 -0
  6. package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  7. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  8. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  9. package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  10. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  11. package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  12. package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  13. package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  14. package/esm/src/book-3.0/CliAgent.d.ts +66 -0
  15. package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
  16. package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
  17. package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
  18. package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
  19. package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
  20. package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  21. package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  22. package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  23. package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  24. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  25. package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  26. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  27. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  28. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  29. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  30. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  31. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  32. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  33. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  34. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  35. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  36. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  37. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  38. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  39. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  40. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  41. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  42. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  43. package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  44. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  45. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  46. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  47. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  48. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  49. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  50. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  51. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
  52. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
  53. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
  54. package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  55. package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  56. package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  57. package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
  58. package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
  59. package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  60. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  61. package/esm/src/cli/cli-commands/agent.d.ts +14 -0
  62. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  63. package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  64. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  65. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  66. package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  67. package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  68. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  69. package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
  70. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  71. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  72. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  73. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  74. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  75. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  76. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  77. package/esm/src/commitments/index.d.ts +2 -1
  78. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  79. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  80. package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  81. package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
  82. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  83. package/esm/src/version.d.ts +1 -1
  84. package/package.json +2 -2
  85. package/umd/src/_packages/components.index.d.ts +4 -0
  86. package/umd/src/_packages/core.index.d.ts +22 -2
  87. package/umd/src/_packages/node.index.d.ts +40 -0
  88. package/umd/src/_packages/types.index.d.ts +20 -0
  89. package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  90. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  91. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  92. package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  93. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  94. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  95. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  96. package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  97. package/umd/src/book-3.0/CliAgent.d.ts +66 -0
  98. package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
  99. package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
  100. package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
  101. package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
  102. package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
  103. package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  104. package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  105. package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  106. package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  107. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  108. package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  109. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  110. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  111. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  112. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  113. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  114. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  115. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  116. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  117. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  118. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  119. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  120. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  121. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  122. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  123. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  124. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  125. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  126. package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  127. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  128. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  129. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  130. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  131. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  132. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  133. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  134. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
  135. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
  136. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
  137. package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  138. package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  139. package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  140. package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
  141. package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
  142. package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  143. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  144. package/umd/src/cli/cli-commands/agent.d.ts +14 -0
  145. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  146. package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  147. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  148. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  149. package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  150. package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  151. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  152. package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
  153. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  154. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  155. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  156. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  157. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  158. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  159. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  160. package/umd/src/commitments/index.d.ts +2 -1
  161. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  162. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  163. package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  164. package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
  165. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  166. package/umd/src/version.d.ts +1 -1
package/README.md CHANGED
@@ -27,6 +27,25 @@ Create persistent AI agents that turn your company's scattered knowledge into ac
27
27
 
28
28
 
29
29
 
30
+ ### Standalone VPS
31
+
32
+ Run the standalone VPS installer only on a fresh server. Interactive mode asks for the installation values:
33
+
34
+ ```bash
35
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash
36
+ ```
37
+
38
+ Non-interactive mode takes defaults from command-line options. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
39
+
40
+ ```bash
41
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
42
+ --non-interactive \
43
+ --yes-i-understand-that-script-should-be-run-on-fresh-server \
44
+ --domain my-server.com \
45
+ --openai-api-key sk-proj-xxx \
46
+ --admin-password xxx
47
+ ```
48
+
30
49
 
31
50
 
32
51
  <blockquote style="color: #ff8811">
@@ -308,7 +327,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
308
327
 
309
328
  Promptbook lets you create **persistent AI agents** that work on real goals for your company. The [**Agents Server**](https://gallery.ptbk.io/) is the heart of the project - a place where your AI agents live, remember context, collaborate in teams, and get things done.
310
329
 
311
- Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.2 and Claude-4.5 are incredibly capable.
330
+ Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as Claude Mythos, GPT-5.6 or Kimi K2.7 are incredibly capable.
312
331
 
313
332
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
314
333
 
@@ -316,17 +335,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
316
335
 
317
336
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
318
337
 
319
- **<ins>Paul Smith</ins>**<br/>
338
+ **<ins>Lawyer</ins>**<br/>
320
339
  <br/>
321
- **PERSONA** You are a company lawyer.<br/>
340
+ GOAL You are a company lawyer.<br/>
322
341
  Your job is to provide legal advice and support to the company and its employees.<br/>
323
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
342
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
343
+ <br/>
324
344
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
325
345
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
326
346
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
327
- **USE EMAIL**<br/>
328
- **USE BROWSER**<br/>
329
- **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
347
+ <br/>
348
+ USE EMAIL<br/>
349
+ USE BROWSER<br/>
350
+ <br/>
351
+ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
330
352
 
331
353
  </td></tr></table>
332
354
 
@@ -359,12 +381,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
359
381
 
360
382
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
361
383
 
362
- **<ins>Paul Smith & Associés</ins>**<br/>
384
+ **<ins>Company Lawyer</ins>**<br/>
363
385
  <br/>
364
- **PERSONA** You are a company lawyer.<br/>
386
+ GOAL<br/>
365
387
  Your job is to provide legal advice and support to the company and its employees.<br/>
366
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
367
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
388
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
389
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
368
390
 
369
391
  </td></tr></table>
370
392
 
@@ -382,8 +404,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
382
404
  <br/>
383
405
  **PERSONA** You are a company lawyer.<br/>
384
406
  Your job is to provide legal advice and support to the company and its employees.<br/>
385
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
386
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
407
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
408
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
387
409
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
388
410
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
389
411
 
@@ -401,8 +423,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
401
423
  <br/>
402
424
  **PERSONA** You are a company lawyer.<br/>
403
425
  Your job is to provide legal advice and support to the company and its employees.<br/>
404
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
405
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
426
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
427
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
406
428
  **RULE** Always ensure compliance with local laws and regulations.<br/>
407
429
  **RULE** Never provide legal advice outside your area of expertise.<br/>
408
430
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -423,16 +445,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
423
445
  <br/>
424
446
  **PERSONA** You are a company lawyer.<br/>
425
447
  Your job is to provide legal advice and support to the company and its employees.<br/>
426
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
427
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
448
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
449
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
428
450
  **RULE** Always ensure compliance with local laws and regulations.<br/>
429
451
  **RULE** Never provide legal advice outside your area of expertise.<br/>
430
452
  **RULE** Never provide legal advice about criminal law.<br/>
431
453
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
432
454
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
433
- **USE EMAIL**<br/>
434
- **USE BROWSER**<br/>
435
- **USE SEARCH ENGINE**<br/>
455
+ USE EMAIL<br/>
456
+ USE BROWSER<br/>
457
+ USE SEARCH ENGINE<br/>
436
458
 
437
459
  </td></tr></table>
438
460
 
@@ -446,20 +468,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
446
468
  <br/>
447
469
  **PERSONA** You are a company lawyer.<br/>
448
470
  Your job is to provide legal advice and support to the company and its employees.<br/>
449
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
450
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
471
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
472
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
451
473
  **RULE** Always ensure compliance with local laws and regulations.<br/>
452
474
  **RULE** Never provide legal advice outside your area of expertise.<br/>
453
475
  **RULE** Never provide legal advice about criminal law.<br/>
454
476
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
455
477
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
456
- **USE EMAIL**<br/>
457
- **USE BROWSER**<br/>
458
- **USE SEARCH ENGINE**<br/>
459
- **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
478
+ USE EMAIL<br/>
479
+ USE BROWSER<br/>
480
+ USE SEARCH ENGINE<br/>
481
+ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
460
482
 
461
483
  </td></tr></table>
462
484
 
485
+
486
+
463
487
  ### Promptbook Ecosystem
464
488
 
465
489
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -482,6 +506,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
482
506
 
483
507
 
484
508
 
509
+
510
+
485
511
  ## 💜 The Promptbook Project
486
512
 
487
513
  Promptbook project is an ecosystem centered around the **Agents Server** - a platform for creating, deploying, and running persistent AI agents. Following is a list of the most important pieces of the project:
@@ -519,6 +545,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
519
545
  </tbody>
520
546
  </table>
521
547
 
548
+
549
+
522
550
  ### 🌐 Community & Social Media
523
551
 
524
552
  Join our growing community of developers and users:
@@ -575,6 +603,8 @@ Join our growing community of developers and users:
575
603
 
576
604
 
577
605
 
606
+
607
+
578
608
  ## 📚 Documentation
579
609
 
580
610
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -666,9 +696,9 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
666
696
  #### Features
667
697
 
668
698
  - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
669
- - **Context injection:** `--context AGENTS.md` or inline extra instructions
699
+ - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
670
700
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
671
- - **Interactive or unattended runs:** default wait mode, or `--no-wait` for batch execution
701
+ - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
672
702
  - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
673
703
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
674
704
  - **Prompt triage:** `--priority` to process only more important tasks first
@@ -686,11 +716,11 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
686
716
 
687
717
  npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompts/templates/agents-server.md
688
718
 
689
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
719
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md
690
720
 
691
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
721
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
692
722
 
693
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --ignore-git-changes --no-wait
723
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --ignore-git-changes
694
724
 
695
725
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
696
726
 
@@ -712,11 +742,11 @@ ptbk coder generate-boilerplates
712
742
 
713
743
  ptbk coder generate-boilerplates --template prompts/templates/common.md
714
744
 
715
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test
745
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test
716
746
 
717
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
747
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
718
748
 
719
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test --ignore-git-changes --no-wait
749
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --ignore-git-changes
720
750
 
721
751
  ptbk coder find-refactor-candidates
722
752
 
@@ -729,24 +759,24 @@ ptbk coder verify
729
759
 
730
760
  #### What each command does
731
761
 
732
- | Command | What it does |
733
- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
762
+ | Command | What it does |
763
+ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
734
764
  | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.promptbook`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
735
- | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
736
- | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, can optionally verify each attempt with a shell test command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
737
- | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
738
- | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
765
+ | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
766
+ | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, can optionally verify each attempt with a shell test command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
767
+ | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
768
+ | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
739
769
 
740
770
  #### Most useful `ptbk coder run` flags
741
771
 
742
772
  | Flag | Purpose |
743
773
  | -------------------------- | -------------------------------------------------------------------------------------------------- |
744
- | `--agent <name>` | Selects the coding backend. |
774
+ | `--harness <name>` | Selects the coding harness. |
745
775
  | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
746
776
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
747
777
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
748
778
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
749
- | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
779
+ | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
750
780
  | `--ignore-git-changes` | Disables the clean-working-tree guard. |
751
781
  | `--priority <n>` | Runs only prompts at or above the given priority. |
752
782
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
@@ -758,8 +788,8 @@ ptbk coder verify
758
788
 
759
789
  1. Initialize once with `ptbk coder init`.
760
790
  2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
761
- 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
762
- 4. Run one prompt at a time interactively, or use `--no-wait` for unattended batches.
791
+ 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--agent agents/coding/developer.book --context AGENTS.md`.
792
+ 4. Run unattended batches by default, or pass `--no-auto` to confirm each prompt interactively.
763
793
  5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
764
794
 
765
795
 
@@ -782,6 +812,8 @@ The following glossary is used to clarify certain concepts:
782
812
 
783
813
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
784
814
 
815
+
816
+
785
817
  ### 💯 Core concepts
786
818
 
787
819
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
@@ -12,6 +12,7 @@ import type { BookEditorUploadProgressCallback } from '../book-components/BookEd
12
12
  import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
13
13
  import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
14
14
  import { BookEditor } from '../book-components/BookEditor/BookEditor';
15
+ import { BookEditorForClient } from '../book-components/BookEditor/BookEditorForClient';
15
16
  import { AgentChat } from '../book-components/Chat/AgentChat/AgentChat';
16
17
  import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
17
18
  import { Chat } from '../book-components/Chat/Chat/Chat';
@@ -65,6 +66,7 @@ import type { ChatProgressCard } from '../book-components/Chat/types/ChatMessage
65
66
  import type { ChatMessageReplyingTo } from '../book-components/Chat/types/ChatMessage';
66
67
  import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
67
68
  import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
69
+ import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
68
70
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
69
71
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
70
72
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
@@ -95,6 +97,7 @@ export type { BookEditorUploadProgressCallback };
95
97
  export type { BookEditorUploadOptions };
96
98
  export type { BookEditorProps };
97
99
  export { BookEditor };
100
+ export { BookEditorForClient };
98
101
  export { AgentChat };
99
102
  export type { AgentChatProps };
100
103
  export { Chat };
@@ -148,6 +151,7 @@ export type { ChatProgressCard };
148
151
  export type { ChatMessageReplyingTo };
149
152
  export type { ChatMessage };
150
153
  export type { ChatParticipant };
154
+ export type { CitationLabelResolver };
151
155
  export type { MessageButton };
152
156
  export { parseMessageButtons };
153
157
  export { ArrowIcon };
@@ -1,4 +1,15 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
+ import { AGENT_VISIBILITY_VALUES } from '../book-2.0/agent-source/agentSourceVisibility';
3
+ import type { AgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
4
+ import { DEFAULT_AGENT_VISIBILITY } from '../book-2.0/agent-source/agentSourceVisibility';
5
+ import { isAgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
6
+ import { normalizeAgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
7
+ import { parseAgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
8
+ import { parseAgentVisibilityStrict } from '../book-2.0/agent-source/agentSourceVisibility';
9
+ import { parseAgentSourceVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
10
+ import { isPublicAgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
11
+ import { getNextAgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
12
+ import { setAgentSourceVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
2
13
  import { computeAgentHash } from '../book-2.0/agent-source/computeAgentHash';
3
14
  import { createAgentModelRequirements } from '../book-2.0/agent-source/createAgentModelRequirements';
4
15
  import type { CreateAgentModelRequirementsOptions } from '../book-2.0/agent-source/CreateAgentModelRequirementsOptions';
@@ -221,10 +232,20 @@ import { normalizeChatAttachments } from '../utils/chat/chatAttachments/normaliz
221
232
  import { resolveChatAttachmentContents } from '../utils/chat/chatAttachments/resolveChatAttachmentContents';
222
233
  import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
223
234
  import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
224
- import { CORE_AGENTS_SERVER } from '../../servers';
225
235
  import { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES } from '../../servers';
226
236
  import { PUBLIC_AGENTS_SERVERS } from '../../servers';
227
237
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
238
+ export { AGENT_VISIBILITY_VALUES };
239
+ export type { AgentVisibility };
240
+ export { DEFAULT_AGENT_VISIBILITY };
241
+ export { isAgentVisibility };
242
+ export { normalizeAgentVisibility };
243
+ export { parseAgentVisibility };
244
+ export { parseAgentVisibilityStrict };
245
+ export { parseAgentSourceVisibility };
246
+ export { isPublicAgentVisibility };
247
+ export { getNextAgentVisibility };
248
+ export { setAgentSourceVisibility };
228
249
  export { computeAgentHash };
229
250
  export { createAgentModelRequirements };
230
251
  export type { CreateAgentModelRequirementsOptions };
@@ -447,6 +468,5 @@ export { normalizeChatAttachments };
447
468
  export { resolveChatAttachmentContents };
448
469
  export { aboutPromptbookInformation };
449
470
  export { $generateBookBoilerplate };
450
- export { CORE_AGENTS_SERVER };
451
471
  export { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES };
452
472
  export { PUBLIC_AGENTS_SERVERS };
@@ -1,4 +1,24 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
+ import { AGENT_BOOK_FILE_PATH } from '../book-3.0/agentFolderPaths';
3
+ import { AGENT_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
4
+ import { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
5
+ import { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
6
+ import { AGENT_FAILED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
7
+ import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
8
+ import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
9
+ import type { CliAgentHarness } from '../book-3.0/CliAgent';
10
+ import type { CliAgentThinkingLevel } from '../book-3.0/CliAgent';
11
+ import type { CliAgentRunOptions } from '../book-3.0/CliAgent';
12
+ import type { CliAgentOptions } from '../book-3.0/CliAgent';
13
+ import { CliAgent } from '../book-3.0/CliAgent';
14
+ import { CLI_AGENT_HARNESS_NAMES } from '../book-3.0/cliAgentEnv';
15
+ import { CLI_AGENT_THINKING_LEVEL_VALUES } from '../book-3.0/cliAgentEnv';
16
+ import { PTBK_HARNESS_ENV } from '../book-3.0/cliAgentEnv';
17
+ import { PTBK_MODEL_ENV } from '../book-3.0/cliAgentEnv';
18
+ import { PTBK_THINKING_LEVEL_ENV } from '../book-3.0/cliAgentEnv';
19
+ import type { LiteAgentOptions } from '../book-3.0/LiteAgent';
20
+ import type { LiteAgentRunOptions } from '../book-3.0/LiteAgent';
21
+ import { LiteAgent } from '../book-3.0/LiteAgent';
2
22
  import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
3
23
  import { getAllCommitmentsToolFunctionsForNode } from '../commitments/_common/getAllCommitmentsToolFunctionsForNode';
4
24
  import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
@@ -12,6 +32,26 @@ import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage
12
32
  import { $execCommand } from '../utils/execCommand/$execCommand';
13
33
  import { $execCommands } from '../utils/execCommand/$execCommands';
14
34
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
35
+ export { AGENT_BOOK_FILE_PATH };
36
+ export { AGENT_MESSAGES_DIRECTORY_PATH };
37
+ export { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH };
38
+ export { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH };
39
+ export { AGENT_FAILED_MESSAGES_DIRECTORY_PATH };
40
+ export type { BookNodeAgentSource };
41
+ export type { BookNodeAgentSourceOptions };
42
+ export type { CliAgentHarness };
43
+ export type { CliAgentThinkingLevel };
44
+ export type { CliAgentRunOptions };
45
+ export type { CliAgentOptions };
46
+ export { CliAgent };
47
+ export { CLI_AGENT_HARNESS_NAMES };
48
+ export { CLI_AGENT_THINKING_LEVEL_VALUES };
49
+ export { PTBK_HARNESS_ENV };
50
+ export { PTBK_MODEL_ENV };
51
+ export { PTBK_THINKING_LEVEL_ENV };
52
+ export type { LiteAgentOptions };
53
+ export type { LiteAgentRunOptions };
54
+ export { LiteAgent };
15
55
  export { createPipelineCollectionFromDirectory };
16
56
  export { getAllCommitmentsToolFunctionsForNode };
17
57
  export { $provideExecutablesForNode };
@@ -2,8 +2,17 @@ import type { BookParameter } from '../book-2.0/agent-source/AgentBasicInformati
2
2
  import type { AgentCapability } from '../book-2.0/agent-source/AgentBasicInformation';
3
3
  import type { AgentBasicInformation } from '../book-2.0/agent-source/AgentBasicInformation';
4
4
  import type { AgentModelRequirements } from '../book-2.0/agent-source/AgentModelRequirements';
5
+ import type { AgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
5
6
  import type { CreateAgentModelRequirementsOptions } from '../book-2.0/agent-source/CreateAgentModelRequirementsOptions';
6
7
  import type { string_book } from '../book-2.0/agent-source/string_book';
8
+ import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
9
+ import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
10
+ import type { CliAgentHarness } from '../book-3.0/CliAgent';
11
+ import type { CliAgentThinkingLevel } from '../book-3.0/CliAgent';
12
+ import type { CliAgentRunOptions } from '../book-3.0/CliAgent';
13
+ import type { CliAgentOptions } from '../book-3.0/CliAgent';
14
+ import type { LiteAgentOptions } from '../book-3.0/LiteAgent';
15
+ import type { LiteAgentRunOptions } from '../book-3.0/LiteAgent';
7
16
  import type { AvatarChipProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChip';
8
17
  import type { AvatarChipFromSourceProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChipFromSource';
9
18
  import type { AvatarProfileProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
@@ -47,6 +56,7 @@ import type { ChatProgressCard } from '../book-components/Chat/types/ChatMessage
47
56
  import type { ChatMessageReplyingTo } from '../book-components/Chat/types/ChatMessage';
48
57
  import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
49
58
  import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
59
+ import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
50
60
  import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
51
61
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
52
62
  import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing/TeamToolResult';
@@ -435,8 +445,17 @@ export type { BookParameter };
435
445
  export type { AgentCapability };
436
446
  export type { AgentBasicInformation };
437
447
  export type { AgentModelRequirements };
448
+ export type { AgentVisibility };
438
449
  export type { CreateAgentModelRequirementsOptions };
439
450
  export type { string_book };
451
+ export type { BookNodeAgentSource };
452
+ export type { BookNodeAgentSourceOptions };
453
+ export type { CliAgentHarness };
454
+ export type { CliAgentThinkingLevel };
455
+ export type { CliAgentRunOptions };
456
+ export type { CliAgentOptions };
457
+ export type { LiteAgentOptions };
458
+ export type { LiteAgentRunOptions };
440
459
  export type { AvatarChipProps };
441
460
  export type { AvatarChipFromSourceProps };
442
461
  export type { AvatarProfileProps };
@@ -480,6 +499,7 @@ export type { ChatProgressCard };
480
499
  export type { ChatMessageReplyingTo };
481
500
  export type { ChatMessage };
482
501
  export type { ChatParticipant };
502
+ export type { CitationLabelResolver };
483
503
  export type { ParsedCitation };
484
504
  export type { MessageButton };
485
505
  export type { TeamToolResult };
@@ -7,6 +7,10 @@ type AvatarAnimationListener = (now: number) => void;
7
7
  /**
8
8
  * Registers one avatar animation callback in the shared animation loop.
9
9
  *
10
+ * Each listener is staggered at registration time so it does not fire on the same animation
11
+ * frame as the existing listeners, and the shared loop further caps how many listeners run
12
+ * per frame, keeping the main thread responsive when many avatars are mounted.
13
+ *
10
14
  * @param avatarAnimationListener Frame callback invoked on every animation frame.
11
15
  * @returns Cleanup function that unregisters the callback.
12
16
  *
@@ -7,7 +7,7 @@ import type { AvatarDefinition } from './AvatarDefinition';
7
7
  *
8
8
  * @private shared contract for the avatar rendering system
9
9
  */
10
- export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
10
+ export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'octopus3d3' | 'octopus3d4' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
11
11
  /**
12
12
  * Derived color palette used by avatar visuals.
13
13
  *
@@ -0,0 +1,7 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Octopus 3D 3 avatar visual.
4
+ *
5
+ * @private built-in avatar visual
6
+ */
7
+ export declare const octopus3d3AvatarVisual: AvatarVisualDefinition;
@@ -0,0 +1,7 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Octopus 3D 4 avatar visual.
4
+ *
5
+ * @private built-in avatar visual
6
+ */
7
+ export declare const octopus3d4AvatarVisual: AvatarVisualDefinition;
@@ -4,6 +4,7 @@ import type { string_agent_url } from '../../types/string_agent_url';
4
4
  import type { string_fonts } from '../../types/string_markdown';
5
5
  import type { string_color } from '../../types/string_person_fullname';
6
6
  import type { string_url_image } from '../../types/string_url_image';
7
+ import type { AgentVisibility } from './agentSourceVisibility';
7
8
  /**
8
9
  * Unified parameter representation that supports two different notations:
9
10
  * 1. @Parameter - single word parameter starting with @
@@ -97,6 +98,7 @@ export type AgentBasicInformation = {
97
98
  font?: string_fonts;
98
99
  color?: string_color;
99
100
  voice?: string;
101
+ visibility?: AgentVisibility;
100
102
  [key: string]: string | undefined;
101
103
  };
102
104
  /**
@@ -0,0 +1,97 @@
1
+ import type { string_book } from './string_book';
2
+ /**
3
+ * Supported visibility states for persisted agents.
4
+ *
5
+ * @public exported from `@promptbook/core`
6
+ */
7
+ export declare const AGENT_VISIBILITY_VALUES: readonly ["PRIVATE", "UNLISTED", "PUBLIC"];
8
+ /**
9
+ * Canonical visibility union for agents.
10
+ *
11
+ * @public exported from `@promptbook/core`
12
+ */
13
+ export type AgentVisibility = (typeof AGENT_VISIBILITY_VALUES)[number];
14
+ /**
15
+ * Fallback visibility used when no valid value is configured.
16
+ *
17
+ * @public exported from `@promptbook/core`
18
+ */
19
+ export declare const DEFAULT_AGENT_VISIBILITY: AgentVisibility;
20
+ /**
21
+ * Returns `true` when the value is one of supported visibility states.
22
+ *
23
+ * @param value - Raw value to validate.
24
+ * @returns Whether the value is a valid `AgentVisibility`.
25
+ *
26
+ * @public exported from `@promptbook/core`
27
+ */
28
+ export declare function isAgentVisibility(value: unknown): value is AgentVisibility;
29
+ /**
30
+ * Normalizes raw visibility text into a supported value.
31
+ *
32
+ * @param value - Raw visibility value.
33
+ * @returns Normalized visibility, or `null` when invalid.
34
+ *
35
+ * @public exported from `@promptbook/core`
36
+ */
37
+ export declare function normalizeAgentVisibility(value: unknown): AgentVisibility | null;
38
+ /**
39
+ * Parses visibility from an unknown value with a safe fallback.
40
+ *
41
+ * @param value - Raw visibility value.
42
+ * @param fallback - Fallback when the value is invalid.
43
+ * @returns Parsed visibility.
44
+ *
45
+ * @public exported from `@promptbook/core`
46
+ */
47
+ export declare function parseAgentVisibility(value: unknown, fallback?: AgentVisibility): AgentVisibility;
48
+ /**
49
+ * Parses visibility and throws when the value is not supported.
50
+ *
51
+ * @param value - Raw visibility value.
52
+ * @param sourceLabel - Human-readable source used in the error message.
53
+ * @returns Parsed visibility.
54
+ *
55
+ * @public exported from `@promptbook/core`
56
+ */
57
+ export declare function parseAgentVisibilityStrict(value: unknown, sourceLabel?: string): AgentVisibility;
58
+ /**
59
+ * Extracts the last `META VISIBILITY` value from an agent source.
60
+ *
61
+ * @param agentSource - Raw book source.
62
+ * @param options - Strict parsing options.
63
+ * @returns Normalized visibility, or `null` when no commitment is present.
64
+ *
65
+ * @public exported from `@promptbook/core`
66
+ */
67
+ export declare function parseAgentSourceVisibility(agentSource: string_book, options?: {
68
+ readonly isStrict?: boolean;
69
+ }): AgentVisibility | null;
70
+ /**
71
+ * Returns whether an agent should be listed publicly in anonymous views.
72
+ *
73
+ * @param visibility - Agent visibility to evaluate.
74
+ * @returns `true` for publicly listed agents.
75
+ *
76
+ * @public exported from `@promptbook/core`
77
+ */
78
+ export declare function isPublicAgentVisibility(visibility: AgentVisibility | null | undefined): boolean;
79
+ /**
80
+ * Returns the next visibility in UI rotation order.
81
+ *
82
+ * @param visibility - Current visibility.
83
+ * @returns Next visibility value.
84
+ *
85
+ * @public exported from `@promptbook/core`
86
+ */
87
+ export declare function getNextAgentVisibility(visibility: AgentVisibility | null | undefined): AgentVisibility;
88
+ /**
89
+ * Inserts or replaces the `META VISIBILITY` commitment in a book source.
90
+ *
91
+ * @param agentSource - Raw book source.
92
+ * @param visibility - Visibility to persist.
93
+ * @returns Source with exactly one normalized `META VISIBILITY` line.
94
+ *
95
+ * @public exported from `@promptbook/core`
96
+ */
97
+ export declare function setAgentSourceVisibility(agentSource: string_book, visibility: AgentVisibility): string_book;