@promptbook/cli 0.114.0-49 → 0.114.0-50
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 +3 -3
- package/apps/agents-server/src/app/globals.css +15 -0
- package/apps/agents-server/src/components/ContextMenu/ContextMenuPanel.tsx +1 -11
- package/apps/agents-server/src/utils/applicationFonts.ts +4 -25
- package/esm/index.es.js +36124 -33191
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/checks/CoderCheckExecutionError.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/checks/CoderCheckFailedError.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/checks/buildCheckBeforeScriptPath.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/checks/createCheckBeforeRepairPrompt.d.ts +3 -1
- package/esm/scripts/run-codex-prompts/checks/runCheckBefore.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/checks/runCoderCheck.d.ts +17 -0
- package/esm/scripts/run-codex-prompts/checks/runCoderCheckRepair.d.ts +40 -0
- package/esm/scripts/run-codex-prompts/checks/runPromptWithCheckFeedback.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/common/createFreeDiskSpaceGuard.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/common/resolveCoderProjectContext.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildCoderExecutionArtifactPaths.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +1 -0
- package/esm/scripts/run-codex-prompts/common/withCoderWorkspaceLock.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/git/CoderGitOperationError.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/git/CoderPhasePersistence.d.ts +105 -0
- package/esm/scripts/run-codex-prompts/git/CoderPhaseRecovery.d.ts +43 -0
- package/esm/scripts/run-codex-prompts/git/buildCoderCheckCommitMessage.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/git/coderCommitScope.d.ts +14 -1
- package/esm/scripts/run-codex-prompts/git/coderFinalizationFiles.d.ts +14 -0
- package/esm/scripts/run-codex-prompts/git/coderIndexLease.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositoryFiles.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositorySnapshot.d.ts +62 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositoryView.d.ts +30 -0
- package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +36 -3
- package/esm/scripts/run-codex-prompts/git/gitLongPathsSupport.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +3 -1
- package/esm/scripts/run-codex-prompts/git/quoteGitArgument.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/git/runGitCommand.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/git/runWorkspaceGitWithIndexReadRetry.d.ts +7 -0
- package/esm/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/isolation/coderIsolationArtifacts.d.ts +16 -0
- package/esm/scripts/run-codex-prompts/isolation/coderIsolationIgnoredFiles.d.ts +18 -0
- package/esm/scripts/run-codex-prompts/isolation/createCoderIsolationWorktree.d.ts +1 -2
- package/esm/scripts/run-codex-prompts/isolation/mergeCoderIsolationWorktree.d.ts +5 -5
- package/esm/scripts/run-codex-prompts/isolation/preserveCoderIsolationRecovery.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/isolation/runIsolatedPromptRound.d.ts +2 -2
- package/esm/scripts/run-codex-prompts/main/prepareCoderPromptExecution.d.ts +18 -0
- package/esm/scripts/run-codex-prompts/main/runCoderFix.d.ts +24 -0
- package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +12 -2
- package/esm/scripts/run-codex-prompts/prompts/buildPromptRunTraceContent.d.ts +5 -2
- package/esm/scripts/run-codex-prompts/prompts/refreshPromptSelection.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptErrorLog.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptFile.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptRunTrace.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/buildCoderCheckRepairUiFrame.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/ui/output/CoderOutputEvent.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/output/CoderRunOutput.d.ts +2 -2
- package/esm/scripts/run-codex-prompts/ui/renderCoderRunUi.d.ts +4 -0
- package/esm/src/cli/cli-commands/coder/add.d.ts +7 -2
- package/esm/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -1
- package/esm/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/workspaceRepository.d.ts +12 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/add.ts +20 -3
- package/src/cli/cli-commands/coder/ensureCoderGitattributesFile.ts +25 -0
- package/src/cli/cli-commands/coder/ensureCoderGitignoreFile.ts +3 -3
- package/src/cli/cli-commands/coder/ensureCoderMarkdownFile.ts +2 -20
- package/src/cli/cli-commands/coder/fix.ts +166 -0
- package/src/cli/cli-commands/coder/fixtures/fix.cjs +29 -0
- package/src/cli/cli-commands/coder/fixtures/healthyDisk.cjs +4 -0
- package/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.ts +2 -0
- package/src/cli/cli-commands/coder/init.ts +3 -1
- package/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.ts +7 -0
- package/src/cli/cli-commands/coder/planning/fixtures/coding.cjs +4 -0
- package/src/cli/cli-commands/coder/printInitializationSummary.ts +2 -0
- package/src/cli/cli-commands/coder/promptsReadmeTemplate.ts +25 -1
- package/src/cli/cli-commands/coder/run.ts +17 -8
- package/src/cli/cli-commands/coder/server.ts +9 -6
- package/src/cli/cli-commands/coder.ts +4 -0
- package/src/cli/cli-commands/common/coderCheckCliOptions.ts +7 -6
- package/src/cli/cli-commands/common/ensureProjectTextFile.ts +35 -0
- package/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.ts +13 -0
- package/src/cli/cli-commands/common/validateCoderRunOptions.ts +16 -1
- package/src/cli/cli-commands/common/workspaceRepository.ts +61 -13
- package/src/other/templates/getTemplatesPipelineCollection.ts +1825 -1089
- package/src/utils/execCommand/$execCommand.ts +2 -1
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +36204 -33273
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/checks/CoderCheckExecutionError.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/checks/CoderCheckFailedError.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/checks/buildCheckBeforeScriptPath.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/checks/createCheckBeforeRepairPrompt.d.ts +3 -1
- package/umd/scripts/run-codex-prompts/checks/runCheckBefore.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/checks/runCoderCheck.d.ts +17 -0
- package/umd/scripts/run-codex-prompts/checks/runCoderCheckRepair.d.ts +40 -0
- package/umd/scripts/run-codex-prompts/checks/runPromptWithCheckFeedback.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/common/createFreeDiskSpaceGuard.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/common/resolveCoderProjectContext.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildCoderExecutionArtifactPaths.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +1 -0
- package/umd/scripts/run-codex-prompts/common/withCoderWorkspaceLock.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/git/CoderGitOperationError.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/git/CoderPhasePersistence.d.ts +105 -0
- package/umd/scripts/run-codex-prompts/git/CoderPhaseRecovery.d.ts +43 -0
- package/umd/scripts/run-codex-prompts/git/buildCoderCheckCommitMessage.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/git/coderCommitScope.d.ts +14 -1
- package/umd/scripts/run-codex-prompts/git/coderFinalizationFiles.d.ts +14 -0
- package/umd/scripts/run-codex-prompts/git/coderIndexLease.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositoryFiles.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositorySnapshot.d.ts +62 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositoryView.d.ts +30 -0
- package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +36 -3
- package/umd/scripts/run-codex-prompts/git/gitLongPathsSupport.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +3 -1
- package/umd/scripts/run-codex-prompts/git/quoteGitArgument.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/git/runGitCommand.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/git/runWorkspaceGitWithIndexReadRetry.d.ts +7 -0
- package/umd/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/isolation/coderIsolationArtifacts.d.ts +16 -0
- package/umd/scripts/run-codex-prompts/isolation/coderIsolationIgnoredFiles.d.ts +18 -0
- package/umd/scripts/run-codex-prompts/isolation/createCoderIsolationWorktree.d.ts +1 -2
- package/umd/scripts/run-codex-prompts/isolation/mergeCoderIsolationWorktree.d.ts +5 -5
- package/umd/scripts/run-codex-prompts/isolation/preserveCoderIsolationRecovery.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/isolation/runIsolatedPromptRound.d.ts +2 -2
- package/umd/scripts/run-codex-prompts/main/prepareCoderPromptExecution.d.ts +18 -0
- package/umd/scripts/run-codex-prompts/main/runCoderFix.d.ts +24 -0
- package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +12 -2
- package/umd/scripts/run-codex-prompts/prompts/buildPromptRunTraceContent.d.ts +5 -2
- package/umd/scripts/run-codex-prompts/prompts/refreshPromptSelection.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptErrorLog.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptFile.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptRunTrace.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/buildCoderCheckRepairUiFrame.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/ui/output/CoderOutputEvent.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/output/CoderRunOutput.d.ts +2 -2
- package/umd/scripts/run-codex-prompts/ui/renderCoderRunUi.d.ts +4 -0
- package/umd/src/cli/cli-commands/coder/add.d.ts +7 -2
- package/umd/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -1
- package/umd/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/workspaceRepository.d.ts +12 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quotes one literal Git argument for its selected shell. Finite jobs use the shared Bash process-tree runner
|
|
3
|
+
* on every platform; legacy Windows callers use their existing native command shell.
|
|
4
|
+
*/
|
|
5
|
+
export declare function quoteGitArgument(value: string, isBashShell?: boolean): string;
|
|
@@ -6,6 +6,10 @@ type RunGitCommandOptions = {
|
|
|
6
6
|
readonly cwd?: string;
|
|
7
7
|
readonly env?: Record<string, string>;
|
|
8
8
|
readonly isVerbose?: boolean;
|
|
9
|
+
/** A finite job cancels the same owned shell tree as its checks and harness. */
|
|
10
|
+
readonly signal?: AbortSignal;
|
|
11
|
+
/** Phase persistence must not retry a hook which may already have created a local commit. */
|
|
12
|
+
readonly isIndexLockRetryEnabled?: boolean;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
15
|
* Runs one Git command and retries when the repository index is still temporarily locked.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { $runWorkspaceGit } from '../../../src/cli/cli-commands/common/workspaceRepository';
|
|
2
|
+
/**
|
|
3
|
+
* Uses the shared Git service, retrying only a Windows index-open permission failure during a read-only inspection.
|
|
4
|
+
* Persistent access errors and every mutation still fail normally. Snapshot callers retain their before/after
|
|
5
|
+
* comparisons, so a retry cannot publish content which changed during capture.
|
|
6
|
+
*/
|
|
7
|
+
export declare function runWorkspaceGitWithIndexReadRetry(projectPath: string, argumentsList: ReadonlyArray<string>, options?: Parameters<typeof $runWorkspaceGit>[2]): Promise<string>;
|
|
@@ -27,7 +27,7 @@ export declare function listFilesChangedSinceSnapshot(projectPath: string, snaps
|
|
|
27
27
|
/**
|
|
28
28
|
* Lists dirty tracked files and untracked files in the working tree.
|
|
29
29
|
*/
|
|
30
|
-
export declare function listWorkingTreeChangedFiles(projectPath: string): Promise<ReadonlyArray<string>>;
|
|
30
|
+
export declare function listWorkingTreeChangedFiles(projectPath: string, env?: Record<string, string>): Promise<ReadonlyArray<string>>;
|
|
31
31
|
/**
|
|
32
32
|
* Reads the content hash of one repository-relative working tree file.
|
|
33
33
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CoderCommitScope } from '../git/coderCommitScope';
|
|
2
|
+
import type { PromptSelection } from '../prompts/types/PromptSelection';
|
|
3
|
+
/** Original artifact content, checked before isolated writers run or publish into supported durable locations. */
|
|
4
|
+
export type CoderIsolationArtifactBoundary = {
|
|
5
|
+
readonly repositoryRoot: string;
|
|
6
|
+
readonly objectFormat: string;
|
|
7
|
+
readonly paths: ReadonlyArray<string>;
|
|
8
|
+
readonly hashes: ReadonlyMap<string, string>;
|
|
9
|
+
};
|
|
10
|
+
/** Captures even ignored original logs and refuses pre-existing staged/unstaged artifacts before execution. */
|
|
11
|
+
export declare function captureCoderIsolationArtifacts(scope: CoderCommitScope, selection: PromptSelection): Promise<CoderIsolationArtifactBoundary | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Eligible artifacts travel in the execution commits and integration. Ignored or failed-round artifacts are
|
|
14
|
+
* copied back into their existing durable locations before cleanup; unexpected original edits are retained.
|
|
15
|
+
*/
|
|
16
|
+
export declare function preserveCoderIsolationArtifacts(boundary: CoderIsolationArtifactBoundary | undefined, executionRoot: string): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoderCommitScope } from '../git/coderCommitScope';
|
|
2
|
+
/** Ignored execution output is retained without making it eligible for an automatic commit. */
|
|
3
|
+
export type CoderIsolationIgnoredBoundary = {
|
|
4
|
+
readonly repositoryRoot: string;
|
|
5
|
+
readonly objectFormat: string;
|
|
6
|
+
readonly original: ReadonlyMap<string, string>;
|
|
7
|
+
readonly executionBefore?: ReadonlyMap<string, string>;
|
|
8
|
+
readonly excludedPaths: ReadonlyArray<string>;
|
|
9
|
+
};
|
|
10
|
+
/** Captures the original ignored result before creating a worktree or running any owned writer. */
|
|
11
|
+
export declare function captureCoderIsolationIgnoredFiles(scope: CoderCommitScope, excludedPaths: ReadonlyArray<string>): Promise<CoderIsolationIgnoredBoundary | undefined>;
|
|
12
|
+
/** Establishes the actual execution baseline; original-only ignored files are never inferred as deletions. */
|
|
13
|
+
export declare function beginCoderIsolationIgnoredFiles(boundary: CoderIsolationIgnoredBoundary | undefined, executionRoot: string): Promise<CoderIsolationIgnoredBoundary | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Retains only proven execution changes to ignored output before worktree removal. The existing isolation
|
|
16
|
+
* environment policy and known artifact retention stay separate, and concurrent original edits stop cleanup.
|
|
17
|
+
*/
|
|
18
|
+
export declare function preserveCoderIsolationIgnoredFiles(boundary: CoderIsolationIgnoredBoundary | undefined, executionRoot: string): Promise<void>;
|
|
@@ -17,8 +17,7 @@ type CreateCoderIsolationWorktreeOptions = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates one temporary git worktree with its own branch and its own copy of the project environment.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
* on an already existing worktree directory or branch.
|
|
20
|
+
* Existing recoverable branches/worktrees require explicit recovery and are never erased on a repeated task.
|
|
22
21
|
*/
|
|
23
22
|
export declare function createCoderIsolationWorktree(options: CreateCoderIsolationWorktreeOptions): Promise<CoderIsolationWorktree>;
|
|
24
23
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CoderIsolationWorktree } from './CoderIsolationWorktree';
|
|
2
|
+
import { type CoderRepositorySnapshot } from '../git/coderRepositorySnapshot';
|
|
2
3
|
/**
|
|
3
4
|
* Outcome of merging one isolated task back into the branch the coder runs on.
|
|
4
5
|
*/
|
|
@@ -14,11 +15,10 @@ export type CoderIsolationMergeResult = {
|
|
|
14
15
|
/**
|
|
15
16
|
* Merges the isolated task back into the branch the coder runs on.
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* creates the commit so that the prompt status update becomes part of the very same commit.
|
|
18
|
+
* Fast-forward integration preserves implementation/check/finalization history exactly as verified in
|
|
19
|
+
* the execution checkout. Diverged or overlapping work is retained for manual integration.
|
|
20
20
|
*
|
|
21
|
-
* A
|
|
21
|
+
* A refused fast-forward leaves the original working tree untouched and is reported back
|
|
22
22
|
* instead of thrown, because a merge failure must not stop the coder from processing the next task.
|
|
23
23
|
*/
|
|
24
|
-
export declare function mergeCoderIsolationWorktree(worktree: CoderIsolationWorktree): Promise<CoderIsolationMergeResult>;
|
|
24
|
+
export declare function mergeCoderIsolationWorktree(worktree: CoderIsolationWorktree, original?: CoderRepositorySnapshot, signal?: AbortSignal): Promise<CoderIsolationMergeResult>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CoderIsolationWorktree } from './CoderIsolationWorktree';
|
|
2
|
+
/** Keeps durable phase/persistence records before Git removes an integrated worktree's private Git directory. */
|
|
3
|
+
export declare function preserveCoderIsolationRecovery(worktree: CoderIsolationWorktree): Promise<void>;
|
|
@@ -3,8 +3,8 @@ import type { RunPromptRoundOptions } from '../main/runPromptRound';
|
|
|
3
3
|
* Runs one prompt round inside a temporary git worktree and merges the result back afterwards.
|
|
4
4
|
*
|
|
5
5
|
* This is the `--isolate` counterpart of `runPromptRound`, so it accepts exactly the same input:
|
|
6
|
-
* - The coding agent, its
|
|
7
|
-
* -
|
|
6
|
+
* - The coding agent, its check command and the round commit all happen inside the worktree.
|
|
7
|
+
* - Verified phase commits are fast-forwarded back into the caller's branch and the worktree is deleted.
|
|
8
8
|
* - A task which cannot be merged is recorded as failed in the original project and its worktree is kept,
|
|
9
9
|
* without stopping the coder from processing the next task.
|
|
10
10
|
* - A task whose round fails keeps its worktree too, so the work of the failed round can still be inspected.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RunOptions } from '../cli/RunOptions';
|
|
2
|
+
import { type PromptRunnerSelectionOptions } from './resolvePromptRunner';
|
|
3
|
+
/** Resolves the same Book, harness, team bridge and attribution for queued and check-repair rounds. */
|
|
4
|
+
export declare function prepareCoderPromptExecution(options: Pick<RunOptions, 'agent' | 'noCommit' | 'dryRun' | 'workspace'> & PromptRunnerSelectionOptions & {
|
|
5
|
+
readonly projectPath: string;
|
|
6
|
+
}, preparation?: {
|
|
7
|
+
readonly isCommittingInitializedBooks?: boolean;
|
|
8
|
+
readonly signal?: AbortSignal;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
runner: import("../runners/types/PromptRunner").PromptRunner;
|
|
11
|
+
resolvedCoderAgent: import("../common/resolveCoderAgent").ResolvedCoderAgent | undefined;
|
|
12
|
+
runnerMetadata: {
|
|
13
|
+
agentName: string | undefined;
|
|
14
|
+
runnerName: string;
|
|
15
|
+
modelName?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
actualRunnerModel?: string | undefined;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { WorkspaceRepositoryContext } from '../../../src/cli/cli-commands/common/workspaceRepository';
|
|
2
|
+
import type { NormalizedQuestionsCliOptions } from '../../../src/cli/cli-commands/common/questionsCliOptions';
|
|
3
|
+
import type { NormalizedPromptRunnerCliOptions } from '../../../src/cli/cli-commands/common/promptRunnerCliOptions';
|
|
4
|
+
import type { ResolvedCoderProjectContext } from '../common/resolveCoderProjectContext';
|
|
5
|
+
import { type CoderCheckRepairResult } from '../checks/runCoderCheckRepair';
|
|
6
|
+
/** Resolved finite check-repair inputs. Queue limits, filters and keep-alive state are intentionally absent. */
|
|
7
|
+
export type CoderFixOptions = NormalizedPromptRunnerCliOptions & NormalizedQuestionsCliOptions & {
|
|
8
|
+
readonly workspace: WorkspaceRepositoryContext;
|
|
9
|
+
readonly projectContext: ResolvedCoderProjectContext;
|
|
10
|
+
readonly dryRun: boolean;
|
|
11
|
+
readonly checkCommand: string;
|
|
12
|
+
readonly agent?: string;
|
|
13
|
+
readonly context?: string;
|
|
14
|
+
readonly preserveLogs: boolean;
|
|
15
|
+
readonly waitAfterError: number;
|
|
16
|
+
readonly signal?: AbortSignal;
|
|
17
|
+
};
|
|
18
|
+
/** Validates fix's shared execution policy without exposing a queue-mode or interrupted-backlog escape hatch. */
|
|
19
|
+
export declare function validateCoderFixOptions(options: Omit<CoderFixOptions, 'workspace' | 'projectContext'>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Checks and repairs one project, then returns an explicit outcome. No ordinary queue module is loaded or called.
|
|
22
|
+
* Both initial verification and repair use the very same service used by run's check-before phase.
|
|
23
|
+
*/
|
|
24
|
+
export declare function runCoderFix(providedOptions: CoderFixOptions): Promise<CoderCheckRepairResult>;
|
|
@@ -2,14 +2,17 @@ import type { RunOptions } from '../cli/RunOptions';
|
|
|
2
2
|
import type { CliProgressDisplay } from '../common/cliProgressDisplay';
|
|
3
3
|
import type { WaitForCoderRunPauseCheckpoint } from '../common/CoderRunPauseCheckpoint';
|
|
4
4
|
import type { PromptRunnerMetadata } from '../common/PromptRunnerMetadata';
|
|
5
|
+
import type { CoderCommitScope } from '../git/coderCommitScope';
|
|
5
6
|
import type { PromptSelection } from '../prompts/types/PromptSelection';
|
|
6
7
|
import type { PromptRunner } from '../runners/types/PromptRunner';
|
|
7
8
|
import type { CoderRunUiHandle } from '../ui/renderCoderRunUi';
|
|
9
|
+
/** Execution policy for one selected task; no queue, watcher or priority state is required. */
|
|
10
|
+
export type PromptRoundExecutionOptions = Pick<RunOptions, 'workspace' | 'projectPath' | 'checkCommand' | 'preserveLogs' | 'thinkingLevel' | 'waitForUser' | 'waitAfterError' | 'noCommit' | 'normalizeLineEndings' | 'autoMigrate' | 'allowDestructiveAutoMigrate' | 'autoPush' | 'isIsolated' | 'agentName' | 'model' | 'agent' | 'context' | 'projectContext'>;
|
|
8
11
|
/**
|
|
9
12
|
* Input required to execute one prompt-processing round.
|
|
10
13
|
*/
|
|
11
14
|
export type RunPromptRoundOptions = {
|
|
12
|
-
options:
|
|
15
|
+
options: PromptRoundExecutionOptions;
|
|
13
16
|
runner: PromptRunner;
|
|
14
17
|
runnerMetadata: PromptRunnerMetadata;
|
|
15
18
|
nextPrompt: PromptSelection;
|
|
@@ -29,10 +32,17 @@ export type RunPromptRoundOptions = {
|
|
|
29
32
|
projectPath?: string;
|
|
30
33
|
/** Explicit durable artifact location when a temporary execution worktree will be deleted. */
|
|
31
34
|
artifactsProjectPath?: string;
|
|
35
|
+
/** Scope captured before check-repair authoring and lazy Book initialization. */
|
|
36
|
+
commitScope?: CoderCommitScope;
|
|
37
|
+
/** Last retained no-commit phase of this same job, never an unrelated worker's dirty-file list. */
|
|
38
|
+
ownershipScope?: CoderCommitScope;
|
|
39
|
+
onScopeRetained?: (scope: CoderCommitScope) => void;
|
|
40
|
+
/** Cancels only this round's owned subprocesses and retry waits. */
|
|
41
|
+
signal?: AbortSignal;
|
|
32
42
|
};
|
|
33
43
|
/**
|
|
34
44
|
* Runs one prompt round from prompt construction through commit or failure logging.
|
|
35
45
|
*
|
|
36
46
|
* @private function of runCodexPrompts
|
|
37
47
|
*/
|
|
38
|
-
export declare function runPromptRound(
|
|
48
|
+
export declare function runPromptRound(options: RunPromptRoundOptions): Promise<void>;
|
|
@@ -4,6 +4,7 @@ import type { CoderRunStep } from '../common/CoderRunStep';
|
|
|
4
4
|
import { type FormatRunnerSignatureOptions } from './formatRunnerSignature';
|
|
5
5
|
import type { PromptFile } from './types/PromptFile';
|
|
6
6
|
import type { PromptSection } from './types/PromptSection';
|
|
7
|
+
import type { CoderPhaseCommitResult } from '../git/CoderPhasePersistence';
|
|
7
8
|
/**
|
|
8
9
|
* How one prompt round the trace describes has ended.
|
|
9
10
|
*
|
|
@@ -35,7 +36,7 @@ export type BuildPromptRunTraceContentOptions = FormatRunnerSignatureOptions & {
|
|
|
35
36
|
readonly file: PromptFile;
|
|
36
37
|
readonly section: PromptSection;
|
|
37
38
|
/**
|
|
38
|
-
*
|
|
39
|
+
* Aggregate check command the round ran after each coding attempt, when one is configured.
|
|
39
40
|
*/
|
|
40
41
|
readonly checkCommand?: string;
|
|
41
42
|
/**
|
|
@@ -53,9 +54,11 @@ export type BuildPromptRunTraceContentOptions = FormatRunnerSignatureOptions & {
|
|
|
53
54
|
readonly outcome: PromptRunTraceOutcome;
|
|
54
55
|
/**
|
|
55
56
|
* Raw runtime log of the round, holding the generated shell scripts and everything the harness and the
|
|
56
|
-
*
|
|
57
|
+
* check command have written. Empty when the round produced no readable runtime log.
|
|
57
58
|
*/
|
|
58
59
|
readonly runtimeLog: string;
|
|
60
|
+
/** Chronological local phase persistence; no-commit phases retain an absent commit identity. */
|
|
61
|
+
readonly phaseCommits?: ReadonlyArray<CoderPhaseCommitResult>;
|
|
59
62
|
};
|
|
60
63
|
/**
|
|
61
64
|
* Renders the markdown run trace of one finished or failed prompt round.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PromptSelection } from './types/PromptSelection';
|
|
2
|
+
/**
|
|
3
|
+
* Refreshes on-disk task content before a Coder status write. The caller owns a validated mutation boundary;
|
|
4
|
+
* agent/check edits to the task body must survive status persistence just like edits to any other file.
|
|
5
|
+
*/
|
|
6
|
+
export declare function refreshPromptSelection(selection: PromptSelection): Promise<void>;
|
|
@@ -16,4 +16,8 @@ type WritePromptErrorLogOptions = {
|
|
|
16
16
|
* Returns the path of the written log so callers can include it in a commit.
|
|
17
17
|
*/
|
|
18
18
|
export declare function writePromptErrorLog(options: WritePromptErrorLogOptions): Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the failure log path for a prompt markdown file.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildPromptErrorLogPath(promptPath: string): string;
|
|
19
23
|
export {};
|
|
@@ -3,3 +3,5 @@ import type { PromptFile } from './types/PromptFile';
|
|
|
3
3
|
* Writes updated prompt file content to disk.
|
|
4
4
|
*/
|
|
5
5
|
export declare function writePromptFile(file: PromptFile): Promise<void>;
|
|
6
|
+
/** Serializes a status candidate identically for private-tree persistence and ordinary prompt writes. */
|
|
7
|
+
export declare function buildPromptFileContent(file: PromptFile): string;
|
|
@@ -10,6 +10,8 @@ export type WritePromptRunTraceOptions = Omit<BuildPromptRunTraceContentOptions,
|
|
|
10
10
|
* Path of the temporary live runtime log of the round, when the round has one.
|
|
11
11
|
*/
|
|
12
12
|
readonly logPath?: string;
|
|
13
|
+
/** Defers publication until the completion tree is persisted by the shared Git service. */
|
|
14
|
+
readonly writeContent?: (path: string, content: string) => Promise<void>;
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
15
17
|
* Writes the run trace of one prompt round into the `traces` directory of the prompts directory.
|
|
@@ -10,7 +10,7 @@ export type CoderServerBoardColumn = 'backlog' | 'low-priority' | 'todo' | 'in-p
|
|
|
10
10
|
* UI tag attached to one prompt card.
|
|
11
11
|
*/
|
|
12
12
|
export type CoderServerPromptTag = {
|
|
13
|
-
readonly id: 'not-ready' | 'unwritten' | 'left-in-progress' | 'implementing' | '
|
|
13
|
+
readonly id: 'not-ready' | 'unwritten' | 'left-in-progress' | 'implementing' | 'checking';
|
|
14
14
|
readonly label: string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
@@ -16,7 +16,7 @@ import { CoderRunOutput } from './output/CoderRunOutput';
|
|
|
16
16
|
*
|
|
17
17
|
* @private internal type of coder run UI
|
|
18
18
|
*/
|
|
19
|
-
export type CoderRunPhase = 'initializing' | 'loading' | 'running' | '
|
|
19
|
+
export type CoderRunPhase = 'initializing' | 'loading' | 'running' | 'checking' | 'waiting' | 'paused' | 'done' | 'error';
|
|
20
20
|
/**
|
|
21
21
|
* Configuration display data for the coder run UI header.
|
|
22
22
|
*
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BuildCoderRunUiFrameOptions } from './buildCoderRunUiFrame';
|
|
2
|
+
/** Renders a finite check/repair job without queue statistics, priority scope, or next-task controls. */
|
|
3
|
+
export declare function buildCoderCheckRepairUiFrame(options: BuildCoderRunUiFrameOptions): string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Display selection belongs only to this dashboard invocation. */
|
|
2
2
|
export type CoderOutputMode = 'normal' | 'raw';
|
|
3
3
|
/** Observable output categories; these never drive runner state. */
|
|
4
|
-
export type CoderOutputKind = 'agent' | 'reasoning' | 'tool' | 'files' | '
|
|
4
|
+
export type CoderOutputKind = 'agent' | 'reasoning' | 'tool' | 'files' | 'check' | 'result' | 'warning' | 'error' | 'status' | 'unknown';
|
|
5
5
|
/** A bounded presentation entry, separate from the original harness chunks and durable trace. */
|
|
6
6
|
export type CoderOutputEvent = {
|
|
7
7
|
readonly id?: string;
|
|
@@ -22,11 +22,11 @@ export declare class CoderRunOutput {
|
|
|
22
22
|
/** Makes projection lazy so input keys and process-output callbacks perform no rendering work. */
|
|
23
23
|
get events(): readonly CoderOutputEvent[];
|
|
24
24
|
/** Records the original chunk first and queues its independent presentation projection. */
|
|
25
|
-
append(chunk: string, source: LiveScriptOutputSource, harnessName: string,
|
|
25
|
+
append(chunk: string, source: LiveScriptOutputSource, harnessName: string, isCheck: boolean): void;
|
|
26
26
|
/** Projects a queued chunk, assembling stdout and stderr independently. */
|
|
27
27
|
private projectChunk;
|
|
28
28
|
/** Runner logs are already complete messages, unlike shell chunks. */
|
|
29
|
-
appendRunner(text: string, kind?: 'status' | 'warning' | 'error' | '
|
|
29
|
+
appendRunner(text: string, kind?: 'status' | 'warning' | 'error' | 'check'): void;
|
|
30
30
|
/** Queues the capture boundary; runner callbacks must never perform projection or wrapping. */
|
|
31
31
|
flush(): void;
|
|
32
32
|
/** Final plain lines retain their observed speaker/activity; malformed records remain labeled as data. */
|
|
@@ -34,4 +34,8 @@ export type CoderRunUiHandle = {
|
|
|
34
34
|
export declare function renderCoderRunUi(startTime: moment.Moment, options?: {
|
|
35
35
|
readonly buildFrameLines?: (options: BuildCoderRunUiFrameOptions) => string[];
|
|
36
36
|
readonly state?: CoderRunUiState;
|
|
37
|
+
/** Finite jobs cancel their owned activity and finish cleanup instead of exiting directly from a keypress. */
|
|
38
|
+
readonly onInterrupt?: () => void;
|
|
39
|
+
/** Jobs without a queue need presentation controls only, independent of global run pause state. */
|
|
40
|
+
readonly isQueueControlsEnabled?: boolean;
|
|
37
41
|
}): CoderRunUiHandle;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
import { type ResolvedCoderPromptTemplate } from './boilerplateTemplates';
|
|
3
4
|
/**
|
|
4
5
|
* Initializes `coder add` command for Promptbook CLI utilities
|
|
5
6
|
*
|
|
@@ -28,11 +29,13 @@ export type AddCoderPromptResult = {
|
|
|
28
29
|
*
|
|
29
30
|
* @private internal utility of `coder add` command
|
|
30
31
|
*/
|
|
31
|
-
export declare function addCoderPrompt({ projectPath, description, priority, templateOption, }: {
|
|
32
|
+
export declare function addCoderPrompt({ projectPath, description, priority, templateOption, promptTemplate, }: {
|
|
32
33
|
readonly projectPath: string;
|
|
33
34
|
readonly description: string;
|
|
34
35
|
readonly priority: number;
|
|
35
36
|
readonly templateOption?: string;
|
|
37
|
+
/** Internal authoring workflows may supply their own bounded instructions instead of the feature template. */
|
|
38
|
+
readonly promptTemplate?: ResolvedCoderPromptTemplate;
|
|
36
39
|
}): Promise<AddCoderPromptResult>;
|
|
37
40
|
/**
|
|
38
41
|
* Prepares a numbered, emoji-tagged prompt for preview without writing the prompt file.
|
|
@@ -40,13 +43,15 @@ export declare function addCoderPrompt({ projectPath, description, priority, tem
|
|
|
40
43
|
*
|
|
41
44
|
* @private internal utility shared by `coder add` and `coder plan`
|
|
42
45
|
*/
|
|
43
|
-
export declare function prepareCoderPrompt({ projectPath, description, priority, templateOption, numberOffset, reservedEmojiTag, }: {
|
|
46
|
+
export declare function prepareCoderPrompt({ projectPath, description, priority, templateOption, numberOffset, reservedEmojiTag, promptTemplate: providedPromptTemplate, }: {
|
|
44
47
|
readonly projectPath: string;
|
|
45
48
|
readonly description: string;
|
|
46
49
|
readonly priority: number;
|
|
47
50
|
readonly templateOption?: string;
|
|
48
51
|
readonly numberOffset?: number;
|
|
49
52
|
readonly reservedEmojiTag?: string;
|
|
53
|
+
/** Shared repair authoring preserves numbering and tags without appending ordinary implementation instructions. */
|
|
54
|
+
readonly promptTemplate?: ResolvedCoderPromptTemplate;
|
|
50
55
|
}): Promise<AddCoderPromptResult & {
|
|
51
56
|
readonly content: string;
|
|
52
57
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Project-relative path to the Git attributes initialized by Promptbook Coder.
|
|
4
|
+
*
|
|
5
|
+
* @private internal constant of `coder init`
|
|
6
|
+
*/
|
|
7
|
+
export declare const CODER_GITATTRIBUTES_FILE_PATH = ".gitattributes";
|
|
8
|
+
/**
|
|
9
|
+
* Creates default Git attributes when missing, preserving project-owned attributes.
|
|
10
|
+
*
|
|
11
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
12
|
+
*/
|
|
13
|
+
export declare function ensureCoderGitattributesFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
|
|
2
2
|
import type { InitializationStatus } from './boilerplateTemplates';
|
|
3
3
|
/**
|
|
4
|
-
* Ensures `.gitignore`
|
|
4
|
+
* Ensures `.gitignore` covers local dependencies, coder artifacts and every supported harness's local artifacts.
|
|
5
5
|
*
|
|
6
6
|
* @private function of `initializeCoderProjectConfiguration`
|
|
7
7
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Registers a finite check-repair command with the shared parser, defaults and execution policy.
|
|
5
|
+
* @private internal CLI command registration
|
|
6
|
+
*/
|
|
7
|
+
export declare function $initializeCoderFixCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export type CoderInitializationSummary = {
|
|
|
15
15
|
readonly adamAgentFileDiagnostic?: string;
|
|
16
16
|
readonly envFileStatus: InitializationStatus;
|
|
17
17
|
readonly gitignoreFileStatus: InitializationStatus;
|
|
18
|
+
readonly gitattributesFileStatus: InitializationStatus;
|
|
18
19
|
readonly packageJsonFileStatus: InitializationStatus;
|
|
19
20
|
readonly vscodeSettingsFileStatus: InitializationStatus;
|
|
20
21
|
readonly addedPackageJsonScriptNames: ReadonlyArray<string>;
|
|
@@ -11,6 +11,7 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
11
11
|
* - find-refactor-candidates: Find files that need refactoring
|
|
12
12
|
* - list: List ready prompts in priority order without running them
|
|
13
13
|
* - run: Run coding prompts with AI agents
|
|
14
|
+
* - fix: Check and repair the project, then exit without processing the queue
|
|
14
15
|
* - ping: Test one harness and model with a tiny dummy prompt
|
|
15
16
|
* - verify: Verify completed prompts
|
|
16
17
|
* - find-fresh-emoji-tags: Find unused emoji tags
|
|
@@ -8,7 +8,7 @@ export declare const LEGACY_CODER_CHECK_OPTIONS: readonly [readonly ["--test", "
|
|
|
8
8
|
* Registers the shared project check command and rejects retired aggregate-test spellings.
|
|
9
9
|
* @private shared CLI registration for Coder execution
|
|
10
10
|
*/
|
|
11
|
-
export declare function addCoderCheckOptions(command: Command, isCheckBeforeSupported: boolean): void;
|
|
11
|
+
export declare function addCoderCheckOptions(command: Command, isCheckBeforeSupported: boolean, description?: string): void;
|
|
12
12
|
/**
|
|
13
13
|
* Builds the same actionable migration diagnostic for registered and direct-script entrypoints.
|
|
14
14
|
* @private shared CLI diagnostic for Coder execution
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProjectInitializationStatus } from './projectInitialization';
|
|
2
|
+
/**
|
|
3
|
+
* Creates one project text file with default content, preserving any existing file.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of Promptbook CLI project initialization
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureProjectTextFile(projectPath: string, relativeFilePath: string, fileContent: string): Promise<ProjectInitializationStatus>;
|
|
@@ -11,4 +11,6 @@ import type { NormalizedQuestionsCliOptions } from '../questionsCliOptions';
|
|
|
11
11
|
*
|
|
12
12
|
* @private internal utility of `promptbookCli`
|
|
13
13
|
*/
|
|
14
|
-
export declare function $ensureHarnessInstallations(harnessNames: ReadonlyArray<PromptRunnerHarnessName | undefined>, questionsOptions: NormalizedQuestionsCliOptions
|
|
14
|
+
export declare function $ensureHarnessInstallations(harnessNames: ReadonlyArray<PromptRunnerHarnessName | undefined>, questionsOptions: NormalizedQuestionsCliOptions, options?: {
|
|
15
|
+
readonly isRequired?: boolean;
|
|
16
|
+
}): Promise<void>;
|
|
@@ -3,4 +3,4 @@ import type { RunOptions } from '../../../../scripts/run-codex-prompts/cli/RunOp
|
|
|
3
3
|
* Validates cross-flag constraints before workspace setup or the run starts.
|
|
4
4
|
* @private shared validation for Coder execution commands
|
|
5
5
|
*/
|
|
6
|
-
export declare function validateCoderRunOptions(options: RunOptions): void;
|
|
6
|
+
export declare function validateCoderRunOptions(options: Pick<RunOptions, 'checkCommand' | 'checkBefore' | 'allowDestructiveAutoMigrate' | 'autoMigrate' | 'noCommit' | 'waitForUser' | 'gitChanges' | 'autoPull' | 'dryRun' | 'isIsolated' | 'limit'>): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import type { NormalizedQuestionsCliOptions } from './questionsCliOptions';
|
|
2
4
|
/**
|
|
3
5
|
* Resolved project directory and its enclosing working tree. Project artifacts belong to `projectPath`;
|
|
@@ -34,3 +36,13 @@ export declare function $preflightWorkspaceRepository(options: {
|
|
|
34
36
|
readonly projectDirectory?: string;
|
|
35
37
|
readonly policy: WorkspaceRepositoryPolicy;
|
|
36
38
|
} & Partial<NormalizedQuestionsCliOptions>): Promise<WorkspaceRepositoryContext>;
|
|
39
|
+
/**
|
|
40
|
+
* Executes Git without a shell, optional index locks, or credential prompts, retaining raw output boundaries.
|
|
41
|
+
* Drains both output streams without execFile's fixed buffer limit so large repository listings remain complete.
|
|
42
|
+
* @private shared Git discovery and commit-scope inspection
|
|
43
|
+
*/
|
|
44
|
+
export declare function $runWorkspaceGit(projectPath: string, argumentsList: ReadonlyArray<string>, options?: {
|
|
45
|
+
readonly env?: Record<string, string>;
|
|
46
|
+
readonly signal?: AbortSignal;
|
|
47
|
+
readonly input?: string | Buffer;
|
|
48
|
+
}): Promise<string>;
|
package/umd/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.114.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.114.0-49`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|