omnius 1.0.820 → 1.0.822

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: 35619792 bytes
4
- sha256: d4274e929312e02938ce48cea877bb897efd583ff6e593b750cbbbc26fe33597
3
+ size: 35927267 bytes
4
+ sha256: e341e87b70d09a077bcdfdbd3ad2b829b893de8a4c807798e81fba696e0b878b
package/dist/library.js CHANGED
@@ -301062,6 +301062,141 @@ var EXTRACTION_SYSTEM = [
301062
301062
  "Return only JSON."
301063
301063
  ].join(" ");
301064
301064
 
301065
+ // packages/orchestrator/dist/structured-memory-extraction-worker.js
301066
+ init_dist2();
301067
+
301068
+ // packages/orchestrator/dist/inference-pressure.js
301069
+ var InferencePressureCoordinator = class {
301070
+ now;
301071
+ maxIndependentInteractiveControl;
301072
+ enabled;
301073
+ active = /* @__PURE__ */ new Map();
301074
+ listeners = /* @__PURE__ */ new Set();
301075
+ constructor(options = {}) {
301076
+ this.now = options.now ?? (() => Date.now());
301077
+ this.enabled = options.enabled ?? true;
301078
+ this.maxIndependentInteractiveControl = Math.max(1, options.maxIndependentInteractiveControl ?? 2);
301079
+ }
301080
+ acquire(request) {
301081
+ const existing = this.active.get(request.id);
301082
+ if (existing && !existing.released) {
301083
+ return this.publicLease(existing);
301084
+ }
301085
+ if (this.enabled && request.workloadClass === "background" && this.hasInteractivePressure()) {
301086
+ return null;
301087
+ }
301088
+ if (this.enabled && request.workloadClass === "interactive-control") {
301089
+ const hasLiveParent = request.parentForegroundId ? this.active.get(request.parentForegroundId)?.request.workloadClass === "foreground" : false;
301090
+ if (!hasLiveParent) {
301091
+ const independentCount = [...this.active.values()].filter((lease) => !lease.released && lease.request.workloadClass === "interactive-control" && !lease.request.parentForegroundId).length;
301092
+ if (independentCount >= this.maxIndependentInteractiveControl) {
301093
+ return null;
301094
+ }
301095
+ }
301096
+ }
301097
+ if (this.enabled && (request.workloadClass === "foreground" || request.workloadClass === "interactive-control")) {
301098
+ this.abortBackground(`${request.workloadClass}_inference_preempted_background`);
301099
+ }
301100
+ const acquiredAt = request.startedAt ?? this.now();
301101
+ const active = {
301102
+ request: { ...request, startedAt: acquiredAt },
301103
+ acquiredAt,
301104
+ controller: new AbortController(),
301105
+ released: false
301106
+ };
301107
+ this.active.set(request.id, active);
301108
+ this.notifyListeners();
301109
+ return this.publicLease(active);
301110
+ }
301111
+ /** Observe content-free pressure changes. The callback never receives prompts. */
301112
+ subscribe(listener) {
301113
+ this.listeners.add(listener);
301114
+ return () => this.listeners.delete(listener);
301115
+ }
301116
+ hasForeground() {
301117
+ if (!this.enabled)
301118
+ return false;
301119
+ return [...this.active.values()].some((lease) => !lease.released && lease.request.workloadClass === "foreground");
301120
+ }
301121
+ hasInteractivePressure() {
301122
+ if (!this.enabled)
301123
+ return false;
301124
+ return [...this.active.values()].some((lease) => !lease.released && lease.request.workloadClass !== "background");
301125
+ }
301126
+ snapshot() {
301127
+ const now = this.now();
301128
+ const active = [...this.active.values()].filter((lease) => !lease.released).map((lease) => ({
301129
+ id: lease.request.id,
301130
+ workloadClass: lease.request.workloadClass,
301131
+ ...lease.request.owner ? { owner: lease.request.owner } : {},
301132
+ ...lease.request.parentForegroundId ? { parentForegroundId: lease.request.parentForegroundId } : {},
301133
+ ageMs: Math.max(0, now - lease.acquiredAt)
301134
+ })).sort((a, b) => a.id.localeCompare(b.id));
301135
+ const count = (workloadClass) => active.filter((lease) => lease.workloadClass === workloadClass).length;
301136
+ return {
301137
+ foreground: count("foreground"),
301138
+ interactiveControl: count("interactive-control"),
301139
+ background: count("background"),
301140
+ oldestAgeMs: active.reduce((oldest, lease) => Math.max(oldest, lease.ageMs), 0),
301141
+ active
301142
+ };
301143
+ }
301144
+ reset(reason = "inference_pressure_coordinator_reset") {
301145
+ for (const lease of this.active.values()) {
301146
+ if (!lease.released && !lease.controller.signal.aborted) {
301147
+ lease.controller.abort(reason);
301148
+ }
301149
+ lease.released = true;
301150
+ }
301151
+ this.active.clear();
301152
+ this.notifyListeners();
301153
+ }
301154
+ abortBackground(reason) {
301155
+ for (const lease of this.active.values()) {
301156
+ if (!lease.released && lease.request.workloadClass === "background" && !lease.controller.signal.aborted) {
301157
+ lease.controller.abort(reason);
301158
+ }
301159
+ }
301160
+ }
301161
+ publicLease(active) {
301162
+ let releasedByCaller = false;
301163
+ return {
301164
+ id: active.request.id,
301165
+ workloadClass: active.request.workloadClass,
301166
+ signal: active.controller.signal,
301167
+ acquiredAt: active.acquiredAt,
301168
+ release: () => {
301169
+ if (releasedByCaller || active.released)
301170
+ return;
301171
+ releasedByCaller = true;
301172
+ active.released = true;
301173
+ if (this.active.get(active.request.id) === active) {
301174
+ this.active.delete(active.request.id);
301175
+ }
301176
+ this.notifyListeners();
301177
+ }
301178
+ };
301179
+ }
301180
+ notifyListeners() {
301181
+ if (this.listeners.size === 0)
301182
+ return;
301183
+ const snapshot = this.snapshot();
301184
+ for (const listener of this.listeners) {
301185
+ try {
301186
+ listener(snapshot);
301187
+ } catch {
301188
+ }
301189
+ }
301190
+ }
301191
+ };
301192
+ var processCoordinator = null;
301193
+ function getInferencePressureCoordinator() {
301194
+ processCoordinator ??= new InferencePressureCoordinator({
301195
+ enabled: process.env["OMNIUS_INFERENCE_PRESSURE_COORDINATOR"] !== "0"
301196
+ });
301197
+ return processCoordinator;
301198
+ }
301199
+
301065
301200
  // packages/orchestrator/dist/conversationReportEvidence.js
