omnius 1.0.475 → 1.0.476

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
@@ -577069,6 +577069,40 @@ var init_longhaul_integration = __esm({
577069
577069
  return null;
577070
577070
  }
577071
577071
  }
577072
+ /**
577073
+ * WO-1 (PyTy pattern): parse a failed build/verify command's own output for
577074
+ * named STRUCTURAL contract violations (signature mismatch / duplicate
577075
+ * definition / unknown member or symbol) and return guidance naming the exact
577076
+ * drifted symbols, so the next edit targets the drift instead of guessing.
577077
+ * Uses the model's own compiler output — no separate compiler run. Generic
577078
+ * across gcc/clang/tsc; returns null when there's nothing structural.
577079
+ */
577080
+ diagnosticGuidance(output) {
577081
+ try {
577082
+ const diags = parseCompilerDiagnostics(String(output || ""));
577083
+ const byKind = /* @__PURE__ */ new Map();
577084
+ for (const d2 of diags) {
577085
+ if (d2.kind !== "signature_mismatch" && d2.kind !== "duplicate_definition" && d2.kind !== "unknown_member" && d2.kind !== "unknown_symbol")
577086
+ continue;
577087
+ if (!d2.symbol)
577088
+ continue;
577089
+ const arr = byKind.get(d2.kind) ?? [];
577090
+ if (!arr.includes(d2.symbol) && arr.length < 4)
577091
+ arr.push(d2.symbol);
577092
+ byKind.set(d2.kind, arr);
577093
+ }
577094
+ const parts = [];
577095
+ for (const [kind, syms] of byKind) {
577096
+ if (syms.length)
577097
+ parts.push(`${kind.replace(/_/g, " ")} → ${syms.join(", ")}`);
577098
+ }
577099
+ if (parts.length === 0)
577100
+ return null;
577101
+ return `Compiler reports structural contract violations — reconcile these EXACT symbols before editing unrelated files: ${parts.join("; ")}. A signature/definition mismatch means a declaration and its use disagree; fix them against the locked contract (or regenerate the unit) rather than patching around it.`;
577102
+ } catch {
577103
+ return null;
577104
+ }
577105
+ }
577072
577106
  /**
577073
577107
  * WO-5: decide whether to compact now (threshold AND rubric). The hard ceiling
577074
577108
  * guarantees a truly-full window still compacts.
@@ -592505,6 +592539,14 @@ ${rec.guidance}` : rec.guidance;
592505
592539
  ${dir}` : dir;
592506
592540
  }
592507
592541
  }
592542
+ if (!result.success) {
592543
+ const diag = lh.diagnosticGuidance(result.output ?? result.error ?? "");
592544
+ if (diag) {
592545
+ runtimeSystemGuidance = runtimeSystemGuidance ? `${runtimeSystemGuidance}
592546
+
592547
+ ${diag}` : diag;
592548
+ }
592549
+ }
592508
592550
  }
592509
592551
  } catch {
592510
592552
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.475",
3
+ "version": "1.0.476",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.475",
9
+ "version": "1.0.476",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.475",
3
+ "version": "1.0.476",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",