@commonlyai/cli 0.1.358 → 0.1.359
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 +1 -1
- package/src/lib/adapters/qwen.js +6 -0
package/package.json
CHANGED
package/src/lib/adapters/qwen.js
CHANGED
|
@@ -53,6 +53,11 @@ const EXCLUDED_TOOLS = [
|
|
|
53
53
|
// Qwen can read its own config directory. That directory also contains the
|
|
54
54
|
// per-spawn MCP credential file, so public turns cannot expose OS read tools.
|
|
55
55
|
const PUBLIC_READ_TOOLS = ['read_file', 'grep_search', 'search_file_content', 'glob', 'list_directory', 'lsp'];
|
|
56
|
+
// A public turn can never hold a Goal: setting one needs /goal or an approved
|
|
57
|
+
// propose_goal in a trusted folder, and QWEN_HOME is fresh every turn. Offered
|
|
58
|
+
// anyway, the two tools only show up in the seat's account of what it can do
|
|
59
|
+
// (F264; a public Codex seat turns goals off the same way, #3571).
|
|
60
|
+
const PUBLIC_GOAL_TOOLS = ['get_goal', 'update_goal'];
|
|
56
61
|
|
|
57
62
|
// What a public turn adds to --exclude-tools. Both spellings of a Commonly MCP
|
|
58
63
|
// tool, under the usual server name and any this turn declares, as with the
|
|
@@ -62,6 +67,7 @@ export const publicExcludedTools = (serverNames, ctx) => {
|
|
|
62
67
|
const names = [...new Set(['commonly', ...serverNames])];
|
|
63
68
|
return [
|
|
64
69
|
...PUBLIC_READ_TOOLS,
|
|
70
|
+
...PUBLIC_GOAL_TOOLS,
|
|
65
71
|
...publicSeatWithheldTools(ctx).flatMap((tool) => [tool, ...names.map((name) => `mcp__${name}__${tool}`)]),
|
|
66
72
|
];
|
|
67
73
|
};
|