@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/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
- * Requires ReadWriteMany volumes (CephFS). Multiple sandboxes can mount
7584
- * the same volume for shared filesystem access.
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 K8s pod, waits for readiness, and returns
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 K8s Jobs that run to completion. Use them for:
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 K8s Jobs (backoffLimit: 0, no restarts)
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 volumeResources mounted as PVCs
7925
- * - ReadWriteOnce rook-ceph-block (single pod)
7926
- * - ReadWriteMany rook-cephfs (concurrent pods use for shared feature caches)
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
- * K8s terminates the Job when the deadline is reached (status: 'timeout').
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
- * ReadWriteMany volumes (rook-cephfs) allow concurrent access by multiple parallel workers.
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 K8s (may be incomplete)
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 (no K8s Job created)
8112
- * - If running: K8s Job deleted (pod terminated)
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 (K8s Job) and return a handle.
8134
+ * Spawn a new worker and return a handle.
8135
8135
  *
8136
- * The Job is created immediately and starts pulling the image.
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 (K8s Job) and return a handle.
8196
+ * Spawn a new worker and return a handle.
8197
8197
  *
8198
- * The Job is created immediately and starts pulling the image.
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 K8s pod, waits for readiness, and returns
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 K8s (may be incomplete)
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 (no K8s Job created)
10571
- * - If running: K8s Job deleted (pod terminated)
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 (K8s Job) and return a handle.
10583
+ * Spawn a new worker and return a handle.
10584
10584
  *
10585
- * The Job is created immediately and starts pulling the image.
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