301066
301201
  import { z as z19 } from "zod";
301067
301202
 
@@ -301320,138 +301455,6 @@ var checkpointSchema = z20.object({
301320
301455
  }).strict()).max(256)
301321
301456
  }).strict();
301322
301457
 
301323
- // packages/orchestrator/dist/inference-pressure.js
301324
- var InferencePressureCoordinator = class {
301325
- now;
301326
- maxIndependentInteractiveControl;
301327
- enabled;
301328
- active = /* @__PURE__ */ new Map();
301329
- listeners = /* @__PURE__ */ new Set();
301330
- constructor(options = {}) {
301331
- this.now = options.now ?? (() => Date.now());
301332
- this.enabled = options.enabled ?? true;
301333
- this.maxIndependentInteractiveControl = Math.max(1, options.maxIndependentInteractiveControl ?? 2);
301334
- }
301335
- acquire(request) {
301336
- const existing = this.active.get(request.id);
301337
- if (existing && !existing.released) {
301338
- return this.publicLease(existing);
301339
- }
301340
- if (this.enabled && request.workloadClass === "background" && this.hasInteractivePressure()) {
301341
- return null;
301342
- }
301343
- if (this.enabled && request.workloadClass === "interactive-control") {
301344
- const hasLiveParent = request.parentForegroundId ? this.active.get(request.parentForegroundId)?.request.workloadClass === "foreground" : false;
301345
- if (!hasLiveParent) {
301346
- const independentCount = [...this.active.values()].filter((lease) => !lease.released && lease.request.workloadClass === "interactive-control" && !lease.request.parentForegroundId).length;
301347
- if (independentCount >= this.maxIndependentInteractiveControl) {
301348
- return null;
301349
- }
301350
- }
301351
- }
301352
- if (this.enabled && (request.workloadClass === "foreground" || request.workloadClass === "interactive-control")) {
301353
- this.abortBackground(`${request.workloadClass}_inference_preempted_background`);
301354
- }
301355
- const acquiredAt = request.startedAt ?? this.now();
301356
- const active = {
301357
- request: { ...request, startedAt: acquiredAt },
301358
- acquiredAt,
301359
- controller: new AbortController(),
301360
- released: false
301361
- };
301362
- this.active.set(request.id, active);
301363
- this.notifyListeners();
301364
- return this.publicLease(active);
301365
- }
301366
- /** Observe content-free pressure changes. The callback never receives prompts. */
301367
- subscribe(listener) {
301368
- this.listeners.add(listener);
301369
- return () => this.listeners.delete(listener);
301370
- }
301371
- hasForeground() {
301372
- if (!this.enabled)
301373
- return false;
301374
- return [...this.active.values()].some((lease) => !lease.released && lease.request.workloadClass === "foreground");
301375
- }
301376
- hasInteractivePressure() {
301377
- if (!this.enabled)
301378
- return false;
301379
- return [...this.active.values()].some((lease) => !lease.released && lease.request.workloadClass !== "background");
301380
- }
301381
- snapshot() {
301382
- const now = this.now();
301383
- const active = [...this.active.values()].filter((lease) => !lease.released).map((lease) => ({
301384
- id: lease.request.id,
301385
- workloadClass: lease.request.workloadClass,
301386
- ...lease.request.owner ? { owner: lease.request.owner } : {},
301387
- ...lease.request.parentForegroundId ? { parentForegroundId: lease.request.parentForegroundId } : {},
301388
- ageMs: Math.max(0, now - lease.acquiredAt)
301389
- })).sort((a, b) => a.id.localeCompare(b.id));
301390
- const count = (workloadClass) => active.filter((lease) => lease.workloadClass === workloadClass).length;
301391
- return {
301392
- foreground: count("foreground"),
301393
- interactiveControl: count("interactive-control"),
301394
- background: count("background"),
301395
- oldestAgeMs: active.reduce((oldest, lease) => Math.max(oldest, lease.ageMs), 0),
301396
- active
301397
- };
301398
- }
301399
- reset(reason = "inference_pressure_coordinator_reset") {
301400
- for (const lease of this.active.values()) {
301401
- if (!lease.released && !lease.controller.signal.aborted) {
301402
- lease.controller.abort(reason);
301403
- }
301404
- lease.released = true;
301405
- }
301406
- this.active.clear();
301407
- this.notifyListeners();
301408
- }
301409
- abortBackground(reason) {
301410
- for (const lease of this.active.values()) {
301411
- if (!lease.released && lease.request.workloadClass === "background" && !lease.controller.signal.aborted) {
301412
- lease.controller.abort(reason);
301413
- }
301414
- }
301415
- }
301416
- publicLease(active) {
301417
- let releasedByCaller = false;
301418
- return {
301419
- id: active.request.id,
301420
- workloadClass: active.request.workloadClass,
301421
- signal: active.controller.signal,
301422
- acquiredAt: active.acquiredAt,
301423
- release: () => {
301424
- if (releasedByCaller || active.released)
301425
- return;
301426
- releasedByCaller = true;
301427
- active.released = true;
301428
- if (this.active.get(active.request.id) === active) {
301429
- this.active.delete(active.request.id);
301430
- }
301431
- this.notifyListeners();
301432
- }
301433
- };
301434
- }
301435
- notifyListeners() {
301436
- if (this.listeners.size === 0)
301437
- return;
301438
- const snapshot = this.snapshot();
301439
- for (const listener of this.listeners) {
301440
- try {
301441
- listener(snapshot);
301442
- } catch {
301443
- }
301444
- }
301445
- }
301446
- };
301447
- var processCoordinator = null;
301448
- function getInferencePressureCoordinator() {
301449
- processCoordinator ??= new InferencePressureCoordinator({
301450
- enabled: process.env["OMNIUS_INFERENCE_PRESSURE_COORDINATOR"] !== "0"
301451
- });
301452
- return processCoordinator;
301453
- }
301454
-
301455
301458
  // packages/orchestrator/dist/steeringIntake.js
