@promptbook/utils 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.
- package/README.md +76 -44
- package/esm/index.es.js +9 -11
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/core.index.d.ts +22 -2
- package/esm/src/_packages/node.index.d.ts +40 -0
- package/esm/src/_packages/types.index.d.ts +20 -0
- package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
- package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
- package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/esm/src/book-3.0/CliAgent.d.ts +66 -0
- package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
- package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/esm/src/cli/cli-commands/agent.d.ts +14 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
- package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
- package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
- package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/esm/src/commitments/index.d.ts +2 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -2
- package/umd/index.umd.js +13 -13
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/core.index.d.ts +22 -2
- package/umd/src/_packages/node.index.d.ts +40 -0
- package/umd/src/_packages/types.index.d.ts +20 -0
- package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
- package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
- package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/umd/src/book-3.0/CliAgent.d.ts +66 -0
- package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
- package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/umd/src/cli/cli-commands/agent.d.ts +14 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
- package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
- package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
- package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/umd/src/commitments/index.d.ts +2 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-compatible stub for `createDeprecatedCommitmentDiagnostics`.
|
|
3
|
+
*
|
|
4
|
+
* In the browser build the full Node.js implementation is not available,
|
|
5
|
+
* so this stub always returns an empty array to keep the editor functional.
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `BookEditorMonaco`
|
|
8
|
+
*/
|
|
9
|
+
export declare function createDeprecatedCommitmentDiagnostics(_agentSource?: string): [];
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import type { editor } from 'monaco-editor';
|
|
2
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
2
3
|
/**
|
|
3
4
|
* Type describing monaco editor.
|
|
4
5
|
*/
|
|
5
6
|
type MonacoEditor = typeof import('monaco-editor');
|
|
6
|
-
/**
|
|
7
|
-
* Resolved visual theme supported by the Book editor.
|
|
8
|
-
*
|
|
9
|
-
* @private function of BookEditorMonaco
|
|
10
|
-
*/
|
|
11
|
-
type BookEditorTheme = 'LIGHT' | 'DARK';
|
|
12
7
|
/**
|
|
13
8
|
* Props for use book editor monaco language.
|
|
14
9
|
*/
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { editor } from 'monaco-editor';
|
|
2
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
2
3
|
/**
|
|
3
4
|
* Type describing monaco editor.
|
|
4
5
|
*/
|
|
5
6
|
type MonacoEditor = typeof import('monaco-editor');
|
|
6
|
-
/**
|
|
7
|
-
* Resolved visual theme supported by the Book editor.
|
|
8
|
-
*/
|
|
9
|
-
type BookEditorTheme = 'LIGHT' | 'DARK';
|
|
10
7
|
/**
|
|
11
8
|
* Props for use book editor monaco lifecycle.
|
|
12
9
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookEditorTheme } from './BookEditorTheme';
|
|
1
2
|
/**
|
|
2
3
|
* Props for use book editor monaco styles.
|
|
3
4
|
*/
|
|
@@ -7,7 +8,7 @@ type UseBookEditorMonacoStylesProps = {
|
|
|
7
8
|
readonly scaledContentPaddingLeft: number;
|
|
8
9
|
readonly scaledVerticalLineLeft: number;
|
|
9
10
|
readonly zoomLevel: number;
|
|
10
|
-
readonly theme:
|
|
11
|
+
readonly theme: BookEditorTheme;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* Injects notebook-inspired styling that is unique per `BookEditorMonaco` instance.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
2
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
2
3
|
import type { ParsedCitation } from '../utils/parseCitationsFromContent';
|
|
3
4
|
import type { ChatSoundSystem } from './ChatProps';
|
|
4
5
|
/**
|
|
@@ -10,6 +11,7 @@ export type ChatCitationModalProps = {
|
|
|
10
11
|
isOpen: boolean;
|
|
11
12
|
citation: ParsedCitation | null;
|
|
12
13
|
participants: ReadonlyArray<ChatParticipant>;
|
|
14
|
+
resolveCitationLabel?: CitationLabelResolver;
|
|
13
15
|
soundSystem?: ChatSoundSystem;
|
|
14
16
|
onClose: () => void;
|
|
15
17
|
};
|
|
@@ -38,6 +38,10 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'on
|
|
|
38
38
|
* Optional localized labels used by timestamp metadata.
|
|
39
39
|
*/
|
|
40
40
|
timingTranslations?: ChatProps['timingTranslations'];
|
|
41
|
+
/**
|
|
42
|
+
* Optional resolver for turning technical citation sources into page/document titles.
|
|
43
|
+
*/
|
|
44
|
+
resolveCitationLabel?: ChatProps['resolveCitationLabel'];
|
|
41
45
|
/**
|
|
42
46
|
* Optional moment locale used to format message timestamps.
|
|
43
47
|
*/
|
|
@@ -32,6 +32,10 @@ export type ChatMessageListProps = {
|
|
|
32
32
|
* Optional localized labels used by timestamp metadata.
|
|
33
33
|
*/
|
|
34
34
|
timingTranslations?: ChatProps['timingTranslations'];
|
|
35
|
+
/**
|
|
36
|
+
* Optional resolver for turning technical citation sources into page/document titles.
|
|
37
|
+
*/
|
|
38
|
+
resolveCitationLabel?: ChatProps['resolveCitationLabel'];
|
|
35
39
|
/**
|
|
36
40
|
* Optional moment locale used to format message timestamps.
|
|
37
41
|
*/
|
|
@@ -8,6 +8,7 @@ import type { AgentChipData } from '../AgentChip/AgentChip';
|
|
|
8
8
|
import type { string_chat_format_name } from '../save/_common/string_chat_format_name';
|
|
9
9
|
import type { ChatMessage } from '../types/ChatMessage';
|
|
10
10
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
11
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
11
12
|
import type { ChatSaveFormatHandlerMap } from '../save/_common/ChatSaveFormatHandler';
|
|
12
13
|
/**
|
|
13
14
|
* Response data returned by the optional `onFeedback` handler.
|
|
@@ -715,6 +716,10 @@ export type ChatProps = {
|
|
|
715
716
|
* Optional localized labels used by timestamp metadata shown under messages.
|
|
716
717
|
*/
|
|
717
718
|
readonly timingTranslations?: ChatTimingTranslations;
|
|
719
|
+
/**
|
|
720
|
+
* Optional resolver for turning technical citation sources into page/document titles.
|
|
721
|
+
*/
|
|
722
|
+
readonly resolveCitationLabel?: CitationLabelResolver;
|
|
718
723
|
/**
|
|
719
724
|
* Optional localized labels for general Chat UI elements such as button labels,
|
|
720
725
|
* lifecycle state badges, tool call modal strings, and the default input placeholder.
|
|
@@ -3,6 +3,7 @@ import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
|
3
3
|
import type { AgentChipData } from '../AgentChip/AgentChip';
|
|
4
4
|
import type { ChatMessage } from '../types/ChatMessage';
|
|
5
5
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
6
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
6
7
|
/**
|
|
7
8
|
* Props for the tool call details modal.
|
|
8
9
|
*
|
|
@@ -20,6 +21,7 @@ export type ChatToolCallModalProps = {
|
|
|
20
21
|
toolCallIdentity?: string | null;
|
|
21
22
|
onClose: () => void;
|
|
22
23
|
toolTitles?: Record<string, string>;
|
|
24
|
+
resolveCitationLabel?: CitationLabelResolver;
|
|
23
25
|
agentParticipant?: ChatParticipant;
|
|
24
26
|
buttonColor: WithTake<Color>;
|
|
25
27
|
/**
|
|
@@ -3,6 +3,7 @@ import { Color } from '../../../utils/color/Color';
|
|
|
3
3
|
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
4
4
|
import type { ChatMessage } from '../types/ChatMessage';
|
|
5
5
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
6
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
6
7
|
import type { TeamToolCallSummary, TransitiveToolCall } from '../utils/collectTeamToolCallSummary';
|
|
7
8
|
import type { AgentProfileData } from '../utils/loadAgentProfile';
|
|
8
9
|
import type { TeamToolResult } from '../utils/toolCallParsing/TeamToolResult';
|
|
@@ -27,6 +28,7 @@ type ChatToolCallModalContentProps = {
|
|
|
27
28
|
readonly isAdvancedView: boolean;
|
|
28
29
|
readonly locale?: string;
|
|
29
30
|
readonly mode: 'LIGHT' | 'DARK';
|
|
31
|
+
readonly resolveCitationLabel?: CitationLabelResolver;
|
|
30
32
|
readonly onClearSelectedTeamToolCall: () => void;
|
|
31
33
|
readonly onRequestAdvancedView: () => void;
|
|
32
34
|
readonly onSelectTeamToolCall: (toolCall: TransitiveToolCall) => void;
|
|
@@ -43,5 +45,5 @@ type ChatToolCallModalContentProps = {
|
|
|
43
45
|
*
|
|
44
46
|
* @private component of `ChatToolCallModal`
|
|
45
47
|
*/
|
|
46
|
-
export declare function ChatToolCallModalContent({ agentParticipant, availableTools, buttonColor, chatUiTranslations, focusedToolCall, isAdvancedView, locale, mode, onClearSelectedTeamToolCall, onRequestAdvancedView, onSelectTeamToolCall, selectedTeamToolCall, teamProfiles, teamResult, teamToolCallSummary, toolCall, toolCallDate, toolTitles, }: ChatToolCallModalContentProps): ReactElement;
|
|
48
|
+
export declare function ChatToolCallModalContent({ agentParticipant, availableTools, buttonColor, chatUiTranslations, focusedToolCall, isAdvancedView, locale, mode, resolveCitationLabel, onClearSelectedTeamToolCall, onRequestAdvancedView, onSelectTeamToolCall, selectedTeamToolCall, teamProfiles, teamResult, teamToolCallSummary, toolCall, toolCallDate, toolTitles, }: ChatToolCallModalContentProps): ReactElement;
|
|
47
49
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the citation iframe preview component.
|
|
3
|
+
*
|
|
4
|
+
* @private component of `<ChatCitationModal/>`
|
|
5
|
+
*/
|
|
6
|
+
export type CitationIframePreviewProps = {
|
|
7
|
+
src: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Renders a citation URL preview as an iframe when the target page allows embedding,
|
|
12
|
+
* or falls back to a server-side screenshot with an "Open in new tab" link when it
|
|
13
|
+
* does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
|
|
14
|
+
*
|
|
15
|
+
* Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
|
|
16
|
+
* If that endpoint is unavailable the component falls back to the iframe directly.
|
|
17
|
+
*
|
|
18
|
+
* @private component of `<ChatCitationModal/>`
|
|
19
|
+
*/
|
|
20
|
+
export declare function CitationIframePreview({ src, title }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { type ReactElement } from 'react';
|
|
|
2
2
|
import { Color } from '../../../utils/color/Color';
|
|
3
3
|
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
4
4
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
5
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
5
6
|
import type { TeamToolCallSummary, TransitiveToolCall } from '../utils/collectTeamToolCallSummary';
|
|
6
7
|
import type { AgentProfileData } from '../utils/loadAgentProfile';
|
|
7
8
|
import type { TeamToolResult } from '../utils/toolCallParsing/TeamToolResult';
|
|
@@ -19,6 +20,7 @@ type TeamToolCallModalContentOptions = {
|
|
|
19
20
|
onClearSelectedTeamToolCall: () => void;
|
|
20
21
|
teamProfiles: Record<string, AgentProfileData>;
|
|
21
22
|
toolTitles?: Record<string, string>;
|
|
23
|
+
resolveCitationLabel?: CitationLabelResolver;
|
|
22
24
|
agentParticipant?: ChatParticipant;
|
|
23
25
|
buttonColor: WithTake<Color>;
|
|
24
26
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
1
2
|
import type { ParsedCitation } from '../utils/parseCitationsFromContent';
|
|
2
3
|
/**
|
|
3
4
|
* Props for SourceChip component
|
|
@@ -19,6 +20,10 @@ export type SourceChipProps = {
|
|
|
19
20
|
* Optional suffix text to display after the citation label.
|
|
20
21
|
*/
|
|
21
22
|
suffix?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional resolver for richer citation labels.
|
|
25
|
+
*/
|
|
26
|
+
resolveCitationLabel?: CitationLabelResolver;
|
|
22
27
|
/**
|
|
23
28
|
* Controls whether the technical citation id is shown inside the chip label.
|
|
24
29
|
*/
|
|
@@ -41,4 +46,4 @@ export type SourceChipProps = {
|
|
|
41
46
|
*
|
|
42
47
|
* @private utility of `ChatMessageItem` component
|
|
43
48
|
*/
|
|
44
|
-
export declare function SourceChip({ citation, onClick, className, suffix, isCitationIdVisible }: SourceChipProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare function SourceChip({ citation, onClick, className, suffix, resolveCitationLabel, isCitationIdVisible, }: SourceChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CitationLabelResolver } from '../types/CitationLabelResolver';
|
|
2
|
+
import type { ParsedCitation } from '../utils/parseCitationsFromContent';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the best available label for one citation.
|
|
5
|
+
*
|
|
6
|
+
* @param citation - Citation metadata.
|
|
7
|
+
* @param resolveCitationLabel - Optional async host resolver.
|
|
8
|
+
* @returns Current label, starting with a synchronous fallback and updating when the resolver finishes.
|
|
9
|
+
*
|
|
10
|
+
* @private hook of `<Chat/>`
|
|
11
|
+
*/
|
|
12
|
+
export declare function useResolvedCitationLabel(citation: ParsedCitation, resolveCitationLabel?: CitationLabelResolver): string;
|
|
@@ -254,6 +254,10 @@ export type ChatMessage = Omit<Message<id>, 'direction' | 'recipients' | 'thread
|
|
|
254
254
|
* Optional URL to the source document
|
|
255
255
|
*/
|
|
256
256
|
url?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Optional human-readable source title.
|
|
259
|
+
*/
|
|
260
|
+
title?: string;
|
|
257
261
|
/**
|
|
258
262
|
* Optional preview/excerpt from the source
|
|
259
263
|
*/
|
|
@@ -47,7 +47,7 @@ export type ChatParticipant = {
|
|
|
47
47
|
* Knowledge sources (documents, URLs) used by the agent
|
|
48
48
|
* Used for resolving document citations when the agent references sources
|
|
49
49
|
*/
|
|
50
|
-
knowledgeSources?:
|
|
50
|
+
knowledgeSources?: ReadonlyArray<{
|
|
51
51
|
url: string;
|
|
52
52
|
filename: string;
|
|
53
53
|
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Promisable } from 'type-fest';
|
|
2
|
+
import type { ParsedCitation } from '../utils/parseCitationsFromContent';
|
|
3
|
+
/**
|
|
4
|
+
* Optional host-provided resolver for citation display labels.
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/components`
|
|
7
|
+
*/
|
|
8
|
+
export type CitationLabelResolver = (citation: ParsedCitation) => Promisable<string | null | undefined>;
|
|
@@ -37,3 +37,12 @@ export declare function getCitationLabel(citation: ParsedCitation): string;
|
|
|
37
37
|
* @private utility of `<Chat/>` citation rendering
|
|
38
38
|
*/
|
|
39
39
|
export declare function resolveCitationPreviewUrl(citation: ParsedCitation, participants: ReadonlyArray<ChatParticipant>): string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a readable fallback label from a citation source when no title metadata is available.
|
|
42
|
+
*
|
|
43
|
+
* @param source - Raw citation source value.
|
|
44
|
+
* @returns Human-friendly source label.
|
|
45
|
+
*
|
|
46
|
+
* @private utility of `<Chat/>` citation rendering
|
|
47
|
+
*/
|
|
48
|
+
export declare function createReadableCitationSourceLabel(source: string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { string_markdown } from '../../../types/string_markdown';
|
|
2
|
+
/**
|
|
3
|
+
* Decodes JSON-style Unicode escape sequences in markdown prose while preserving code.
|
|
4
|
+
*
|
|
5
|
+
* Model/tool output can occasionally arrive as already JSON-escaped text, which makes
|
|
6
|
+
* natural-language replies render `\u00fd` instead of the decoded character. This
|
|
7
|
+
* keeps code examples intact by skipping fenced code blocks and inline code spans.
|
|
8
|
+
*
|
|
9
|
+
* @param markdown - Markdown chat content to normalize for display.
|
|
10
|
+
* @returns Markdown chat content with non-ASCII JSON Unicode escapes decoded.
|
|
11
|
+
*
|
|
12
|
+
* @private internal utility of `<Chat/>`
|
|
13
|
+
*/
|
|
14
|
+
export declare function decodeJsonUnicodeEscapesInMarkdownText(markdown: string_markdown): string_markdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ToolCall } from '../../../types/ToolCall';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when one tool call represents a user-facing action.
|
|
4
|
+
*
|
|
5
|
+
* @param toolCall - Tool call candidate.
|
|
6
|
+
* @returns Whether the tool call should be visible in chat progress and chips.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of `<Chat/>`
|
|
9
|
+
*/
|
|
10
|
+
export declare function isVisibleChatToolCall(toolCall: Pick<ToolCall, 'name'>): boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { NormalizedPromptRunnerSelectionCliOptions, PromptRunnerSelectionCliOptions } from '../common/promptRunnerCliOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Commander option bag shared by `ptbk agent` subcommands.
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `ptbk agent`
|
|
7
|
+
*/
|
|
8
|
+
export type AgentCommandCliOptions = PromptRunnerSelectionCliOptions & {
|
|
9
|
+
readonly agent?: string;
|
|
10
|
+
readonly context?: string;
|
|
11
|
+
readonly message?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Normalized shared options used by local `ptbk agent` subcommands.
|
|
15
|
+
*
|
|
16
|
+
* @private internal utility of `ptbk agent`
|
|
17
|
+
*/
|
|
18
|
+
export type NormalizedAgentCommandRunnerOptions = NormalizedPromptRunnerSelectionCliOptions & {
|
|
19
|
+
readonly isVerbose: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Normalizes shared runner flags for local agent subcommands.
|
|
23
|
+
*
|
|
24
|
+
* @private internal utility of `ptbk agent`
|
|
25
|
+
*/
|
|
26
|
+
export declare function normalizeAgentCommandRunnerOptions(cliOptions: AgentCommandCliOptions, command: Program): NormalizedAgentCommandRunnerOptions;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the required agent book path from Commander options.
|
|
29
|
+
*
|
|
30
|
+
* @private internal utility of `ptbk agent`
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveRequiredAgentPath(cliOptions: AgentCommandCliOptions): string;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the required single-turn user message from Commander options.
|
|
35
|
+
*
|
|
36
|
+
* @private internal utility of `ptbk agent`
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveRequiredAgentMessage(cliOptions: AgentCommandCliOptions): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `agent chat` 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 $initializeAgentChatCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `agent exec` 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 $initializeAgentExecCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* @private internal utility of `ptbk agent-folder`
|
|
5
|
-
*/
|
|
6
|
-
export declare const AGENT_BOOK_FILE_PATH = "agent.book";
|
|
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, };
|
|
7
3
|
/**
|
|
8
4
|
* Relative path to local knowledge files initialized by `ptbk agent-folder init`.
|
|
9
5
|
*
|
|
10
6
|
* @private internal utility of `ptbk agent-folder`
|
|
11
7
|
*/
|
|
12
8
|
export declare const AGENT_KNOWLEDGE_DIRECTORY_PATH = "knowledge";
|
|
13
|
-
/**
|
|
14
|
-
* Relative path to the message queue root initialized by `ptbk agent-folder init`.
|
|
15
|
-
*
|
|
16
|
-
* @private internal utility of `ptbk agent-folder`
|
|
17
|
-
*/
|
|
18
|
-
export declare const AGENT_MESSAGES_DIRECTORY_PATH = "messages";
|
|
19
|
-
/**
|
|
20
|
-
* Relative path to queued user messages consumed by `ptbk agent-folder run-once`.
|
|
21
|
-
*
|
|
22
|
-
* @private internal utility of `ptbk agent-folder`
|
|
23
|
-
*/
|
|
24
|
-
export declare const AGENT_QUEUED_MESSAGES_DIRECTORY_PATH: string;
|
|
25
|
-
/**
|
|
26
|
-
* Relative path to answered messages written by `ptbk agent-folder run-once`.
|
|
27
|
-
*
|
|
28
|
-
* @private internal utility of `ptbk agent-folder`
|
|
29
|
-
*/
|
|
30
|
-
export declare const AGENT_FINISHED_MESSAGES_DIRECTORY_PATH: string;
|
|
31
9
|
/**
|
|
32
10
|
* Relative path to generated local agent documentation initialized by `ptbk agent-folder init`.
|
|
33
11
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `agent` command with subcommands for Promptbook CLI utilities.
|
|
5
|
+
*
|
|
6
|
+
* The agent command runs one `.book` source directly through a selected CLI harness:
|
|
7
|
+
* - chat: Run an interactive terminal chat session
|
|
8
|
+
* - exec: Send one message and print the response
|
|
9
|
+
*
|
|
10
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
11
|
+
*
|
|
12
|
+
* @private internal function of `promptbookCli`
|
|
13
|
+
*/
|
|
14
|
+
export declare function $initializeAgentCommand(program: Program): $side_effect;
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
* @private internal constant of `ptbk agents-server`
|
|
7
7
|
*/
|
|
8
8
|
export declare const PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV = "PTBK_AGENTS_SERVER_NODE_MODULES_PATH";
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable consumed by `apps/agents-server/next.config.ts` to throttle build workers.
|
|
11
|
+
*
|
|
12
|
+
* @private internal constant of `ptbk agents-server`
|
|
13
|
+
*/
|
|
14
|
+
export declare const PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV = "PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT";
|
|
9
15
|
/**
|
|
10
16
|
* Environment variable used only by the CLI-owned production build.
|
|
11
17
|
*
|
|
@@ -34,6 +40,14 @@ export type AgentsServerBuildArtifacts = {
|
|
|
34
40
|
readonly nodeModulesPath: string;
|
|
35
41
|
readonly nextCliPath: string;
|
|
36
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Runtime paths resolved for Agents Server commands before choosing build or dev execution.
|
|
45
|
+
*
|
|
46
|
+
* @private internal type of `ptbk agents-server`
|
|
47
|
+
*/
|
|
48
|
+
export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
|
|
49
|
+
readonly isAppPathMaterialized: boolean;
|
|
50
|
+
};
|
|
37
51
|
/**
|
|
38
52
|
* Input paths required to validate or update the cached Agents Server build.
|
|
39
53
|
*
|
|
@@ -48,7 +62,15 @@ type AgentsServerBuildCacheOptions = {
|
|
|
48
62
|
*
|
|
49
63
|
* @private internal utility of `ptbk agents-server`
|
|
50
64
|
*/
|
|
51
|
-
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<
|
|
65
|
+
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
|
|
66
|
+
/**
|
|
67
|
+
* Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
|
|
68
|
+
*
|
|
69
|
+
* @private internal utility of `ptbk agents-server`
|
|
70
|
+
*/
|
|
71
|
+
export declare function prepareAgentsServerRuntime(options?: {
|
|
72
|
+
readonly appPath?: string;
|
|
73
|
+
}): Promise<PreparedAgentsServerRuntime>;
|
|
52
74
|
/**
|
|
53
75
|
* Returns true when the production build marker and source fingerprint still match.
|
|
54
76
|
*
|
|
@@ -6,6 +6,12 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
6
6
|
* @private internal function of `promptbookCli`
|
|
7
7
|
*/
|
|
8
8
|
export declare function $initializeAgentsServerStartCommand(program: Program): $side_effect;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes `agents-server dev` command for Promptbook CLI utilities.
|
|
11
|
+
*
|
|
12
|
+
* @private internal function of `promptbookCli`
|
|
13
|
+
*/
|
|
14
|
+
export declare function $initializeAgentsServerDevCommand(program: Program): $side_effect;
|
|
9
15
|
/**
|
|
10
16
|
* Initializes `agents-server build` command for Promptbook CLI utilities.
|
|
11
17
|
*
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ThinkingLevel } from '../coder/ThinkingLevel';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
|
|
3
3
|
import type { number_port } from '../../../types/number_positive';
|
|
4
|
+
/**
|
|
5
|
+
* Next runtime mode supported by the local Agents Server foreground launcher.
|
|
6
|
+
*
|
|
7
|
+
* @private internal type of `ptbk agents-server`
|
|
8
|
+
*/
|
|
9
|
+
export type AgentsServerNextRuntimeMode = 'start' | 'dev';
|
|
4
10
|
/**
|
|
5
11
|
* Options required to start the foreground Agents Server service group.
|
|
6
12
|
*
|
|
@@ -8,11 +14,12 @@ import type { number_port } from '../../../types/number_positive';
|
|
|
8
14
|
*/
|
|
9
15
|
export type StartAgentsServerOptions = {
|
|
10
16
|
readonly port: number_port;
|
|
11
|
-
readonly agentName:
|
|
17
|
+
readonly agentName: PromptRunnerHarnessName;
|
|
12
18
|
readonly model?: string;
|
|
13
19
|
readonly noUi: boolean;
|
|
14
20
|
readonly thinkingLevel?: ThinkingLevel;
|
|
15
21
|
readonly allowCredits: boolean;
|
|
22
|
+
readonly nextRuntimeMode: AgentsServerNextRuntimeMode;
|
|
16
23
|
readonly isBuildForced: boolean;
|
|
17
24
|
};
|
|
18
25
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @private internal shared utility of `ptbk coder run`
|
|
5
5
|
*/
|
|
6
|
-
export declare const THINKING_LEVEL_VALUES: readonly ["low", "medium", "high", "xhigh"];
|
|
6
|
+
export declare const THINKING_LEVEL_VALUES: readonly ["low", "medium", "high", "xhigh", "max"];
|
|
7
7
|
/**
|
|
8
8
|
* Supported reasoning effort values for coding-agent runners with configurable thinking levels.
|
|
9
9
|
*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Relative directory path for agents initialized by `ptbk coder init`.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `coder init` command
|
|
6
|
+
*/
|
|
7
|
+
export declare const CODER_AGENTS_DIRECTORY_PATH = "agents";
|
|
8
|
+
/**
|
|
9
|
+
* Relative file path to the default developer agent initialized by `ptbk coder init`.
|
|
10
|
+
*
|
|
11
|
+
* @private internal utility of `coder init` command
|
|
12
|
+
*/
|
|
13
|
+
export declare const CODER_DEVELOPER_AGENT_FILE_PATH = "agents/developer.book";
|
|
14
|
+
/**
|
|
15
|
+
* Source file path of the bundled developer agent inside the Promptbook repository.
|
|
16
|
+
*
|
|
17
|
+
* @private internal utility of `coder init` command
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_CODER_DEVELOPER_AGENT_SOURCE_FILE_PATH = "agents/default/developer.book";
|
|
20
|
+
/**
|
|
21
|
+
* Ensures the default developer agent exists in the initialized project.
|
|
22
|
+
*
|
|
23
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
24
|
+
*/
|
|
25
|
+
export declare function ensureCoderDeveloperAgentFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder find-unwritten` 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 $initializeCoderFindUnwrittenCommand(program: Program): $side_effect;
|