omnius 1.0.994 → 1.0.996

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.
@@ -658,6 +658,11 @@ export interface AgenticRunnerOptions {
658
658
  * must select this from an explicit route decision, never task-text keywords.
659
659
  */
660
660
  interactionProfile?: "task" | "conversation";
661
+ /** Recent role-tagged history for a TUI chat turn with no tool authority. */
662
+ directConversationHistory?: ReadonlyArray<{
663
+ readonly role: "user" | "assistant";
664
+ readonly content: string;
665
+ }>;
661
666
  /** Inference capacity class selected by the trusted calling surface. */
662
667
  workloadClass?: "foreground" | "interactive-control" | "background";
663
668
  /** Override the process-wide inference pressure authority, mainly for tests. */
@@ -1760,6 +1765,7 @@ export declare function computeTodoReminder(input: TodoReminderInput): TodoRemin
1760
1765
  export declare class AgenticRunner {
1761
1766
  #private;
1762
1767
  private readonly _readNativeInteractiveDecision?;
1768
+ private readonly _directConversationHistory?;
1763
1769
  private readonly _readNativeProviderDeliveryAck?;
1764
1770
  private readonly _nativeInteractiveDecisions;
1765
1771
  private readonly _issuedSteeringReplyPackets;
@@ -5447,10 +5453,13 @@ export declare class OllamaAgenticBackend implements AgenticBackend {
5447
5453
  private apiKey;
5448
5454
  thinking: boolean;
5449
5455
  private _knownTransportContextCapability?;
5456
+ private _limitContextToResidentModel;
5450
5457
  private _knownTransportContextPolicyScope?;
5451
5458
  private _remoteFallback?;
5452
5459
  private _inferenceFallbackApprovalHandler?;
5453
5460
  private _inferenceRouteLifecycleHandler?;
5461
+ /** Standalone TUI requests may reuse context that Ollama has already allocated. */
5462
+ limitContextToResidentModel(): void;
5454
5463
  setInferenceRouteLifecycleHandler(handler: ((receipt: InferenceRouteLifecycleReceipt) => void) | undefined): void;
5455
5464
  setInferenceFallbackApprovalHandler(handler: (receipt: InferenceFallbackApprovalReceipt) => Promise<boolean>): void;
5456
5465
  private remoteFallback;
@@ -21,13 +21,15 @@ export interface OllamaTransportContextCapability {
21
21
  readonly limitReason?: string;
22
22
  readonly provenance?: "host_discovery" | "live_discovery";
23
23
  }
24
+ /** Read the context already allocated for this exact model. This never loads a model. */
25
+ export declare function queryOllamaResidentContext(baseUrl: string, model: string, apiKey?: string, signal?: AbortSignal): Promise<number | undefined>;
24
26
  /** Managed automatic capacity replaces stale client defaults. Legacy policy
25
27
  * remains a ceiling on an explicitly configured client window. */
26
28
  export declare function resolveOllamaContextWindow(configured: number | undefined, capability: OllamaTransportContextCapability | undefined): number | undefined;
27
29
  /** Refreshes may increase capacity only within the same verified model/endpoint scope. */
28
30
  export declare function refreshOllamaTransportContextCapability(previous: OllamaTransportContextCapability | undefined, current: OllamaTransportContextCapability | undefined): OllamaTransportContextCapability | undefined;
29
31
  /** Read-only, authenticated metadata negotiation; never admits or loads a model. */
30
- export declare function queryOllamaTransportContextCapability(baseUrl: string, model: string, modelMaximumContextTokens: number, apiKey?: string, constraints?: OllamaContextConstraintHeaders): Promise<OllamaTransportContextCapability | undefined>;
32
+ export declare function queryOllamaTransportContextCapability(baseUrl: string, model: string, modelMaximumContextTokens: number | undefined, apiKey?: string, constraints?: OllamaContextConstraintHeaders): Promise<OllamaTransportContextCapability | undefined>;
31
33
  /** Read only endpoint-bound host discovery. Ownership of a backend/private
32
34
  * lane does not mean that lane applies the public proxy's request clamp. */
33
35
  export declare function readOllamaTransportContextCapability(baseUrl: string, model: string, discoveryPath?: string, apiKey?: string, constraints?: OllamaContextConstraintHeaders): OllamaTransportContextCapability | undefined;
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: 43630662 bytes
4
- sha256: 778737cd978d62c4b59ba43945a25173566c8a9264672ada310f816413e9c0a5
3
+ size: 43651409 bytes
4
+ sha256: 4098e81f82593171f2ca94f3d4ea95b3a47287025b71bc3fb85c88d7f4d1f63d
package/dist/library.js CHANGED
@@ -396030,6 +396030,39 @@ function endpoint(value) {
396030
396030
  return void 0;
396031
396031
  }
396032
396032
  }
396033
+ async function queryOllamaResidentContext(baseUrl, model3, apiKey = "", signal) {
396034
+ const selected = endpoint(baseUrl);
396035
+ const normalizeTag = (name) => name.trim().replace(/:latest$/i, "");
396036
+ const key2 = normalizeTag(model3);
396037
+ if (!selected || !key2 || signal?.aborted)
396038
+ return void 0;
396039
+ try {
396040
+ const timeout = AbortSignal.timeout(2500);
396041
+ const url = `${selected.origin}${selected.pathname.replace(/\/+$/, "")}/api/ps`;
396042
+ const response = await fetch(url, {
396043
+ headers: apiKey ? { Authorization: `Bearer ${apiKey}` } : {},
396044
+ redirect: "error",
396045
+ signal: signal ? AbortSignal.any([signal, timeout]) : timeout
396046
+ });
396047
+ if (!response.ok)
396048
+ return void 0;
396049
+ const data = await response.json();
396050
+ if (!Array.isArray(data?.models) || signal?.aborted)
396051
+ return void 0;
396052
+ let limit2;
396053
+ for (const row3 of data.models) {
396054
+ if (!row3 || typeof row3 !== "object" || Array.isArray(row3))
396055
+ continue;
396056
+ const names2 = [row3.name, row3.model].filter((value) => typeof value === "string" && !!value.trim());
396057
+ const context = positiveInteger2(row3.context_length);
396058
+ if (names2.length > 0 && names2.every((name) => normalizeTag(name) === key2) && context !== void 0)
396059
+ limit2 = limit2 === void 0 ? context : Math.min(limit2, context);
396060
+ }
396061
+ return limit2;
396062
+ } catch {
396063
+ return void 0;
396064
+ }
396065
+ }
396033
396066
  function loopback(host2) {
396034
396067
  return host2 === "localhost" || host2 === "127.0.0.1" || host2 === "[::1]" || host2 === "::1";
396035
396068
  }
@@ -396082,7 +396115,7 @@ function capabilityFromDocument(document, requested, model3, discoveryPath, mode
396082
396115
  const automatic = contextPolicy.managed_context_policy === "verified_model_maximum";
396083
396116
  const hardLimit = positiveInteger2(contextPolicy.hard_max_context);
396084
396117
  const globalCeilingOnly = automatic && constrainedHostMirror;
396085
- const proposed = globalCeilingOnly ? hardLimit : automatic ? positiveInteger2(resolution?.context_length) ?? maximum : profileLimit ?? positiveInteger2(contextPolicy.default_max_context);
396118
+ const proposed = globalCeilingOnly ? hardLimit : automatic ? positiveInteger2(resolution?.context_length) ?? (provenance2 === "live_discovery" ? maximum : hardLimit) : profileLimit ?? positiveInteger2(contextPolicy.default_max_context);
396086
396119
  if (!proposed)
396087
396120
  return void 0;
396088
396121
  const limit2 = Math.min(proposed, maximum ?? proposed, hardLimit ?? proposed);
@@ -396123,13 +396156,18 @@ function refreshOllamaTransportContextCapability(previous, current6) {
396123
396156
  async function queryOllamaTransportContextCapability(baseUrl, model3, modelMaximumContextTokens, apiKey = "", constraints = {}) {
396124
396157
  const requested = endpoint(baseUrl);
396125
396158
  const maximum = positiveInteger2(modelMaximumContextTokens);
396126
- if (!requested || !loopback(requested.hostname) || !maximum)
396159
+ if (!requested || !loopback(requested.hostname))
396127
396160
  return void 0;
396128
396161
  const path13 = discoveryFile();
396129
396162
  const headers = constraintHeaders(constraints);
396130
396163
  const key2 = scopeKey2(baseUrl, model3, apiKey, path13, headers);
396131
396164
  const previous = scopedCapabilities.get(key2);
396132
- scopedCapabilities.set(key2, { ...previous, modelMaximumContextTokens: maximum });
396165
+ const lookup = { ...previous, modelMaximumContextTokens: maximum };
396166
+ scopedCapabilities.set(key2, lookup);
396167
+ const excludeUnsupportedDiscovery = () => {
396168
+ if (scopedCapabilities.get(key2) === lookup)
396169
+ scopedCapabilities.set(key2, { modelMaximumContextTokens: maximum, unsupportedLiveDiscovery: true });
396170
+ };
396133
396171
  const discoveryUrl = `${requested.origin}${requested.pathname.replace(/\/+$/, "")}/.well-known/ollama-unify-gpu-negotiator?model=${encodeURIComponent(model3)}`;
396134
396172
  try {
396135
396173
  const response = await fetch(discoveryUrl, {
@@ -396137,12 +396175,20 @@ async function queryOllamaTransportContextCapability(baseUrl, model3, modelMaxim
396137
396175
  redirect: "error",
396138
396176
  signal: AbortSignal.timeout(2500)
396139
396177
  });
396178
+ if ([404, 405, 501].includes(response.status)) {
396179
+ excludeUnsupportedDiscovery();
396180
+ return void 0;
396181
+ }
396140
396182
  if (!response.ok)
396141
396183
  return previous?.capability;
396142
396184
  const current6 = capabilityFromDocument(await response.json(), requested, model3, discoveryUrl, maximum, "live_discovery");
396143
- const capability = refreshOllamaTransportContextCapability(previous?.capability, current6);
396144
- scopedCapabilities.set(key2, { modelMaximumContextTokens: maximum, capability });
396145
- return capability;
396185
+ if (!current6) {
396186
+ excludeUnsupportedDiscovery();
396187
+ return void 0;
396188
+ }
396189
+ if (scopedCapabilities.get(key2) === lookup)
396190
+ scopedCapabilities.set(key2, { modelMaximumContextTokens: maximum, capability: current6 });
396191
+ return current6;
396146
396192
  } catch {
396147
396193
  return previous?.capability;
396148
396194
  }
@@ -396153,6 +396199,8 @@ function readOllamaTransportContextCapability(baseUrl, model3, discoveryPath = d
396153
396199
  return void 0;
396154
396200
  const headers = constraintHeaders(constraints);
396155
396201
  const scoped = scopedCapabilities.get(scopeKey2(baseUrl, model3, apiKey, discoveryPath, headers));
396202
+ if (scoped?.unsupportedLiveDiscovery)
396203
+ return void 0;
396156
396204
  if (scoped?.capability)
396157
396205
  return scoped.capability;
396158
396206
  try {
@@ -414716,6 +414764,7 @@ var MUTATION_SCAFFOLD_CARD_IDS = /* @__PURE__ */ new Set([
414716
414764
  ]);
414717
414765
  var AgenticRunner = class _AgenticRunner {
414718
414766
  _readNativeInteractiveDecision;
414767
+ _directConversationHistory;
414719
414768
  _readNativeProviderDeliveryAck;
414720
414769
  #pendingProviderDelivery;
414721
414770
  _nativeInteractiveDecisions = /* @__PURE__ */ new Map();
@@ -418325,6 +418374,12 @@ runtime_module_sha256=${record11.runtimeProvenance.module.sha256 ?? "unknown"}`
418325
418374
  if (options?.expectedOutcomeContract && !expectedOutcomeContract) {
418326
418375
  throw new TypeError("Invalid ExpectedOutcomeContractV1");
418327
418376
  }
418377
+ if (options?.directConversationHistory !== void 0) {
418378
+ if (options.surface !== "tui" || options.interactionProfile !== "conversation" || expectedOutcomeContract?.route !== "chat" || !expectedOutcomeAllowsTextOnlyCompletion(expectedOutcomeContract)) {
418379
+ throw new TypeError("Direct conversation requires a TUI chat contract.");
418380
+ }
418381
+ this._directConversationHistory = structuredClone(options.directConversationHistory);
418382
+ }
418328
418383
  const taskObjectiveContract = options?.taskObjectiveContract ? normalizeTaskObjectiveContractV1(options.taskObjectiveContract) : void 0;
418329
418384
  if (options?.taskObjectiveContract && !taskObjectiveContract) {
418330
418385
  throw new TypeError("Invalid TaskObjectiveContractV1");
@@ -425661,6 +425716,8 @@ Use exact start_char/end_char or start_line/end_line ranges, or query/resume_sou
425661
425716
  return new HybridEvidenceRetriever(this._immutableEvidenceStore, options).retrieve(plan);
425662
425717
  }
425663
425718
  _liveVirtualContextMode() {
425719
+ if (this._directConversationHistory)
425720
+ return "off";
425664
425721
  if (this.options.virtualContext?.mode)
425665
425722
  return this.options.virtualContext.mode;
425666
425723
  const configured = (process.env["OMNIUS_VIRTUAL_CONTEXT"] ?? "auto").trim().toLowerCase();
@@ -426324,7 +426381,12 @@ ${body}`
426324
426381
  expectedScope: this.options.telegramPassiveHistoryScope
426325
426382
  }) : null;
426326
426383
  const pressureCue = "";
426327
- const rawPrompt = conversationProfile ? getConversationSystemPrompt() : getSystemPromptForTier(this.options.modelTier);
426384
+ const rawPrompt = this._directConversationHistory ? [
426385
+ getConversationSystemPrompt(),
426386
+ "Answer the latest user message directly using the recent conversation. Keep the response proportional to the request.",
426387
+ "Past turns are evidence for resolving references. Use only supported facts when reporting the state of earlier work.",
426388
+ "This is a tool-free reply. If the outcome or referent is unclear, ask one specific question or state what is still pending."
426389
+ ].join("\n\n") : conversationProfile ? getConversationSystemPrompt() : getSystemPromptForTier(this.options.modelTier);
426328
426390
  this._selectedPromptContext = issuePromptContext({ source: "model_led_core", version: "omnius.model-led-system.v1", text: rawPrompt });
426329
426391
  const basePrompt = rawPrompt + pressureCue;
426330
426392
  const basePromptWithBatching = basePrompt;
@@ -434302,6 +434364,8 @@ ${blob}
434302
434364
  }
434303
434365
  }
434304
434366
  memoryCapabilityContext() {
434367
+ if (this._directConversationHistory)
434368
+ return null;
434305
434369
  const binding = this.getMemoryExecutionBinding();
434306
434370
  if (!binding)
434307
434371
  return null;
@@ -434510,6 +434574,8 @@ ${blob}
434510
434574
  ].filter(Boolean)));
434511
434575
  }
434512
434576
  isToolAllowedByProfile(name, aliases, includeMode = true) {
434577
+ if (this._directConversationHistory)
434578
+ return false;
434513
434579
  const resolvedModeTool = this.lookupRegisteredTool(name);
434514
434580
  if (includeMode && this.explicitWorkModeContext().toolProblem(resolvedModeTool?.tool, name === "tool_search" && !this.tools.has(name)))
434515
434581
  return false;
@@ -444128,7 +444194,7 @@ Respond with the assessment and take the selected evidence-backed action.`;
444128
444194
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
444129
444195
  });
444130
444196
  this._sessionStartMs = Date.now();
444131
- if (process.env["OMNIUS_DISABLE_PREFLIGHT"] !== "1") {
444197
+ if (!this._directConversationHistory && process.env["OMNIUS_DISABLE_PREFLIGHT"] !== "1") {
444132
444198
  try {
444133
444199
  const preflightMod = await Promise.resolve().then(() => (init_preflightSnapshot(), preflightSnapshot_exports));
444134
444200
  const snapshot2 = preflightMod.capturePreflightSnapshot(this._workingDirectory ?? void 0);
@@ -444349,7 +444415,7 @@ TASK: ${scrubbedTask}` : scrubbedTask;
444349
444415
  ${dynamicProjectContext}`
444350
444416
  }
444351
444417
  ] : [];
444352
- const invokedSkillMessages = this.options.surface === "telegram-public" ? [] : explicitSkillInvocationMessages(actualUserGoal ?? task, this._workingDirectory || process.cwd());
444418
+ const invokedSkillMessages = this._directConversationHistory || this.options.surface === "telegram-public" ? [] : explicitSkillInvocationMessages(actualUserGoal ?? task, this._workingDirectory || process.cwd());
444353
444419
  if (invokedSkillMessages.length)
444354
444420
  this.emit({
444355
444421
  type: "status",
@@ -444381,6 +444447,10 @@ ${dynamicProjectContext}`
444381
444447
  ...missionCompletionContract ? [{ role: "system", content: missionCompletionContract }] : [],
444382
444448
  ...dynamicContextMessages,
444383
444449
  ...invokedSkillMessages,
444450
+ ...(this._directConversationHistory ?? []).map((turn) => ({
444451
+ role: turn.role,
444452
+ content: this.scrubUserInput(turn.content, "tui-conversation-history")
444453
+ })),
444384
444454
  ...physicalPlan?.length ? [{ role: "system", content: "[REVIEWED PHYSICAL CHECKS]\n" + JSON.stringify(physicalPlan) + "\nRun each exact required shell command separately from the workspace root. Follow any declared red, green and suite order and preserve the named files. For a sourceReference, read the original implementation and relevant tests. Identify a plausible boundary the suite misses and derive the expected result from an exact quoted invariant in the original source. Run it through shell with focused_check {requirementId,sourceQuote}. Use a direct command of the form python3 -B -c 'from module import function; assert function(literal_arguments) == expected_literal'. Keep the focused case separate from the requested suite. If it fails, fix the implementation and rerun both checks on the final revision. Keep existing file restrictions when choosing the check. Report the actual outcomes." }] : [],
444385
444455
  {
444386
444456
  role: "user",
@@ -461022,10 +461092,15 @@ var OllamaAgenticBackend = class _OllamaAgenticBackend {
461022
461092
  apiKey;
461023
461093
  thinking;
461024
461094
  _knownTransportContextCapability;
461095
+ _limitContextToResidentModel = false;
461025
461096
  _knownTransportContextPolicyScope;
461026
461097
  _remoteFallback;
461027
461098
  _inferenceFallbackApprovalHandler;
461028
461099
  _inferenceRouteLifecycleHandler;
461100
+ /** Standalone TUI requests may reuse context that Ollama has already allocated. */
461101
+ limitContextToResidentModel() {
461102
+ this._limitContextToResidentModel = true;
461103
+ }
461029
461104
  setInferenceRouteLifecycleHandler(handler) {
461030
461105
  this._inferenceRouteLifecycleHandler = handler;
461031
461106
  }
@@ -461264,7 +461339,7 @@ var OllamaAgenticBackend = class _OllamaAgenticBackend {
461264
461339
  const constraints = this.localContextConstraintHeaders();
461265
461340
  this.alignTransportContextPolicyScope(constraints);
461266
461341
  const current6 = readOllamaTransportContextCapability(this._provider.serviceBaseUrl, this.model, void 0, this.apiKey, constraints);
461267
- this._knownTransportContextCapability = refreshOllamaTransportContextCapability(this._knownTransportContextCapability, current6);
461342
+ this._knownTransportContextCapability = this._limitContextToResidentModel ? current6 : refreshOllamaTransportContextCapability(this._knownTransportContextCapability, current6);
461268
461343
  return this._knownTransportContextCapability;
461269
461344
  }
461270
461345
  async refreshTransportContextCapability() {
@@ -461697,6 +461772,28 @@ var OllamaAgenticBackend = class _OllamaAgenticBackend {
461697
461772
  const hasContext = Number.isFinite(numCtx) && (numCtx ?? 0) > 0;
461698
461773
  const managed = isOllamaUnifyManagedEndpoint(this._provider.serviceBaseUrl);
461699
461774
  let capability = this.transportContextCapability();
461775
+ if (this._limitContextToResidentModel && hasContext && !capability && request.brokerResumeOnly !== true) {
461776
+ const { numCtx: _requestedContext, num_ctx: _legacyContext, ...serverDefaults } = request;
461777
+ const nativeRoot = this.providerRequestUrl(this.baseUrl, "nativeChat").replace(/\/api\/chat$/, "");
461778
+ const resident = await queryOllamaResidentContext(nativeRoot, this.model, this.apiKey, request.signal ?? this._abortSignal ?? void 0);
461779
+ if (!resident) {
461780
+ request = serverDefaults;
461781
+ } else if (numCtx > resident) {
461782
+ const { receipt } = admitContextRequest({
461783
+ request,
461784
+ contextLimitTokens: resident,
461785
+ contextLimitSource: "observed_server",
461786
+ minimumOutputReservation: request.minimumOutputReservation,
461787
+ allowContentCompaction: false
461788
+ });
461789
+ if (receipt.decision !== "admit") {
461790
+ throw new InferenceHttpError("ollama-native", 400, JSON.stringify({
461791
+ error: `Ollama's loaded model has a maximum context length of ${resident} tokens. Re-admit the prompt at the current context length before sending it.`
461792
+ }));
461793
+ }
461794
+ request = { ...serverDefaults, numCtx: resident };
461795
+ }
461796
+ }
461700
461797
  if (!hasContext && !capability && request.preferNativeOllamaChat !== true && managed) {
461701
461798
  capability = await this.refreshTransportContextCapability();
461702
461799
  }
@@ -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 randomUUID5 } from "node:crypto";
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 { integrity: receipt["dist.integrity"], sourceRevision };
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: 5 * 6e4 });
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 Error(`${label} failed: ${detail}`);
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
- const packedFilename = (await run2("Exact Omnius package download", [
321523
- "pack",
321524
- spec,
321525
- "--pack-destination",
321526
- stage,
321527
- "--prefer-online",
321528
- "--ignore-scripts",
321529
- "--no-progress",
321530
- "--loglevel=error"
321531
- ])).trim();
321532
- if (packedFilename !== expectedFilename) throw new Error("npm pack did not produce the exact expected Omnius archive.");
321533
- const tarballPath = join17(stage, expectedFilename);
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 () => {
@@ -321827,7 +321908,7 @@ function guardOwnerIsProvablyDead(owner) {
321827
321908
  function recoverInterruptedUpdateGuard(path3) {
321828
321909
  const initial = interruptedGuardSnapshot(path3);
321829
321910
  if (!initial || !guardOwnerIsProvablyDead(initial.owner)) return false;
321830
- const recoveryPath = path3 + ".recovery", nonce = randomUUID5();
321911
+ const recoveryPath = path3 + ".recovery", nonce = randomUUID6();
321831
321912
  let fd;
321832
321913
  try {
321833
321914
  fd = openSync4(recoveryPath, constants4.O_WRONLY | constants4.O_CREAT | constants4.O_EXCL | constants4.O_NOFOLLOW, 384);
@@ -321860,7 +321941,7 @@ function recoverInterruptedUpdateGuard(path3) {
321860
321941
  }
321861
321942
  function withUpdateOwnership(paths, mutation) {
321862
321943
  ensurePrivateDirectories(paths);
321863
- const path3 = paths.lockFile + ".guard", nonce = randomUUID5();
321944
+ const path3 = paths.lockFile + ".guard", nonce = randomUUID6();
321864
321945
  let fd;
321865
321946
  try {
321866
321947
  fd = openSync4(path3, constants4.O_WRONLY | constants4.O_CREAT | constants4.O_EXCL | constants4.O_NOFOLLOW, 384);
@@ -321941,7 +322022,7 @@ function releaseMatchingUpdateLock(paths, operationId, pid) {
321941
322022
  if (lock?.operation_id === operationId && (pid === void 0 || lock.pid === pid)) unlinkSync4(paths.lockFile);
321942
322023
  }
321943
322024
  function atomicPrivateJson(path3, value) {
321944
- const temp = `${path3}.${process.pid}.${randomUUID5()}.tmp`;
322025
+ const temp = `${path3}.${process.pid}.${randomUUID6()}.tmp`;
321945
322026
  try {
321946
322027
  const fd = openSync4(temp, "wx", 384);
321947
322028
  try {
@@ -322410,6 +322491,11 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
322410
322491
  env,
322411
322492
  signal: dependencies.signal,
322412
322493
  runCommand,
322494
+ onArchiveRetry: () => {
322495
+ assertOwned();
322496
+ 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.
322497
+ `);
322498
+ },
322413
322499
  inspectInstall: inspectGlobalOmniusInstall
322414
322500
  });
322415
322501
  throwIfCancelled();
@@ -322476,7 +322562,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
322476
322562
  throwIfCancelled();
322477
322563
  const installer = dependencies.install ?? installGlobalPackageStreaming;
322478
322564
  for (let attempt = 1; attempt <= 2; attempt++) {
322479
- state = await transition(state, { installer_attempt: attempt }, paths);
322565
+ state = await transition(state, { installer_attempt: attempt, installer_settled: void 0, installer_exit_code: void 0, installer_process_group: void 0 }, paths);
322480
322566
  await prepared?.assertArchiveUnchanged();
322481
322567
  throwIfCancelled();
322482
322568
  installStarted = true;
@@ -322808,6 +322894,7 @@ async function runVerifiedUpdateTransaction(initial, dependencies, paths = resol
322808
322894
  failure_phase: failurePhase,
322809
322895
  completed_at: (/* @__PURE__ */ new Date()).toISOString(),
322810
322896
  ...deferred ? { automatic_deferred: true } : {},
322897
+ ...!cancelled && failurePhase === "staging" && error51 instanceof UpdateArchiveUnavailableError ? { failure_code: error51.code } : {},
322811
322898
  error: cancelled && !deferred ? installerSettled ? "Update cancelled after the owned operation settled." : "Update cancellation requested; owned installer shutdown could not be confirmed." : message,
322812
322899
  remediation: [
322813
322900
  packageRecoveryNote,
@@ -323545,7 +323632,6 @@ var SAME_TASK_REPLACE_WINDOW_MS = 12 * 60 * 60 * 1e3;
323545
323632
 
323546
323633
  // packages/cli/src/service-auto-update.ts
323547
323634
  var SERVICE_AUTO_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
323548
- var FAILED_TARGET_RETRY_MS = 24 * 60 * 60 * 1e3;
323549
323635
 
323550
323636
  // packages/cli/src/tray.ts
323551
323637
  var DEFAULT_ENDPOINT = "http://127.0.0.1:11435";
@@ -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
  };
@@ -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,18 @@
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
+ - [ ] 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.
15
+
16
+ ## Progress
17
+
18
+ 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.
@@ -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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.994",
3
+ "version": "1.0.996",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.994",
9
+ "version": "1.0.996",
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.994",
3
+ "version": "1.0.996",
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": "27ef2a9344b799b115d1c02c39535c76198326ac",
159
+ "sourceRevision": "69c353218d09fae95c79f14800bffecd1b53d983",
160
160
  "sourceDirtyAtBuildStart": false
161
161
  }
162
162
  }