omp-fabric 1.4.1 → 1.4.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Resuming a session failed with "LCM session reconciliation failed with exit code 1" and imported nothing. Real OMP session files start with a `type: "title"` preamble record and declare the `type: "session"` header on the next line, but the reconciler required that header on line 1 and rejected the file. It now accepts the header after preamble records and reports a source that never declares one. Measured against real session files: 4,375 / 3,928 / 9 entries imported with zero malformed rows, where every one previously imported zero.
|
|
8
|
+
- Reconciliation no longer aborts a resume over per-row diagnostics. Malformed or oversized rows stay reported in the result counts, and only a genuine ledger or I/O error marks the runtime degraded.
|
|
9
|
+
|
|
3
10
|
## 1.4.1
|
|
4
11
|
|
|
5
12
|
### Fixed
|
|
@@ -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,kB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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
|
@@ -2049,7 +2049,11 @@ function migrateSessions(options) {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
if (row.type === "message_end") continue;
|
|
2051
2051
|
if (!header) {
|
|
2052
|
-
if (
|
|
2052
|
+
if (row.type !== "session") {
|
|
2053
|
+
if (record(row.message)) counts.malformed++;
|
|
2054
|
+
continue;
|
|
2055
|
+
}
|
|
2056
|
+
if (!nonblank(row.id)) {
|
|
2053
2057
|
counts.malformed++;
|
|
2054
2058
|
break;
|
|
2055
2059
|
}
|
|
@@ -2128,7 +2132,7 @@ function migrateSessions(options) {
|
|
|
2128
2132
|
if (ledger) database.prepare("INSERT OR IGNORE INTO migration_checkpoints(project_key,session_path,source_hash,line_ordinal,entry_id,content_hash) VALUES(?,?,?,?,?,?)").run(projectKey, file, sourceHash, ordinal, row.id, contentHash);
|
|
2129
2133
|
options.onProgress?.(progress);
|
|
2130
2134
|
}
|
|
2131
|
-
if (!header
|
|
2135
|
+
if (!header) counts.malformed++;
|
|
2132
2136
|
} catch (error) {
|
|
2133
2137
|
counts.errors++;
|
|
2134
2138
|
if (options.onProgress) throw error;
|
|
@@ -2533,7 +2537,7 @@ var LcmRuntime = class {
|
|
|
2533
2537
|
projectCwd: cwd,
|
|
2534
2538
|
apply: true
|
|
2535
2539
|
});
|
|
2536
|
-
|
|
2540
|
+
this.degradedError = result.counts.errors > 0 ? new Error(`LCM session reconciliation reported ${result.counts.errors} error(s)`) : void 0;
|
|
2537
2541
|
const sessionId = this.context.sessionManager.getSessionId();
|
|
2538
2542
|
this.refreshActiveSources(sessionId, this.context.sessionManager.getBranch());
|
|
2539
2543
|
});
|