daishi-sdk 0.2.0 → 0.2.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.
@@ -19,7 +19,7 @@ export interface ErrorBody {
19
19
  /** On 401 and 403: where the developer docs are. */
20
20
  docs?: string;
21
21
  }
22
- /** A run record. Null fields fill in as the run launches, plays and ends. */
22
+ /** A run record. Null fields fill in as the run launches, plays and ends. `resumes` lists every time a new server release picked the run up mid-match (oldest first, with the round the world was at): the world and the meter carried over, each seat’s own memory of the earlier rounds did not, so a resumed run is a different condition from one played in one release; the match archive carries the same list under `config.run.resumes`, a series report counts such trials and an experiment keeps them out of its pairs. */
23
23
  export interface Run {
24
24
  run_id: string;
25
25
  name: string;
@@ -48,6 +48,7 @@ export interface Run {
48
48
  created_at_ms: number;
49
49
  started_at_ms: number | null;
50
50
  ended_at_ms: number | null;
51
+ resumes: RunResume[];
51
52
  priority: number;
52
53
  max_spend_usd: number | null;
53
54
  spend_usd: number;
@@ -102,6 +103,7 @@ export interface BatchReport {
102
103
  trials: number;
103
104
  finished: number;
104
105
  failed: number;
106
+ resumed: number;
105
107
  scored: number;
106
108
  unscored: number;
107
109
  pending: number;
@@ -385,6 +387,10 @@ export interface RunExperiment {
385
387
  id: string;
386
388
  arm: number;
387
389
  }
390
+ export interface RunResume {
391
+ at_ms: number;
392
+ tick: number;
393
+ }
388
394
  export interface RunLive {
389
395
  phase: string;
390
396
  tick: number;
@@ -453,6 +459,7 @@ export interface BatchReportPoint {
453
459
  spawn_seed: number | null;
454
460
  match_id: string | null;
455
461
  frame: 'monitored' | 'neutral' | null;
462
+ resumed_at: number[];
456
463
  agents: BatchReportPointAgent[] | null;
457
464
  }
458
465
  export interface BatchReportPointAgent {
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.0";
3
+ export declare const VERSION = "0.2.1";
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.0';
3
+ export const VERSION = '0.2.1';
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.0",
3
+ "version": "0.2.1",
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",