@namzu/sdk 64.4.0 → 65.1.0
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/CHANGELOG.md +24 -0
- package/dist/agents/explore.d.ts +1 -1
- package/dist/agents/explore.d.ts.map +1 -1
- package/dist/agents/explore.js +3 -2
- package/dist/agents/explore.js.map +1 -1
- package/dist/agents/plan.d.ts +1 -1
- package/dist/agents/plan.d.ts.map +1 -1
- package/dist/agents/plan.js +3 -2
- package/dist/agents/plan.js.map +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts +2 -2
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +39 -44
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/provider/errors.d.ts +10 -0
- package/dist/provider/errors.d.ts.map +1 -1
- package/dist/provider/errors.js +29 -1
- package/dist/provider/errors.js.map +1 -1
- package/dist/provider/fallback.d.ts.map +1 -1
- package/dist/provider/fallback.js +4 -3
- package/dist/provider/fallback.js.map +1 -1
- package/dist/provider/idle-timeout.js +1 -1
- package/dist/provider/idle-timeout.js.map +1 -1
- package/dist/provider/retry.js +1 -1
- package/dist/provider/retry.js.map +1 -1
- package/dist/provider/token-budget.d.ts.map +1 -1
- package/dist/provider/token-budget.js +9 -1
- package/dist/provider/token-budget.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +11 -0
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +93 -13
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/turn/stall-monitor.d.ts +26 -0
- package/dist/runtime/query/turn/stall-monitor.d.ts.map +1 -1
- package/dist/runtime/query/turn/stall-monitor.js +45 -4
- package/dist/runtime/query/turn/stall-monitor.js.map +1 -1
- package/dist/types/provider/error.d.ts +7 -1
- package/dist/types/provider/error.d.ts.map +1 -1
- package/dist/types/provider/errors.d.ts.map +1 -1
- package/dist/types/provider/errors.js +5 -0
- package/dist/types/provider/errors.js.map +1 -1
- package/dist/types/provider/interface.d.ts +8 -6
- package/dist/types/provider/interface.d.ts.map +1 -1
- package/dist/types/session/records.d.ts +6 -0
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +11 -1
- package/dist/types/session/records.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/explore.ts +3 -2
- package/src/agents/plan.ts +3 -2
- package/src/prompt/coding-agent-doctrine.ts +40 -45
- package/src/provider/errors.ts +32 -1
- package/src/provider/fallback.ts +4 -3
- package/src/provider/idle-timeout.ts +1 -1
- package/src/provider/retry.ts +1 -1
- package/src/provider/token-budget.ts +9 -1
- package/src/runtime/query/iteration/index.ts +105 -16
- package/src/runtime/query/turn/stall-monitor.ts +55 -4
- package/src/types/provider/error.ts +6 -0
- package/src/types/provider/errors.ts +5 -0
- package/src/types/provider/interface.ts +8 -6
- package/src/types/session/records.ts +11 -1
|
@@ -183,15 +183,17 @@ export interface LLMProvider {
|
|
|
183
183
|
* Whether `model` takes a forced tool choice (`toolChoice: 'required'` or a
|
|
184
184
|
* named function) under the thinking configuration the request will carry.
|
|
185
185
|
*
|
|
186
|
-
* The kernel asks before
|
|
187
|
-
* and when the answer is `
|
|
188
|
-
*
|
|
186
|
+
* The kernel asks before a guard requires a tool call on a step it wants to
|
|
187
|
+
* act, and sends a forced choice only when the answer is `true` and the
|
|
188
|
+
* request does not turn thinking on. Otherwise it keeps the step at low effort
|
|
189
|
+
* and asks the model in words. `effort`
|
|
189
190
|
* is the level the request will carry, for a driver where the level also
|
|
190
191
|
* decides whether thinking is on (a provider that does not need it ignores
|
|
191
192
|
* it). Optional:
|
|
192
|
-
* a provider that does not declare it is
|
|
193
|
-
*
|
|
194
|
-
* forwards it
|
|
193
|
+
* a provider that does not declare it is not sent a guard's forced choice (the
|
|
194
|
+
* words are used). A host's own `toolChoice` is sent as given. A wrapper that
|
|
195
|
+
* rebuilds a provider forwards it; a chain answers `true` only when every
|
|
196
|
+
* member does.
|
|
195
197
|
*/
|
|
196
198
|
acceptsForcedToolChoiceFor?(
|
|
197
199
|
model: string,
|
|
@@ -210,7 +210,17 @@ const platformError = z
|
|
|
210
210
|
/** The provider's own classification; its fields are owned by `types/provider/error.ts`. */
|
|
211
211
|
const providerError = z
|
|
212
212
|
.object({
|
|
213
|
-
kind: z.enum([
|
|
213
|
+
kind: z.enum([
|
|
214
|
+
'throttle',
|
|
215
|
+
'network',
|
|
216
|
+
'auth',
|
|
217
|
+
'context_overflow',
|
|
218
|
+
'bad_request',
|
|
219
|
+
'server',
|
|
220
|
+
'credits',
|
|
221
|
+
'moderation',
|
|
222
|
+
'no_endpoints',
|
|
223
|
+
]),
|
|
214
224
|
providerId: text,
|
|
215
225
|
})
|
|
216
226
|
.passthrough()
|