@jacobbd/relay-ai 0.12.0 → 0.12.1

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.
@@ -85,7 +85,7 @@ import {
85
85
  translateRequest,
86
86
  upstreamHttpStatus,
87
87
  validateCustomEndpointUrl
88
- } from "./chunk-Z5GL4ALA.js";
88
+ } from "./chunk-7ASGPECN.js";
89
89
 
90
90
  // src/registry/google-model-id.ts
91
91
  var GOOGLE_MODEL_PREFIX = "models/";
@@ -9661,4 +9661,4 @@ export {
9661
9661
  supportsClaudeTransparentMode,
9662
9662
  buildHttpProxyRoutes
9663
9663
  };
9664
- //# sourceMappingURL=chunk-HL3EZ4OU.js.map
9664
+ //# sourceMappingURL=chunk-OYE6YZYP.js.map
@@ -10,7 +10,7 @@ import {
10
10
  supportsManualModels,
11
11
  translateRequest,
12
12
  validateCustomEndpointUrl
13
- } from "./chunk-Z5GL4ALA.js";
13
+ } from "./chunk-7ASGPECN.js";
14
14
 
15
15
  // src/registry/validate-manual-model.ts
16
16
  import { randomUUID } from "crypto";
@@ -149,4 +149,4 @@ export {
149
149
  addManualModel,
150
150
  removeManualModel
151
151
  };
152
- //# sourceMappingURL=chunk-FD5EDSBM.js.map
152
+ //# sourceMappingURL=chunk-UQKYSNDM.js.map
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  addManualModel,
4
4
  removeManualModel
5
- } from "./chunk-FD5EDSBM.js";
5
+ } from "./chunk-UQKYSNDM.js";
6
6
  import {
7
7
  CODEX_APP_AUTO_COMPACT_RATIO,
8
8
  CODEX_APP_PROVIDER_ID,
@@ -148,7 +148,7 @@ import {
148
148
  waitForCodexAppQuit,
149
149
  writeSecureLogLine,
150
150
  zenRegistryStub
151
- } from "./chunk-HL3EZ4OU.js";
151
+ } from "./chunk-OYE6YZYP.js";
152
152
  import {
153
153
  filterTemplates,
154
154
  getTemplateById,
@@ -222,7 +222,7 @@ import {
222
222
  thinkingProviderOptions,
223
223
  upstreamHttpStatus,
224
224
  validateCustomEndpointUrl
225
- } from "./chunk-Z5GL4ALA.js";
225
+ } from "./chunk-7ASGPECN.js";
226
226
  import "./chunk-JIDIH7DS.js";
227
227
 
228
228
  // src/cli.ts
@@ -2990,7 +2990,8 @@ async function writeResponsesStream(fullStream, modelId, write, onDone, onProgre
2990
2990
  toolCallCount: toolStates.length,
2991
2991
  toolNames: toolStates.map((t) => t.name),
2992
2992
  loopDetected,
2993
- errorMessage: msg
2993
+ errorMessage: msg,
2994
+ errorStatus: part.error?.statusCode
2994
2995
  });
2995
2996
  if (is429) {
2996
2997
  writeResponsesRateLimitStream(modelId, msg, write);
@@ -4062,7 +4063,7 @@ function streamOutcome(failure, okStatus) {
4062
4063
  if (!failure) return { outcome: "ok", status: okStatus };
4063
4064
  return {
4064
4065
  outcome: "error",
4065
- status: failure.errorMessage ? upstreamHttpStatus(void 0, failure.errorMessage) : "stream-aborted"
4066
+ status: failure.errorStatus ?? (failure.errorMessage ? upstreamHttpStatus(void 0, failure.errorMessage) : "stream-aborted")
4066
4067
  };
4067
4068
  }
4068
4069
  function protectCodexCompactionParams(body, params, contextWindow) {
@@ -15980,7 +15981,7 @@ Options:
15980
15981
  --trace Write debug logs under ~/.relay-ai/logs/`);
15981
15982
  return 0;
15982
15983
  }
15983
- const { runUiCommand } = await import("./ui-command-J7PTTCM5.js");
15984
+ const { runUiCommand } = await import("./ui-command-QFXKL6HH.js");
15984
15985
  return runUiCommand({ trace: parsed.trace, serverMode: parsed.uiServerMode });
15985
15986
  }
15986
15987
  if (parsed.command === "models") {