omp-fabric 1.4.2 → 1.4.4
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 +12 -0
- package/dist/compaction/lcm-runtime.d.ts +3 -2
- package/dist/compaction/lcm-runtime.d.ts.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +2 -2
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +13 -1
- package/dist/ui/settings.js.map +2 -2
- package/docs/compaction.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.4
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Changing Compaction > Summary model (or any LCM bound) took effect only in the next session. The runtime captured its options once at construction and is rebuilt only when the project, cwd, or engine changes, so a model picked mid-session kept summarizing with the previous one. `LcmRuntime` now resolves its options at use time and the extension supplies them from live config, so the next maintenance pass and the next compaction read the current setting.
|
|
8
|
+
|
|
9
|
+
## 1.4.3
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `/fabric settings` exposes Compaction > Summary model. The entry opens the OMP model picker, so the LCM summary model is chosen from the models OMP actually has rather than typed by hand, and Inherit clears the override back to the active session model. The setting was previously reachable only by hand-editing `compaction.summaryModel` in `fabric.json`, which left reasoning models summarizing transcripts at their own price.
|
|
14
|
+
|
|
3
15
|
## 1.4.2
|
|
4
16
|
|
|
5
17
|
### Fixed
|
|
@@ -15,7 +15,7 @@ export declare class LcmRuntime {
|
|
|
15
15
|
readonly ledger: LcmLedger;
|
|
16
16
|
readonly maintenance: LcmMaintenance;
|
|
17
17
|
private readonly context;
|
|
18
|
-
private readonly
|
|
18
|
+
private readonly resolveOptions;
|
|
19
19
|
private readonly abort;
|
|
20
20
|
private writePending;
|
|
21
21
|
private maintenancePending;
|
|
@@ -24,7 +24,8 @@ export declare class LcmRuntime {
|
|
|
24
24
|
private degradedError;
|
|
25
25
|
private activeSources;
|
|
26
26
|
private activeSessionId;
|
|
27
|
-
constructor(context: ExtensionContext, options?: LcmRuntimeOptions);
|
|
27
|
+
constructor(context: ExtensionContext, options?: LcmRuntimeOptions | (() => LcmRuntimeOptions));
|
|
28
|
+
private get options();
|
|
28
29
|
get projectKey(): string;
|
|
29
30
|
get signal(): AbortSignal;
|
|
30
31
|
get status(): "healthy" | "degraded";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lcm-runtime.d.ts","sourceRoot":"","sources":["../../src/compaction/lcm-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAiE,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGnI,OAAO,EAAE,cAAc,EAAe,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEzE,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,UAAU;IACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IACrC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"lcm-runtime.d.ts","sourceRoot":"","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AoC;IAC5D,IAAI,MAAM,IAAI,WAAW,CAA8B;IACvD,IAAI,MAAM,IAAI,SAAS,GAAG,UAAU,CAAsE;IAC1G,IAAI,KAAK,IAAI,OAAO,CAA+B;IACnD,SAAS,IAAI,IAAI;IAEjB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,oBAAoB;IAc5B,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBzC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCnB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,mBAAmB,IAAI,IAAI;YAMb,cAAc;IAuD5B,OAAO,CAAC,KAAK,EAAE,kBAAkB,GAAG,mBAAmB;IAkDvD,aAAa;;sDAUmC;gBAAE,SAAS,CAAC,EAAE,MAAM,CAAC;gBAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE;;;;;;;;;;;;;;;;;;;;8BACrF,MAAM;;;;;;;;;;;;;;;;;;;;;sCAKI,MAAM;;;;;;;;kCAZZ,MAAM;sCACF,MAAM,WAAW,MAAM,UAAU,MAAM;sCACvC,MAAM,WAAW,MAAM,YAAY,MAAM;;;IAgBzE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAInD,GAAG,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE;IAE7B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAQhC"}
|
package/dist/index.js
CHANGED
|
@@ -2462,7 +2462,7 @@ var LcmRuntime = class {
|
|
|
2462
2462
|
ledger;
|
|
2463
2463
|
maintenance;
|
|
2464
2464
|
context;
|
|
2465
|
-
|
|
2465
|
+
resolveOptions;
|
|
2466
2466
|
abort = new AbortController();
|
|
2467
2467
|
writePending = Promise.resolve();
|
|
2468
2468
|
maintenancePending = Promise.resolve();
|
|
@@ -2473,18 +2473,22 @@ var LcmRuntime = class {
|
|
|
2473
2473
|
activeSessionId;
|
|
2474
2474
|
constructor(context, options = {}) {
|
|
2475
2475
|
this.context = context;
|
|
2476
|
-
this.
|
|
2476
|
+
this.resolveOptions = typeof options === "function" ? options : () => options;
|
|
2477
|
+
const initial = this.resolveOptions();
|
|
2477
2478
|
const recorded = context.sessionManager.getRecordedCwd?.();
|
|
2478
2479
|
const liveCwd = recorded || context.cwd;
|
|
2479
2480
|
const project = canonicalProjectIdentity({ liveCwd });
|
|
2480
|
-
const ledgerOptions =
|
|
2481
|
+
const ledgerOptions = initial.rootDir === void 0 ? { project: { liveCwd: project.canonicalPath ?? liveCwd } } : { rootDir: initial.rootDir, project: { liveCwd: project.canonicalPath ?? liveCwd } };
|
|
2481
2482
|
this.ledger = new LcmLedger(ledgerOptions);
|
|
2482
2483
|
this.maintenance = new LcmMaintenance(this.ledger, {
|
|
2483
|
-
...
|
|
2484
|
-
...
|
|
2485
|
-
...
|
|
2484
|
+
...initial,
|
|
2485
|
+
...initial.lcmMaxInputChars === void 0 ? {} : { maxInputChars: initial.lcmMaxInputChars },
|
|
2486
|
+
...initial.lcmMaxOutputChars === void 0 ? {} : { maxOutputChars: initial.lcmMaxOutputChars }
|
|
2486
2487
|
});
|
|
2487
2488
|
}
|
|
2489
|
+
get options() {
|
|
2490
|
+
return this.resolveOptions();
|
|
2491
|
+
}
|
|
2488
2492
|
get projectKey() {
|
|
2489
2493
|
return this.ledger.project.key;
|
|
2490
2494
|
}
|
|
@@ -6470,14 +6474,14 @@ async function ompFabric(omp) {
|
|
|
6470
6474
|
lcmProjectKey = void 0;
|
|
6471
6475
|
}
|
|
6472
6476
|
if (state.config.compaction.engine === "lcm" && !lcmRuntime) {
|
|
6473
|
-
lcmRuntime = new LcmRuntime(context, {
|
|
6477
|
+
lcmRuntime = new LcmRuntime(context, () => ({
|
|
6474
6478
|
...state.config.compaction.summaryModel ? { summaryModel: state.config.compaction.summaryModel } : {},
|
|
6475
6479
|
maxLeafEntries: state.config.compaction.lcmMaxLeafEntries,
|
|
6476
6480
|
maxCondenseChildren: state.config.compaction.lcmMaxCondenseChildren,
|
|
6477
6481
|
lcmMaxInputChars: state.config.compaction.lcmMaxInputChars,
|
|
6478
6482
|
lcmMaxOutputTokens: state.config.compaction.lcmMaxOutputTokens,
|
|
6479
6483
|
lcmMaxOutputChars: state.config.compaction.lcmMaxOutputChars
|
|
6480
|
-
});
|
|
6484
|
+
}));
|
|
6481
6485
|
lcmCwd = context.cwd;
|
|
6482
6486
|
lcmProjectKey = lcmRuntime.projectKey;
|
|
6483
6487
|
}
|