@hasna/sandboxes 0.1.14 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/mcp/index.js +0 -26
  2. package/package.json +2 -1
package/dist/mcp/index.js CHANGED
@@ -6449,31 +6449,5 @@ server.tool("list_images", "List available pre-warmed sandbox image aliases", {}
6449
6449
  return err(e);
6450
6450
  }
6451
6451
  });
6452
- var _agentReg = new Map;
6453
- server.tool("register_agent", "Register this agent session. Returns agent_id for use in heartbeat/set_focus.", { name: exports_external.string(), session_id: exports_external.string().optional() }, async (a) => {
6454
- const existing = [..._agentReg.values()].find((x) => x.name === a.name);
6455
- if (existing) {
6456
- existing.last_seen_at = new Date().toISOString();
6457
- return { content: [{ type: "text", text: JSON.stringify(existing) }] };
6458
- }
6459
- const id = Math.random().toString(36).slice(2, 10);
6460
- const ag = { id, name: a.name, last_seen_at: new Date().toISOString() };
6461
- _agentReg.set(id, ag);
6462
- return { content: [{ type: "text", text: JSON.stringify(ag) }] };
6463
- });
6464
- server.tool("heartbeat", "Update last_seen_at to signal agent is active.", { agent_id: exports_external.string() }, async (a) => {
6465
- const ag = _agentReg.get(a.agent_id);
6466
- if (!ag)
6467
- return { content: [{ type: "text", text: `Agent not found: ${a.agent_id}` }], isError: true };
6468
- ag.last_seen_at = new Date().toISOString();
6469
- return { content: [{ type: "text", text: `\u2665 ${ag.name} \u2014 active` }] };
6470
- });
6471
- server.tool("set_focus", "Set active project context for this agent session.", { agent_id: exports_external.string(), project_id: exports_external.string().optional() }, async (a) => {
6472
- const ag = _agentReg.get(a.agent_id);
6473
- if (!ag)
6474
- return { content: [{ type: "text", text: `Agent not found: ${a.agent_id}` }], isError: true };
6475
- ag.project_id = a.project_id;
6476
- return { content: [{ type: "text", text: a.project_id ? `Focus: ${a.project_id}` : "Focus cleared" }] };
6477
- });
6478
6452
  var transport = new StdioServerTransport;
6479
6453
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/sandboxes",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "author": "Andrei Hasna <andrei@hasna.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,6 +62,7 @@
62
62
  ],
63
63
  "license": "Apache-2.0",
64
64
  "publishConfig": {
65
+ "registry": "https://registry.npmjs.org",
65
66
  "access": "public"
66
67
  },
67
68
  "scripts": {