@commonlyai/cli 0.1.294 → 0.1.295

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.294",
3
+ "version": "0.1.295",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -511,7 +511,12 @@ const substitutePublicPlaceholders = (value, ctx) => {
511
511
  const isSafeMcpName = (name) => typeof name === 'string'
512
512
  && /^[A-Za-z0-9_-]+$/.test(name);
513
513
 
514
- const permissionMcpName = (name) => name.replace(/[^A-Za-z0-9_]/g, '_');
514
+ // How OpenCode spells an MCP server in a tool name, and so in a permission rule
515
+ // (1.19.4: `<server>_<tool>`, each part through `/[^a-zA-Z0-9_-]/g` to `_`). The
516
+ // hyphen stays. Rewriting it left a rule that matched nothing, and the `'*'`
517
+ // deny then took `commonly-grant-broker`'s tools off the model's list, with no
518
+ // log line, though the server had connected and listed them.
519
+ const permissionMcpName = (name) => name.replace(/[^A-Za-z0-9_-]/g, '_');
515
520
 
516
521
  const buildMcpConfig = (servers, ctx = {}) => {
517
522
  const mcp = {};