@raindrop-ai/opencode-plugin 0.0.14 → 0.0.16

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 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,21 +1192,16 @@ function resolveLocalWorkshopUrl(fileValue) {
1192
1192
  // package.json
1193
1193
  var package_default = {
1194
1194
  name: "@raindrop-ai/opencode-plugin",
1195
- version: "0.0.14",
1195
+ version: "0.0.16",
1196
1196
  description: "Raindrop observability plugin for OpenCode \u2014 automatic session/event/span tracing",
1197
1197
  type: "module",
1198
1198
  main: "dist/index.js",
1199
1199
  module: "dist/index.js",
1200
1200
  types: "dist/index.d.ts",
1201
1201
  license: "MIT",
1202
- repository: {
1203
- type: "git",
1204
- url: "git+https://github.com/raindrop-ai/raindrop-js.git",
1205
- directory: "packages/opencode-plugin"
1206
- },
1207
- homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/opencode-plugin#readme",
1202
+ homepage: "https://www.raindrop.ai/docs/integrations/opencode/",
1208
1203
  bugs: {
1209
- url: "https://github.com/raindrop-ai/raindrop-js/issues"
1204
+ url: "https://www.raindrop.ai/docs/support/"
1210
1205
  },
1211
1206
  exports: {
1212
1207
  ".": {
@@ -1834,6 +1829,7 @@ type: ${name != null ? name : "UnknownError"}`;
1834
1829
  if (isCompaction) {
1835
1830
  rootAttrs.push(attrString("is_compaction", "true"));
1836
1831
  }
1832
+ rootAttrs.push(attrString("message_id", messageId));
1837
1833
  if (reasoningTokens != null && typeof reasoningTokens === "number" && reasoningTokens > 0) {
1838
1834
  rootAttrs.push(attrInt("gen_ai.usage.reasoning_tokens", reasoningTokens));
1839
1835
  }
@@ -1865,6 +1861,7 @@ type: ${name != null ? name : "UnknownError"}`;
1865
1861
  output: outputText,
1866
1862
  properties: {
1867
1863
  plugin_version: PLUGIN_VERSION,
1864
+ message_id: messageId,
1868
1865
  ...isCompaction ? { is_compaction: true } : {}
1869
1866
  }
1870
1867
  });
package/dist/index.js CHANGED
@@ -1173,21 +1173,16 @@ function resolveLocalWorkshopUrl(fileValue) {
1173
1173
  // package.json
1174
1174
  var package_default = {
1175
1175
  name: "@raindrop-ai/opencode-plugin",
1176
- version: "0.0.14",
1176
+ version: "0.0.16",
1177
1177
  description: "Raindrop observability plugin for OpenCode \u2014 automatic session/event/span tracing",
1178
1178
  type: "module",
1179
1179
  main: "dist/index.js",
1180
1180
  module: "dist/index.js",
1181
1181
  types: "dist/index.d.ts",
1182
1182
  license: "MIT",
1183
- repository: {
1184
- type: "git",
1185
- url: "git+https://github.com/raindrop-ai/raindrop-js.git",
1186
- directory: "packages/opencode-plugin"
1187
- },
1188
- homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/opencode-plugin#readme",
1183
+ homepage: "https://www.raindrop.ai/docs/integrations/opencode/",
1189
1184
  bugs: {
1190
- url: "https://github.com/raindrop-ai/raindrop-js/issues"
1185
+ url: "https://www.raindrop.ai/docs/support/"
1191
1186
  },
1192
1187
  exports: {
1193
1188
  ".": {
@@ -1815,6 +1810,7 @@ type: ${name != null ? name : "UnknownError"}`;
1815
1810
  if (isCompaction) {
1816
1811
  rootAttrs.push(attrString("is_compaction", "true"));
1817
1812
  }
1813
+ rootAttrs.push(attrString("message_id", messageId));
1818
1814
  if (reasoningTokens != null && typeof reasoningTokens === "number" && reasoningTokens > 0) {
1819
1815
  rootAttrs.push(attrInt("gen_ai.usage.reasoning_tokens", reasoningTokens));
1820
1816
  }
@@ -1846,6 +1842,7 @@ type: ${name != null ? name : "UnknownError"}`;
1846
1842
  output: outputText,
1847
1843
  properties: {
1848
1844
  plugin_version: PLUGIN_VERSION,
1845
+ message_id: messageId,
1849
1846
  ...isCompaction ? { is_compaction: true } : {}
1850
1847
  }
1851
1848
  });
package/package.json CHANGED
@@ -1,20 +1,15 @@
1
1
  {
2
2
  "name": "@raindrop-ai/opencode-plugin",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Raindrop observability plugin for OpenCode — automatic session/event/span tracing",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "license": "MIT",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/raindrop-ai/raindrop-js.git",
13
- "directory": "packages/opencode-plugin"
14
- },
15
- "homepage": "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/opencode-plugin#readme",
10
+ "homepage": "https://www.raindrop.ai/docs/integrations/opencode/",
16
11
  "bugs": {
17
- "url": "https://github.com/raindrop-ai/raindrop-js/issues"
12
+ "url": "https://www.raindrop.ai/docs/support/"
18
13
  },
19
14
  "exports": {
20
15
  ".": {