@sailresearch/sdk 0.2.14
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/LICENSE +201 -0
- package/README.md +126 -0
- package/dist/app.d.ts +23 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +40 -0
- package/dist/app.js.map +1 -0
- package/dist/client.d.ts +119 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +291 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +15 -0
- package/dist/config.js.map +1 -0
- package/dist/default-client.d.ts +13 -0
- package/dist/default-client.d.ts.map +1 -0
- package/dist/default-client.js +22 -0
- package/dist/default-client.js.map +1 -0
- package/dist/errors.d.ts +88 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +201 -0
- package/dist/errors.js.map +1 -0
- package/dist/exec-process.d.ts +56 -0
- package/dist/exec-process.d.ts.map +1 -0
- package/dist/exec-process.js +105 -0
- package/dist/exec-process.js.map +1 -0
- package/dist/exec-stream.d.ts +21 -0
- package/dist/exec-stream.d.ts.map +1 -0
- package/dist/exec-stream.js +47 -0
- package/dist/exec-stream.js.map +1 -0
- package/dist/file-stream.d.ts +41 -0
- package/dist/file-stream.d.ts.map +1 -0
- package/dist/file-stream.js +86 -0
- package/dist/file-stream.js.map +1 -0
- package/dist/image.d.ts +90 -0
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +193 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/native.d.ts +10 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +24 -0
- package/dist/native.js.map +1 -0
- package/dist/sailbox.d.ts +210 -0
- package/dist/sailbox.d.ts.map +1 -0
- package/dist/sailbox.js +339 -0
- package/dist/sailbox.js.map +1 -0
- package/dist/ssh.d.ts +16 -0
- package/dist/ssh.d.ts.map +1 -0
- package/dist/ssh.js +3 -0
- package/dist/ssh.js.map +1 -0
- package/dist/types/config.d.ts +21 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +4 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/exec.d.ts +41 -0
- package/dist/types/exec.d.ts.map +1 -0
- package/dist/types/exec.js +4 -0
- package/dist/types/exec.js.map +1 -0
- package/dist/types/image.d.ts +50 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/image.js +12 -0
- package/dist/types/image.js.map +1 -0
- package/dist/types/listener.d.ts +38 -0
- package/dist/types/listener.d.ts.map +1 -0
- package/dist/types/listener.js +21 -0
- package/dist/types/listener.js.map +1 -0
- package/dist/types/sailbox.d.ts +62 -0
- package/dist/types/sailbox.d.ts.map +1 -0
- package/dist/types/sailbox.js +19 -0
- package/dist/types/sailbox.js.map +1 -0
- package/dist/util.d.ts +3 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +10 -0
- package/dist/util.js.map +1 -0
- package/dist/validate.d.ts +35 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +87 -0
- package/dist/validate.js.map +1 -0
- package/dist/volume.d.ts +42 -0
- package/dist/volume.d.ts.map +1 -0
- package/dist/volume.js +72 -0
- package/dist/volume.js.map +1 -0
- package/native/index.d.ts +733 -0
- package/native/index.js +601 -0
- package/package.json +77 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Sail Research, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# @sailresearch/sdk
|
|
2
|
+
|
|
3
|
+
TypeScript SDK for [Sail](https://sailresearch.com) sandboxes (sailboxes). Create,
|
|
4
|
+
run commands in, move files to and from, and manage sandboxes from a TS agent
|
|
5
|
+
harness.
|
|
6
|
+
|
|
7
|
+
It is a thin wrapper over the canonical Sail Rust core, shipped as a native addon
|
|
8
|
+
(napi-rs). It runs on **Node 20+** and **Bun**. It is not a browser library.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install @sailresearch/sdk
|
|
14
|
+
# or: pnpm add @sailresearch/sdk / bun add @sailresearch/sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Prebuilt native binaries are published per platform (Linux x64/arm64 gnu and
|
|
18
|
+
musl, macOS x64/arm64, Windows x64) and resolved automatically at install time.
|
|
19
|
+
|
|
20
|
+
## Configure
|
|
21
|
+
|
|
22
|
+
Set `SAIL_API_KEY` (and optionally `SAIL_MODE` = `prod` | `dev` | `staging` |
|
|
23
|
+
`local`) in the environment. The SDK also reads `~/.sail`. The object-model
|
|
24
|
+
statics use this environment configuration by default.
|
|
25
|
+
|
|
26
|
+
## Quickstart
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import { App, Sailbox } from "@sailresearch/sdk";
|
|
30
|
+
|
|
31
|
+
// Look up (or create) the app your sandboxes belong to.
|
|
32
|
+
const app = await App.find("example-app", { mintIfMissing: true });
|
|
33
|
+
|
|
34
|
+
// Boot a sandbox.
|
|
35
|
+
const sb = await Sailbox.create({ app, name: "worker-1" });
|
|
36
|
+
|
|
37
|
+
// Run a command and stream its output. A string runs via `/bin/sh -lc`; pass a
|
|
38
|
+
// string[] to exec directly without a shell.
|
|
39
|
+
const proc = await sb.exec("echo hello && ls /");
|
|
40
|
+
for await (const chunk of proc.stdout) process.stdout.write(chunk);
|
|
41
|
+
const result = await proc.wait();
|
|
42
|
+
console.log("exit code:", result.exitCode);
|
|
43
|
+
|
|
44
|
+
// Move files.
|
|
45
|
+
const writer = await sb.writeStream("/tmp/note.txt", { createParents: true });
|
|
46
|
+
await writer.write(Buffer.from("hi from the harness\n"));
|
|
47
|
+
await writer.finish();
|
|
48
|
+
const contents = await (await sb.readStream("/tmp/note.txt")).bytes();
|
|
49
|
+
|
|
50
|
+
// Expose a port and wait until it's routable.
|
|
51
|
+
await sb.expose(8080, "http");
|
|
52
|
+
const listener = await sb.waitForListener(8080);
|
|
53
|
+
if (listener.endpoint?.kind === "http") {
|
|
54
|
+
console.log("reachable at:", listener.endpoint.url);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Lifecycle.
|
|
58
|
+
await sb.sleep(); // or pause() / resume() / checkpoint() / terminate()
|
|
59
|
+
await sb.terminate();
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Conventions
|
|
63
|
+
|
|
64
|
+
- **Fields are camelCase** (`memoryMib`, `result.exitCode`,
|
|
65
|
+
`listener.endpoint`, `info.sailboxId`). Object-model helpers accept ergonomic
|
|
66
|
+
handles like `app`; lower-level `Client` request objects use generated fields
|
|
67
|
+
like `appId`.
|
|
68
|
+
- **Errors** all extend `SailError`, so `catch (e) { if (e instanceof SailError) }`
|
|
69
|
+
catches everything, and subclasses (`NotFoundError`, `SailboxExecutionError`,
|
|
70
|
+
...) let you match specifics.
|
|
71
|
+
- **Bytes** cross as `Buffer`; a `string` passed to `write`/`writeStdin` is UTF-8.
|
|
72
|
+
|
|
73
|
+
## Explicit configuration
|
|
74
|
+
|
|
75
|
+
Instead of the environment, construct a `Client` and pass it to the statics (or
|
|
76
|
+
call its methods directly):
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { Client, Sailbox } from "@sailresearch/sdk";
|
|
80
|
+
|
|
81
|
+
const client = Client.fromConfig({ apiKey: "sk_...", mode: "dev" });
|
|
82
|
+
const sb = await Sailbox.create({ app: "app_...", name: "w", client });
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Custom images
|
|
86
|
+
|
|
87
|
+
Build a custom image with the fluent `Image` builder and pass it to
|
|
88
|
+
`Sailbox.create`; local files/dirs are hashed and uploaded when the box is
|
|
89
|
+
created:
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
import { App, Image, Sailbox } from "@sailresearch/sdk";
|
|
93
|
+
|
|
94
|
+
const app = await App.find("example-app", { mintIfMissing: true });
|
|
95
|
+
|
|
96
|
+
const image = Image.debian("arm64")
|
|
97
|
+
.aptInstall("git")
|
|
98
|
+
.pipInstall("numpy")
|
|
99
|
+
.addLocalDir("./app", "/app", { ignore: ["node_modules/", ".git/"] })
|
|
100
|
+
.runCommand("pip install -e /app");
|
|
101
|
+
|
|
102
|
+
const sb = await Sailbox.create({ app, name: "worker", image });
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## API
|
|
106
|
+
|
|
107
|
+
- `Sailbox` — `create` / `get` / `list` / `listPage` / `fromCheckpoint`;
|
|
108
|
+
instance `exec`, `read` / `write`, `writeStream` / `readStream`,
|
|
109
|
+
`expose` / `unexpose` / `listeners` / `listener` / `waitForListener` /
|
|
110
|
+
`ingressAuthHeaders`, `enableSsh`, `terminate` / `pause` / `sleep` / `resume` /
|
|
111
|
+
`checkpoint` / `upgrade`, and an interactive `shell`.
|
|
112
|
+
- `App` — `find` / `list`.
|
|
113
|
+
- `Volume` — `find` / `list`; instance `delete`.
|
|
114
|
+
- `Image` — `debian` / `devbox`, `aptInstall` / `pipInstall` / `runCommand` / `env`,
|
|
115
|
+
`addLocalFile` / `addLocalDir`, `build`, `toSpec`. (`Sailbox.create` builds a
|
|
116
|
+
custom image for you.)
|
|
117
|
+
- `Client` — the lower-level surface with the same operations.
|
|
118
|
+
- `ExecProcess` / `ExecStream` / `FileStream` / `FileWriter` — streaming handles.
|
|
119
|
+
- Errors — `SailError` and typed subclasses (`NotFoundError`,
|
|
120
|
+
`SailboxCreationError`, `SailboxExecutionError`, ...); errors the SDK raises
|
|
121
|
+
map to a `SailError` subclass, so `catch (e) { if (e instanceof SailError) }`
|
|
122
|
+
covers them.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
Apache-2.0.
|
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ClientOptions } from "./types/config.js";
|
|
2
|
+
/**
|
|
3
|
+
* An app: the billing/ownership scope a sailbox belongs to. Look one up (or mint
|
|
4
|
+
* it) with {@link App.find}, then pass it (or its {@link App.id}) to
|
|
5
|
+
* {@link Sailbox.create}.
|
|
6
|
+
*/
|
|
7
|
+
export declare class App {
|
|
8
|
+
/** Stable app id. */
|
|
9
|
+
readonly id: string;
|
|
10
|
+
/** App name. */
|
|
11
|
+
readonly name: string;
|
|
12
|
+
/** Creation time. */
|
|
13
|
+
readonly createdAt: Date;
|
|
14
|
+
private constructor();
|
|
15
|
+
private static from;
|
|
16
|
+
/** Find an app by name, optionally minting it if missing. */
|
|
17
|
+
static find(name: string, options?: ClientOptions & {
|
|
18
|
+
mintIfMissing?: boolean;
|
|
19
|
+
}): Promise<App>;
|
|
20
|
+
/** Every app the current org owns, newest first. */
|
|
21
|
+
static list(options?: ClientOptions): Promise<App[]>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,GAAG;IAEZ,qBAAqB;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM;IACnB,gBAAgB;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,qBAAqB;IACrB,QAAQ,CAAC,SAAS,EAAE,IAAI;IAN1B,OAAO;IASP,OAAO,CAAC,MAAM,CAAC,IAAI;IAInB,6DAA6D;WAChD,IAAI,CACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,aAAa,GAAG;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAO,GACxD,OAAO,CAAC,GAAG,CAAC;IAKf,oDAAoD;WACvC,IAAI,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAI/D"}
|
package/dist/app.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.App = void 0;
|
|
4
|
+
const default_client_js_1 = require("./default-client.js");
|
|
5
|
+
/**
|
|
6
|
+
* An app: the billing/ownership scope a sailbox belongs to. Look one up (or mint
|
|
7
|
+
* it) with {@link App.find}, then pass it (or its {@link App.id}) to
|
|
8
|
+
* {@link Sailbox.create}.
|
|
9
|
+
*/
|
|
10
|
+
class App {
|
|
11
|
+
id;
|
|
12
|
+
name;
|
|
13
|
+
createdAt;
|
|
14
|
+
constructor(
|
|
15
|
+
/** Stable app id. */
|
|
16
|
+
id,
|
|
17
|
+
/** App name. */
|
|
18
|
+
name,
|
|
19
|
+
/** Creation time. */
|
|
20
|
+
createdAt) {
|
|
21
|
+
this.id = id;
|
|
22
|
+
this.name = name;
|
|
23
|
+
this.createdAt = createdAt;
|
|
24
|
+
}
|
|
25
|
+
static from(data) {
|
|
26
|
+
return new App(data.id, data.name, new Date(data.createdAt));
|
|
27
|
+
}
|
|
28
|
+
/** Find an app by name, optionally minting it if missing. */
|
|
29
|
+
static async find(name, options = {}) {
|
|
30
|
+
const client = options.client ?? (0, default_client_js_1.defaultClient)();
|
|
31
|
+
return App.from(await client.findApp(name, options.mintIfMissing ?? false));
|
|
32
|
+
}
|
|
33
|
+
/** Every app the current org owns, newest first. */
|
|
34
|
+
static async list(options = {}) {
|
|
35
|
+
const client = options.client ?? (0, default_client_js_1.defaultClient)();
|
|
36
|
+
return (await client.listApps()).map((data) => App.from(data));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.App = App;
|
|
40
|
+
//# sourceMappingURL=app.js.map
|
package/dist/app.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;AAAA,2DAAoD;AAKpD;;;;GAIG;AACH,MAAa,GAAG;IAGH;IAEA;IAEA;IANX;IACE,qBAAqB;IACZ,EAAU;IACnB,gBAAgB;IACP,IAAY;IACrB,qBAAqB;IACZ,SAAe;QAJf,OAAE,GAAF,EAAE,CAAQ;QAEV,SAAI,GAAJ,IAAI,CAAQ;QAEZ,cAAS,GAAT,SAAS,CAAM;IACvB,CAAC;IAEI,MAAM,CAAC,IAAI,CAAC,IAAa;QAC/B,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,6DAA6D;IAC7D,MAAM,CAAC,KAAK,CAAC,IAAI,CACf,IAAY,EACZ,UAAuD,EAAE;QAEzD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAA,iCAAa,GAAE,CAAC;QACjD,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED,oDAAoD;IACpD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,UAAyB,EAAE;QAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAA,iCAAa,GAAE,CAAC;QACjD,OAAO,CAAC,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC;CACF;AA5BD,kBA4BC"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type AppInfo, type VolumeInfo } from "./native.js";
|
|
2
|
+
import { ExecProcess } from "./exec-process.js";
|
|
3
|
+
import { FileStream, FileWriter } from "./file-stream.js";
|
|
4
|
+
import type { EnableSshOptions, SshEndpoint } from "./ssh.js";
|
|
5
|
+
import type { ShellOptions } from "./types/exec.js";
|
|
6
|
+
import type { ClientConfig } from "./types/config.js";
|
|
7
|
+
import type { CheckpointOptions } from "./sailbox.js";
|
|
8
|
+
import type { ImageDefinition } from "./native.js";
|
|
9
|
+
import type { ImageBuild, ImageSpec } from "./types/image.js";
|
|
10
|
+
import type { ExecOptions, WriteOptions } from "./types/exec.js";
|
|
11
|
+
import { type IngressProtocol, type Listener } from "./types/listener.js";
|
|
12
|
+
import { type CreateSailboxRequest, type FromCheckpointRequest, type ListSailboxesQuery, type SailboxCheckpoint, type SailboxHandle, type SailboxInfo, type SailboxInfoPage, type UpgradeResult } from "./types/sailbox.js";
|
|
13
|
+
/**
|
|
14
|
+
* A configured Sail client: the low-level surface over the native core (one
|
|
15
|
+
* config snapshot; env vars are read at construction). Every control-plane
|
|
16
|
+
* operation is here. The object-model API ({@link Sailbox}, {@link App},
|
|
17
|
+
* {@link Volume}) is built on top of it.
|
|
18
|
+
*
|
|
19
|
+
* Construct with {@link Client.fromEnv} or {@link Client.fromConfig}.
|
|
20
|
+
*/
|
|
21
|
+
export declare class Client {
|
|
22
|
+
private readonly native;
|
|
23
|
+
private constructor();
|
|
24
|
+
/** Build a client from the environment (`SAIL_API_KEY`, `SAIL_MODE`, ...). */
|
|
25
|
+
static fromEnv(): Client;
|
|
26
|
+
/** Build a client from an explicit {@link ClientConfig}. */
|
|
27
|
+
static fromConfig(config: ClientConfig): Client;
|
|
28
|
+
/** Create a sailbox. `timeoutSeconds` bounds each create attempt (default
|
|
29
|
+
* 600s); pass `0` for no client-side timeout. Timed-out attempts are retried,
|
|
30
|
+
* reattaching to the same box, so when the overall budget is exhausted the
|
|
31
|
+
* box may still be coming up server-side: find or terminate it by `name`.
|
|
32
|
+
* `image` defaults to a plain Debian base. */
|
|
33
|
+
createSailbox(req: CreateSailboxRequest, timeoutSeconds?: number): Promise<SailboxHandle>;
|
|
34
|
+
/** Fetch one sailbox by id. */
|
|
35
|
+
getSailbox(sailboxId: string): Promise<SailboxInfo>;
|
|
36
|
+
/** List one page of sailboxes in the current org. */
|
|
37
|
+
listSailboxes(params?: ListSailboxesQuery): Promise<SailboxInfoPage>;
|
|
38
|
+
/** Terminate a sailbox (idempotent). */
|
|
39
|
+
terminateSailbox(sailboxId: string): Promise<void>;
|
|
40
|
+
/** Pause a sailbox in memory. */
|
|
41
|
+
pauseSailbox(sailboxId: string): Promise<void>;
|
|
42
|
+
/** Sleep a sailbox to disk (wakes on traffic). */
|
|
43
|
+
sleepSailbox(sailboxId: string): Promise<void>;
|
|
44
|
+
/** Resume a paused or sleeping sailbox. */
|
|
45
|
+
resumeSailbox(sailboxId: string): Promise<SailboxHandle>;
|
|
46
|
+
/** Take a checkpoint of a sailbox. `name` sets the handle's display name;
|
|
47
|
+
* `ttlSeconds`, when given, overrides the server's default retention
|
|
48
|
+
* window. */
|
|
49
|
+
checkpointSailbox(sailboxId: string, options?: CheckpointOptions): Promise<SailboxCheckpoint>;
|
|
50
|
+
/** Create a new sailbox from a checkpoint. */
|
|
51
|
+
createFromCheckpoint(params: FromCheckpointRequest): Promise<SailboxHandle>;
|
|
52
|
+
/** Upgrade a sailbox's in-guest agent (now if running, else at next wake). */
|
|
53
|
+
upgradeSailbox(sailboxId: string): Promise<UpgradeResult>;
|
|
54
|
+
/** Expose a guest port at runtime (route status starts "unspecified"; the
|
|
55
|
+
* response confirms configuration, not reachability). */
|
|
56
|
+
exposeListener(sailboxId: string, guestPort: number, protocol?: IngressProtocol, allowlist?: string[]): Promise<Listener>;
|
|
57
|
+
/** Remove a runtime ingress port. */
|
|
58
|
+
unexposeListener(sailboxId: string, guestPort: number): Promise<void>;
|
|
59
|
+
/** List a sailbox's listeners without waking it. */
|
|
60
|
+
listListeners(sailboxId: string): Promise<Listener[]>;
|
|
61
|
+
/** Fetch one listener by guest port without waking the box. */
|
|
62
|
+
getListener(sailboxId: string, guestPort: number): Promise<Listener>;
|
|
63
|
+
/** Block until the listener on `guestPort` is reachable end to end — route
|
|
64
|
+
* ACTIVE and its endpoint accepting (HTTP GET / raw-TCP connect) — and
|
|
65
|
+
* return it, throwing {@link TimeoutError} after `timeoutSeconds`. */
|
|
66
|
+
waitForListener(sailboxId: string, guestPort: number, timeoutSeconds: number, pollIntervalSeconds: number): Promise<Listener>;
|
|
67
|
+
/** Ingress-identity headers for this sailbox, as a name→value map. */
|
|
68
|
+
ingressAuthHeaders(sailboxId: string): Promise<Record<string, string>>;
|
|
69
|
+
/** Look up (optionally minting) an NFS volume by name. */
|
|
70
|
+
getVolume(name: string, mintIfMissing?: boolean): Promise<VolumeInfo>;
|
|
71
|
+
/** List NFS volumes in the current org. */
|
|
72
|
+
listVolumes(maxObjects?: number): Promise<VolumeInfo[]>;
|
|
73
|
+
/** Delete a volume by id. Resolves `null` when `allowMissing` and it's gone. */
|
|
74
|
+
deleteVolume(volumeId: string, allowMissing?: boolean): Promise<VolumeInfo | null>;
|
|
75
|
+
/** Find an app by name, optionally minting it. */
|
|
76
|
+
findApp(name: string, mintIfMissing?: boolean): Promise<AppInfo>;
|
|
77
|
+
/** Every app the current org owns, newest first. */
|
|
78
|
+
listApps(): Promise<AppInfo[]>;
|
|
79
|
+
/** Run a command in a sailbox and return a handle to the live process. A
|
|
80
|
+
* `string` command is run via `/bin/sh -lc`; a `string[]` is exec'd directly.
|
|
81
|
+
* `cwd`/`background` apply to string commands (see {@link ExecOptions}). */
|
|
82
|
+
exec(sailboxId: string, command: string | string[], options?: ExecOptions): Promise<ExecProcess>;
|
|
83
|
+
/** Open an interactive pty session on a sailbox, bridged to the local
|
|
84
|
+
* terminal: raw keystrokes reach the remote process, output renders
|
|
85
|
+
* locally, and resizes propagate. Resolves with the remote process's exit
|
|
86
|
+
* code. Requires an interactive terminal (stdin and stdout TTYs). */
|
|
87
|
+
shell(sailboxId: string, command?: string, options?: ShellOptions): Promise<number>;
|
|
88
|
+
/** Open a streaming read of a guest file. */
|
|
89
|
+
readStream(sailboxId: string, path: string): Promise<FileStream>;
|
|
90
|
+
/** Open a streaming upload to a guest file. */
|
|
91
|
+
writeStream(sailboxId: string, path: string, options?: WriteOptions): Promise<FileWriter>;
|
|
92
|
+
/** Whether a spec is a bare builtin base the backend ships prebuilt (no
|
|
93
|
+
* build needed). */
|
|
94
|
+
isBuiltinBaseSpec(spec: ImageSpec): boolean;
|
|
95
|
+
/** Resolve an image definition into a content-addressed {@link ImageSpec}:
|
|
96
|
+
* the core walks local directories (gitignore-style `ignore`), hashes every
|
|
97
|
+
* file, and uploads content the server does not already have. */
|
|
98
|
+
resolveImage(def: ImageDefinition): Promise<ImageSpec>;
|
|
99
|
+
/** Resolve an image definition and build it to ready, returning the
|
|
100
|
+
* content-addressed {@link ImageSpec} to create sailboxes from. A bare
|
|
101
|
+
* builtin base skips the build; `timeoutSeconds` bounds the whole pipeline
|
|
102
|
+
* (hashing, uploads, and the build). */
|
|
103
|
+
buildImageDefinition(def: ImageDefinition, timeoutSeconds: number): Promise<ImageSpec>;
|
|
104
|
+
/** Build an already-resolved spec to ready (submit + poll), bounded by
|
|
105
|
+
* `timeoutSeconds`. */
|
|
106
|
+
buildSpecToReady(spec: ImageSpec, timeoutSeconds: number): Promise<ImageBuild>;
|
|
107
|
+
/** Enable SSH on a sailbox: trust the org SSH CA, start `sshd`, and expose
|
|
108
|
+
* guest port 22 as TCP once the CA-only daemon owns it. A non-empty
|
|
109
|
+
* `allowlist` restricts port 22 to those source CIDRs, replacing any
|
|
110
|
+
* existing restriction. With `wait` (the default), polls until the endpoint
|
|
111
|
+
* is reachable and returns it, throwing {@link TimeoutError} if it is not
|
|
112
|
+
* within `timeoutSeconds`; with `wait: false`, skips the probe and resolves
|
|
113
|
+
* `null`. */
|
|
114
|
+
enableSsh(sailboxId: string, options?: EnableSshOptions): Promise<SshEndpoint | null>;
|
|
115
|
+
/** Fetch (creating on first use) the org SSH certificate authority public key.
|
|
116
|
+
* Used to preflight SSH before a box is provisioned. */
|
|
117
|
+
orgSshCaPublicKey(): Promise<string>;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAQxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,QAAQ,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EACn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