@ultimat3/http 27.9.0 → 27.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "27.9.0",
3
+ "version": "27.10.1",
4
4
  "description": "Owned request lifecycle over Bun.serve: router, ordered pipeline, problem+json errors",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@ultimat3/core": "27.9.0",
39
- "@ultimat3/i18n": "27.9.0",
40
- "@ultimat3/schema": "27.9.0",
41
- "@ultimat3/time": "27.9.0"
38
+ "@ultimat3/core": "27.10.1",
39
+ "@ultimat3/i18n": "27.10.1",
40
+ "@ultimat3/schema": "27.10.1",
41
+ "@ultimat3/time": "27.10.1"
42
42
  }
43
43
  }
@@ -133,4 +133,11 @@ export const TIER_4_ERROR_STATUS = {
133
133
  X_AGENT_TOOL_LOOP: 500,
134
134
  // @ultimat3/ai — an agent ran past its declared deadline and was stopped
135
135
  X_AGENT_DEADLINE: 504,
136
+ // @ultimat3/ai — the upstream model answered, and a tool call in the answer is not JSON: a bad
137
+ // gateway answer no retry of the same response changes
138
+ X_LLM_TOOL_ARGUMENTS_INVALID: 502,
139
+ // @ultimat3/ai — a continuation's transcript handle did not pass its screen: the caller's data
140
+ X_AGENT_TRANSCRIPT_INVALID: 422,
141
+ // @ultimat3/ai — the upstream ended a turn with a reason nobody knows and an incomplete answer
142
+ X_AI_PROVIDER_UNEXPECTED: 502,
136
143
  } satisfies Readonly<Record<string, number>>;
package/src/index.ts CHANGED
@@ -66,6 +66,7 @@ export {
66
66
  } from './error-page';
67
67
  export {
68
68
  DEFAULT_STATUS,
69
+ declaredStatusFor,
69
70
  registerErrorStatus,
70
71
  resetErrorStatus,
71
72
  statusFor,