@promptbook/wizard 0.113.0-9 → 0.114.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 (202) hide show
  1. package/README.md +4 -3
  2. package/esm/index.es.js +84 -2
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +8 -0
  5. package/esm/src/_packages/core.index.d.ts +4 -0
  6. package/esm/src/_packages/types.index.d.ts +12 -0
  7. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  8. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  9. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  10. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  11. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  12. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  13. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  14. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  15. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  16. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  17. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  18. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  19. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  20. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  21. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  22. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  23. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  24. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  25. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  26. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  27. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  28. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  29. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  30. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  31. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  32. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  33. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  34. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  35. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  36. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  37. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  38. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  39. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  40. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  41. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  42. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  43. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  44. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  45. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  46. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  47. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  48. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  49. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  51. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  52. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  53. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  54. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  55. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  56. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  57. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  58. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  59. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  61. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  62. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  63. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  64. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  65. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  66. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  67. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  68. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  69. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  70. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  71. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  72. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  73. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  74. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  75. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  76. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  77. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  78. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  79. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  80. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  81. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  82. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  83. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  84. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  85. package/esm/src/commitments/META/META.d.ts +2 -0
  86. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  87. package/esm/src/commitments/index.d.ts +2 -1
  88. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  89. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  90. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  91. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  92. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  93. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  94. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  95. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  96. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  97. package/esm/src/version.d.ts +1 -1
  98. package/package.json +2 -2
  99. package/umd/index.umd.js +84 -2
  100. package/umd/index.umd.js.map +1 -1
  101. package/umd/src/_packages/components.index.d.ts +8 -0
  102. package/umd/src/_packages/core.index.d.ts +4 -0
  103. package/umd/src/_packages/types.index.d.ts +12 -0
  104. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  105. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  106. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  107. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  108. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  109. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  110. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  111. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  112. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  113. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  114. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  115. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  116. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  117. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  118. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  119. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  120. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  121. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  122. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  123. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  124. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  125. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  126. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  127. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  128. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  129. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  130. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  131. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  132. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  133. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  134. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  135. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  136. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  137. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  138. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  139. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  140. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  141. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  142. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  143. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  144. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  145. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  146. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  147. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  148. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  149. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  150. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  151. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  152. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  153. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  154. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  155. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  156. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  157. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  158. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  159. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  160. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  161. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  162. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  163. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  164. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  165. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  166. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  167. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  168. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  169. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  170. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  171. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  172. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  173. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  174. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  175. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  176. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  177. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  178. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  179. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  180. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  181. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  182. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  183. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  184. package/umd/src/commitments/META/META.d.ts +2 -0
  185. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  186. package/umd/src/commitments/index.d.ts +2 -1
  187. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  188. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  189. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  190. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  191. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  192. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  193. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  194. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  195. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  196. package/umd/src/version.d.ts +1 -1
  197. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  198. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  199. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  200. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  201. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  202. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -4,6 +4,84 @@ import type { string_html, string_markdown } from '../../../types/string_markdow
4
4
  */
