runbios-sdk 0.2.1-dev.135 → 0.2.1-dev.137

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/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
36
36
  * SDK version. Sent as part of the User-Agent header.
37
37
  * Must match package.json "version" -- enforced by a contract test.
38
38
  */
39
- export declare const VERSION = "0.2.1-dev.135";
39
+ export declare const VERSION = "0.2.1-dev.137";
40
40
  export declare class RunBiOS {
41
41
  /** Search models, fetch configs, check adapter compatibility. */
42
42
  readonly models: Models;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
36
36
  * SDK version. Sent as part of the User-Agent header.
37
37
  * Must match package.json "version" -- enforced by a contract test.
38
38
  */
39
- export const VERSION = '0.2.1-dev.135';
39
+ export const VERSION = '0.2.1-dev.137';
40
40
  export class RunBiOS {
41
41
  /** Search models, fetch configs, check adapter compatibility. */
42
42
  models;
@@ -415,8 +415,9 @@ export declare class Loop {
415
415
  */
416
416
  agentStatus(): Promise<LoopAgentStatus>;
417
417
  /**
418
- * Turn the agent on: mints the workspace's managed serverless key. After
419
- * this, automatic judges and sample runs make model calls billed to the
418
+ * Turn the agent on: mints the workspace's managed serverless key and
419
+ * resumes the automatic judges a previous turn-off paused. After this,
420
+ * automatic judges and sample runs make model calls billed to the
420
421
  * workspace. Idempotent.
421
422
  *
422
423
  * `monthly_spend_cap_cents` caps what that key may spend on model calls in
@@ -430,9 +431,11 @@ export declare class Loop {
430
431
  monthly_spend_cap_cents?: number;
431
432
  }): Promise<LoopAgentCredential>;
432
433
  /**
433
- * Turn the agent off: revokes its key and sets every automatic judge back to
434
- * manual. Open runs stop where they are and continue if it is turned back
435
- * on. Nothing already scored or written is removed.
434
+ * Turn the agent off: revokes its key and pauses every automatic judge in
435
+ * the workspace (`judges_paused`; each judge shows `auto_paused`). Turning
436
+ * it back on resumes exactly those judges. Open runs stop where they are
437
+ * and continue if it is turned back on. Nothing already scored or written
438
+ * is removed.
436
439
  */
437
440
  disableAgent(): Promise<{
438
441
  revoked: boolean;
@@ -586,8 +586,9 @@ export class Loop {
586
586
  return this._http.fetchGet('/api/loop/agent');
587
587
  }
588
588
  /**
589
- * Turn the agent on: mints the workspace's managed serverless key. After
590
- * this, automatic judges and sample runs make model calls billed to the
589
+ * Turn the agent on: mints the workspace's managed serverless key and
590
+ * resumes the automatic judges a previous turn-off paused. After this,
591
+ * automatic judges and sample runs make model calls billed to the
591
592
  * workspace. Idempotent.
592
593
  *
593
594
  * `monthly_spend_cap_cents` caps what that key may spend on model calls in
@@ -605,9 +606,11 @@ export class Loop {
605
606
  return res.credential;
606
607
  }
607
608
  /**
608
- * Turn the agent off: revokes its key and sets every automatic judge back to
609
- * manual. Open runs stop where they are and continue if it is turned back
610
- * on. Nothing already scored or written is removed.
609
+ * Turn the agent off: revokes its key and pauses every automatic judge in
610
+ * the workspace (`judges_paused`; each judge shows `auto_paused`). Turning
611
+ * it back on resumes exactly those judges. Open runs stop where they are
612
+ * and continue if it is turned back on. Nothing already scored or written
613
+ * is removed.
611
614
  */
612
615
  async disableAgent() {
613
616
  return this._http.fetchDelete('/api/loop/agent');
package/dist/types.d.ts CHANGED
@@ -2243,10 +2243,27 @@ export interface LoopImportResult {
2243
2243
  */
2244
2244
  reviewed: number;
2245
2245
  needs_review: number;
2246
+ /**
2247
+ * How many rows could not be READ as a conversation. The file's shape is
2248
+ * wrong, and changing the file is what fixes it.
2249
+ */
2246
2250
  refused: number;
2251
+ /**
2252
+ * How many rows were understood and then could not be stored. Counted apart
2253
+ * from `refused`, because the two are different claims and rewriting a file
2254
+ * that was already correct fixes nothing. A call with any of these fails
2255
+ * rather than succeeding, and the failure carries these same fields.
2256
+ */
2257
+ not_saved?: number;
2247
2258
  /** How many rows of each recognised shape, so a mis-shaped file is visible. */
2248
2259
  by_shape: Record<string, number>;
2249
2260
  refused_why: Record<string, number>;
2261
+ /**
2262
+ * The conversations this call created, in file order. Without them a caller
2263
+ * whose import half-failed has a number and no way to reach what landed: no
2264
+ * way to label it, review it, or delete it and start again.
2265
+ */
2266
+ trace_ids?: string[];
2250
2267
  notes: string[];
2251
2268
  }
2252
2269
  export interface LoopSignal {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbios-sdk",
3
- "version": "0.2.1-dev.135",
3
+ "version": "0.2.1-dev.137",
4
4
  "description": "Official TypeScript SDK for the Run BiOS training and deployment platform API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",