@annals/agent-mesh 0.17.8 → 0.17.9

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/index.js +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1515,11 +1515,11 @@ async function initSandbox(agentType) {
1515
1515
  const filesystem = getSandboxPreset(agentType);
1516
1516
  try {
1517
1517
  await mgr.initialize({
1518
- network: { allowedDomains: ["placeholder.example.com"], deniedDomains: [] },
1518
+ network: { allowedDomains: ["placeholder.example.com"], deniedDomains: [], allowLocalBinding: true },
1519
1519
  filesystem
1520
1520
  });
1521
1521
  mgr.updateConfig({
1522
- network: { deniedDomains: [] },
1522
+ network: { allowedDomains: [], deniedDomains: [], allowLocalBinding: true },
1523
1523
  filesystem
1524
1524
  });
1525
1525
  sandboxManager = mgr;
@@ -1534,7 +1534,9 @@ async function initSandbox(agentType) {
1534
1534
  async function wrapWithSandbox(command, filesystemOverride) {
1535
1535
  if (!sandboxInitialized || !sandboxManager) return null;
1536
1536
  if (filesystemOverride) {
1537
+ const currentConfig = sandboxManager.getConfig();
1537
1538
  sandboxManager.updateConfig({
1539
+ network: currentConfig?.network ?? { allowedDomains: [], deniedDomains: [], allowLocalBinding: true },
1538
1540
  filesystem: filesystemOverride
1539
1541
  });
1540
1542
  }
@@ -1548,6 +1550,7 @@ async function wrapWithSandbox(command, filesystemOverride) {
1548
1550
  async function resetSandbox() {
1549
1551
  if (sandboxManager) {
1550
1552
  try {
1553
+ sandboxManager.cleanupAfterCommand?.();
1551
1554
  await sandboxManager.reset();
1552
1555
  } catch {
1553
1556
  }
@@ -3331,7 +3334,6 @@ var SUPPORTED_VISIBILITIES = ["public", "private"];
3331
3334
  function normalizeAgentType(input) {
3332
3335
  if (!input) return null;
3333
3336
  const normalized = input.trim().toLowerCase();
3334
- if (normalized === "claude-code" || normalized === "claudecode") return "claude";
3335
3337
  if (SUPPORTED_AGENT_TYPES.includes(normalized)) {
3336
3338
  return normalized;
3337
3339
  }
@@ -3340,7 +3342,7 @@ function normalizeAgentType(input) {
3340
3342
  function parseAgentTypeOrExit(input) {
3341
3343
  const agentType = normalizeAgentType(input);
3342
3344
  if (agentType) return agentType;
3343
- log.error(`Invalid agent type: ${input}. Supported: ${SUPPORTED_AGENT_TYPES.join(", ")} (alias: claude-code).`);
3345
+ log.error(`Invalid agent type: ${input}. Supported: ${SUPPORTED_AGENT_TYPES.join(", ")}.`);
3344
3346
  process.exit(1);
3345
3347
  }
3346
3348
  function normalizeVisibility(input) {
@@ -5356,9 +5358,9 @@ function registerSubscribeCommand(program2) {
5356
5358
 
5357
5359
  // src/commands/register.ts
5358
5360
  var DEFAULT_BASE_URL5 = "https://agents.hot";
5359
- var VALID_AGENT_TYPES = ["claude", "claude-code", "cursor", "windsurf", "custom"];
5361
+ var VALID_AGENT_TYPES = ["claude"];
5360
5362
  function registerRegisterCommand(program2) {
5361
- program2.command("register").description("Register a new agent on the platform and get an API key").requiredOption("--name <name>", "Agent name (alphanumeric + hyphens, 3-64 chars)").option("--type <type>", "Agent type", "claude-code").option("--description <text>", "Agent description").option("--capabilities <list>", "Comma-separated capabilities").option("--base-url <url>", "Platform base URL", DEFAULT_BASE_URL5).action(async (opts) => {
5363
+ program2.command("register").description("Register a new agent on the platform and get an API key").requiredOption("--name <name>", "Agent name (alphanumeric + hyphens, 3-64 chars)").option("--type <type>", "Agent type", "claude").option("--description <text>", "Agent description").option("--capabilities <list>", "Comma-separated capabilities").option("--base-url <url>", "Platform base URL", DEFAULT_BASE_URL5).action(async (opts) => {
5362
5364
  if (!VALID_AGENT_TYPES.includes(opts.type)) {
5363
5365
  log.error(`Invalid agent type: ${opts.type}. Must be one of: ${VALID_AGENT_TYPES.join(", ")}`);
5364
5366
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annals/agent-mesh",
3
- "version": "0.17.8",
3
+ "version": "0.17.9",
4
4
  "description": "CLI bridge connecting local AI agents to the Agents.Hot platform",
5
5
  "type": "module",
6
6
  "bin": {