5
5
  type RenderMarkdownOptions = {
6
6
  readonly citationReferenceClassName?: string;
7
+ readonly inlineReferences?: ReadonlyArray<MarkdownInlineReference>;
8
+ readonly inlineReferenceClassName?: string;
9
+ };
10
+ /**
11
+ * One inline markdown reference converted from `[[reference]]` into a safe link chip.
12
+ *
13
+ * @public exported from `@promptbook/components`
14
+ */
15
+ export type MarkdownInlineReference = {
16
+ /**
17
+ * Raw reference text between `[[` and `]]`.
18
+ */
19
+ readonly reference: string;
20
+ /**
21
+ * Human-readable label rendered inside the link chip.
22
+ */
23
+ readonly label: string;
24
+ /**
25
+ * Link target for the rendered reference.
26
+ */
27
+ readonly href: string;
28
+ /**
29
+ * Optional hover title for the rendered reference.
30
+ */
31
+ readonly title?: string;
32
+ /**
33
+ * Optional expandable menu shown when the reference chip is clicked.
34
+ */
35
+ readonly menu?: MarkdownInlineReferenceMenu;
36
+ };
37
+ /**
38
+ * Status displayed alongside an expandable markdown inline reference.
39
+ *
40
+ * @public exported from `@promptbook/components`
41
+ */
42
+ export type MarkdownInlineReferenceMenuStatus = {
43
+ /**
44
+ * Accessible text describing the current reference status.
45
+ */
46
+ readonly label: string;
47
+ /**
48
+ * Whether the status should be rendered as active.
49
+ */
50
+ readonly isActive: boolean;
51
+ };
52
+ /**
53
+ * One destination in an expandable markdown inline reference menu.
54
+ *
55
+ * @public exported from `@promptbook/components`
56
+ */
57
+ export type MarkdownInlineReferenceMenuOption = {
58
+ /**
59
+ * Text rendered for the option.
60
+ */
61
+ readonly label: string;
62
+ /**
63
+ * New-tab destination, or `null` while the option is unavailable.
64
+ */
65
+ readonly href: string | null;
66
+ /**
67
+ * Optional hover text for the option.
68
+ */
69
+ readonly title?: string;
70
+ };
71
+ /**
72
+ * Expandable menu configuration for a markdown inline reference.
73
+ *
74
+ * @public exported from `@promptbook/components`
75
+ */
76
+ export type MarkdownInlineReferenceMenu = {
77
+ /**
78
+ * Current reference status shown in the chip and menu.
79
+ */
80
+ readonly status: MarkdownInlineReferenceMenuStatus;
81
+ /**
82
+ * New-tab actions listed in the expanded menu.
83
+ */
84
+ readonly options: ReadonlyArray<MarkdownInlineReferenceMenuOption>;
7
85
  };
