@kw-yeh/vibeflow 4.11.61 → 4.11.63
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/dist/vibeflow.mjs +121 -43
- package/dist/web/404/index.html +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/{TonTBbeq93Ep1W-oQA2vY → 5R9aqPzjQFVX2qwdH8hNy}/_buildManifest.js +1 -1
- package/dist/web/_next/static/chunks/pages/{home-10284e7f11db4c0d.js → home-1b55b5bcebcaafa1.js} +7 -7
- package/dist/web/home/index.html +1 -1
- package/package.json +1 -1
- /package/dist/web/_next/static/{TonTBbeq93Ep1W-oQA2vY → 5R9aqPzjQFVX2qwdH8hNy}/_ssgManifest.js +0 -0
package/dist/vibeflow.mjs
CHANGED
|
@@ -698,7 +698,7 @@ function masterSystemPrompt(opts) {
|
|
|
698
698
|
' \u9019\u4E9B\u8A0A\u606F\u4EE5 <vibeflow from="\u2026"> \u5305\u4F4F\u3001\u76F4\u63A5\u51FA\u73FE\u5728\u4F60\u7684\u8F38\u5165\u88E1\u3002\u4E0D\u8981\u8F2A\u8A62 task list\uFF1B\u8981\u770B\u7D30\u7BC0\u6642\u624D\u7528 VF task show --store-path "$VIBEFLOW_STORE_DIR" --task <id>\u3002',
|
|
699
699
|
'5. \u8ABF\u5EA6\uFF1A\u7528 VF task send --store-path "$VIBEFLOW_STORE_DIR" --task <id> --text <\u5167\u5BB9> \u5C0D\u81EA\u5DF1\u7684\u5361\u4E0B\u6307\u793A\uFF1B\u5361\u8207\u5361\u4E4B\u9593\u4E0D\u80FD\u76F4\u63A5\u50B3\u8A71\uFF0C\u4E00\u5F8B\u7D93\u904E\u4F60\u3002',
|
|
700
700
|
" \u9700\u8981\u7368\u7ACB\u9A57\u6536\u6642\u53E6\u958B\u4E00\u5F35\u9A57\u6536\u5361\u3002\u9A57\u6536\u56DE\u5831\u554F\u984C\u6642\uFF0C\u628A\u5177\u9AD4\u554F\u984C\u8207\u91CD\u73FE\u6B65\u9A5F\u6574\u7406\u597D\u8F49\u7D66\u8CA0\u8CAC\u958B\u767C\u7684\u5361\u4FEE\u6B63\uFF0C\u4FEE\u5B8C\u518D\u8ACB\u9A57\u6536\u5361\u8907\u9A57\uFF0C\u76F4\u5230\u901A\u904E\u3002",
|
|
701
|
-
' task send \u56DE via: "queued" \u4EE3\u8868\u8A0A\u606F\u5DF2\u6392\u9032\u5C0D\u65B9\u7684\u6536\u4EF6\u5323\uFF0C\u5C0D\u65B9\u4E0B\u4E00\u6B21\u52D5\u4F5C\u6216\
|
|
701
|
+
' task send \u56DE via: "queued" \u4EE3\u8868\u8A0A\u606F\u5DF2\u6392\u9032\u5C0D\u65B9\u7684\u6536\u4EF6\u5323\uFF0C\u5C0D\u65B9\u4E0B\u4E00\u6B21\u52D5\u4F5C\u6216\u9592\u7F6E\u6642\u5C31\u6703\u770B\u5230\uFF0C\u4E0D\u5FC5\u91CD\u9001\uFF1Btask show \u7684 inbox \u662F\u5C0D\u65B9\u9084\u6C92\u8B80\u5230\u7684\u8A0A\u606F\u6578\uFF1B\u56DE TARGET_BLOCKED \u4EE3\u8868\u5C0D\u65B9\u5361\u5728\u6B0A\u9650\u78BA\u8A8D\uFF0C\u8ACB\u4F7F\u7528\u8005\u5230\u90A3\u5F35\u5361\u8655\u7406\u3002',
|
|
702
702
|
"6. PR\uFF1A\u9A57\u6536\u901A\u904E\u5F8C\uFF0C\u4EA4\u4EE3\u958B\u767C\u5361\u7528 pr skill \u958B PR\uFF08\u74B0\u5883\u88E1\u6C92\u6709\u9019\u500B skill \u5C31\u7528 gh pr create\uFF09\uFF0C\u4E26\u56DE\u5831 PR \u9023\u7D50\u7D66\u4F60\u3002",
|
|
703
703
|
"7. \u4F7F\u7528\u8005\u4E3B\u8981\u53EA\u8DDF\u4F60\u6E9D\u901A\uFF1A\u4E3B\u52D5\u5411\u4F7F\u7528\u8005\u56DE\u5831\u6574\u9AD4\u9032\u5EA6\u8207\u9700\u8981\u4F7F\u7528\u8005\u6C7A\u5B9A\u7684\u4E8B\u3002\u4F60\u4E0D\u6703\u628A\u5361\u7247\u79FB\u5230 Done\u3001\u4E0D\u6703\u5408\u4F75 PR\uFF1B\u5168\u90E8\u5B8C\u6210\u5F8C\u6574\u7406\u6BCF\u5F35\u5361\u7684\u7D50\u679C\u8207 PR \u9023\u7D50\uFF0C\u4EA4\u7D66\u4F7F\u7528\u8005\u505A\u6700\u5F8C\u78BA\u8A8D\u3002",
|
|
704
704
|
" \u8DDF\u4F7F\u7528\u8005\u63D0\u5230\u4EFB\u4F55\u4E00\u5F35\u5361\u6642\uFF0C\u4E00\u5F8B\u5BEB\u6210 <id>\u300C<\u6A19\u984C>\u300D\u2014\u2014\u5361\u7247\u4E0A\u770B\u5F97\u5230 id\uFF0C\u4F7F\u7528\u8005\u9760\u5B83\u5C0D\u4E0A\u662F\u54EA\u4E00\u5F35\u3002"
|
|
@@ -1008,6 +1008,13 @@ function isClaudePrompt(entry, message2) {
|
|
|
1008
1008
|
if (origin && typeof origin === "object") return origin.kind === "human";
|
|
1009
1009
|
return !CLAUDE_MACHINE_PROMPT.test(text);
|
|
1010
1010
|
}
|
|
1011
|
+
function isClaudeInterrupt(entry, message2) {
|
|
1012
|
+
if (entry.isSidechain) return false;
|
|
1013
|
+
const content = message2.content;
|
|
1014
|
+
const blocks = Array.isArray(content) ? content : [];
|
|
1015
|
+
const text = typeof content === "string" ? content : blocks.find((b) => b?.type === "text")?.text;
|
|
1016
|
+
return typeof text === "string" && text.startsWith("[Request interrupted");
|
|
1017
|
+
}
|
|
1011
1018
|
function claudeUsage(u) {
|
|
1012
1019
|
const details = u.output_tokens_details;
|
|
1013
1020
|
return {
|
|
@@ -1107,7 +1114,7 @@ function reduceClaudeLine(state, line) {
|
|
|
1107
1114
|
}
|
|
1108
1115
|
next.pendingTasks = pending;
|
|
1109
1116
|
if (isClaudePrompt(entry, message2)) next.turns = state.turns + 1;
|
|
1110
|
-
next.activity = { state: "working", at };
|
|
1117
|
+
next.activity = isClaudeInterrupt(entry, message2) ? { state: "waiting", waitingFor: "input", at } : { state: "working", at };
|
|
1111
1118
|
return next;
|
|
1112
1119
|
}
|
|
1113
1120
|
return next;
|
|
@@ -4107,6 +4114,44 @@ async function adoptRemoteBranch(projectPath, worktreePath, branch, base2) {
|
|
|
4107
4114
|
copyIgnoredDependenciesInBackground(projectPath, worktreePath, ignoredEntries);
|
|
4108
4115
|
return { branch, worktreePath, pushed: true, baseBranch: base2 };
|
|
4109
4116
|
}
|
|
4117
|
+
async function freshStartPoint(projectPath, base2, hasRemote) {
|
|
4118
|
+
if (!hasRemote) return base2;
|
|
4119
|
+
try {
|
|
4120
|
+
await git(projectPath, ["fetch", "origin", `${base2}:${base2}`]);
|
|
4121
|
+
} catch {
|
|
4122
|
+
try {
|
|
4123
|
+
await git(projectPath, ["fetch", "origin", base2]);
|
|
4124
|
+
} catch {
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
try {
|
|
4128
|
+
await git(projectPath, ["rev-parse", "--verify", `origin/${base2}`]);
|
|
4129
|
+
return `origin/${base2}`;
|
|
4130
|
+
} catch {
|
|
4131
|
+
return base2;
|
|
4132
|
+
}
|
|
4133
|
+
}
|
|
4134
|
+
async function provisionDetachedWorktree(projectPath, workspacePath, taskId, baseBranch) {
|
|
4135
|
+
await ensureLocalExclude(projectPath);
|
|
4136
|
+
const worktreePath = path12.join(workspacePath, fallbackBranchName(taskId));
|
|
4137
|
+
if (await fs9.access(worktreePath).then(() => true, () => false)) {
|
|
4138
|
+
throw Object.assign(new Error(`\u5DE5\u4F5C\u5340\u8CC7\u6599\u593E\u5DF2\u5B58\u5728\uFF1A${fallbackBranchName(taskId)}`), {
|
|
4139
|
+
code: "WORKTREE_DIR_EXISTS"
|
|
4140
|
+
});
|
|
4141
|
+
}
|
|
4142
|
+
const info = await getGitInfo(projectPath);
|
|
4143
|
+
const base2 = baseBranch || info.defaultBase || info.currentBranch || "HEAD";
|
|
4144
|
+
const startPoint = await freshStartPoint(projectPath, base2, info.hasRemote);
|
|
4145
|
+
try {
|
|
4146
|
+
await git(projectPath, ["worktree", "add", "--detach", worktreePath, startPoint]);
|
|
4147
|
+
} catch (err) {
|
|
4148
|
+
await removeWorktree(projectPath, worktreePath);
|
|
4149
|
+
throw err;
|
|
4150
|
+
}
|
|
4151
|
+
const ignoredEntries = await copySmallIgnoredFiles(projectPath, worktreePath);
|
|
4152
|
+
copyIgnoredDependenciesInBackground(projectPath, worktreePath, ignoredEntries);
|
|
4153
|
+
return { worktreePath, pushed: false, baseBranch: base2 };
|
|
4154
|
+
}
|
|
4110
4155
|
async function provisionWorktree(projectPath, workspacePath, taskId, baseBranch, preferredBranch, opts = {}) {
|
|
4111
4156
|
await ensureLocalExclude(projectPath);
|
|
4112
4157
|
const branch = opts.explicitBranch && preferredBranch ? preferredBranch : await resolveBranchName(projectPath, workspacePath, taskId, preferredBranch);
|
|
@@ -4116,23 +4161,7 @@ async function provisionWorktree(projectPath, workspacePath, taskId, baseBranch,
|
|
|
4116
4161
|
if (opts.explicitBranch && info.hasRemote && await remoteBranchExists(projectPath, branch)) {
|
|
4117
4162
|
return adoptRemoteBranch(projectPath, worktreePath, branch, base2);
|
|
4118
4163
|
}
|
|
4119
|
-
|
|
4120
|
-
if (info.hasRemote) {
|
|
4121
|
-
try {
|
|
4122
|
-
await git(projectPath, ["fetch", "origin", `${base2}:${base2}`]);
|
|
4123
|
-
} catch {
|
|
4124
|
-
try {
|
|
4125
|
-
await git(projectPath, ["fetch", "origin", base2]);
|
|
4126
|
-
} catch {
|
|
4127
|
-
}
|
|
4128
|
-
}
|
|
4129
|
-
try {
|
|
4130
|
-
await git(projectPath, ["rev-parse", "--verify", `origin/${base2}`]);
|
|
4131
|
-
startPoint = `origin/${base2}`;
|
|
4132
|
-
} catch {
|
|
4133
|
-
startPoint = base2;
|
|
4134
|
-
}
|
|
4135
|
-
}
|
|
4164
|
+
const startPoint = await freshStartPoint(projectPath, base2, info.hasRemote);
|
|
4136
4165
|
try {
|
|
4137
4166
|
await git(projectPath, [
|
|
4138
4167
|
"worktree",
|
|
@@ -4622,12 +4651,13 @@ async function createTaskFromInput(input, options = {}) {
|
|
|
4622
4651
|
if (input.mode === "new") {
|
|
4623
4652
|
await initRepository(projectPath);
|
|
4624
4653
|
}
|
|
4654
|
+
const noBranch = input.createBranch === false;
|
|
4625
4655
|
const info = await getGitInfo(projectPath);
|
|
4626
|
-
if (!info.isRepo) {
|
|
4656
|
+
if (!info.isRepo && !noBranch) {
|
|
4627
4657
|
throw Object.assign(new Error("\u76EE\u6A19\u8DEF\u5F91\u4E0D\u662F git repository"), { code: "PROJECT_NOT_GIT_REPO" });
|
|
4628
4658
|
}
|
|
4629
4659
|
const taskId = randomUUID2().slice(0, 8);
|
|
4630
|
-
const explicitBranch = input.branch?.trim() || null;
|
|
4660
|
+
const explicitBranch = noBranch ? null : input.branch?.trim() || null;
|
|
4631
4661
|
const store = input.storePath ? getStoreAtPath(input.storePath) : getStore();
|
|
4632
4662
|
if (input.masterId) assertMasterRef(store.get("board"), input.masterId);
|
|
4633
4663
|
const projectName = path13.basename(projectPath);
|
|
@@ -4639,16 +4669,18 @@ async function createTaskFromInput(input, options = {}) {
|
|
|
4639
4669
|
if (explicitBranch) {
|
|
4640
4670
|
await assertBranchAvailable(projectPath, workspacePath, explicitBranch);
|
|
4641
4671
|
}
|
|
4642
|
-
const branch = explicitBranch ?? await generateBranchName(input.title, input.description, options.translateTitle);
|
|
4672
|
+
const branch = noBranch ? "" : explicitBranch ?? await generateBranchName(input.title, input.description, options.translateTitle) ?? fallbackBranchName(taskId);
|
|
4643
4673
|
const draft = {
|
|
4644
4674
|
id: taskId,
|
|
4645
4675
|
title: input.title.trim() || `Task ${taskId}`,
|
|
4646
|
-
branch
|
|
4676
|
+
branch,
|
|
4647
4677
|
branchExplicit: explicitBranch ? true : void 0,
|
|
4648
4678
|
projectPath,
|
|
4649
4679
|
projectName,
|
|
4650
4680
|
workspacePath,
|
|
4651
|
-
baseBranch: input.baseBranch || info.defaultBase || info.currentBranch || void 0
|
|
4681
|
+
baseBranch: info.isRepo ? input.baseBranch || info.defaultBase || info.currentBranch || void 0 : void 0,
|
|
4682
|
+
...noBranch ? { noBranch: true } : {},
|
|
4683
|
+
...noBranch && !info.isRepo ? { inPlace: true } : {}
|
|
4652
4684
|
};
|
|
4653
4685
|
const col = input.status ?? "backlog";
|
|
4654
4686
|
const provisioned = col === "backlog" ? null : await provisionTaskWorktree(draft);
|
|
@@ -4742,7 +4774,23 @@ async function provisionTaskWorktree(task) {
|
|
|
4742
4774
|
code: "WORKTREE_CREATE_FAILED"
|
|
4743
4775
|
});
|
|
4744
4776
|
}
|
|
4777
|
+
if (task.inPlace) {
|
|
4778
|
+
return { branch: "", worktreePath: task.projectPath, provisionedAt: Date.now() };
|
|
4779
|
+
}
|
|
4745
4780
|
await fs10.mkdir(task.workspacePath, { recursive: true });
|
|
4781
|
+
if (task.noBranch) {
|
|
4782
|
+
try {
|
|
4783
|
+
const result = await provisionDetachedWorktree(
|
|
4784
|
+
task.projectPath,
|
|
4785
|
+
task.workspacePath,
|
|
4786
|
+
task.id,
|
|
4787
|
+
task.baseBranch ?? null
|
|
4788
|
+
);
|
|
4789
|
+
return { branch: "", ...result, provisionedAt: Date.now() };
|
|
4790
|
+
} catch (err) {
|
|
4791
|
+
throw taskError(`Worktree \u5EFA\u7ACB\u5931\u6557\uFF1A${err.message}`, "WORKTREE_CREATE_FAILED");
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4746
4794
|
if (task.branchExplicit) {
|
|
4747
4795
|
await assertBranchAvailable(task.projectPath, task.workspacePath, task.branch);
|
|
4748
4796
|
}
|
|
@@ -4960,6 +5008,8 @@ task create options:
|
|
|
4960
5008
|
--branch <name> Branch to create for the task (default: derived from the title).
|
|
4961
5009
|
If origin already publishes it, the branch is fetched and
|
|
4962
5010
|
checked out instead of being created.
|
|
5011
|
+
--no-branch Do not create a branch: a git project gets a detached
|
|
5012
|
+
worktree, any other folder is used as is.
|
|
4963
5013
|
--mode <mode> ${MODES.join(" | ")} (default: existing; "new" runs git init first)
|
|
4964
5014
|
--agent <id> Task agent: ${AGENT_IDS.join(" | ")} (default: claude)
|
|
4965
5015
|
--model <id> Task model (default: the agent's own default)
|
|
@@ -5071,6 +5121,7 @@ async function taskCommand(argv) {
|
|
|
5071
5121
|
status: { type: "string" },
|
|
5072
5122
|
"base-branch": { type: "string" },
|
|
5073
5123
|
branch: { type: "string" },
|
|
5124
|
+
"no-branch": { type: "boolean" },
|
|
5074
5125
|
mode: { type: "string" },
|
|
5075
5126
|
agent: { type: "string" },
|
|
5076
5127
|
model: { type: "string" },
|
|
@@ -5146,6 +5197,8 @@ async function taskCommand(argv) {
|
|
|
5146
5197
|
if (master && (values.project || values["base-branch"] || values.branch || values.mode)) {
|
|
5147
5198
|
fail("INVALID_ARGUMENT", "A master card has no project: drop --project / --base-branch / --branch / --mode");
|
|
5148
5199
|
}
|
|
5200
|
+
if (master && values["no-branch"]) fail("INVALID_ARGUMENT", "A master card has no branch already: drop --no-branch");
|
|
5201
|
+
if (values["no-branch"] && values.branch !== void 0) fail("INVALID_ARGUMENT", "--branch and --no-branch cannot be used together");
|
|
5149
5202
|
const missing = [];
|
|
5150
5203
|
if (!master && !values.project) missing.push("--project");
|
|
5151
5204
|
if (!values.title) missing.push("--title");
|
|
@@ -5174,6 +5227,7 @@ async function taskCommand(argv) {
|
|
|
5174
5227
|
status: values.status ?? "backlog",
|
|
5175
5228
|
baseBranch: values["base-branch"] ?? null,
|
|
5176
5229
|
branch: values.branch,
|
|
5230
|
+
createBranch: values["no-branch"] ? false : void 0,
|
|
5177
5231
|
mode: values.mode ?? "existing",
|
|
5178
5232
|
agentCli: values.agent,
|
|
5179
5233
|
model: values.model,
|
|
@@ -5191,6 +5245,7 @@ async function taskCommand(argv) {
|
|
|
5191
5245
|
masterId: task.masterId ?? null,
|
|
5192
5246
|
projectPath: task.projectPath ?? null,
|
|
5193
5247
|
branch: task.branch,
|
|
5248
|
+
noBranch: task.noBranch === true,
|
|
5194
5249
|
worktreePath: task.worktreePath ?? null,
|
|
5195
5250
|
baseBranch: task.baseBranch,
|
|
5196
5251
|
agentCli: task.agentCli,
|
|
@@ -7982,6 +8037,7 @@ var PASTE_END = "\x1B[201~";
|
|
|
7982
8037
|
var PASTE_GAP_MS = 200;
|
|
7983
8038
|
var DEFAULT_QUIET_MS = 3e3;
|
|
7984
8039
|
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
8040
|
+
var DEFAULT_RETRY_MS = 5e3;
|
|
7985
8041
|
function coded(code2, message2) {
|
|
7986
8042
|
return Object.assign(new Error(message2), { code: code2 });
|
|
7987
8043
|
}
|
|
@@ -8021,10 +8077,28 @@ function createMailbox(options) {
|
|
|
8021
8077
|
const drafts = /* @__PURE__ */ new Set();
|
|
8022
8078
|
const held = /* @__PURE__ */ new Map();
|
|
8023
8079
|
const turns = /* @__PURE__ */ new Map();
|
|
8080
|
+
const retries = /* @__PURE__ */ new Map();
|
|
8024
8081
|
function noteInput(key, data) {
|
|
8025
8082
|
lastInput.set(key, Date.now());
|
|
8026
|
-
|
|
8083
|
+
const had = drafts.has(key);
|
|
8084
|
+
if (draftAfter(had, data)) drafts.add(key);
|
|
8027
8085
|
else drafts.delete(key);
|
|
8086
|
+
return had && !drafts.has(key);
|
|
8087
|
+
}
|
|
8088
|
+
function retryLater(key) {
|
|
8089
|
+
if (retries.has(key)) return;
|
|
8090
|
+
const timer = setTimeout(() => {
|
|
8091
|
+
retries.delete(key);
|
|
8092
|
+
poke(key);
|
|
8093
|
+
}, options.retryMs ?? DEFAULT_RETRY_MS);
|
|
8094
|
+
timer.unref?.();
|
|
8095
|
+
retries.set(key, timer);
|
|
8096
|
+
}
|
|
8097
|
+
function poke(key) {
|
|
8098
|
+
const dir = options.inbox?.(key);
|
|
8099
|
+
if (!dir || !pendingMessages(dir) || turns.has(key)) return;
|
|
8100
|
+
void enqueue(key, () => wake(key, dir)).catch(() => {
|
|
8101
|
+
});
|
|
8028
8102
|
}
|
|
8029
8103
|
async function waitForQuiet(key, started) {
|
|
8030
8104
|
const quiet = options.quietMs ?? quietFromEnv();
|
|
@@ -8055,7 +8129,10 @@ function createMailbox(options) {
|
|
|
8055
8129
|
async function wake(key, dir) {
|
|
8056
8130
|
const quiet = options.quietMs ?? quietFromEnv();
|
|
8057
8131
|
for (; ; ) {
|
|
8058
|
-
if (!await canWake(key))
|
|
8132
|
+
if (!await canWake(key)) {
|
|
8133
|
+
retryLater(key);
|
|
8134
|
+
return "queued";
|
|
8135
|
+
}
|
|
8059
8136
|
const left = (lastInput.get(key) ?? 0) + quiet - Date.now();
|
|
8060
8137
|
if (left <= 0) break;
|
|
8061
8138
|
await sleep(Math.min(left, 250));
|
|
@@ -8087,7 +8164,7 @@ function createMailbox(options) {
|
|
|
8087
8164
|
}
|
|
8088
8165
|
return {
|
|
8089
8166
|
userInput(key, data) {
|
|
8090
|
-
noteInput(key, data);
|
|
8167
|
+
if (noteInput(key, data)) queueMicrotask(() => poke(key));
|
|
8091
8168
|
const buffer = held.get(key);
|
|
8092
8169
|
if (buffer) {
|
|
8093
8170
|
buffer.push(data);
|
|
@@ -8105,13 +8182,10 @@ function createMailbox(options) {
|
|
|
8105
8182
|
return { queuedMs: Date.now() - started, via };
|
|
8106
8183
|
});
|
|
8107
8184
|
},
|
|
8108
|
-
poke
|
|
8109
|
-
const dir = options.inbox?.(key);
|
|
8110
|
-
if (!dir || !pendingMessages(dir) || turns.has(key)) return;
|
|
8111
|
-
void enqueue(key, () => wake(key, dir)).catch(() => {
|
|
8112
|
-
});
|
|
8113
|
-
},
|
|
8185
|
+
poke,
|
|
8114
8186
|
forget(key) {
|
|
8187
|
+
clearTimeout(retries.get(key));
|
|
8188
|
+
retries.delete(key);
|
|
8115
8189
|
lastInput.delete(key);
|
|
8116
8190
|
drafts.delete(key);
|
|
8117
8191
|
held.delete(key);
|
|
@@ -8351,7 +8425,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8351
8425
|
}
|
|
8352
8426
|
});
|
|
8353
8427
|
function gitWorktree(task) {
|
|
8354
|
-
return isMasterTask(task) ? void 0 : task.worktreePath;
|
|
8428
|
+
return isMasterTask(task) || task.inPlace ? void 0 : task.worktreePath;
|
|
8355
8429
|
}
|
|
8356
8430
|
function progressTarget(task) {
|
|
8357
8431
|
if (!task.worktreePath) return null;
|
|
@@ -8585,11 +8659,10 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8585
8659
|
return path24.join(os9.homedir(), ".claude", "projects", munged, `${sessionId}.jsonl`);
|
|
8586
8660
|
}
|
|
8587
8661
|
async function removeTaskWorktree(task) {
|
|
8588
|
-
if (!task.projectPath || !task.worktreePath) return;
|
|
8589
|
-
const branch = task.branch || fallbackBranchName(task.id);
|
|
8662
|
+
if (!task.projectPath || !task.worktreePath || task.inPlace) return;
|
|
8590
8663
|
await removeWorktree(task.projectPath, task.worktreePath);
|
|
8591
8664
|
deleteArtifacts(task.workspacePath ?? path24.dirname(task.worktreePath), task.worktreePath);
|
|
8592
|
-
await deleteBranch(task.projectPath, branch);
|
|
8665
|
+
if (!task.noBranch) await deleteBranch(task.projectPath, task.branch || fallbackBranchName(task.id));
|
|
8593
8666
|
}
|
|
8594
8667
|
function columnOf(taskId) {
|
|
8595
8668
|
const board = getState().board;
|
|
@@ -8707,6 +8780,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8707
8780
|
const todos = snapshot?.todos;
|
|
8708
8781
|
const current = todos?.find((t) => t.status === "in_progress");
|
|
8709
8782
|
const pr = task.outcome?.pr;
|
|
8783
|
+
const waiting = task.worktreePath ? pendingMessages(inboxDir(task.worktreePath)) : 0;
|
|
8710
8784
|
summaries.push({
|
|
8711
8785
|
id: task.id,
|
|
8712
8786
|
title: task.title,
|
|
@@ -8727,6 +8801,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8727
8801
|
}
|
|
8728
8802
|
} : {},
|
|
8729
8803
|
...snapshot ? { activity: snapshot.activity } : {},
|
|
8804
|
+
...waiting ? { inbox: waiting } : {},
|
|
8730
8805
|
...pr ? { pr: { number: pr.number, url: pr.url, state: pr.state } } : {},
|
|
8731
8806
|
...task.outcome ? {
|
|
8732
8807
|
outcome: {
|
|
@@ -8852,6 +8927,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8852
8927
|
if (p.agentCli !== void 0 && !AGENT_IDS2.includes(p.agentCli)) invalid("unknown agent");
|
|
8853
8928
|
if (p.github !== void 0 && !isGithubRef(p.github)) invalid("github must be an issue or pr ref on github.com");
|
|
8854
8929
|
if (p.jira !== void 0 && !isJiraRef(p.jira)) invalid("jira must be a Jira ticket ref");
|
|
8930
|
+
if (p.createBranch !== void 0 && typeof p.createBranch !== "boolean") invalid("createBranch must be a boolean");
|
|
8855
8931
|
const { task } = await createTaskFromInput({
|
|
8856
8932
|
projectPath: p.projectPath,
|
|
8857
8933
|
role: p.role,
|
|
@@ -8862,6 +8938,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8862
8938
|
baseBranch: p.baseBranch,
|
|
8863
8939
|
branch: p.branch,
|
|
8864
8940
|
mode: p.mode,
|
|
8941
|
+
createBranch: p.createBranch,
|
|
8865
8942
|
agentCli: p.agentCli,
|
|
8866
8943
|
model: p.model,
|
|
8867
8944
|
effort: p.effort,
|
|
@@ -8884,7 +8961,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8884
8961
|
// were new. Launching again is the caller's decision.
|
|
8885
8962
|
"vibeflow:resetTaskRun": async (taskId) => {
|
|
8886
8963
|
const task = requireTask(taskId);
|
|
8887
|
-
if (isMasterTask(task) && task.worktreePath) {
|
|
8964
|
+
if ((isMasterTask(task) || task.inPlace) && task.worktreePath) {
|
|
8888
8965
|
await teardownTask(task.id);
|
|
8889
8966
|
if (task.workspacePath) deleteArtifacts(task.workspacePath, task.worktreePath);
|
|
8890
8967
|
resetSubAgents(task.worktreePath);
|
|
@@ -8942,12 +9019,12 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8942
9019
|
}
|
|
8943
9020
|
let gitPatch = {};
|
|
8944
9021
|
const nextProject = isMasterTask(existing) ? void 0 : p.projectPath || existing.projectPath;
|
|
8945
|
-
const nextBranch = p.branch === void 0 ? "" : str(p.branch, "branch").trim();
|
|
9022
|
+
const nextBranch = p.branch === void 0 || existing.noBranch ? "" : str(p.branch, "branch").trim();
|
|
8946
9023
|
const projectChanged2 = Boolean(p.projectPath && p.projectPath !== existing.projectPath);
|
|
8947
9024
|
const baseChanged = p.baseBranch != null && p.baseBranch !== (existing.baseBranch ?? null);
|
|
8948
9025
|
const branchChanged = Boolean(nextBranch && nextBranch !== existing.branch);
|
|
8949
9026
|
if (nextProject && (projectChanged2 || baseChanged || branchChanged)) {
|
|
8950
|
-
if (existing.worktreePath) {
|
|
9027
|
+
if (existing.worktreePath && !existing.inPlace) {
|
|
8951
9028
|
const diff = await getWorktreeDiffEntries(
|
|
8952
9029
|
existing.worktreePath,
|
|
8953
9030
|
existing.baseBranch ?? "HEAD",
|
|
@@ -8958,7 +9035,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8958
9035
|
}
|
|
8959
9036
|
}
|
|
8960
9037
|
const info = await getGitInfo(nextProject);
|
|
8961
|
-
if (!info.isRepo) throw new Error("\u76EE\u6A19\u8CC7\u6599\u593E\u4E0D\u662F git repository");
|
|
9038
|
+
if (!info.isRepo && !existing.noBranch) throw new Error("\u76EE\u6A19\u8CC7\u6599\u593E\u4E0D\u662F git repository");
|
|
8962
9039
|
const projectName = path24.basename(nextProject);
|
|
8963
9040
|
const workspacePath = projectWorkstationPath(resolveWorkstationPath(getSettings()), projectName);
|
|
8964
9041
|
await teardownTask(existing.id);
|
|
@@ -8969,7 +9046,8 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8969
9046
|
projectPath: nextProject,
|
|
8970
9047
|
projectName,
|
|
8971
9048
|
workspacePath,
|
|
8972
|
-
baseBranch: (p.baseBranch ?? (projectChanged2 ? null : existing.baseBranch)) || info.defaultBase || info.currentBranch || void 0,
|
|
9049
|
+
baseBranch: info.isRepo ? (p.baseBranch ?? (projectChanged2 ? null : existing.baseBranch)) || info.defaultBase || info.currentBranch || void 0 : void 0,
|
|
9050
|
+
inPlace: existing.noBranch && !info.isRepo ? true : void 0,
|
|
8973
9051
|
...branchChanged ? { branch: nextBranch, branchExplicit: true } : {},
|
|
8974
9052
|
worktreePath: void 0,
|
|
8975
9053
|
pushed: void 0,
|
|
@@ -9356,7 +9434,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
9356
9434
|
progress.untrack(task.id);
|
|
9357
9435
|
if (task.projectPath && task.worktreePath) {
|
|
9358
9436
|
await removeTaskWorktree(task);
|
|
9359
|
-
await syncBaseBranch(task.projectPath, task.baseBranch ?? "main");
|
|
9437
|
+
if (!task.inPlace) await syncBaseBranch(task.projectPath, task.baseBranch ?? "main");
|
|
9360
9438
|
}
|
|
9361
9439
|
updateTask(task.id, {
|
|
9362
9440
|
worktreePath: void 0,
|
package/dist/web/404/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="icon" href="/logo.svg" type="image/svg+xml" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="manifest" href="/manifest.webmanifest" data-next-head=""/><meta name="theme-color" content="#0d1117" data-next-head=""/><title data-next-head="">404: This page could not be found</title><link rel="preload" href="/_next/static/css/72b287592be5d3f0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72b287592be5d3f0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d7cc7d90e557abc8.js" defer=""></script><script src="/_next/static/chunks/framework-b92a367cf1ad4bf7.js" defer=""></script><script src="/_next/static/chunks/main-ec7fd4c371d06729.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cc5f3a5ded198d58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="icon" href="/logo.svg" type="image/svg+xml" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="manifest" href="/manifest.webmanifest" data-next-head=""/><meta name="theme-color" content="#0d1117" data-next-head=""/><title data-next-head="">404: This page could not be found</title><link rel="preload" href="/_next/static/css/72b287592be5d3f0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72b287592be5d3f0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d7cc7d90e557abc8.js" defer=""></script><script src="/_next/static/chunks/framework-b92a367cf1ad4bf7.js" defer=""></script><script src="/_next/static/chunks/main-ec7fd4c371d06729.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cc5f3a5ded198d58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/5R9aqPzjQFVX2qwdH8hNy/_buildManifest.js" defer=""></script><script src="/_next/static/5R9aqPzjQFVX2qwdH8hNy/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"5R9aqPzjQFVX2qwdH8hNy","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/dist/web/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="icon" href="/logo.svg" type="image/svg+xml" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="manifest" href="/manifest.webmanifest" data-next-head=""/><meta name="theme-color" content="#0d1117" data-next-head=""/><title data-next-head="">404: This page could not be found</title><link rel="preload" href="/_next/static/css/72b287592be5d3f0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72b287592be5d3f0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d7cc7d90e557abc8.js" defer=""></script><script src="/_next/static/chunks/framework-b92a367cf1ad4bf7.js" defer=""></script><script src="/_next/static/chunks/main-ec7fd4c371d06729.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cc5f3a5ded198d58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="icon" href="/logo.svg" type="image/svg+xml" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="manifest" href="/manifest.webmanifest" data-next-head=""/><meta name="theme-color" content="#0d1117" data-next-head=""/><title data-next-head="">404: This page could not be found</title><link rel="preload" href="/_next/static/css/72b287592be5d3f0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72b287592be5d3f0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d7cc7d90e557abc8.js" defer=""></script><script src="/_next/static/chunks/framework-b92a367cf1ad4bf7.js" defer=""></script><script src="/_next/static/chunks/main-ec7fd4c371d06729.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cc5f3a5ded198d58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/5R9aqPzjQFVX2qwdH8hNy/_buildManifest.js" defer=""></script><script src="/_next/static/5R9aqPzjQFVX2qwdH8hNy/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"5R9aqPzjQFVX2qwdH8hNy","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/dist/web/_next/static/{TonTBbeq93Ep1W-oQA2vY → 5R9aqPzjQFVX2qwdH8hNy}/_buildManifest.js
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-8f65b0f8749f42d2.js"],"/home":["static/chunks/2362-46f5f7e798186269.js","static/chunks/pages/home-
|
|
1
|
+
self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-8f65b0f8749f42d2.js"],"/home":["static/chunks/2362-46f5f7e798186269.js","static/chunks/pages/home-1b55b5bcebcaafa1.js"],sortedPages:["/_app","/_error","/home"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|