@makinbakin/sdk 0.0.1-rc.27 → 0.0.1-rc.29

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.
@@ -14,9 +14,8 @@ interface Return {
14
14
  /**
15
15
  * Resize a right-anchored panel by dragging its left edge. The handle lives at
16
16
  * the left of the element; dragging left grows the panel, dragging right
17
- * shrinks it. Keyboard: ArrowLeft/ArrowRight (Shift for a larger step). The
18
- * companion to {@link useVerticalResize} for side-by-side split panes; both are
19
- * thin wrappers over {@link useResizablePane}.
17
+ * shrinks it. Keyboard: ArrowLeft/ArrowRight (Shift for a larger step).
18
+ * Thin wrapper over {@link useResizablePane} for side-by-side split panes.
20
19
  */
21
20
  export declare function useHorizontalResize({ defaultWidth, minWidth, maxWidth, storageKey }: Options): Return;
22
21
  export {};
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Shared core for the two split-pane resize hooks. A pane is anchored to the
2
+ * Shared split-pane resize behavior. A pane is anchored to the
3
3
  * trailing edge (bottom for 'y', right for 'x') and resized by dragging the
4
4
  * divider on its leading edge — dragging toward that edge (up / left) grows it.
5
- * {@link useVerticalResize} and {@link useHorizontalResize} are thin wrappers;
5
+ * {@link useHorizontalResize} provides the right-anchored panel wrapper;
6
6
  * keep all drag / persistence / a11y logic here so it lives in exactly one place.
7
7
  */
8
8
  export type ResizeAxis = 'x' | 'y';
@@ -237,7 +237,9 @@ export type ChatChunk =
237
237
  data?: RuntimeMetadata;
238
238
  usage?: MessageUsage;
239
239
  }
240
- /** Terminal failure — `data.kind` carries the RuntimeError kind when known. */
240
+ /** Terminal failure — `data.kind` carries the RuntimeError kind when known;
241
+ * `data.model` names the qualified model id when the failure was the
242
+ * provider rejecting that model (kind 'model_not_supported', #852). */
241
243
  | {
242
244
  type: 'error';
243
245
  content?: string;
@@ -832,6 +834,18 @@ export interface AgentRuntimeAdapter {
832
834
  listAvailable(opts?: {
833
835
  includeUnavailable?: boolean;
834
836
  }): Promise<RuntimeAvailableModel[]>;
837
+ /**
838
+ * OPTIONAL capability (#852): verify the ACCOUNT can actually call this
839
+ * model by firing a minimal (~1-token) completion. Resolves on success;
840
+ * rejects with a typed RuntimeError — `model_not_supported` when the
841
+ * provider rejected the model id itself. Adapters without a cheap probe
842
+ * transport OMIT the member; callers feature-detect (`models.probe?.`).
843
+ * Billed (~pennies) and user-triggered only — never called on a
844
+ * schedule or from background refresh paths.
845
+ */
846
+ probe?(modelId: string, opts?: {
847
+ signal?: AbortSignal;
848
+ }): Promise<void>;
835
849
  /** Static declaration of which routing-policy fields this runtime honors. */
836
850
  routingSupport(): RuntimeRoutingSupport;
837
851
  /** The runtime's current routing policy (unsupported fields empty). */
@@ -18,6 +18,13 @@ export type RuntimeErrorKind =
18
18
  | 'provider_cooldown'
19
19
  /** Structured runtime failure (HTTP-status class, CLI exit, protocol). */
20
20
  | 'runtime_failed'
21
+ /**
22
+ * The provider deterministically rejected the MODEL ID for this account
23
+ * (retired/unentitled model — the #852 class). Not a cooldown: waiting
24
+ * never fixes it, so it is never retried. `providerInfo.model` carries the
25
+ * qualified rejected id; core records it as availability evidence.
26
+ */
27
+ | 'model_not_supported'
21
28
  /**
22
29
  * The caller intentionally cancelled the turn (MessageArgs.signal) —
23
30
  * terminal: never retried, never diagnosed, never enters the recovery