devez-vibe 1.7.62 → 1.7.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/bin/dvz.exe +0 -0
- package/bridge/claude-agent-sdk-bridge.mjs +10 -2
- package/package.json +1 -1
package/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -2713,10 +2713,11 @@ function stripHandoff(text) {
|
|
|
2713
2713
|
async function inputContent(input, handoffContext) {
|
|
2714
2714
|
const content = [];
|
|
2715
2715
|
const explicitSkills = [];
|
|
2716
|
+
let userCommand;
|
|
2716
2717
|
for (const item of Array.isArray(input) ? input : []) {
|
|
2717
2718
|
if (item.type === "text") content.push({ type: "text", text: item.text || "" });
|
|
2718
2719
|
else if (item.type === "skill" && item.name && CLAUDE_USER_ONLY_COMMANDS.has(String(item.name))) {
|
|
2719
|
-
|
|
2720
|
+
userCommand ??= String(item.name);
|
|
2720
2721
|
}
|
|
2721
2722
|
else if (item.type === "skill" && item.name) explicitSkills.push(String(item.name));
|
|
2722
2723
|
else if (item.type === "localImage" && item.path) {
|
|
@@ -2740,7 +2741,14 @@ async function inputContent(input, handoffContext) {
|
|
|
2740
2741
|
].join("\n"),
|
|
2741
2742
|
});
|
|
2742
2743
|
}
|
|
2743
|
-
|
|
2744
|
+
const result = prependHandoff(content.length ? content : [{ type: "text", text: "" }], handoffContext);
|
|
2745
|
+
if (userCommand) {
|
|
2746
|
+
// Claude Code reads the command from the very start of the message text, so
|
|
2747
|
+
// it goes ahead of the handoff block and whatever else the user typed.
|
|
2748
|
+
const first = result.find((item) => item.type === "text");
|
|
2749
|
+
first.text = `/${userCommand}\n\n${first.text}`;
|
|
2750
|
+
}
|
|
2751
|
+
return result;
|
|
2744
2752
|
}
|
|
2745
2753
|
|
|
2746
2754
|
async function startPrompt(params) {
|