@jskit-ai/jskit-cli 0.2.96 → 0.2.97
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/package.json +4 -4
- package/src/server/appBlueprint.js +37 -14
- package/src/server/core/argParser.js +0 -12
- package/src/server/core/commandCatalog.js +2 -92
- package/src/server/core/createCommandHandlers.js +0 -3
- package/src/server/index.js +0 -1
- package/src/server/{sessionRuntime/prompts → prompts}/app_blueprint.md +1 -1
- package/src/server/commandHandlers/session.js +0 -471
- package/src/server/sessionRuntime/appReadiness.js +0 -55
- package/src/server/sessionRuntime/constants.js +0 -377
- package/src/server/sessionRuntime/io.js +0 -97
- package/src/server/sessionRuntime/paths.js +0 -163
- package/src/server/sessionRuntime/preconditions.js +0 -663
- package/src/server/sessionRuntime/promptRenderer.js +0 -41
- package/src/server/sessionRuntime/prompts/automated_checks_run.md +0 -28
- package/src/server/sessionRuntime/prompts/blueprint_updated.md +0 -29
- package/src/server/sessionRuntime/prompts/deep_ui_check_run.md +0 -40
- package/src/server/sessionRuntime/prompts/final_comment.md +0 -10
- package/src/server/sessionRuntime/prompts/final_report_created.md +0 -44
- package/src/server/sessionRuntime/prompts/issue_created.md +0 -26
- package/src/server/sessionRuntime/prompts/issue_prompt_rendered.md +0 -1
- package/src/server/sessionRuntime/prompts/make_plan.md +0 -57
- package/src/server/sessionRuntime/prompts/plan_executed.md +0 -39
- package/src/server/sessionRuntime/prompts/pr_failure.md +0 -28
- package/src/server/sessionRuntime/prompts/pr_merge_prepared.md +0 -22
- package/src/server/sessionRuntime/prompts/review_changes_accepted_resolve.md +0 -12
- package/src/server/sessionRuntime/prompts/review_prompt_rendered.md +0 -61
- package/src/server/sessionRuntime/prompts/user_check_completed.md +0 -17
- package/src/server/sessionRuntime/responses.js +0 -1481
- package/src/server/sessionRuntime/worktrees.js +0 -31
- package/src/server/sessionRuntime.js +0 -3659
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import {
|
|
3
|
-
runGit
|
|
4
|
-
} from "./io.js";
|
|
5
|
-
|
|
6
|
-
function parseGitWorktreeList(output = "") {
|
|
7
|
-
return String(output || "")
|
|
8
|
-
.split(/\r?\n/u)
|
|
9
|
-
.filter((line) => line.startsWith("worktree "))
|
|
10
|
-
.map((line) => path.resolve(line.slice("worktree ".length).trim()))
|
|
11
|
-
.filter(Boolean);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
async function hasWorktree(paths = {}) {
|
|
15
|
-
if (!paths.targetRoot || !paths.worktree) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
const result = await runGit(paths.targetRoot, ["worktree", "list", "--porcelain"], {
|
|
19
|
-
timeout: 10000
|
|
20
|
-
});
|
|
21
|
-
if (!result.ok) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
const expectedWorktree = path.resolve(paths.worktree);
|
|
25
|
-
return parseGitWorktreeList(result.stdout).includes(expectedWorktree);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
hasWorktree,
|
|
30
|
-
parseGitWorktreeList
|
|
31
|
-
};
|