bdy 1.25.19-stage → 1.25.20-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.25.19-stage",
4
+ "version": "1.25.20-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",
@@ -56,7 +56,7 @@
56
56
  "@fastify/accept-negotiator": "2.0.1",
57
57
  "@fastify/cors": "11.2.0",
58
58
  "@inquirer/prompts": "8.5.2",
59
- "@modelcontextprotocol/sdk": "1.30.0",
59
+ "@modelcontextprotocol/sdk": "1.32.1",
60
60
  "@puppeteer/browsers": "3.2.0",
61
61
  "@xhmikosr/decompress": "11.1.4",
62
62
  "ajv": "8.20.0",
@@ -93,7 +93,7 @@ commandSandboxCreate.action(async (options) => {
93
93
  const randomName = () => humanId({ separator: '-', capitalize: false });
94
94
  const name = options.name ||
95
95
  options.identifier ||
96
- (0, name_1.sandboxNameFromFetch)(fetch, scope === distro_1.SCOPE.PROJECT ? project : null) ||
96
+ (0, name_1.sandboxNameFromFetch)(fetch) ||
97
97
  randomName();
98
98
  // keeps repeated creates from the same name or repo unique, the random
99
99
  // part covers parallel creates within the same millisecond
@@ -22,9 +22,10 @@ const repoName = (url) => {
22
22
  };
23
23
  // Derives a readable sandbox name from the first --fetch entry, so a sandbox
24
24
  // created for a repo or branch is recognisable on the list without -n.
25
- // `project` is the project the sandbox is created in - pass null outside the
26
- // project scope, a linked project there has nothing to do with the sandbox.
27
- const sandboxNameFromFetch = (fetch, project) => {
25
+ // The project repo is the repo of the project the sandbox lives in, so only
26
+ // the branch names it - the project name would prefix every sandbox there
27
+ // alike, and without a ref the caller's random name is more distinctive.
28
+ const sandboxNameFromFetch = (fetch) => {
28
29
  const f = fetch?.[0];
29
30
  if (!f)
30
31
  return null;
@@ -32,8 +33,8 @@ const sandboxNameFromFetch = (fetch, project) => {
32
33
  if (f.type === sandbox_1.SANDBOX_FETCH.PUBLIC_REPO && f.repository) {
33
34
  parts = [repoName(f.repository), shortRef(f.ref)];
34
35
  }
35
- else if (f.type === sandbox_1.SANDBOX_FETCH.PROJECT_REPO && project) {
36
- parts = [project, shortRef(f.ref)];
36
+ else if (f.type === sandbox_1.SANDBOX_FETCH.PROJECT_REPO) {
37
+ parts = [shortRef(f.ref)];
37
38
  }
38
39
  else if (f.type === sandbox_1.SANDBOX_FETCH.ARTIFACT && f.artifact) {
39
40
  // artifact is given as name@version or name:version
@@ -883,7 +883,7 @@ Authenticates with the SSH key you added to your Buddy account - the session alw
883
883
  Arguments for ssh itself, or a command to run instead of a shell, go after --`;
884
884
  // Sandbox options
885
885
  exports.OPTION_SANDBOX_IDENTIFIER = 'Sandbox identifier';
886
- exports.OPTION_SANDBOX_NAME = 'Sandbox display name. Defaults to the first --fetch source (repository, project and branch, or artifact) when not set';
886
+ exports.OPTION_SANDBOX_NAME = 'Sandbox display name. Defaults to the first --fetch source (repository, project repo branch, or artifact) when not set';
887
887
  exports.OPTION_SANDBOX_NOTE = 'Sandbox note';
888
888
  exports.OPTION_SANDBOX_AGENT_NOTE = 'Sandbox note for AI agents; stored as agent_note and meant to be read before acting on the resource';
889
889
  exports.OPTION_SANDBOX_OS = `Operating system image (ubuntu:24.04 (default), ubuntu:22.04)`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.25.19-stage",
4
+ "version": "1.25.20-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",
@@ -56,7 +56,7 @@
56
56
  "@fastify/accept-negotiator": "2.0.1",
57
57
  "@fastify/cors": "11.2.0",
58
58
  "@inquirer/prompts": "8.5.2",
59
- "@modelcontextprotocol/sdk": "1.30.0",
59
+ "@modelcontextprotocol/sdk": "1.32.1",
60
60
  "@puppeteer/browsers": "3.2.0",
61
61
  "@xhmikosr/decompress": "11.1.4",
62
62
  "ajv": "8.20.0",