Camel-case capability IDs and rename the MCP gateway pair
This commit is contained in:
1 parent
7f36cd1d39
commit
4f0d955e06
41 files changed
+466
-466
No files matched your search
@@ -96,7 +96,7 @@ describe("CLI read-only classification", () => {
|
||||
["update"],
|
||||
["auth", "keys"],
|
||||
["analytics", "analyze", "record-1"],
|
||||
["tool", "seal_approval_rule_create", "--json", "{}"],
|
||||
["tool", "sealApprovalRuleCreate", "--json", "{}"],
|
||||
["totally-unknown", "list"],
|
||||
[]
|
||||
]) {
|
||||
@@ -152,7 +152,7 @@ describe("CLI allow-list agrees with the tool registry", () => {
|
||||
for (const file of files) {
|
||||
const area = file.replace(/\.ts$/, "");
|
||||
const source = readFileSync(join(import.meta.dir, "commands", file), "utf8");
|
||||
const pattern = /action === "([a-z0-9-]+)"[\s\S]{0,600}?runCapability\(\s*"(seal_[a-z_0-9]+)"/g;
|
||||
const pattern = /action === "([a-z0-9-]+)"[\s\S]{0,600}?runCapability\(\s*"(seal[A-Z][A-Za-z0-9]*)"/g;
|
||||
let match;
|
||||
while ((match = pattern.exec(source))) {
|
||||
pairs.push({ area, action: match[1]!, tool: match[2]! });
|
||||
|
||||
Reference in new issue
Block a user