@kw-yeh/vibeflow 4.11.58 → 4.11.60
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 +248 -107
- package/dist/web/404/index.html +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/home/index.html +1 -1
- package/package.json +1 -1
- /package/dist/web/_next/static/{GTkU0wdIsq4m_7CMxYGnt → DDcUTYxPTa0eFKJZ3xGl4}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{GTkU0wdIsq4m_7CMxYGnt → DDcUTYxPTa0eFKJZ3xGl4}/_ssgManifest.js +0 -0
package/dist/vibeflow.mjs
CHANGED
|
@@ -525,6 +525,12 @@ var init_tmux_backend = __esm({
|
|
|
525
525
|
isAttached(key) {
|
|
526
526
|
return this.clients.has(key);
|
|
527
527
|
}
|
|
528
|
+
async hasForeignClients(key) {
|
|
529
|
+
const { code: code2, stdout } = await this.tmux("list-clients", "-t", `=${this.sessionName(key)}`, "-F", "#{client_pid}");
|
|
530
|
+
if (code2 !== 0) return false;
|
|
531
|
+
const own = this.clients.get(key)?.proc.pid;
|
|
532
|
+
return stdout.split("\n").some((line) => line.trim() && Number(line) !== own);
|
|
533
|
+
}
|
|
528
534
|
resize(key, cols, rows) {
|
|
529
535
|
try {
|
|
530
536
|
this.clients.get(key)?.proc.resize(Math.max(cols, 1), Math.max(rows, 1));
|
|
@@ -597,6 +603,10 @@ function claudeResumeOrFresh(sessionId, worktreePath, tail) {
|
|
|
597
603
|
const sessionFile = `"$HOME/.claude/projects/${munged}/${sessionId}.jsonl"`;
|
|
598
604
|
return `if [ -f ${sessionFile} ]; then claude --resume ${sessionId} ${tail}; else claude --session-id ${sessionId} ${tail}; fi\r`;
|
|
599
605
|
}
|
|
606
|
+
function inboxHookCommand(inboxDir2, event) {
|
|
607
|
+
const dir = toShellPath(inboxDir2);
|
|
608
|
+
return `if ls "${dir}" 2>/dev/null | grep -q .; then node -e '${INBOX_READER}' "${dir}" ${event}; fi; exit 0`;
|
|
609
|
+
}
|
|
600
610
|
function buildClaudeSettings(worktreePath) {
|
|
601
611
|
const settings = {
|
|
602
612
|
theme: "dark",
|
|
@@ -613,12 +623,19 @@ function buildClaudeSettings(worktreePath) {
|
|
|
613
623
|
const progress = {
|
|
614
624
|
hooks: [{ type: "command", command: `mkdir -p "${eventsDir}" && cat > "${eventsDir}/$(date +%s)-$$-$RANDOM.json"; exit 0` }]
|
|
615
625
|
};
|
|
626
|
+
const inboxDir2 = `${toShellPath(worktreePath)}/${INBOX_DIR}`;
|
|
627
|
+
const inbox = (event) => ({
|
|
628
|
+
hooks: [{ type: "command", command: inboxHookCommand(inboxDir2, event) }]
|
|
629
|
+
});
|
|
616
630
|
settings.hooks = {
|
|
617
631
|
PreToolUse: [taskHook],
|
|
618
|
-
PostToolUse: [taskHook, { matcher: TODO_TOOLS, ...progress }],
|
|
619
|
-
Stop: [progress],
|
|
632
|
+
PostToolUse: [taskHook, { matcher: TODO_TOOLS, ...progress }, inbox("PostToolUse")],
|
|
633
|
+
Stop: [progress, inbox("Stop")],
|
|
620
634
|
Notification: [progress],
|
|
621
|
-
UserPromptSubmit: [progress]
|
|
635
|
+
UserPromptSubmit: [progress, inbox("UserPromptSubmit")],
|
|
636
|
+
SessionStart: [{
|
|
637
|
+
hooks: [{ type: "command", command: `mkdir -p "${inboxDir2}" && : > "${inboxDir2}/${INBOX_READY_FILE}"; exit 0` }]
|
|
638
|
+
}]
|
|
622
639
|
};
|
|
623
640
|
}
|
|
624
641
|
return JSON.stringify(settings);
|
|
@@ -676,7 +693,7 @@ function masterSystemPrompt(opts) {
|
|
|
676
693
|
' \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',
|
|
677
694
|
'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',
|
|
678
695
|
" \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",
|
|
679
|
-
|
|
696
|
+
' 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\u4F7F\u7528\u8005\u9001\u51FA\u8A0A\u606F\u6642\u5C31\u6703\u770B\u5230\uFF0C\u4E0D\u5FC5\u91CD\u9001\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',
|
|
680
697
|
"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",
|
|
681
698
|
"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",
|
|
682
699
|
" \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"
|
|
@@ -769,7 +786,7 @@ function buildAgentCommand(task, systemPrompt, opts, workspacePath) {
|
|
|
769
786
|
workspacePath
|
|
770
787
|
);
|
|
771
788
|
}
|
|
772
|
-
var ARTIFACTS_DIR_SUFFIX, SCRATCH_DIR_NAME, ARTIFACTS_FALLBACK_DIR, AUTO_PERMISSION_MODE, SUBAGENTS_DIR2, PROGRESS_EVENTS_DIR, TODO_TOOLS, BOARD_CLI_SETUP, AGENT_NAMES, RETIRED_MODELS;
|
|
789
|
+
var ARTIFACTS_DIR_SUFFIX, SCRATCH_DIR_NAME, ARTIFACTS_FALLBACK_DIR, AUTO_PERMISSION_MODE, SUBAGENTS_DIR2, PROGRESS_EVENTS_DIR, INBOX_DIR, INBOX_READY_FILE, INBOX_READER, TODO_TOOLS, BOARD_CLI_SETUP, AGENT_NAMES, RETIRED_MODELS;
|
|
773
790
|
var init_launch = __esm({
|
|
774
791
|
"packages/core/src/launch.ts"() {
|
|
775
792
|
"use strict";
|
|
@@ -779,6 +796,19 @@ var init_launch = __esm({
|
|
|
779
796
|
AUTO_PERMISSION_MODE = "auto";
|
|
780
797
|
SUBAGENTS_DIR2 = ".vibeflow-subagents";
|
|
781
798
|
PROGRESS_EVENTS_DIR = ".vibeflow-events";
|
|
799
|
+
INBOX_DIR = ".vibeflow-inbox";
|
|
800
|
+
INBOX_READY_FILE = ".ready";
|
|
801
|
+
INBOX_READER = [
|
|
802
|
+
'const fs=require("fs"),path=require("path");',
|
|
803
|
+
"const [dir,event]=process.argv.slice(1);const out=[];",
|
|
804
|
+
'for(const name of fs.readdirSync(dir).filter((n)=>!n.startsWith(".")).sort()){',
|
|
805
|
+
'const claimed=path.join(dir,".hook-"+name);',
|
|
806
|
+
"try{fs.renameSync(path.join(dir,name),claimed)}catch{continue}",
|
|
807
|
+
'out.push(fs.readFileSync(claimed,"utf8"));fs.rmSync(claimed,{force:true})}',
|
|
808
|
+
'if(out.length){const text=out.join("\\n\\n");',
|
|
809
|
+
'process.stdout.write(JSON.stringify(event==="Stop"?{decision:"block",reason:text}',
|
|
810
|
+
":{hookSpecificOutput:{hookEventName:event,additionalContext:text}}))}"
|
|
811
|
+
].join("");
|
|
782
812
|
TODO_TOOLS = "TodoWrite|TaskCreate|TaskUpdate";
|
|
783
813
|
BOARD_CLI_SETUP = [
|
|
784
814
|
'\u5148\u5B9A\u7FA9\u9019\u500B shell \u51FD\u5F0F\uFF0C\u4E4B\u5F8C\u6240\u6709\u6307\u4EE4\u90FD\u7528\u5B83\uFF0C\u4E26\u4E14\u4E00\u5F8B\u5E36\u4E0A --store-path "$VIBEFLOW_STORE_DIR"\uFF1A',
|
|
@@ -1227,9 +1257,9 @@ var init_progress = __esm({
|
|
|
1227
1257
|
|
|
1228
1258
|
// packages/tui/src/task-form.ts
|
|
1229
1259
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
1230
|
-
import
|
|
1260
|
+
import fs28 from "fs";
|
|
1231
1261
|
import os10 from "os";
|
|
1232
|
-
import
|
|
1262
|
+
import path30 from "path";
|
|
1233
1263
|
import React, { useEffect, useRef, useState } from "react";
|
|
1234
1264
|
import { Box, Text, render as render2, useApp, useInput } from "ink";
|
|
1235
1265
|
function newFormState(defaultAutoMode, agents) {
|
|
@@ -1366,17 +1396,17 @@ function editorCommand(env, platform) {
|
|
|
1366
1396
|
return env.VISUAL?.trim() || env.EDITOR?.trim() || (platform === "win32" ? "notepad" : "vi");
|
|
1367
1397
|
}
|
|
1368
1398
|
function editInEditor(text) {
|
|
1369
|
-
const dir =
|
|
1370
|
-
const file =
|
|
1399
|
+
const dir = fs28.mkdtempSync(path30.join(os10.tmpdir(), "vibeflow-"));
|
|
1400
|
+
const file = path30.join(dir, "description.md");
|
|
1371
1401
|
try {
|
|
1372
|
-
|
|
1402
|
+
fs28.writeFileSync(file, text);
|
|
1373
1403
|
const cmd = editorCommand(process.env, process.platform);
|
|
1374
1404
|
const r = spawnSync2(`${cmd} "${file}"`, { stdio: "inherit", shell: true });
|
|
1375
1405
|
if (r.error) return { error: `\u7121\u6CD5\u555F\u52D5\u7DE8\u8F2F\u5668\uFF08${cmd}\uFF09\uFF1A${r.error.message}` };
|
|
1376
1406
|
if (r.status !== 0) return { error: `\u7DE8\u8F2F\u5668\uFF08${cmd}\uFF09\u7D50\u675F\u78BC ${r.status}\uFF0C\u63CF\u8FF0\u672A\u8B8A\u66F4` };
|
|
1377
|
-
return { text:
|
|
1407
|
+
return { text: fs28.readFileSync(file, "utf8").replace(/\r?\n$/, "") };
|
|
1378
1408
|
} finally {
|
|
1379
|
-
|
|
1409
|
+
fs28.rmSync(dir, { recursive: true, force: true });
|
|
1380
1410
|
}
|
|
1381
1411
|
}
|
|
1382
1412
|
function cycle(list, current, step) {
|
|
@@ -1447,10 +1477,10 @@ function FormView({ api, ctx, initial, initialFocus, initialMessage, pristine, o
|
|
|
1447
1477
|
if (editing === "title") setS((prev) => ({ ...prev, title: draft }));
|
|
1448
1478
|
else if (editing === "branch") setS((prev) => ({ ...prev, branch: value2 }));
|
|
1449
1479
|
else if (editing === "project") {
|
|
1450
|
-
if (value2) setProject(
|
|
1480
|
+
if (value2) setProject(path30.resolve(value2.replace(/^~(?=$|\/)/, os10.homedir())));
|
|
1451
1481
|
} else if (editing === "attachments" && value2) {
|
|
1452
|
-
const file =
|
|
1453
|
-
if (!
|
|
1482
|
+
const file = path30.resolve(value2.replace(/^~(?=$|\/)/, os10.homedir()));
|
|
1483
|
+
if (!fs28.existsSync(file) || !fs28.statSync(file).isFile()) {
|
|
1454
1484
|
setMessage(`\u627E\u4E0D\u5230\u6A94\u6848\uFF1A${file}`);
|
|
1455
1485
|
return;
|
|
1456
1486
|
}
|
|
@@ -1537,7 +1567,7 @@ function FormView({ api, ctx, initial, initialFocus, initialMessage, pristine, o
|
|
|
1537
1567
|
case "branch":
|
|
1538
1568
|
return s.branch || "\uFF08\u7559\u7A7A\u5247\u81EA\u52D5\u547D\u540D\uFF0C\u4F8B\u5982 feature/login-fix\uFF09";
|
|
1539
1569
|
case "attachments":
|
|
1540
|
-
return s.attachments.length ? s.attachments.map((a) =>
|
|
1570
|
+
return s.attachments.length ? s.attachments.map((a) => path30.basename(a)).join("\u3001") : "\uFF08Enter \u8F38\u5165\u6A94\u6848\u8DEF\u5F91\u52A0\u5165\uFF09";
|
|
1541
1571
|
case "description": {
|
|
1542
1572
|
if (!s.description) return "\uFF08Enter \u7528\u7DE8\u8F2F\u5668\u64B0\u5BEB\uFF09";
|
|
1543
1573
|
const lines = s.description.split("\n");
|
|
@@ -1572,7 +1602,7 @@ function FormView({ api, ctx, initial, initialFocus, initialMessage, pristine, o
|
|
|
1572
1602
|
if (info && !info.isRepo) return "\u9019\u500B\u8CC7\u6599\u593E\u4E0D\u662F Git repository\u3002\u8ACB\u6539\u9078\u4E00\u500B Git \u5C08\u6848\uFF0C\u6216\u5728\u4E0B\u65B9\u521D\u59CB\u5316\u3002";
|
|
1573
1603
|
if (s.mode === "edit" && projectChanged(s)) return "\u5206\u652F\u6703\u5728\u65B0\u5C08\u6848\u3001\u5361\u7247\u958B\u59CB\u57F7\u884C\u6642\u624D\u5EFA\u7ACB\u3002";
|
|
1574
1604
|
if (info?.isRepo && !info.hasRemote) return `\u6B64 repository \u6C92\u6709 remote\uFF0C\u5C07\u4EE5\u76EE\u524D\u5206\u652F (${info.currentBranch ?? "HEAD"}) \u70BA\u57FA\u6E96\u5EFA\u7ACB\u672C\u5730 worktree\u3002`;
|
|
1575
|
-
if (info?.isRepo && s.projectPath) return `worktree \u6703\u5EFA\u5728 ${ctx.workstationPath || "~/Desktop"}/${
|
|
1605
|
+
if (info?.isRepo && s.projectPath) return `worktree \u6703\u5EFA\u5728 ${ctx.workstationPath || "~/Desktop"}/${path30.basename(s.projectPath)}`;
|
|
1576
1606
|
}
|
|
1577
1607
|
if (field === "branch") {
|
|
1578
1608
|
const when = info?.hasRemote ? "\u958B\u59CB\u57F7\u884C\u6642\u6703\u5EFA\u7ACB\u540C\u540D\u5206\u652F\u4E26\u63A8\u5230 origin\uFF1B\u82E5 remote \u5DF2\u6709\u9019\u500B\u5206\u652F\uFF0C\u5247\u76F4\u63A5\u53D6\u56DE\u4E26\u63A5\u7E8C\u4E0A\u9762\u7684\u5DE5\u4F5C\u3002" : "\u958B\u59CB\u57F7\u884C\u6642\u6703\u5EFA\u7ACB\u540C\u540D\u5206\u652F\u3002";
|
|
@@ -1702,7 +1732,7 @@ __export(src_exports, {
|
|
|
1702
1732
|
showDiff: () => showDiff
|
|
1703
1733
|
});
|
|
1704
1734
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
1705
|
-
import
|
|
1735
|
+
import path31 from "path";
|
|
1706
1736
|
import React2, { useEffect as useEffect2, useState as useState2 } from "react";
|
|
1707
1737
|
import { Box as Box2, Text as Text2, render as render3, useApp as useApp2, useInput as useInput2, useStdout } from "ink";
|
|
1708
1738
|
function findDetachKey(text) {
|
|
@@ -2001,7 +2031,7 @@ function showDiff(task) {
|
|
|
2001
2031
|
});
|
|
2002
2032
|
}
|
|
2003
2033
|
function tmuxAttach(opts, sessionName) {
|
|
2004
|
-
const conf =
|
|
2034
|
+
const conf = path31.join(opts.userDataDir, "tmux.conf");
|
|
2005
2035
|
const inOurServer = (process.env.TMUX ?? "").split(",")[0].endsWith(`/${TMUX_SOCKET}`);
|
|
2006
2036
|
const args = inOurServer ? ["-L", TMUX_SOCKET, "-f", conf, "switch-client", "-t", `=${sessionName}`] : ["-L", TMUX_SOCKET, "-f", conf, "attach-session", "-t", `=${sessionName}`];
|
|
2007
2037
|
spawnSync3("tmux", args, { stdio: "inherit", env: { ...process.env, TMUX: inOurServer ? process.env.TMUX : "" } });
|
|
@@ -2132,8 +2162,8 @@ var init_src = __esm({
|
|
|
2132
2162
|
});
|
|
2133
2163
|
|
|
2134
2164
|
// packages/cli/src/main.ts
|
|
2135
|
-
import
|
|
2136
|
-
import
|
|
2165
|
+
import fs29 from "fs";
|
|
2166
|
+
import path32 from "path";
|
|
2137
2167
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
2138
2168
|
import { parseArgs as parseArgs2 } from "node:util";
|
|
2139
2169
|
import { spawn as spawn9 } from "node:child_process";
|
|
@@ -2755,9 +2785,9 @@ function createBridge(t) {
|
|
|
2755
2785
|
},
|
|
2756
2786
|
// Interactive terminal bridge (Phase 3).
|
|
2757
2787
|
term: {
|
|
2758
|
-
readFile: (sessionKey,
|
|
2788
|
+
readFile: (sessionKey, path33) => t.invoke("terminal:readFile", { sessionKey, path: path33 }),
|
|
2759
2789
|
existingFiles: (sessionKey, paths) => t.invoke("terminal:existingFiles", { sessionKey, paths }),
|
|
2760
|
-
openFile: (sessionKey,
|
|
2790
|
+
openFile: (sessionKey, path33) => t.invoke("terminal:openFile", { sessionKey, path: path33 }),
|
|
2761
2791
|
/**
|
|
2762
2792
|
* Start a terminal for a task: its agent when `launch` is given, else an
|
|
2763
2793
|
* interactive shell. Core resolves the cwd and builds the command.
|
|
@@ -3050,11 +3080,11 @@ function timestampFromName(name) {
|
|
|
3050
3080
|
}
|
|
3051
3081
|
function reduceRuns(events) {
|
|
3052
3082
|
const runs = [];
|
|
3053
|
-
let
|
|
3083
|
+
let seq2 = 0;
|
|
3054
3084
|
for (const ev of events) {
|
|
3055
3085
|
if (ev.kind === "pre") {
|
|
3056
3086
|
runs.push({
|
|
3057
|
-
id: `sa-${
|
|
3087
|
+
id: `sa-${seq2++}`,
|
|
3058
3088
|
prompt: ev.prompt,
|
|
3059
3089
|
description: ev.description,
|
|
3060
3090
|
subagentType: ev.subagentType,
|
|
@@ -3071,7 +3101,7 @@ function reduceRuns(events) {
|
|
|
3071
3101
|
}
|
|
3072
3102
|
if (!target) {
|
|
3073
3103
|
target = {
|
|
3074
|
-
id: `sa-${
|
|
3104
|
+
id: `sa-${seq2++}`,
|
|
3075
3105
|
prompt: ev.prompt,
|
|
3076
3106
|
description: ev.description,
|
|
3077
3107
|
subagentType: ev.subagentType,
|
|
@@ -3870,7 +3900,7 @@ async function resolveBranchName(projectPath, workspacePath, taskId, preferredBr
|
|
|
3870
3900
|
}
|
|
3871
3901
|
return preferredBranch;
|
|
3872
3902
|
}
|
|
3873
|
-
var RUNTIME_ARTIFACT_DENYLIST = /* @__PURE__ */ new Set([SUBAGENTS_DIR, PROGRESS_EVENTS_DIR]);
|
|
3903
|
+
var RUNTIME_ARTIFACT_DENYLIST = /* @__PURE__ */ new Set([SUBAGENTS_DIR, PROGRESS_EVENTS_DIR, INBOX_DIR]);
|
|
3874
3904
|
var MAX_IGNORED_COPY_BYTES = 10 * 1024 * 1024;
|
|
3875
3905
|
var MAX_IGNORED_COPY_FILES = 200;
|
|
3876
3906
|
var HEAVY_IGNORED_DIR_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -4212,7 +4242,7 @@ async function buildDiffEntries(cwd, query) {
|
|
|
4212
4242
|
}
|
|
4213
4243
|
}
|
|
4214
4244
|
const entries = Array.from(entryMap.values()).filter(
|
|
4215
|
-
(e) => ![SUBAGENTS_DIR, PROGRESS_EVENTS_DIR].some(
|
|
4245
|
+
(e) => ![SUBAGENTS_DIR, PROGRESS_EVENTS_DIR, INBOX_DIR].some(
|
|
4216
4246
|
(dir) => e.path === dir || e.path.startsWith(`${dir}/`)
|
|
4217
4247
|
)
|
|
4218
4248
|
);
|
|
@@ -5168,8 +5198,8 @@ async function hostCommand(sub, values, storePath) {
|
|
|
5168
5198
|
}
|
|
5169
5199
|
|
|
5170
5200
|
// packages/cli/src/host.ts
|
|
5171
|
-
import
|
|
5172
|
-
import
|
|
5201
|
+
import fs26 from "fs";
|
|
5202
|
+
import path28 from "path";
|
|
5173
5203
|
import { randomBytes as randomBytes2 } from "crypto";
|
|
5174
5204
|
|
|
5175
5205
|
// packages/core/src/events.ts
|
|
@@ -5707,7 +5737,7 @@ async function syncBuiltinsAtStartup() {
|
|
|
5707
5737
|
}
|
|
5708
5738
|
|
|
5709
5739
|
// packages/core/src/service.ts
|
|
5710
|
-
import
|
|
5740
|
+
import fs22 from "fs";
|
|
5711
5741
|
|
|
5712
5742
|
// packages/core/src/terminal-files.ts
|
|
5713
5743
|
import { constants } from "fs";
|
|
@@ -5800,7 +5830,7 @@ async function readTerminalFile(cwd, input, metadataOnly = false) {
|
|
|
5800
5830
|
|
|
5801
5831
|
// packages/core/src/service.ts
|
|
5802
5832
|
import os9 from "os";
|
|
5803
|
-
import
|
|
5833
|
+
import path24 from "path";
|
|
5804
5834
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
5805
5835
|
|
|
5806
5836
|
// packages/core/src/agent-models.ts
|
|
@@ -6908,7 +6938,7 @@ var SHA_RE = /^[0-9a-f]{4,40}$/i;
|
|
|
6908
6938
|
function isCommitSha(value) {
|
|
6909
6939
|
return typeof value === "string" && SHA_RE.test(value);
|
|
6910
6940
|
}
|
|
6911
|
-
var isMetadataPath = (p) => [SUBAGENTS_DIR, PROGRESS_EVENTS_DIR].some((dir) => p === dir || p.startsWith(`${dir}/`));
|
|
6941
|
+
var isMetadataPath = (p) => [SUBAGENTS_DIR, PROGRESS_EVENTS_DIR, INBOX_DIR].some((dir) => p === dir || p.startsWith(`${dir}/`));
|
|
6912
6942
|
var COMMIT_LOG_FORMAT = "%x01%H%x00%h%x00%s%x00%at%x00%P";
|
|
6913
6943
|
async function listBranchCommits(worktreePath, baseRef) {
|
|
6914
6944
|
const out = await git(worktreePath, [
|
|
@@ -7307,7 +7337,7 @@ ${attachmentLines.join("\n")}` : text;
|
|
|
7307
7337
|
});
|
|
7308
7338
|
let accumulated = "";
|
|
7309
7339
|
let buffer = "";
|
|
7310
|
-
let
|
|
7340
|
+
let seq2 = 0;
|
|
7311
7341
|
const toolNames = /* @__PURE__ */ new Map();
|
|
7312
7342
|
const push = (chunk) => {
|
|
7313
7343
|
if (!sender.isDestroyed()) sender.send("chat:chunk", chunk);
|
|
@@ -7341,7 +7371,7 @@ ${attachmentLines.join("\n")}` : text;
|
|
|
7341
7371
|
} else if (block.type === "thinking" && block.thinking) {
|
|
7342
7372
|
pushPhase({
|
|
7343
7373
|
taskId,
|
|
7344
|
-
id: `${taskId}-${
|
|
7374
|
+
id: `${taskId}-${seq2++}`,
|
|
7345
7375
|
phaseType: "thinking",
|
|
7346
7376
|
phaseSummary: "Thinking\u2026",
|
|
7347
7377
|
phaseDetail: block.thinking,
|
|
@@ -7353,7 +7383,7 @@ ${attachmentLines.join("\n")}` : text;
|
|
|
7353
7383
|
const { summary, detail } = summarizeToolUse(block.name, block.input ?? {});
|
|
7354
7384
|
pushPhase({
|
|
7355
7385
|
taskId,
|
|
7356
|
-
id: `${taskId}-${
|
|
7386
|
+
id: `${taskId}-${seq2++}`,
|
|
7357
7387
|
phaseType: "tool_use",
|
|
7358
7388
|
phaseSummary: summary,
|
|
7359
7389
|
phaseDetail: detail,
|
|
@@ -7370,7 +7400,7 @@ ${attachmentLines.join("\n")}` : text;
|
|
|
7370
7400
|
const detail = typeof raw2 === "string" ? raw2 : Array.isArray(raw2) ? raw2.map((c) => c.text ?? "").join("\n") : "";
|
|
7371
7401
|
pushPhase({
|
|
7372
7402
|
taskId,
|
|
7373
|
-
id: `${taskId}-${
|
|
7403
|
+
id: `${taskId}-${seq2++}`,
|
|
7374
7404
|
phaseType: "tool_result",
|
|
7375
7405
|
phaseSummary: `Got result from \`${toolName}\``,
|
|
7376
7406
|
phaseDetail: detail,
|
|
@@ -7724,6 +7754,54 @@ function createProgressTracker(opts) {
|
|
|
7724
7754
|
};
|
|
7725
7755
|
}
|
|
7726
7756
|
|
|
7757
|
+
// packages/core/src/inbox.ts
|
|
7758
|
+
init_launch();
|
|
7759
|
+
import fs21 from "fs";
|
|
7760
|
+
import path23 from "path";
|
|
7761
|
+
var seq = 0;
|
|
7762
|
+
function inboxDir(worktreePath) {
|
|
7763
|
+
return path23.join(worktreePath, INBOX_DIR);
|
|
7764
|
+
}
|
|
7765
|
+
function inboxReady(dir) {
|
|
7766
|
+
return fs21.existsSync(path23.join(dir, INBOX_READY_FILE));
|
|
7767
|
+
}
|
|
7768
|
+
function prepareInbox(dir) {
|
|
7769
|
+
fs21.mkdirSync(dir, { recursive: true });
|
|
7770
|
+
fs21.writeFileSync(path23.join(dir, ".gitignore"), "*\n");
|
|
7771
|
+
fs21.rmSync(path23.join(dir, INBOX_READY_FILE), { force: true });
|
|
7772
|
+
}
|
|
7773
|
+
function messageNames(dir) {
|
|
7774
|
+
try {
|
|
7775
|
+
return fs21.readdirSync(dir).filter((n) => !n.startsWith(".")).sort();
|
|
7776
|
+
} catch {
|
|
7777
|
+
return [];
|
|
7778
|
+
}
|
|
7779
|
+
}
|
|
7780
|
+
function pendingMessages(dir) {
|
|
7781
|
+
return messageNames(dir).length;
|
|
7782
|
+
}
|
|
7783
|
+
function postMessage(dir, text) {
|
|
7784
|
+
fs21.mkdirSync(dir, { recursive: true });
|
|
7785
|
+
const name = `${String(Date.now()).padStart(13, "0")}-${String(seq++ % 1e6).padStart(6, "0")}`;
|
|
7786
|
+
const tmp = path23.join(dir, `.tmp-${name}`);
|
|
7787
|
+
fs21.writeFileSync(tmp, text);
|
|
7788
|
+
fs21.renameSync(tmp, path23.join(dir, name));
|
|
7789
|
+
}
|
|
7790
|
+
function takeMessages(dir) {
|
|
7791
|
+
const texts = [];
|
|
7792
|
+
for (const name of messageNames(dir)) {
|
|
7793
|
+
const claimed = path23.join(dir, `.host-${name}`);
|
|
7794
|
+
try {
|
|
7795
|
+
fs21.renameSync(path23.join(dir, name), claimed);
|
|
7796
|
+
} catch {
|
|
7797
|
+
continue;
|
|
7798
|
+
}
|
|
7799
|
+
texts.push(fs21.readFileSync(claimed, "utf8"));
|
|
7800
|
+
fs21.rmSync(claimed, { force: true });
|
|
7801
|
+
}
|
|
7802
|
+
return texts;
|
|
7803
|
+
}
|
|
7804
|
+
|
|
7727
7805
|
// packages/core/src/mailbox.ts
|
|
7728
7806
|
var PASTE_START = "\x1B[200~";
|
|
7729
7807
|
var PASTE_END = "\x1B[201~";
|
|
@@ -7751,25 +7829,77 @@ function quietFromEnv() {
|
|
|
7751
7829
|
return Number.isFinite(n) && n >= 0 ? n : DEFAULT_QUIET_MS;
|
|
7752
7830
|
}
|
|
7753
7831
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
7832
|
+
var PASTED = /\x1b\[200~[\s\S]*?(\x1b\[201~|$)/g;
|
|
7833
|
+
var ESCAPES = /\x1b(\[[0-9;?<=>]*[ -\/]*[@-~]|O.|.)?/g;
|
|
7834
|
+
var CLEARS_INPUT = /[\r\n\x03\x15]/;
|
|
7835
|
+
function draftAfter(before, data) {
|
|
7836
|
+
const keys = data.replace(PASTED, "x").replace(ESCAPES, "");
|
|
7837
|
+
let draft = before;
|
|
7838
|
+
for (const ch of keys) {
|
|
7839
|
+
if (CLEARS_INPUT.test(ch)) draft = false;
|
|
7840
|
+
else if (ch >= " " && ch !== "\x7F") draft = true;
|
|
7841
|
+
}
|
|
7842
|
+
return draft;
|
|
7843
|
+
}
|
|
7844
|
+
var isIdle = (a) => !a || a.state === "unknown" || a.state === "waiting" && a.waitingFor === "input";
|
|
7754
7845
|
function createMailbox(options) {
|
|
7755
7846
|
const lastInput = /* @__PURE__ */ new Map();
|
|
7847
|
+
const drafts = /* @__PURE__ */ new Set();
|
|
7756
7848
|
const held = /* @__PURE__ */ new Map();
|
|
7757
7849
|
const turns = /* @__PURE__ */ new Map();
|
|
7850
|
+
function noteInput(key, data) {
|
|
7851
|
+
lastInput.set(key, Date.now());
|
|
7852
|
+
if (draftAfter(drafts.has(key), data)) drafts.add(key);
|
|
7853
|
+
else drafts.delete(key);
|
|
7854
|
+
}
|
|
7758
7855
|
async function waitForQuiet(key, started) {
|
|
7759
7856
|
const quiet = options.quietMs ?? quietFromEnv();
|
|
7760
7857
|
const timeout = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
7761
7858
|
for (; ; ) {
|
|
7762
|
-
const left = (lastInput.get(key) ?? 0) + quiet - Date.now();
|
|
7859
|
+
const left = drafts.has(key) ? 250 : (lastInput.get(key) ?? 0) + quiet - Date.now();
|
|
7763
7860
|
if (left <= 0) return;
|
|
7764
|
-
if (Date.now() - started > timeout)
|
|
7861
|
+
if (Date.now() - started > timeout) {
|
|
7862
|
+
throw coded("TIMEOUT", drafts.has(key) ? "the input box still holds unsent text" : "the terminal never went quiet");
|
|
7863
|
+
}
|
|
7765
7864
|
await sleep(Math.min(left, 250));
|
|
7766
7865
|
}
|
|
7767
7866
|
}
|
|
7867
|
+
function enqueue(key, job) {
|
|
7868
|
+
const run3 = (turns.get(key) ?? Promise.resolve()).catch(() => {
|
|
7869
|
+
}).then(job);
|
|
7870
|
+
turns.set(key, run3);
|
|
7871
|
+
void run3.finally(() => {
|
|
7872
|
+
if (turns.get(key) === run3) turns.delete(key);
|
|
7873
|
+
}).catch(() => {
|
|
7874
|
+
});
|
|
7875
|
+
return run3;
|
|
7876
|
+
}
|
|
7877
|
+
async function canWake(key) {
|
|
7878
|
+
if (!isIdle(options.activity(key)) || drafts.has(key)) return false;
|
|
7879
|
+
return !await options.typedElsewhere?.(key);
|
|
7880
|
+
}
|
|
7881
|
+
async function wake(key, dir) {
|
|
7882
|
+
const quiet = options.quietMs ?? quietFromEnv();
|
|
7883
|
+
for (; ; ) {
|
|
7884
|
+
if (!await canWake(key)) return "queued";
|
|
7885
|
+
const left = (lastInput.get(key) ?? 0) + quiet - Date.now();
|
|
7886
|
+
if (left <= 0) break;
|
|
7887
|
+
await sleep(Math.min(left, 250));
|
|
7888
|
+
}
|
|
7889
|
+
const texts = takeMessages(dir);
|
|
7890
|
+
if (!texts.length) return "hook";
|
|
7891
|
+
await write(key, texts.join("\n\n"));
|
|
7892
|
+
return "typed";
|
|
7893
|
+
}
|
|
7768
7894
|
async function type(key, text, opts, started) {
|
|
7769
7895
|
await waitForQuiet(key, started);
|
|
7770
7896
|
if (!opts.force && isBlocked(options.activity(key))) {
|
|
7771
7897
|
throw coded("TARGET_BLOCKED", "the agent is on a permission dialog; typing could answer it");
|
|
7772
7898
|
}
|
|
7899
|
+
await write(key, text);
|
|
7900
|
+
return { queuedMs: Date.now() - started, via: "typed" };
|
|
7901
|
+
}
|
|
7902
|
+
async function write(key, text) {
|
|
7773
7903
|
held.set(key, []);
|
|
7774
7904
|
try {
|
|
7775
7905
|
options.write(key, bracketedPaste(text));
|
|
@@ -7778,36 +7908,38 @@ function createMailbox(options) {
|
|
|
7778
7908
|
} finally {
|
|
7779
7909
|
const keys = held.get(key) ?? [];
|
|
7780
7910
|
held.delete(key);
|
|
7781
|
-
if (keys.length)
|
|
7782
|
-
options.write(key, keys.join(""));
|
|
7783
|
-
lastInput.set(key, Date.now());
|
|
7784
|
-
}
|
|
7911
|
+
if (keys.length) options.write(key, keys.join(""));
|
|
7785
7912
|
}
|
|
7786
|
-
return { queuedMs: Date.now() - started };
|
|
7787
7913
|
}
|
|
7788
7914
|
return {
|
|
7789
7915
|
userInput(key, data) {
|
|
7916
|
+
noteInput(key, data);
|
|
7790
7917
|
const buffer = held.get(key);
|
|
7791
7918
|
if (buffer) {
|
|
7792
7919
|
buffer.push(data);
|
|
7793
7920
|
return;
|
|
7794
7921
|
}
|
|
7795
|
-
lastInput.set(key, Date.now());
|
|
7796
7922
|
options.write(key, data);
|
|
7797
7923
|
},
|
|
7798
7924
|
deliver(key, text, opts = {}) {
|
|
7799
7925
|
const started = Date.now();
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7926
|
+
return enqueue(key, async () => {
|
|
7927
|
+
const dir = options.inbox?.(key);
|
|
7928
|
+
if (!dir) return type(key, text, opts, started);
|
|
7929
|
+
postMessage(dir, text);
|
|
7930
|
+
const via = await wake(key, dir);
|
|
7931
|
+
return { queuedMs: Date.now() - started, via };
|
|
7932
|
+
});
|
|
7933
|
+
},
|
|
7934
|
+
poke(key) {
|
|
7935
|
+
const dir = options.inbox?.(key);
|
|
7936
|
+
if (!dir || !pendingMessages(dir) || turns.has(key)) return;
|
|
7937
|
+
void enqueue(key, () => wake(key, dir)).catch(() => {
|
|
7806
7938
|
});
|
|
7807
|
-
return run3;
|
|
7808
7939
|
},
|
|
7809
7940
|
forget(key) {
|
|
7810
7941
|
lastInput.delete(key);
|
|
7942
|
+
drafts.delete(key);
|
|
7811
7943
|
held.delete(key);
|
|
7812
7944
|
}
|
|
7813
7945
|
};
|
|
@@ -7993,11 +8125,12 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
7993
8125
|
const home = homeDir ?? os9.homedir();
|
|
7994
8126
|
const progress = createProgressTracker({
|
|
7995
8127
|
homeDir: home,
|
|
7996
|
-
codexHomes: () => [
|
|
8128
|
+
codexHomes: () => [path24.join(home, ".codex"), ...libraryCodexHome ? [libraryCodexHome] : []],
|
|
7997
8129
|
onUpdate: (taskId, value) => {
|
|
7998
8130
|
bus.emit("progress:update", { taskId, progress: value });
|
|
7999
8131
|
notifier.activity(taskId, value.activity);
|
|
8000
8132
|
notifier.retry(taskId);
|
|
8133
|
+
mailbox.poke(taskId);
|
|
8001
8134
|
},
|
|
8002
8135
|
onNotify: (taskId, list) => {
|
|
8003
8136
|
const prefs = resolveNotificationSettings(getSettings());
|
|
@@ -8016,7 +8149,14 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8016
8149
|
const agentActivity = (key) => progress.isTracking(key) ? progress.snapshot(key)?.activity ?? null : null;
|
|
8017
8150
|
const mailbox = createMailbox({
|
|
8018
8151
|
write: (key, data) => sessions.write(key, data),
|
|
8019
|
-
activity: agentActivity
|
|
8152
|
+
activity: agentActivity,
|
|
8153
|
+
inbox: (key) => {
|
|
8154
|
+
const worktree = findTask(key)?.worktreePath;
|
|
8155
|
+
if (!worktree) return null;
|
|
8156
|
+
const dir = inboxDir(worktree);
|
|
8157
|
+
return inboxReady(dir) ? dir : null;
|
|
8158
|
+
},
|
|
8159
|
+
typedElsewhere: async (key) => await sessions.hasForeignClients?.(key) ?? false
|
|
8020
8160
|
});
|
|
8021
8161
|
const notifier = createNotifier({
|
|
8022
8162
|
cardOf: (taskId) => {
|
|
@@ -8172,13 +8312,13 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8172
8312
|
}
|
|
8173
8313
|
function claudeSessionFile(cwd, sessionId) {
|
|
8174
8314
|
const munged = cwd.replace(/[^a-zA-Z0-9]/g, "-");
|
|
8175
|
-
return
|
|
8315
|
+
return path24.join(os9.homedir(), ".claude", "projects", munged, `${sessionId}.jsonl`);
|
|
8176
8316
|
}
|
|
8177
8317
|
async function removeTaskWorktree(task) {
|
|
8178
8318
|
if (!task.projectPath || !task.worktreePath) return;
|
|
8179
8319
|
const branch = task.branch || fallbackBranchName(task.id);
|
|
8180
8320
|
await removeWorktree(task.projectPath, task.worktreePath);
|
|
8181
|
-
deleteArtifacts(task.workspacePath ??
|
|
8321
|
+
deleteArtifacts(task.workspacePath ?? path24.dirname(task.worktreePath), task.worktreePath);
|
|
8182
8322
|
await deleteBranch(task.projectPath, branch);
|
|
8183
8323
|
}
|
|
8184
8324
|
function columnOf(taskId) {
|
|
@@ -8245,6 +8385,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8245
8385
|
fresh = false;
|
|
8246
8386
|
} else {
|
|
8247
8387
|
command = (await launchCommand(task, intent)).replace(/\r$/, "");
|
|
8388
|
+
if (key === task.id) prepareInbox(inboxDir(cwd));
|
|
8248
8389
|
}
|
|
8249
8390
|
}
|
|
8250
8391
|
if (p.launch) ensureTaskArtifactDirs(task);
|
|
@@ -8422,8 +8563,8 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8422
8563
|
"projects:listRecent": () => listRecentProjects(getStore()),
|
|
8423
8564
|
// `vibeflow open <path>` while a host runs: only the host writes the store.
|
|
8424
8565
|
"projects:record": (projectPath) => {
|
|
8425
|
-
const p =
|
|
8426
|
-
if (!
|
|
8566
|
+
const p = path24.resolve(str(projectPath, "projectPath"));
|
|
8567
|
+
if (!fs22.existsSync(p) || !fs22.statSync(p).isDirectory()) invalid(`not a directory: ${p}`);
|
|
8427
8568
|
recordRecentProject(getStore(), p);
|
|
8428
8569
|
return listRecentProjects(getStore());
|
|
8429
8570
|
},
|
|
@@ -8496,7 +8637,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8496
8637
|
if (!task.baseBranch) throw new Error("\u4EFB\u52D9\u6C92\u6709\u8A18\u9304 base branch\uFF0C\u7121\u6CD5\u9084\u539F worktree");
|
|
8497
8638
|
await teardownTask(task.id);
|
|
8498
8639
|
await resetWorktreeToBase(task.worktreePath, task.baseBranch);
|
|
8499
|
-
const workspacePath = task.workspacePath ??
|
|
8640
|
+
const workspacePath = task.workspacePath ?? path24.dirname(task.worktreePath);
|
|
8500
8641
|
deleteArtifacts(workspacePath, task.worktreePath);
|
|
8501
8642
|
deleteDecisions(workspacePath, decisionsKey(task.worktreePath, task.branch));
|
|
8502
8643
|
resetSubAgents(task.worktreePath);
|
|
@@ -8548,7 +8689,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8548
8689
|
}
|
|
8549
8690
|
const info = await getGitInfo(nextProject);
|
|
8550
8691
|
if (!info.isRepo) throw new Error("\u76EE\u6A19\u8CC7\u6599\u593E\u4E0D\u662F git repository");
|
|
8551
|
-
const projectName =
|
|
8692
|
+
const projectName = path24.basename(nextProject);
|
|
8552
8693
|
const workspacePath = projectWorkstationPath(resolveWorkstationPath(getSettings()), projectName);
|
|
8553
8694
|
await teardownTask(existing.id);
|
|
8554
8695
|
await removeTaskWorktree(existing);
|
|
@@ -8631,8 +8772,8 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8631
8772
|
if (!await sessions.isAlive(to.id)) throw coded2("NOT_RUNNING", `\u5361\u7247 ${to.id} \u7684 agent \u6C92\u6709\u5728\u57F7\u884C`);
|
|
8632
8773
|
if (isMasterTask(to)) notifier.reported(from.id);
|
|
8633
8774
|
await attachAgent(to.id);
|
|
8634
|
-
const { queuedMs } = await mailbox.deliver(to.id, frameMessage({ id: from.id, title: from.title }, text), { force: p.force === true });
|
|
8635
|
-
return { delivered: true, queuedMs };
|
|
8775
|
+
const { queuedMs, via } = await mailbox.deliver(to.id, frameMessage({ id: from.id, title: from.title }, text), { force: p.force === true });
|
|
8776
|
+
return { delivered: true, queuedMs, via };
|
|
8636
8777
|
},
|
|
8637
8778
|
"terminal:start": async (payload) => {
|
|
8638
8779
|
const p = obj(payload, "payload");
|
|
@@ -8660,10 +8801,10 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8660
8801
|
} else {
|
|
8661
8802
|
cwd = os9.homedir();
|
|
8662
8803
|
}
|
|
8663
|
-
if (!
|
|
8804
|
+
if (!path24.isAbsolute(cwd) || !fs22.existsSync(cwd) || !fs22.statSync(cwd).isDirectory()) {
|
|
8664
8805
|
invalid("terminal directory must be an existing absolute directory");
|
|
8665
8806
|
}
|
|
8666
|
-
const title = (typeof p.title === "string" ? p.title.trim() : "") || saved?.title || (projectPath ?
|
|
8807
|
+
const title = (typeof p.title === "string" ? p.title.trim() : "") || saved?.title || (projectPath ? path24.basename(projectPath) : "~");
|
|
8667
8808
|
saveTerminal({
|
|
8668
8809
|
sessionKey: key,
|
|
8669
8810
|
title,
|
|
@@ -8738,7 +8879,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8738
8879
|
"claude:sessionExists": (taskId) => {
|
|
8739
8880
|
const task = requireTask(taskId);
|
|
8740
8881
|
if (!task.worktreePath) return false;
|
|
8741
|
-
return
|
|
8882
|
+
return fs22.existsSync(claudeSessionFile(task.worktreePath, executorSessionId(task.id, task.runId)));
|
|
8742
8883
|
},
|
|
8743
8884
|
"sessions:list": async () => {
|
|
8744
8885
|
const keys = await sessions.list();
|
|
@@ -8827,7 +8968,7 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8827
8968
|
const task = requireTask(taskId);
|
|
8828
8969
|
if (!task.worktreePath || !task.workspacePath) return "task has no worktree";
|
|
8829
8970
|
const dir = agentArtifactsPath(task.workspacePath, task.worktreePath);
|
|
8830
|
-
if (!
|
|
8971
|
+
if (!fs22.existsSync(dir)) return "artifacts directory does not exist yet";
|
|
8831
8972
|
return getPlatform().openPath(dir);
|
|
8832
8973
|
},
|
|
8833
8974
|
"board:getCliLaunchInfo": () => boardCliLaunchInfo(),
|
|
@@ -8958,10 +9099,10 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
8958
9099
|
}
|
|
8959
9100
|
await removeTaskWorktree(task);
|
|
8960
9101
|
if (task.workspacePath) {
|
|
8961
|
-
|
|
9102
|
+
fs22.rmSync(taskAttachmentStagingPath(task.workspacePath, task.id), { recursive: true, force: true });
|
|
8962
9103
|
}
|
|
8963
9104
|
if (isMasterTask(task) && task.workspacePath) {
|
|
8964
|
-
|
|
9105
|
+
fs22.rmSync(task.workspacePath, { recursive: true, force: true });
|
|
8965
9106
|
}
|
|
8966
9107
|
clearConversation(task.id);
|
|
8967
9108
|
removeTask(task.id);
|
|
@@ -9014,9 +9155,9 @@ function createCore({ sessions, bus, version, homeDir, ghRunner, githubAuthStatu
|
|
|
9014
9155
|
// Watch the containing directory, not the file: JsonStore renames a temp
|
|
9015
9156
|
// file over the target and so replaces the inode on every save.
|
|
9016
9157
|
watchStore() {
|
|
9017
|
-
const file =
|
|
9158
|
+
const file = path24.basename(getStorePath());
|
|
9018
9159
|
let debounce = null;
|
|
9019
|
-
storeWatcher =
|
|
9160
|
+
storeWatcher = fs22.watch(path24.dirname(getStorePath()), (_event, filename) => {
|
|
9020
9161
|
if (filename !== file) return;
|
|
9021
9162
|
if (debounce) clearTimeout(debounce);
|
|
9022
9163
|
debounce = setTimeout(() => {
|
|
@@ -9053,9 +9194,9 @@ function createSessionBackend(sink, choice) {
|
|
|
9053
9194
|
}
|
|
9054
9195
|
|
|
9055
9196
|
// packages/core/src/web-server.ts
|
|
9056
|
-
import
|
|
9197
|
+
import fs23 from "fs";
|
|
9057
9198
|
import http from "http";
|
|
9058
|
-
import
|
|
9199
|
+
import path25 from "path";
|
|
9059
9200
|
import { timingSafeEqual } from "crypto";
|
|
9060
9201
|
import { WebSocketServer } from "ws";
|
|
9061
9202
|
var TOKEN_COOKIE = "vf_token";
|
|
@@ -9110,14 +9251,14 @@ function resolveStatic(root, urlPath) {
|
|
|
9110
9251
|
return null;
|
|
9111
9252
|
}
|
|
9112
9253
|
if (decoded.includes("\0")) return null;
|
|
9113
|
-
const rel =
|
|
9114
|
-
const base2 =
|
|
9115
|
-
const candidates = [rel,
|
|
9254
|
+
const rel = path25.posix.normalize(decoded).replace(/^\/+/, "");
|
|
9255
|
+
const base2 = path25.resolve(root);
|
|
9256
|
+
const candidates = [rel, path25.posix.join(rel, "index.html"), `${rel}.html`];
|
|
9116
9257
|
for (const c of candidates) {
|
|
9117
|
-
const full =
|
|
9118
|
-
if (full !== base2 && !full.startsWith(base2 +
|
|
9258
|
+
const full = path25.resolve(base2, c);
|
|
9259
|
+
if (full !== base2 && !full.startsWith(base2 + path25.sep)) return null;
|
|
9119
9260
|
try {
|
|
9120
|
-
if (
|
|
9261
|
+
if (fs23.statSync(full).isFile()) return full;
|
|
9121
9262
|
} catch {
|
|
9122
9263
|
}
|
|
9123
9264
|
}
|
|
@@ -9178,7 +9319,7 @@ async function startWebServer(options) {
|
|
|
9178
9319
|
send(res, 404, "Not found");
|
|
9179
9320
|
return;
|
|
9180
9321
|
}
|
|
9181
|
-
const ext =
|
|
9322
|
+
const ext = path25.extname(file).toLowerCase();
|
|
9182
9323
|
const immutable = url.pathname.startsWith("/_next/static/");
|
|
9183
9324
|
res.writeHead(200, {
|
|
9184
9325
|
"Content-Type": CONTENT_TYPES[ext] ?? "application/octet-stream",
|
|
@@ -9191,7 +9332,7 @@ async function startWebServer(options) {
|
|
|
9191
9332
|
res.end();
|
|
9192
9333
|
return;
|
|
9193
9334
|
}
|
|
9194
|
-
|
|
9335
|
+
fs23.createReadStream(file).pipe(res);
|
|
9195
9336
|
}
|
|
9196
9337
|
const wss = new WebSocketServer({ noServer: true, maxPayload: MAX_PAYLOAD });
|
|
9197
9338
|
function reject(socket, status, reason) {
|
|
@@ -9290,8 +9431,8 @@ Content-Length: 0\r
|
|
|
9290
9431
|
}
|
|
9291
9432
|
|
|
9292
9433
|
// packages/cli/src/update-command.ts
|
|
9293
|
-
import
|
|
9294
|
-
import
|
|
9434
|
+
import fs24 from "node:fs";
|
|
9435
|
+
import path26 from "node:path";
|
|
9295
9436
|
import { spawnSync } from "node:child_process";
|
|
9296
9437
|
function npmRunner(args, inherit) {
|
|
9297
9438
|
const spawnOpts = {
|
|
@@ -9303,7 +9444,7 @@ function npmRunner(args, inherit) {
|
|
|
9303
9444
|
}
|
|
9304
9445
|
function packageName(packageRoot) {
|
|
9305
9446
|
try {
|
|
9306
|
-
const pkg = JSON.parse(
|
|
9447
|
+
const pkg = JSON.parse(fs24.readFileSync(path26.join(packageRoot, "package.json"), "utf8"));
|
|
9307
9448
|
if (typeof pkg.name !== "string") return null;
|
|
9308
9449
|
return /^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/i.test(pkg.name) ? pkg.name : null;
|
|
9309
9450
|
} catch {
|
|
@@ -9318,7 +9459,7 @@ function runUpdate(options) {
|
|
|
9318
9459
|
error("vibeflow update \u53EA\u9069\u7528\u65BC\u5168\u57DF npm \u5B89\u88DD\uFF1B\u76EE\u524D\u662F\u539F\u59CB\u78BC\u7248\u672C\u3002");
|
|
9319
9460
|
return 1;
|
|
9320
9461
|
}
|
|
9321
|
-
const packageRoot =
|
|
9462
|
+
const packageRoot = path26.dirname(path26.dirname(options.cliEntry));
|
|
9322
9463
|
const name = packageName(packageRoot);
|
|
9323
9464
|
if (!name) {
|
|
9324
9465
|
error("\u7121\u6CD5\u8FA8\u8B58\u76EE\u524D VibeFlow \u7684 npm \u5957\u4EF6\u540D\u7A31\uFF0C\u5DF2\u53D6\u6D88\u66F4\u65B0\u3002");
|
|
@@ -9330,8 +9471,8 @@ function runUpdate(options) {
|
|
|
9330
9471
|
return 1;
|
|
9331
9472
|
}
|
|
9332
9473
|
try {
|
|
9333
|
-
const globalPackage =
|
|
9334
|
-
if (
|
|
9474
|
+
const globalPackage = path26.join(String(root.stdout).trim(), ...name.split("/"));
|
|
9475
|
+
if (fs24.lstatSync(globalPackage).isSymbolicLink() || fs24.realpathSync(globalPackage) !== fs24.realpathSync(packageRoot)) {
|
|
9335
9476
|
error("vibeflow update \u53EA\u9069\u7528\u65BC\u5168\u57DF npm \u5B89\u88DD\uFF1B\u76EE\u524D\u57F7\u884C\u7684\u5957\u4EF6\u4F86\u81EA\u5176\u4ED6\u4F4D\u7F6E\u3002");
|
|
9336
9477
|
return 1;
|
|
9337
9478
|
}
|
|
@@ -9476,8 +9617,8 @@ async function openUpdateTerminal(platform = process.platform, run3 = launch) {
|
|
|
9476
9617
|
}
|
|
9477
9618
|
|
|
9478
9619
|
// packages/cli/src/self-update.ts
|
|
9479
|
-
import
|
|
9480
|
-
import
|
|
9620
|
+
import fs25 from "node:fs";
|
|
9621
|
+
import path27 from "node:path";
|
|
9481
9622
|
import { execFile as execFile10 } from "node:child_process";
|
|
9482
9623
|
import { promisify as promisify7 } from "node:util";
|
|
9483
9624
|
var execFileAsync2 = promisify7(execFile10);
|
|
@@ -9486,7 +9627,7 @@ var PROBE_RETRY_MS = 3e4;
|
|
|
9486
9627
|
var HOST_TOKEN_ENV = "VIBEFLOW_HOST_TOKEN";
|
|
9487
9628
|
function readInstalledVersion(packageRoot) {
|
|
9488
9629
|
try {
|
|
9489
|
-
const pkg = JSON.parse(
|
|
9630
|
+
const pkg = JSON.parse(fs25.readFileSync(path27.join(packageRoot, "package.json"), "utf8"));
|
|
9490
9631
|
return typeof pkg.version === "string" ? pkg.version : null;
|
|
9491
9632
|
} catch {
|
|
9492
9633
|
return null;
|
|
@@ -9582,7 +9723,7 @@ async function startHost(options) {
|
|
|
9582
9723
|
const core = createCore({ sessions, bus, version: options.version });
|
|
9583
9724
|
let updateTimer = null;
|
|
9584
9725
|
let installTimer = null;
|
|
9585
|
-
const packageRoot = options.cliEntry ?
|
|
9726
|
+
const packageRoot = options.cliEntry ? path28.dirname(path28.dirname(options.cliEntry)) : null;
|
|
9586
9727
|
const updates = createUpdateMonitor({
|
|
9587
9728
|
packageName: options.sourceRoot || !packageRoot ? null : packageName(packageRoot),
|
|
9588
9729
|
currentVersion: options.version,
|
|
@@ -9670,12 +9811,12 @@ function loginUrl(lock, pathname = "/home/") {
|
|
|
9670
9811
|
return `http://127.0.0.1:${lock.port}${pathname}?token=${encodeURIComponent(lock.token)}`;
|
|
9671
9812
|
}
|
|
9672
9813
|
function isWebDir(dir) {
|
|
9673
|
-
return
|
|
9814
|
+
return fs26.existsSync(path28.join(dir, "home", "index.html"));
|
|
9674
9815
|
}
|
|
9675
9816
|
|
|
9676
9817
|
// packages/cli/src/doctor.ts
|
|
9677
|
-
import
|
|
9678
|
-
import
|
|
9818
|
+
import fs27 from "fs";
|
|
9819
|
+
import path29 from "path";
|
|
9679
9820
|
import { execFile as execFile11 } from "child_process";
|
|
9680
9821
|
import { promisify as promisify8 } from "util";
|
|
9681
9822
|
init_env();
|
|
@@ -9815,10 +9956,10 @@ async function runDoctor(options) {
|
|
|
9815
9956
|
});
|
|
9816
9957
|
}
|
|
9817
9958
|
try {
|
|
9818
|
-
|
|
9819
|
-
const probe =
|
|
9820
|
-
|
|
9821
|
-
|
|
9959
|
+
fs27.mkdirSync(options.userDataDir, { recursive: true });
|
|
9960
|
+
const probe = path29.join(options.userDataDir, `.doctor-${process.pid}`);
|
|
9961
|
+
fs27.writeFileSync(probe, "");
|
|
9962
|
+
fs27.rmSync(probe);
|
|
9822
9963
|
checks.push({ id: "data", name: "\u8CC7\u6599\u76EE\u9304", level: "ok", detail: options.userDataDir });
|
|
9823
9964
|
} catch (err) {
|
|
9824
9965
|
checks.push({
|
|
@@ -9873,24 +10014,24 @@ Options:
|
|
|
9873
10014
|
`.trim();
|
|
9874
10015
|
function detectLayout() {
|
|
9875
10016
|
const file = fileURLToPath2(import.meta.url);
|
|
9876
|
-
const here =
|
|
9877
|
-
const bundledWeb =
|
|
9878
|
-
if (isWebDir(bundledWeb) ||
|
|
10017
|
+
const here = path32.dirname(file);
|
|
10018
|
+
const bundledWeb = path32.join(here, "web");
|
|
10019
|
+
if (isWebDir(bundledWeb) || path32.basename(here) === "dist") {
|
|
9879
10020
|
return {
|
|
9880
|
-
version: readVersion(
|
|
10021
|
+
version: readVersion(path32.join(here, "..", "package.json")),
|
|
9881
10022
|
webDir: isWebDir(bundledWeb) ? bundledWeb : null,
|
|
9882
10023
|
sourceRoot: null,
|
|
9883
10024
|
cliEntry: file
|
|
9884
10025
|
};
|
|
9885
10026
|
}
|
|
9886
|
-
const root =
|
|
10027
|
+
const root = path32.resolve(here, "..", "..", "..");
|
|
9887
10028
|
const override = process.env.VIBEFLOW_WEB_DIR;
|
|
9888
|
-
const webDir = override && isWebDir(override) ? override : isWebDir(
|
|
9889
|
-
return { version: readVersion(
|
|
10029
|
+
const webDir = override && isWebDir(override) ? override : isWebDir(path32.join(root, "app")) ? path32.join(root, "app") : null;
|
|
10030
|
+
return { version: readVersion(path32.join(root, "package.json")), webDir, sourceRoot: root, cliEntry: null };
|
|
9890
10031
|
}
|
|
9891
10032
|
function readVersion(pkgPath) {
|
|
9892
10033
|
try {
|
|
9893
|
-
return JSON.parse(
|
|
10034
|
+
return JSON.parse(fs29.readFileSync(pkgPath, "utf8")).version;
|
|
9894
10035
|
} catch {
|
|
9895
10036
|
return "0.0.0";
|
|
9896
10037
|
}
|
|
@@ -10128,8 +10269,8 @@ async function cmdOpen(values, target, layout, userDataDir) {
|
|
|
10128
10269
|
console.error("\u7528\u6CD5\uFF1Avibeflow open <path>");
|
|
10129
10270
|
return 1;
|
|
10130
10271
|
}
|
|
10131
|
-
const dir =
|
|
10132
|
-
if (!
|
|
10272
|
+
const dir = path32.resolve(target);
|
|
10273
|
+
if (!fs29.existsSync(dir) || !fs29.statSync(dir).isDirectory()) {
|
|
10133
10274
|
console.error(`\u4E0D\u662F\u8CC7\u6599\u593E\uFF1A${dir}`);
|
|
10134
10275
|
return 1;
|
|
10135
10276
|
}
|
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/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.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/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_buildManifest.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_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":"DDcUTYxPTa0eFKJZ3xGl4","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/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.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/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_buildManifest.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_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":"DDcUTYxPTa0eFKJZ3xGl4","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/dist/web/home/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="">VibeFlow</title><link rel="preload" href="/_next/static/css/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.js" defer=""></script><script src="/_next/static/chunks/2362-46f5f7e798186269.js" defer=""></script><script src="/_next/static/chunks/pages/home-1b4098f1ae4f1d9b.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="">VibeFlow</title><link rel="preload" href="/_next/static/css/775ca0d5cedbe9ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/775ca0d5cedbe9ea.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-afd9eb2814f60818.js" defer=""></script><script src="/_next/static/chunks/2362-46f5f7e798186269.js" defer=""></script><script src="/_next/static/chunks/pages/home-1b4098f1ae4f1d9b.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_buildManifest.js" defer=""></script><script src="/_next/static/DDcUTYxPTa0eFKJZ3xGl4/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div class="bg-background text-foreground"><div class="flex min-h-screen items-center justify-center bg-background text-base text-muted-foreground">載入中…</div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/home","query":{},"buildId":"DDcUTYxPTa0eFKJZ3xGl4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/package.json
CHANGED
/package/dist/web/_next/static/{GTkU0wdIsq4m_7CMxYGnt → DDcUTYxPTa0eFKJZ3xGl4}/_buildManifest.js
RENAMED
|
File without changes
|
/package/dist/web/_next/static/{GTkU0wdIsq4m_7CMxYGnt → DDcUTYxPTa0eFKJZ3xGl4}/_ssgManifest.js
RENAMED
|
File without changes
|