@khalilgharbaoui/opencode-claude-code-plugin 0.64.1 → 0.65.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/README.md +2 -2
- package/dist/index.d.ts +162 -0
- package/dist/index.js +3730 -2369
- package/dist/index.js.map +1 -1
- package/dist/tui.js +3 -3
- package/dist/tui.js.map +1 -1
- package/package.json +2 -2
- package/skills/claude-code-plugin/SKILL.md +44 -15
package/dist/tui.js
CHANGED
|
@@ -1379,7 +1379,7 @@ var NOTICE_RPC_DEFINITION = {
|
|
|
1379
1379
|
type: "object",
|
|
1380
1380
|
properties: {
|
|
1381
1381
|
id: { type: "string" },
|
|
1382
|
-
level: { type: "string", enum: ["warn", "error"] },
|
|
1382
|
+
level: { type: "string", enum: ["warn", "error", "success"] },
|
|
1383
1383
|
message: { type: "string" }
|
|
1384
1384
|
},
|
|
1385
1385
|
required: ["id", "level", "message"],
|
|
@@ -1401,7 +1401,7 @@ function readPluginNotice(type, data) {
|
|
|
1401
1401
|
if (!data || typeof data !== "object") return void 0;
|
|
1402
1402
|
const { id, level, message } = data;
|
|
1403
1403
|
if (typeof id !== "string" || id.length === 0) return void 0;
|
|
1404
|
-
if (level !== "warn" && level !== "error") return void 0;
|
|
1404
|
+
if (level !== "warn" && level !== "error" && level !== "success") return void 0;
|
|
1405
1405
|
if (typeof message !== "string" || message.trim().length === 0) return void 0;
|
|
1406
1406
|
return { id, level, message: toastMessage(message) };
|
|
1407
1407
|
}
|
|
@@ -2058,7 +2058,7 @@ function setupV2(context) {
|
|
|
2058
2058
|
(notice) => context.ui.toast?.show({
|
|
2059
2059
|
title: TOAST_TITLE,
|
|
2060
2060
|
message: notice.message,
|
|
2061
|
-
variant: notice.level === "error" ? "error" : "warning",
|
|
2061
|
+
variant: notice.level === "error" ? "error" : notice.level === "success" ? "success" : "warning",
|
|
2062
2062
|
duration: TOAST_DURATION_MS
|
|
2063
2063
|
})
|
|
2064
2064
|
);
|