omnius 1.0.874 → 1.0.875
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 +37 -20
- package/dist/providerRegistry.d.ts +6 -0
- package/dist/tui/native/worker.js +5 -3
- package/docs/DISCOVERY.json +426 -8
- package/docs/DISCOVERY.md +12 -1
- package/docs/guides/endpoint-requirements.md +33 -0
- package/docs/guides/sponsored-inference-mesh.md +84 -0
- package/docs/work-orders/evidence/endpoint-completion-verification-20261017.json +95 -0
- package/docs/work-orders/evidence/endpoint-source-verification-20261017.json +175 -0
- package/docs/work-orders/evidence/expanded-variant-repair-20261017.json +88 -0
- package/docs/work-orders/evidence/mesh-source-verification-20261017.json +46 -0
- package/docs/work-orders/evidence/mesh-transport-verification-20261017.json +156 -0
- package/docs/work-orders/evidence/opencode-endpoint-regression-20261017.json +984 -0
- package/docs/work-orders/evidence/sticky-catalog-candidate-release-20261017.json +314 -0
- package/npm-shrinkwrap.json +1705 -202
- package/package.json +78 -34
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:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 38051883 bytes
|
|
4
|
+
sha256: 0337aabceca4d3d07e61d8e780a551c392da94181e271718d24fca263d970728
|
package/dist/library.js
CHANGED
|
@@ -340816,10 +340816,6 @@ var OPENAI_CAPABILITIES = [
|
|
|
340816
340816
|
...CHAT_CAPABILITIES,
|
|
340817
340817
|
"embeddings"
|
|
340818
340818
|
];
|
|
340819
|
-
var noAuth = (required = false) => ({
|
|
340820
|
-
strategy: "none",
|
|
340821
|
-
required
|
|
340822
|
-
});
|
|
340823
340819
|
var bearerAuth = (required, keyPrefix, staticHeaders) => ({
|
|
340824
340820
|
strategy: "bearer",
|
|
340825
340821
|
required,
|
|
@@ -340834,9 +340830,27 @@ var descriptor = (value) => Object.freeze({
|
|
|
340834
340830
|
...value.auth,
|
|
340835
340831
|
...value.auth.staticHeaders ? { staticHeaders: Object.freeze({ ...value.auth.staticHeaders }) } : {}
|
|
340836
340832
|
}),
|
|
340837
|
-
capabilities: Object.freeze([...value.capabilities])
|
|
340833
|
+
capabilities: Object.freeze([...value.capabilities]),
|
|
340834
|
+
...value.availability ? { availability: Object.freeze({ ...value.availability }) } : {}
|
|
340838
340835
|
});
|
|
340839
340836
|
var registrations = [
|
|
340837
|
+
{
|
|
340838
|
+
descriptor: descriptor({
|
|
340839
|
+
id: "mesh",
|
|
340840
|
+
aliases: [],
|
|
340841
|
+
label: "Sponsored inference mesh",
|
|
340842
|
+
protocol: "openai-chat",
|
|
340843
|
+
local: false,
|
|
340844
|
+
apiPrefix: "/v1",
|
|
340845
|
+
paths: { chat: "/v1/chat/completions", models: "/v1/models" },
|
|
340846
|
+
auth: bearerAuth(true),
|
|
340847
|
+
capabilities: CHAT_CAPABILITIES,
|
|
340848
|
+
defaultUrl: "http://127.0.0.1:11436/v1",
|
|
340849
|
+
description: "Opt-in remote sponsor inference through your private authenticated mesh gateway."
|
|
340850
|
+
}),
|
|
340851
|
+
// A loopback port is not provider identity. Select this transport explicitly.
|
|
340852
|
+
match: () => false
|
|
340853
|
+
},
|
|
340840
340854
|
{
|
|
340841
340855
|
descriptor: descriptor({
|
|
340842
340856
|
id: "builtin-free",
|
|
@@ -340845,7 +340859,7 @@ var registrations = [
|
|
|
340845
340859
|
protocol: "openai-chat",
|
|
340846
340860
|
local: false,
|
|
340847
340861
|
apiPrefix: "/inference/openai/v1",
|
|
340848
|
-
paths: { chat: "/inference/openai/v1/chat/completions", models: "/inference/
|
|
340862
|
+
paths: { chat: "/inference/openai/v1/chat/completions", models: "/inference/v1/models" },
|
|
340849
340863
|
auth: { strategy: "bearer", required: false, staticHeaders: { Authorization: "Bearer public" } },
|
|
340850
340864
|
capabilities: CHAT_CAPABILITIES,
|
|
340851
340865
|
defaultUrl: "https://opencode.ai/inference/openai/v1",
|
|
@@ -341028,12 +341042,12 @@ var registrations = [
|
|
|
341028
341042
|
},
|
|
341029
341043
|
auth: bearerAuth(true),
|
|
341030
341044
|
capabilities: OPENAI_CAPABILITIES,
|
|
341031
|
-
defaultUrl: "https://api.together.
|
|
341045
|
+
defaultUrl: "https://api.together.ai/v1",
|
|
341032
341046
|
apiKeyUrl: "https://api.together.xyz/settings/api-keys",
|
|
341033
341047
|
docsUrl: "https://docs.together.ai",
|
|
341034
341048
|
description: "Together OpenAI-compatible inference."
|
|
341035
341049
|
}),
|
|
341036
|
-
match: (url) =>
|
|
341050
|
+
match: (url) => ["api.together.ai", "api.together.xyz"].includes(url.hostname.toLowerCase())
|
|
341037
341051
|
},
|
|
341038
341052
|
{
|
|
341039
341053
|
descriptor: descriptor({
|
|
@@ -341163,7 +341177,8 @@ var registrations = [
|
|
|
341163
341177
|
defaultUrl: "https://api.hyperbolic.xyz/v1",
|
|
341164
341178
|
apiKeyUrl: "https://app.hyperbolic.xyz/settings",
|
|
341165
341179
|
docsUrl: "https://docs.hyperbolic.xyz",
|
|
341166
|
-
description: "Hyperbolic
|
|
341180
|
+
description: "Retired Hyperbolic serverless API. Explicit custom deployments require their own URL.",
|
|
341181
|
+
availability: { state: "retired", reason: "Hyperbolic's serverless inference API has been retired; old serverless models no longer accept requests, including with valid keys.", docsUrl: "https://www.hyperbolic.ai/docs/faq/inference-models" }
|
|
341167
341182
|
}),
|
|
341168
341183
|
match: (url) => url.hostname.toLowerCase() === "api.hyperbolic.xyz"
|
|
341169
341184
|
},
|
|
@@ -341182,7 +341197,7 @@ var registrations = [
|
|
|
341182
341197
|
embeddings: "/api/embed",
|
|
341183
341198
|
health: "/api/tags"
|
|
341184
341199
|
},
|
|
341185
|
-
auth:
|
|
341200
|
+
auth: bearerAuth(false),
|
|
341186
341201
|
capabilities: OPENAI_CAPABILITIES,
|
|
341187
341202
|
defaultUrl: "http://127.0.0.1:11434",
|
|
341188
341203
|
docsUrl: "https://docs.ollama.com/api",
|
|
@@ -341336,7 +341351,7 @@ function customDescriptor(protocol2, rawUrl) {
|
|
|
341336
341351
|
strategy: "anthropic-api-key",
|
|
341337
341352
|
required: false,
|
|
341338
341353
|
staticHeaders: { "anthropic-version": "2023-06-01" }
|
|
341339
|
-
} :
|
|
341354
|
+
} : bearerAuth(false),
|
|
341340
341355
|
capabilities: protocol2 === "anthropic-messages" ? CHAT_CAPABILITIES : OPENAI_CAPABILITIES,
|
|
341341
341356
|
defaultUrl: `${url.origin}${endpointPath}`,
|
|
341342
341357
|
description: `Custom endpoint with explicit ${protocol2} protocol.`
|
|
@@ -341384,7 +341399,8 @@ function listProviderDescriptors() {
|
|
|
341384
341399
|
...entry.auth,
|
|
341385
341400
|
...entry.auth.staticHeaders ? { staticHeaders: { ...entry.auth.staticHeaders } } : {}
|
|
341386
341401
|
},
|
|
341387
|
-
capabilities: [...entry.capabilities]
|
|
341402
|
+
capabilities: [...entry.capabilities],
|
|
341403
|
+
...entry.availability ? { availability: { ...entry.availability } } : {}
|
|
341388
341404
|
}));
|
|
341389
341405
|
}
|
|
341390
341406
|
function detectProviderDescriptor(rawUrl) {
|
|
@@ -341619,7 +341635,7 @@ function toProviderInfo(provider) {
|
|
|
341619
341635
|
};
|
|
341620
341636
|
}
|
|
341621
341637
|
var PROVIDER_PRESETS = [
|
|
341622
|
-
...listProviderDescriptors().map(toProviderInfo),
|
|
341638
|
+
...listProviderDescriptors().filter((provider) => provider.availability?.state !== "retired").map(toProviderInfo),
|
|
341623
341639
|
{
|
|
341624
341640
|
id: "custom",
|
|
341625
341641
|
label: "Custom endpoint",
|
|
@@ -343368,7 +343384,7 @@ var OPENCODE_INFERENCE_BASE_URL = "https://opencode.ai/inference/openai/v1";
|
|
|
343368
343384
|
function isOpenCodeInferenceBaseUrl(value) {
|
|
343369
343385
|
return value === OPENCODE_INFERENCE_BASE_URL || value === OPENCODE_LEGACY_INFERENCE_BASE_URL;
|
|
343370
343386
|
}
|
|
343371
|
-
var OPENCODE_AVAILABLE_MODELS_URL = `${
|
|
343387
|
+
var OPENCODE_AVAILABLE_MODELS_URL = `${OPENCODE_LEGACY_INFERENCE_BASE_URL}/models`;
|
|
343372
343388
|
var OPENCODE_COMPATIBILITY_CLIENT_VERSION = "2.0.27";
|
|
343373
343389
|
var observedModelCompatibility = Object.freeze({
|
|
343374
343390
|
"openai-responses": Object.freeze({
|
|
@@ -343598,7 +343614,7 @@ var FREE_INFERENCE_SEEDS = Object.freeze([
|
|
|
343598
343614
|
name: "Built-in free inference",
|
|
343599
343615
|
chatUrl: `${OPENCODE_INFERENCE_BASE_URL}/chat/completions`,
|
|
343600
343616
|
modelsUrl: OPENCODE_MODEL_CATALOG_URL,
|
|
343601
|
-
availabilityModelsUrl:
|
|
343617
|
+
availabilityModelsUrl: OPENCODE_AVAILABLE_MODELS_URL,
|
|
343602
343618
|
model: "nemotron-3.5-lightning-free",
|
|
343603
343619
|
nativeToolsHint: true,
|
|
343604
343620
|
catalogKind: "opencode",
|
|
@@ -345863,7 +345879,7 @@ var InferenceRoutePolicyError = class extends Error {
|
|
|
345863
345879
|
fatal = true;
|
|
345864
345880
|
retryable = false;
|
|
345865
345881
|
constructor(failure) {
|
|
345866
|
-
super(`Inference request failed (${failure.category}${failure.status === void 0 ? "" : `; HTTP ${failure.status}`}${failure.validationReason ? `; ${failure.validationReason}` : failure.reason && failure.reason !== "terminal" ? `; ${failure.reason}` : ""}).`);
|
|
345882
|
+
super(`Inference request failed (${failure.category}${failure.status === void 0 ? "" : `; HTTP ${failure.status}`}${failure.accessReason ? `; ${failure.accessReason}` : failure.validationReason ? `; ${failure.validationReason}` : failure.reason && failure.reason !== "terminal" ? `; ${failure.reason}` : ""}).`);
|
|
345867
345883
|
this.failure = failure;
|
|
345868
345884
|
this.name = "InferenceRoutePolicyError";
|
|
345869
345885
|
}
|
|
@@ -346111,7 +346127,7 @@ var RemoteInferenceFallback = class _RemoteInferenceFallback {
|
|
|
346111
346127
|
handleStickyFailure(request, candidate, deadline, error, frames) {
|
|
346112
346128
|
let disposition = "surface_error";
|
|
346113
346129
|
const category = safeFailure(error, request, candidate, frames).category;
|
|
346114
|
-
let reason = category === "authentication"
|
|
346130
|
+
let reason = category === "authentication" ? "authentication" : category === "access_denied" ? "access_restricted" : category === "request_rejected" ? "request_rejected" : category === "invalid_response" ? "response_contract" : category === "transport" ? "adapter_or_configuration" : "terminal";
|
|
346115
346131
|
let retryDelayMs;
|
|
346116
346132
|
if (this.learnNativeSchemaRestriction(request, candidate, error)) {
|
|
346117
346133
|
disposition = "repair_same_model";
|
|
@@ -346376,13 +346392,13 @@ var RemoteInferenceFallback = class _RemoteInferenceFallback {
|
|
|
346376
346392
|
return remote.chatCompletion(remoteRequest);
|
|
346377
346393
|
}, remaining <= this.policy.requestTimeoutMs ? "remote_aggregate" : "remote_attempt");
|
|
346378
346394
|
this.fenceRemoteDeadline(request, deadline);
|
|
346395
|
+
if ((request.responseFormat ?? request.response_format) && result?.outputTruncated)
|
|
346396
|
+
throw new ExpectedInferenceResponseError(InputValidationFailure.Truncated, expectedInferenceResponseKind(request));
|
|
346379
346397
|
if (!usableResult(result))
|
|
346380
346398
|
throw new EmptyInferenceResponse();
|
|
346381
346399
|
const validation = validateRemoteMessage(result.choices[0]?.message, request);
|
|
346382
346400
|
if (validation.normalizedContent !== void 0 && result.choices[0]?.message)
|
|
346383
346401
|
result.choices[0].message.content = validation.normalizedContent;
|
|
346384
|
-
if ((request.responseFormat ?? request.response_format) && result.outputTruncated)
|
|
346385
|
-
throw new ExpectedInferenceResponseError(InputValidationFailure.Truncated, expectedInferenceResponseKind(request));
|
|
346386
346402
|
cooldowns.delete(routeKey(candidate));
|
|
346387
346403
|
cooldowns.delete(rateLimitKey(candidate));
|
|
346388
346404
|
cooldowns.delete(contractCooldownKey(candidate, request));
|
|
@@ -347297,7 +347313,8 @@ ${line}`).join("");
|
|
|
347297
347313
|
const pending = [];
|
|
347298
347314
|
let matched = !eligible;
|
|
347299
347315
|
for await (const candidate of this.catalogCandidates(request, deadline, includeCooling)) {
|
|
347300
|
-
|
|
347316
|
+
const preferredCatalogComplete = eligible?.baseUrl === OPENCODE_INFERENCE_BASE_URL && candidate.baseUrl === eligible.baseUrl && eligible.keyless?.catalogKind === "opencode" && candidate.keyless?.catalogKind === "opencode";
|
|
347317
|
+
if (!matched && routeKey(candidate) !== routeKey(eligible) && !preferredCatalogComplete) {
|
|
347301
347318
|
pending.push(candidate);
|
|
347302
347319
|
continue;
|
|
347303
347320
|
}
|
|
@@ -28,6 +28,12 @@ export interface ProviderDescriptor {
|
|
|
28
28
|
defaultUrl?: string;
|
|
29
29
|
apiKeyUrl?: string;
|
|
30
30
|
docsUrl?: string;
|
|
31
|
+
/** Published retirement metadata; this is not a live availability attestation. */
|
|
32
|
+
availability?: Readonly<{
|
|
33
|
+
state: "retired";
|
|
34
|
+
reason: string;
|
|
35
|
+
docsUrl: string;
|
|
36
|
+
}>;
|
|
31
37
|
description: string;
|
|
32
38
|
}
|
|
33
39
|
export interface ResolveProviderOptions {
|
|
@@ -4377,8 +4377,8 @@ var COMMAND_SIGNATURES = [
|
|
|
4377
4377
|
["/model", "Select from available models"],
|
|
4378
4378
|
["/model <name>", "Switch to a specific model"],
|
|
4379
4379
|
["/models", "List all available models"],
|
|
4380
|
-
["/endpoint", "
|
|
4381
|
-
["/endpoint <url>", "Set backend URL
|
|
4380
|
+
["/endpoint", "Select an endpoint or provider"],
|
|
4381
|
+
["/endpoint <provider|alias|url>", "Set a provider name, alias, or backend URL"],
|
|
4382
4382
|
["/endpoint <url> --auth <t>", "Set endpoint with Bearer auth"],
|
|
4383
4383
|
["/fallback", "Show remote inference fallback mode"],
|
|
4384
4384
|
["/fallback status", "Show remote inference fallback mode"],
|
|
@@ -4831,6 +4831,7 @@ var COMMAND_SIGNATURES = [
|
|
|
4831
4831
|
["/ipfs share <tool|skill> <name>", "Share a tool or skill through IPFS"],
|
|
4832
4832
|
["/ipfs import <cid>", "Import a shared IPFS tool or skill reference"],
|
|
4833
4833
|
["/sponsor", "Sponsor inference - onboarding wizard or dashboard"],
|
|
4834
|
+
["/mesh [status|identity]", "Inspect trusted inference mesh routing and public identity"],
|
|
4834
4835
|
["/sponsor status", "Show sponsor dashboard with usage metrics"],
|
|
4835
4836
|
["/sponsor image <prompt>", "Generate an image on a sponsored peer"],
|
|
4836
4837
|
["/sponsor video <prompt>", "Generate a video on a sponsored peer"],
|
|
@@ -4888,7 +4889,7 @@ var COMMAND_SIGNATURES = [
|
|
|
4888
4889
|
],
|
|
4889
4890
|
["/reminders", "Alias for /reminder"],
|
|
4890
4891
|
["/daemon", "Show or manage the local API daemon"],
|
|
4891
|
-
["/daemon <start|stop|restart|takeover>", "
|
|
4892
|
+
["/daemon <status|diagnostics|start|stop|restart|takeover>", "Inspect startup diagnostics or control the local API daemon"],
|
|
4892
4893
|
["/apikey", "Show current API key (for pasting into Web UI / clients)"],
|
|
4893
4894
|
["/apikey copy", "Copy the API key to clipboard"],
|
|
4894
4895
|
["/apikey new", "Rotate to a new API key (regenerate)"],
|
|
@@ -5107,6 +5108,7 @@ var CATEGORY_OVERRIDES = {
|
|
|
5107
5108
|
"task-type": "runtime",
|
|
5108
5109
|
tasktype: "runtime",
|
|
5109
5110
|
sponsor: "network",
|
|
5111
|
+
mesh: "network",
|
|
5110
5112
|
expose: "gateway",
|
|
5111
5113
|
access: "network",
|
|
5112
5114
|
host: "network",
|