omnius 1.0.995 → 1.0.997
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 +2 -2
- package/dist/update-worker-runtime.js +146 -35
- package/dist/update-worker.js +3 -0
- package/docs/DISCOVERY.json +72 -0
- package/docs/DISCOVERY.md +2 -0
- package/docs/work-orders/WO-omnius-update-archive-propagation-20261125.md +30 -0
- package/docs/work-orders/WO-telegram-quick-reply-settlement-20261125.md +22 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43652613 bytes
|
|
4
|
+
sha256: 0ae837d465bfd1bac7ede764a2725eaed53a7ff39ce7a134c1e63d32662f8bde
|
|
@@ -320768,7 +320768,7 @@ import { spawn as spawn5 } from "node:child_process";
|
|
|
320768
320768
|
|
|
320769
320769
|
// packages/cli/src/update-service.ts
|
|
320770
320770
|
import { spawn as spawn3 } from "node:child_process";
|
|
320771
|
-
import { createHash as createHash6, randomUUID as
|
|
320771
|
+
import { createHash as createHash6, randomUUID as randomUUID6 } from "node:crypto";
|
|
320772
320772
|
import {
|
|
320773
320773
|
constants as constants4,
|
|
320774
320774
|
chmodSync,
|
|
@@ -320871,7 +320871,7 @@ function userManagerEnvironment(env, uid = process.getuid?.(), inspect = lstatSy
|
|
|
320871
320871
|
}
|
|
320872
320872
|
|
|
320873
320873
|
// packages/cli/src/update-package-preflight.ts
|
|
320874
|
-
import { createHash as createHash5 } from "node:crypto";
|
|
320874
|
+
import { createHash as createHash5, randomUUID as randomUUID5 } from "node:crypto";
|
|
320875
320875
|
import { constants as constants3 } from "node:fs";
|
|
320876
320876
|
import { lstat as lstat2, mkdir as mkdir2, mkdtemp, open, realpath as realpath2, rm as rm2 } from "node:fs/promises";
|
|
320877
320877
|
import { dirname as dirname10, isAbsolute as isAbsolute8, join as join17 } from "node:path";
|
|
@@ -321411,6 +321411,66 @@ async function removeVerifiedNpmRetirementBackup(backup) {
|
|
|
321411
321411
|
}
|
|
321412
321412
|
|
|
321413
321413
|
// packages/cli/src/update-package-preflight.ts
|
|
321414
|
+
var PackageCommandError = class extends Error {
|
|
321415
|
+
constructor(message, stderr) {
|
|
321416
|
+
super(message);
|
|
321417
|
+
this.stderr = stderr;
|
|
321418
|
+
}
|
|
321419
|
+
stderr;
|
|
321420
|
+
};
|
|
321421
|
+
var UpdateArchiveUnavailableError = class extends Error {
|
|
321422
|
+
code = "update_archive_unavailable";
|
|
321423
|
+
constructor() {
|
|
321424
|
+
super("Exact Omnius package download failed: verified registry archive is temporarily unavailable (HTTP 404)");
|
|
321425
|
+
this.name = "UpdateArchiveUnavailableError";
|
|
321426
|
+
}
|
|
321427
|
+
};
|
|
321428
|
+
var ARCHIVE_DOWNLOAD_TIMEOUT_MS = 45e3;
|
|
321429
|
+
var MAX_RECOVERY_ARCHIVE_BYTES = 256 * 1024 * 1024;
|
|
321430
|
+
function exactArchiveOnRegistry(rawTarball, rawRegistry, filename) {
|
|
321431
|
+
try {
|
|
321432
|
+
const registry2 = new URL(rawRegistry);
|
|
321433
|
+
const loopback = ["127.0.0.1", "[::1]", "localhost"].includes(registry2.hostname);
|
|
321434
|
+
if (registry2.protocol !== "https:" && !(registry2.protocol === "http:" && loopback) || registry2.username || registry2.password || registry2.search || registry2.hash)
|
|
321435
|
+
return void 0;
|
|
321436
|
+
const expected = new URL(`omnius/-/${filename}`, registry2.href.replace(/\/?$/, "/"));
|
|
321437
|
+
return rawTarball === expected.href ? expected : void 0;
|
|
321438
|
+
} catch {
|
|
321439
|
+
return void 0;
|
|
321440
|
+
}
|
|
321441
|
+
}
|
|
321442
|
+
async function downloadFreshArchive(url2, archivePath, ownerSignal) {
|
|
321443
|
+
url2.searchParams.set("omnius_update", randomUUID5());
|
|
321444
|
+
const deadline = AbortSignal.timeout(ARCHIVE_DOWNLOAD_TIMEOUT_MS);
|
|
321445
|
+
const signal = ownerSignal ? AbortSignal.any([ownerSignal, deadline]) : deadline;
|
|
321446
|
+
const handle = await open(archivePath, "wx", 384);
|
|
321447
|
+
try {
|
|
321448
|
+
const response = await fetch(url2, { redirect: "error", headers: { "cache-control": "no-cache" }, signal });
|
|
321449
|
+
const length = Number(response.headers.get("content-length"));
|
|
321450
|
+
if (response.status !== 200 || !response.body || length > MAX_RECOVERY_ARCHIVE_BYTES) {
|
|
321451
|
+
await response.body?.cancel().catch(() => void 0);
|
|
321452
|
+
if (response.status === 404) throw new UpdateArchiveUnavailableError();
|
|
321453
|
+
if (length > MAX_RECOVERY_ARCHIVE_BYTES) throw new Error("The fresh npm archive exceeded the download size limit.");
|
|
321454
|
+
throw new Error(`The fresh npm archive download returned an invalid response (HTTP ${response.status}).`);
|
|
321455
|
+
}
|
|
321456
|
+
const reader = response.body.getReader();
|
|
321457
|
+
try {
|
|
321458
|
+
let bytes = 0;
|
|
321459
|
+
for (; ; ) {
|
|
321460
|
+
signal.throwIfAborted();
|
|
321461
|
+
const chunk = await reader.read();
|
|
321462
|
+
if (chunk.done) break;
|
|
321463
|
+
bytes += chunk.value.byteLength;
|
|
321464
|
+
if (bytes > MAX_RECOVERY_ARCHIVE_BYTES) throw new Error("The fresh npm archive exceeded the download size limit.");
|
|
321465
|
+
await handle.writeFile(chunk.value);
|
|
321466
|
+
}
|
|
321467
|
+
} finally {
|
|
321468
|
+
await reader.cancel().catch(() => void 0);
|
|
321469
|
+
}
|
|
321470
|
+
} finally {
|
|
321471
|
+
await handle.close();
|
|
321472
|
+
}
|
|
321473
|
+
}
|
|
321414
321474
|
function sameFile(left, right) {
|
|
321415
321475
|
return left.dev === right.dev && left.ino === right.ino && left.size === right.size && left.mtimeMs === right.mtimeMs && left.ctimeMs === right.ctimeMs;
|
|
321416
321476
|
}
|
|
@@ -321452,7 +321512,11 @@ function verifyRegistryReceipt(raw, targetVersion) {
|
|
|
321452
321512
|
throw new Error(`npm view did not identify one exact Omnius v${targetVersion} release with SHA-512 integrity.`);
|
|
321453
321513
|
const sourceRevision = cleanSourceRevision(receipt.omniusBuild);
|
|
321454
321514
|
if (!sourceRevision) throw new Error(`Omnius v${targetVersion} has no valid clean source revision in the npm registry.`);
|
|
321455
|
-
return {
|
|
321515
|
+
return {
|
|
321516
|
+
integrity: receipt["dist.integrity"],
|
|
321517
|
+
sourceRevision,
|
|
321518
|
+
tarball: typeof receipt["dist.tarball"] === "string" ? receipt["dist.tarball"] : void 0
|
|
321519
|
+
};
|
|
321456
321520
|
}
|
|
321457
321521
|
async function prepareUpdatePackage(input) {
|
|
321458
321522
|
const { cacheDir, operationId, npmPath, targetVersion, signal } = input;
|
|
@@ -321489,10 +321553,10 @@ async function prepareUpdatePackage(input) {
|
|
|
321489
321553
|
OMNIUS_SKIP_DAEMON_INSTALL: "1",
|
|
321490
321554
|
OMNIUS_SKIP_TRAY_INSTALL: "1"
|
|
321491
321555
|
};
|
|
321492
|
-
const run2 = async (label, args) => {
|
|
321556
|
+
const run2 = async (label, args, timeout = 5 * 6e4) => {
|
|
321493
321557
|
signal?.throwIfAborted();
|
|
321494
321558
|
await assertStage();
|
|
321495
|
-
const result = await input.runCommand(npmPath, args, { env, cwd: stage, signal, timeout
|
|
321559
|
+
const result = await input.runCommand(npmPath, args, { env, cwd: stage, signal, timeout });
|
|
321496
321560
|
if (result.processGroupSettled === false) {
|
|
321497
321561
|
ownedSubprocessSettled = false;
|
|
321498
321562
|
throw new Error(`${label} did not settle. Isolated candidate files remain at ${stage}.`);
|
|
@@ -321500,7 +321564,7 @@ async function prepareUpdatePackage(input) {
|
|
|
321500
321564
|
signal?.throwIfAborted();
|
|
321501
321565
|
if (result.status !== 0 || result.error) {
|
|
321502
321566
|
const detail = result.error?.message || result.stderr.trim().slice(-2e3) || `exit code ${result.status ?? "unknown"}`;
|
|
321503
|
-
throw new
|
|
321567
|
+
throw new PackageCommandError(`${label} failed: ${detail}`, result.stderr);
|
|
321504
321568
|
}
|
|
321505
321569
|
return result.stdout;
|
|
321506
321570
|
};
|
|
@@ -321513,24 +321577,41 @@ async function prepareUpdatePackage(input) {
|
|
|
321513
321577
|
"name",
|
|
321514
321578
|
"version",
|
|
321515
321579
|
"dist.integrity",
|
|
321580
|
+
"dist.tarball",
|
|
321516
321581
|
"omniusBuild",
|
|
321517
321582
|
"--json",
|
|
321518
321583
|
"--prefer-online",
|
|
321519
321584
|
"--loglevel=error"
|
|
321520
321585
|
]), targetVersion);
|
|
321521
321586
|
const expectedFilename = `omnius-${targetVersion}.tgz`;
|
|
321522
|
-
|
|
321523
|
-
|
|
321524
|
-
|
|
321525
|
-
|
|
321526
|
-
|
|
321527
|
-
|
|
321528
|
-
|
|
321529
|
-
|
|
321530
|
-
|
|
321531
|
-
|
|
321532
|
-
|
|
321533
|
-
|
|
321587
|
+
let tarballPath = join17(stage, expectedFilename);
|
|
321588
|
+
try {
|
|
321589
|
+
const packedFilename = (await run2("Exact Omnius package download", [
|
|
321590
|
+
"pack",
|
|
321591
|
+
spec,
|
|
321592
|
+
"--pack-destination",
|
|
321593
|
+
stage,
|
|
321594
|
+
"--prefer-online",
|
|
321595
|
+
"--ignore-scripts",
|
|
321596
|
+
"--no-progress",
|
|
321597
|
+
"--no-color",
|
|
321598
|
+
"--loglevel=error"
|
|
321599
|
+
])).trim();
|
|
321600
|
+
if (packedFilename !== expectedFilename) throw new Error("npm pack did not produce the exact expected Omnius archive.");
|
|
321601
|
+
} catch (error51) {
|
|
321602
|
+
if (!(error51 instanceof PackageCommandError) || !registry2.tarball || !/^npm (?:error|ERR!) code E404\r?$/m.test(error51.stderr)) throw error51;
|
|
321603
|
+
const failedRequest = ` GET ${registry2.tarball}`;
|
|
321604
|
+
if (!error51.stderr.split(/\r?\n/).some((line) => line.endsWith(failedRequest) || line.includes(`${failedRequest} - `))) throw error51;
|
|
321605
|
+
const selectedRegistry = (await run2("Selected npm registry lookup", ["config", "get", "registry", "--loglevel=error"], 1e4)).trim();
|
|
321606
|
+
const archiveUrl = exactArchiveOnRegistry(registry2.tarball, selectedRegistry, expectedFilename);
|
|
321607
|
+
if (!archiveUrl) throw error51;
|
|
321608
|
+
signal?.throwIfAborted();
|
|
321609
|
+
await assertStage();
|
|
321610
|
+
input.onArchiveRetry?.();
|
|
321611
|
+
tarballPath = join17(stage, `fresh-${expectedFilename}`);
|
|
321612
|
+
await downloadFreshArchive(archiveUrl, tarballPath, signal);
|
|
321613
|
+
}
|
|
321614
|
+
await assertStage();
|
|
321534
321615
|
const archive = await readArchiveIntegrity(tarballPath, signal, true);
|
|
321535
321616
|
if (archive.integrity !== registry2.integrity) throw new Error("The staged npm archive differs from the registry's SHA-512 receipt.");
|
|
321536
321617
|
const assertArchiveUnchanged = async () => {
|
|
@@ -321611,16 +321692,24 @@ async function verifyUpdateDaemonStability({
|
|
|
321611
321692
|
windowMs,
|
|
321612
321693
|
intervalMs = 500,
|
|
321613
321694
|
graceMs = 5e3,
|
|
321695
|
+
blackoutRecovery,
|
|
321614
321696
|
signal
|
|
321615
321697
|
}) {
|
|
321616
321698
|
signal?.throwIfAborted();
|
|
321617
321699
|
if (![windowMs, intervalMs, graceMs].every(Number.isSafeInteger) || windowMs < 0 || intervalMs < 1 || graceMs < 0)
|
|
321618
321700
|
throw new RangeError("Invalid daemon stability observation timing");
|
|
321701
|
+
if (blackoutRecovery && (![blackoutRecovery.deadlineMs, blackoutRecovery.confirmationMs].every(Number.isSafeInteger) || blackoutRecovery.deadlineMs <= windowMs + graceMs || blackoutRecovery.confirmationMs <= 0 || blackoutRecovery.confirmationMs >= blackoutRecovery.deadlineMs))
|
|
321702
|
+
throw new RangeError("Invalid daemon blackout recovery timing");
|
|
321619
321703
|
const started = performance.now();
|
|
321620
321704
|
const windowEnd = started + windowMs;
|
|
321621
|
-
const
|
|
321705
|
+
const ordinaryDeadline = windowEnd + graceMs;
|
|
321706
|
+
const recoveryDeadline = blackoutRecovery ? started + blackoutRecovery.deadlineMs : ordinaryDeadline;
|
|
321707
|
+
const blackoutThresholdMs = Math.max(graceMs, 2 * intervalMs);
|
|
321622
321708
|
let last = initial;
|
|
321623
321709
|
let bootId = initial.bootId || void 0;
|
|
321710
|
+
let lastVerifiedAt = started;
|
|
321711
|
+
let confirmationStartedAt;
|
|
321712
|
+
let recovering = false;
|
|
321624
321713
|
let observations = 0;
|
|
321625
321714
|
let misses = 0;
|
|
321626
321715
|
const finish = (reason) => ({
|
|
@@ -321629,33 +321718,46 @@ async function verifyUpdateDaemonStability({
|
|
|
321629
321718
|
elapsedMs: Math.round(performance.now() - started),
|
|
321630
321719
|
observations,
|
|
321631
321720
|
misses,
|
|
321632
|
-
last
|
|
321721
|
+
last,
|
|
321722
|
+
...reason === "stable" && recovering ? { recoveredFromBlackout: true } : {}
|
|
321633
321723
|
});
|
|
321634
|
-
if (!expectedHash || initial.bootVersion !== expectedVersion || initial.bootPackageHash !== expectedHash)
|
|
321724
|
+
if (!expectedHash || initial.bootVersion !== expectedVersion || initial.bootPackageHash !== expectedHash || blackoutRecovery && !bootId)
|
|
321635
321725
|
return finish("initial_identity_unverified");
|
|
321636
321726
|
if (windowMs === 0) return finish("stable");
|
|
321637
321727
|
for (; ; ) {
|
|
321638
321728
|
const now = performance.now();
|
|
321729
|
+
const deadline = recovering ? recoveryDeadline : ordinaryDeadline;
|
|
321639
321730
|
const nextBoundary = now < windowEnd ? windowEnd : deadline;
|
|
321640
321731
|
if (now < nextBoundary) await waitForObservation(Math.min(intervalMs, nextBoundary - now), signal);
|
|
321641
321732
|
const observed = await waitForObservation(Math.max(0, Math.min(PROBE_TIMEOUT_MS, deadline - performance.now())), signal, observe);
|
|
321642
321733
|
observations++;
|
|
321734
|
+
const observedAt = performance.now();
|
|
321735
|
+
let matching = false;
|
|
321643
321736
|
if (observed) {
|
|
321644
321737
|
last = observed;
|
|
321645
321738
|
if (observed.bootVersion !== expectedVersion) return finish("version_changed");
|
|
321646
321739
|
if (observed.bootPackageHash && observed.bootPackageHash !== expectedHash) return finish("package_changed");
|
|
321647
321740
|
if (bootId && observed.bootId && observed.bootId !== bootId) return finish("process_changed");
|
|
321648
|
-
|
|
321649
|
-
|
|
321650
|
-
|
|
321651
|
-
|
|
321652
|
-
|
|
321653
|
-
|
|
321741
|
+
matching = observed.bootPackageHash === expectedHash && (!bootId || Boolean(observed.bootId));
|
|
321742
|
+
}
|
|
321743
|
+
if (blackoutRecovery && (observedAt - lastVerifiedAt >= blackoutThresholdMs || !recovering && observedAt >= ordinaryDeadline)) {
|
|
321744
|
+
recovering = true;
|
|
321745
|
+
confirmationStartedAt = void 0;
|
|
321746
|
+
}
|
|
321747
|
+
if (matching) {
|
|
321748
|
+
bootId ??= observed?.bootId || void 0;
|
|
321749
|
+
lastVerifiedAt = observedAt;
|
|
321750
|
+
if (!recovering && observedAt >= windowEnd && observedAt <= deadline) return finish("stable");
|
|
321751
|
+
if (recovering && blackoutRecovery) {
|
|
321752
|
+
confirmationStartedAt ??= observedAt;
|
|
321753
|
+
if (observedAt >= windowEnd && observedAt - confirmationStartedAt >= blackoutRecovery.confirmationMs && observedAt <= deadline) return finish("stable");
|
|
321654
321754
|
}
|
|
321655
321755
|
} else {
|
|
321656
321756
|
misses++;
|
|
321757
|
+
confirmationStartedAt = void 0;
|
|
321657
321758
|
}
|
|
321658
|
-
|
|
321759
|
+
const activeDeadline = recovering ? recoveryDeadline : ordinaryDeadline;
|
|
321760
|
+
if (observedAt >= activeDeadline) return finish("unreachable");
|
|
321659
321761
|
}
|
|
321660
321762
|
}
|
|
321661
321763
|
|
|
@@ -321827,7 +321929,7 @@ function guardOwnerIsProvablyDead(owner) {
|
|
|
321827
321929
|
function recoverInterruptedUpdateGuard(path3) {
|
|
321828
321930
|
const initial = interruptedGuardSnapshot(path3);
|
|
321829
321931
|
if (!initial || !guardOwnerIsProvablyDead(initial.owner)) return false;
|
|
321830
|
-
const recoveryPath = path3 + ".recovery", nonce =
|
|
321932
|
+
const recoveryPath = path3 + ".recovery", nonce = randomUUID6();
|
|
321831
321933
|
let fd;
|
|
321832
321934
|
try {
|
|
321833
321935
|
fd = openSync4(recoveryPath, constants4.O_WRONLY | constants4.O_CREAT | constants4.O_EXCL | constants4.O_NOFOLLOW, 384);
|
|
@@ -321860,7 +321962,7 @@ function recoverInterruptedUpdateGuard(path3) {
|
|
|
321860
321962
|
}
|
|
321861
321963
|
function withUpdateOwnership(paths, mutation) {
|
|
321862
321964
|
ensurePrivateDirectories(paths);
|
|
321863
|
-
const path3 = paths.lockFile + ".guard", nonce =
|
|
321965
|
+
const path3 = paths.lockFile + ".guard", nonce = randomUUID6();
|
|
321864
321966
|
let fd;
|
|
321865
321967
|
try {
|
|
321866
321968
|
fd = openSync4(path3, constants4.O_WRONLY | constants4.O_CREAT | constants4.O_EXCL | constants4.O_NOFOLLOW, 384);
|
|
@@ -321941,7 +322043,7 @@ function releaseMatchingUpdateLock(paths, operationId, pid) {
|
|
|
321941
322043
|
if (lock?.operation_id === operationId && (pid === void 0 || lock.pid === pid)) unlinkSync4(paths.lockFile);
|
|
321942
322044
|
}
|
|
321943
322045
|
function atomicPrivateJson(path3, value) {
|
|
321944
|
-
const temp = `${path3}.${process.pid}.${
|
|
322046
|
+
const temp = `${path3}.${process.pid}.${randomUUID6()}.tmp`;
|
|
321945
322047
|
try {
|
|
321946
322048
|
const fd = openSync4(temp, "wx", 384);
|
|
321947
322049
|
try {
|
|
@@ -322410,6 +322512,11 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
|
|
|
322410
322512
|
env,
|
|
322411
322513
|
signal: dependencies.signal,
|
|
322412
322514
|
runCommand,
|
|
322515
|
+
onArchiveRetry: () => {
|
|
322516
|
+
assertOwned();
|
|
322517
|
+
process.stdout.write(`[omnius update ${initial.operation_id}] npm metadata is available while the archive edge reports HTTP 404. Trying the exact archive with a fresh cache key.
|
|
322518
|
+
`);
|
|
322519
|
+
},
|
|
322413
322520
|
inspectInstall: inspectGlobalOmniusInstall
|
|
322414
322521
|
});
|
|
322415
322522
|
throwIfCancelled();
|
|
@@ -322476,7 +322583,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
|
|
|
322476
322583
|
throwIfCancelled();
|
|
322477
322584
|
const installer = dependencies.install ?? installGlobalPackageStreaming;
|
|
322478
322585
|
for (let attempt = 1; attempt <= 2; attempt++) {
|
|
322479
|
-
state = await transition(state, { installer_attempt: attempt }, paths);
|
|
322586
|
+
state = await transition(state, { installer_attempt: attempt, installer_settled: void 0, installer_exit_code: void 0, installer_process_group: void 0 }, paths);
|
|
322480
322587
|
await prepared?.assertArchiveUnchanged();
|
|
322481
322588
|
throwIfCancelled();
|
|
322482
322589
|
installStarted = true;
|
|
@@ -322566,6 +322673,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
|
|
|
322566
322673
|
windowMs: stabilityWindowMs,
|
|
322567
322674
|
intervalMs: Math.min(500, stabilityWindowMs),
|
|
322568
322675
|
graceMs: Math.min(6e3, stabilityWindowMs),
|
|
322676
|
+
blackoutRecovery: dependencies.stabilityBlackoutRecovery,
|
|
322569
322677
|
signal: dependencies.signal
|
|
322570
322678
|
});
|
|
322571
322679
|
throwIfCancelled();
|
|
@@ -322573,7 +322681,8 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
|
|
|
322573
322681
|
reason: stability.reason,
|
|
322574
322682
|
observations: stability.observations,
|
|
322575
322683
|
misses: stability.misses,
|
|
322576
|
-
elapsed_ms: stability.elapsedMs
|
|
322684
|
+
elapsed_ms: stability.elapsedMs,
|
|
322685
|
+
...stability.recoveredFromBlackout ? { recovered_from_blackout: true } : {}
|
|
322577
322686
|
} }, paths);
|
|
322578
322687
|
if (!stability.ok) {
|
|
322579
322688
|
throw new Error(`The updated daemon did not stay up with a stable identity after restart (${stability.reason}, ${stability.observations} observations, ${stability.misses} unavailable).`);
|
|
@@ -322808,6 +322917,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
|
|
|
322808
322917
|
failure_phase: failurePhase,
|
|
322809
322918
|
completed_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
322810
322919
|
...deferred ? { automatic_deferred: true } : {},
|
|
322920
|
+
...!cancelled && failurePhase === "staging" && error51 instanceof UpdateArchiveUnavailableError ? { failure_code: error51.code } : {},
|
|
322811
322921
|
error: cancelled && !deferred ? installerSettled ? "Update cancelled after the owned operation settled." : "Update cancellation requested; owned installer shutdown could not be confirmed." : message,
|
|
322812
322922
|
remediation: [
|
|
322813
322923
|
packageRecoveryNote,
|
|
@@ -323545,7 +323655,6 @@ var SAME_TASK_REPLACE_WINDOW_MS = 12 * 60 * 60 * 1e3;
|
|
|
323545
323655
|
|
|
323546
323656
|
// packages/cli/src/service-auto-update.ts
|
|
323547
323657
|
var SERVICE_AUTO_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
|
|
323548
|
-
var FAILED_TARGET_RETRY_MS = 24 * 60 * 60 * 1e3;
|
|
323549
323658
|
|
|
323550
323659
|
// packages/cli/src/tray.ts
|
|
323551
323660
|
var DEFAULT_ENDPOINT = "http://127.0.0.1:11435";
|
|
@@ -323923,8 +324032,10 @@ async function runUpdateWorkerRuntime(state, paths, endpoint) {
|
|
|
323923
324032
|
} : null;
|
|
323924
324033
|
},
|
|
323925
324034
|
restartTray: trayWasRunning ? (executable) => restartTrayWithInstalledExecutable(executable, endpoint, previousTray, trayUnit) : void 0,
|
|
323926
|
-
// A daemon
|
|
324035
|
+
// A responsive daemon passes after 15s. A boot that stops answering
|
|
324036
|
+
// may use the longer budget only by confirming the same exact identity.
|
|
323927
324037
|
stabilityWindowMs: 15e3,
|
|
324038
|
+
stabilityBlackoutRecovery: { deadlineMs: 6e4, confirmationMs: 3e3 },
|
|
323928
324039
|
signal: cancellation.signal
|
|
323929
324040
|
},
|
|
323930
324041
|
paths
|
package/dist/update-worker.js
CHANGED
|
@@ -85,6 +85,9 @@ function compareOmniusVersions(left, right) {
|
|
|
85
85
|
return 0;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
// packages/cli/src/update-package-preflight.ts
|
|
89
|
+
var MAX_RECOVERY_ARCHIVE_BYTES = 256 * 1024 * 1024;
|
|
90
|
+
|
|
88
91
|
// packages/cli/src/update-service.ts
|
|
89
92
|
var UpdateOwnershipBusyError = class extends Error {
|
|
90
93
|
};
|
package/docs/DISCOVERY.json
CHANGED
|
@@ -51913,6 +51913,42 @@
|
|
|
51913
51913
|
}
|
|
51914
51914
|
]
|
|
51915
51915
|
},
|
|
51916
|
+
{
|
|
51917
|
+
"id": "guide.work-orders-wo-omnius-update-archive-propagation-20261125-uppercase",
|
|
51918
|
+
"kind": "guide",
|
|
51919
|
+
"title": "Keep updates live during npm archive propagation",
|
|
51920
|
+
"summary": "The daemon on 1.0.994 accepted an update to 1.0.995 at 3:11:37 p.m. local time. Its worker failed during staging about three seconds later. npm already advertised the exact version and integrity, but its canonical archive URL returned a cached HTTP 404 with a five-minute lifetime. The same registry returned the correct bytes when the request bypassed that ca",
|
|
51921
|
+
"keywords": [
|
|
51922
|
+
"work",
|
|
51923
|
+
"orders",
|
|
51924
|
+
"WO",
|
|
51925
|
+
"omnius",
|
|
51926
|
+
"update",
|
|
51927
|
+
"archive",
|
|
51928
|
+
"propagation",
|
|
51929
|
+
"20261125",
|
|
51930
|
+
"md"
|
|
51931
|
+
],
|
|
51932
|
+
"maturity": "internal",
|
|
51933
|
+
"audiences": [
|
|
51934
|
+
"maintainer",
|
|
51935
|
+
"large-context-agent"
|
|
51936
|
+
],
|
|
51937
|
+
"layer": "documentation",
|
|
51938
|
+
"interfaces": [
|
|
51939
|
+
{
|
|
51940
|
+
"type": "file",
|
|
51941
|
+
"target": "docs/work-orders/WO-omnius-update-archive-propagation-20261125.md"
|
|
51942
|
+
}
|
|
51943
|
+
],
|
|
51944
|
+
"references": [
|
|
51945
|
+
{
|
|
51946
|
+
"type": "documentation",
|
|
51947
|
+
"target": "docs/work-orders/WO-omnius-update-archive-propagation-20261125.md",
|
|
51948
|
+
"relation": "canonical-artifact"
|
|
51949
|
+
}
|
|
51950
|
+
]
|
|
51951
|
+
},
|
|
51916
51952
|
{
|
|
51917
51953
|
"id": "guide.work-orders-wo-opencode-all-free-models-20261012-uppercase",
|
|
51918
51954
|
"kind": "guide",
|
|
@@ -52422,6 +52458,42 @@
|
|
|
52422
52458
|
}
|
|
52423
52459
|
]
|
|
52424
52460
|
},
|
|
52461
|
+
{
|
|
52462
|
+
"id": "guide.work-orders-wo-telegram-quick-reply-settlement-20261125-uppercase",
|
|
52463
|
+
"kind": "guide",
|
|
52464
|
+
"title": "Telegram quick-reply settlement",
|
|
52465
|
+
"summary": "NOCLIP OFFICIAL message 21291 explicitly addressed the bot and asked for the KV-cache formula mentioned in message 21290. The workspace admitted both messages. Four inference rounds each produced a draft, a first review that requested continuation, and two unsuccessful continuation reviews. The final intake transition recorded reviewcontractrejected. The del",
|
|
52466
|
+
"keywords": [
|
|
52467
|
+
"work",
|
|
52468
|
+
"orders",
|
|
52469
|
+
"WO",
|
|
52470
|
+
"telegram",
|
|
52471
|
+
"quick",
|
|
52472
|
+
"reply",
|
|
52473
|
+
"settlement",
|
|
52474
|
+
"20261125",
|
|
52475
|
+
"md"
|
|
52476
|
+
],
|
|
52477
|
+
"maturity": "internal",
|
|
52478
|
+
"audiences": [
|
|
52479
|
+
"maintainer",
|
|
52480
|
+
"large-context-agent"
|
|
52481
|
+
],
|
|
52482
|
+
"layer": "documentation",
|
|
52483
|
+
"interfaces": [
|
|
52484
|
+
{
|
|
52485
|
+
"type": "file",
|
|
52486
|
+
"target": "docs/work-orders/WO-telegram-quick-reply-settlement-20261125.md"
|
|
52487
|
+
}
|
|
52488
|
+
],
|
|
52489
|
+
"references": [
|
|
52490
|
+
{
|
|
52491
|
+
"type": "documentation",
|
|
52492
|
+
"target": "docs/work-orders/WO-telegram-quick-reply-settlement-20261125.md",
|
|
52493
|
+
"relation": "canonical-artifact"
|
|
52494
|
+
}
|
|
52495
|
+
]
|
|
52496
|
+
},
|
|
52425
52497
|
{
|
|
52426
52498
|
"id": "guide.work-orders-wo-telegram-reply-lifecycle-20261013-uppercase",
|
|
52427
52499
|
"kind": "guide",
|
package/docs/DISCOVERY.md
CHANGED
|
@@ -1010,6 +1010,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
|
|
|
1010
1010
|
| `guide.work-orders-wo-local-admission-provider-access-20261014-uppercase` | Local admission and remote access recovery — 2026-10-14 | Status: local admission/access classification repair verified and delivered in 539cf00e; TUI/Runner producers verified and committed in a3fd9bab. Remote public access was subsequently diagnosed and repaired in genuine-client validation. Do not reset operator configuration or restart the live Telegram/TUI session as part of validation. |
|
|
1011
1011
|
| `guide.work-orders-wo-native-agent-collaboration-20261124-uppercase` | Native parent and worker collaboration | Live admin DM qualification on e7d2a638 verified that one parent launched two foreground children, received independently committed results, and delivered a source-backed answer. This work adds a native message exchange with explicit custody at each step of that dependency. |
|
|
1012
1012
|
| `guide.work-orders-wo-native-transport-fresh-install-20261012-uppercase` | Native transport failure in the fresh npm installation gate | Status: implemented and verified. Publication remains with the user. |
|
|
1013
|
+
| `guide.work-orders-wo-omnius-update-archive-propagation-20261125-uppercase` | Keep updates live during npm archive propagation | The daemon on 1.0.994 accepted an update to 1.0.995 at 3:11:37 p.m. local time. Its worker failed during staging about three seconds later. npm already advertised the exact version and integrity, but its canonical archive URL returned a cached HTTP 404 with a five-minute lifetime. The same registry returned the correct bytes when the request bypassed that ca |
|
|
1013
1014
|
| `guide.work-orders-wo-opencode-all-free-models-20261012-uppercase` | All OpenCode free models in the fallback cascade | Status: implemented and verified. Publication and runtime replacement remain with the user. The subsequent live-reply fixes are tracked separately in fallback reply contracts. The original preferred-first/provider-fairness ordering recorded below has been superseded by benchmark-informed priority at the user's subsequent request. |
|
|
1014
1015
|
| `guide.work-orders-wo-opencode-production-compatibility-20261012-uppercase` | OpenCode production request compatibility | Status: implemented and verified. Telegram presentation is also completed. Publication and active-runtime restart remain with the operator. Step's native attention-format compatibility remains unverified after a provider limit; the working cascade can continue to other compatible models. |
|
|
1015
1016
|
| `guide.work-orders-wo-primary-checkout-fallback-delivery-20261012-uppercase` | Primary checkout delivery and remote output capacity | Status: implementation complete and verified in the primary checkout. Publication remains with the user. |
|
|
@@ -1024,6 +1025,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
|
|
|
1024
1025
|
| `guide.work-orders-wo-telegram-progress-presentation-20261012-uppercase` | Telegram progress presentation | Status: implemented and verified, resumed by the user with instructions to complete, commit and push. The evidenced OpenCode compatibility failure is handled in the current repair order. |
|
|
1025
1026
|
| `guide.work-orders-wo-telegram-public-research-stream-progress-20261013-uppercase` | Public research stream recovery and meaningful progress | Status: repaired and verified in the isolated installed runtime. Publication and the operator's bot restart are separate. |
|
|
1026
1027
|
| `guide.work-orders-wo-telegram-quick-reply-and-admin-progress-20261125-uppercase` | Public Telegram replies and admin task progress | On the running 1.0.992, NOCLIP inputs 21256 and 21258 received the same copied history line in messages 21257 and 21259. Both used the regular quick-chat route and completed fresh router, draft, and review calls. Telegram acknowledged both final sends. The prior copy guard was limited to active-task interactive replies. The quick review accepted valid JSON a |
|
|
1028
|
+
| `guide.work-orders-wo-telegram-quick-reply-settlement-20261125-uppercase` | Telegram quick-reply settlement | NOCLIP OFFICIAL message 21291 explicitly addressed the bot and asked for the KV-cache formula mentioned in message 21290. The workspace admitted both messages. Four inference rounds each produced a draft, a first review that requested continuation, and two unsuccessful continuation reviews. The final intake transition recorded reviewcontractrejected. The del |
|
|
1027
1029
|
| `guide.work-orders-wo-telegram-reply-lifecycle-20261013-uppercase` | Telegram reply lifecycle | Status: implemented and verified. The built-in-model/startup and multi-model live acceptance work continues under WO-built-in-free-model-startup-20261012.md. |
|
|
1028
1030
|
| `guide.work-orders-wo-telegram-retained-source-handoff-20261013-uppercase` | Recover accepted Telegram drafts without restarting completed work | Status: implementation and installed-package live verification complete. Follow-up to the Case Theory stall on installed Omnius 1.0.854, PID 161677, running from telegramtest. Publication and bot restart remain operator-owned. |
|
|
1029
1031
|
| `guide.work-orders-wo-telegram-unavailable-review-presentation-20261012-uppercase` | Telegram reply presentation when an auxiliary review is unavailable | Status: implemented and verified. Publication and runtime replacement remain with the user. |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Keep updates live during npm archive propagation
|
|
2
|
+
|
|
3
|
+
The daemon on 1.0.994 accepted an update to 1.0.995 at 3:11:37 p.m. local time. Its worker failed during staging about three seconds later. npm already advertised the exact version and integrity, but its canonical archive URL returned a cached HTTP 404 with a five-minute lifetime. The same registry returned the correct bytes when the request bypassed that cache entry. The worker never reached global installation, and the daemon stayed healthy on 1.0.994.
|
|
4
|
+
|
|
5
|
+
The publisher had treated matching registry metadata as release readiness. The daemon and tray also applied the same 24-hour cooldown to staging failures and failures that could have changed the installed package.
|
|
6
|
+
|
|
7
|
+
## Acceptance checks
|
|
8
|
+
|
|
9
|
+
- [x] The publisher uploads a staged version and checks the exact canonical archive bytes before advancing `latest`. If staging verification stops after an accepted upload, a later invocation leaves that immutable version intact.
|
|
10
|
+
- [x] The update worker can recover an exact archive from a stale 404 without weakening registry, integrity, source-revision, or cancellation checks.
|
|
11
|
+
- [x] Retry failures on the regular schedule without a failure cooldown. Give a download-only archive miss one extra service check at the next minute. Honor manual mode, explicit cancellation, rollback and unresolved installer recovery.
|
|
12
|
+
- [x] Test staging, retry admission, cancellation, and normal update-worker behavior.
|
|
13
|
+
- [x] Publish the verified package through `scripts/publish-omnius.sh --yes`, and match an independent npm download to the committed revision and the staged SHA-512.
|
|
14
|
+
- [x] Confirm the daemon's installed and serving versions after the rollout.
|
|
15
|
+
- [x] Coalesce filesystem watcher refreshes, verify loopback health independently of provider configuration, and require fresh same-boot health after a temporary outage.
|
|
16
|
+
- [ ] Run the daemon health check against the new npm installation before publishing the follow-up. Verify the live CLI, daemon and tray after rollout.
|
|
17
|
+
|
|
18
|
+
## Progress
|
|
19
|
+
|
|
20
|
+
The loopback registry tests exercised both a normal `npm pack` and a cached canonical 404 with a successful SHA-512-verified fetch. Detached worker tests verified retry admission under lock. The updater, publisher, and Telegram quick-chat regression suites passed 232 tests. CLI typechecking passed.
|
|
21
|
+
|
|
22
|
+
npm accepted 1.0.996 under `omnius-staged` at 3:44:52 p.m. The publisher verified the canonical archive at 3:51:14 p.m. and confirmed `latest` at 3:51:23 p.m. An independent `npm pack` matched the packed artifact byte for byte and verified source `69c353218d09fae95c79f14800bffecd1b53d983`.
|
|
23
|
+
|
|
24
|
+
The production daemon automatically started 1.0.994 → 1.0.996 at 3:52:11 p.m. in operation `44a792cc-e186-484e-8734-c435273af535`. It staged and installed the exact archive and the new daemon answered with the expected boot identity. Later health probes timed out during the 21-second stability window. The worker restored 1.0.994 and the tray. The coordinated retry `f7e473e5-d6e2-4c11-a343-2c6b6cc312b4` completed at 4:04:47 p.m. and verified the same 1.0.996 archive, installed CLI, serving daemon, 23 matching stability probes with zero misses, and live tray.
|
|
25
|
+
|
|
26
|
+
The first rollout's daemon answered early health requests, then stopped serving all requests for about 25 seconds while the process stayed alive. A 60-second CPU profile from the successful retry attributed 41.44 seconds to `SharedStateObserver.refreshWatches()`. Most samples were in synchronous filesystem metadata reads from the file watcher callback. The callback rescanned all registered project roots after individual file events, including events that had no relevant change to publish. The periodic comparison could also trigger a nested full scan and hide other changes encountered during the outer comparison.
|
|
27
|
+
|
|
28
|
+
The follow-up coalesces watcher refreshes, keeps provider credential reads and config migration out of `/health`, and allows up to 60 seconds to verify the same exact daemon boot after a temporary response outage. Recovery requires three consecutive seconds of matching health. Normal responsive startup keeps the 15-second stability window. The publish script now starts the installed launcher and measures real loopback health before upload.
|
|
29
|
+
|
|
30
|
+
The follow-up passed 188 focused tests and CLI typechecking. The daemon-health publish check passed against a fresh install of the already-published 1.0.996 archive. The same check is required for the follow-up tarball before it can enter the staging tag.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Telegram quick-reply settlement
|
|
2
|
+
|
|
3
|
+
NOCLIP OFFICIAL message 21291 explicitly addressed the bot and asked for the KV-cache formula mentioned in message 21290. The workspace admitted both messages. Four inference rounds each produced a draft, a first review that requested continuation, and two unsuccessful continuation reviews. The final intake transition recorded `review_contract_rejected`. The delivery ledger contained no attempt for that message.
|
|
4
|
+
|
|
5
|
+
The review flow proceeded from a reply review into a continuation-only schema. A later model response could no longer settle the original request with a direct answer. The retry scheduler replayed that same branch, and the managed worker discarded the detailed validation codes with its absent terminal callback.
|
|
6
|
+
|
|
7
|
+
## Acceptance checks
|
|
8
|
+
|
|
9
|
+
- [x] A public mention after ordinary same-thread context can recover from a mistaken continuation decision and deliver one grounded, reviewed direct answer.
|
|
10
|
+
- [x] A valid continuation keeps the existing plan validation, delivery ownership, and action authority.
|
|
11
|
+
- [x] Exhausted review for an explicit current public request settles with one truthful host-authored reply when Telegram accepts the send.
|
|
12
|
+
- [x] Ambient input, superseded ownership, and uncertain sends never cause an extra public response or replay.
|
|
13
|
+
- [x] Internal recovery receipts retain bounded validation codes and the original message identity. The group sees plain-language status.
|
|
14
|
+
- [x] Build the CLI and run the public Telegram Bot API fixture plus focused review, recovery, and delivery tests.
|
|
15
|
+
|
|
16
|
+
## Delivery
|
|
17
|
+
|
|
18
|
+
The continuation review now has both outcomes in its schema. The reviewer sees the full bounded thread during reconsideration. If it asks for a revision, a fresh draft is generated once and independently reviewed. A valid action continuation still uses the existing evidence and permission checks.
|
|
19
|
+
|
|
20
|
+
If review exhausts its recovery budget, the workspace can post one host-authored status to the exact explicit message. An exclusive durable send claim prevents duplicate status messages. The intake retains its failed state and the validation codes.
|
|
21
|
+
|
|
22
|
+
Verified through the workspace worker with a loopback Bot API and scripted model responses. The fixture covers the original formula pair, a direct answer after an unnecessary continuation, and the retained status after repeated invalid reviews. It replays the native update to verify deduplication.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.997",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.997",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.997",
|
|
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/library.js",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
},
|
|
157
157
|
"readme": "# Omnius\n\nOmnius is a local-first runtime for AI-assisted software development and generative work. It brings a terminal interface, browser dashboard, automation API, agent execution, memory, and media tools into one workspace-oriented system.\n\nOmnius connects to local and remote model providers. Projects retain their own sessions and generated artifacts, while model weights and runtime dependencies are shared across workspaces.\n\n[](https://www.npmjs.com/package/omnius)\n[](https://nodejs.org/)\n[](https://creativecommons.org/licenses/by-nc/4.0/)\n\n## Get started\n\nRequires Node.js 22 or newer and npm 10 or newer.\n\n```bash\nnpm install -g omnius\nomnius\n```\n\nUse `/setup` to configure inference and `/help` to explore terminal commands. See [installation](docs/getting-started/install.md), [first run](docs/getting-started/first-run.md), and [model providers](docs/getting-started/model-providers.md) for setup details.\n\nTo open the browser dashboard and API:\n\n```bash\nomnius serve\n```\n\nThe default dashboard address is `http://127.0.0.1:11435/`, with interactive API documentation at `/docs`.\n\n## System overview\n\n| Layer | Responsibility |\n| --- | --- |\n| Interfaces | Terminal sessions, browser workspaces, command-line automation, and system tray integration |\n| Agent runtime | Task execution, tool use, delegated agents, verification, and resumable work |\n| Inference | Model selection and routing across local servers, configured providers, and peers |\n| Tools | Files, code, shell commands, web access, browser automation, and extensible capabilities |\n| Memory and retrieval | Project context, indexed material, persistent memory, and targeted retrieval |\n| Media and voice | Image, video, audio, music, speech recognition, and speech synthesis |\n| Integration | REST APIs, events, MCP, Telegram, and shared inference services |\n\nThe [architecture overview](docs/architecture/overview.md) and [agent system map](docs/architecture/agent-system-map.md) describe the runtime boundaries and state ownership.\n\n## Workspaces and sessions\n\nA project provides the working directory for files, tools, conversations, and generated media. Terminal and browser interfaces expose saved sessions and project artifacts. Operational details remain available alongside the conversation without replacing its authored content.\n\nProject state lives under `.omnius/`. Shared model weights and runtime dependencies are managed separately from project-generated media. See [terminal workflows](docs/guides/tui-workflows.md), the [dashboard guide](docs/guides/dashboard.md), and [media generation](docs/guides/media-generation.md).\n\n## Automation and discovery\n\nOmnius can run a task directly from the command line:\n\n```bash\nomnius \"inspect this repository and explain its main entrypoints\"\n```\n\nAgents and integrations can discover capabilities through the CLI or daemon:\n\n```bash\nomnius discover \"bring your own inference\"\nomnius show layer.orchestration\nomnius capabilities --json\n```\n\nThe daemon provides stateful chat, agent execution, tools, memory, media, and OpenAI/Ollama-compatible inference interfaces. Begin with [agent integration](docs/guides/agent-integration.md) and the [discovery guide](docs/DISCOVERY.md).\n\n<!-- BEGIN GENERATED REST INVENTORY -->\nThe complete API inventory is maintained in the [REST reference](docs/reference/rest-api.md). The running daemon serves its machine-readable contract at `/openapi.json`.\n<!-- END GENERATED REST INVENTORY -->\n\n## Documentation\n\n| Topic | Guide |\n| --- | --- |\n| Inference configuration | [Provider protocols and keys](docs/guides/bring-your-own-inference.md) |\n| Commands and tools | [Slash commands](docs/reference/slash-commands.md), [tool discovery](docs/guides/tools-and-web-search.md) |\n| Agent coordination | [Adjudication](docs/ADJUDICATION.md), [agent system map](docs/architecture/agent-system-map.md) |\n| Browser interface | [Dashboard](docs/guides/dashboard.md) |\n| Voice and media | [Realtime voice](docs/guides/realtime.md), [media generation](docs/guides/media-generation.md), [Omni analysis](docs/reference/omni-analysis.md) |\n| Connected services | [Telegram](docs/guides/telegram.md), [system tray](docs/guides/system-tray.md), [sponsor and peer inference](docs/guides/sponsor-and-cohere.md) |\n| Runtime administration | [Runtime hygiene](docs/operations/runtime-hygiene.md), [access control](docs/operations/security-and-remote-access.md) |\n| Agent-readable documentation | [Documentation index](docs/agent-memory/INDEX.md) |\n\n## Development\n\nThe repository is a pnpm workspace. `packages/cli` contains the interfaces and daemon; `packages/orchestrator` coordinates agent execution; `packages/execution` provides tools. Supporting packages cover memory, indexing, retrieval, schemas, prompts, and backend integration.\n\nRequires pnpm 9 or newer.\n\n```bash\npnpm install\npnpm -r build\npnpm docs:check\n```\n\nPublishing uses the generated `publish/` package. The build, verification, and release procedure is documented in [AGENTS.md](AGENTS.md).\n\n## License\n\nOmnius is released under [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/) for non-commercial use. Commercial use, redistribution, hosted services, and enterprise deployment require a commercial license.\n",
|
|
158
158
|
"omniusBuild": {
|
|
159
|
-
"sourceRevision": "
|
|
159
|
+
"sourceRevision": "7a6b56488896791d86eeb74648d47e176297745a",
|
|
160
160
|
"sourceDirtyAtBuildStart": false
|
|
161
161
|
}
|
|
162
162
|
}
|