@mushi-mushi/mcp 0.29.1 → 0.30.0
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/README.md +4 -2
- package/dist/catalog.js +1 -1
- package/dist/{chunk-6SHKBN6R.js → chunk-MQFZGJ72.js} +56 -2
- package/dist/{chunk-7RWHDJPZ.js → chunk-YOLJIBQR.js} +32 -2
- package/dist/clients.d.ts +1 -1
- package/dist/clients.js +2 -2
- package/dist/feature-groups.d.ts +10 -2
- package/dist/feature-groups.js +3 -1
- package/dist/index.js +346 -72
- package/dist/server.js +261 -70
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
The [Model Context Protocol](https://modelcontextprotocol.io/) server for [Mushi Mushi](https://github.com/kensaurus/mushi-mushi). It lets Cursor, Claude Code, VS Code or any MCP client read your app's bug reports, get a plain-English diagnosis with a fix to start from, and dispatch or merge fixes. Your editor's own model does the work, so you need no second LLM key.
|
|
11
11
|
|
|
12
|
+
Docs: [MCP guide](https://kensaur.us/mushi-mushi/docs/sdks/mcp) · [tool reference](https://kensaur.us/mushi-mushi/docs/sdks/mcp-tools)
|
|
13
|
+
|
|
12
14
|
```mermaid
|
|
13
15
|
flowchart LR
|
|
14
16
|
A["Bug reports<br/>in Mushi"] --> B["This MCP server"] --> C["Your editor<br/>'what's broken in prod?'"] --> D["Fix: you, or a<br/>draft PR from an agent"]
|
|
@@ -29,7 +31,7 @@ Restart the editor and ask *"what's broken in prod?"*. For Cursor and Claude, `s
|
|
|
29
31
|
"mcpServers": {
|
|
30
32
|
"mushi-mushi": {
|
|
31
33
|
"command": "npx",
|
|
32
|
-
"args": ["-y", "@mushi-mushi/mcp@0.
|
|
34
|
+
"args": ["-y", "@mushi-mushi/mcp@0.30.0"],
|
|
33
35
|
"env": {
|
|
34
36
|
"MUSHI_API_KEY": "mushi_xxxxxxxxxxxxxxxxxxxx",
|
|
35
37
|
"MUSHI_PROJECT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
@@ -59,7 +61,7 @@ Claude Desktop does not expand `${VAR}` references in this file; Cursor and VS C
|
|
|
59
61
|
| `diagnose_setup` | Explains a broken install and the one next step |
|
|
60
62
|
| `search_mushi_docs` | Answers setup and API questions from the docs |
|
|
61
63
|
|
|
62
|
-
The full catalog has
|
|
64
|
+
The full catalog has 130 tools, plus 8 resources (`project://dashboard`, `project://stats`, …) and 4 prompts (`summarize_report_for_fix`, `triage_next_steps`, …). Every tool carries read-only and destructive hints, so your editor can ask before it changes anything. Full list: [MCP tool reference](https://kensaur.us/mushi-mushi/docs/sdks/mcp-tools).
|
|
63
65
|
|
|
64
66
|
**Tool groups.** New installs get a lean default: `triage`, `fixes`, `inventory`, `setup`, `docs`. Turn on more with `MUSHI_FEATURES=triage,qa,codebase` (stdio) or `?features=…` on the hosted URL, or everything with `all`. Groups: `qa`, `skills`, `codebase`, `rewards`, `admin`, `audit`, `usage`. Add `?read_only=1` to the hosted URL to hide every write tool.
|
|
65
67
|
|
package/dist/catalog.js
CHANGED
|
@@ -304,6 +304,24 @@ var TOOL_CATALOG = [
|
|
|
304
304
|
returnsUntrusted: true,
|
|
305
305
|
useCase: "What does my CI cost, and would it be cheaper or faster on my own machine?"
|
|
306
306
|
},
|
|
307
|
+
{
|
|
308
|
+
name: "get_ci_bill",
|
|
309
|
+
title: "Real GitHub Actions bill",
|
|
310
|
+
description: 'Return what GitHub actually charged for Actions, read from GitHub\'s billing usage API by the CI collector once a day (or pushed with `mushi runner bill --push`). Unlike get_ci_costs, these money figures are measured, not estimated. Returns { window, previousWindow, provenance: "measured", currency: "USD", available, repoScoped (true when you are not a member of the organization: only your projects\' repos are shown), unavailableReason (why there is no bill and how to connect one), owners [{ owner, ownerType, lastOkAt, lastAttemptAt, lastError, lastSource (api | cli), coveredFrom }], month { label, grossUsd, discountUsd, netUsd } (this calendar month so far), totals { grossUsd, discountUsd, netUsd, minutes }, previousTotals and change { netUsd, netPct } (null unless Mushi holds the whole previous period), windowComplete, byRepo [{ repo, netUsd, grossUsd, discountUsd, minutes }], bySku, byDay (every day of the window), dataThrough, agentShare { share, billedMinutes, agentBilledMinutes, branches, provenance: "estimated" } (paid GitHub-hosted minutes on Mushi agent branches, from the jobs Mushi recorded) }. Net is what was charged; public repos and included minutes show as discount. Optional projectId (default: the configured project; an account-level key with none reads every project) and days (1-90, default 30). Read-only.',
|
|
311
|
+
scope: "mcp:read",
|
|
312
|
+
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
313
|
+
returnsUntrusted: true,
|
|
314
|
+
useCase: "What did GitHub Actions actually cost me this month, and which repo or agent drove it?"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
name: "get_worker_status",
|
|
318
|
+
title: "Local worker status and problems",
|
|
319
|
+
description: "Return your local workers (`mushi work --daemon`, ADR 0048) as the console's Pipeline \u2192 Workers tab shows them: flags first, worst first (ADR 0048 amendment 2026-10-28), then machines and lanes. A flag is one way a worker stopped doing useful work, in plain words: host_offline, machine_not_ready (a lane's clone is not a git clone), run_stuck (a run has held an agent space over 45 minutes, with its stage: prepare, agent, commit = the repo's commit hook, push = its pre-push hook, pr, and its last log lines), lanes_waiting (lanes waited over 15 minutes for an agent space, naming the runs that hold them), account_check (the Cursor account check: another account, signed out, missing, or timed out), gh_signed_out, machine_waiting (memory, GitHub quota or sign-in guard), machine_busy (load per core 2 or more), hook_failures (2+ runs of a lane failed in the repo's git hooks in 24 h), unmanaged_run (a `mushi work` run no worker claims has run over 45 minutes) and credits_idle (no agent work for 2 hours while Cursor credits expire within 7 days, with what blocks the work). Each flag has { id, kind, severity (danger | warn), hostname, laneName, title, cause, sinceSec, stage, log, actions [{ kind (stop_run | pause_lane | open_report | open_pr | copy_command | recheck_account | switch_account | open_page), label, command? }] }; stopping a run, pausing a lane, re-checking the account and switching the Cursor account (a sign-in link only the owner of the machine sees) happen in the console. Log lines are cleaned on the machine and on the server (no keys, tokens, e-mails or paths) but are still text from a machine and its repos. Returns { generatedAt, flags, projects, hosts [{ id, hostname, platform, online, lastHeartbeatAt, status (state, agents, maxAgents, memAvailableGb, load1, cpus, checks, slots, waitWhy), guards, revoked, mine, cursorAccount (in full only on your own machines), cursorLogin (the last account switch: state, never its link), canSwitchAccount }], lanes [{ id, hostId, projectId, projectName, name, config, status (state, counters, inflight runs), active, queue, recent, counts7d }] }. Optional projectId (default: the configured project; an account-level key with none reads every project). Read-only.",
|
|
320
|
+
scope: "mcp:read",
|
|
321
|
+
hints: { readOnly: true, idempotent: true, openWorld: false },
|
|
322
|
+
returnsUntrusted: true,
|
|
323
|
+
useCase: "Why did my local worker lanes stop fixing bugs, and which run is stuck where?"
|
|
324
|
+
},
|
|
307
325
|
{
|
|
308
326
|
name: "request_ci_placement_change",
|
|
309
327
|
title: "Ask to change where CI runs (needs approval)",
|
|
@@ -313,6 +331,42 @@ var TOOL_CATALOG = [
|
|
|
313
331
|
returnsUntrusted: true,
|
|
314
332
|
useCase: "Ask to run yen-yen's PR jobs on the Alienware runner instead of paid GitHub minutes, for a person to approve."
|
|
315
333
|
},
|
|
334
|
+
{
|
|
335
|
+
name: "open_ci_cost_fix",
|
|
336
|
+
title: "Open a CI cost fix PR (draft)",
|
|
337
|
+
description: "Open a DRAFT pull request that applies one CI cost fix to one workflow file (ADR 0047), the fix a CI advice item offers as autofix (get_ci_overview / get_ci_costs advice[].autofix { kind, projectId, repo, workflowPath }). kind: add_concurrency (a concurrency group that cancels superseded pull request runs, never a push), skip_drafts (ready_for_review added to the pull_request types and every job skips drafts), weekly_cron (a schedule that fires more than weekly runs once a week), ignore_docs_paths (paths-ignore for docs-only changes, Markdown, docs/, license and issue templates, on pull_request and push; refused when a job looks like a required check, because a skipped workflow never reports and the PR could not merge). The repo must be connected to the project. Mushi reads the workflow from the default branch, edits only that file (comments kept), opens the PR as a draft with a conventional ci: title, and records the workflow's billed minutes per day for the 14 days before; nothing changes until a person reviews, readies and merges it. The job runs in the background: read it again with the job id (GET /v1/admin/ci/cost-fixes/{id}, or `mushi runner fix-status`); after the merge it shows the saving measured per day. Writing a workflow file needs the GitHub App's Workflows: Read and write permission or a token with the workflow scope. Confirm with the user first. Returns { job: { id, status (queued | running | pr_opened | no_change | refused | failed), summary, errorCode, error, prUrl, baseline, measured, saving } }, or an error (REPO_NOT_IN_PROJECT, PR_ALREADY_OPEN with the job, COST_FIX_IN_PROGRESS, RATE_LIMITED: 10 an hour per project). Write.",
|
|
338
|
+
scope: "mcp:write",
|
|
339
|
+
hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
|
|
340
|
+
returnsUntrusted: true,
|
|
341
|
+
useCase: "Stop glot.it's CI from running on draft agent PRs: open the skip-drafts fix for ci.yml as a draft PR to review."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "preview_ci_cost_fix_rollout",
|
|
345
|
+
title: "Preview CI cost fixes for every app",
|
|
346
|
+
description: "Preview 'Apply to every app' for the CI cost fixes (ADR 0047 amendment): every CI advice item that carries an autofix, across the apps this key may change (viewers' apps are left out), grouped per app and repo, so each repo can get ONE draft pull request (one CI run) for all its fixes. Per repo { projectId, projectName, repo, items [{ key, workflowPath, kind (add_concurrency | skip_drafts | weekly_cron | ignore_docs_paths), title, evidence, monthSavingUsd (estimated USD per 30 days, null when Mushi cannot price it), state (ready | pr_open | in_progress), prUrl }], readyItems, monthSavingUsd (the ready items' priced saving), unpricedItems, block (set when Mushi already knows the repo's GitHub access cannot edit workflow files: GITHUB_WORKFLOWS_WRITE_MISSING, from the setup check or the last attempt) }, largest saving first, plus totals, caps { reposPerRequest: 10, itemsPerRepo: 20 } and partial (set when part of the advice could not be read). Optional projectId limits it to one app; an account-level key with none reads every app. Read-only: it changes nothing. Open them with apply_ci_cost_fix_rollout.",
|
|
347
|
+
scope: "mcp:read",
|
|
348
|
+
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
349
|
+
returnsUntrusted: true,
|
|
350
|
+
useCase: "Which CI cost fixes can Mushi open across all my apps, and what would each repo save?"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "apply_ci_cost_fix_rollout",
|
|
354
|
+
title: "Open CI cost fixes for every app (one draft PR per repo)",
|
|
355
|
+
description: "Open the CI cost fixes from preview_ci_cost_fix_rollout as ONE draft pull request per repo (ADR 0047 amendment), so each repo runs CI once for all its fixes instead of once per fix. repos: [{ projectId, repo, items: [{ workflowPath, kind }] }], at most 10 repos and 20 items each (pass the preview's ready items). Mushi rebuilds the advice itself and opens only items it still advises (evidence and saving come from the server), skips an edit whose PR is still open or that is being opened, and counts each repo once against its project's 10 CI fix PRs an hour. In each repo it reads every workflow once, applies the kinds in turn with the same refusals as open_ci_cost_fix, and opens one draft PR with a ci: title whose body lists each change and each refusal; a refused item is never dropped, and when every item is refused no PR is opened. Nothing changes until a person reviews, readies and merges the PR. Needs the GitHub App's Workflows: Read and write permission (or a token with the workflow scope). Confirm with the user first. Returns { queued, results [{ projectId, repo, status (queued | skipped | error), bundleId, jobs, skipped [{ workflowPath, kind, code (NOT_ADVISED | PR_ALREADY_OPEN | COST_FIX_IN_PROGRESS), message, prUrl }], error { code (NOT_FOUND | FORBIDDEN | REPO_NOT_IN_PROJECT | RATE_LIMITED | COST_FIX_IN_PROGRESS | MIGRATION_PENDING), message } }] }. Follow each bundle with get_ci_cost_fix_bundle. Write.",
|
|
356
|
+
scope: "mcp:write",
|
|
357
|
+
hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
|
|
358
|
+
returnsUntrusted: true,
|
|
359
|
+
useCase: "Open every advised CI cost fix across my apps, one reviewed draft PR per repo."
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "get_ci_cost_fix_bundle",
|
|
363
|
+
title: "CI cost fix bundle (one PR, several fixes)",
|
|
364
|
+
description: "Read one CI cost fix bundle (one draft PR for several fixes in one repo, from apply_ci_cost_fix_rollout) by its bundleId: { bundle: { id, projectId, repo, status (queued | running | pr_opened | nothing_opened | failed), prUrl, prNumber, items (each fix: workflowPath, kind, status, summary, error, prUrl, baseline, measured, saving), measuredUsdPerMonth (after the merge: the saving measured per workflow, each workflow once) } }. After the merge it reads GitHub once and stores the minutes per day since. Read-only on GitHub.",
|
|
365
|
+
scope: "mcp:read",
|
|
366
|
+
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
367
|
+
returnsUntrusted: true,
|
|
368
|
+
useCase: "Did the CI fix PR for glot.it open, which fixes were refused, and what did it save after the merge?"
|
|
369
|
+
},
|
|
316
370
|
{
|
|
317
371
|
name: "explain_finding",
|
|
318
372
|
title: "Explain one finding",
|
|
@@ -969,7 +1023,7 @@ var TDD_TOOL_CATALOG = [
|
|
|
969
1023
|
{
|
|
970
1024
|
name: "list_qa_story_runs",
|
|
971
1025
|
title: "Recent QA story runs",
|
|
972
|
-
description: "Return the most recent runs for a given QA story, newest first. Each row includes status (passed/failed/error/running), latency_ms, created_at, error_message headline, and assertion_failures (up to 10). Use this to understand whether a story is currently healthy, what the last failure was, and whether a manual run has completed.",
|
|
1026
|
+
description: "Return the most recent runs for a given QA story, newest first. Each row includes status (passed/failed/error/running), latency_ms, created_at, error_message headline, and assertion_failures (up to 10). Optional projectId (project_id is accepted too) defaults to the configured project. An account-level key passes the project the story belongs to; a project-bound key refuses a different project. Use this to understand whether a story is currently healthy, what the last failure was, and whether a manual run has completed.",
|
|
973
1027
|
scope: "mcp:read",
|
|
974
1028
|
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
975
1029
|
useCase: 'Show me the last 10 runs for the "home page loads" story and why they failed.'
|
|
@@ -977,7 +1031,7 @@ var TDD_TOOL_CATALOG = [
|
|
|
977
1031
|
{
|
|
978
1032
|
name: "get_qa_story_run",
|
|
979
1033
|
title: "QA story run detail",
|
|
980
|
-
description: "Fetch the full detail for a single qa_story_run: status, error_message, assertion_failures, latency_ms, provider_session_url (Browserbase replay link when available), and screenshot URLs from qa_story_evidence. Use this to drill into a specific failing run and understand the exact error before deciding whether to improve the story script or fix the app.",
|
|
1034
|
+
description: "Fetch the full detail for a single qa_story_run: status, error_message, assertion_failures, latency_ms, provider_session_url (Browserbase replay link when available), and screenshot URLs from qa_story_evidence. Optional projectId (project_id is accepted too) defaults to the configured project. An account-level key passes the project the story belongs to; a project-bound key refuses a different project. Use this to drill into a specific failing run and understand the exact error before deciding whether to improve the story script or fix the app.",
|
|
981
1035
|
scope: "mcp:read",
|
|
982
1036
|
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
983
1037
|
useCase: "What exactly happened in this failed QA run? Show me the error and screenshots."
|
|
@@ -13,7 +13,13 @@ var FEATURE_GROUPS = [
|
|
|
13
13
|
"usage",
|
|
14
14
|
"codebase",
|
|
15
15
|
/** Deprecated aliases kept for one release — hidden unless `legacy` or `all`. */
|
|
16
|
-
"legacy"
|
|
16
|
+
"legacy",
|
|
17
|
+
/**
|
|
18
|
+
* A preset, not a group: no tool maps to it. It lists PRESET_TOOLS.vibe
|
|
19
|
+
* (about a dozen tools across triage, fixes, setup and docs) for chat
|
|
20
|
+
* connectors such as Lovable and for clients that cap their tool count.
|
|
21
|
+
*/
|
|
22
|
+
"vibe"
|
|
17
23
|
];
|
|
18
24
|
var DEFAULT_FEATURE_GROUPS = [
|
|
19
25
|
"triage",
|
|
@@ -23,7 +29,7 @@ var DEFAULT_FEATURE_GROUPS = [
|
|
|
23
29
|
"docs"
|
|
24
30
|
];
|
|
25
31
|
var ALL_FEATURE_GROUPS = FEATURE_GROUPS.filter(
|
|
26
|
-
(g) => g !== "legacy"
|
|
32
|
+
(g) => g !== "legacy" && g !== "vibe"
|
|
27
33
|
);
|
|
28
34
|
var TOOL_FEATURE_MAP = {
|
|
29
35
|
// triage
|
|
@@ -95,7 +101,13 @@ var TOOL_FEATURE_MAP = {
|
|
|
95
101
|
refresh_ci: "fixes",
|
|
96
102
|
get_ci_overview: "fixes",
|
|
97
103
|
get_ci_costs: "fixes",
|
|
104
|
+
get_ci_bill: "fixes",
|
|
105
|
+
get_worker_status: "fixes",
|
|
98
106
|
request_ci_placement_change: "fixes",
|
|
107
|
+
open_ci_cost_fix: "fixes",
|
|
108
|
+
preview_ci_cost_fix_rollout: "fixes",
|
|
109
|
+
apply_ci_cost_fix_rollout: "fixes",
|
|
110
|
+
get_ci_cost_fix_bundle: "fixes",
|
|
99
111
|
get_fix_verification: "fixes",
|
|
100
112
|
reopen_report: "fixes",
|
|
101
113
|
reply_to_reporter: "fixes",
|
|
@@ -170,6 +182,22 @@ var TOOL_FEATURE_MAP = {
|
|
|
170
182
|
get_mushi_doc: "docs",
|
|
171
183
|
use_mushi: "docs"
|
|
172
184
|
};
|
|
185
|
+
var PRESET_TOOLS = {
|
|
186
|
+
vibe: [
|
|
187
|
+
"triage_next_steps",
|
|
188
|
+
"get_recent_reports",
|
|
189
|
+
"search_reports",
|
|
190
|
+
"get_report_detail",
|
|
191
|
+
"get_fix_context",
|
|
192
|
+
"transition_status",
|
|
193
|
+
"reply_to_reporter",
|
|
194
|
+
"file_report",
|
|
195
|
+
"diagnose_setup",
|
|
196
|
+
"use_mushi",
|
|
197
|
+
"search_mushi_docs",
|
|
198
|
+
"get_mushi_doc"
|
|
199
|
+
]
|
|
200
|
+
};
|
|
173
201
|
var DEPRECATED_TOOL_ALIASES = {
|
|
174
202
|
// Removed deprecated tools → successor.
|
|
175
203
|
setup_check: "diagnose_setup",
|
|
@@ -208,6 +236,7 @@ function toolMatchesFeatures(toolName, filter) {
|
|
|
208
236
|
if (Object.prototype.hasOwnProperty.call(DEPRECATED_TOOL_ALIASES, toolName)) {
|
|
209
237
|
return filter.includes("legacy");
|
|
210
238
|
}
|
|
239
|
+
if (filter.some((g) => PRESET_TOOLS[g]?.includes(toolName))) return true;
|
|
211
240
|
const group = TOOL_FEATURE_MAP[toolName];
|
|
212
241
|
return group !== void 0 && filter.includes(group);
|
|
213
242
|
}
|
|
@@ -225,6 +254,7 @@ export {
|
|
|
225
254
|
DEFAULT_FEATURE_GROUPS,
|
|
226
255
|
ALL_FEATURE_GROUPS,
|
|
227
256
|
TOOL_FEATURE_MAP,
|
|
257
|
+
PRESET_TOOLS,
|
|
228
258
|
DEPRECATED_TOOL_ALIASES,
|
|
229
259
|
parseFeaturesParam,
|
|
230
260
|
parseFeaturesCsv,
|
package/dist/clients.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ import { FeatureGroup } from './feature-groups.js';
|
|
|
49
49
|
* editor launch. Synced to package.json by `scripts/sync-mcp-pin.mjs` — never
|
|
50
50
|
* hand-edit the version.
|
|
51
51
|
*/
|
|
52
|
-
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.
|
|
52
|
+
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.30.0";
|
|
53
53
|
interface StdioConfig {
|
|
54
54
|
command: string;
|
|
55
55
|
args: string[];
|
package/dist/clients.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
DEFAULT_FEATURE_GROUPS,
|
|
6
6
|
appendFeaturesToUrl,
|
|
7
7
|
featuresQueryString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YOLJIBQR.js";
|
|
9
9
|
|
|
10
10
|
// src/clients.ts
|
|
11
|
-
var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.
|
|
11
|
+
var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.30.0";
|
|
12
12
|
var PIN_SPEC_RE = /^@mushi-mushi\/mcp@\d+\.\d+\.\d+$/;
|
|
13
13
|
function pinOf(pinSpec) {
|
|
14
14
|
return pinSpec && PIN_SPEC_RE.test(pinSpec) ? pinSpec : MCP_PIN_SPEC;
|
package/dist/feature-groups.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* packages/server/supabase/functions/mcp/feature-groups.ts (checked by
|
|
10
10
|
* packages/mcp/scripts/check-catalog-sync.mjs).
|
|
11
11
|
*/
|
|
12
|
-
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "codebase", "legacy"];
|
|
12
|
+
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "codebase", "legacy", "vibe"];
|
|
13
13
|
type FeatureGroup = (typeof FEATURE_GROUPS)[number];
|
|
14
14
|
/** Lean default for new installs — a focused subset of the full catalog. */
|
|
15
15
|
declare const DEFAULT_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
@@ -21,6 +21,14 @@ declare const ALL_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
|
21
21
|
* are not filtered by feature group, so they have no entry.
|
|
22
22
|
*/
|
|
23
23
|
declare const TOOL_FEATURE_MAP: Record<string, FeatureGroup>;
|
|
24
|
+
/**
|
|
25
|
+
* Presets: a named tool list that crosses groups. `?features=vibe` lists only
|
|
26
|
+
* these; `?features=vibe,fixes` adds a whole group. The vibe set is the
|
|
27
|
+
* "a user said my app is broken" loop: what came in, why it broke, the fix
|
|
28
|
+
* prompt, mark it fixed, tell the reporter, plus setup and docs. Keep it
|
|
29
|
+
* small: chat connectors and Cursor degrade past about 40 tools.
|
|
30
|
+
*/
|
|
31
|
+
declare const PRESET_TOOLS: Partial<Record<FeatureGroup, readonly string[]>>;
|
|
24
32
|
/**
|
|
25
33
|
* Tools that were renamed or removed. The old name maps to its successor so
|
|
26
34
|
* callers / docs can resolve the new tool, and a one-release deprecation
|
|
@@ -36,4 +44,4 @@ declare function toolMatchesFeatures(toolName: string, filter: FeatureFilter): b
|
|
|
36
44
|
declare function featuresQueryString(groups: readonly FeatureGroup[]): string;
|
|
37
45
|
declare function appendFeaturesToUrl(baseUrl: string, groups: readonly FeatureGroup[]): string;
|
|
38
46
|
|
|
39
|
-
export { ALL_FEATURE_GROUPS, DEFAULT_FEATURE_GROUPS, DEPRECATED_TOOL_ALIASES, FEATURE_GROUPS, type FeatureFilter, type FeatureGroup, TOOL_FEATURE_MAP, appendFeaturesToUrl, featuresQueryString, parseFeaturesCsv, parseFeaturesParam, toolMatchesFeatures };
|
|
47
|
+
export { ALL_FEATURE_GROUPS, DEFAULT_FEATURE_GROUPS, DEPRECATED_TOOL_ALIASES, FEATURE_GROUPS, type FeatureFilter, type FeatureGroup, PRESET_TOOLS, TOOL_FEATURE_MAP, appendFeaturesToUrl, featuresQueryString, parseFeaturesCsv, parseFeaturesParam, toolMatchesFeatures };
|
package/dist/feature-groups.js
CHANGED
|
@@ -3,18 +3,20 @@ import {
|
|
|
3
3
|
DEFAULT_FEATURE_GROUPS,
|
|
4
4
|
DEPRECATED_TOOL_ALIASES,
|
|
5
5
|
FEATURE_GROUPS,
|
|
6
|
+
PRESET_TOOLS,
|
|
6
7
|
TOOL_FEATURE_MAP,
|
|
7
8
|
appendFeaturesToUrl,
|
|
8
9
|
featuresQueryString,
|
|
9
10
|
parseFeaturesCsv,
|
|
10
11
|
parseFeaturesParam,
|
|
11
12
|
toolMatchesFeatures
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YOLJIBQR.js";
|
|
13
14
|
export {
|
|
14
15
|
ALL_FEATURE_GROUPS,
|
|
15
16
|
DEFAULT_FEATURE_GROUPS,
|
|
16
17
|
DEPRECATED_TOOL_ALIASES,
|
|
17
18
|
FEATURE_GROUPS,
|
|
19
|
+
PRESET_TOOLS,
|
|
18
20
|
TOOL_FEATURE_MAP,
|
|
19
21
|
appendFeaturesToUrl,
|
|
20
22
|
featuresQueryString,
|