omnius 1.0.882 → 1.0.884
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/library.js +5056 -4342
- package/dist/omni-setup-worker.js +49 -25
- package/dist/tui/native/worker.js +87 -16
- package/dist/update-worker-runtime.js +369 -165
- package/dist/update-worker.js +4 -4
- package/docs/DISCOVERY.json +0 -41
- package/docs/DISCOVERY.md +0 -1
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -1
package/dist/update-worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __omnius_createRequire } from "node:module"; import { fileURLToPath as __omnius_fileURLToPath } from "node:url"; import { dirname as __omnius_dirname } from "node:path"; const require = __omnius_createRequire(import.meta.url); const __filename = __omnius_fileURLToPath(import.meta.url); const __dirname = __omnius_dirname(__filename);
|
|
2
2
|
|
|
3
3
|
// packages/cli/src/update-worker.ts
|
|
4
|
-
import { join as join2, resolve } from "node:path";
|
|
4
|
+
import { join as join2, resolve as resolve2 } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { stripVTControlCharacters } from "node:util";
|
|
7
7
|
import { realpathSync } from "node:fs";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
writeSync
|
|
29
29
|
} from "node:fs";
|
|
30
30
|
import { homedir } from "node:os";
|
|
31
|
-
import { dirname, join } from "node:path";
|
|
31
|
+
import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
32
32
|
|
|
33
33
|
// packages/cli/src/service-version.ts
|
|
34
34
|
var OmniusVersionError = class extends Error {
|
|
@@ -215,7 +215,7 @@ async function retryUpdateOwnership(attempt, timeoutMs = 2e3) {
|
|
|
215
215
|
} catch {
|
|
216
216
|
}
|
|
217
217
|
if (!live) throw error;
|
|
218
|
-
await new Promise((
|
|
218
|
+
await new Promise((resolve3) => setTimeout(resolve3, 25));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -438,7 +438,7 @@ async function runUpdateWorkerBootstrap(args = process.argv.slice(2)) {
|
|
|
438
438
|
}
|
|
439
439
|
function isWorkerEntry() {
|
|
440
440
|
if (!process.argv[1]) return false;
|
|
441
|
-
const entry = fileURLToPath(import.meta.url), invoked =
|
|
441
|
+
const entry = fileURLToPath(import.meta.url), invoked = resolve2(process.argv[1]);
|
|
442
442
|
try {
|
|
443
443
|
return realpathSync(invoked) === realpathSync(entry);
|
|
444
444
|
} catch {
|
package/docs/DISCOVERY.json
CHANGED
|
@@ -52561,47 +52561,6 @@
|
|
|
52561
52561
|
"config.provider-protocol"
|
|
52562
52562
|
]
|
|
52563
52563
|
},
|
|
52564
|
-
{
|
|
52565
|
-
"id": "provider.builtin-free",
|
|
52566
|
-
"kind": "provider",
|
|
52567
|
-
"title": "Built-in free",
|
|
52568
|
-
"summary": "Built-in free inference through openai-chat.",
|
|
52569
|
-
"aliases": [],
|
|
52570
|
-
"keywords": [
|
|
52571
|
-
"provider",
|
|
52572
|
-
"inference",
|
|
52573
|
-
"api key",
|
|
52574
|
-
"openai-chat"
|
|
52575
|
-
],
|
|
52576
|
-
"interfaces": [
|
|
52577
|
-
{
|
|
52578
|
-
"type": "provider-protocol",
|
|
52579
|
-
"target": "openai-chat"
|
|
52580
|
-
},
|
|
52581
|
-
{
|
|
52582
|
-
"type": "endpoint",
|
|
52583
|
-
"target": "https://opencode.ai/inference/openai/v1"
|
|
52584
|
-
}
|
|
52585
|
-
],
|
|
52586
|
-
"capabilities": [
|
|
52587
|
-
"chat",
|
|
52588
|
-
"streaming",
|
|
52589
|
-
"models",
|
|
52590
|
-
"tools",
|
|
52591
|
-
"structured-output"
|
|
52592
|
-
],
|
|
52593
|
-
"auth": {
|
|
52594
|
-
"strategy": "bearer",
|
|
52595
|
-
"required": false,
|
|
52596
|
-
"staticHeaders": {
|
|
52597
|
-
"Authorization": "Bearer public"
|
|
52598
|
-
}
|
|
52599
|
-
},
|
|
52600
|
-
"paths": {
|
|
52601
|
-
"chat": "/inference/openai/v1/chat/completions",
|
|
52602
|
-
"models": "/inference/v1/models"
|
|
52603
|
-
}
|
|
52604
|
-
},
|
|
52605
52564
|
{
|
|
52606
52565
|
"id": "provider.cerebras",
|
|
52607
52566
|
"kind": "provider",
|
package/docs/DISCOVERY.md
CHANGED
|
@@ -1051,7 +1051,6 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
|
|
|
1051
1051
|
| ID | Title | Summary |
|
|
1052
1052
|
| --- | --- | --- |
|
|
1053
1053
|
| `provider.anthropic` | Anthropic Claude | Claude through Anthropic's native Messages API with system, tool, streaming, stop-reason, and usage translation. |
|
|
1054
|
-
| `provider.builtin-free` | Built-in free | Built-in free inference through openai-chat. |
|
|
1055
1054
|
| `provider.cerebras` | Cerebras | Cerebras inference through its OpenAI-compatible API. |
|
|
1056
1055
|
| `provider.chutes` | Chutes | Chutes hosted models through an OpenAI-compatible API. |
|
|
1057
1056
|
| `provider.custom` | Custom inference endpoint | A user-supplied endpoint that remains disabled until its protocol is declared explicitly. |
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.884",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.884",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
|
@@ -8173,9 +8173,9 @@
|
|
|
8173
8173
|
}
|
|
8174
8174
|
},
|
|
8175
8175
|
"node_modules/strtok3": {
|
|
8176
|
-
"version": "10.6.
|
|
8177
|
-
"resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.6.
|
|
8178
|
-
"integrity": "sha512-
|
|
8176
|
+
"version": "10.6.2",
|
|
8177
|
+
"resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.6.2.tgz",
|
|
8178
|
+
"integrity": "sha512-BkdixFFUt7r7LsX6aGNPVyYMLjW+M1USLlKPNbZsrZEmLFh5tGqhdfckKo6xgsZIJqdDD0CZGkeCJJwNWQIKQA==",
|
|
8179
8179
|
"license": "MIT",
|
|
8180
8180
|
"dependencies": {
|
|
8181
8181
|
"@tokenizer/token": "^0.3.0"
|
package/package.json
CHANGED