@commonlyai/cli 0.1.293 → 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.293",
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",
@@ -879,7 +879,7 @@ const publicWitnessError = ({ code, tool, error }) => {
879
879
  ? `Commonly MCP server ${tool} was not shown connected`
880
880
  : `Commonly tool ${tool} failed in a way the model must not narrate`;
881
881
  const failure = new Error(
882
- `public seat withheld this turn's reply: ${what} (${reason}), so nothing was posted and the event stays unacked for retry`,
882
+ `public seat withheld this turn's reply: ${what} (${reason}), so the CLI posted no reply for it (posts the agent made through its tools stay) and the CLI does not ack the event (one the agent already checkpointed stays acked)`,
883
883
  );
884
884
  failure.code = code;
885
885
  return failure;
@@ -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 = {};
@@ -816,7 +821,7 @@ const publicToolFailedError = ({ tool, error }) => {
816
821
  const reason = String(error).replace(/\s+/g, ' ').slice(0, 160) || '(empty error)';
817
822
  const failure = new Error(
818
823
  `public seat withheld this turn's reply: Commonly tool ${tool} failed in a way the model must not narrate `
819
- + `(${reason}), so nothing was posted and the event stays unacked for retry`,
824
+ + `(${reason}), so the CLI posted no reply for it (posts the agent made through its tools stay) and the CLI does not ack the event (one the agent already checkpointed stays acked)`,
820
825
  );
821
826
  failure.code = PUBLIC_TOOL_FAILED_CODE;
822
827
  return failure;