omnius 1.0.994 → 1.0.995

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: 43643933 bytes
4
+ sha256: ee6564f8adcb89a1c463345569b755735bed3a258abed14d46c8c6ec01bcd0a1
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
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.994",
3
+ "version": "1.0.995",
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.995",
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.995",
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": "17989e8d2f97cc2886a202763f9f67b9b27d51e7",
160
160
  "sourceDirtyAtBuildStart": false
161
161
  }
162
162
  }