opencode-ultra 0.7.6 → 0.7.7

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 +14 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29355,6 +29355,20 @@ var OpenCodeUltra = async (ctx) => {
29355
29355
  })?.catch?.((err) => log("Toast failed", { error: err }));
29356
29356
  }
29357
29357
  pendingKeywords.set(input.sessionID, detected);
29358
+ const hasEvolve = detected.some((k) => k.type === "evolve");
29359
+ if (hasEvolve) {
29360
+ const anchor = `
29361
+
29362
+ [EVOLVE MODE ACTIVATED \u2014 MANDATORY TOOL USAGE]
29363
+ You MUST follow the 5-phase evolve workflow injected in the system prompt.
29364
+ Phase 1: RESEARCH \u2014 Use Glob to scan node_modules for OpenCode plugins, or spawn_agent with scout/librarian.
29365
+ Phase 2: COMPARE \u2014 Build a feature matrix (opencode-ultra column = Yes/No/Partial from inventory).
29366
+ Phase 3: PROPOSE \u2014 Write EACH proposal as JSONL to .opencode/evolve-proposals.jsonl using the Write tool.
29367
+ Phase 4: SCORE \u2014 Call evolve_score({ markdown: "## Improvement: ...\\n**Priority**: ...\\n**Effort**: ..." }) for EVERY proposal.
29368
+ Phase 5: SAVE \u2014 Call ledger_save({ name: "evolve-scan-YYYY-MM-DD", content: "..." }).
29369
+ DO NOT skip tools. Text-only output is FORBIDDEN. Every phase requires tool calls.`;
29370
+ output.parts.push({ type: "text", text: anchor });
29371
+ }
29358
29372
  if (hasUltrawork) {
29359
29373
  for (const part of output.parts) {
29360
29374
  if (part.type === "text" && part.text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ultra",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Lightweight OpenCode 1.2.x plugin — ultrawork mode, multi-agent orchestration, rules injection",
5
5
  "keywords": [
6
6
  "opencode",