@ycodium-ai/plugin-webhook-notify 0.2.2544 → 0.2.2566
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 +5 -5
- package/locales/en.json +13 -0
- package/locales/zh-CN.json +13 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -49,15 +49,15 @@ var webhookNotifyPlugin = definePlugin({
|
|
|
49
49
|
ctx.events.on("thread.settled", notify);
|
|
50
50
|
ctx.events.on("thread.failed", notify);
|
|
51
51
|
ctx.settingsCard({
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
titleKey: "settings.card.title",
|
|
53
|
+
descriptionKey: "settings.card.description",
|
|
54
54
|
fields: [
|
|
55
55
|
{
|
|
56
56
|
key: "url",
|
|
57
57
|
kind: "text",
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
labelKey: "settings.url.label",
|
|
59
|
+
descriptionKey: "settings.url.description",
|
|
60
|
+
placeholderKey: "settings.url.placeholder"
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
});
|
package/locales/en.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"card": {
|
|
4
|
+
"title": "Webhook notifications",
|
|
5
|
+
"description": "POST a JSON notification when a thread settles or fails."
|
|
6
|
+
},
|
|
7
|
+
"url": {
|
|
8
|
+
"label": "Webhook URL",
|
|
9
|
+
"description": "Leave empty to disable notifications.",
|
|
10
|
+
"placeholder": "https://example.com/hooks/ycodium"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-webhook-notify",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2566",
|
|
4
4
|
"description": "Posts to a URL you choose whenever a thread finishes or fails.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webhook",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"files": [
|
|
12
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"locales"
|
|
13
14
|
],
|
|
14
15
|
"type": "module",
|
|
15
16
|
"publishConfig": {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"@effect/vitest": "4.0.0-beta.103",
|
|
20
21
|
"esbuild": "0.28.1",
|
|
21
22
|
"vite-plus": "0.2.2",
|
|
22
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
23
|
+
"@ycodium-ai/plugin-api": "0.2.2566"
|
|
23
24
|
},
|
|
24
25
|
"ycodium": {
|
|
25
26
|
"plugin": "./dist/index.js",
|