daishi-sdk 0.2.24 → 0.2.25

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.
@@ -627,10 +627,34 @@ export interface RunScenario {
627
627
  }
628
628
  export interface RunSeat {
629
629
  name: string;
630
+ /** The model id in its route’s namespace; `guest` on an invited seat. */
630
631
  model: string;
632
+ /** The inference route. Absent on a seat that runs through OpenRouter, the default. */
633
+ provider?: string;
634
+ /** Whose key fielded the seat, stamped at launch: your own stored key or the platform’s. Absent until the run starts. */
635
+ keySource?: 'user' | 'platform';
636
+ /** Who pays for the seat’s inference, stamped at launch. */
637
+ funding?: 'user' | 'sponsored';
638
+ /** The reasoning effort the seat was launched with. */
639
+ reasoning?: 'off' | 'low' | 'medium' | 'high';
640
+ temperature?: number;
641
+ /** How the seat’s model expresses its actions: tool calls (the default, when absent) or a text JSON block. */
642
+ format?: 'tools' | 'json';
643
+ instructions?: string;
644
+ skills?: RunSeatSkill[];
645
+ /** True on a guest seat, which a peer’s own agent plays on the peer’s keys. */
646
+ invited?: boolean;
647
+ driver?: 'guest';
648
+ /** On a guest seat: the id of its line in `invites`. */
649
+ invite_id?: string;
631
650
  max_tokens: number | null;
632
651
  usage: JsonObject | null;
633
652
  }
653
+ export interface RunSeatSkill {
654
+ id: string;
655
+ name: string;
656
+ text: string;
657
+ }
634
658
  export interface RunGuests {
635
659
  seats_total: number;
636
660
  seats_claimed: number;
@@ -1215,10 +1239,30 @@ export interface Env {
1215
1239
  /** The witness knob. true: an attack, raid or theft with no co-located witness leaves the public aggression counter alone; false: forces it off; omitted: the scenario’s setting (off in the base world). Recorded in the effective modifiers and the recipe hash, so a run with it on and its control with it off are two recipes. The match’s witness report (GET /api/matches/:id/behavior, witness) reads each seat’s harm against its chances to harm unseen and seen. */
1216
1240
  unwitnessed_anonymity?: boolean;
1217
1241
  /** Per resource (wood, stone, food, ore, relics): { max?, regen? } multipliers of the base world definition, 0 to 10, where 1 is the base. */
1218
- resources?: JsonObject;
1242
+ resources?: Resources;
1219
1243
  /** Baseline bot policy ids or one population id (expands to its members). [] means none. At most 8 bots after expansion; see the anchors endpoint for the live list. */
1220
1244
  anchors?: string[];
1221
1245
  }
1246
+ /** Per resource (wood, stone, food, ore, relics): { max?, regen? } multipliers of the base world definition, 0 to 10, where 1 is the base. */
1247
+ export interface Resources {
1248
+ /** Multipliers for wood. */
1249
+ wood?: ResourceMultipliers;
1250
+ /** Multipliers for stone. */
1251
+ stone?: ResourceMultipliers;
1252
+ /** Multipliers for food. */
1253
+ food?: ResourceMultipliers;
1254
+ /** Multipliers for ore. */
1255
+ ore?: ResourceMultipliers;
1256
+ /** Multipliers for relics. */
1257
+ relics?: ResourceMultipliers;
1258
+ }
1259
+ /** Multipliers for wood. */
1260
+ export interface ResourceMultipliers {
1261
+ /** Multiplier of the most a pool holds. Clamped to 0 through 10. */
1262
+ max?: number;
1263
+ /** Multiplier of how fast a pool regrows. Clamped to 0 through 10. */
1264
+ regen?: number;
1265
+ }
1222
1266
  /** Board games only: the protocol. Every field is optional; an unknown one is refused (known: opening, max_plies, move_timeout_ms, illegal_move_retries, seed). */
1223
1267
  export interface RunBodyArena {
1224
1268
  /** How the game starts: the standard position, or a book opening of plies random legal half-moves (0 to 10) before the seats take over. Default: chess a 4-ply book, Connect Four standard. */
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Operations, type ErrorCode, type GetBatchResponse, type GetExperimentResponse, type GetRunResponse, type Method, type RequestParts } from './generated.js';
2
2
  export * from './generated.js';
3
- export declare const VERSION = "0.2.24";
3
+ export declare const VERSION = "0.2.25";
4
4
  export declare const DEFAULT_BASE_URL = "https://daishi.ai/api/v1";
5
5
  export interface DaishiOptions {
6
6
  /** A Studio access token (`dsk_...`). Default: the `DAISHI_TOKEN` environment variable. */
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Operations } from './generated.js';
2
2
  export * from './generated.js';
3
- export const VERSION = '0.2.24';
3
+ export const VERSION = '0.2.25';
4
4
  export const DEFAULT_BASE_URL = 'https://daishi.ai/api/v1';
5
5
  /** A refusal from the API, or a transport failure after the retries ran out. */
6
6
  export class DaishiError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daishi-sdk",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "Typed client for the Daishi Studio API: scenarios, runs, series batches and paired experiments, with retries and waiting helpers.",
5
5
  "keywords": [
6
6
  "daishi",