@coltonkirsten/a12s 0.10.0 → 0.11.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.
@@ -245,6 +245,8 @@ export interface ServiceStatus {
245
245
  waiting?: Waiting;
246
246
  image: string;
247
247
  pin?: string;
248
+ /** The host the proxy dials an external Service at; it has no image or pin then. */
249
+ external?: string;
248
250
  generation: number;
249
251
  restarts: number;
250
252
  health?: string;
@@ -404,8 +406,22 @@ export interface TurnFinishedData {
404
406
  tokens?: TokenUsage;
405
407
  /** Claude Code's fast mode for the Turn, when the CLI reported it. `usage.speed` says how the Turn ran. */
406
408
  fastMode?: FastMode;
409
+ /** Claude Code: the model ids that answered the agent's own calls in the Turn, in order. */
410
+ models?: string[];
411
+ /** Claude Code: each response a model refused, and the model that re-ran it when there was a fallback. */
412
+ refusals?: Refusal[];
407
413
  error?: string;
408
414
  }
415
+ /**
416
+ * `scope` "session": the agent's own response fell back, and a12s sets the configured model back when the Turn ends.
417
+ * "local": one sub-agent's response did.
418
+ */
419
+ export interface Refusal {
420
+ model: string;
421
+ category: string | null;
422
+ fallbackModel?: string;
423
+ scope?: "session" | "local";
424
+ }
409
425
  /** `state` is "on", "off" or "cooldown"; `disabledReason` (e.g. "extra_usage_disabled") says why it is not on. */
410
426
  export interface FastMode {
411
427
  state: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coltonkirsten/a12s",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript client for a12s: send work to agent Computers, stream their events and Turns, in Node or the browser",
5
5
  "license": "MIT",
6
6
  "type": "module",