devez-vibe 1.11.2 → 1.11.4
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/bin/dvz.exe +0 -0
- package/bridge/claude-agent-sdk-bridge.mjs +15 -3
- package/package.json +1 -1
package/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -5084,8 +5084,9 @@ async function dispatch(method, params = {}) {
|
|
|
5084
5084
|
if (method === "session/compact") {
|
|
5085
5085
|
return startPrompt({ ...params, input: [{ type: "text", text: "/compact" }] });
|
|
5086
5086
|
}
|
|
5087
|
-
//
|
|
5088
|
-
//
|
|
5087
|
+
// A running CLI writes the title it holds back after later turns, and /clear
|
|
5088
|
+
// hands it the previous one (2.1.311), so only that CLI can rename a live
|
|
5089
|
+
// session. A closed session takes the rename in its transcript.
|
|
5089
5090
|
if (method === "session/rename") {
|
|
5090
5091
|
const id = liveSessionId(params.sessionId);
|
|
5091
5092
|
const session = sessions.get(id);
|
|
@@ -5096,7 +5097,10 @@ async function dispatch(method, params = {}) {
|
|
|
5096
5097
|
const title = (await getSessionInfo(id, { dir }))?.customTitle;
|
|
5097
5098
|
if (title && title !== session?.inheritedTitle) return {};
|
|
5098
5099
|
}
|
|
5099
|
-
|
|
5100
|
+
const name = String(params.name ?? "");
|
|
5101
|
+
const renamedLive = session?.query && !session.closed && await withSessionQuery(session,
|
|
5102
|
+
(query) => query.renameSession(name, id)).then(() => true, () => false);
|
|
5103
|
+
if (!renamedLive) await renameSession(id, name, { dir });
|
|
5100
5104
|
if (session) delete session.inheritedTitle;
|
|
5101
5105
|
return {};
|
|
5102
5106
|
}
|
|
@@ -5672,6 +5676,11 @@ async function runSelfTest() {
|
|
|
5672
5676
|
async setPermissionMode() {},
|
|
5673
5677
|
async accountInfo() { return {}; },
|
|
5674
5678
|
async usage_EXPERIMENTAL_MAY_CHANGE_DO_NOT_RELY_ON_THIS_API_YET() { return pendingUsage ? await pendingUsage : {}; },
|
|
5679
|
+
// 실제 CLI처럼 받은 제목을 전사에 기록한다.
|
|
5680
|
+
async renameSession(title, sessionId) {
|
|
5681
|
+
this.renamed = [...(this.renamed || []), sessionId];
|
|
5682
|
+
await renameSession(sessionId, title, { dir: process.cwd() });
|
|
5683
|
+
},
|
|
5675
5684
|
close() { this.closeCalls += 1; if (this.finishOnClose) events.close(); },
|
|
5676
5685
|
[Symbol.asyncIterator]() {
|
|
5677
5686
|
const iterator = events[Symbol.asyncIterator]();
|
|
@@ -5817,7 +5826,10 @@ async function runSelfTest() {
|
|
|
5817
5826
|
await dispatch("session/rename", { sessionId: nextId, cwd: process.cwd(), name: autoTitle, unnamedOnly: true });
|
|
5818
5827
|
const listed = await claudeSessionList({ cwd: process.cwd() });
|
|
5819
5828
|
const prompt = transcriptPreview(await sessionMessages(nextId, process.cwd()));
|
|
5829
|
+
// 살아 있는 대화의 이름은 그 CLI가 바꿔야 다음 턴에 옛 제목으로 돌아가지 않는다.
|
|
5830
|
+
const liveRenames = clearSession.query.renamed?.filter((id) => id === nextId).length ?? 0;
|
|
5820
5831
|
if (listed.find((row) => row.id === visibleSession(nextId))?.name !== expectedTitle
|
|
5832
|
+
|| liveRenames !== (mode === "external" ? 0 : 1)
|
|
5821
5833
|
|| prompt !== nextPrompt || await readFile(previousPath, "utf8") !== previousTranscript) {
|
|
5822
5834
|
throw new Error(`Claude clear title self-test failed: ${mode}`);
|
|
5823
5835
|
}
|