@promptbook/cli 0.112.0-36 → 0.112.0-39
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 +10 -6
- package/esm/index.es.js +1079 -437
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/find-refactor-candidates/RefactorCandidateLevel.d.ts +45 -0
- package/esm/scripts/find-refactor-candidates/analyzeSourceFileForRefactorCandidate.d.ts +5 -0
- package/esm/scripts/find-refactor-candidates/find-refactor-candidates.constants.d.ts +2 -14
- package/esm/scripts/find-refactor-candidates/find-refactor-candidates.d.ts +13 -1
- package/esm/scripts/find-refactor-candidates/findRefactorCandidatesInProject.d.ts +23 -1
- package/esm/scripts/find-refactor-candidates/resolveRefactorCandidateProject.d.ts +23 -0
- package/esm/src/_packages/components.index.d.ts +2 -0
- package/esm/src/_packages/types.index.d.ts +48 -46
- package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +7 -0
- package/esm/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +8 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +50 -1
- package/esm/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
- package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +2 -2
- package/esm/src/book-components/Chat/MockedChat/MockedChat.d.ts +1 -1
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +35 -0
- package/esm/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
- package/esm/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder/appendBlock.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/init.d.ts +3 -38
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
- package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
- package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/readTextFileIfExists.d.ts +6 -0
- package/esm/src/types/string_agent_url.d.ts +7 -0
- package/esm/src/types/string_agent_url_private.d.ts +9 -0
- package/esm/src/types/string_base64.d.ts +13 -0
- package/esm/src/types/string_base64_private.d.ts +2 -2
- package/esm/src/types/string_base_url.d.ts +7 -0
- package/esm/src/types/string_base_url_private.d.ts +9 -0
- package/esm/src/types/string_email.d.ts +13 -0
- package/esm/src/types/string_email_private.d.ts +2 -2
- package/esm/src/types/string_host.d.ts +42 -0
- package/esm/src/types/string_host_private.d.ts +7 -7
- package/esm/src/types/string_href.d.ts +19 -0
- package/esm/src/types/string_href_private.d.ts +24 -0
- package/esm/src/types/string_mime_type.d.ts +15 -0
- package/esm/src/types/string_mime_type_private.d.ts +2 -2
- package/esm/src/types/string_pipeline_root_url.d.ts +7 -0
- package/esm/src/types/string_pipeline_root_url_private.d.ts +9 -0
- package/esm/src/types/string_pipeline_url.d.ts +13 -0
- package/esm/src/types/string_pipeline_url_private.d.ts +17 -0
- package/esm/src/types/string_promptbook_server_url.d.ts +7 -0
- package/esm/src/types/string_promptbook_server_url_private.d.ts +9 -0
- package/esm/src/types/string_url.d.ts +14 -141
- package/esm/src/types/string_url_image.d.ts +7 -0
- package/esm/src/types/string_url_image_private.d.ts +9 -0
- package/esm/src/types/string_url_private.d.ts +0 -80
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -1
- package/umd/index.umd.js +1082 -440
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/find-refactor-candidates/RefactorCandidateLevel.d.ts +45 -0
- package/umd/scripts/find-refactor-candidates/analyzeSourceFileForRefactorCandidate.d.ts +5 -0
- package/umd/scripts/find-refactor-candidates/find-refactor-candidates.constants.d.ts +2 -14
- package/umd/scripts/find-refactor-candidates/find-refactor-candidates.d.ts +13 -1
- package/umd/scripts/find-refactor-candidates/findRefactorCandidatesInProject.d.ts +23 -1
- package/umd/scripts/find-refactor-candidates/resolveRefactorCandidateProject.d.ts +23 -0
- package/umd/src/_packages/components.index.d.ts +2 -0
- package/umd/src/_packages/types.index.d.ts +48 -46
- package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +7 -0
- package/umd/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +8 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +50 -1
- package/umd/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
- package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +2 -2
- package/umd/src/book-components/Chat/MockedChat/MockedChat.d.ts +1 -1
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +35 -0
- package/umd/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
- package/umd/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder/appendBlock.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/init.d.ts +3 -38
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
- package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
- package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/readTextFileIfExists.d.ts +6 -0
- package/umd/src/types/string_agent_url.d.ts +7 -0
- package/umd/src/types/string_agent_url_private.d.ts +9 -0
- package/umd/src/types/string_base64.d.ts +13 -0
- package/umd/src/types/string_base64_private.d.ts +2 -2
- package/umd/src/types/string_base_url.d.ts +7 -0
- package/umd/src/types/string_base_url_private.d.ts +9 -0
- package/umd/src/types/string_email.d.ts +13 -0
- package/umd/src/types/string_email_private.d.ts +2 -2
- package/umd/src/types/string_host.d.ts +42 -0
- package/umd/src/types/string_host_private.d.ts +7 -7
- package/umd/src/types/string_href.d.ts +19 -0
- package/umd/src/types/string_href_private.d.ts +24 -0
- package/umd/src/types/string_mime_type.d.ts +15 -0
- package/umd/src/types/string_mime_type_private.d.ts +2 -2
- package/umd/src/types/string_pipeline_root_url.d.ts +7 -0
- package/umd/src/types/string_pipeline_root_url_private.d.ts +9 -0
- package/umd/src/types/string_pipeline_url.d.ts +13 -0
- package/umd/src/types/string_pipeline_url_private.d.ts +17 -0
- package/umd/src/types/string_promptbook_server_url.d.ts +7 -0
- package/umd/src/types/string_promptbook_server_url_private.d.ts +9 -0
- package/umd/src/types/string_url.d.ts +14 -141
- package/umd/src/types/string_url_image.d.ts +7 -0
- package/umd/src/types/string_url_image_private.d.ts +9 -0
- package/umd/src/types/string_url_private.d.ts +0 -80
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
2
|
+
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the human-readable sender label shown in reply previews.
|
|
5
|
+
*
|
|
6
|
+
* @private helper for chat reply previews
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveChatMessageReplySenderLabel(options: {
|
|
9
|
+
sender: ChatMessage['sender'];
|
|
10
|
+
participants?: ReadonlyArray<ChatParticipant>;
|
|
11
|
+
fallbackLabel?: string;
|
|
12
|
+
}): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relative path to the Promptbook Coder quick-reference file initialized in project roots.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `ptbk coder`
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_CODING_FILE_PATH = "AGENT_CODING.md";
|
|
7
|
+
/**
|
|
8
|
+
* Returns the default coder `AGENT_CODING.md` quick-reference content.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility of `ptbk coder`
|
|
11
|
+
*/
|
|
12
|
+
export declare function getDefaultCoderAgentCodingFileContent({ packageJsonScripts, }: {
|
|
13
|
+
readonly packageJsonScripts: Readonly<Record<string, string>>;
|
|
14
|
+
}): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relative path to the shared coder context file initialized in project roots.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `ptbk coder`
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENTS_FILE_PATH = "AGENTS.md";
|
|
7
|
+
/**
|
|
8
|
+
* Returns the default coder `AGENTS.md` boilerplate instructions.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility of `ptbk coder`
|
|
11
|
+
*/
|
|
12
|
+
export declare function getDefaultCoderAgentsFileContent(): string;
|
|
@@ -50,6 +50,10 @@ export type CoderPromptTemplateDefinition = {
|
|
|
50
50
|
* Markdown content of the template.
|
|
51
51
|
*/
|
|
52
52
|
readonly content: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether `ptbk coder init` should materialize this template into project-owned files.
|
|
55
|
+
*/
|
|
56
|
+
readonly isDefaultProjectTemplate: boolean;
|
|
53
57
|
};
|
|
54
58
|
/**
|
|
55
59
|
* Result of ensuring one default coder template file exists inside a project.
|
|
@@ -99,6 +103,12 @@ export type ResolvedCoderPromptTemplate = {
|
|
|
99
103
|
* @private internal utility of `ptbk coder`
|
|
100
104
|
*/
|
|
101
105
|
export declare function getDefaultCoderPromptTemplateDefinitions(): ReadonlyArray<CoderPromptTemplateDefinition>;
|
|
106
|
+
/**
|
|
107
|
+
* Lists the built-in coder prompt templates that are safe to initialize in any project.
|
|
108
|
+
*
|
|
109
|
+
* @private internal utility of `ptbk coder`
|
|
110
|
+
*/
|
|
111
|
+
export declare function getDefaultCoderProjectPromptTemplateDefinitions(): ReadonlyArray<CoderPromptTemplateDefinition>;
|
|
102
112
|
/**
|
|
103
113
|
* Resolves one built-in coder boilerplate template definition by its stable identifier.
|
|
104
114
|
*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Result of ensuring coder environment variables inside `.env`.
|
|
4
|
+
*/
|
|
5
|
+
type EnsureCoderEnvFileResult = {
|
|
6
|
+
readonly envFileStatus: InitializationStatus;
|
|
7
|
+
readonly initializedEnvVariableNames: ReadonlyArray<string>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Ensures `.env` exists and contains all required coder environment variables.
|
|
11
|
+
*
|
|
12
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
13
|
+
*/
|
|
14
|
+
export declare function ensureCoderEnvFile(projectPath: string): Promise<EnsureCoderEnvFileResult>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures `.gitignore` contains the standalone Promptbook coder cache entry.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureCoderGitignoreFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures one coder markdown file exists with the provided default boilerplate.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureCoderMarkdownFile(projectPath: string, relativeFilePath: string, fileContent: string): Promise<InitializationStatus>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures `package.json` contains the standalone Promptbook coder helper scripts.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureCoderPackageJsonFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures VS Code routes pasted prompt images into `prompts/screenshots`.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureCoderVscodeSettingsFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures a relative directory exists in the project root.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureDirectory(projectPath: string, relativeDirectoryPath: string): Promise<InitializationStatus>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
4
|
* Initializes `coder find-refactor-candidates` command for Promptbook CLI utilities
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
type JsonObject = Record<string, unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Result summary returned after coder configuration initialization.
|
|
10
|
-
*/
|
|
11
|
-
type CoderInitializationSummary = {
|
|
12
|
-
readonly promptsDirectoryStatus: InitializationStatus;
|
|
13
|
-
readonly promptsDoneDirectoryStatus: InitializationStatus;
|
|
14
|
-
readonly promptsTemplatesDirectoryStatus: InitializationStatus;
|
|
15
|
-
readonly promptTemplateFileStatuses: ReadonlyArray<EnsuredCoderPromptTemplateFile>;
|
|
16
|
-
readonly envFileStatus: InitializationStatus;
|
|
17
|
-
readonly gitignoreFileStatus: InitializationStatus;
|
|
18
|
-
readonly packageJsonFileStatus: InitializationStatus;
|
|
19
|
-
readonly vscodeSettingsFileStatus: InitializationStatus;
|
|
20
|
-
readonly initializedEnvVariableNames: ReadonlyArray<string>;
|
|
21
|
-
};
|
|
3
|
+
export { getDefaultCoderPackageJsonScripts } from './getDefaultCoderPackageJsonScripts';
|
|
4
|
+
export { getDefaultCoderVscodeSettings } from './getDefaultCoderVscodeSettings';
|
|
5
|
+
export { initializeCoderProjectConfiguration } from './initializeCoderProjectConfiguration';
|
|
22
6
|
/**
|
|
23
7
|
* Initializes `coder init` command for Promptbook CLI utilities.
|
|
24
8
|
*
|
|
@@ -27,22 +11,3 @@ type CoderInitializationSummary = {
|
|
|
27
11
|
* @private internal function of `promptbookCli`
|
|
28
12
|
*/
|
|
29
13
|
export declare function $initializeCoderInitCommand(program: Program): $side_effect;
|
|
30
|
-
/**
|
|
31
|
-
* Lists the default npm scripts initialized by `ptbk coder init`.
|
|
32
|
-
*
|
|
33
|
-
* @private internal utility of `coder init` command
|
|
34
|
-
*/
|
|
35
|
-
export declare function getDefaultCoderPackageJsonScripts(): Readonly<Record<string, string>>;
|
|
36
|
-
/**
|
|
37
|
-
* Lists the default VS Code settings initialized by `ptbk coder init`.
|
|
38
|
-
*
|
|
39
|
-
* @private internal utility of `coder init` command
|
|
40
|
-
*/
|
|
41
|
-
export declare function getDefaultCoderVscodeSettings(): Readonly<JsonObject>;
|
|
42
|
-
/**
|
|
43
|
-
* Creates or updates all coder configuration artifacts required in the current project.
|
|
44
|
-
*
|
|
45
|
-
* @private internal utility of `coder init` command
|
|
46
|
-
*/
|
|
47
|
-
export declare function initializeCoderProjectConfiguration(projectPath: string): Promise<CoderInitializationSummary>;
|
|
48
|
-
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type EnsuredCoderPromptTemplateFile, type InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Result summary returned after coder configuration initialization.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `coder init` command
|
|
6
|
+
*/
|
|
7
|
+
export type CoderInitializationSummary = {
|
|
8
|
+
readonly promptsDirectoryStatus: InitializationStatus;
|
|
9
|
+
readonly promptsDoneDirectoryStatus: InitializationStatus;
|
|
10
|
+
readonly promptsTemplatesDirectoryStatus: InitializationStatus;
|
|
11
|
+
readonly promptTemplateFileStatuses: ReadonlyArray<EnsuredCoderPromptTemplateFile>;
|
|
12
|
+
readonly agentsFileStatus: InitializationStatus;
|
|
13
|
+
readonly agentCodingFileStatus: InitializationStatus;
|
|
14
|
+
readonly envFileStatus: InitializationStatus;
|
|
15
|
+
readonly gitignoreFileStatus: InitializationStatus;
|
|
16
|
+
readonly packageJsonFileStatus: InitializationStatus;
|
|
17
|
+
readonly vscodeSettingsFileStatus: InitializationStatus;
|
|
18
|
+
readonly initializedEnvVariableNames: ReadonlyArray<string>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Creates or updates all coder configuration artifacts required in the current project.
|
|
22
|
+
*
|
|
23
|
+
* @private internal utility of `coder init` command
|
|
24
|
+
*/
|
|
25
|
+
export declare function initializeCoderProjectConfiguration(projectPath: string): Promise<CoderInitializationSummary>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Parameters controlling one string-record merge into a JSON file.
|
|
4
|
+
*/
|
|
5
|
+
type MergeStringRecordJsonFileOptions = {
|
|
6
|
+
readonly projectPath: string;
|
|
7
|
+
readonly relativeFilePath: string;
|
|
8
|
+
readonly fieldPath: string;
|
|
9
|
+
readonly nextEntries: Readonly<Record<string, string>>;
|
|
10
|
+
readonly ensureParentDirectoryPath?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Ensures one JSON object field contains the provided string-record entries.
|
|
14
|
+
*
|
|
15
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
16
|
+
*/
|
|
17
|
+
export declare function mergeStringRecordJsonFile({ projectPath, relativeFilePath, fieldPath, nextEntries, ensureParentDirectoryPath, }: MergeStringRecordJsonFileOptions): Promise<InitializationStatus>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CoderInitializationSummary } from './initializeCoderProjectConfiguration';
|
|
2
|
+
/**
|
|
3
|
+
* Prints a readable summary of what was initialized for the user.
|
|
4
|
+
*
|
|
5
|
+
* @private function of `coder init` command
|
|
6
|
+
*/
|
|
7
|
+
export declare function printInitializationSummary(summary: CoderInitializationSummary): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { string_url_private } from './string_url_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://s6.ptbk.io/agents/agent-007"`
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `string_agent_url.ts`
|
|
8
|
+
*/
|
|
9
|
+
export type string_agent_url_private = string_url_private;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { string_base64_private, string_data_url_private } from './string_base64_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"SGVsbG8sIFdvcmxkIQ=="`
|
|
6
|
+
*/
|
|
7
|
+
export type string_base64 = string_base64_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
|
|
12
|
+
*/
|
|
13
|
+
export type string_data_url = string_data_url_private;
|
|
@@ -4,7 +4,7 @@ import type { string_mime_type_private } from './string_mime_type_private';
|
|
|
4
4
|
*
|
|
5
5
|
* For example `"SGVsbG8sIFdvcmxkIQ=="`
|
|
6
6
|
*
|
|
7
|
-
* @private internal utility of `
|
|
7
|
+
* @private internal utility of `string_base64.ts`
|
|
8
8
|
*/
|
|
9
9
|
export type string_base64_private = string;
|
|
10
10
|
/**
|
|
@@ -12,6 +12,6 @@ export type string_base64_private = string;
|
|
|
12
12
|
*
|
|
13
13
|
* For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
|
|
14
14
|
*
|
|
15
|
-
* @private internal utility of `
|
|
15
|
+
* @private internal utility of `string_base64.ts`
|
|
16
16
|
*/
|
|
17
17
|
export type string_data_url_private = `data:${string_mime_type_private};base64,${string_base64_private}`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { string_email_private, string_emails_private } from './string_email_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"pavol@hejny.org"`
|
|
6
|
+
*/
|
|
7
|
+
export type string_email = string_email_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"pavol@hejny.org, jirka@webgpt.cz"`
|
|
12
|
+
*/
|
|
13
|
+
export type string_emails = string_emails_private;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* For example `"pavol@hejny.org"`
|
|
5
5
|
*
|
|
6
|
-
* @private internal utility of `
|
|
6
|
+
* @private internal utility of `string_email.ts`
|
|
7
7
|
*/
|
|
8
8
|
export type string_email_private = string;
|
|
9
9
|
/**
|
|
@@ -11,6 +11,6 @@ export type string_email_private = string;
|
|
|
11
11
|
*
|
|
12
12
|
* For example `"pavol@hejny.org, jirka@webgpt.cz"`
|
|
13
13
|
*
|
|
14
|
-
* @private internal utility of `
|
|
14
|
+
* @private internal utility of `string_email.ts`
|
|
15
15
|
*/
|
|
16
16
|
export type string_emails_private = string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { string_domain_private, string_host_private, string_hostname_private, string_ip_address_private, string_origin_private, string_protocol_private, string_tdl_private } from './string_host_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"towns.cz"`
|
|
6
|
+
*/
|
|
7
|
+
export type string_domain = string_domain_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"https://*.pavolhejny.com/*"`
|
|
12
|
+
*/
|
|
13
|
+
export type string_origin = string_origin_private;
|
|
14
|
+
/**
|
|
15
|
+
* Semantic helper
|
|
16
|
+
*
|
|
17
|
+
* For example `"com"`
|
|
18
|
+
*/
|
|
19
|
+
export type string_tdl = string_tdl_private;
|
|
20
|
+
/**
|
|
21
|
+
* Semantic helper
|
|
22
|
+
*
|
|
23
|
+
* For example `"localhost"` or `"collboard.com"`
|
|
24
|
+
*/
|
|
25
|
+
export type string_hostname = string_hostname_private;
|
|
26
|
+
/**
|
|
27
|
+
* Semantic helper
|
|
28
|
+
*
|
|
29
|
+
* For example `"localhost:9977"` or `"collboard.com"`
|
|
30
|
+
*/
|
|
31
|
+
export type string_host = string_host_private;
|
|
32
|
+
/**
|
|
33
|
+
* Semantic helper
|
|
34
|
+
*/
|
|
35
|
+
export type string_protocol = string_protocol_private;
|
|
36
|
+
/**
|
|
37
|
+
* Semantic helper
|
|
38
|
+
*
|
|
39
|
+
* For example `"192.168.1.1"` (IPv4)
|
|
40
|
+
* For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
|
|
41
|
+
*/
|
|
42
|
+
export type string_ip_address = string_ip_address_private;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* For example `"towns.cz"`
|
|
5
5
|
*
|
|
6
|
-
* @private internal utility of `
|
|
6
|
+
* @private internal utility of `string_host.ts`
|
|
7
7
|
*/
|
|
8
8
|
export type string_domain_private = string;
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ export type string_domain_private = string;
|
|
|
11
11
|
*
|
|
12
12
|
* For example `"https://*.pavolhejny.com/*"`
|
|
13
13
|
*
|
|
14
|
-
* @private internal utility of `
|
|
14
|
+
* @private internal utility of `string_host.ts`
|
|
15
15
|
*/
|
|
16
16
|
export type string_origin_private = string;
|
|
17
17
|
/**
|
|
@@ -19,7 +19,7 @@ export type string_origin_private = string;
|
|
|
19
19
|
*
|
|
20
20
|
* For example `"com"`
|
|
21
21
|
*
|
|
22
|
-
* @private internal utility of `
|
|
22
|
+
* @private internal utility of `string_host.ts`
|
|
23
23
|
*/
|
|
24
24
|
export type string_tdl_private = string;
|
|
25
25
|
/**
|
|
@@ -27,7 +27,7 @@ export type string_tdl_private = string;
|
|
|
27
27
|
*
|
|
28
28
|
* For example `"localhost"` or `"collboard.com"`
|
|
29
29
|
*
|
|
30
|
-
* @private internal utility of `
|
|
30
|
+
* @private internal utility of `string_host.ts`
|
|
31
31
|
*/
|
|
32
32
|
export type string_hostname_private = string;
|
|
33
33
|
/**
|
|
@@ -35,13 +35,13 @@ export type string_hostname_private = string;
|
|
|
35
35
|
*
|
|
36
36
|
* For example `"localhost:9977"` or `"collboard.com"`
|
|
37
37
|
*
|
|
38
|
-
* @private internal utility of `
|
|
38
|
+
* @private internal utility of `string_host.ts`
|
|
39
39
|
*/
|
|
40
40
|
export type string_host_private = string;
|
|
41
41
|
/**
|
|
42
42
|
* Semantic helper
|
|
43
43
|
*
|
|
44
|
-
* @private internal utility of `
|
|
44
|
+
* @private internal utility of `string_host.ts`
|
|
45
45
|
*/
|
|
46
46
|
export type string_protocol_private = 'http:' | 'https:';
|
|
47
47
|
/**
|
|
@@ -50,6 +50,6 @@ export type string_protocol_private = 'http:' | 'https:';
|
|
|
50
50
|
* For example `"192.168.1.1"` (IPv4)
|
|
51
51
|
* For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
|
|
52
52
|
*
|
|
53
|
-
* @private internal utility of `
|
|
53
|
+
* @private internal utility of `string_host.ts`
|
|
54
54
|
*/
|
|
55
55
|
export type string_ip_address_private = string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { string_href_private, string_uri_part_private, string_uri_private } from './string_href_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
|
|
6
|
+
*/
|
|
7
|
+
export type string_href = string_href_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"/9SeSQTupmQHwuSrLi"`
|
|
12
|
+
*/
|
|
13
|
+
export type string_uri = string_uri_private;
|
|
14
|
+
/**
|
|
15
|
+
* Semantic helper
|
|
16
|
+
*
|
|
17
|
+
* For example `"9SeSQTupmQHwuSrLi"`
|
|
18
|
+
*/
|
|
19
|
+
export type string_uri_part = string_uri_part_private;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic helper
|
|
3
|
+
*
|
|
4
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `string_href.ts`
|
|
7
|
+
*/
|
|
8
|
+
export type string_href_private = string;
|
|
9
|
+
/**
|
|
10
|
+
* Semantic helper
|
|
11
|
+
*
|
|
12
|
+
* For example `"/9SeSQTupmQHwuSrLi"`
|
|
13
|
+
*
|
|
14
|
+
* @private internal utility of `string_href.ts`
|
|
15
|
+
*/
|
|
16
|
+
export type string_uri_private = string;
|
|
17
|
+
/**
|
|
18
|
+
* Semantic helper
|
|
19
|
+
*
|
|
20
|
+
* For example `"9SeSQTupmQHwuSrLi"`
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility of `string_href.ts`
|
|
23
|
+
*/
|
|
24
|
+
export type string_uri_part_private = string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { string_mime_type_private, string_mime_type_with_wildcard_private } from './string_mime_type_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"text/plain"` or `"application/collboard"`
|
|
6
|
+
*/
|
|
7
|
+
export type string_mime_type = string_mime_type_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"text/*"` or `"image/*"`
|
|
12
|
+
*
|
|
13
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
|
|
14
|
+
*/
|
|
15
|
+
export type string_mime_type_with_wildcard = string_mime_type_with_wildcard_private;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* For example `"text/plain"` or `"application/collboard"`
|
|
5
5
|
*
|
|
6
|
-
* @private internal utility of `
|
|
6
|
+
* @private internal utility of `string_mime_type.ts`
|
|
7
7
|
*/
|
|
8
8
|
export type string_mime_type_private = string;
|
|
9
9
|
/**
|
|
@@ -13,6 +13,6 @@ export type string_mime_type_private = string;
|
|
|
13
13
|
*
|
|
14
14
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
|
|
15
15
|
*
|
|
16
|
-
* @private internal utility of `
|
|
16
|
+
* @private internal utility of `string_mime_type.ts`
|
|
17
17
|
*/
|
|
18
18
|
export type string_mime_type_with_wildcard_private = string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { string_url_private } from './string_url_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://promptbook.studio/webgpt/"`
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `string_pipeline_root_url.ts`
|
|
8
|
+
*/
|
|
9
|
+
export type string_pipeline_root_url_private = string_url_private;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { string_pipeline_url_private, string_pipeline_url_with_task_hash_private } from './string_pipeline_url_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book"`
|
|
6
|
+
*/
|
|
7
|
+
export type string_pipeline_url = string_pipeline_url_private;
|
|
8
|
+
/**
|
|
9
|
+
* Semantic helper
|
|
10
|
+
*
|
|
11
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book#keywords"`
|
|
12
|
+
*/
|
|
13
|
+
export type string_pipeline_url_with_task_hash = string_pipeline_url_with_task_hash_private;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { string_url_private } from './string_url_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book"`
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `string_pipeline_url.ts`
|
|
8
|
+
*/
|
|
9
|
+
export type string_pipeline_url_private = string_url_private;
|
|
10
|
+
/**
|
|
11
|
+
* Semantic helper
|
|
12
|
+
*
|
|
13
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book#keywords"`
|
|
14
|
+
*
|
|
15
|
+
* @private internal utility of `string_pipeline_url.ts`
|
|
16
|
+
*/
|
|
17
|
+
export type string_pipeline_url_with_task_hash_private = string_pipeline_url_private;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { string_url_private } from './string_url_private';
|
|
2
|
+
/**
|
|
3
|
+
* Semantic helper
|
|
4
|
+
*
|
|
5
|
+
* For example `"https://s1.ptbk.io/promptbook"`
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `string_promptbook_server_url.ts`
|
|
8
|
+
*/
|
|
9
|
+
export type string_promptbook_server_url_private = string_url_private;
|