opencode-agent-teams 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -248,6 +248,12 @@ const plugin = async (ctx) => {
248
248
  }
249
249
  else {
250
250
  runEntry.status = "done";
251
+ const textParts = result.parts
252
+ .filter((p) => p.type === "text")
253
+ .map((p) => p.text);
254
+ if (textParts.length > 0) {
255
+ runEntry.result = textParts.join("\n");
256
+ }
251
257
  }
252
258
  }
253
259
  catch (e) {
@@ -271,9 +277,17 @@ const plugin = async (ctx) => {
271
277
  lines.push(` ${icon} ${t.id} — ${t.status}${session}`);
272
278
  if (t.error)
273
279
  lines.push(` error: ${t.error}`);
280
+ if (t.result) {
281
+ const excerpt = t.result.length > 600
282
+ ? t.result.slice(0, 600) + "\n ... (truncated)"
283
+ : t.result;
284
+ lines.push(` result:`);
285
+ lines.push(excerpt
286
+ .split("\n")
287
+ .map((l) => ` ${l}`)
288
+ .join("\n"));
289
+ }
274
290
  }
275
- lines.push("");
276
- lines.push("Use team_status to get detailed results from individual sessions.");
277
291
  return lines.join("\n");
278
292
  },
279
293
  }),
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"opencode-agent-teams","version":"1.0.1","description":"OpenCode plugin for parallel agent execution, background tasks, and team coordination. Create teams of agents that work together, run tasks in parallel respecting dependencies, and fire off background work without blocking.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"files":["dist"],"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["opencode","plugin","teams","agents","parallel","background","orchestration"],"author":{"name":"Maycol B.T","email":"soymaycol.cn@gmail.com","url":"https://github.com/SoyMaycol"},"publishConfig":{"access":"public"},"license":"MIT","repository":{"type":"git","url":"https://github.com/SoyMaycol/opencode-teams"},"peerDependencies":{"@opencode-ai/plugin":">=1.0.0","@opencode-ai/sdk":">=1.0.0"},"devDependencies":{"@opencode-ai/plugin":"1.4.6","@opencode-ai/sdk":"latest","@types/node":"^22.0.0","typescript":"^5.0.0"}}
1
+ {"name":"opencode-agent-teams","version":"1.0.2","description":"OpenCode plugin for parallel agent execution, background tasks, and team coordination. Create teams of agents that work together, run tasks in parallel respecting dependencies, and fire off background work without blocking.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"files":["dist"],"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["opencode","plugin","teams","agents","parallel","background","orchestration"],"author":{"name":"Maycol B.T","email":"soymaycol.cn@gmail.com","url":"https://github.com/SoyMaycol"},"publishConfig":{"access":"public"},"license":"MIT","repository":{"type":"git","url":"https://github.com/SoyMaycol/opencode-teams"},"peerDependencies":{"@opencode-ai/plugin":">=1.0.0","@opencode-ai/sdk":">=1.0.0"},"devDependencies":{"@opencode-ai/plugin":"1.4.6","@opencode-ai/sdk":"latest","@types/node":"^22.0.0","typescript":"^5.0.0"}}