@specforge/mcp 2.0.9 → 2.1.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 +324 -0
- package/bin/specforge-mcp +19 -1
- package/dist/cli/commands/blocked.d.ts +16 -0
- package/dist/cli/commands/blocked.d.ts.map +1 -0
- package/dist/cli/commands/blocked.js +214 -0
- package/dist/cli/commands/blocked.js.map +1 -0
- package/dist/cli/commands/configure.d.ts +16 -0
- package/dist/cli/commands/configure.d.ts.map +1 -0
- package/dist/cli/commands/configure.js +218 -0
- package/dist/cli/commands/configure.js.map +1 -0
- package/dist/cli/commands/configure.types.d.ts +110 -0
- package/dist/cli/commands/configure.types.d.ts.map +1 -0
- package/dist/cli/commands/configure.types.js +105 -0
- package/dist/cli/commands/configure.types.js.map +1 -0
- package/dist/cli/commands/debug/call.d.ts +14 -0
- package/dist/cli/commands/debug/call.d.ts.map +1 -0
- package/dist/cli/commands/debug/call.js +117 -0
- package/dist/cli/commands/debug/call.js.map +1 -0
- package/dist/cli/commands/debug/index.d.ts +12 -0
- package/dist/cli/commands/debug/index.d.ts.map +1 -0
- package/dist/cli/commands/debug/index.js +12 -0
- package/dist/cli/commands/debug/index.js.map +1 -0
- package/dist/cli/commands/debug/register.d.ts +11 -0
- package/dist/cli/commands/debug/register.d.ts.map +1 -0
- package/dist/cli/commands/debug/register.js +90 -0
- package/dist/cli/commands/debug/register.js.map +1 -0
- package/dist/cli/commands/debug/test.d.ts +13 -0
- package/dist/cli/commands/debug/test.d.ts.map +1 -0
- package/dist/cli/commands/debug/test.js +117 -0
- package/dist/cli/commands/debug/test.js.map +1 -0
- package/dist/cli/commands/debug/tools.d.ts +13 -0
- package/dist/cli/commands/debug/tools.d.ts.map +1 -0
- package/dist/cli/commands/debug/tools.js +117 -0
- package/dist/cli/commands/debug/tools.js.map +1 -0
- package/dist/cli/commands/debug/types.d.ts +117 -0
- package/dist/cli/commands/debug/types.d.ts.map +1 -0
- package/dist/cli/commands/debug/types.js +43 -0
- package/dist/cli/commands/debug/types.js.map +1 -0
- package/dist/cli/commands/debug/whoami.d.ts +13 -0
- package/dist/cli/commands/debug/whoami.d.ts.map +1 -0
- package/dist/cli/commands/debug/whoami.js +161 -0
- package/dist/cli/commands/debug/whoami.js.map +1 -0
- package/dist/cli/commands/docs/content/api.d.ts +7 -0
- package/dist/cli/commands/docs/content/api.d.ts.map +1 -0
- package/dist/cli/commands/docs/content/api.js +64 -0
- package/dist/cli/commands/docs/content/api.js.map +1 -0
- package/dist/cli/commands/docs/content/concepts.d.ts +7 -0
- package/dist/cli/commands/docs/content/concepts.d.ts.map +1 -0
- package/dist/cli/commands/docs/content/concepts.js +68 -0
- package/dist/cli/commands/docs/content/concepts.js.map +1 -0
- package/dist/cli/commands/docs/content/examples.d.ts +7 -0
- package/dist/cli/commands/docs/content/examples.d.ts.map +1 -0
- package/dist/cli/commands/docs/content/examples.js +84 -0
- package/dist/cli/commands/docs/content/examples.js.map +1 -0
- package/dist/cli/commands/docs/content/index.d.ts +10 -0
- package/dist/cli/commands/docs/content/index.d.ts.map +1 -0
- package/dist/cli/commands/docs/content/index.js +10 -0
- package/dist/cli/commands/docs/content/index.js.map +1 -0
- package/dist/cli/commands/docs/content/workflow.d.ts +7 -0
- package/dist/cli/commands/docs/content/workflow.d.ts.map +1 -0
- package/dist/cli/commands/docs/content/workflow.js +44 -0
- package/dist/cli/commands/docs/content/workflow.js.map +1 -0
- package/dist/cli/commands/docs/content.d.ts +23 -0
- package/dist/cli/commands/docs/content.d.ts.map +1 -0
- package/dist/cli/commands/docs/content.js +38 -0
- package/dist/cli/commands/docs/content.js.map +1 -0
- package/dist/cli/commands/docs/display.d.ts +26 -0
- package/dist/cli/commands/docs/display.d.ts.map +1 -0
- package/dist/cli/commands/docs/display.js +53 -0
- package/dist/cli/commands/docs/display.js.map +1 -0
- package/dist/cli/commands/docs/docs.d.ts +19 -0
- package/dist/cli/commands/docs/docs.d.ts.map +1 -0
- package/dist/cli/commands/docs/docs.js +124 -0
- package/dist/cli/commands/docs/docs.js.map +1 -0
- package/dist/cli/commands/docs/index.d.ts +13 -0
- package/dist/cli/commands/docs/index.d.ts.map +1 -0
- package/dist/cli/commands/docs/index.js +13 -0
- package/dist/cli/commands/docs/index.js.map +1 -0
- package/dist/cli/commands/docs/register.d.ts +23 -0
- package/dist/cli/commands/docs/register.d.ts.map +1 -0
- package/dist/cli/commands/docs/register.js +64 -0
- package/dist/cli/commands/docs/register.js.map +1 -0
- package/dist/cli/commands/docs/tool-docs.d.ts +44 -0
- package/dist/cli/commands/docs/tool-docs.d.ts.map +1 -0
- package/dist/cli/commands/docs/tool-docs.js +182 -0
- package/dist/cli/commands/docs/tool-docs.js.map +1 -0
- package/dist/cli/commands/docs/tool-examples.d.ts +14 -0
- package/dist/cli/commands/docs/tool-examples.d.ts.map +1 -0
- package/dist/cli/commands/docs/tool-examples.js +127 -0
- package/dist/cli/commands/docs/tool-examples.js.map +1 -0
- package/dist/cli/commands/docs/types.d.ts +108 -0
- package/dist/cli/commands/docs/types.d.ts.map +1 -0
- package/dist/cli/commands/docs/types.js +33 -0
- package/dist/cli/commands/docs/types.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +16 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +322 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/doctor.types.d.ts +177 -0
- package/dist/cli/commands/doctor.types.d.ts.map +1 -0
- package/dist/cli/commands/doctor.types.js +172 -0
- package/dist/cli/commands/doctor.types.js.map +1 -0
- package/dist/cli/commands/index.d.ts +18 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +18 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/init.d.ts +17 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +326 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/init.types.d.ts +141 -0
- package/dist/cli/commands/init.types.d.ts.map +1 -0
- package/dist/cli/commands/init.types.js +24 -0
- package/dist/cli/commands/init.types.js.map +1 -0
- package/dist/cli/commands/login.d.ts +40 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/login.js +174 -0
- package/dist/cli/commands/login.js.map +1 -0
- package/dist/cli/commands/next.d.ts +16 -0
- package/dist/cli/commands/next.d.ts.map +1 -0
- package/dist/cli/commands/next.js +279 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/next.types.d.ts +191 -0
- package/dist/cli/commands/next.types.d.ts.map +1 -0
- package/dist/cli/commands/next.types.js +129 -0
- package/dist/cli/commands/next.types.js.map +1 -0
- package/dist/cli/commands/projects.d.ts +16 -0
- package/dist/cli/commands/projects.d.ts.map +1 -0
- package/dist/cli/commands/projects.js +149 -0
- package/dist/cli/commands/projects.js.map +1 -0
- package/dist/cli/commands/projects.types.d.ts +81 -0
- package/dist/cli/commands/projects.types.d.ts.map +1 -0
- package/dist/cli/commands/projects.types.js +35 -0
- package/dist/cli/commands/projects.types.js.map +1 -0
- package/dist/cli/commands/review/display.d.ts +33 -0
- package/dist/cli/commands/review/display.d.ts.map +1 -0
- package/dist/cli/commands/review/display.js +159 -0
- package/dist/cli/commands/review/display.js.map +1 -0
- package/dist/cli/commands/review/epic-review.d.ts +13 -0
- package/dist/cli/commands/review/epic-review.d.ts.map +1 -0
- package/dist/cli/commands/review/epic-review.js +69 -0
- package/dist/cli/commands/review/epic-review.js.map +1 -0
- package/dist/cli/commands/review/index.d.ts +13 -0
- package/dist/cli/commands/review/index.d.ts.map +1 -0
- package/dist/cli/commands/review/index.js +17 -0
- package/dist/cli/commands/review/index.js.map +1 -0
- package/dist/cli/commands/review/report.d.ts +31 -0
- package/dist/cli/commands/review/report.d.ts.map +1 -0
- package/dist/cli/commands/review/report.js +146 -0
- package/dist/cli/commands/review/report.js.map +1 -0
- package/dist/cli/commands/review/review.d.ts +17 -0
- package/dist/cli/commands/review/review.d.ts.map +1 -0
- package/dist/cli/commands/review/review.js +129 -0
- package/dist/cli/commands/review/review.js.map +1 -0
- package/dist/cli/commands/review/spec-review.d.ts +13 -0
- package/dist/cli/commands/review/spec-review.d.ts.map +1 -0
- package/dist/cli/commands/review/spec-review.js +65 -0
- package/dist/cli/commands/review/spec-review.js.map +1 -0
- package/dist/cli/commands/review/ticket-review.d.ts +37 -0
- package/dist/cli/commands/review/ticket-review.d.ts.map +1 -0
- package/dist/cli/commands/review/ticket-review.js +194 -0
- package/dist/cli/commands/review/ticket-review.js.map +1 -0
- package/dist/cli/commands/review/types.d.ts +232 -0
- package/dist/cli/commands/review/types.d.ts.map +1 -0
- package/dist/cli/commands/review/types.js +85 -0
- package/dist/cli/commands/review/types.js.map +1 -0
- package/dist/cli/commands/scaffold/display.d.ts +27 -0
- package/dist/cli/commands/scaffold/display.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/display.js +90 -0
- package/dist/cli/commands/scaffold/display.js.map +1 -0
- package/dist/cli/commands/scaffold/index.d.ts +12 -0
- package/dist/cli/commands/scaffold/index.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/index.js +12 -0
- package/dist/cli/commands/scaffold/index.js.map +1 -0
- package/dist/cli/commands/scaffold/register.d.ts +11 -0
- package/dist/cli/commands/scaffold/register.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/register.js +25 -0
- package/dist/cli/commands/scaffold/register.js.map +1 -0
- package/dist/cli/commands/scaffold/scaffold.d.ts +11 -0
- package/dist/cli/commands/scaffold/scaffold.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/scaffold.js +111 -0
- package/dist/cli/commands/scaffold/scaffold.js.map +1 -0
- package/dist/cli/commands/scaffold/targets.d.ts +31 -0
- package/dist/cli/commands/scaffold/targets.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/targets.js +84 -0
- package/dist/cli/commands/scaffold/targets.js.map +1 -0
- package/dist/cli/commands/scaffold/types.d.ts +88 -0
- package/dist/cli/commands/scaffold/types.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/types.js +21 -0
- package/dist/cli/commands/scaffold/types.js.map +1 -0
- package/dist/cli/commands/scaffold/utils.d.ts +31 -0
- package/dist/cli/commands/scaffold/utils.d.ts.map +1 -0
- package/dist/cli/commands/scaffold/utils.js +71 -0
- package/dist/cli/commands/scaffold/utils.js.map +1 -0
- package/dist/cli/commands/session/display.d.ts +40 -0
- package/dist/cli/commands/session/display.d.ts.map +1 -0
- package/dist/cli/commands/session/display.js +114 -0
- package/dist/cli/commands/session/display.js.map +1 -0
- package/dist/cli/commands/session/end.d.ts +12 -0
- package/dist/cli/commands/session/end.d.ts.map +1 -0
- package/dist/cli/commands/session/end.js +165 -0
- package/dist/cli/commands/session/end.js.map +1 -0
- package/dist/cli/commands/session/index.d.ts +13 -0
- package/dist/cli/commands/session/index.d.ts.map +1 -0
- package/dist/cli/commands/session/index.js +13 -0
- package/dist/cli/commands/session/index.js.map +1 -0
- package/dist/cli/commands/session/register.d.ts +12 -0
- package/dist/cli/commands/session/register.d.ts.map +1 -0
- package/dist/cli/commands/session/register.js +87 -0
- package/dist/cli/commands/session/register.js.map +1 -0
- package/dist/cli/commands/session/start.d.ts +12 -0
- package/dist/cli/commands/session/start.d.ts.map +1 -0
- package/dist/cli/commands/session/start.js +189 -0
- package/dist/cli/commands/session/start.js.map +1 -0
- package/dist/cli/commands/session/status.d.ts +12 -0
- package/dist/cli/commands/session/status.d.ts.map +1 -0
- package/dist/cli/commands/session/status.js +93 -0
- package/dist/cli/commands/session/status.js.map +1 -0
- package/dist/cli/commands/session/types.d.ts +179 -0
- package/dist/cli/commands/session/types.d.ts.map +1 -0
- package/dist/cli/commands/session/types.js +8 -0
- package/dist/cli/commands/session/types.js.map +1 -0
- package/dist/cli/commands/session/utils.d.ts +24 -0
- package/dist/cli/commands/session/utils.d.ts.map +1 -0
- package/dist/cli/commands/session/utils.js +72 -0
- package/dist/cli/commands/session/utils.js.map +1 -0
- package/dist/cli/commands/specs.d.ts +16 -0
- package/dist/cli/commands/specs.d.ts.map +1 -0
- package/dist/cli/commands/specs.js +212 -0
- package/dist/cli/commands/specs.js.map +1 -0
- package/dist/cli/commands/specs.types.d.ts +120 -0
- package/dist/cli/commands/specs.types.d.ts.map +1 -0
- package/dist/cli/commands/specs.types.js +75 -0
- package/dist/cli/commands/specs.types.js.map +1 -0
- package/dist/cli/commands/status.d.ts +17 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +271 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/status.types.d.ts +382 -0
- package/dist/cli/commands/status.types.d.ts.map +1 -0
- package/dist/cli/commands/status.types.js +166 -0
- package/dist/cli/commands/status.types.js.map +1 -0
- package/dist/cli/commands/switch.d.ts +18 -0
- package/dist/cli/commands/switch.d.ts.map +1 -0
- package/dist/cli/commands/switch.js +181 -0
- package/dist/cli/commands/switch.js.map +1 -0
- package/dist/cli/commands/switch.types.d.ts +123 -0
- package/dist/cli/commands/switch.types.d.ts.map +1 -0
- package/dist/cli/commands/switch.types.js +65 -0
- package/dist/cli/commands/switch.types.js.map +1 -0
- package/dist/cli/commands/ticket/command.d.ts +14 -0
- package/dist/cli/commands/ticket/command.d.ts.map +1 -0
- package/dist/cli/commands/ticket/command.js +141 -0
- package/dist/cli/commands/ticket/command.js.map +1 -0
- package/dist/cli/commands/ticket/display.d.ts +56 -0
- package/dist/cli/commands/ticket/display.d.ts.map +1 -0
- package/dist/cli/commands/ticket/display.js +205 -0
- package/dist/cli/commands/ticket/display.js.map +1 -0
- package/dist/cli/commands/ticket/index.d.ts +11 -0
- package/dist/cli/commands/ticket/index.d.ts.map +1 -0
- package/dist/cli/commands/ticket/index.js +11 -0
- package/dist/cli/commands/ticket/index.js.map +1 -0
- package/dist/cli/commands/ticket/register.d.ts +11 -0
- package/dist/cli/commands/ticket/register.d.ts.map +1 -0
- package/dist/cli/commands/ticket/register.js +39 -0
- package/dist/cli/commands/ticket/register.js.map +1 -0
- package/dist/cli/commands/ticket/resolver.d.ts +16 -0
- package/dist/cli/commands/ticket/resolver.d.ts.map +1 -0
- package/dist/cli/commands/ticket/resolver.js +35 -0
- package/dist/cli/commands/ticket/resolver.js.map +1 -0
- package/dist/cli/commands/ticket/types.d.ts +157 -0
- package/dist/cli/commands/ticket/types.d.ts.map +1 -0
- package/dist/cli/commands/ticket/types.js +8 -0
- package/dist/cli/commands/ticket/types.js.map +1 -0
- package/dist/cli/commands/tickets.d.ts +16 -0
- package/dist/cli/commands/tickets.d.ts.map +1 -0
- package/dist/cli/commands/tickets.js +271 -0
- package/dist/cli/commands/tickets.js.map +1 -0
- package/dist/cli/commands/tickets.types.d.ts +202 -0
- package/dist/cli/commands/tickets.types.d.ts.map +1 -0
- package/dist/cli/commands/tickets.types.js +138 -0
- package/dist/cli/commands/tickets.types.js.map +1 -0
- package/dist/cli/config/index.d.ts +11 -0
- package/dist/cli/config/index.d.ts.map +1 -0
- package/dist/cli/config/index.js +11 -0
- package/dist/cli/config/index.js.map +1 -0
- package/dist/cli/config/loader.d.ts +98 -0
- package/dist/cli/config/loader.d.ts.map +1 -0
- package/dist/cli/config/loader.js +237 -0
- package/dist/cli/config/loader.js.map +1 -0
- package/dist/cli/config/paths.d.ts +96 -0
- package/dist/cli/config/paths.d.ts.map +1 -0
- package/dist/cli/config/paths.js +140 -0
- package/dist/cli/config/paths.js.map +1 -0
- package/dist/cli/config/types.d.ts +148 -0
- package/dist/cli/config/types.d.ts.map +1 -0
- package/dist/cli/config/types.js +34 -0
- package/dist/cli/config/types.js.map +1 -0
- package/dist/cli/config/writer.d.ts +171 -0
- package/dist/cli/config/writer.d.ts.map +1 -0
- package/dist/cli/config/writer.js +312 -0
- package/dist/cli/config/writer.js.map +1 -0
- package/dist/cli/index.d.ts +30 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +183 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/middleware/auth-guard.d.ts +107 -0
- package/dist/cli/middleware/auth-guard.d.ts.map +1 -0
- package/dist/cli/middleware/auth-guard.js +190 -0
- package/dist/cli/middleware/auth-guard.js.map +1 -0
- package/dist/cli/middleware/error-handler.d.ts +133 -0
- package/dist/cli/middleware/error-handler.d.ts.map +1 -0
- package/dist/cli/middleware/error-handler.js +209 -0
- package/dist/cli/middleware/error-handler.js.map +1 -0
- package/dist/cli/middleware/index.d.ts +6 -0
- package/dist/cli/middleware/index.d.ts.map +1 -0
- package/dist/cli/middleware/index.js +6 -0
- package/dist/cli/middleware/index.js.map +1 -0
- package/dist/cli/templates/commands.d.ts +20 -0
- package/dist/cli/templates/commands.d.ts.map +1 -0
- package/dist/cli/templates/commands.js +174 -0
- package/dist/cli/templates/commands.js.map +1 -0
- package/dist/cli/templates/content/sf-autonomous.d.ts +7 -0
- package/dist/cli/templates/content/sf-autonomous.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-autonomous.js +78 -0
- package/dist/cli/templates/content/sf-autonomous.js.map +1 -0
- package/dist/cli/templates/content/sf-blockers.d.ts +7 -0
- package/dist/cli/templates/content/sf-blockers.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-blockers.js +68 -0
- package/dist/cli/templates/content/sf-blockers.js.map +1 -0
- package/dist/cli/templates/content/sf-commit.d.ts +7 -0
- package/dist/cli/templates/content/sf-commit.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-commit.js +78 -0
- package/dist/cli/templates/content/sf-commit.js.map +1 -0
- package/dist/cli/templates/content/sf-context.d.ts +7 -0
- package/dist/cli/templates/content/sf-context.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-context.js +64 -0
- package/dist/cli/templates/content/sf-context.js.map +1 -0
- package/dist/cli/templates/content/sf-create-epics.d.ts +7 -0
- package/dist/cli/templates/content/sf-create-epics.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-create-epics.js +70 -0
- package/dist/cli/templates/content/sf-create-epics.js.map +1 -0
- package/dist/cli/templates/content/sf-create-spec.d.ts +7 -0
- package/dist/cli/templates/content/sf-create-spec.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-create-spec.js +67 -0
- package/dist/cli/templates/content/sf-create-spec.js.map +1 -0
- package/dist/cli/templates/content/sf-create-tickets.d.ts +7 -0
- package/dist/cli/templates/content/sf-create-tickets.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-create-tickets.js +76 -0
- package/dist/cli/templates/content/sf-create-tickets.js.map +1 -0
- package/dist/cli/templates/content/sf-epic.d.ts +7 -0
- package/dist/cli/templates/content/sf-epic.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-epic.js +69 -0
- package/dist/cli/templates/content/sf-epic.js.map +1 -0
- package/dist/cli/templates/content/sf-help.d.ts +7 -0
- package/dist/cli/templates/content/sf-help.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-help.js +61 -0
- package/dist/cli/templates/content/sf-help.js.map +1 -0
- package/dist/cli/templates/content/sf-import.d.ts +7 -0
- package/dist/cli/templates/content/sf-import.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-import.js +88 -0
- package/dist/cli/templates/content/sf-import.js.map +1 -0
- package/dist/cli/templates/content/sf-init.d.ts +7 -0
- package/dist/cli/templates/content/sf-init.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-init.js +61 -0
- package/dist/cli/templates/content/sf-init.js.map +1 -0
- package/dist/cli/templates/content/sf-next.d.ts +7 -0
- package/dist/cli/templates/content/sf-next.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-next.js +67 -0
- package/dist/cli/templates/content/sf-next.js.map +1 -0
- package/dist/cli/templates/content/sf-reset.d.ts +7 -0
- package/dist/cli/templates/content/sf-reset.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-reset.js +78 -0
- package/dist/cli/templates/content/sf-reset.js.map +1 -0
- package/dist/cli/templates/content/sf-review.d.ts +7 -0
- package/dist/cli/templates/content/sf-review.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-review.js +67 -0
- package/dist/cli/templates/content/sf-review.js.map +1 -0
- package/dist/cli/templates/content/sf-search.d.ts +7 -0
- package/dist/cli/templates/content/sf-search.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-search.js +64 -0
- package/dist/cli/templates/content/sf-search.js.map +1 -0
- package/dist/cli/templates/content/sf-status.d.ts +7 -0
- package/dist/cli/templates/content/sf-status.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-status.js +67 -0
- package/dist/cli/templates/content/sf-status.js.map +1 -0
- package/dist/cli/templates/content/sf-ticket.d.ts +7 -0
- package/dist/cli/templates/content/sf-ticket.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-ticket.js +76 -0
- package/dist/cli/templates/content/sf-ticket.js.map +1 -0
- package/dist/cli/templates/content/sf-validate.d.ts +7 -0
- package/dist/cli/templates/content/sf-validate.d.ts.map +1 -0
- package/dist/cli/templates/content/sf-validate.js +78 -0
- package/dist/cli/templates/content/sf-validate.js.map +1 -0
- package/dist/cli/templates/index.d.ts +7 -0
- package/dist/cli/templates/index.d.ts.map +1 -0
- package/dist/cli/templates/index.js +7 -0
- package/dist/cli/templates/index.js.map +1 -0
- package/dist/cli/ui/colors.d.ts +76 -0
- package/dist/cli/ui/colors.d.ts.map +1 -0
- package/dist/cli/ui/colors.js +81 -0
- package/dist/cli/ui/colors.js.map +1 -0
- package/dist/cli/ui/dashboard.d.ts +54 -0
- package/dist/cli/ui/dashboard.d.ts.map +1 -0
- package/dist/cli/ui/dashboard.js +339 -0
- package/dist/cli/ui/dashboard.js.map +1 -0
- package/dist/cli/ui/index.d.ts +7 -0
- package/dist/cli/ui/index.d.ts.map +1 -0
- package/dist/cli/ui/index.js +7 -0
- package/dist/cli/ui/index.js.map +1 -0
- package/dist/cli/ui/output.d.ts +117 -0
- package/dist/cli/ui/output.d.ts.map +1 -0
- package/dist/cli/ui/output.js +172 -0
- package/dist/cli/ui/output.js.map +1 -0
- package/dist/cli/ui/spinner.d.ts +105 -0
- package/dist/cli/ui/spinner.d.ts.map +1 -0
- package/dist/cli/ui/spinner.js +148 -0
- package/dist/cli/ui/spinner.js.map +1 -0
- package/dist/cli/ui/time.d.ts +54 -0
- package/dist/cli/ui/time.d.ts.map +1 -0
- package/dist/cli/ui/time.js +173 -0
- package/dist/cli/ui/time.js.map +1 -0
- package/dist/lib/format.d.ts +4 -4
- package/dist/lib/format.js +5 -5
- package/dist/server.js +8 -8
- package/dist/server.js.map +1 -1
- package/dist/tools/core/session.js +6 -6
- package/dist/tools/core/session.js.map +1 -1
- package/dist/tools/index.js +9 -9
- package/dist/tools/index.js.map +1 -1
- package/dist/validation/index.js +1 -1
- package/dist/validation/index.js.map +1 -1
- package/package.json +9 -2
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whoami Command Implementation
|
|
3
|
+
*
|
|
4
|
+
* Displays current user information, configuration settings, and config file paths.
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
import ora from 'ora';
|
|
8
|
+
import { resolveConfig, getConfigPaths } from '../../config/index.js';
|
|
9
|
+
import { ApiClient } from '../../../client/api-client.js';
|
|
10
|
+
/**
|
|
11
|
+
* Mask API key for display
|
|
12
|
+
*/
|
|
13
|
+
function maskApiKey(apiKey) {
|
|
14
|
+
if (apiKey.length < 12) {
|
|
15
|
+
return '****';
|
|
16
|
+
}
|
|
17
|
+
return `${apiKey.slice(0, 8)}...${apiKey.slice(-4)}`;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Determine configuration source
|
|
21
|
+
*/
|
|
22
|
+
function getConfigSource(config) {
|
|
23
|
+
if (process.env.SPECFORGE_API_KEY) {
|
|
24
|
+
return 'environment';
|
|
25
|
+
}
|
|
26
|
+
if (config.projectId) {
|
|
27
|
+
return '.specforge.json (project)';
|
|
28
|
+
}
|
|
29
|
+
if (config.apiKey) {
|
|
30
|
+
return '~/.specforge/config.json (global)';
|
|
31
|
+
}
|
|
32
|
+
return 'defaults';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Display user information
|
|
36
|
+
*/
|
|
37
|
+
function displayUserInfo(info) {
|
|
38
|
+
console.log(chalk.bold('\nUser'));
|
|
39
|
+
console.log('────');
|
|
40
|
+
console.log(`Email: ${info.user.email}`);
|
|
41
|
+
console.log(`API Key: ${info.user.apiKey}`);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Display configuration information
|
|
45
|
+
*/
|
|
46
|
+
function displayConfiguration(info) {
|
|
47
|
+
console.log(chalk.bold('\nConfiguration'));
|
|
48
|
+
console.log('─────────────');
|
|
49
|
+
console.log(`Source: ${info.configuration.source}`);
|
|
50
|
+
if (info.configuration.projectName) {
|
|
51
|
+
console.log(`Project: ${info.configuration.projectName} (${info.configuration.projectId})`);
|
|
52
|
+
}
|
|
53
|
+
else if (info.configuration.projectId) {
|
|
54
|
+
console.log(`Project: ${info.configuration.projectId}`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
console.log(`Project: ${chalk.dim('(not set)')}`);
|
|
58
|
+
}
|
|
59
|
+
if (info.configuration.specificationTitle) {
|
|
60
|
+
console.log(`Spec: ${info.configuration.specificationTitle} (${info.configuration.specificationId})`);
|
|
61
|
+
}
|
|
62
|
+
else if (info.configuration.specificationId) {
|
|
63
|
+
console.log(`Spec: ${info.configuration.specificationId}`);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
console.log(`Spec: ${chalk.dim('(not set)')}`);
|
|
67
|
+
}
|
|
68
|
+
console.log(`Format: ${info.configuration.format}`);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Display configuration file paths
|
|
72
|
+
*/
|
|
73
|
+
function displayPaths(info) {
|
|
74
|
+
console.log(chalk.bold('\nPaths'));
|
|
75
|
+
console.log('─────');
|
|
76
|
+
console.log(`Project config: ${info.paths.projectConfig}`);
|
|
77
|
+
console.log(`MCP config: ${info.paths.mcpConfig}`);
|
|
78
|
+
console.log(`Global config: ${info.paths.globalConfig}`);
|
|
79
|
+
console.log();
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Whoami command implementation
|
|
83
|
+
*
|
|
84
|
+
* Displays current user and configuration information.
|
|
85
|
+
*/
|
|
86
|
+
export async function whoamiCommand(options) {
|
|
87
|
+
const config = resolveConfig();
|
|
88
|
+
const paths = getConfigPaths();
|
|
89
|
+
const spinner = ora('Fetching user info...').start();
|
|
90
|
+
try {
|
|
91
|
+
const client = new ApiClient({
|
|
92
|
+
apiKey: config.apiKey,
|
|
93
|
+
apiUrl: process.env.SPECFORGE_API_URL || 'https://mcp.specforge.com.br/mcp',
|
|
94
|
+
debug: config.debug,
|
|
95
|
+
});
|
|
96
|
+
// Get user info from list_projects
|
|
97
|
+
const response = await client.call('list_projects', {});
|
|
98
|
+
const userEmail = response.userEmail || 'Unknown';
|
|
99
|
+
// Get project name if configured
|
|
100
|
+
let projectName;
|
|
101
|
+
if (config.projectId) {
|
|
102
|
+
try {
|
|
103
|
+
const proj = await client.call('get_project', { projectId: config.projectId });
|
|
104
|
+
projectName = proj.name;
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
// Ignore - project might not exist
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Get specification title if configured
|
|
111
|
+
let specTitle;
|
|
112
|
+
if (config.specificationId) {
|
|
113
|
+
try {
|
|
114
|
+
const spec = await client.call('get_specification', {
|
|
115
|
+
specificationId: config.specificationId
|
|
116
|
+
});
|
|
117
|
+
specTitle = spec.title;
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
// Ignore - spec might not exist
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
spinner.stop();
|
|
124
|
+
// Build whoami info
|
|
125
|
+
const info = {
|
|
126
|
+
user: {
|
|
127
|
+
email: userEmail,
|
|
128
|
+
apiKey: maskApiKey(config.apiKey),
|
|
129
|
+
},
|
|
130
|
+
configuration: {
|
|
131
|
+
source: getConfigSource(config),
|
|
132
|
+
projectId: config.projectId || undefined,
|
|
133
|
+
projectName,
|
|
134
|
+
specificationId: config.specificationId || undefined,
|
|
135
|
+
specificationTitle: specTitle,
|
|
136
|
+
format: config.format || 'json',
|
|
137
|
+
},
|
|
138
|
+
paths: {
|
|
139
|
+
projectConfig: paths.projectConfig,
|
|
140
|
+
mcpConfig: paths.mcpConfig,
|
|
141
|
+
globalConfig: paths.globalConfig,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
// JSON output
|
|
145
|
+
if (options.json) {
|
|
146
|
+
console.log(JSON.stringify(info, null, 2));
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
// Display formatted output
|
|
150
|
+
displayUserInfo(info);
|
|
151
|
+
displayConfiguration(info);
|
|
152
|
+
displayPaths(info);
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
spinner.fail('Failed to fetch user info');
|
|
156
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
157
|
+
console.error(chalk.red(`\nError: ${message}`));
|
|
158
|
+
process.exit(1);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=whoami.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami.js","sourceRoot":"","sources":["../../../../src/cli/commands/debug/whoami.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D;;GAEG;AACH,SAAS,UAAU,CAAC,MAAc;IAChC,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACvB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,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,CAAC,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,WAAW,QAwDvB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Documentation Content
|
|
3
|
+
*
|
|
4
|
+
* Provides API reference including authentication, endpoints, protocol, and error codes.
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
export const API_CONTENT = `
|
|
8
|
+
${chalk.bold('SpecForge API Reference')}
|
|
9
|
+
${'═'.repeat(50)}
|
|
10
|
+
|
|
11
|
+
${chalk.bold('Authentication')}
|
|
12
|
+
${'─'.repeat(50)}
|
|
13
|
+
API keys start with: ${chalk.cyan('sf_live_')}
|
|
14
|
+
Get yours at: ${chalk.underline('https://specforge.com.br/settings/api-keys')}
|
|
15
|
+
|
|
16
|
+
${chalk.bold('Configuration Methods')}
|
|
17
|
+
${'─'.repeat(50)}
|
|
18
|
+
1. Environment variable: SPECFORGE_API_KEY
|
|
19
|
+
2. Global config: ~/.specforge/config.json
|
|
20
|
+
3. Project config: .specforge.json
|
|
21
|
+
|
|
22
|
+
${chalk.bold('API Endpoint')}
|
|
23
|
+
${'─'.repeat(50)}
|
|
24
|
+
Production: ${chalk.cyan('https://mcp.specforge.com.br/mcp')}
|
|
25
|
+
Custom: Set SPECFORGE_API_URL environment variable
|
|
26
|
+
|
|
27
|
+
${chalk.bold('MCP Protocol')}
|
|
28
|
+
${'─'.repeat(50)}
|
|
29
|
+
SpecForge uses the Model Context Protocol (MCP) for AI integration.
|
|
30
|
+
|
|
31
|
+
Request format:
|
|
32
|
+
{
|
|
33
|
+
"method": "call",
|
|
34
|
+
"params": {
|
|
35
|
+
"name": "tool_name",
|
|
36
|
+
"arguments": { ... }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
Response format:
|
|
41
|
+
{
|
|
42
|
+
"result": { ... }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
${chalk.bold('Rate Limits')}
|
|
46
|
+
${'─'.repeat(50)}
|
|
47
|
+
• 100 requests per minute (standard)
|
|
48
|
+
• 1000 requests per minute (pro)
|
|
49
|
+
|
|
50
|
+
${chalk.bold('Error Codes')}
|
|
51
|
+
${'─'.repeat(50)}
|
|
52
|
+
• 401: Invalid or expired API key
|
|
53
|
+
• 403: Insufficient permissions
|
|
54
|
+
• 404: Resource not found
|
|
55
|
+
• 429: Rate limit exceeded
|
|
56
|
+
• 500: Server error
|
|
57
|
+
|
|
58
|
+
${chalk.bold('CLI Configuration')}
|
|
59
|
+
${'─'.repeat(50)}
|
|
60
|
+
Run 'specforge-mcp login' for interactive setup
|
|
61
|
+
Run 'specforge-mcp configure' to modify settings
|
|
62
|
+
Run 'specforge-mcp test' to verify connection
|
|
63
|
+
`;
|
|
64
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG;EACzB,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;EACrC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;EAEd,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;EAC5B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;uBACO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;gBAC7B,KAAK,CAAC,SAAS,CAAC,4CAA4C,CAAC;;EAE3E,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC;EACnC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;EAKd,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;EAC1B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;cACF,KAAK,CAAC,IAAI,CAAC,kCAAkC,CAAC;;;EAG1D,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;EAC1B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;EAiBd,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;EACzB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;EAId,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;EACzB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;EAOd,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;EAC/B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;CAIf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concepts.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/concepts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,gBAAgB,QA4D5B,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concepts Documentation Content
|
|
3
|
+
*
|
|
4
|
+
* Explains core SpecForge concepts including specifications, epics, tickets, patterns, and dependencies.
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
export const CONCEPTS_CONTENT = `
|
|
8
|
+
${chalk.bold('SpecForge Core Concepts')}
|
|
9
|
+
${'═'.repeat(50)}
|
|
10
|
+
|
|
11
|
+
${chalk.bold('📋 Specification')}
|
|
12
|
+
${'─'.repeat(50)}
|
|
13
|
+
A specification is the top-level container for a project implementation.
|
|
14
|
+
It contains:
|
|
15
|
+
• Goals and requirements
|
|
16
|
+
• Technical architecture
|
|
17
|
+
• Code patterns and standards
|
|
18
|
+
• Epics (grouped work items)
|
|
19
|
+
|
|
20
|
+
${chalk.bold('📦 Epic')}
|
|
21
|
+
${'─'.repeat(50)}
|
|
22
|
+
An epic groups related tickets that share a common goal.
|
|
23
|
+
It contains:
|
|
24
|
+
• Objective and description
|
|
25
|
+
• Shared patterns (inherited by tickets)
|
|
26
|
+
• Tickets (individual work items)
|
|
27
|
+
• Dependencies on other epics
|
|
28
|
+
|
|
29
|
+
${chalk.bold('🎫 Ticket')}
|
|
30
|
+
${'─'.repeat(50)}
|
|
31
|
+
A ticket is a single implementable unit of work.
|
|
32
|
+
It contains:
|
|
33
|
+
• Description and acceptance criteria
|
|
34
|
+
• Implementation steps
|
|
35
|
+
• Technical details (files, patterns)
|
|
36
|
+
• Dependencies on other tickets
|
|
37
|
+
• Estimated hours and complexity
|
|
38
|
+
|
|
39
|
+
${chalk.bold('🧬 Pattern')}
|
|
40
|
+
${'─'.repeat(50)}
|
|
41
|
+
Patterns are reusable code standards that cascade down:
|
|
42
|
+
Specification → Epic → Ticket
|
|
43
|
+
|
|
44
|
+
Pattern types:
|
|
45
|
+
• Code standards (naming, error handling)
|
|
46
|
+
• Return types (Result<T>, etc.)
|
|
47
|
+
• Common imports
|
|
48
|
+
• File templates
|
|
49
|
+
|
|
50
|
+
${chalk.bold('🎯 Working Context')}
|
|
51
|
+
${'─'.repeat(50)}
|
|
52
|
+
The working context tracks what you're currently focused on:
|
|
53
|
+
• Project
|
|
54
|
+
• Specification
|
|
55
|
+
• Epic (optional)
|
|
56
|
+
• Ticket (optional)
|
|
57
|
+
|
|
58
|
+
Set with: set_working_context({ projectId, specificationId, ... })
|
|
59
|
+
Get with: get_working_context()
|
|
60
|
+
|
|
61
|
+
${chalk.bold('🔗 Dependencies')}
|
|
62
|
+
${'─'.repeat(50)}
|
|
63
|
+
Tickets can depend on other tickets.
|
|
64
|
+
• dependsOn: Array of ticket IDs that must complete first
|
|
65
|
+
• Status auto-transitions: pending → ready when deps complete
|
|
66
|
+
• Critical path: longest chain of dependencies
|
|
67
|
+
`;
|
|
68
|
+
//# sourceMappingURL=concepts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concepts.js","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/concepts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC9B,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;EACrC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;EAEd,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;EAC9B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;EAQd,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;EACrB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;EAQd,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;EACvB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;EASd,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;EACxB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;EAUd,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC;EAChC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;EAUd,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;EAC7B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/examples.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,gBAAgB,QA4E5B,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Examples Documentation Content
|
|
3
|
+
*
|
|
4
|
+
* Provides practical usage examples for SpecForge commands and workflows.
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
export const EXAMPLES_CONTENT = `
|
|
8
|
+
${chalk.bold('SpecForge Usage Examples')}
|
|
9
|
+
${'═'.repeat(50)}
|
|
10
|
+
|
|
11
|
+
${chalk.bold('Example 1: Import a Plan')}
|
|
12
|
+
${'─'.repeat(50)}
|
|
13
|
+
# In Claude Code:
|
|
14
|
+
/sf-import-plan docs/implementation-plan.md
|
|
15
|
+
|
|
16
|
+
# This creates:
|
|
17
|
+
# - Specification with patterns
|
|
18
|
+
# - Epics for each phase
|
|
19
|
+
# - Tickets with dependencies
|
|
20
|
+
|
|
21
|
+
${chalk.bold('Example 2: Start Implementation')}
|
|
22
|
+
${'─'.repeat(50)}
|
|
23
|
+
# Initialize
|
|
24
|
+
/sf-init
|
|
25
|
+
|
|
26
|
+
# Check what's ready
|
|
27
|
+
/sf-status
|
|
28
|
+
|
|
29
|
+
# Start next ticket
|
|
30
|
+
/sf-next
|
|
31
|
+
|
|
32
|
+
# Or specific ticket
|
|
33
|
+
/sf-ticket-implementation E1-T3
|
|
34
|
+
|
|
35
|
+
${chalk.bold('Example 3: Batch Implementation')}
|
|
36
|
+
${'─'.repeat(50)}
|
|
37
|
+
# Implement up to 5 tickets automatically
|
|
38
|
+
/sf-run-autonomous 5
|
|
39
|
+
|
|
40
|
+
${chalk.bold('Example 4: CLI Commands')}
|
|
41
|
+
${'─'.repeat(50)}
|
|
42
|
+
# View current context
|
|
43
|
+
specforge-mcp status
|
|
44
|
+
|
|
45
|
+
# List projects
|
|
46
|
+
specforge-mcp projects
|
|
47
|
+
|
|
48
|
+
# Switch specification
|
|
49
|
+
specforge-mcp switch spec123
|
|
50
|
+
|
|
51
|
+
# List tickets
|
|
52
|
+
specforge-mcp tickets --status pending
|
|
53
|
+
|
|
54
|
+
# View ticket details
|
|
55
|
+
specforge-mcp ticket 42
|
|
56
|
+
|
|
57
|
+
${chalk.bold('Example 5: MCP Tool Calls')}
|
|
58
|
+
${'─'.repeat(50)}
|
|
59
|
+
# Direct tool call
|
|
60
|
+
specforge-mcp call get_ticket --args='{"ticketId":"abc123"}'
|
|
61
|
+
|
|
62
|
+
# List available tools
|
|
63
|
+
specforge-mcp tools --category context
|
|
64
|
+
|
|
65
|
+
${chalk.bold('Example 6: Session Management')}
|
|
66
|
+
${'─'.repeat(50)}
|
|
67
|
+
# Start implementation session
|
|
68
|
+
specforge-mcp session start
|
|
69
|
+
|
|
70
|
+
# Check session status
|
|
71
|
+
specforge-mcp session
|
|
72
|
+
|
|
73
|
+
# End session with summary
|
|
74
|
+
specforge-mcp session end --summary "Completed auth module"
|
|
75
|
+
|
|
76
|
+
${chalk.bold('Example 7: Scaffolding Commands')}
|
|
77
|
+
${'─'.repeat(50)}
|
|
78
|
+
# Scaffold for Claude Code
|
|
79
|
+
specforge-mcp scaffold --target claude
|
|
80
|
+
|
|
81
|
+
# Scaffold for project
|
|
82
|
+
specforge-mcp scaffold --target claude --project
|
|
83
|
+
`;
|
|
84
|
+
//# sourceMappingURL=examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"examples.js","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/examples.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC9B,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC;EACtC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;EAEd,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC;EACtC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;EASd,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC;EAC7C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;;;;EAad,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC;EAC7C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;EAId,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;EACrC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;EAgBd,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC;EACvC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;EAOd,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC;EAC3C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;EAUd,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC;EAC7C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation Content Exports
|
|
3
|
+
*
|
|
4
|
+
* Exports all documentation content modules.
|
|
5
|
+
*/
|
|
6
|
+
export { WORKFLOW_CONTENT } from './workflow.js';
|
|
7
|
+
export { CONCEPTS_CONTENT } from './concepts.js';
|
|
8
|
+
export { API_CONTENT } from './api.js';
|
|
9
|
+
export { EXAMPLES_CONTENT } from './examples.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation Content Exports
|
|
3
|
+
*
|
|
4
|
+
* Exports all documentation content modules.
|
|
5
|
+
*/
|
|
6
|
+
export { WORKFLOW_CONTENT } from './workflow.js';
|
|
7
|
+
export { CONCEPTS_CONTENT } from './concepts.js';
|
|
8
|
+
export { API_CONTENT } from './api.js';
|
|
9
|
+
export { EXAMPLES_CONTENT } from './examples.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/workflow.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,gBAAgB,QAoC5B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow Documentation Content
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive workflow guide for SpecForge implementation process.
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
export const WORKFLOW_CONTENT = `
|
|
8
|
+
${chalk.bold('SpecForge Implementation Workflow')}
|
|
9
|
+
${'═'.repeat(50)}
|
|
10
|
+
|
|
11
|
+
${chalk.bold('1. Setup')}
|
|
12
|
+
specforge-mcp login # One-time authentication
|
|
13
|
+
specforge-mcp init # Configure project
|
|
14
|
+
|
|
15
|
+
${chalk.bold('2. Planning')}
|
|
16
|
+
/sf-import-plan <file> # Import plan to specification
|
|
17
|
+
/sf-create-spec <file> # Create spec step-by-step
|
|
18
|
+
/sf-create-epics <spec> # Add epics to spec
|
|
19
|
+
/sf-create-tickets <epic> # Add tickets to epic
|
|
20
|
+
|
|
21
|
+
${chalk.bold('3. Implementation')}
|
|
22
|
+
/sf-init <spec-id> # Initialize for implementation
|
|
23
|
+
/sf-status # View progress
|
|
24
|
+
/sf-next # Start next ticket
|
|
25
|
+
/sf-run-autonomous # Batch implement
|
|
26
|
+
|
|
27
|
+
${chalk.bold('4. Review')}
|
|
28
|
+
/sf-review # Accomplishment review
|
|
29
|
+
/sf-validate # System health check
|
|
30
|
+
|
|
31
|
+
${chalk.bold('Key Concepts')}
|
|
32
|
+
${'─'.repeat(50)}
|
|
33
|
+
• ${chalk.cyan('Specification')}: High-level project plan with patterns
|
|
34
|
+
• ${chalk.cyan('Epic')}: Group of related tickets with shared patterns
|
|
35
|
+
• ${chalk.cyan('Ticket')}: Single implementable unit of work
|
|
36
|
+
• ${chalk.cyan('Pattern')}: Reusable code standards and conventions
|
|
37
|
+
• ${chalk.cyan('Working Context')}: Current focus (project/spec/epic/ticket)
|
|
38
|
+
|
|
39
|
+
${chalk.bold('Status Flow')}
|
|
40
|
+
${'─'.repeat(50)}
|
|
41
|
+
pending → ready → active → done
|
|
42
|
+
↑_______| (auto-transitions based on dependencies)
|
|
43
|
+
`;
|
|
44
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../../src/cli/commands/docs/content/workflow.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC9B,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC;EAC/C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;EAEd,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;;;;EAItB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;;;;;;EAMzB,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;;;;;;EAM/B,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;;;;EAIvB,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;EAC1B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;IACZ,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;IACpB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;IACrB,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;;EAE/B,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;EACzB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;;;CAGf,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation Content Aggregation
|
|
3
|
+
*
|
|
4
|
+
* Central module for accessing all documentation content by topic.
|
|
5
|
+
*/
|
|
6
|
+
import type { DocsContent, DocsTopic } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* All documentation content
|
|
9
|
+
*/
|
|
10
|
+
export declare const DOCS: DocsContent;
|
|
11
|
+
/**
|
|
12
|
+
* Get documentation content for a topic
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDocsContent(topic: DocsTopic): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Check if a topic is valid
|
|
17
|
+
*/
|
|
18
|
+
export declare function isValidTopic(topic: string): topic is DocsTopic;
|
|
19
|
+
/**
|
|
20
|
+
* Get all valid topic names
|
|
21
|
+
*/
|
|
22
|
+
export declare function getValidTopics(): DocsTopic[];
|
|
23
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/docs/content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAMzD;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,WAMlB,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAE9D;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,SAAS,EAAE,CAE5C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation Content Aggregation
|
|
3
|
+
*
|
|
4
|
+
* Central module for accessing all documentation content by topic.
|
|
5
|
+
*/
|
|
6
|
+
import { WORKFLOW_CONTENT } from './content/workflow.js';
|
|
7
|
+
import { CONCEPTS_CONTENT } from './content/concepts.js';
|
|
8
|
+
import { API_CONTENT } from './content/api.js';
|
|
9
|
+
import { EXAMPLES_CONTENT } from './content/examples.js';
|
|
10
|
+
/**
|
|
11
|
+
* All documentation content
|
|
12
|
+
*/
|
|
13
|
+
export const DOCS = {
|
|
14
|
+
workflow: WORKFLOW_CONTENT,
|
|
15
|
+
concepts: CONCEPTS_CONTENT,
|
|
16
|
+
api: API_CONTENT,
|
|
17
|
+
examples: EXAMPLES_CONTENT,
|
|
18
|
+
tools: '', // Tools content is generated dynamically
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Get documentation content for a topic
|
|
22
|
+
*/
|
|
23
|
+
export function getDocsContent(topic) {
|
|
24
|
+
return DOCS[topic];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a topic is valid
|
|
28
|
+
*/
|
|
29
|
+
export function isValidTopic(topic) {
|
|
30
|
+
return topic in DOCS;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get all valid topic names
|
|
34
|
+
*/
|
|
35
|
+
export function getValidTopics() {
|
|
36
|
+
return Object.keys(DOCS);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../../src/cli/commands/docs/content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAgB;IAC/B,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,GAAG,EAAE,WAAW;IAChB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,EAAE,EAAE,yCAAyC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgB;IAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAgB,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs Display Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides consistent display functions for documentation output.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Display documentation overview
|
|
8
|
+
*/
|
|
9
|
+
export declare function displayDocsOverview(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Display topic content
|
|
12
|
+
*/
|
|
13
|
+
export declare function displayTopicContent(content: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Display error for unknown topic
|
|
16
|
+
*/
|
|
17
|
+
export declare function displayTopicError(topic: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Display search results header
|
|
20
|
+
*/
|
|
21
|
+
export declare function displaySearchHeader(query: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Display no results message
|
|
24
|
+
*/
|
|
25
|
+
export declare function displayNoResults(query: string): void;
|
|
26
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/docs/display.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAe1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAGrD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAGvD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIpD"}
|