8
86
  /**
9
87
  * Convert markdown content to HTML.
@@ -0,0 +1,149 @@
1
+ import type { ParsedCitation } from './parseCitationsFromContent';
2
+ /**
3
+ * Broad source category used by chat citation chips.
4
+ *
5
+ * @private utility type of `<Chat/>` citation rendering
6
+ */
7
+ export type CitationSourceKind = 'archive' | 'audio' | 'code' | 'document' | 'file' | 'image' | 'json' | 'plain-text' | 'presentation' | 'spreadsheet' | 'table' | 'video' | 'website';
8
+ /**
9
+ * Image subtype when the citation source carries enough information to identify it.
10
+ *
11
+ * @private utility type of `<Chat/>` citation rendering
12
+ */
13
+ export type CitationImageFormat = 'avif' | 'gif' | 'image' | 'jpeg' | 'png' | 'svg' | 'webp';
14
+ /**
15
+ * Render-ready metadata for one citation source.
16
+ *
17
+ * @private utility type of `<Chat/>` citation rendering
18
+ */
19
+ export type CitationSourceDisplay = {
20
+ /**
21
+ * Broad source category.
22
+ */
23
+ readonly kind: CitationSourceKind;
24
+ /**
25
+ * Human-readable fallback label used before optional host metadata resolution.
26
+ */
27
+ readonly label: string;
28
+ /**
29
+ * Best known HTTP(S) target for previews and URL snippets.
30
+ */
31
+ readonly targetUrl?: string;
32
+ /**
33
+ * Image URL that can be rendered as a thumbnail.
34
+ */
35
+ readonly thumbnailUrl?: string;
36
+ /**
37
+ * Lower-cased file extension when one is known.
38
+ */
39
+ readonly extension?: string;
40
+ /**
41
+ * Image subtype when known.
42
+ */
43
+ readonly imageFormat?: CitationImageFormat;
44
+ };
45
+ /**
46
+ * Internal source signature before final labels/preview URLs are resolved.
47
+ *
48
+ * @private utility type of `<Chat/>` citation rendering
49
+ */
50
+ export type CitationSourceSignature = {
51
+ /**
52
+ * Broad source category.
53
+ */
54
+ readonly kind: CitationSourceKind;
55
+ /**
56
+ * Image subtype when known.
57
+ */
58
+ readonly imageFormat?: CitationImageFormat;
59
+ };
60
+ /**
61
+ * Resolves render-ready source metadata for one citation.
62
+ *
63
+ * @param citation - Citation metadata from a rendered chat message.
64
+ * @returns Display label, source category, and optional preview URLs.
65
+ *
66
+ * @private utility of `<Chat/>` citation rendering
67
+ */
68
+ export declare function resolveCitationSourceDisplay(citation: ParsedCitation): CitationSourceDisplay;
69
+ /**
70
+ * Returns whether the provided value is a valid HTTP(S) URL.
71
+ *
72
+ * @param value - Candidate string to inspect.
73
+ * @returns True when the value parses as an HTTP or HTTPS URL.
74
+ *
75
+ * @private utility of `<Chat/>` citation rendering
76
+ */
77
+ export declare function isCitationSourceUrl(value: string): boolean;
78
+ /**
79
+ * Determines whether a citation should be displayed as a text snippet instead of a file/URL.
80
+ *
81
+ * @param citation - Parsed citation metadata.
82
+ * @returns True when the citation looks like inline text instead of a document or URL.
83
+ *
84
+ * @private utility of `<Chat/>` citation rendering
85
+ */
86
+ export declare function isPlainTextCitationSource(citation: ParsedCitation): boolean;
87
+ /**
88
+ * Creates a readable fallback label from a citation source when no title metadata is available.
89
+ *
90
+ * @param source - Raw citation source value.
91
+ * @returns Human-friendly source label.
92
+ *
93
+ * @private utility of `<Chat/>` citation rendering
94
+ */
95
+ export declare function createReadableCitationSourceDisplayLabel(source: string): string;
96
+ /**
97
+ * Creates a compact host/path label for URL-backed file citations.
98
+ *
99
+ * @param rawUrl - Raw URL value.
100
+ * @returns URL snippet such as `github.com/.../source.json`, or null for invalid URLs.
101
+ *
102
+ * @private utility of `<Chat/>` citation rendering
103
+ */
104
+ export declare function createCitationUrlSnippet(rawUrl: string): string | null;
105
+ /**
106
+ * Resolves a source signature from a file extension.
107
+ *
108
+ * @param extension - Lower- or mixed-case file extension.
109
+ * @returns Source signature or null for unknown extensions.
110
+ *
111
+ * @private utility of `<Chat/>` citation rendering
112
+ */
113
+ export declare function resolveCitationSourceSignatureFromFileExtension(extension: string | null | undefined): CitationSourceSignature | null;
114
+ /**
115
+ * Resolves a source signature from an HTTP content type.
116
+ *
117
+ * @param contentType - Raw Content-Type header value.
118
+ * @returns Source signature or null when the content type is not specific enough.
119
+ *
120
+ * @private utility of `<Chat/>` citation rendering
121
+ */
122
+ export declare function resolveCitationSourceSignatureFromContentType(contentType: string): CitationSourceSignature | null;
123
+ /**
124
+ * Resolves a source signature from decoded source text.
125
+ *
126
+ * @param source - Raw citation source text.
127
+ * @returns Source signature for JSON/binary-like source text, otherwise null.
128
+ *
129
+ * @private utility of `<Chat/>` citation rendering
130
+ */
131
+ export declare function resolveRawCitationSourceSignature(source: string): CitationSourceSignature | null;
132
+ /**
133
+ * Resolves a source signature from response bytes.
134
+ *
135
+ * @param bytes - Leading response bytes.
136
+ * @returns Source signature for known binary formats, otherwise null.
137
+ *
138
+ * @private utility of `<Chat/>` citation rendering
139
+ */
140
+ export declare function resolveCitationSourceSignatureFromBytes(bytes: Uint8Array): CitationSourceSignature | null;
141
+ /**
142
+ * Creates a generic fallback label for a source signature.
143
+ *
144
+ * @param signature - Source signature.
145
+ * @returns Human-readable fallback label.
146
+ *
147
+ * @private utility of `<Chat/>` citation rendering
148
+ */
149
+ export declare function createCitationSourceSignatureFallbackLabel(signature: CitationSourceSignature): string;
@@ -7,6 +7,15 @@
7
7
  * @private internal helper for Promptbook chat placeholders
