zidane 7.0.10 → 7.0.12
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/tui.js +17 -1
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
package/dist/tui.js
CHANGED
|
@@ -25603,7 +25603,23 @@ function AppShell() {
|
|
|
25603
25603
|
const resolvedReferences = await resolveCompletionSubmit(effectivePrompt, completionProviders, { cursor: effectivePrompt.length }).catch(() => references);
|
|
25604
25604
|
if (daemon) {
|
|
25605
25605
|
if (!wasRunning) runningRef.current = false;
|
|
25606
|
-
|
|
25606
|
+
const commandInvocation = parseCommandInvocation(effectivePrompt, commandsRef.current);
|
|
25607
|
+
if (commandInvocation && extensionRegistry.commands.some((c) => c.name === commandInvocation.name)) {
|
|
25608
|
+
try {
|
|
25609
|
+
await daemon.queueAdd(effectivePrompt, { ...attachments.length > 0 ? { attachments: attachments.map((a) => ({
|
|
25610
|
+
mediaType: a.mediaType,
|
|
25611
|
+
data: a.content.toString("base64"),
|
|
25612
|
+
name: a.name
|
|
25613
|
+
})) } : {} });
|
|
25614
|
+
} catch (err) {
|
|
25615
|
+
stream.appendImmediate({
|
|
25616
|
+
kind: "error",
|
|
25617
|
+
text: errorMessage(err)
|
|
25618
|
+
});
|
|
25619
|
+
}
|
|
25620
|
+
return;
|
|
25621
|
+
}
|
|
25622
|
+
if (commandInvocation !== null || parseBashInvocation(effectivePrompt) !== null) {
|
|
25607
25623
|
daemon.publishDraft("");
|
|
25608
25624
|
await runPromptOrCommand(effectivePrompt, resolvedReferences, attachments);
|
|
25609
25625
|
return;
|