sandbox 2.0.2 → 2.0.3

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/README.md CHANGED
@@ -4,6 +4,11 @@ Command line interface for Vercel Sandbox.
4
4
 
5
5
  Read the full documentation at [vercel.com/docs/vercel-sandbox/cli-reference](https://vercel.com/docs/vercel-sandbox/cli-reference).
6
6
 
7
+ ## Packages
8
+
9
+ - [`@vercel/sandbox`](https://www.npmjs.com/package/@vercel/sandbox) - The SDK for programmatic access to Vercel Sandbox. [Source](https://github.com/vercel/sandbox/tree/main/packages/vercel-sandbox) | [Documentation](https://vercel.com/docs/vercel-sandbox/sdk-reference)
10
+ - [`sandbox`](https://www.npmjs.com/package/sandbox) (this package) - The CLI for interacting with Vercel Sandbox from the command line. [Source](https://github.com/vercel/sandbox/tree/main/packages/sandbox) | [Documentation](https://vercel.com/docs/vercel-sandbox/cli-reference)
11
+
7
12
  ## Installation
8
13
 
9
14
  ```bash
@@ -17,15 +22,3 @@ sandbox create # Create a new sandbox
17
22
  sandbox ls # List your sandboxes
18
23
  sandbox --help # View all commands
19
24
  ```
20
-
21
- ## SDK
22
-
23
- For programmatic access to Vercel Sandbox, use the [`@vercel/sandbox`](https://www.npmjs.com/package/@vercel/sandbox) package instead:
24
-
25
- ```bash
26
- pnpm add @vercel/sandbox
27
- ```
28
-
29
- ```ts
30
- import { Sandbox } from "@vercel/sandbox";
31
- ```
@@ -7122,8 +7122,8 @@ function readProjectConfiguration(cwd) {
7122
7122
  //#endregion
7123
7123
  //#region src/util/infer-scope.ts
7124
7124
  const debug$3 = createDebugger("sandbox:scope");
7125
- async function inferScope({ token: token$1, team: team$1, oidc }) {
7126
- const jwt = z.jwt().safeParse(oidc);
7125
+ async function inferScope({ token: token$1, team: team$1 }) {
7126
+ const jwt = z.jwt().safeParse(token$1);
7127
7127
  if (jwt.success) {
7128
7128
  debug$3("trying to infer scope from OIDC JWT");
7129
7129
  const data = await inferFromJwt(jwt.data);
@@ -7243,8 +7243,7 @@ const scope = {
7243
7243
  if (typeof projectId.value === "undefined" || typeof teamId.value === "undefined") try {
7244
7244
  const scope$1 = await inferScope({
7245
7245
  token: t.value,
7246
- team: teamId.value,
7247
- oidc: process.env.VERCEL_OIDC_TOKEN
7246
+ team: teamId.value
7248
7247
  });
7249
7248
  projectId.value ?? (projectId.value = scope$1.projectId);
7250
7249
  teamId.value ?? (teamId.value = scope$1.ownerId);
@@ -7281,7 +7280,7 @@ const scope = {
7281
7280
 
7282
7281
  //#endregion
7283
7282
  //#region package.json
7284
- var version = "2.0.2";
7283
+ var version = "2.0.3";
7285
7284
 
7286
7285
  //#endregion
7287
7286
  //#region src/error.ts
@@ -7452,7 +7451,7 @@ const create = import_cjs$13.command({
7452
7451
  if (!sandbox.interactivePort) throw new Error([
7453
7452
  `Sandbox created but interactive port is missing.`,
7454
7453
  `${source_default.bold("hint:")} This is an internal error. Please try again.`,
7455
- "╰▶ Report this issue: https://github.com/vercel/sandbox-sdk/issues"
7454
+ "╰▶ Report this issue: https://github.com/vercel/sandbox/issues"
7456
7455
  ].join("\n"));
7457
7456
  const routes = sandbox.routes.filter((x) => x.port !== sandbox.interactivePort);
7458
7457
  if (routes.length) {
@@ -14363,4 +14362,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
14363
14362
 
14364
14363
  //#endregion
14365
14364
  export { StyledError as n, require_cjs as r, app as t };
14366
- //# sourceMappingURL=app-D3bf-TYH.mjs.map
14365
+ //# sourceMappingURL=app-JwdJjZ6c.mjs.map