All files / src command-catalog.ts

99.66% Statements 300/301
80% Branches 8/10
100% Functions 6/6
99.66% Lines 300/301

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 3027x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x    
export type CommandHelpEntry = {
  id: string
  title: string
  commandId: string
  paletteTitle: string
  group: "guides" | "views" | "governance" | "kit"
  summary: string
  details: string[]
  outputChannel?: string
  icon?: string
  status: "shipped" | "stub"
}
 
export const COMMAND_HELP_GROUPS: { id: CommandHelpEntry["group"]; label: string }[] = [
  { id: "guides", label: "Guides — read in this order" },
  { id: "views", label: "Views (editor tabs)" },
  { id: "governance", label: "Governance & diagnostics" },
  { id: "kit", label: "Kit setup" },
]
 
export const MERIDIAN_COMMAND_CATALOG: CommandHelpEntry[] = [
  {
    id: "guide-how-to",
    title: "How to use (start here)",
    commandId: "meridian.openHowToUse",
    paletteTitle: "Meridian: Open How to Use",
    group: "guides",
    summary: "Entry guide — extension vs chat, workflows, setup, reading order",
    details: [
      "Kit file: .agent/references/how-to-use.md — single human entry point.",
      "You type slash workflows (/create-us). Agents and skills run automatically.",
    ],
    icon: "$(lightbulb)",
    status: "shipped",
  },
  {
    id: "guide-start-here",
    title: "Concepts (start here)",
    commandId: "meridian.openStartHere",
    paletteTitle: "Meridian: Open Concepts",
    group: "guides",
    summary: "Phases, gates, folders — mental model only",
    details: [
      "No command lists — recipes are in the usage guide; commands in agents help.",
      "Kit file: .agent/references/start-here.md",
    ],
    icon: "$(home)",
    status: "shipped",
  },
  {
    id: "guide-usage",
    title: "Usage guide (recipes)",
    commandId: "meridian.openUsageGuide",
    paletteTitle: "Meridian: Open Usage Guide",
    group: "guides",
    summary: "Situation → steps: new project, brownfield, implement, close US",
    details: [
      "Kit file: .agent/references/usage-guide.md",
    ],
    icon: "$(list-unordered)",
    status: "shipped",
  },
  {
    id: "agents-help",
    title: "Agents & slash commands (reference)",
    commandId: "meridian.openAgentsHelp",
    paletteTitle: "Meridian: Open Agents Help",
    group: "guides",
    summary: "Lookup: all /commands, agent groups, steps 1–20",
    details: [
      "Use Ctrl+F — not meant as a linear tutorial.",
      "Kit file: .agent/references/agents-help.md",
    ],
    icon: "$(book)",
    status: "shipped",
  },
  {
    id: "guide-extension-commands",
    title: "Extension commands (this catalog)",
    commandId: "meridian.openHelp",
    paletteTitle: "Meridian: Extension Commands",
    group: "guides",
    summary: "Palette commands for board, validate, kit install — not chat slash commands",
    details: [
      "Opens this help tab listing extension-only commands.",
      "Chat slash commands (/status, /create-us) live in agents-help.md.",
    ],
    icon: "$(symbol-event)",
    status: "shipped",
  },
  {
    id: "install-kit",
    title: "Install harness",
    commandId: "meridian.installKit",
    paletteTitle: "Meridian: Install Harness",
    group: "kit",
    summary: "Copy bundled Meridian kit (.agent/) into the workspace",
    details: [
      "Manual only — run from status bar, Command Palette, or Meridian → Commands.",
      "Copies agents, skills, workflows, and scripts from the VSIX bundle.",
      "Syncs .cursor/, .claude/, and Codex IDE adapters via sync_cursor_kit.sh.",
      "After install: run /init-meridian in chat if docs/ does not exist yet.",
    ],
    outputChannel: "Meridian Tools",
    icon: "$(cloud-download)",
    status: "shipped",
  },
  {
    id: "upgrade-kit",
    title: "Upgrade harness",
    commandId: "meridian.upgradeKit",
    paletteTitle: "Meridian: Upgrade Harness",
    group: "kit",
    summary: "Replace existing .agent/ with the bundled kit version",
    details: [
      "Overwrites .agent/ and re-runs adapter sync.",
      "Use after updating the extension to pick up kit changes.",
    ],
    outputChannel: "Meridian Tools",
    icon: "$(cloud-upload)",
    status: "shipped",
  },
  {
    id: "board",
    title: "Open Board",
    commandId: "meridian.openBoard",
    paletteTitle: "Meridian: Open Board",
    group: "views",
    summary: "Read-only kanban from SQLite",
    details: [
      "Use the board to see status — edit delivery via slash commands or kit CLI.",
      "Project row (first toolbar line): active name, docs/ path, US count; dropdown when several products.",
      "Columns: 📋 Backlog · 📌 Todo · 🔶 Partial · 🧪 Tests · ✅ Done (from status + ready); toggles 🧊 Frozen · 🚫 Deprecated.",
      "Click a card to open HTML preview; Edit opens a structured form backed by SQLite.",
    ],
    icon: "$(layout)",
    status: "shipped",
  },
  {
    id: "versions",
    title: "Open Versions",
    commandId: "meridian.openVersions",
    paletteTitle: "Meridian: Open Versions",
    group: "views",
    summary: "Lists releases from SQLite delivery store",
    details: [
      "Project row in toolbar — same active docs/ as Board.",
      "Accordion per version with progress (US done/total).",
    ],
    icon: "$(versions)",
    status: "shipped",
  },
  {
    id: "sprints",
    title: "Open Sprints",
    commandId: "meridian.openSprints",
    paletteTitle: "Meridian: Open Sprints",
    group: "views",
    summary: "Lists sprints filtered by version",
    details: [
      "Project row in toolbar — same active docs/ as Board.",
      "All / None / chip filter (same pattern as the Board).",
    ],
    icon: "$(run-all)",
    status: "shipped",
  },
  {
    id: "epics",
    title: "Open Epics",
    commandId: "meridian.openEpics",
    paletteTitle: "Meridian: Open Epics",
    group: "views",
    summary: "Lists epics with stories in the selected version scope",
    details: [
      "Project row in toolbar — same active docs/ as Board.",
      "Version filter only (All / None / chips).",
      "Progress bar per epic (US done / total).",
    ],
    icon: "$(layers)",
    status: "shipped",
  },
  {
    id: "decisions",
    title: "Open Decisions",
    commandId: "meridian.openDecisions",
    paletteTitle: "Meridian: Open Decisions",
    group: "views",
    summary: "Read-only decision log from SQLite by date",
    details: [
      "Project row in toolbar — same active docs/ as Board.",
      "Accordion per calendar day; entries show time, title, what/why/impact.",
      "Click affected document to open the workspace file.",
      "Append via /update-decisions-log — not editable in the extension.",
    ],
    icon: "$(history)",
    status: "shipped",
  },
  {
    id: "architecture-diagram",
    title: "Open Architecture Diagram",
    commandId: "meridian.openArchitectureDiagram",
    paletteTitle: "Meridian: Open Architecture Diagram",
    group: "views",
    summary: "Interactive architecture maps from docs/architecture/diagrams (Mermaid .md / .mmd)",
    details: [
      "Reads Mermaid from docs/architecture/diagrams; Meridian renderer (theme + pan/zoom).",
      "Picker lists all diagram files (runtime, database ER, flows); optional Notes; open Source or linked phase doc.",
    ],
    icon: "$(type-hierarchy)",
    status: "shipped",
  },
  {
    id: "delivery-graph",
    title: "Open Delivery Graph",
    commandId: "meridian.openDeliveryGraph",
    paletteTitle: "Meridian: Open Delivery Graph",
    group: "views",
    summary: "US dependency topology from planning export (dependsOn edges)",
    details: [
      "Force-directed canvas with pan, zoom, and draggable nodes (Obsidian-style).",
      "Filtros laterais (mesmo padrão do board): versão e sprint com checkboxes.",
      "Click a node to open the US virtual document.",
      "Separate from the code import graph.",
    ],
    icon: "$(type-hierarchy-sub)",
    status: "shipped",
  },
  {
    id: "import-graph",
    title: "Open Import Graph",
    commandId: "meridian.openImportGraph",
    paletteTitle: "Meridian: Open Import Graph",
    group: "views",
    summary: "Scoped source import graph via kit CLI meridian_import_graph.py",
    details: [
      "Force-directed canvas scoped to the active Meridian project packageRoot.",
      "Nodes = source files; edges = static imports; click a node to open the file.",
      "Switch active project in the toolbar to rescan another package.",
    ],
    icon: "$(type-hierarchy-super)",
    status: "shipped",
  },
  {
    id: "deliverables",
    title: "Open Deliverables",
    commandId: "meridian.openDeliverables",
    paletteTitle: "Meridian: Open Deliverables",
    group: "views",
    summary: "Alias for Open Versions (v4 compatibility)",
    details: ["Same tab and behavior as Open Versions."],
    icon: "$(list-tree)",
    status: "shipped",
  },
  {
    id: "validate",
    title: "Validate project",
    commandId: "meridian.validateProject",
    paletteTitle: "Meridian: Validate Project",
    group: "governance",
    summary: "Runs validate_meridian.py on the project root",
    details: [
      "Equivalent to python3 .agent/scripts/validate_meridian.py <project-folder>.",
      "Checks docs/ structure, SQLite delivery, template contracts, etc.",
      "Pass/fail notification; full log in Output.",
    ],
    outputChannel: "Meridian Validate",
    icon: "$(checklist)",
    status: "shipped",
  },
  {
    id: "select-project",
    title: "Select active project",
    commandId: "meridian.selectActiveProject",
    paletteTitle: "Meridian: Select Active Project",
    group: "governance",
    summary: "Switch which docs/ tree is active when the repo has several",
    details: [
      "Discovery finds every folder named docs with Meridian fingerprint (00_scope or meridian.db).",
      "Manifest .meridian/projects.json declares ids, names, default, and exclude.",
      "Board, Deliverables, validate use the active project only.",
    ],
    icon: "$(list-selection)",
    status: "shipped",
  },
  {
    id: "status",
    title: "Workspace status",
    commandId: "meridian.showStatus",
    paletteTitle: "Meridian: Show Workspace Status",
    group: "governance",
    summary: "Shows kit root, active project, and all resolved docs/ paths",
    details: [
      "Kit root (where .agent/MERIDIAN.md lives).",
      "Active docs/ path — any package layout (docs, apps/pkg/docs, etc.).",
      "Lists all Meridian projects when more than one docs/ exists.",
    ],
    outputChannel: "Meridian Tools",
    icon: "$(info)",
    status: "shipped",
  },
]