omp-fabric 1.7.0 → 1.8.1
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/CHANGELOG.md +16 -0
- package/dist/chunks/{chunk-TGN42MRN.js → chunk-46LYJKI5.js} +3 -3
- package/dist/chunks/{chunk-SY56DK6U.js → chunk-4GVGY35I.js} +9 -7
- package/dist/chunks/chunk-4GVGY35I.js.map +7 -0
- package/dist/chunks/{chunk-CQIFOUT5.js → chunk-BAM2YKP5.js} +2 -2
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/lcm-maintenance.d.ts +2 -0
- package/dist/compaction/lcm-maintenance.d.ts.map +1 -1
- package/dist/compaction/lcm-runtime.d.ts +2 -0
- package/dist/compaction/lcm-runtime.d.ts.map +1 -1
- package/dist/compaction/lcm-runtime.js +31 -5
- package/dist/compaction/lcm-runtime.js.map +2 -2
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts +1 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +2 -2
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +2 -2
- package/dist/residency/host.js +3 -3
- package/dist/residency/omp-entry.js +3 -3
- package/dist/ui/settings.js +1 -1
- package/docs/compaction.md +5 -4
- package/package.json +1 -1
- package/dist/chunks/chunk-SY56DK6U.js.map +0 -7
- /package/dist/chunks/{chunk-TGN42MRN.js.map → chunk-46LYJKI5.js.map} +0 -0
- /package/dist/chunks/{chunk-CQIFOUT5.js.map → chunk-BAM2YKP5.js.map} +0 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAoKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAoKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAuwBxE;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
loadFabricConfigForScope,
|
|
200
200
|
resolveAgentDir,
|
|
201
201
|
saveFabricConfig
|
|
202
|
-
} from "./chunks/chunk-
|
|
202
|
+
} from "./chunks/chunk-4GVGY35I.js";
|
|
203
203
|
import {
|
|
204
204
|
FABRIC_ACTOR_OMP_HOST_EVENTS
|
|
205
205
|
} from "./chunks/chunk-3LI7YO4M.js";
|
|
@@ -1771,8 +1771,10 @@ Inspect LLM I/O: /fabric log ${shortId} \xB7 Export: /fabric export-log ${actor.
|
|
|
1771
1771
|
const hints = [];
|
|
1772
1772
|
const averageWallMs = report.usage.calls > 0 ? report.usage.wallMs / report.usage.calls : 0;
|
|
1773
1773
|
const wallLeft = report.budget.wallMs - report.usage.wallMs;
|
|
1774
|
-
if (
|
|
1775
|
-
hints.push(
|
|
1774
|
+
if (!config2.compaction.lcmModelSummaries) {
|
|
1775
|
+
hints.push("Model summaries are disabled by compaction.lcmModelSummaries, so every node is a deterministic excerpt.");
|
|
1776
|
+
} else if (report.usage.calls >= report.budget.calls || Number.isFinite(report.budget.wallMs) && averageWallMs > 0 && wallLeft < averageWallMs) {
|
|
1777
|
+
hints.push(`The configured model budget cannot fit another summary (${seconds(wallLeft)} left, ${seconds(averageWallMs)} per call), so new nodes use the deterministic reducer. Raise compaction.lcmMaxDailyModelSeconds or compaction.lcmMaxDailyModelCalls, or set them to 0 for no limit.`);
|
|
1776
1778
|
}
|
|
1777
1779
|
if (coverage.active > 0 && percent < 50) {
|
|
1778
1780
|
hints.push("The ready frontier covers less than half of this branch, so a compaction now falls back to an excerpt. Raise compaction.lcmMaintenancePasses to summarize more per turn.");
|
|
@@ -1788,7 +1790,9 @@ Inspect LLM I/O: /fabric log ${shortId} \xB7 Export: /fabric export-log ${actor.
|
|
|
1788
1790
|
`nodes: ${summaries} ready \xB7 ${report.modelNodes} written by the model \xB7 ${report.emergencyNodes} deterministic \xB7 ${report.pendingNodes} pending`,
|
|
1789
1791
|
`jobs: ${report.pendingJobs} pending`,
|
|
1790
1792
|
`model: ${report.summaryModel || "inherit (active session model)"}`,
|
|
1791
|
-
`today: ${report.usage.calls}
|
|
1793
|
+
`today: ${report.usage.calls}${Number.isFinite(report.budget.calls) ? `/${report.budget.calls}` : ""} calls \xB7 ${seconds(report.usage.wallMs)}${Number.isFinite(report.budget.wallMs) ? `/${seconds(report.budget.wallMs)}` : ""} \xB7 ${report.usage.inputTokens} in \xB7 ${report.usage.outputTokens} out \xB7 $${report.usage.cost.toFixed(4)}`,
|
|
1794
|
+
`budget: ${Number.isFinite(report.budget.calls) || Number.isFinite(report.budget.wallMs) ? "configured" : "no limit; fallback only when the model cannot be called"}`,
|
|
1795
|
+
`upgradable: ${report.upgradableNodes} deterministic nodes queued for a model summary`,
|
|
1792
1796
|
`limits: ${config2.compaction.lcmMaintenancePasses} passes \xD7 up to ${config2.compaction.lcmMaxLeafEntries} entries per leaf within ${config2.compaction.lcmMaxInputChars} chars`,
|
|
1793
1797
|
...report.degraded ? [`degraded: ${report.degraded}`] : [],
|
|
1794
1798
|
...hints.map((hint) => `hint: ${hint}`)
|
|
@@ -1825,7 +1829,8 @@ Inspect LLM I/O: /fabric log ${shortId} \xB7 Export: /fabric export-log ${actor.
|
|
|
1825
1829
|
const report = lcm.report();
|
|
1826
1830
|
const summaries = report.modelNodes + report.emergencyNodes;
|
|
1827
1831
|
const model = report.summaryModel || "inherit";
|
|
1828
|
-
|
|
1832
|
+
const calls = Number.isFinite(report.budget.calls) ? `${report.usage.calls}/${report.budget.calls}` : `${report.usage.calls}`;
|
|
1833
|
+
return `compaction: lcm \xB7 ${report.state} \xB7 model ${model} \xB7 ${report.rawEntries} entries \xB7 ${report.modelNodes}/${summaries} model summaries \xB7 today ${calls} calls, ${Math.round(report.usage.wallMs / 1e3)}s${report.degraded ? ` \xB7 degraded: ${report.degraded}` : ""}`;
|
|
1829
1834
|
})(),
|
|
1830
1835
|
`MCP: ${config.mcp.enabled ? "enabled" : "disabled"}`,
|
|
1831
1836
|
`UI: ${config.ui.enabled ? `${config.ui.widget} widget above chat` : "disabled"}`
|
|
@@ -5684,6 +5689,7 @@ async function ompFabric(omp) {
|
|
|
5684
5689
|
maxLeafEntries: state.config.compaction.lcmMaxLeafEntries,
|
|
5685
5690
|
maxCondenseChildren: state.config.compaction.lcmMaxCondenseChildren,
|
|
5686
5691
|
maxMaintenancePasses: state.config.compaction.lcmMaintenancePasses,
|
|
5692
|
+
modelSummaries: state.config.compaction.lcmModelSummaries,
|
|
5687
5693
|
maxDailyModelCalls: state.config.compaction.lcmMaxDailyModelCalls,
|
|
5688
5694
|
maxSessionModelCalls: state.config.compaction.lcmMaxSessionModelCalls,
|
|
5689
5695
|
maxDailyModelSeconds: state.config.compaction.lcmMaxDailyModelSeconds,
|