@sylphx/sdk 0.10.4 → 0.10.5
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/health/index.d.ts +681 -0
- package/dist/index.d.ts +17 -17
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.d.ts +3 -0
- package/dist/nextjs/index.mjs +166 -3
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/web-analytics.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7580,8 +7580,8 @@ interface SandboxOptions {
|
|
|
7580
7580
|
env?: Record<string, string>;
|
|
7581
7581
|
/**
|
|
7582
7582
|
* Shared volume mounts from org-level managed volumes.
|
|
7583
|
-
*
|
|
7584
|
-
*
|
|
7583
|
+
* Use volumes created with sharing="shared" when multiple sandboxes need
|
|
7584
|
+
* concurrent filesystem access.
|
|
7585
7585
|
*/
|
|
7586
7586
|
volumeMounts?: Array<{
|
|
7587
7587
|
/** Volume resource ID (from `sylphx volumes list`) */
|
|
@@ -7786,7 +7786,7 @@ declare class SandboxClient {
|
|
|
7786
7786
|
/**
|
|
7787
7787
|
* Create a new sandbox.
|
|
7788
7788
|
*
|
|
7789
|
-
* Platform provisions the
|
|
7789
|
+
* Platform provisions the sandbox runtime, waits for readiness, and returns
|
|
7790
7790
|
* { endpoint, token } once the sandbox is fully ready to accept traffic.
|
|
7791
7791
|
* No client-side polling required.
|
|
7792
7792
|
*/
|
|
@@ -7872,7 +7872,7 @@ declare class SandboxClient {
|
|
|
7872
7872
|
*
|
|
7873
7873
|
* Fire-and-forget batch compute API (Modal-style run-to-completion jobs).
|
|
7874
7874
|
*
|
|
7875
|
-
* Runs are ephemeral
|
|
7875
|
+
* Runs are ephemeral isolated jobs that run to completion. Use them for:
|
|
7876
7876
|
* - ML training folds (walk-forward cross-validation)
|
|
7877
7877
|
* - Data processing pipelines
|
|
7878
7878
|
* - Batch inference
|
|
@@ -7919,11 +7919,11 @@ declare class SandboxClient {
|
|
|
7919
7919
|
*
|
|
7920
7920
|
* ## Architecture
|
|
7921
7921
|
*
|
|
7922
|
-
* - Workers are
|
|
7922
|
+
* - Workers are isolated one-shot runs (backoffLimit: 0, no restarts)
|
|
7923
7923
|
* - Images must be from registry.sylphx.com (scanned, private)
|
|
7924
|
-
* - Volumes: org-level
|
|
7925
|
-
* -
|
|
7926
|
-
* -
|
|
7924
|
+
* - Volumes: org-level volume resources mounted into the run
|
|
7925
|
+
* - single-writer for one active writer at a time
|
|
7926
|
+
* - shared for concurrent runs and shared feature caches
|
|
7927
7927
|
* - Auth: sk_* secret key (server-side only)
|
|
7928
7928
|
* - Quota: 20 concurrent workers per org
|
|
7929
7929
|
*
|
|
@@ -7981,12 +7981,12 @@ interface CreateRunOptions {
|
|
|
7981
7981
|
resources?: RunResourceSpec;
|
|
7982
7982
|
/**
|
|
7983
7983
|
* Hard timeout in seconds (default: 3600 = 1 hour, max: 86400 = 24 hours).
|
|
7984
|
-
*
|
|
7984
|
+
* The platform terminates the run when the deadline is reached (status: 'timeout').
|
|
7985
7985
|
*/
|
|
7986
7986
|
timeoutSeconds?: number;
|
|
7987
7987
|
/**
|
|
7988
7988
|
* Volume mounts from org-level volumeResources.
|
|
7989
|
-
*
|
|
7989
|
+
* Shared volumes allow concurrent access by multiple parallel workers.
|
|
7990
7990
|
*/
|
|
7991
7991
|
volumeMounts?: RunVolumeMount[];
|
|
7992
7992
|
}
|
|
@@ -8094,7 +8094,7 @@ declare class RunHandle {
|
|
|
8094
8094
|
/**
|
|
8095
8095
|
* Fetch captured logs for this worker.
|
|
8096
8096
|
*
|
|
8097
|
-
* - For a running worker: returns live logs streamed from
|
|
8097
|
+
* - For a running worker: returns live logs streamed from the runtime (may be incomplete)
|
|
8098
8098
|
* - For a completed worker: returns the full captured output stored in DB
|
|
8099
8099
|
*
|
|
8100
8100
|
* @example
|
|
@@ -8108,8 +8108,8 @@ declare class RunHandle {
|
|
|
8108
8108
|
/**
|
|
8109
8109
|
* Cancel this worker.
|
|
8110
8110
|
*
|
|
8111
|
-
* - If still pending: immediately cancelled
|
|
8112
|
-
* - If running:
|
|
8111
|
+
* - If still pending: immediately cancelled
|
|
8112
|
+
* - If running: runtime is terminated
|
|
8113
8113
|
* - If already completed: no-op
|
|
8114
8114
|
*/
|
|
8115
8115
|
cancel(): Promise<void>;
|
|
@@ -8131,9 +8131,9 @@ declare class RunHandle {
|
|
|
8131
8131
|
*/
|
|
8132
8132
|
declare const RunsClient: {
|
|
8133
8133
|
/**
|
|
8134
|
-
* Spawn a new worker
|
|
8134
|
+
* Spawn a new worker and return a handle.
|
|
8135
8135
|
*
|
|
8136
|
-
* The
|
|
8136
|
+
* The run is created immediately and starts pulling the image.
|
|
8137
8137
|
* Use the returned handle to `.wait()` for completion or `.cancel()`.
|
|
8138
8138
|
*
|
|
8139
8139
|
* @example
|
|
@@ -8193,9 +8193,9 @@ declare const RunsClient: {
|
|
|
8193
8193
|
/** @deprecated Use RunsClient */
|
|
8194
8194
|
declare const WorkersClient: {
|
|
8195
8195
|
/**
|
|
8196
|
-
* Spawn a new worker
|
|
8196
|
+
* Spawn a new worker and return a handle.
|
|
8197
8197
|
*
|
|
8198
|
-
* The
|
|
8198
|
+
* The run is created immediately and starts pulling the image.
|
|
8199
8199
|
* Use the returned handle to `.wait()` for completion or `.cancel()`.
|
|
8200
8200
|
*
|
|
8201
8201
|
* @example
|
package/dist/index.mjs
CHANGED
|
@@ -10259,7 +10259,7 @@ var SandboxClient = class _SandboxClient {
|
|
|
10259
10259
|
/**
|
|
10260
10260
|
* Create a new sandbox.
|
|
10261
10261
|
*
|
|
10262
|
-
* Platform provisions the
|
|
10262
|
+
* Platform provisions the sandbox runtime, waits for readiness, and returns
|
|
10263
10263
|
* { endpoint, token } once the sandbox is fully ready to accept traffic.
|
|
10264
10264
|
* No client-side polling required.
|
|
10265
10265
|
*/
|
|
@@ -10548,7 +10548,7 @@ var RunHandle = class {
|
|
|
10548
10548
|
/**
|
|
10549
10549
|
* Fetch captured logs for this worker.
|
|
10550
10550
|
*
|
|
10551
|
-
* - For a running worker: returns live logs streamed from
|
|
10551
|
+
* - For a running worker: returns live logs streamed from the runtime (may be incomplete)
|
|
10552
10552
|
* - For a completed worker: returns the full captured output stored in DB
|
|
10553
10553
|
*
|
|
10554
10554
|
* @example
|
|
@@ -10567,8 +10567,8 @@ var RunHandle = class {
|
|
|
10567
10567
|
/**
|
|
10568
10568
|
* Cancel this worker.
|
|
10569
10569
|
*
|
|
10570
|
-
* - If still pending: immediately cancelled
|
|
10571
|
-
* - If running:
|
|
10570
|
+
* - If still pending: immediately cancelled
|
|
10571
|
+
* - If running: runtime is terminated
|
|
10572
10572
|
* - If already completed: no-op
|
|
10573
10573
|
*/
|
|
10574
10574
|
async cancel() {
|
|
@@ -10580,9 +10580,9 @@ var RunsClient = {
|
|
|
10580
10580
|
// Run
|
|
10581
10581
|
// --------------------------------------------------------------------------
|
|
10582
10582
|
/**
|
|
10583
|
-
* Spawn a new worker
|
|
10583
|
+
* Spawn a new worker and return a handle.
|
|
10584
10584
|
*
|
|
10585
|
-
* The
|
|
10585
|
+
* The run is created immediately and starts pulling the image.
|
|
10586
10586
|
* Use the returned handle to `.wait()` for completion or `.cancel()`.
|
|
10587
10587
|
*
|
|
10588
10588
|
* @example
|