301456
301459
  import { z as z21 } from "zod";
301457
301460
  var SteeringInterpretationSchema = z21.object({
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.820",
3
+ "version": "1.0.822",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.820",
9
+ "version": "1.0.822",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
@@ -2361,9 +2361,9 @@
2361
2361
  }
2362
2362
  },
2363
2363
  "node_modules/@types/node": {
2364
- "version": "26.6.4",
2365
- "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz",
2366
- "integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==",
2364
+ "version": "26.6.5",
2365
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz",
2366
+ "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
2367
2367
  "license": "MIT",
2368
2368
  "dependencies": {
2369
2369
  "undici-types": "~8.9.0"
@@ -2602,9 +2602,9 @@
2602
2602
  }
2603
2603
  },
2604
2604
  "node_modules/bare-fs": {
2605
- "version": "4.8.3",
2606
- "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.8.3.tgz",
2607
- "integrity": "sha512-KQi9ShyPS/nOCtKpma7At8wbq4ORSNUmD67hsZrPcaWJcEmL8PHyS2xVWT308y8/LvHFOUTytTTDsD8dInx6bA==",
2605
+ "version": "4.8.4",
2606
+ "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.8.4.tgz",
2607
+ "integrity": "sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==",
2608
2608
  "license": "Apache-2.0",
2609
2609
  "optional": true,
2610
2610
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.820",
3
+ "version": "1.0.822",
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",