8
8
  */
9
9
  export declare function normalizeThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string>): ReadonlyArray<string>;
10
+ /**
11
+ * Parses configured thinking-message variants without applying default fallbacks.
12
+ *
13
+ * @param thinkingMessages Raw thinking-message variants.
14
+ * @returns Trimmed non-empty variants.
15
+ *
16
+ * @private internal helper for Promptbook chat placeholders
17
+ */
18
+ export declare function parseThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string> | null): ReadonlyArray<string>;
10
19
  /**
11
20
  * Returns a random delay used between browser-side thinking-message rotations.
12
21
  *
@@ -1,5 +1,5 @@
1
- import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
2
- export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
1
+ import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
2
+ export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
3
3
  /**
4
4
  * Relative path to local knowledge files initialized by `ptbk agent-folder init`.
5
5
  *
@@ -6,6 +6,7 @@ import type { number_port } from '../../../../types/number_positive';
6
6
  * @private internal type of `startAgentsServer`
7
7
  */
8
8
  export type AgentsServerChildEnvironment = NodeJS.ProcessEnv & {
9
+ readonly PTBK_AGENTS_SERVER_URL: string;
9
10
  readonly PTBK_AGENTS_SERVER_USER_CHAT_WORKER_TOKEN: string;
10
11
  };
11
12
  /**
@@ -1,4 +1,4 @@
1
- import type { PreparedAgentsServerRuntime } from '../buildAgentsServer';
1
+ import type { PreparedAgentsServerRuntime } from '../buildAgentsServer/PreparedAgentsServerRuntime';
2
2
  import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
3
3
  import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { WriteStream } from 'fs';
3
- import { type AgentsServerSupervisorState } from './AgentsServerSupervisorState';
3
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
4
4
  /**
5
5
  * Persists one child output chunk and forwards readable lines into UI or plain output.
6
6
  *
@@ -3,7 +3,7 @@ import { type ChildProcess } from 'child_process';
3
3
  import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
4
4
  import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
5
5
  import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
6
- import { type AgentsServerSupervisorState } from './AgentsServerSupervisorState';
6
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
7
7
  import type { StartAgentsServerOptions } from './StartAgentsServerOptions';
8
8
  /**
9
9
  * Starts the configured Next server mode and wires its logs into the foreground dashboard.
@@ -1,7 +1,7 @@
1
1
  import type { number_port } from '../../../../types/number_positive';
2
2
  import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
3
3
  import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
4
- import { type AgentsServerSupervisorState } from './AgentsServerSupervisorState';
4
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
5
5
  /**
6
6
  * Starts periodic internal worker calls that queue and reconcile local message-folder jobs.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  import type { StartAgentsServerOptions } from './startAgentsServer/StartAgentsServerOptions';
2
2
  export { loadAgentsServerProjectEnvironment } from './startAgentsServer/loadAgentsServerProjectEnvironment';
3
- export type { AgentsServerNextRuntimeMode, StartAgentsServerOptions } from './startAgentsServer/StartAgentsServerOptions';
3
+ export type { AgentsServerNextRuntimeMode, StartAgentsServerOptions, } from './startAgentsServer/StartAgentsServerOptions';
4
4
  /**
5
5
  * Starts the Agents Server web app and local coding-agent queue workers in the foreground.
6
6
  *
@@ -0,0 +1,36 @@
1
+ import type { Command as Program } from 'commander';
2
+ import type { $side_effect } from '../../../utils/organization/$side_effect';
3
+ /**
4
+ * Initializes `coder add` command for Promptbook CLI utilities
5
+ *
6
+ * Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
7
+ *
8
+ * @private internal function of `promptbookCli`
9
+ */
10
+ export declare function $initializeCoderAddCommand(program: Program): $side_effect;
11
+ /**
12
+ * Result of adding one prompt file with `coder add`.
13
+ *
14
+ * @private internal utility of `coder add` command
15
+ */
16
+ export type AddCoderPromptResult = {
17
+ /**
18
+ * Project-relative path of the created prompt file.
19
+ */
20
+ readonly filePath: string;
21
+ /**
22
+ * Emoji tag assigned to the created prompt, for example `[✨🪴]`.
23
+ */
24
+ readonly emojiTag: string;
25
+ };
26
+ /**
27
+ * Adds one ready-to-run prompt file containing a single prompt built from the description and template.
28
+ *
29
+ * @private internal utility of `coder add` command
30
+ */
31
+ export declare function addCoderPrompt({ projectPath, description, priority, templateOption, }: {
32
+ readonly projectPath: string;
33
+ readonly description: string;
34
+ readonly priority: number;
35
+ readonly templateOption?: string;
36
+ }): Promise<AddCoderPromptResult>;
@@ -0,0 +1 @@
1
+ export {};
@@ -135,3 +135,27 @@ export declare function resolveCoderPromptTemplate({ projectPath, templateOption
135
135
  readonly projectPath: string;
136
136
  readonly templateOption?: string;
137
137
  }): Promise<ResolvedCoderPromptTemplate>;
