@commonlyai/cli 0.1.122 → 0.1.132

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.122",
3
+ "version": "0.1.132",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -2681,6 +2681,7 @@ export const performDetach = async ({
2681
2681
  client,
2682
2682
  agentName,
2683
2683
  podId,
2684
+ instanceId = 'default',
2684
2685
  skipBackend = false,
2685
2686
  log = () => {},
2686
2687
  }) => {
@@ -2696,7 +2697,7 @@ export const performDetach = async ({
2696
2697
  let backendResult = { skipped: true };
2697
2698
  if (!skipBackend) {
2698
2699
  try {
2699
- const body = await client.del(`/api/registry/agents/${encodeURIComponent(agentName)}/pods/${encodeURIComponent(podId)}`);
2700
+ const body = await client.del(`/api/registry/agents/${encodeURIComponent(agentName)}/pods/${encodeURIComponent(podId)}?instanceId=${encodeURIComponent(instanceId)}`);
2700
2701
  backendResult = { skipped: false, body };
2701
2702
  log(`backend: uninstalled '${agentName}' from pod ${podId}`);
2702
2703
  } catch (err) {
@@ -3279,7 +3280,7 @@ Docs:
3279
3280
  console.error(
3280
3281
  `No local state for '${name}'. If the agent is still installed on `
3281
3282
  + `the backend, uninstall it via the Agent Hub UI or:\n`
3282
- + ` curl -X DELETE <instance>/api/registry/agents/${name}/pods/<podId> \\\n`
3283
+ + ` curl -X DELETE '<instance>/api/registry/agents/${name}/pods/<podId>?instanceId=<instanceId>' \\\n`
3283
3284
  + ` -H "Authorization: Bearer <user JWT>"`,
3284
3285
  );
3285
3286
  process.exit(1);
@@ -3307,6 +3308,7 @@ Docs:
3307
3308
  client,
3308
3309
  agentName: record.agentName,
3309
3310
  podId: record.podId,
3311
+ instanceId: record.instanceId || 'default',
3310
3312
  skipBackend: !!opts.force,
3311
3313
  log: (line) => console.warn(`[detach] ${line}`),
3312
3314
  });