You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--name <value>`| Yes | Display name, unique within the workspace; 1 to 64 characters. |
2763
2763
|`--language <value>`| Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. |
2764
-
|`--dependencies <value...>`| No | Package specifiers installed into the sandbox, one per entry. Blank entries and `#` comments are ignored. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2764
+
|`--dependencies <value...>`| No | Package specifiers installed into the sandbox, one per entry. Blank entries and `#` comments are ignored. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
2765
2765
|`--cli-tools <value...>`| No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2766
-
|`--system-packages <value...>`| No | Debian packages installed into the sandbox image, one per entry. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2766
+
|`--system-packages <value...>`| No | Debian packages installed into the sandbox image, one per entry. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
|`--name <value>`| No | New display name, unique within the workspace; 1 to 64 characters. |
2862
2862
|`--language <value>`| No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. |
2863
-
|`--dependencies <value...>`| No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2863
+
|`--dependencies <value...>`| No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
2864
2864
|`--cli-tools <value...>`| No | Replacement managed CLI list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2865
-
|`--system-packages <value...>`| No | Replacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
2865
+
|`--system-packages <value...>`| No | Replacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/sandboxes.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ Create Sandbox (personal API key required)
25
25
| --- | --- | --- |
26
26
|`--name <value>`| Yes | Display name, unique within the workspace; 1 to 64 characters. |
27
27
|`--language <value>`| Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. |
28
-
|`--dependencies <value...>`| No | Package specifiers installed into the sandbox, one per entry. Blank entries and `#` comments are ignored. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
28
+
|`--dependencies <value...>`| No | Package specifiers installed into the sandbox, one per entry. Blank entries and `#` comments are ignored. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
29
29
|`--cli-tools <value...>`| No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
30
-
|`--system-packages <value...>`| No | Debian packages installed into the sandbox image, one per entry. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
30
+
|`--system-packages <value...>`| No | Debian packages installed into the sandbox image, one per entry. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
31
31
32
32
</CommandTable>
33
33
@@ -120,8 +120,8 @@ Update Sandbox (personal API key required)
120
120
| --- | --- | --- |
121
121
|`--name <value>`| No | New display name, unique within the workspace; 1 to 64 characters. |
122
122
|`--language <value>`| No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. |
123
-
|`--dependencies <value...>`| No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
123
+
|`--dependencies <value...>`| No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
124
124
|`--cli-tools <value...>`| No | Replacement managed CLI list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
125
-
|`--system-packages <value...>`| No | Replacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
125
+
|`--system-packages <value...>`| No | Replacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line, blank lines and # comments ignored; @@value for a literal leading @). |
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-resources.json
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2143,7 +2143,7 @@
2143
2143
"post": {
2144
2144
"operationId": "createSandbox",
2145
2145
"summary": "Create Sandbox",
2146
-
"description": "Create a sandbox and schedule its image build. The name must be unique within the workspace. A dependency or system-package entry the builder cannot accept is a `400` whose `error.details` names the field and the offending entries. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2146
+
"description": "Create a sandbox. The name must be unique within the workspace. Where the deployment prebuilds dependency images, the build is scheduled and reported through `buildStatus`; a deployment that installs at run time, or a sandbox with nothing to install, has no build and reports `buildStatus: null`. A dependency or system-package entry the builder cannot accept is a `400` whose `error.details` names the field and the offending entries. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2147
2147
"tags": ["Sandboxes"],
2148
2148
"requestBody": {
2149
2149
"required": true,
@@ -2158,7 +2158,7 @@
2158
2158
},
2159
2159
"responses": {
2160
2160
"201": {
2161
-
"description": "The sandbox was created and its build scheduled.",
2161
+
"description": "The sandbox was created; a build is scheduled where the deployment prebuilds images.",
2162
2162
"headers": {
2163
2163
"X-RateLimit-Limit": {
2164
2164
"$ref": "#/components/headers/X-RateLimit-Limit"
@@ -2290,7 +2290,7 @@
2290
2290
"patch": {
2291
2291
"operationId": "updateSandbox",
2292
2292
"summary": "Update Sandbox",
2293
-
"description": "Update the supplied sandbox fields and rebuild the image. Omitted fields retain their stored values; a supplied list replaces the whole list; names must remain unique within the workspace. Re-sending an unchanged spec after a failed build retries the build. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2293
+
"description": "Update the supplied sandbox fields. Omitted fields retain their stored values; a supplied list replaces the whole list; names must remain unique within the workspace. Where the deployment prebuilds dependency images, a changed spec is rebuilt and re-sending an unchanged spec after a failed build retries it; a deployment that installs at run time, or a spec with nothing to install, has no build and reports `buildStatus: null`. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2294
2294
"tags": ["Sandboxes"],
2295
2295
"parameters": [
2296
2296
{
@@ -2373,7 +2373,7 @@
2373
2373
"delete": {
2374
2374
"operationId": "deleteSandbox",
2375
2375
"summary": "Delete Sandbox",
2376
-
"description": "Delete a sandbox. Function blocks that still select it fail closed at run time until they are re-pointed, and the image is released once nothing else shares it. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2376
+
"description": "Delete a sandbox. Function blocks that still select it fail closed at run time until they are re-pointed. Any prebuilt image is released once nothing else shares it. Requires a workspace admin on a Max or Enterprise plan; a lower plan is refused with `403` and `error.details.code` `WORKSPACE_PLAN_CAPABILITY_REQUIRED`. Builds cost compute, so every write in a workspace draws on one shared budget, and a burst is refused with `429` and a `Retry-After` header. A workspace API key is rejected with `403`; use a personal API key.",
2377
2377
"tags": ["Sandboxes"],
2378
2378
"parameters": [
2379
2379
{
@@ -7001,7 +7001,7 @@
7001
7001
"required": ["data"],
7002
7002
"additionalProperties": false,
7003
7003
"title": "Create sandbox response",
7004
-
"description": "The created sandbox, with its build still pending.",
7004
+
"description": "The created sandbox. `buildStatus` is `pending` while an image builds and `null` where nothing is built.",
7005
7005
"examples": [
7006
7006
{
7007
7007
"data": {
@@ -7155,7 +7155,7 @@
7155
7155
"required": ["data"],
7156
7156
"additionalProperties": false,
7157
7157
"title": "Update sandbox response",
7158
-
"description": "The updated sandbox, with its rebuild pending.",
7158
+
"description": "The updated sandbox. `buildStatus` is `pending` while an image rebuilds and `null` where nothing is built.",
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/openapi/resources.ts
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1255,9 +1255,12 @@ const declaredRoutes = [
1255
1255
resourceOperation('Sandboxes',{
1256
1256
operationId: 'createSandbox',
1257
1257
summary: 'Create Sandbox',
1258
-
description: `Create a sandbox and schedule its image build. The name must be unique within the workspace. A dependency or system-package entry the builder cannot accept is a \`400\` whose \`error.details\` names the field and the offending entries. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1258
+
description: `Create a sandbox. The name must be unique within the workspace. Where the deployment prebuilds dependency images, the build is scheduled and reported through \`buildStatus\`; a deployment that installs at run time, or a sandbox with nothing to install, has no build and reports \`buildStatus: null\`. A dependency or system-package entry the builder cannot accept is a \`400\` whose \`error.details\` names the field and the offending entries. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1259
1259
errors: RESOURCE_CONFLICT_ERRORS,
1260
-
success: {description: 'The sandbox was created and its build scheduled.'},
1260
+
success: {
1261
+
description:
1262
+
'The sandbox was created; a build is scheduled where the deployment prebuilds images.',
1263
+
},
1261
1264
}),
1262
1265
{
1263
1266
query: v2CreateSandboxContract.query,
@@ -1280,7 +1283,7 @@ const declaredRoutes = [
1280
1283
v2CreateSandboxContract.response.schema,
1281
1284
'CreateSandboxResponse',
1282
1285
'Create sandbox response',
1283
-
'The created sandbox, with its build still pending.',
1286
+
'The created sandbox. `buildStatus` is `pending` while an image builds and `null` where nothing is built.',
description: `Update the supplied sandbox fields and rebuild the image. Omitted fields retain their stored values; a supplied list replaces the whole list; names must remain unique within the workspace. Re-sending an unchanged spec after a failed build retries the build. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1328
+
description: `Update the supplied sandbox fields. Omitted fields retain their stored values; a supplied list replaces the whole list; names must remain unique within the workspace. Where the deployment prebuilds dependency images, a changed spec is rebuilt and re-sending an unchanged spec after a failed build retries it; a deployment that installs at run time, or a spec with nothing to install, has no build and reports \`buildStatus: null\`. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1326
1329
errors: RESOURCE_CONFLICT_ERRORS,
1327
1330
success: {description: 'The updated sandbox.'},
1328
1331
}),
@@ -1345,7 +1348,7 @@ const declaredRoutes = [
1345
1348
v2UpdateSandboxContract.response.schema,
1346
1349
'UpdateSandboxResponse',
1347
1350
'Update sandbox response',
1348
-
'The updated sandbox, with its rebuild pending.',
1351
+
'The updated sandbox. `buildStatus` is `pending` while an image rebuilds and `null` where nothing is built.',
1349
1352
[
1350
1353
{
1351
1354
data: {
@@ -1364,7 +1367,7 @@ const declaredRoutes = [
1364
1367
resourceOperation('Sandboxes',{
1365
1368
operationId: 'deleteSandbox',
1366
1369
summary: 'Delete Sandbox',
1367
-
description: `Delete a sandbox. Function blocks that still select it fail closed at run time until they are re-pointed, and the image is released once nothing else shares it. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1370
+
description: `Delete a sandbox. Function blocks that still select it fail closed at run time until they are re-pointed. Any prebuilt image is released once nothing else shares it. ${SANDBOX_PLAN_NOTE}${WORKSPACE_API_KEY_DENIED}`,
1368
1371
errors: RESOURCE_ERRORS,
1369
1372
success: {description: 'The sandbox was deleted.'},
0 commit comments