runbios-sdk 0.2.15 → 0.2.16-dev.262

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/client.js CHANGED
@@ -340,7 +340,7 @@ export class HttpClient {
340
340
  constructor(config) {
341
341
  // Default host stays api.runbios.ai for now; cutover to api.runbios.ai is
342
342
  // planned once its DNS exists.
343
- this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api.runbios.ai').replace(/\/+$/, '');
343
+ this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-dev.runbios.ai').replace(/\/+$/, '');
344
344
  this.apiKey = config.apiKey ?? envApiKey();
345
345
  this.accessToken = config.accessToken;
346
346
  this.orgId = config.orgId;
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.15";
39
+ export declare const VERSION = "0.2.16-dev.262";
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.15';
39
+ export const VERSION = '0.2.16-dev.262';
40
40
  export class RunBiOS {
41
41
  /** Search models, fetch configs, check adapter compatibility. */
42
42
  models;
@@ -336,7 +336,7 @@ export class Inference {
336
336
  this.key = config.inferenceKey || envInferenceKey() || envApiKey();
337
337
  // Same default host as HttpClient (api.runbios.ai); api.runbios.ai cutover
338
338
  // is planned once its DNS exists — update both call sites together.
339
- this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api.runbios.ai').replace(/\/+$/, '');
339
+ this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-dev.runbios.ai').replace(/\/+$/, '');
340
340
  this.timeout = config.timeout ?? 900_000;
341
341
  this._http = http;
342
342
  }
@@ -225,9 +225,17 @@ export declare class Loop {
225
225
  * A label may name a `parent`, which is what makes a MASTER GROUP: labelling
226
226
  * something `refunds` with parent `billing` makes it selectable as either,
227
227
  * and selecting `billing` later gathers every child without you maintaining
228
- * a list of them.
228
+ * a list of them. The parent applies to the bare `labels` only: sent with
229
+ * `attributes` and no labels it would group nothing, and is refused.
230
+ *
231
+ * Leave `parent` out and a label the conversation already carries keeps
232
+ * the group it has: re-running `label(id, ['refunds'])` does not take
233
+ * `refunds` out of `billing`. Pass `''` to take the labels out of their
234
+ * group; the labels themselves stay.
229
235
  *
230
236
  * Labels are lowercased and trimmed, so `Refunds` and `refunds` are one label.
237
+ * A conversation carries at most 32 across every dimension; a label it
238
+ * already has does not count again.
231
239
  */
232
240
  label(traceId: string, labels: string[], parent?: string, attributes?: Record<string, string>): Promise<LoopLabel[]>;
233
241
  /**
@@ -288,9 +288,17 @@ export class Loop {
288
288
  * A label may name a `parent`, which is what makes a MASTER GROUP: labelling
289
289
  * something `refunds` with parent `billing` makes it selectable as either,
290
290
  * and selecting `billing` later gathers every child without you maintaining
291
- * a list of them.
291
+ * a list of them. The parent applies to the bare `labels` only: sent with
292
+ * `attributes` and no labels it would group nothing, and is refused.
293
+ *
294
+ * Leave `parent` out and a label the conversation already carries keeps
295
+ * the group it has: re-running `label(id, ['refunds'])` does not take
296
+ * `refunds` out of `billing`. Pass `''` to take the labels out of their
297
+ * group; the labels themselves stay.
292
298
  *
293
299
  * Labels are lowercased and trimmed, so `Refunds` and `refunds` are one label.
300
+ * A conversation carries at most 32 across every dimension; a label it
301
+ * already has does not count again.
294
302
  */
295
303
  async label(traceId, labels, parent, attributes) {
296
304
  const res = await this._http.fetchPost(`/api/loop/traces/${encodeURIComponent(traceId)}/labels`, { labels, parent, attributes });
package/dist/types.d.ts CHANGED
@@ -8,13 +8,13 @@ export interface BiOSConfig {
8
8
  orgId?: string;
9
9
  /** Workspace ID. Optional when using API keys (resolved from the key). Can override for multi-workspace keys. */
10
10
  workspaceId?: string;
11
- /** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api.runbios.ai hostname. */
11
+ /** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api-dev.runbios.ai hostname. */
12
12
  baseUrl?: string;
13
13
  /** Request timeout in milliseconds. Defaults to 30000. */
14
14
  timeout?: number;
15
15
  /** Default per-deployment inference key. Can be overridden per inference call. */
16
16
  inferenceKey?: string;
17
- /** Inference base URL. Defaults to baseUrl, then https://api.runbios.ai. */
17
+ /** Inference base URL. Defaults to baseUrl, then https://api-dev.runbios.ai. */
18
18
  inferenceBaseUrl?: string;
19
19
  /** End-to-end inference timeout in milliseconds. Defaults to 15 minutes. */
20
20
  inferenceTimeout?: number;
@@ -2571,7 +2571,11 @@ export interface LoopSignalParams {
2571
2571
  labels?: string[];
2572
2572
  /** The same, by dimension: `{ category: 'billing' }`. */
2573
2573
  attributes?: Record<string, string>;
2574
- /** The master group the bare labels belong to. */
2574
+ /**
2575
+ * The master group the bare labels belong to. Left out, a label the
2576
+ * conversation already carries keeps its group; `''` takes the labels out
2577
+ * of their group.
2578
+ */
2575
2579
  parent?: string;
2576
2580
  }
2577
2581
  export interface LoopTrace {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbios-sdk",
3
- "version": "0.2.15",
3
+ "version": "0.2.16-dev.262",
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",