138
+ /**
139
+ * Builds one prompt section (status line, emoji-tagged title, and body) shared by
140
+ * `coder generate-boilerplates` and `coder add`.
141
+ *
142
+ * @private internal utility of `ptbk coder`
143
+ */
144
+ export declare function buildCoderPromptSection({ statusLine, emojiTag, title, body, }: {
145
+ /**
146
+ * Checklist status marker of the section, for example `[-]`, `[ ]`, or `[ ] !!`.
147
+ */
148
+ readonly statusLine: string;
149
+ /**
150
+ * Emoji tag rendered before the title, for example `[✨🪴]`.
151
+ */
152
+ readonly emojiTag: string;
153
+ /**
154
+ * Single-line title rendered right after the emoji tag.
155
+ */
156
+ readonly title: string;
157
+ /**
158
+ * Markdown body rendered below the title.
159
+ */
160
+ readonly body: string;
161
+ }): string;
@@ -5,6 +5,7 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
5
5
  *
6
6
  * The coder command provides utilities for automated coding:
7
7
  * - init: Initialize coder configuration in current project
8
+ * - add: Add one ready-to-run prompt file to the queue
8
9
  * - generate-boilerplates: Generate prompt boilerplate files
9
10
  * - find-refactor-candidates: Find files that need refactoring
