@raindrop-ai/opencode-plugin 0.0.14 → 0.0.15
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 +21 -0
- package/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,27 @@ rejected at the ingest size limit. Hook error logs are rate-limited to one
|
|
|
21
21
|
line per failure family per 30s so a persistent error can't flood the host's
|
|
22
22
|
output.
|
|
23
23
|
|
|
24
|
+
## Correlating per-message feedback signals
|
|
25
|
+
|
|
26
|
+
Each Raindrop event uses a client-generated `event_id` that isn't predictable
|
|
27
|
+
from the outside. To let you attach a signal (e.g. a per-message thumbs
|
|
28
|
+
up/down) to the right event, every finalized event carries the OpenCode
|
|
29
|
+
assistant message id as `properties.message_id` (the `msg_...` of the turn's
|
|
30
|
+
final assistant message). The same id is set as the `message_id` attribute on
|
|
31
|
+
the turn's root span.
|
|
32
|
+
|
|
33
|
+
Given a `msg_...`, look up the event whose `properties.message_id` matches it,
|
|
34
|
+
then send its `event_id` to [`/v1/signals`](https://docs.raindrop.ai):
|
|
35
|
+
|
|
36
|
+
```jsonc
|
|
37
|
+
// finalized event payload (track_partial)
|
|
38
|
+
{
|
|
39
|
+
"event_id": "…", // random, generated client-side
|
|
40
|
+
"ai_data": { "convo_id": "ses_…" },
|
|
41
|
+
"properties": { "message_id": "msg_…" } // ← correlate on this
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
24
45
|
## Notes
|
|
25
46
|
|
|
26
47
|
- `@opencode-ai/plugin` is required.
|
package/dist/index.cjs
CHANGED
|
@@ -1192,7 +1192,7 @@ function resolveLocalWorkshopUrl(fileValue) {
|
|
|
1192
1192
|
// package.json
|
|
1193
1193
|
var package_default = {
|
|
1194
1194
|
name: "@raindrop-ai/opencode-plugin",
|
|
1195
|
-
version: "0.0.
|
|
1195
|
+
version: "0.0.15",
|
|
1196
1196
|
description: "Raindrop observability plugin for OpenCode \u2014 automatic session/event/span tracing",
|
|
1197
1197
|
type: "module",
|
|
1198
1198
|
main: "dist/index.js",
|
|
@@ -1834,6 +1834,7 @@ type: ${name != null ? name : "UnknownError"}`;
|
|
|
1834
1834
|
if (isCompaction) {
|
|
1835
1835
|
rootAttrs.push(attrString("is_compaction", "true"));
|
|
1836
1836
|
}
|
|
1837
|
+
rootAttrs.push(attrString("message_id", messageId));
|
|
1837
1838
|
if (reasoningTokens != null && typeof reasoningTokens === "number" && reasoningTokens > 0) {
|
|
1838
1839
|
rootAttrs.push(attrInt("gen_ai.usage.reasoning_tokens", reasoningTokens));
|
|
1839
1840
|
}
|
|
@@ -1865,6 +1866,7 @@ type: ${name != null ? name : "UnknownError"}`;
|
|
|
1865
1866
|
output: outputText,
|
|
1866
1867
|
properties: {
|
|
1867
1868
|
plugin_version: PLUGIN_VERSION,
|
|
1869
|
+
message_id: messageId,
|
|
1868
1870
|
...isCompaction ? { is_compaction: true } : {}
|
|
1869
1871
|
}
|
|
1870
1872
|
});
|
package/dist/index.js
CHANGED
|
@@ -1173,7 +1173,7 @@ function resolveLocalWorkshopUrl(fileValue) {
|
|
|
1173
1173
|
// package.json
|
|
1174
1174
|
var package_default = {
|
|
1175
1175
|
name: "@raindrop-ai/opencode-plugin",
|
|
1176
|
-
version: "0.0.
|
|
1176
|
+
version: "0.0.15",
|
|
1177
1177
|
description: "Raindrop observability plugin for OpenCode \u2014 automatic session/event/span tracing",
|
|
1178
1178
|
type: "module",
|
|
1179
1179
|
main: "dist/index.js",
|
|
@@ -1815,6 +1815,7 @@ type: ${name != null ? name : "UnknownError"}`;
|
|
|
1815
1815
|
if (isCompaction) {
|
|
1816
1816
|
rootAttrs.push(attrString("is_compaction", "true"));
|
|
1817
1817
|
}
|
|
1818
|
+
rootAttrs.push(attrString("message_id", messageId));
|
|
1818
1819
|
if (reasoningTokens != null && typeof reasoningTokens === "number" && reasoningTokens > 0) {
|
|
1819
1820
|
rootAttrs.push(attrInt("gen_ai.usage.reasoning_tokens", reasoningTokens));
|
|
1820
1821
|
}
|
|
@@ -1846,6 +1847,7 @@ type: ${name != null ? name : "UnknownError"}`;
|
|
|
1846
1847
|
output: outputText,
|
|
1847
1848
|
properties: {
|
|
1848
1849
|
plugin_version: PLUGIN_VERSION,
|
|
1850
|
+
message_id: messageId,
|
|
1849
1851
|
...isCompaction ? { is_compaction: true } : {}
|
|
1850
1852
|
}
|
|
1851
1853
|
});
|