@scarn/sdk 0.8.5 → 0.8.6
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.
|
@@ -286,14 +286,6 @@ function checkHealthChecks(steps) {
|
|
|
286
286
|
message: `${where} names MCP server "${check.mcp}", but the step declares no ` + `such server in mcps. Declared servers: ${mcpServerKeys.length > 0 ? listPaths([...mcpServerKeys].sort()) : "(none)"}.`
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
const prefix = `${check.mcp}_`;
|
|
290
|
-
if (check.tool.startsWith(prefix)) {
|
|
291
|
-
issues.push({
|
|
292
|
-
check: "health-check-double-qualified",
|
|
293
|
-
severity: "error",
|
|
294
|
-
message: `${where} sets mcp "${check.mcp}" and tool "${check.tool}", which already ` + `starts with "${prefix}". When "mcp" is set, "tool" should be the bare tool ` + `name \u2014 OpenCode resolves it to "${prefix}${check.tool}". Did you mean ` + `tool: "${check.tool.slice(prefix.length)}"?`
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
289
|
});
|
|
298
290
|
}
|
|
299
291
|
return issues;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type DefinitionValidationIssue = {
|
|
2
|
-
readonly check: "health-check-mcp-server" | "
|
|
2
|
+
readonly check: "health-check-mcp-server" | "env-var" | "env-var-mcp" | "env-var-applies" | "runtime" | "repo" | "artifact-field" | "artifact-marker";
|
|
3
3
|
/**
|
|
4
4
|
* Whether this issue blocks a push. Only `assertValidDefinitionSpecs`
|
|
5
5
|
* treats the tiers differently: it blocks a push on `"error"` alone.
|
package/dist/push/index.js
CHANGED