10
11
  * - run: Run coding prompts with AI agents
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Creates a Commander argument parser that accepts only non-negative integers.
3
+ *
4
+ * The returned parser is meant to be passed as the coercion callback of `command.option(...)`.
5
+ * It throws a branded `NotAllowed` error with a clear message referencing the given option name
6
+ * when the provided value is not a non-negative integer.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function createNonNegativeIntegerOptionParser(optionName: string): (value: string) => number;
@@ -0,0 +1,9 @@
1
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
2
+ /**
3
+ * Reports one detected harness installation status and offers to install or update the harness.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it asks the user and installs npm packages
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $applyHarnessInstallationStatus(status: HarnessInstallationStatus): Promise<void>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Asks the user in the terminal whether the harness should be installed or updated right now.
3
+ *
4
+ * Note: `$` is used to indicate that this function is not a pure function - it reads the answer from stdin
5
+ *
6
+ * @returns `true` when the user confirms, `false` when the user declines or the terminal is not interactive
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $askForHarnessInstallationApproval(question: string): Promise<boolean>;
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
3
+ /**
4
+ * Detects whether one CLI coding harness is installed globally and whether it is up to date.
5
+ *
6
+ * Note: `$` is used to indicate that this function is not a pure function - it runs the harness command and queries npm
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $checkHarnessInstallation(definition: HarnessDefinition): Promise<HarnessInstallationStatus>;
@@ -0,0 +1,13 @@
1
+ import type { PromptRunnerHarnessName } from '../promptRunnerCliOptions';
2
+ /**
3
+ * Checks that every given CLI coding harness is installed globally and up to date and offers to
4
+ * install or update the ones which are not.
5
+ *
6
+ * Harness names which are `undefined`, for example when no `--harness` is selected in a dry run,
7
+ * are ignored so that every call site can pass its raw selection.
8
+ *
9
+ * Note: `$` is used to indicate that this function is not a pure function - it may install npm packages
10
+ *
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export declare function $ensureHarnessInstallations(harnessNames: ReadonlyArray<PromptRunnerHarnessName | undefined>): Promise<void>;
@@ -0,0 +1,13 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Installs or updates one CLI coding harness globally through npm.
4
+ *
5
+ * A failed installation is reported but never aborts the running command, because the harness check
6
+ * is only an assistant - the command itself may still work with a manually managed harness.
7
+ *
8
+ * Note: `$` is used to indicate that this function is not a pure function - it installs a global npm package
9
+ *
10
+ * @returns `true` when the harness has been installed, `false` when the installation failed
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export declare function $installHarness(definition: HarnessDefinition): Promise<boolean>;
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Reads the version of the globally installed harness command.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it runs the harness command
6
+ *
7
+ * @returns The installed version or `null` when the harness command is not available globally
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $resolveInstalledHarnessVersion(definition: HarnessDefinition): Promise<string | null>;
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Reads the newest version of the harness published to npm.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it queries the npm registry
6
+ *
7
+ * @returns The newest published version or `null` when the registry could not be reached
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $resolveLatestHarnessVersion(definition: HarnessDefinition): Promise<string | null>;
@@ -0,0 +1,40 @@
1
+ import type { PromptRunnerHarnessName } from '../promptRunnerCliOptions';
2
+ /**
3
+ * Static description of one supported CLI coding harness.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type HarnessDefinition = {
8
+ /**
9
+ * Harness identifier used by the `--harness` option.
10
+ */
11
+ readonly harnessName: PromptRunnerHarnessName;
12
+ /**
13
+ * Human-readable harness name shown in the terminal.
14
+ */
15
+ readonly label: string;
16
+ /**
17
+ * Globally installed command which runs the harness.
18
+ */
19
+ readonly commandName: string;
20
+ /**
21
+ * Npm package which installs the harness command globally.
22
+ */
23
+ readonly npmPackageName: string;
24
+ /**
25
+ * Extra environment variables required by the global npm installation of this harness.
26
+ */
27
+ readonly npmInstallEnvironment?: Readonly<Record<string, string>>;
28
+ };
29
+ /**
30
+ * Single source of truth about how each supported CLI coding harness is installed and detected.
31
+ *
32
+ * @private internal utility of `promptbookCli`
33
+ */
34
+ export declare const HARNESS_DEFINITIONS: Readonly<Record<PromptRunnerHarnessName, HarnessDefinition>>;
35
+ /**
36
+ * Looks up the definition of one supported CLI coding harness.
37
+ *
38
+ * @private internal utility of `promptbookCli`
39
+ */
40
+ export declare function getHarnessDefinition(harnessName: PromptRunnerHarnessName): HarnessDefinition;
@@ -0,0 +1,35 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Result of comparing the globally installed harness version with the newest published one.
4
+ *
5
+ * - `up-to-date` the newest published version is installed
6
+ * - `outdated` an older version is installed
7
+ * - `not-installed` the harness command is not available globally
8
+ * - `unknown` the harness is installed but the newest published version could not be resolved, for example when offline
9
+ *
10
+ * @private internal utility of `promptbookCli`
11
+ */
12
+ export type HarnessInstallationState = 'up-to-date' | 'outdated' | 'not-installed' | 'unknown';
13
+ /**
14
+ * Installation state of one CLI coding harness on the current machine.
15
+ *
16
+ * @private internal utility of `promptbookCli`
17
+ */
18
+ export type HarnessInstallationStatus = {
19
+ /**
20
+ * Harness the status belongs to.
21
+ */
22
+ readonly definition: HarnessDefinition;
23
+ /**
24
+ * Comparison of the installed version with the newest published one.
25
+ */
26
+ readonly installationState: HarnessInstallationState;
27
+ /**
28
+ * Version of the globally installed harness command or `null` when the harness is not installed.
29
+ */
30
+ readonly installedVersion: string | null;
31
+ /**
32
+ * Newest version published to npm or `null` when it could not be resolved.
33
+ */
34
+ readonly latestVersion: string | null;
35
+ };
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Builds the shell command which installs or updates one CLI coding harness globally.
4
+ *
5
+ * The very same command is executed by `$installHarness` and printed as the manual fallback,
6
+ * so the user always sees exactly what Promptbook would run.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function buildHarnessInstallCommand(definition: HarnessDefinition): string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Extracts the version from the raw output of a harness `--version` command.
3
+ *
4
+ * Harness CLIs print their version in many shapes, for example `2.1.199 (Claude Code)`,
5
+ * `codex-cli 0.144.4`, `GitHub Copilot CLI 1.0.61.` or after unrelated deprecation warning lines,
6
+ * so the first version-looking token of the first matching line wins.
7
+ *
8
+ * @returns The parsed version or `null` when the output contains no version
9
+ * @private internal utility of `promptbookCli`
10
+ */
11
+ export declare function extractHarnessVersionFromOutput(output: string): string | null;
@@ -0,0 +1,7 @@
1
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
2
+ /**
3
+ * Formats the warning shown when a harness is missing or outdated.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function formatHarnessInstallationWarning(status: HarnessInstallationStatus): string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Compares the installed harness version with the newest version published to npm.
3
+ *
4
+ * Only the numeric `major.minor.patch` segments are compared and pre-release suffixes are ignored,
5
+ * so a harness installed from a pre-release build of the newest version is not reported as outdated.
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function isHarnessVersionOutdated(installedVersion: string, latestVersion: string): boolean;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Builds a Supabase `.or()` filter that matches an agent by its human-readable name or its permanent id.
3
+ *
4
+ * The human-readable `agentName` is matched exactly, while the `permanentId` is matched
5
+ * case-insensitively (via `ilike`) so that the same permanent id resolves to the same agent
6
+ * regardless of the letter casing used in the URL.
7
+ *
8
+ * Supabase/PostgREST filters expect values to be URL-encoded so that characters like spaces or
9
+ * punctuation do not break the query syntax (e.g. `agentName.eq.AI Team`). The permanent-id value is
10
+ * additionally `LIKE`-escaped so that a name containing wildcard characters cannot be interpreted as
11
+ * a pattern.
12
+ *
13
+ * @param agentNameOrPermanentId - Agent name or stable permanent identifier to match.
14
+ * @returns `.or()` filter string safe to pass to Supabase.
15
+ *
16
+ * @private internal helper shared by `AgentCollectionInSupabase` and the Agents Server agent lookups
17
+ */
18
+ export declare function buildAgentNameOrPermanentIdFilter(agentNameOrPermanentId: string): string;