runbios-sdk 0.2.17-dev.268 → 0.2.17-rc.266
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.d.ts +6 -10
- package/dist/client.js +7 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/inference.js +1 -1
- package/dist/resources/loop.d.ts +0 -5
- package/dist/resources/loop.js +0 -5
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -118,18 +118,14 @@ export type CapacityUnavailableError = GpuRejectionError;
|
|
|
118
118
|
* Machine codes the services answer with while a surface is pre-launch
|
|
119
119
|
* (HTTP 403): TRAINING_COMING_SOON from POST /api/training/jobs,
|
|
120
120
|
* DATASETS_COMING_SOON from the dataset creation endpoints (upload,
|
|
121
|
-
* uploads/initiate, register-hf, integration import)
|
|
122
|
-
* from EVERY Conscious Loop route (`client.loop.*`) where the loop is not
|
|
123
|
-
* offered — it is offered on the development environment only.
|
|
121
|
+
* uploads/initiate, register-hf, integration import).
|
|
124
122
|
*/
|
|
125
|
-
export declare const COMING_SOON_CODES: readonly ["TRAINING_COMING_SOON", "DATASETS_COMING_SOON"
|
|
123
|
+
export declare const COMING_SOON_CODES: readonly ["TRAINING_COMING_SOON", "DATASETS_COMING_SOON"];
|
|
126
124
|
/**
|
|
127
|
-
* Raised when a pre-launch surface rejects a call: fine-tuning and
|
|
128
|
-
* launch soon, so training.create and dataset upload/import/register
|
|
129
|
-
* with one of {@link COMING_SOON_CODES}
|
|
130
|
-
* (list, get, status, stop, resume, delete, preview) are unaffected.
|
|
131
|
-
* Conscious Loop is offered on the development environment only; everywhere
|
|
132
|
-
* else EVERY `client.loop.*` method, reads included, answers LOOP_COMING_SOON.
|
|
125
|
+
* Raised when a pre-launch surface rejects a creation call: fine-tuning and
|
|
126
|
+
* datasets launch soon, so training.create and dataset upload/import/register
|
|
127
|
+
* answer 403 with one of {@link COMING_SOON_CODES}. Read and lifecycle methods
|
|
128
|
+
* (list, get, status, stop, resume, delete, preview) are unaffected.
|
|
133
129
|
*
|
|
134
130
|
* The service is the authority: the SDK never blocks client-side, so when the
|
|
135
131
|
* gate lifts at launch every SDK version works again without an upgrade. This
|
package/dist/client.js
CHANGED
|
@@ -171,18 +171,14 @@ export const CapacityUnavailableError = GpuRejectionError;
|
|
|
171
171
|
* Machine codes the services answer with while a surface is pre-launch
|
|
172
172
|
* (HTTP 403): TRAINING_COMING_SOON from POST /api/training/jobs,
|
|
173
173
|
* DATASETS_COMING_SOON from the dataset creation endpoints (upload,
|
|
174
|
-
* uploads/initiate, register-hf, integration import)
|
|
175
|
-
* from EVERY Conscious Loop route (`client.loop.*`) where the loop is not
|
|
176
|
-
* offered — it is offered on the development environment only.
|
|
174
|
+
* uploads/initiate, register-hf, integration import).
|
|
177
175
|
*/
|
|
178
|
-
export const COMING_SOON_CODES = ['TRAINING_COMING_SOON', 'DATASETS_COMING_SOON'
|
|
176
|
+
export const COMING_SOON_CODES = ['TRAINING_COMING_SOON', 'DATASETS_COMING_SOON'];
|
|
179
177
|
/**
|
|
180
|
-
* Raised when a pre-launch surface rejects a call: fine-tuning and
|
|
181
|
-
* launch soon, so training.create and dataset upload/import/register
|
|
182
|
-
* with one of {@link COMING_SOON_CODES}
|
|
183
|
-
* (list, get, status, stop, resume, delete, preview) are unaffected.
|
|
184
|
-
* Conscious Loop is offered on the development environment only; everywhere
|
|
185
|
-
* else EVERY `client.loop.*` method, reads included, answers LOOP_COMING_SOON.
|
|
178
|
+
* Raised when a pre-launch surface rejects a creation call: fine-tuning and
|
|
179
|
+
* datasets launch soon, so training.create and dataset upload/import/register
|
|
180
|
+
* answer 403 with one of {@link COMING_SOON_CODES}. Read and lifecycle methods
|
|
181
|
+
* (list, get, status, stop, resume, delete, preview) are unaffected.
|
|
186
182
|
*
|
|
187
183
|
* The service is the authority: the SDK never blocks client-side, so when the
|
|
188
184
|
* gate lifts at launch every SDK version works again without an upgrade. This
|
|
@@ -344,7 +340,7 @@ export class HttpClient {
|
|
|
344
340
|
constructor(config) {
|
|
345
341
|
// Default host stays api.runbios.ai for now; cutover to api.runbios.ai is
|
|
346
342
|
// planned once its DNS exists.
|
|
347
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-
|
|
343
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
348
344
|
this.apiKey = config.apiKey ?? envApiKey();
|
|
349
345
|
this.accessToken = config.accessToken;
|
|
350
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.17-
|
|
39
|
+
export declare const VERSION = "0.2.17-rc.266";
|
|
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.17-
|
|
39
|
+
export const VERSION = '0.2.17-rc.266';
|
|
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-
|
|
339
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
340
340
|
this.timeout = config.timeout ?? 900_000;
|
|
341
341
|
this._http = http;
|
|
342
342
|
}
|
package/dist/resources/loop.d.ts
CHANGED
|
@@ -12,11 +12,6 @@ import type { LoopTrace, LoopTraceListResponse, LoopTraceListParams, LoopCapture
|
|
|
12
12
|
* deliberately absent from the Read Only preset, because what they return is
|
|
13
13
|
* your raw prompts and completions rather than catalog metadata.
|
|
14
14
|
*
|
|
15
|
-
* Offered on the development environment only for now. Anywhere else every
|
|
16
|
-
* method here, reads included, rejects with a `ComingSoonError` whose
|
|
17
|
-
* `code` is `LOOP_COMING_SOON` (HTTP 403): a deliberate product state, not an
|
|
18
|
-
* outage, so retrying cannot succeed there.
|
|
19
|
-
*
|
|
20
15
|
* @example
|
|
21
16
|
* ```ts
|
|
22
17
|
* // 1. Decide that this source is recorded.
|
package/dist/resources/loop.js
CHANGED
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
* deliberately absent from the Read Only preset, because what they return is
|
|
11
11
|
* your raw prompts and completions rather than catalog metadata.
|
|
12
12
|
*
|
|
13
|
-
* Offered on the development environment only for now. Anywhere else every
|
|
14
|
-
* method here, reads included, rejects with a `ComingSoonError` whose
|
|
15
|
-
* `code` is `LOOP_COMING_SOON` (HTTP 403): a deliberate product state, not an
|
|
16
|
-
* outage, so retrying cannot succeed there.
|
|
17
|
-
*
|
|
18
13
|
* @example
|
|
19
14
|
* ```ts
|
|
20
15
|
* // 1. Decide that this source is recorded.
|
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-
|
|
11
|
+
/** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api-staging.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-
|
|
17
|
+
/** Inference base URL. Defaults to baseUrl, then https://api-staging.runbios.ai. */
|
|
18
18
|
inferenceBaseUrl?: string;
|
|
19
19
|
/** End-to-end inference timeout in milliseconds. Defaults to 15 minutes. */
|
|
20
20
|
inferenceTimeout?: number;
|