@khalilgharbaoui/opencode-claude-code-plugin 0.15.0 → 0.15.1
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/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -450,6 +450,7 @@ var pendingProcesses = /* @__PURE__ */ new WeakSet();
|
|
|
450
450
|
function isRecord(value) {
|
|
451
451
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
452
452
|
}
|
|
453
|
+
var SYSTEM_REMINDER_BLOCK = /<system-reminder>[\s\S]*?<\/system-reminder>/g;
|
|
453
454
|
function parseSideQuestionContent(content) {
|
|
454
455
|
let text;
|
|
455
456
|
if (typeof content === "string") {
|
|
@@ -464,7 +465,7 @@ function parseSideQuestionContent(content) {
|
|
|
464
465
|
} else {
|
|
465
466
|
return null;
|
|
466
467
|
}
|
|
467
|
-
const match = /^\/btw(?:\s+([\s\S]*))?$/.exec(text.trim());
|
|
468
|
+
const match = /^\/btw(?:\s+([\s\S]*))?$/.exec(text.replace(SYSTEM_REMINDER_BLOCK, "").trim());
|
|
468
469
|
return match ? { question: (match[1] ?? "").trim() } : null;
|
|
469
470
|
}
|
|
470
471
|
function parseSideQuestion(prompt) {
|
|
@@ -6014,6 +6015,7 @@ ${plan}
|
|
|
6014
6015
|
}
|
|
6015
6016
|
const tc = toolCallMap.get(idx);
|
|
6016
6017
|
if (tc) {
|
|
6018
|
+
toolCallMap.delete(idx);
|
|
6017
6019
|
let parsedInput = {};
|
|
6018
6020
|
try {
|
|
6019
6021
|
parsedInput = JSON.parse(tc.inputJson || "{}");
|