@the-magic-tower/fixhive-opencode-plugin 0.1.31 → 0.1.32

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 CHANGED
@@ -28238,10 +28238,21 @@ var FixHivePlugin = async (ctx) => {
28238
28238
  stderr: output.metadata?.stderr,
28239
28239
  metadata: output.metadata
28240
28240
  });
28241
+ if (detection.detected) {
28242
+ console.log(`[FixHive] Error detected (confidence: ${Math.round(detection.confidence * 100)}%)`);
28243
+ console.log(`[FixHive] Type: ${detection.errorType}, Tool: ${input.tool}`);
28244
+ console.log(`[FixHive] Message: ${detection.errorMessage.substring(0, 100)}...`);
28245
+ } else if (detection.detected) {
28246
+ console.log(`[FixHive] Error detected but confidence too low (${Math.round(detection.confidence * 100)}% < 50%) - not stored`);
28247
+ }
28241
28248
  if (detection.detected && detection.confidence >= 0.5) {
28242
28249
  const sanitizedErrorMessage = privacyFilter.sanitize(detection.errorMessage, filterContext).sanitized;
28243
28250
  const sanitizedErrorStack = detection.errorStack ? privacyFilter.sanitize(detection.errorStack, filterContext).sanitized : undefined;
28244
- localStore.createErrorRecord({
28251
+ const sessionId = pluginContext.sessionId || input.sessionID;
28252
+ if (!sessionId) {
28253
+ console.warn("[FixHive] No session ID available - error not stored. Please send a chat message first.");
28254
+ }
28255
+ const record2 = localStore.createErrorRecord({
28245
28256
  errorType: detection.errorType,
28246
28257
  errorMessage: sanitizedErrorMessage,
28247
28258
  errorStack: sanitizedErrorStack,
@@ -28249,8 +28260,11 @@ var FixHivePlugin = async (ctx) => {
28249
28260
  framework: pluginContext.framework,
28250
28261
  toolName: input.tool,
28251
28262
  toolInput: {},
28252
- sessionId: pluginContext.sessionId || input.sessionID
28263
+ sessionId
28253
28264
  });
28265
+ if (record2) {
28266
+ console.log(`[FixHive] Error stored locally (ID: ${record2.id.slice(0, 8)})`);
28267
+ }
28254
28268
  if (cloudClient) {
28255
28269
  try {
28256
28270
  const solutions = await cloudClient.searchSimilar({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAuBlD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAwJ3B,CAAC;AAoJF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAuBlD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAwK3B,CAAC;AAoJF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-magic-tower/fixhive-opencode-plugin",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Community-based error knowledge sharing for OpenCode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",