@sentropic/h2a-runtime 0.97.5 → 0.97.7
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/llm-gateway-runtime/index.d.ts.map +1 -1
- package/dist/llm-gateway-runtime/index.js +2 -1
- package/dist/llm-gateway-runtime/index.js.map +1 -1
- package/dist/llm-mesh.d.ts +15 -2
- package/dist/llm-mesh.d.ts.map +1 -1
- package/dist/llm-mesh.js +26 -1
- package/dist/llm-mesh.js.map +1 -1
- package/dist/native-terminal/host.d.ts.map +1 -1
- package/dist/native-terminal/host.js +18 -0
- package/dist/native-terminal/host.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1425,7 +1425,7 @@ async function injectLlmMeshGatewayEnv(mode = "auto", allowDirectFallback = true
|
|
|
1425
1425
|
delete process.env.ANTHROPIC_BASE_URL;
|
|
1426
1426
|
delete process.env.ANTHROPIC_AUTH_TOKEN;
|
|
1427
1427
|
if (mode === "gateway") {
|
|
1428
|
-
throw new Error("llm-mesh gateway is required but unavailable; no agent was started. Run `h2a llm-mesh start` or `h2a llm-mesh account enroll codex|cloud-code` first");
|
|
1428
|
+
throw new Error("llm-mesh gateway is required but unavailable; no agent was started. Run `h2a llm-mesh start` or `h2a llm-mesh account enroll codex|cloud-code|muse` first");
|
|
1429
1429
|
}
|
|
1430
1430
|
if (allowDirectFallback) {
|
|
1431
1431
|
process.stderr.write("[h2a] llm-mesh: gateway unavailable; continuing with native authentication.\n");
|
|
@@ -1507,7 +1507,7 @@ function renderNativeRestartResult(result, json) {
|
|
|
1507
1507
|
export async function prepareStructuredGateway(mode, inject = (selectedMode) => injectLlmMeshGatewayEnv(selectedMode, selectedMode !== "gateway")) {
|
|
1508
1508
|
const gateway = await inject(mode);
|
|
1509
1509
|
if (mode === "gateway" && !gateway) {
|
|
1510
|
-
throw new Error("llm-mesh gateway is required but unavailable; no agent was started. Run `h2a llm-mesh start` or `h2a llm-mesh account enroll codex|cloud-code` first");
|
|
1510
|
+
throw new Error("llm-mesh gateway is required but unavailable; no agent was started. Run `h2a llm-mesh start` or `h2a llm-mesh account enroll codex|cloud-code|muse` first");
|
|
1511
1511
|
}
|
|
1512
1512
|
return gateway;
|
|
1513
1513
|
}
|
|
@@ -7398,12 +7398,12 @@ export async function main(argv) {
|
|
|
7398
7398
|
llmMeshAccountCommand
|
|
7399
7399
|
.command("enroll <provider>")
|
|
7400
7400
|
.description("Enroll through the sentropic-owned OAuth state machine " +
|
|
7401
|
-
"(cloud-code or
|
|
7401
|
+
"(cloud-code, codex, or muse CLI-store import)")
|
|
7402
7402
|
.option("--config-ref <ref>", "sentropic configuration reference for OAuth")
|
|
7403
7403
|
.action(async (provider, opts) => {
|
|
7404
|
-
if (provider !== "cloud-code" && provider !== "codex") {
|
|
7404
|
+
if (provider !== "cloud-code" && provider !== "codex" && provider !== "muse") {
|
|
7405
7405
|
process.stderr.write(`[h2a] llm-mesh account: unsupported provider "${provider}". ` +
|
|
7406
|
-
"Supported: cloud-code, codex\n");
|
|
7406
|
+
"Supported: cloud-code, codex, muse\n");
|
|
7407
7407
|
process.exitCode = 1;
|
|
7408
7408
|
return;
|
|
7409
7409
|
}
|