@mytechtoday/augment-extensions 0.2.0 → 0.5.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 +614 -39
- package/augment-extensions/coding-standards/bash/README.md +196 -0
- package/augment-extensions/coding-standards/bash/module.json +163 -0
- package/augment-extensions/coding-standards/bash/rules/naming-conventions.md +336 -0
- package/augment-extensions/coding-standards/bash/rules/universal-standards.md +289 -0
- package/augment-extensions/coding-standards/css/README.md +40 -0
- package/augment-extensions/coding-standards/css/examples/css-examples.css +550 -0
- package/augment-extensions/coding-standards/css/module.json +44 -0
- package/augment-extensions/coding-standards/css/rules/css-modern-features.md +448 -0
- package/augment-extensions/coding-standards/css/rules/css-standards.md +492 -0
- package/augment-extensions/coding-standards/html/README.md +40 -0
- package/augment-extensions/coding-standards/html/examples/html-examples.html +267 -0
- package/augment-extensions/coding-standards/html/examples/responsive-layout.html +505 -0
- package/augment-extensions/coding-standards/html/module.json +44 -0
- package/augment-extensions/coding-standards/html/rules/html-standards.md +349 -0
- package/augment-extensions/coding-standards/html-css-js/README.md +194 -0
- package/augment-extensions/coding-standards/html-css-js/examples/async-examples.js +487 -0
- package/augment-extensions/coding-standards/html-css-js/examples/css-examples.css +550 -0
- package/augment-extensions/coding-standards/html-css-js/examples/dom-examples.js +667 -0
- package/augment-extensions/coding-standards/html-css-js/examples/html-examples.html +267 -0
- package/augment-extensions/coding-standards/html-css-js/examples/javascript-examples.js +612 -0
- package/augment-extensions/coding-standards/html-css-js/examples/responsive-layout.html +505 -0
- package/augment-extensions/coding-standards/html-css-js/module.json +48 -0
- package/augment-extensions/coding-standards/html-css-js/rules/async-patterns.md +515 -0
- package/augment-extensions/coding-standards/html-css-js/rules/css-modern-features.md +448 -0
- package/augment-extensions/coding-standards/html-css-js/rules/css-standards.md +492 -0
- package/augment-extensions/coding-standards/html-css-js/rules/dom-manipulation.md +439 -0
- package/augment-extensions/coding-standards/html-css-js/rules/html-standards.md +349 -0
- package/augment-extensions/coding-standards/html-css-js/rules/javascript-standards.md +486 -0
- package/augment-extensions/coding-standards/html-css-js/rules/performance.md +463 -0
- package/augment-extensions/coding-standards/html-css-js/rules/tooling.md +543 -0
- package/augment-extensions/coding-standards/js/README.md +46 -0
- package/augment-extensions/coding-standards/js/examples/async-examples.js +487 -0
- package/augment-extensions/coding-standards/js/examples/dom-examples.js +667 -0
- package/augment-extensions/coding-standards/js/examples/javascript-examples.js +612 -0
- package/augment-extensions/coding-standards/js/module.json +49 -0
- package/augment-extensions/coding-standards/js/rules/async-patterns.md +515 -0
- package/augment-extensions/coding-standards/js/rules/dom-manipulation.md +439 -0
- package/augment-extensions/coding-standards/js/rules/javascript-standards.md +486 -0
- package/augment-extensions/coding-standards/js/rules/performance.md +463 -0
- package/augment-extensions/coding-standards/js/rules/tooling.md +543 -0
- package/augment-extensions/coding-standards/php/README.md +248 -0
- package/augment-extensions/coding-standards/php/examples/api-endpoint-example.php +204 -0
- package/augment-extensions/coding-standards/php/examples/cli-command-example.php +206 -0
- package/augment-extensions/coding-standards/php/examples/legacy-refactoring-example.php +234 -0
- package/augment-extensions/coding-standards/php/examples/web-application-example.php +211 -0
- package/augment-extensions/coding-standards/php/examples/woocommerce-extension-example.php +215 -0
- package/augment-extensions/coding-standards/php/examples/wordpress-plugin-example.php +189 -0
- package/augment-extensions/coding-standards/php/module.json +166 -0
- package/augment-extensions/coding-standards/php/rules/api-development.md +480 -0
- package/augment-extensions/coding-standards/php/rules/category-configuration.md +332 -0
- package/augment-extensions/coding-standards/php/rules/cli-tools.md +472 -0
- package/augment-extensions/coding-standards/php/rules/cms-integration.md +561 -0
- package/augment-extensions/coding-standards/php/rules/code-quality.md +402 -0
- package/augment-extensions/coding-standards/php/rules/documentation.md +425 -0
- package/augment-extensions/coding-standards/php/rules/ecommerce.md +627 -0
- package/augment-extensions/coding-standards/php/rules/error-handling.md +336 -0
- package/augment-extensions/coding-standards/php/rules/legacy-migration.md +677 -0
- package/augment-extensions/coding-standards/php/rules/naming-conventions.md +279 -0
- package/augment-extensions/coding-standards/php/rules/performance.md +392 -0
- package/augment-extensions/coding-standards/php/rules/psr-standards.md +186 -0
- package/augment-extensions/coding-standards/php/rules/security.md +358 -0
- package/augment-extensions/coding-standards/php/rules/testing.md +403 -0
- package/augment-extensions/coding-standards/php/rules/type-declarations.md +331 -0
- package/augment-extensions/coding-standards/php/rules/web-applications.md +426 -0
- package/augment-extensions/coding-standards/powershell/README.md +154 -0
- package/augment-extensions/coding-standards/powershell/examples/admin-example.ps1 +272 -0
- package/augment-extensions/coding-standards/powershell/examples/automation-example.ps1 +173 -0
- package/augment-extensions/coding-standards/powershell/examples/cloud-example.ps1 +243 -0
- package/augment-extensions/coding-standards/powershell/examples/cross-platform-example.ps1 +297 -0
- package/augment-extensions/coding-standards/powershell/examples/dsc-example.ps1 +224 -0
- package/augment-extensions/coding-standards/powershell/examples/legacy-migration-example.ps1 +340 -0
- package/augment-extensions/coding-standards/powershell/examples/module-example.psm1 +255 -0
- package/augment-extensions/coding-standards/powershell/module.json +165 -0
- package/augment-extensions/coding-standards/powershell/rules/administrative-tools.md +439 -0
- package/augment-extensions/coding-standards/powershell/rules/automation-scripts.md +240 -0
- package/augment-extensions/coding-standards/powershell/rules/cloud-orchestration.md +384 -0
- package/augment-extensions/coding-standards/powershell/rules/configuration-schema.md +383 -0
- package/augment-extensions/coding-standards/powershell/rules/cross-platform-scripts.md +482 -0
- package/augment-extensions/coding-standards/powershell/rules/dsc-configurations.md +296 -0
- package/augment-extensions/coding-standards/powershell/rules/error-handling.md +314 -0
- package/augment-extensions/coding-standards/powershell/rules/legacy-migrations.md +466 -0
- package/augment-extensions/coding-standards/powershell/rules/modules-functions.md +244 -0
- package/augment-extensions/coding-standards/powershell/rules/naming-conventions.md +266 -0
- package/augment-extensions/coding-standards/powershell/rules/performance-optimization.md +209 -0
- package/augment-extensions/coding-standards/powershell/rules/security-practices.md +314 -0
- package/augment-extensions/coding-standards/powershell/rules/testing-guidelines.md +268 -0
- package/augment-extensions/coding-standards/powershell/rules/universal-standards.md +197 -0
- package/augment-extensions/coding-standards/python/README.md +12 -8
- package/augment-extensions/coding-standards/python/examples/best-practices.py +373 -0
- package/augment-extensions/coding-standards/python/module.json +8 -4
- package/augment-extensions/coding-standards/python/rules/async-patterns.md +884 -0
- package/augment-extensions/coding-standards/python/rules/documentation.md +831 -0
- package/augment-extensions/coding-standards/python/rules/error-handling.md +855 -68
- package/augment-extensions/coding-standards/python/rules/testing.md +409 -0
- package/augment-extensions/coding-standards/python/rules/tooling.md +446 -0
- package/augment-extensions/coding-standards/python/rules/type-hints.md +115 -50
- package/augment-extensions/collections/html-css-js/README.md +82 -0
- package/augment-extensions/collections/html-css-js/collection.json +41 -0
- package/augment-extensions/domain-rules/database/README.md +161 -0
- package/augment-extensions/domain-rules/database/examples/flat-database-example.md +793 -0
- package/augment-extensions/domain-rules/database/examples/hybrid-database-example.md +1132 -0
- package/augment-extensions/domain-rules/database/examples/nosql-document-example.md +868 -0
- package/augment-extensions/domain-rules/database/examples/nosql-graph-example.md +805 -0
- package/augment-extensions/domain-rules/database/examples/relational-schema-example.md +621 -0
- package/augment-extensions/domain-rules/database/examples/vector-database-example.md +965 -0
- package/augment-extensions/domain-rules/database/module.json +28 -0
- package/augment-extensions/domain-rules/database/rules/flat-databases.md +624 -0
- package/augment-extensions/domain-rules/database/rules/nosql-databases.md +588 -0
- package/augment-extensions/domain-rules/database/rules/nosql-document-stores.md +856 -0
- package/augment-extensions/domain-rules/database/rules/nosql-graph-databases.md +778 -0
- package/augment-extensions/domain-rules/database/rules/nosql-key-value-stores.md +963 -0
- package/augment-extensions/domain-rules/database/rules/performance-optimization.md +1076 -0
- package/augment-extensions/domain-rules/database/rules/relational-databases.md +697 -0
- package/augment-extensions/domain-rules/database/rules/relational-indexing.md +671 -0
- package/augment-extensions/domain-rules/database/rules/relational-query-optimization.md +607 -0
- package/augment-extensions/domain-rules/database/rules/relational-schema-design.md +907 -0
- package/augment-extensions/domain-rules/database/rules/relational-transactions.md +783 -0
- package/augment-extensions/domain-rules/database/rules/security-standards.md +980 -0
- package/augment-extensions/domain-rules/database/rules/universal-best-practices.md +485 -0
- package/augment-extensions/domain-rules/database/rules/vector-databases.md +521 -0
- package/augment-extensions/domain-rules/database/rules/vector-embeddings.md +858 -0
- package/augment-extensions/domain-rules/database/rules/vector-indexing.md +934 -0
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/dracula/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/dracula/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/README.md +27 -0
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/monokai/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/monokai/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/nord/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/nord/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/one-dark/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/one-dark/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/one-light/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/one-light/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/module.json +26 -0
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/README.md +23 -0
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/module.json +26 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/README.md +136 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/SCHEMA-VALIDATION-REPORT.md +216 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/brand-kit-example.yaml +292 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/campaign-brief-example.yaml +389 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/content-calendar-example.yaml +643 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/email-newsletter-example.md +376 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/landing-page-example.md +934 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/ppc-ad-copy-example.md +301 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/seo-blog-post-example.md +347 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/examples/social-media-campaign-example.md +606 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/module.json +50 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/affiliate-influencer-marketing.md +593 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/asset-management.md +418 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/brand-consistency.md +210 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/content-marketing.md +337 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/conversion-optimization.md +455 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/direct-sales.md +499 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/email-marketing.md +439 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/legal-compliance.md +227 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/ppc-advertising.md +569 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/seo-optimization.md +470 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/social-media-marketing.md +414 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/rules/universal-marketing.md +177 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/schemas/asset-inventory.schema.json +247 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/schemas/brand-kit.schema.json +326 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/schemas/campaign-brief.schema.json +342 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/schemas/color-palette.schema.json +223 -0
- package/augment-extensions/domain-rules/marketing-standards/seo-sales-marketing/schemas/content-template.schema.json +383 -0
- package/augment-extensions/domain-rules/mcp/README.md +150 -0
- package/augment-extensions/domain-rules/mcp/examples/compressed-example.md +522 -0
- package/augment-extensions/domain-rules/mcp/examples/graph-augmented-example.md +520 -0
- package/augment-extensions/domain-rules/mcp/examples/hybrid-example.md +570 -0
- package/augment-extensions/domain-rules/mcp/examples/state-based-example.md +427 -0
- package/augment-extensions/domain-rules/mcp/examples/token-based-example.md +435 -0
- package/augment-extensions/domain-rules/mcp/examples/vector-based-example.md +502 -0
- package/augment-extensions/domain-rules/mcp/module.json +49 -0
- package/augment-extensions/domain-rules/mcp/rules/compressed-mcp.md +595 -0
- package/augment-extensions/domain-rules/mcp/rules/configuration.md +345 -0
- package/augment-extensions/domain-rules/mcp/rules/graph-augmented-mcp.md +687 -0
- package/augment-extensions/domain-rules/mcp/rules/hybrid-mcp.md +636 -0
- package/augment-extensions/domain-rules/mcp/rules/state-based-mcp.md +484 -0
- package/augment-extensions/domain-rules/mcp/rules/testing-validation.md +360 -0
- package/augment-extensions/domain-rules/mcp/rules/token-based-mcp.md +393 -0
- package/augment-extensions/domain-rules/mcp/rules/universal-rules.md +194 -0
- package/augment-extensions/domain-rules/mcp/rules/vector-based-mcp.md +625 -0
- package/augment-extensions/workflows/beads/module.json +4 -3
- package/augment-extensions/workflows/beads-integration/IMPLEMENTATION-STATUS.md +145 -0
- package/augment-extensions/workflows/beads-integration/README.md +143 -0
- package/augment-extensions/workflows/beads-integration/config/defaults.json +32 -0
- package/augment-extensions/workflows/beads-integration/config/schema.json +140 -0
- package/augment-extensions/workflows/beads-integration/examples/basic-task-generation.md +293 -0
- package/augment-extensions/workflows/beads-integration/module.json +75 -0
- package/augment-extensions/workflows/beads-integration/rules/core-rules.md +219 -0
- package/augment-extensions/workflows/beads-integration/rules/effectiveness-standards.md +256 -0
- package/augment-extensions/workflows/beads-integration/rules/task-generation.md +607 -0
- package/augment-extensions/workflows/database/README.md +195 -0
- package/augment-extensions/workflows/database/ai-prompt-testing.md +295 -0
- package/augment-extensions/workflows/database/examples/migration-example.md +498 -0
- package/augment-extensions/workflows/database/examples/optimization-example.md +496 -0
- package/augment-extensions/workflows/database/examples/schema-design-example.md +444 -0
- package/augment-extensions/workflows/database/module.json +42 -0
- package/augment-extensions/workflows/database/rules/data-migration.md +249 -0
- package/augment-extensions/workflows/database/rules/documentation-standards.md +339 -0
- package/augment-extensions/workflows/database/rules/migration-workflow.md +352 -0
- package/augment-extensions/workflows/database/rules/optimization-workflow.md +435 -0
- package/augment-extensions/workflows/database/rules/schema-design-workflow.md +535 -0
- package/augment-extensions/workflows/database/rules/testing-patterns.md +305 -0
- package/augment-extensions/workflows/database/rules/workflow.md +458 -0
- package/augment-extensions/workflows/openspec/module.json +4 -3
- package/augment-extensions/writing-standards/screenplay/README.md +300 -0
- package/augment-extensions/writing-standards/screenplay/_templates/README.md +121 -0
- package/augment-extensions/writing-standards/screenplay/_templates/genre-template.md +153 -0
- package/augment-extensions/writing-standards/screenplay/_templates/style-template.md +243 -0
- package/augment-extensions/writing-standards/screenplay/_templates/theme-template.md +213 -0
- package/augment-extensions/writing-standards/screenplay/examples/aaa-hollywood-scene.fountain +164 -0
- package/augment-extensions/writing-standards/screenplay/examples/beat-sheet-example.yaml +95 -0
- package/augment-extensions/writing-standards/screenplay/examples/character-profile-example.yaml +116 -0
- package/augment-extensions/writing-standards/screenplay/examples/commercial-30sec.fountain +151 -0
- package/augment-extensions/writing-standards/screenplay/examples/independent-monologue.fountain +67 -0
- package/augment-extensions/writing-standards/screenplay/examples/news-segment.fountain +142 -0
- package/augment-extensions/writing-standards/screenplay/examples/plot-outline-example.yaml +184 -0
- package/augment-extensions/writing-standards/screenplay/examples/tv-episode-teaser.fountain +204 -0
- package/augment-extensions/writing-standards/screenplay/genres/README.md +181 -0
- package/augment-extensions/writing-standards/screenplay/genres/examples/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/genres/module.json +70 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/action.md +399 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/adventure.md +407 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/animation.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/biographical.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/comedy.md +401 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/documentary.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/drama.md +409 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/fantasy.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/historical.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/horror.md +268 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/musical.md +294 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/mystery.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/noir.md +294 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/romance.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/sci-fi.md +289 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/superhero.md +293 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/thriller.md +294 -0
- package/augment-extensions/writing-standards/screenplay/genres/rules/western.md +293 -0
- package/augment-extensions/writing-standards/screenplay/module.json +124 -0
- package/augment-extensions/writing-standards/screenplay/rules/aaa-hollywood-films.md +339 -0
- package/augment-extensions/writing-standards/screenplay/rules/ai-integration-testing.md +329 -0
- package/augment-extensions/writing-standards/screenplay/rules/character-development.md +169 -0
- package/augment-extensions/writing-standards/screenplay/rules/commercials.md +437 -0
- package/augment-extensions/writing-standards/screenplay/rules/dialogue-writing.md +263 -0
- package/augment-extensions/writing-standards/screenplay/rules/diversity-inclusion.md +261 -0
- package/augment-extensions/writing-standards/screenplay/rules/examples-guide.md +315 -0
- package/augment-extensions/writing-standards/screenplay/rules/formatting-validation.md +413 -0
- package/augment-extensions/writing-standards/screenplay/rules/fountain-format.md +372 -0
- package/augment-extensions/writing-standards/screenplay/rules/independent-films.md +374 -0
- package/augment-extensions/writing-standards/screenplay/rules/live-tv-productions.md +443 -0
- package/augment-extensions/writing-standards/screenplay/rules/narrative-structures.md +207 -0
- package/augment-extensions/writing-standards/screenplay/rules/news-broadcasts.md +444 -0
- package/augment-extensions/writing-standards/screenplay/rules/pacing-timing.md +331 -0
- package/augment-extensions/writing-standards/screenplay/rules/quality-review-checklist.md +334 -0
- package/augment-extensions/writing-standards/screenplay/rules/quick-reference.md +299 -0
- package/augment-extensions/writing-standards/screenplay/rules/screen-continuity.md +263 -0
- package/augment-extensions/writing-standards/screenplay/rules/streaming-content.md +412 -0
- package/augment-extensions/writing-standards/screenplay/rules/trope-management.md +370 -0
- package/augment-extensions/writing-standards/screenplay/rules/tv-series.md +374 -0
- package/augment-extensions/writing-standards/screenplay/rules/universal-formatting.md +339 -0
- package/augment-extensions/writing-standards/screenplay/rules/vscode-integration.md +277 -0
- package/augment-extensions/writing-standards/screenplay/rules/web-content.md +393 -0
- package/augment-extensions/writing-standards/screenplay/schemas/beat-sheet.json +332 -0
- package/augment-extensions/writing-standards/screenplay/schemas/character-profile.json +247 -0
- package/augment-extensions/writing-standards/screenplay/schemas/feature-selection.json +200 -0
- package/augment-extensions/writing-standards/screenplay/schemas/plot-outline.json +233 -0
- package/augment-extensions/writing-standards/screenplay/schemas/screenplay-config.json +245 -0
- package/augment-extensions/writing-standards/screenplay/schemas/trope-inventory.json +221 -0
- package/augment-extensions/writing-standards/screenplay/styles/README.md +159 -0
- package/augment-extensions/writing-standards/screenplay/styles/examples/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/styles/examples/style-applications.md +1449 -0
- package/augment-extensions/writing-standards/screenplay/styles/module.json +64 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/dialogue-centric.md +520 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/ensemble.md +499 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/epic.md +497 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/experimental.md +492 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/flashback.md +509 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/linear.md +490 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/minimalist.md +499 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/non-linear.md +501 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/poetic.md +499 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/realistic.md +498 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/satirical.md +499 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/surreal.md +508 -0
- package/augment-extensions/writing-standards/screenplay/styles/rules/voice-over.md +500 -0
- package/augment-extensions/writing-standards/screenplay/themes/README.md +158 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/common-mistakes-and-fixes.md +643 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/complete-scene-example.md +311 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/individual-theme-examples.md +562 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/multi-theme-weaving.md +538 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-application-guide.md +432 -0
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-integration-across-acts.md +637 -0
- package/augment-extensions/writing-standards/screenplay/themes/module.json +66 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/.gitkeep +2 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/ambition.md +458 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/betrayal.md +490 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/environment.md +458 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/fate.md +459 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/friendship.md +491 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/growth.md +491 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/identity.md +490 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/isolation.md +464 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/justice.md +461 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/love.md +489 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/power.md +494 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/redemption.md +483 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/revenge.md +489 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/survival.md +496 -0
- package/augment-extensions/writing-standards/screenplay/themes/rules/technology.md +463 -0
- package/cli/MODULES.md +302 -0
- package/cli/dist/cli.js +168 -10
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/catalog.d.ts +13 -0
- package/cli/dist/commands/catalog.d.ts.map +1 -0
- package/cli/dist/commands/catalog.js +104 -0
- package/cli/dist/commands/catalog.js.map +1 -0
- package/cli/dist/commands/gui.d.ts +6 -0
- package/cli/dist/commands/gui.d.ts.map +1 -0
- package/cli/dist/commands/gui.js +211 -0
- package/cli/dist/commands/gui.js.map +1 -0
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +12 -0
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/install-rules.d.ts +14 -0
- package/cli/dist/commands/install-rules.d.ts.map +1 -0
- package/cli/dist/commands/install-rules.js +127 -0
- package/cli/dist/commands/install-rules.js.map +1 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +9 -11
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/list.d.ts.map +1 -1
- package/cli/dist/commands/list.js +11 -28
- package/cli/dist/commands/list.js.map +1 -1
- package/cli/dist/commands/mcp.d.ts +48 -0
- package/cli/dist/commands/mcp.d.ts.map +1 -0
- package/cli/dist/commands/mcp.js +229 -0
- package/cli/dist/commands/mcp.js.map +1 -0
- package/cli/dist/commands/self-remove.d.ts +7 -0
- package/cli/dist/commands/self-remove.d.ts.map +1 -0
- package/cli/dist/commands/self-remove.js +179 -0
- package/cli/dist/commands/self-remove.js.map +1 -0
- package/cli/dist/commands/show.d.ts +19 -0
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +478 -63
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/skill.d.ts +67 -0
- package/cli/dist/commands/skill.d.ts.map +1 -0
- package/cli/dist/commands/skill.js +513 -0
- package/cli/dist/commands/skill.js.map +1 -0
- package/cli/dist/commands/unlink.d.ts +6 -0
- package/cli/dist/commands/unlink.d.ts.map +1 -0
- package/cli/dist/commands/unlink.js +115 -0
- package/cli/dist/commands/unlink.js.map +1 -0
- package/cli/dist/commands/validate.d.ts +6 -0
- package/cli/dist/commands/validate.d.ts.map +1 -0
- package/cli/dist/commands/validate.js +159 -0
- package/cli/dist/commands/validate.js.map +1 -0
- package/cli/dist/types/gui.d.ts +62 -0
- package/cli/dist/types/gui.d.ts.map +1 -0
- package/cli/dist/types/gui.js +30 -0
- package/cli/dist/types/gui.js.map +1 -0
- package/cli/dist/utils/catalog-sync.d.ts +22 -0
- package/cli/dist/utils/catalog-sync.d.ts.map +1 -0
- package/cli/dist/utils/catalog-sync.js +157 -0
- package/cli/dist/utils/catalog-sync.js.map +1 -0
- package/cli/dist/utils/character-count.d.ts +56 -0
- package/cli/dist/utils/character-count.d.ts.map +1 -0
- package/cli/dist/utils/character-count.js +190 -0
- package/cli/dist/utils/character-count.js.map +1 -0
- package/cli/dist/utils/documentation-validator.d.ts +18 -0
- package/cli/dist/utils/documentation-validator.d.ts.map +1 -0
- package/cli/dist/utils/documentation-validator.js +233 -0
- package/cli/dist/utils/documentation-validator.js.map +1 -0
- package/cli/dist/utils/gui-helpers.d.ts +23 -0
- package/cli/dist/utils/gui-helpers.d.ts.map +1 -0
- package/cli/dist/utils/gui-helpers.js +159 -0
- package/cli/dist/utils/gui-helpers.js.map +1 -0
- package/cli/dist/utils/install-rules.d.ts +32 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -0
- package/cli/dist/utils/install-rules.js +375 -0
- package/cli/dist/utils/install-rules.js.map +1 -0
- package/cli/dist/utils/mcp-integration.d.ts +70 -0
- package/cli/dist/utils/mcp-integration.d.ts.map +1 -0
- package/cli/dist/utils/mcp-integration.js +292 -0
- package/cli/dist/utils/mcp-integration.js.map +1 -0
- package/cli/dist/utils/module-system.d.ts +232 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -0
- package/cli/dist/utils/module-system.js +900 -0
- package/cli/dist/utils/module-system.js.map +1 -0
- package/cli/dist/utils/modules-catalog.d.ts +33 -0
- package/cli/dist/utils/modules-catalog.d.ts.map +1 -0
- package/cli/dist/utils/modules-catalog.js +163 -0
- package/cli/dist/utils/modules-catalog.js.map +1 -0
- package/cli/dist/utils/rule-install-hooks.d.ts +19 -0
- package/cli/dist/utils/rule-install-hooks.d.ts.map +1 -0
- package/cli/dist/utils/rule-install-hooks.js +224 -0
- package/cli/dist/utils/rule-install-hooks.js.map +1 -0
- package/cli/dist/utils/skill-system.d.ts +95 -0
- package/cli/dist/utils/skill-system.d.ts.map +1 -0
- package/cli/dist/utils/skill-system.js +313 -0
- package/cli/dist/utils/skill-system.js.map +1 -0
- package/modules.md +559 -105
- package/package.json +17 -6
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MCP Integration Utilities
|
|
4
|
+
*
|
|
5
|
+
* Provides integration with Model Context Protocol (MCP) servers
|
|
6
|
+
* using mcporter-inspired patterns for CLI wrapping.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
+
}) : function(o, v) {
|
|
22
|
+
o["default"] = v;
|
|
23
|
+
});
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.getMCPConfigDir = getMCPConfigDir;
|
|
43
|
+
exports.loadMCPConfigs = loadMCPConfigs;
|
|
44
|
+
exports.saveMCPConfigs = saveMCPConfigs;
|
|
45
|
+
exports.addMCPServer = addMCPServer;
|
|
46
|
+
exports.removeMCPServer = removeMCPServer;
|
|
47
|
+
exports.executeMCPCommand = executeMCPCommand;
|
|
48
|
+
exports.generateMCPSkillWrapper = generateMCPSkillWrapper;
|
|
49
|
+
exports.discoverMCPTools = discoverMCPTools;
|
|
50
|
+
exports.isMCPorterAvailable = isMCPorterAvailable;
|
|
51
|
+
exports.generateCLIWithMCPorter = generateCLIWithMCPorter;
|
|
52
|
+
const fs = __importStar(require("fs"));
|
|
53
|
+
const path = __importStar(require("path"));
|
|
54
|
+
const child_process_1 = require("child_process");
|
|
55
|
+
/**
|
|
56
|
+
* Get MCP configuration directory
|
|
57
|
+
*/
|
|
58
|
+
function getMCPConfigDir(repoRoot) {
|
|
59
|
+
const root = repoRoot || process.cwd();
|
|
60
|
+
return path.join(root, '.augment', 'mcp');
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Load MCP server configurations
|
|
64
|
+
*/
|
|
65
|
+
function loadMCPConfigs(repoRoot) {
|
|
66
|
+
const configDir = getMCPConfigDir(repoRoot);
|
|
67
|
+
const configFile = path.join(configDir, 'servers.json');
|
|
68
|
+
if (!fs.existsSync(configFile)) {
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
const content = fs.readFileSync(configFile, 'utf-8');
|
|
73
|
+
const config = JSON.parse(content);
|
|
74
|
+
return config.servers || [];
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
console.warn(`Failed to load MCP configs: ${error}`);
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Save MCP server configurations
|
|
83
|
+
*/
|
|
84
|
+
function saveMCPConfigs(configs, repoRoot) {
|
|
85
|
+
const configDir = getMCPConfigDir(repoRoot);
|
|
86
|
+
const configFile = path.join(configDir, 'servers.json');
|
|
87
|
+
// Ensure directory exists
|
|
88
|
+
if (!fs.existsSync(configDir)) {
|
|
89
|
+
fs.mkdirSync(configDir, { recursive: true });
|
|
90
|
+
}
|
|
91
|
+
fs.writeFileSync(configFile, JSON.stringify({ servers: configs }, null, 2), 'utf-8');
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Add MCP server configuration
|
|
95
|
+
*/
|
|
96
|
+
function addMCPServer(config, repoRoot) {
|
|
97
|
+
const configs = loadMCPConfigs(repoRoot);
|
|
98
|
+
// Check if server already exists
|
|
99
|
+
const existing = configs.findIndex(c => c.name === config.name);
|
|
100
|
+
if (existing >= 0) {
|
|
101
|
+
configs[existing] = config;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
configs.push(config);
|
|
105
|
+
}
|
|
106
|
+
saveMCPConfigs(configs, repoRoot);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Remove MCP server configuration
|
|
110
|
+
*/
|
|
111
|
+
function removeMCPServer(name, repoRoot) {
|
|
112
|
+
const configs = loadMCPConfigs(repoRoot);
|
|
113
|
+
const filtered = configs.filter(c => c.name !== name);
|
|
114
|
+
if (filtered.length === configs.length) {
|
|
115
|
+
return false; // Server not found
|
|
116
|
+
}
|
|
117
|
+
saveMCPConfigs(filtered, repoRoot);
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Execute MCP server command (stdio transport)
|
|
122
|
+
*/
|
|
123
|
+
function executeMCPCommand(serverName, toolName, args, repoRoot) {
|
|
124
|
+
return new Promise((resolve, reject) => {
|
|
125
|
+
const configs = loadMCPConfigs(repoRoot);
|
|
126
|
+
const config = configs.find(c => c.name === serverName);
|
|
127
|
+
if (!config) {
|
|
128
|
+
reject(new Error(`MCP server not found: ${serverName}`));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (config.transport !== 'stdio') {
|
|
132
|
+
reject(new Error(`Only stdio transport is currently supported`));
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// Spawn the MCP server process
|
|
136
|
+
const child = (0, child_process_1.spawn)(config.command, config.args || [], {
|
|
137
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
138
|
+
env: { ...process.env, ...config.env }
|
|
139
|
+
});
|
|
140
|
+
let stdout = '';
|
|
141
|
+
let stderr = '';
|
|
142
|
+
child.stdout?.on('data', (data) => {
|
|
143
|
+
stdout += data.toString();
|
|
144
|
+
});
|
|
145
|
+
child.stderr?.on('data', (data) => {
|
|
146
|
+
stderr += data.toString();
|
|
147
|
+
});
|
|
148
|
+
child.on('error', (error) => {
|
|
149
|
+
reject(new Error(`Failed to spawn MCP server: ${error.message}`));
|
|
150
|
+
});
|
|
151
|
+
child.on('exit', (code) => {
|
|
152
|
+
if (code !== 0) {
|
|
153
|
+
reject(new Error(`MCP server exited with code ${code}\nStderr: ${stderr}`));
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
try {
|
|
157
|
+
// Parse JSON-RPC response
|
|
158
|
+
const response = JSON.parse(stdout);
|
|
159
|
+
resolve(response);
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
reject(new Error(`Failed to parse MCP response: ${error}\nStdout: ${stdout}`));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
// Send JSON-RPC request
|
|
166
|
+
const request = {
|
|
167
|
+
jsonrpc: '2.0',
|
|
168
|
+
id: 1,
|
|
169
|
+
method: `tools/${toolName}`,
|
|
170
|
+
params: args
|
|
171
|
+
};
|
|
172
|
+
child.stdin?.write(JSON.stringify(request) + '\n');
|
|
173
|
+
child.stdin?.end();
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Generate CLI wrapper for MCP server
|
|
178
|
+
*
|
|
179
|
+
* This creates a skill file that wraps an MCP server tool as a CLI command.
|
|
180
|
+
*/
|
|
181
|
+
function generateMCPSkillWrapper(serverName, toolName, skillId, category, repoRoot) {
|
|
182
|
+
const configs = loadMCPConfigs(repoRoot);
|
|
183
|
+
const config = configs.find(c => c.name === serverName);
|
|
184
|
+
if (!config) {
|
|
185
|
+
throw new Error(`MCP server not found: ${serverName}`);
|
|
186
|
+
}
|
|
187
|
+
// Generate skill file content
|
|
188
|
+
const skillContent = `---
|
|
189
|
+
id: ${skillId}
|
|
190
|
+
name: ${toolName} (MCP)
|
|
191
|
+
version: 1.0.0
|
|
192
|
+
category: ${category}
|
|
193
|
+
tags: [mcp, ${serverName}, ${toolName}]
|
|
194
|
+
tokenBudget: 1500
|
|
195
|
+
priority: medium
|
|
196
|
+
dependencies: []
|
|
197
|
+
cliCommand: augx mcp exec ${serverName} ${toolName}
|
|
198
|
+
mcpServer: ${serverName}
|
|
199
|
+
autoLoad: false
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
# ${toolName} (MCP Tool)
|
|
203
|
+
|
|
204
|
+
## Purpose
|
|
205
|
+
|
|
206
|
+
This skill wraps the \`${toolName}\` tool from the \`${serverName}\` MCP server.
|
|
207
|
+
|
|
208
|
+
## Usage
|
|
209
|
+
|
|
210
|
+
Execute this skill using the MCP integration:
|
|
211
|
+
|
|
212
|
+
\`\`\`bash
|
|
213
|
+
augx mcp exec ${serverName} ${toolName} --args '{"key": "value"}'
|
|
214
|
+
\`\`\`
|
|
215
|
+
|
|
216
|
+
Or inject into context:
|
|
217
|
+
|
|
218
|
+
\`\`\`bash
|
|
219
|
+
augx skill inject ${skillId}
|
|
220
|
+
\`\`\`
|
|
221
|
+
|
|
222
|
+
## MCP Server Configuration
|
|
223
|
+
|
|
224
|
+
- **Server**: ${serverName}
|
|
225
|
+
- **Transport**: ${config.transport}
|
|
226
|
+
- **Command**: ${config.command}
|
|
227
|
+
|
|
228
|
+
## Notes
|
|
229
|
+
|
|
230
|
+
This is an auto-generated skill wrapper for an MCP server tool.
|
|
231
|
+
The actual tool execution is handled by the MCP integration layer.
|
|
232
|
+
`;
|
|
233
|
+
return skillContent;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Discover available MCP tools from a server
|
|
237
|
+
*
|
|
238
|
+
* Note: This is a simplified version. Full implementation would require
|
|
239
|
+
* proper MCP protocol negotiation and tool discovery.
|
|
240
|
+
*/
|
|
241
|
+
async function discoverMCPTools(serverName, repoRoot) {
|
|
242
|
+
// Placeholder implementation
|
|
243
|
+
// In a full implementation, this would:
|
|
244
|
+
// 1. Connect to the MCP server
|
|
245
|
+
// 2. Send a tools/list request
|
|
246
|
+
// 3. Parse the response
|
|
247
|
+
// 4. Return the list of available tools
|
|
248
|
+
console.warn('MCP tool discovery not yet fully implemented');
|
|
249
|
+
return [];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Check if mcporter is available
|
|
253
|
+
*/
|
|
254
|
+
function isMCPorterAvailable() {
|
|
255
|
+
try {
|
|
256
|
+
const { execSync } = require('child_process');
|
|
257
|
+
execSync('npx mcporter --version', { stdio: 'ignore' });
|
|
258
|
+
return true;
|
|
259
|
+
}
|
|
260
|
+
catch {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Generate CLI using mcporter (if available)
|
|
266
|
+
*/
|
|
267
|
+
async function generateCLIWithMCPorter(serverCommand, outputPath) {
|
|
268
|
+
const { spawn } = require('child_process');
|
|
269
|
+
return new Promise((resolve, reject) => {
|
|
270
|
+
const child = spawn('npx', [
|
|
271
|
+
'mcporter',
|
|
272
|
+
'generate-cli',
|
|
273
|
+
'--command',
|
|
274
|
+
serverCommand,
|
|
275
|
+
'--bundle',
|
|
276
|
+
outputPath
|
|
277
|
+
], {
|
|
278
|
+
stdio: 'inherit'
|
|
279
|
+
});
|
|
280
|
+
child.on('error', (error) => {
|
|
281
|
+
reject(new Error(`Failed to run mcporter: ${error.message}`));
|
|
282
|
+
});
|
|
283
|
+
child.on('exit', (code) => {
|
|
284
|
+
if (code !== 0) {
|
|
285
|
+
reject(new Error(`mcporter exited with code ${code}`));
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
resolve();
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=mcp-integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-integration.js","sourceRoot":"","sources":["../../src/utils/mcp-integration.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,0CAGC;AAKD,wCAgBC;AAKD,wCAcC;AAKD,oCAYC;AAKD,0CAUC;AAKD,8CAmEC;AAOD,0DA8DC;AAQD,4CAUC;AAKD,kDAQC;AAKD,0DA8BC;AAtTD,uCAAyB;AACzB,2CAA6B;AAC7B,iDAAoD;AAuBpD;;GAEG;AACH,SAAgB,eAAe,CAAC,QAAiB;IAC/C,MAAM,IAAI,GAAG,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,QAAiB;IAC9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CAAC,CAAC,CAAC;QAEH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;YAChC,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC,CAAC;gBACvD,OAAO;YACT,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module metadata interface
|
|
3
|
+
*/
|
|
4
|
+
export interface ModuleMetadata {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
description: string;
|
|
9
|
+
type: 'coding-standards' | 'domain-rules' | 'workflows' | 'examples' | 'marketing-standards' | 'writing-standards' | 'themes';
|
|
10
|
+
tags?: string[];
|
|
11
|
+
augment?: {
|
|
12
|
+
characterCount?: number;
|
|
13
|
+
priority?: 'high' | 'medium' | 'low';
|
|
14
|
+
category?: string;
|
|
15
|
+
};
|
|
16
|
+
installation?: 'required' | 'optional';
|
|
17
|
+
dependencies?: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Module structure interface
|
|
21
|
+
*/
|
|
22
|
+
export interface Module {
|
|
23
|
+
metadata: ModuleMetadata;
|
|
24
|
+
path: string;
|
|
25
|
+
fullName: string;
|
|
26
|
+
rules: string[];
|
|
27
|
+
examples: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Validation result interface
|
|
31
|
+
*/
|
|
32
|
+
export interface ValidationResult {
|
|
33
|
+
valid: boolean;
|
|
34
|
+
errors: string[];
|
|
35
|
+
warnings: string[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get the modules directory path
|
|
39
|
+
*/
|
|
40
|
+
export declare function getModulesDir(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Validate module.json structure
|
|
43
|
+
*/
|
|
44
|
+
export declare function validateModuleMetadata(metadata: any): ValidationResult;
|
|
45
|
+
/**
|
|
46
|
+
* Validate semantic version format
|
|
47
|
+
* Supports: MAJOR.MINOR.PATCH[-prerelease][+build]
|
|
48
|
+
* Examples: 1.0.0, 1.0.0-alpha, 1.0.0-beta.1, 1.0.0+20130313144700, 1.0.0-beta+exp.sha.5114f85
|
|
49
|
+
*/
|
|
50
|
+
export declare function isValidSemanticVersion(version: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Parse semantic version into components
|
|
53
|
+
*/
|
|
54
|
+
export interface SemanticVersion {
|
|
55
|
+
major: number;
|
|
56
|
+
minor: number;
|
|
57
|
+
patch: number;
|
|
58
|
+
prerelease?: string;
|
|
59
|
+
build?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare function parseSemanticVersion(version: string): SemanticVersion | null;
|
|
62
|
+
/**
|
|
63
|
+
* Compare two semantic versions
|
|
64
|
+
* Returns: -1 if v1 < v2, 0 if v1 === v2, 1 if v1 > v2
|
|
65
|
+
*/
|
|
66
|
+
export declare function compareSemanticVersions(v1: string, v2: string): number;
|
|
67
|
+
/**
|
|
68
|
+
* Check if version satisfies a range (simple implementation)
|
|
69
|
+
* Supports: ^1.0.0 (compatible), ~1.0.0 (patch), >=1.0.0, >1.0.0, <=1.0.0, <1.0.0, 1.0.0 (exact)
|
|
70
|
+
*/
|
|
71
|
+
export declare function satisfiesVersionRange(version: string, range: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Load module from path
|
|
74
|
+
*/
|
|
75
|
+
export declare function loadModule(modulePath: string): Module | null;
|
|
76
|
+
/**
|
|
77
|
+
* Extended module metadata with file information
|
|
78
|
+
*/
|
|
79
|
+
export interface ExtendedModuleMetadata extends ModuleMetadata {
|
|
80
|
+
files?: {
|
|
81
|
+
total: number;
|
|
82
|
+
rules: number;
|
|
83
|
+
examples: number;
|
|
84
|
+
other: number;
|
|
85
|
+
};
|
|
86
|
+
size?: {
|
|
87
|
+
totalBytes: number;
|
|
88
|
+
totalCharacters: number;
|
|
89
|
+
};
|
|
90
|
+
lastModified?: Date;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Extract comprehensive metadata from a module
|
|
94
|
+
* Includes file counts, sizes, and last modified dates
|
|
95
|
+
*/
|
|
96
|
+
export declare function extractModuleMetadata(modulePath: string): ExtendedModuleMetadata | null;
|
|
97
|
+
/**
|
|
98
|
+
* Generate default metadata for modules without module.json
|
|
99
|
+
*/
|
|
100
|
+
export declare function generateDefaultMetadata(modulePath: string): ModuleMetadata;
|
|
101
|
+
/**
|
|
102
|
+
* File information interface
|
|
103
|
+
*/
|
|
104
|
+
export interface FileInfo {
|
|
105
|
+
name: string;
|
|
106
|
+
path: string;
|
|
107
|
+
relativePath: string;
|
|
108
|
+
size: number;
|
|
109
|
+
modified: Date;
|
|
110
|
+
type: 'rule' | 'example' | 'config' | 'documentation' | 'other';
|
|
111
|
+
extension: string;
|
|
112
|
+
directory: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* List all files in a module with metadata
|
|
116
|
+
*/
|
|
117
|
+
export declare function listModuleFiles(modulePath: string, options?: {
|
|
118
|
+
recursive?: boolean;
|
|
119
|
+
filter?: string;
|
|
120
|
+
groupByDirectory?: boolean;
|
|
121
|
+
}): FileInfo[];
|
|
122
|
+
/**
|
|
123
|
+
* Group files by directory
|
|
124
|
+
*/
|
|
125
|
+
export declare function groupFilesByDirectory(files: FileInfo[]): Map<string, FileInfo[]>;
|
|
126
|
+
/**
|
|
127
|
+
* Get file statistics for a list of files
|
|
128
|
+
*/
|
|
129
|
+
export declare function getFileStatistics(files: FileInfo[]): {
|
|
130
|
+
totalFiles: number;
|
|
131
|
+
totalSize: number;
|
|
132
|
+
byType: Record<FileInfo['type'], number>;
|
|
133
|
+
byExtension: Record<string, number>;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Discover all modules in the modules directory
|
|
137
|
+
*/
|
|
138
|
+
export declare function discoverModules(): Module[];
|
|
139
|
+
/**
|
|
140
|
+
* Collection metadata interface
|
|
141
|
+
*/
|
|
142
|
+
export interface CollectionMetadata {
|
|
143
|
+
name: string;
|
|
144
|
+
version: string;
|
|
145
|
+
displayName: string;
|
|
146
|
+
description: string;
|
|
147
|
+
type: 'collection';
|
|
148
|
+
tags?: string[];
|
|
149
|
+
modules: Array<{
|
|
150
|
+
id: string;
|
|
151
|
+
version: string;
|
|
152
|
+
required: boolean;
|
|
153
|
+
}>;
|
|
154
|
+
augment?: {
|
|
155
|
+
priority?: 'high' | 'medium' | 'low';
|
|
156
|
+
category?: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Collection structure interface
|
|
161
|
+
*/
|
|
162
|
+
export interface Collection {
|
|
163
|
+
metadata: CollectionMetadata;
|
|
164
|
+
path: string;
|
|
165
|
+
fullName: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Discover all collections in the collections directory
|
|
169
|
+
*/
|
|
170
|
+
export declare function discoverCollections(): Collection[];
|
|
171
|
+
/**
|
|
172
|
+
* Find module by name (supports both "category/module" and "module" formats)
|
|
173
|
+
*/
|
|
174
|
+
export declare function findModule(moduleName: string): Module | null;
|
|
175
|
+
/**
|
|
176
|
+
* Search for modules by name with fuzzy matching
|
|
177
|
+
* Supports exact, partial, and case-insensitive matching
|
|
178
|
+
*/
|
|
179
|
+
export interface ModuleSearchOptions {
|
|
180
|
+
caseSensitive?: boolean;
|
|
181
|
+
exactMatch?: boolean;
|
|
182
|
+
category?: string;
|
|
183
|
+
}
|
|
184
|
+
export declare function searchModules(searchTerm: string, options?: ModuleSearchOptions): Module[];
|
|
185
|
+
/**
|
|
186
|
+
* Find module with enhanced discovery
|
|
187
|
+
* Tries exact match first, then falls back to fuzzy search
|
|
188
|
+
*/
|
|
189
|
+
export declare function findModuleEnhanced(moduleName: string): Module | null;
|
|
190
|
+
/**
|
|
191
|
+
* Get module suggestions for a search term
|
|
192
|
+
* Returns up to maxSuggestions similar modules
|
|
193
|
+
*/
|
|
194
|
+
export declare function getModuleSuggestions(searchTerm: string, maxSuggestions?: number): Module[];
|
|
195
|
+
/**
|
|
196
|
+
* Find collection by name (supports both "collections/name" and "name" formats)
|
|
197
|
+
*/
|
|
198
|
+
export declare function findCollection(collectionName: string): Collection | null;
|
|
199
|
+
/**
|
|
200
|
+
* Resolve collection to its constituent modules
|
|
201
|
+
* Returns array of module IDs that are part of the collection
|
|
202
|
+
*/
|
|
203
|
+
export declare function resolveCollection(collection: Collection): string[];
|
|
204
|
+
/**
|
|
205
|
+
* Resolve collection by name to its constituent modules
|
|
206
|
+
*/
|
|
207
|
+
export declare function resolveCollectionByName(collectionName: string): string[] | null;
|
|
208
|
+
/**
|
|
209
|
+
* Check if a name refers to a collection
|
|
210
|
+
*/
|
|
211
|
+
export declare function isCollection(name: string): boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Check if a name refers to a module
|
|
214
|
+
*/
|
|
215
|
+
export declare function isModule(name: string): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Validate module structure
|
|
218
|
+
*/
|
|
219
|
+
export declare function validateModuleStructure(modulePath: string): ValidationResult;
|
|
220
|
+
/**
|
|
221
|
+
* Validate module category matches directory structure
|
|
222
|
+
*/
|
|
223
|
+
export declare function validateModuleCategory(module: Module): ValidationResult;
|
|
224
|
+
/**
|
|
225
|
+
* Calculate character count for a module
|
|
226
|
+
*/
|
|
227
|
+
export declare function calculateModuleCharacterCount(modulePath: string): number;
|
|
228
|
+
/**
|
|
229
|
+
* Validate module is project-agnostic (no hardcoded paths or URLs)
|
|
230
|
+
*/
|
|
231
|
+
export declare function validateProjectAgnostic(modulePath: string): ValidationResult;
|
|
232
|
+
//# sourceMappingURL=module-system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-system.d.ts","sourceRoot":"","sources":["../../src/utils/module-system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