omnius 1.0.996 → 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 CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 43651409 bytes
4
- sha256: 4098e81f82593171f2ca94f3d4ea95b3a47287025b71bc3fb85c88d7f4d1f63d
3
+ size: 43652613 bytes
4
+ sha256: 0ae837d465bfd1bac7ede764a2725eaed53a7ff39ce7a134c1e63d32662f8bde
@@ -321692,16 +321692,24 @@ async function verifyUpdateDaemonStability({
321692
321692
  windowMs,
321693
321693
  intervalMs = 500,
321694
321694
  graceMs = 5e3,
321695
+ blackoutRecovery,
321695
321696
  signal
321696
321697
  }) {
321697
321698
  signal?.throwIfAborted();
321698
321699
  if (![windowMs, intervalMs, graceMs].every(Number.isSafeInteger) || windowMs < 0 || intervalMs < 1 || graceMs < 0)
321699
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");
321700
321703
  const started = performance.now();
321701
321704
  const windowEnd = started + windowMs;
321702
- const deadline = windowEnd + graceMs;
321705
+ const ordinaryDeadline = windowEnd + graceMs;
321706
+ const recoveryDeadline = blackoutRecovery ? started + blackoutRecovery.deadlineMs : ordinaryDeadline;
321707
+ const blackoutThresholdMs = Math.max(graceMs, 2 * intervalMs);
321703
321708
  let last = initial;
321704
321709
  let bootId = initial.bootId || void 0;
321710
+ let lastVerifiedAt = started;
321711
+ let confirmationStartedAt;
321712
+ let recovering = false;
321705
321713
  let observations = 0;
321706
321714
  let misses = 0;
321707
321715
  const finish = (reason) => ({
@@ -321710,33 +321718,46 @@ async function verifyUpdateDaemonStability({
321710
321718
  elapsedMs: Math.round(performance.now() - started),
321711
321719
  observations,
321712
321720
  misses,
321713
- last
321721
+ last,
321722
+ ...reason === "stable" && recovering ? { recoveredFromBlackout: true } : {}
321714
321723
  });
321715
- if (!expectedHash || initial.bootVersion !== expectedVersion || initial.bootPackageHash !== expectedHash)
321724
+ if (!expectedHash || initial.bootVersion !== expectedVersion || initial.bootPackageHash !== expectedHash || blackoutRecovery && !bootId)
321716
321725
  return finish("initial_identity_unverified");
321717
321726
  if (windowMs === 0) return finish("stable");
321718
321727
  for (; ; ) {
321719
321728
  const now = performance.now();
321729
+ const deadline = recovering ? recoveryDeadline : ordinaryDeadline;
321720
321730
  const nextBoundary = now < windowEnd ? windowEnd : deadline;
321721
321731
  if (now < nextBoundary) await waitForObservation(Math.min(intervalMs, nextBoundary - now), signal);
321722
321732
  const observed = await waitForObservation(Math.max(0, Math.min(PROBE_TIMEOUT_MS, deadline - performance.now())), signal, observe);
321723
321733
  observations++;
321734
+ const observedAt = performance.now();
321735
+ let matching = false;
321724
321736
  if (observed) {
321725
321737
  last = observed;
321726
321738
  if (observed.bootVersion !== expectedVersion) return finish("version_changed");
321727
321739
  if (observed.bootPackageHash && observed.bootPackageHash !== expectedHash) return finish("package_changed");
321728
321740
  if (bootId && observed.bootId && observed.bootId !== bootId) return finish("process_changed");
321729
- if (observed.bootPackageHash === expectedHash && (!bootId || observed.bootId)) {
321730
- bootId ??= observed.bootId || void 0;
321731
- const verifiedAt = performance.now();
321732
- if (verifiedAt >= windowEnd && verifiedAt <= deadline) return finish("stable");
321733
- } else {
321734
- misses++;
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");
321735
321754
  }
321736
321755
  } else {
321737
321756
  misses++;
321757
+ confirmationStartedAt = void 0;
321738
321758
  }
321739
- if (performance.now() >= deadline) return finish("unreachable");
321759
+ const activeDeadline = recovering ? recoveryDeadline : ordinaryDeadline;
321760
+ if (observedAt >= activeDeadline) return finish("unreachable");
321740
321761
  }
321741
321762
  }
321742
321763
 
@@ -322652,6 +322673,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
322652
322673
  windowMs: stabilityWindowMs,
322653
322674
  intervalMs: Math.min(500, stabilityWindowMs),
322654
322675
  graceMs: Math.min(6e3, stabilityWindowMs),
322676
+ blackoutRecovery: dependencies.stabilityBlackoutRecovery,
322655
322677
  signal: dependencies.signal
322656
322678
  });
322657
322679
  throwIfCancelled();
@@ -322659,7 +322681,8 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
322659
322681
  reason: stability.reason,
322660
322682
  observations: stability.observations,
322661
322683
  misses: stability.misses,
322662
- elapsed_ms: stability.elapsedMs
322684
+ elapsed_ms: stability.elapsedMs,
322685
+ ...stability.recoveredFromBlackout ? { recovered_from_blackout: true } : {}
322663
322686
  } }, paths);
322664
322687
  if (!stability.ok) {
322665
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).`);
@@ -324009,8 +324032,10 @@ async function runUpdateWorkerRuntime(state, paths, endpoint) {
324009
324032
  } : null;
324010
324033
  },
324011
324034
  restartTray: trayWasRunning ? (executable) => restartTrayWithInstalledExecutable(executable, endpoint, previousTray, trayUnit) : void 0,
324012
- // A daemon that boots but crashes shortly after is an update failure.
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.
324013
324037
  stabilityWindowMs: 15e3,
324038
+ stabilityBlackoutRecovery: { deadlineMs: 6e4, confirmationMs: 3e3 },
324014
324039
  signal: cancellation.signal
324015
324040
  },
324016
324041
  paths
@@ -10,9 +10,21 @@ The publisher had treated matching registry metadata as release readiness. The d
10
10
  - [x] The update worker can recover an exact archive from a stale 404 without weakening registry, integrity, source-revision, or cancellation checks.
11
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
12
  - [x] Test staging, retry admission, cancellation, and normal update-worker behavior.
13
- - [ ] 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
- - [ ] Confirm the daemon's installed and serving versions after the rollout.
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.
15
17
 
16
18
  ## Progress
17
19
 
18
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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.996",
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.996",
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.996",
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[![npm](https://img.shields.io/npm/v/omnius.svg)](https://www.npmjs.com/package/omnius)\n[![Node](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)\n[![License](https://img.shields.io/badge/license-CC--BY--NC--4.0-blue.svg)](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": "69c353218d09fae95c79f14800bffecd1b53d983",
159
+ "sourceRevision": "7a6b56488896791d86eeb74648d47e176297745a",
160
160
  "sourceDirtyAtBuildStart": false
161
161
  }
162
162
  }