main (scanning...) claude/post-v0.43-roadmap-mf1ngx claude/refrakt-sentiment-mapping-e4v9zy claude/v041-composed-runes-guide claude/v041-project-rune-dir claude/plan-github-issues-sync-w4odbn (stale) claude/value-primitives-and-grid (stale) claude/vscode-indented-markdoc (stale) claude/v0-37-0-review-vqpl41 main claude/post-v0.43-roadmap-mf1ngx claude/refrakt-sentiment-mapping-e4v9zy claude/v041-composed-runes-guide claude/v041-project-rune-dir claude/plan-github-issues-sync-w4odbn claude/value-primitives-and-grid claude/vscode-indented-markdoc
Setting up your dashboard 0 entities found · 4/8 branches scanned
Lint cli-plugin shape in refrakt package validate Add a lint pass to refrakt package validate that checks a package's cli-plugin export for structural issues — missing namespace, missing descriptions, malformed inputSchema, namespace conflicts with already-installed plugins. Catches problems at package-publish time rather than at runtime when the MCP server tries to advertise the broken tool.
Criteria completion: 0 of 7 (0%) checked; tracking started on May 1, no incremental history yet 0% 25% 50% 75% 100% May 1 Oct 28
Tracking started May 1 — check back for trends.
Acceptance Criteria refrakt package validate <pkg> runs the existing checks plus a new "cli-plugin" pass when the package exposes a cli-plugin exportErrors: missing namespace, missing commands array, command without name, command without description, command without handler Errors: inputSchema present but not a valid JSON Schema (per a lightweight check using ajv or similar) Warnings: command has no inputSchema (recommended for MCP exposure), command has no mcpHandler (recommended for clean structured I/O) Warnings: namespace clashes with another installed plugin in the current project Lint output integrated into the existing package validate text and JSON formats Tests cover: valid plugin (no findings), each error case, each warning case Approach Extend packages/cli/src/commands/package-validate.ts with a validateCliPlugin(pkgPath, allDiscovered) step.
Use a small JSON Schema validator (ajv is already used elsewhere in the workspace if needed) for inputSchema/outputSchema syntactic validation.
The allDiscovered argument lets the namespace-clash check work without re-scanning.
Dependencies WORK-160 — to pass discovered plugins for clash detectionWORK-161 — to lint the new schema fieldsReferences SPEC-043 — Refrakt MCP Serverpackages/cli/src/commands/package-validate.ts — current validator to extend