@commonlyai/cli 0.1.237 → 0.1.238

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.237",
3
+ "version": "0.1.238",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -244,9 +244,18 @@ export const withholdGrantBroker = (environment, adapter, {
244
244
  const reason = confinementReason(environment, adapter, platform);
245
245
  if (!reason) return environment;
246
246
 
247
- const kept = environment.mcp.filter((server) => !isOurGrantBroker(server, { instanceUrl }));
247
+ // F94: the server flags a broker whose grant names this seat (the granter's
248
+ // own agent, with consent) so it rides a seat no sandbox confines. Delivery
249
+ // only; the broker checks the naming on every call. Never on native Windows,
250
+ // and never for an adapter not approved for the broker.
251
+ const rides = (server) => server?.byoNamed === true
252
+ && reason !== 'adapter_cannot_confine' && platform !== 'win32';
253
+ const isWithheld = (server) => isOurGrantBroker(server, { instanceUrl }) && !rides(server);
254
+ if (!environment.mcp.some(isWithheld)) return environment;
255
+
256
+ const kept = environment.mcp.filter((server) => !isWithheld(server));
248
257
  const withheld = environment.mcp
249
- .filter((server) => isOurGrantBroker(server, { instanceUrl }))
258
+ .filter(isWithheld)
250
259
  .map((server) => (typeof server?.name === 'string' && server.name ? server.name : '(unnamed)'));
251
260
  if (typeof onRefuse === 'function') {
252
261
  onRefuse({