@mytechtoday/augment-extensions 0.1.2 ā 0.4.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/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/domain-rules/wordpress/README.md +163 -0
- package/augment-extensions/domain-rules/wordpress/module.json +32 -0
- package/augment-extensions/domain-rules/wordpress/rules/coding-standards.md +617 -0
- package/augment-extensions/domain-rules/wordpress/rules/directory-structure.md +270 -0
- package/augment-extensions/domain-rules/wordpress/rules/file-patterns.md +423 -0
- package/augment-extensions/domain-rules/wordpress/rules/gutenberg-blocks.md +493 -0
- package/augment-extensions/domain-rules/wordpress/rules/performance.md +568 -0
- package/augment-extensions/domain-rules/wordpress/rules/plugin-development.md +510 -0
- package/augment-extensions/domain-rules/wordpress/rules/project-detection.md +251 -0
- package/augment-extensions/domain-rules/wordpress/rules/rest-api.md +501 -0
- package/augment-extensions/domain-rules/wordpress/rules/security.md +564 -0
- package/augment-extensions/domain-rules/wordpress/rules/theme-development.md +388 -0
- package/augment-extensions/domain-rules/wordpress/rules/woocommerce.md +441 -0
- package/augment-extensions/domain-rules/wordpress-plugin/README.md +139 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/ajax-plugin.md +1599 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/custom-post-type-plugin.md +1727 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block-plugin.md +428 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block.md +422 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/mvc-plugin.md +1623 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/object-oriented-plugin.md +1343 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/rest-endpoint.md +734 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/settings-page-plugin.md +1350 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/simple-procedural-plugin.md +503 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/singleton-plugin.md +971 -0
- package/augment-extensions/domain-rules/wordpress-plugin/module.json +53 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/activation-hooks.md +770 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/admin-interface.md +874 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/ajax-handlers.md +629 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/asset-management.md +559 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/context-providers.md +709 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/cron-jobs.md +736 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/database-management.md +1057 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/documentation-standards.md +463 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/frontend-functionality.md +478 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/gutenberg-blocks.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/internationalization.md +416 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/migration.md +667 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/performance-optimization.md +878 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-architecture.md +693 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-structure.md +352 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/rest-api.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/scaffolding-workflow.md +624 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/security-best-practices.md +866 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing-patterns.md +1165 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing.md +414 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/vscode-integration.md +751 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/woocommerce-integration.md +949 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/wordpress-org-submission.md +458 -0
- package/augment-extensions/examples/gutenberg-block-plugin/README.md +101 -0
- package/augment-extensions/examples/gutenberg-block-plugin/examples/testimonial-block.md +428 -0
- package/augment-extensions/examples/gutenberg-block-plugin/module.json +40 -0
- package/augment-extensions/examples/rest-api-plugin/README.md +98 -0
- package/augment-extensions/examples/rest-api-plugin/examples/task-manager-api.md +1299 -0
- package/augment-extensions/examples/rest-api-plugin/module.json +40 -0
- package/augment-extensions/examples/woocommerce-extension/README.md +98 -0
- package/augment-extensions/examples/woocommerce-extension/examples/product-customizer.md +763 -0
- package/augment-extensions/examples/woocommerce-extension/module.json +40 -0
- package/augment-extensions/workflows/beads/module.json +4 -3
- 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/workflows/wordpress-plugin/README.md +232 -0
- package/augment-extensions/workflows/wordpress-plugin/ai-prompts.md +839 -0
- package/augment-extensions/workflows/wordpress-plugin/bead-decomposition-patterns.md +854 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/complete-plugin-example.md +540 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/custom-post-type-example.md +1083 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/feature-addition-workflow.md +669 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/plugin-creation-workflow.md +597 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/secure-form-handler-example.md +925 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/security-audit-workflow.md +752 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/wordpress-org-submission-workflow.md +773 -0
- package/augment-extensions/workflows/wordpress-plugin/module.json +49 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/best-practices.md +942 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/development-workflow.md +702 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/submission-workflow.md +728 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/testing-workflow.md +775 -0
- package/augment-extensions/writing-standards/screenplay/README.md +171 -0
- package/augment-extensions/writing-standards/screenplay/examples/aaa-hollywood-scene.fountain +164 -0
- package/augment-extensions/writing-standards/screenplay/module.json +124 -0
- package/augment-extensions/writing-standards/screenplay/rules/universal-formatting.md +339 -0
- package/cli/MODULES.md +302 -0
- package/cli/dist/cli.js +142 -9
- 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.map +1 -1
- package/cli/dist/commands/show.js +42 -71
- 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/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/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 +153 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -0
- package/cli/dist/utils/module-system.js +528 -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 +534 -70
- package/package.json +12 -3
package/cli/dist/cli.js
CHANGED
|
@@ -17,6 +17,14 @@ const search_1 = require("./commands/search");
|
|
|
17
17
|
const coord_1 = require("./commands/coord");
|
|
18
18
|
const sync_1 = require("./commands/sync");
|
|
19
19
|
const migrate_1 = require("./utils/migrate");
|
|
20
|
+
const validate_1 = require("./commands/validate");
|
|
21
|
+
const catalog_1 = require("./commands/catalog");
|
|
22
|
+
const install_rules_1 = require("./commands/install-rules");
|
|
23
|
+
const gui_1 = require("./commands/gui");
|
|
24
|
+
const unlink_1 = require("./commands/unlink");
|
|
25
|
+
const self_remove_1 = require("./commands/self-remove");
|
|
26
|
+
const skill_1 = require("./commands/skill");
|
|
27
|
+
const mcp_1 = require("./commands/mcp");
|
|
20
28
|
// Read version from package.json
|
|
21
29
|
const packageJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../../package.json'), 'utf-8'));
|
|
22
30
|
const program = new commander_1.Command();
|
|
@@ -29,6 +37,10 @@ program
|
|
|
29
37
|
.description('Initialize Augment Extensions in current project')
|
|
30
38
|
.option('--from-submodule', 'Initialize from existing submodule')
|
|
31
39
|
.action(init_1.initCommand);
|
|
40
|
+
program
|
|
41
|
+
.command('gui')
|
|
42
|
+
.description('Launch interactive GUI for module management')
|
|
43
|
+
.action(gui_1.guiCommand);
|
|
32
44
|
program
|
|
33
45
|
.command('list')
|
|
34
46
|
.description('List available or linked extension modules')
|
|
@@ -47,11 +59,9 @@ program
|
|
|
47
59
|
.action(link_1.linkCommand);
|
|
48
60
|
program
|
|
49
61
|
.command('unlink <module>')
|
|
50
|
-
.description('Unlink an extension module from current project')
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
// Implementation
|
|
54
|
-
});
|
|
62
|
+
.description('Unlink an extension module or collection from current project')
|
|
63
|
+
.option('--force', 'Force unlink even if other modules depend on it')
|
|
64
|
+
.action(unlink_1.unlinkCommand);
|
|
55
65
|
program
|
|
56
66
|
.command('update')
|
|
57
67
|
.description('Update all linked modules to latest versions')
|
|
@@ -74,10 +84,8 @@ program
|
|
|
74
84
|
program
|
|
75
85
|
.command('validate <module>')
|
|
76
86
|
.description('Validate module structure and metadata')
|
|
77
|
-
.
|
|
78
|
-
|
|
79
|
-
// Implementation
|
|
80
|
-
});
|
|
87
|
+
.option('--verbose', 'Show detailed validation information')
|
|
88
|
+
.action(validate_1.validateCommand);
|
|
81
89
|
program
|
|
82
90
|
.command('pin <module> <version>')
|
|
83
91
|
.description('Pin module to specific version')
|
|
@@ -92,6 +100,12 @@ program
|
|
|
92
100
|
console.log(chalk_1.default.blue('Checking for updates...'));
|
|
93
101
|
// Implementation
|
|
94
102
|
});
|
|
103
|
+
program
|
|
104
|
+
.command('self-remove')
|
|
105
|
+
.description('Completely remove all Augment Extensions from the project')
|
|
106
|
+
.option('--dry-run', 'Preview what would be removed without actually removing')
|
|
107
|
+
.option('--force', 'Skip confirmation prompts')
|
|
108
|
+
.action(self_remove_1.selfRemoveCommand);
|
|
95
109
|
program
|
|
96
110
|
.command('diff <module>')
|
|
97
111
|
.description('Show differences between current and latest version')
|
|
@@ -99,6 +113,29 @@ program
|
|
|
99
113
|
console.log(chalk_1.default.magenta(`Showing diff for: ${module}`));
|
|
100
114
|
// Implementation
|
|
101
115
|
});
|
|
116
|
+
program
|
|
117
|
+
.command('catalog')
|
|
118
|
+
.description('Update MODULES.md catalog with all available modules')
|
|
119
|
+
.option('--output <path>', 'Output path for catalog file')
|
|
120
|
+
.option('--check', 'Check if catalog is out of date (exit 1 if outdated)')
|
|
121
|
+
.option('--auto', 'Auto-update only if out of date')
|
|
122
|
+
.action(catalog_1.catalogCommand);
|
|
123
|
+
program
|
|
124
|
+
.command('catalog-hook')
|
|
125
|
+
.description('Setup git hook for automatic catalog updates')
|
|
126
|
+
.option('--remove', 'Remove catalog auto-update from git hook')
|
|
127
|
+
.option('--type <type>', 'Hook type: pre-commit or post-commit (default: pre-commit)')
|
|
128
|
+
.action(catalog_1.catalogHookCommand);
|
|
129
|
+
program
|
|
130
|
+
.command('install-rules')
|
|
131
|
+
.description('Install character count management rule to .augment/rules')
|
|
132
|
+
.option('--quiet', 'Suppress output messages')
|
|
133
|
+
.option('--setup-hooks', 'Setup automatic rule installation hooks')
|
|
134
|
+
.option('--remove-hooks', 'Remove automatic rule installation hooks')
|
|
135
|
+
.option('--git-hook-type <type>', 'Git hook type: post-checkout or post-merge (default: post-checkout)')
|
|
136
|
+
.option('--force', 'Force replace existing rule even if content differs')
|
|
137
|
+
.option('--interactive', 'Prompt for conflict resolution when rule exists with different content')
|
|
138
|
+
.action(install_rules_1.installRulesCommand);
|
|
102
139
|
// Coordination commands
|
|
103
140
|
const coordCommand = program
|
|
104
141
|
.command('coord')
|
|
@@ -160,6 +197,102 @@ program
|
|
|
160
197
|
process.exit(1);
|
|
161
198
|
}
|
|
162
199
|
});
|
|
200
|
+
// Skill commands
|
|
201
|
+
const skillCommand = program.command('skill').description('Manage skills');
|
|
202
|
+
skillCommand
|
|
203
|
+
.command('list')
|
|
204
|
+
.description('List all available skills')
|
|
205
|
+
.option('--category <category>', 'Filter by category')
|
|
206
|
+
.option('--json', 'Output as JSON')
|
|
207
|
+
.action(skill_1.skillListCommand);
|
|
208
|
+
skillCommand
|
|
209
|
+
.command('show <skillId>')
|
|
210
|
+
.description('Show skill details')
|
|
211
|
+
.option('--json', 'Output as JSON')
|
|
212
|
+
.action(skill_1.skillShowCommand);
|
|
213
|
+
skillCommand
|
|
214
|
+
.command('validate <skillId>')
|
|
215
|
+
.description('Validate skill file')
|
|
216
|
+
.action(skill_1.skillValidateCommand);
|
|
217
|
+
skillCommand
|
|
218
|
+
.command('search <query>')
|
|
219
|
+
.description('Search skills by tags or keywords')
|
|
220
|
+
.option('--json', 'Output as JSON')
|
|
221
|
+
.action(skill_1.skillSearchCommand);
|
|
222
|
+
skillCommand
|
|
223
|
+
.command('exec <skillId> [args...]')
|
|
224
|
+
.description('Execute a skill\'s CLI command')
|
|
225
|
+
.action(skill_1.skillExecCommand);
|
|
226
|
+
skillCommand
|
|
227
|
+
.command('inject <skillId>')
|
|
228
|
+
.description('Inject skill content into AI context (with dynamic loading)')
|
|
229
|
+
.option('--json', 'Output as JSON')
|
|
230
|
+
.option('--no-deps', 'Do not resolve dependencies')
|
|
231
|
+
.option('--max-tokens <number>', 'Maximum token budget', parseInt)
|
|
232
|
+
.action(skill_1.skillInjectCommand);
|
|
233
|
+
skillCommand
|
|
234
|
+
.command('load <skillIds...>')
|
|
235
|
+
.description('Load multiple skills in batch')
|
|
236
|
+
.option('--json', 'Output as JSON')
|
|
237
|
+
.option('--max-tokens <number>', 'Maximum token budget', parseInt)
|
|
238
|
+
.action(skill_1.skillLoadBatchCommand);
|
|
239
|
+
skillCommand
|
|
240
|
+
.command('cache-clear')
|
|
241
|
+
.description('Clear skill cache')
|
|
242
|
+
.action(skill_1.skillCacheClearCommand);
|
|
243
|
+
skillCommand
|
|
244
|
+
.command('cache-stats')
|
|
245
|
+
.description('Show skill cache statistics')
|
|
246
|
+
.action(skill_1.skillCacheStatsCommand);
|
|
247
|
+
skillCommand
|
|
248
|
+
.command('create-mcp')
|
|
249
|
+
.description('Create a new MCP skill')
|
|
250
|
+
.requiredOption('--name <name>', 'MCP server name')
|
|
251
|
+
.requiredOption('--description <description>', 'Brief description')
|
|
252
|
+
.requiredOption('--category <category>', 'Skill category (retrieval, transformation, analysis, generation, integration, utility)')
|
|
253
|
+
.option('--package <package>', 'npm package or URL')
|
|
254
|
+
.option('--token-budget <number>', 'Token budget estimate', parseInt, 2000)
|
|
255
|
+
.option('--tags <tags>', 'Comma-separated tags', (val) => val.split(',').map(t => t.trim()))
|
|
256
|
+
.action(skill_1.skillCreateMcpCommand);
|
|
257
|
+
// MCP commands
|
|
258
|
+
const mcpCommand = program.command('mcp').description('Manage MCP server integrations');
|
|
259
|
+
mcpCommand
|
|
260
|
+
.command('list')
|
|
261
|
+
.description('List all configured MCP servers')
|
|
262
|
+
.option('--json', 'Output as JSON')
|
|
263
|
+
.action(mcp_1.mcpListCommand);
|
|
264
|
+
mcpCommand
|
|
265
|
+
.command('add <name> <command>')
|
|
266
|
+
.description('Add MCP server configuration')
|
|
267
|
+
.option('--args <args>', 'Command arguments (space-separated)')
|
|
268
|
+
.option('--transport <type>', 'Transport type (stdio or http)', 'stdio')
|
|
269
|
+
.option('--url <url>', 'Server URL (for HTTP transport)')
|
|
270
|
+
.option('--env <json>', 'Environment variables (JSON)')
|
|
271
|
+
.action(mcp_1.mcpAddCommand);
|
|
272
|
+
mcpCommand
|
|
273
|
+
.command('remove <name>')
|
|
274
|
+
.description('Remove MCP server configuration')
|
|
275
|
+
.action(mcp_1.mcpRemoveCommand);
|
|
276
|
+
mcpCommand
|
|
277
|
+
.command('exec <serverName> <toolName>')
|
|
278
|
+
.description('Execute MCP tool')
|
|
279
|
+
.option('--args <json>', 'Tool arguments (JSON)')
|
|
280
|
+
.option('--json', 'Output as JSON')
|
|
281
|
+
.action(mcp_1.mcpExecCommand);
|
|
282
|
+
mcpCommand
|
|
283
|
+
.command('wrap <serverName> <toolName> <skillId>')
|
|
284
|
+
.description('Generate skill wrapper for MCP tool')
|
|
285
|
+
.option('--category <category>', 'Skill category', 'integration')
|
|
286
|
+
.action(mcp_1.mcpWrapCommand);
|
|
287
|
+
mcpCommand
|
|
288
|
+
.command('discover <serverName>')
|
|
289
|
+
.description('Discover tools from MCP server')
|
|
290
|
+
.option('--json', 'Output as JSON')
|
|
291
|
+
.action(mcp_1.mcpDiscoverCommand);
|
|
292
|
+
mcpCommand
|
|
293
|
+
.command('generate-cli <serverCommand> <outputPath>')
|
|
294
|
+
.description('Generate CLI using mcporter')
|
|
295
|
+
.action(mcp_1.mcpGenerateCLICommand);
|
|
163
296
|
program.parse(process.argv);
|
|
164
297
|
// Show help if no command provided
|
|
165
298
|
if (!process.argv.slice(2).length) {
|
package/cli/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,kDAA0B;AAC1B,2BAAkC;AAClC,+BAA4B;AAC5B,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,8CAAkD;AAClD,8CAAkD;AAClD,4CAA6G;AAC7G,0CAA0G;AAC1G,6CAAsD;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,kDAA0B;AAC1B,2BAAkC;AAClC,+BAA4B;AAC5B,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,8CAAkD;AAClD,8CAAkD;AAClD,4CAA6G;AAC7G,0CAA0G;AAC1G,6CAAsD;AACtD,kDAAsD;AACtD,gDAAwE;AACxE,4DAA+D;AAC/D,wCAA4C;AAC5C,8CAAkD;AAClD,wDAA2D;AAC3D,4CAW0B;AAC1B,wCAQwB;AAExB,iCAAiC;AACjC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAC7D,CAAC;AAEF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,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CAAC,UAAU,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface CatalogOptions {
|
|
2
|
+
output?: string;
|
|
3
|
+
check?: boolean;
|
|
4
|
+
auto?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface CatalogHookOptions {
|
|
7
|
+
remove?: boolean;
|
|
8
|
+
type?: 'pre-commit' | 'post-commit';
|
|
9
|
+
}
|
|
10
|
+
export declare function catalogCommand(options?: CatalogOptions): Promise<void>;
|
|
11
|
+
export declare function catalogHookCommand(options?: CatalogHookOptions): Promise<void>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/commands/catalog.ts"],"names":[],"mappings":"AAUA,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;CACrC;AAED,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqChF;AAED,wBAAsB,kBAAkB,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBxF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.catalogCommand = catalogCommand;
|
|
40
|
+
exports.catalogHookCommand = catalogHookCommand;
|
|
41
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
43
|
+
const modules_catalog_1 = require("../utils/modules-catalog");
|
|
44
|
+
const catalog_sync_1 = require("../utils/catalog-sync");
|
|
45
|
+
async function catalogCommand(options = {}) {
|
|
46
|
+
try {
|
|
47
|
+
const catalogPath = options.output || path.join(process.cwd(), 'MODULES.md');
|
|
48
|
+
// Check if catalog is out of date
|
|
49
|
+
if (options.check) {
|
|
50
|
+
const outOfDate = (0, catalog_sync_1.isCatalogOutOfDate)(catalogPath);
|
|
51
|
+
if (outOfDate) {
|
|
52
|
+
console.log(chalk_1.default.yellow('ā Catalog is out of date'));
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
console.log(chalk_1.default.green('ā Catalog is up to date'));
|
|
57
|
+
process.exit(0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// Auto-update only if out of date
|
|
61
|
+
if (options.auto) {
|
|
62
|
+
const updated = (0, catalog_sync_1.autoUpdateCatalog)(catalogPath);
|
|
63
|
+
if (updated) {
|
|
64
|
+
console.log(chalk_1.default.green(`ā Module catalog updated: ${catalogPath}`));
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
console.log(chalk_1.default.gray('Catalog is already up to date'));
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// Force update
|
|
72
|
+
console.log(chalk_1.default.blue(`\nš Updating module catalog...\n`));
|
|
73
|
+
(0, modules_catalog_1.updateModulesCatalog)(catalogPath);
|
|
74
|
+
console.log(chalk_1.default.green(`ā Module catalog updated: ${catalogPath}`));
|
|
75
|
+
console.log();
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
console.error(chalk_1.default.red('Error updating catalog:'), error);
|
|
79
|
+
process.exit(1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async function catalogHookCommand(options = {}) {
|
|
83
|
+
try {
|
|
84
|
+
const hookType = options.type || 'pre-commit';
|
|
85
|
+
const gitDir = path.join(process.cwd(), '.git');
|
|
86
|
+
if (options.remove) {
|
|
87
|
+
console.log(chalk_1.default.blue(`\nš§ Removing catalog auto-update from ${hookType} hook...\n`));
|
|
88
|
+
(0, catalog_sync_1.removeCatalogGitHook)(hookType, gitDir);
|
|
89
|
+
console.log(chalk_1.default.green(`ā Catalog auto-update removed from ${hookType} hook`));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
console.log(chalk_1.default.blue(`\nš§ Setting up catalog auto-update in ${hookType} hook...\n`));
|
|
93
|
+
(0, catalog_sync_1.createCatalogGitHook)(hookType, gitDir);
|
|
94
|
+
console.log(chalk_1.default.green(`ā Catalog auto-update configured in ${hookType} hook`));
|
|
95
|
+
console.log(chalk_1.default.gray(`\nThe catalog will be automatically updated on ${hookType}`));
|
|
96
|
+
}
|
|
97
|
+
console.log();
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
console.error(chalk_1.default.red('Error configuring git hook:'), error);
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/commands/catalog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wCAqCC;AAED,gDAqBC;AAjFD,kDAA0B;AAC1B,2CAA6B;AAC7B,8DAAgE;AAChE,wDAK+B;AAaxB,KAAK,UAAU,cAAc,CAAC,UAA0B,EAAE;IAC/D,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;QAE7E,kCAAkC;QAClC,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,MAAM,SAAS,GAAG,IAAA,iCAAkB,EAAC,WAAW,CAAC,CAAC;YAClD,IAAI,SAAS,EAAE,CAAC;gBACd,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC;gBACtD,OAAO,CAAC,IAA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|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.guiCommand = guiCommand;
|
|
40
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
41
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
42
|
+
const fs = __importStar(require("fs"));
|
|
43
|
+
const path = __importStar(require("path"));
|
|
44
|
+
const module_system_1 = require("../utils/module-system");
|
|
45
|
+
const link_1 = require("./link");
|
|
46
|
+
async function guiCommand(options = {}) {
|
|
47
|
+
try {
|
|
48
|
+
console.log(chalk_1.default.blue('\nšØ Augment Extensions Module Manager\n'));
|
|
49
|
+
// Check if initialized
|
|
50
|
+
const configPath = path.join(process.cwd(), '.augment', 'extensions.json');
|
|
51
|
+
if (!fs.existsSync(configPath)) {
|
|
52
|
+
console.error(chalk_1.default.red('Augment Extensions not initialized. Run: augx init'));
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
56
|
+
const linkedModules = config.modules.map((m) => m.name);
|
|
57
|
+
// Discover available modules and collections
|
|
58
|
+
const modules = (0, module_system_1.discoverModules)();
|
|
59
|
+
const collections = (0, module_system_1.discoverCollections)();
|
|
60
|
+
// Main menu
|
|
61
|
+
const { action } = await inquirer_1.default.prompt([
|
|
62
|
+
{
|
|
63
|
+
type: 'list',
|
|
64
|
+
name: 'action',
|
|
65
|
+
message: 'What would you like to do?',
|
|
66
|
+
choices: [
|
|
67
|
+
{ name: 'š¦ Link Modules', value: 'link-modules' },
|
|
68
|
+
{ name: 'š Link Collection', value: 'link-collection' },
|
|
69
|
+
{ name: 'š Search Modules', value: 'search' },
|
|
70
|
+
{ name: 'ā Exit', value: 'exit' }
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]);
|
|
74
|
+
if (action === 'exit') {
|
|
75
|
+
console.log(chalk_1.default.gray('Goodbye!'));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (action === 'link-modules') {
|
|
79
|
+
await linkModulesInteractive(modules, linkedModules);
|
|
80
|
+
}
|
|
81
|
+
else if (action === 'link-collection') {
|
|
82
|
+
await linkCollectionInteractive(collections, linkedModules);
|
|
83
|
+
}
|
|
84
|
+
else if (action === 'search') {
|
|
85
|
+
await searchModulesInteractive(modules);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
console.error(chalk_1.default.red(`Error: ${error.message}`));
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function linkModulesInteractive(modules, linkedModules) {
|
|
94
|
+
const choices = modules.map(m => ({
|
|
95
|
+
name: `${m.metadata.displayName} (${m.fullName}) - ${m.metadata.description}`,
|
|
96
|
+
value: m.fullName,
|
|
97
|
+
checked: linkedModules.includes(m.fullName)
|
|
98
|
+
}));
|
|
99
|
+
const { selectedModules } = await inquirer_1.default.prompt([
|
|
100
|
+
{
|
|
101
|
+
type: 'checkbox',
|
|
102
|
+
name: 'selectedModules',
|
|
103
|
+
message: 'Select modules to link (use space to select, enter to confirm):',
|
|
104
|
+
choices,
|
|
105
|
+
pageSize: 15
|
|
106
|
+
}
|
|
107
|
+
]);
|
|
108
|
+
if (selectedModules.length === 0) {
|
|
109
|
+
console.log(chalk_1.default.yellow('No modules selected.'));
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
console.log(chalk_1.default.blue(`\nLinking ${selectedModules.length} module(s)...\n`));
|
|
113
|
+
for (const moduleName of selectedModules) {
|
|
114
|
+
if (!linkedModules.includes(moduleName)) {
|
|
115
|
+
await (0, link_1.linkCommand)(moduleName, {});
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
console.log(chalk_1.default.gray(`Skipping already linked module: ${moduleName}`));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
console.log(chalk_1.default.green('\nā Module linking complete!'));
|
|
122
|
+
}
|
|
123
|
+
async function linkCollectionInteractive(collections, linkedModules) {
|
|
124
|
+
if (collections.length === 0) {
|
|
125
|
+
console.log(chalk_1.default.yellow('No collections available.'));
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const choices = collections.map(c => ({
|
|
129
|
+
name: `${c.metadata.displayName} - ${c.metadata.description}`,
|
|
130
|
+
value: c.fullName
|
|
131
|
+
}));
|
|
132
|
+
const { selectedCollection } = await inquirer_1.default.prompt([
|
|
133
|
+
{
|
|
134
|
+
type: 'list',
|
|
135
|
+
name: 'selectedCollection',
|
|
136
|
+
message: 'Select a collection to link:',
|
|
137
|
+
choices
|
|
138
|
+
}
|
|
139
|
+
]);
|
|
140
|
+
const collection = collections.find(c => c.fullName === selectedCollection);
|
|
141
|
+
if (!collection) {
|
|
142
|
+
console.error(chalk_1.default.red('Collection not found.'));
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
console.log(chalk_1.default.blue(`\nLinking collection: ${collection.metadata.displayName}\n`));
|
|
146
|
+
console.log(chalk_1.default.gray(`This will link ${collection.metadata.modules.length} module(s):\n`));
|
|
147
|
+
for (const module of collection.metadata.modules) {
|
|
148
|
+
console.log(chalk_1.default.gray(` - ${module.id}`));
|
|
149
|
+
}
|
|
150
|
+
const { confirm } = await inquirer_1.default.prompt([
|
|
151
|
+
{
|
|
152
|
+
type: 'confirm',
|
|
153
|
+
name: 'confirm',
|
|
154
|
+
message: 'Proceed with linking?',
|
|
155
|
+
default: true
|
|
156
|
+
}
|
|
157
|
+
]);
|
|
158
|
+
if (!confirm) {
|
|
159
|
+
console.log(chalk_1.default.yellow('Cancelled.'));
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
// Link all modules in the collection
|
|
163
|
+
for (const module of collection.metadata.modules) {
|
|
164
|
+
if (!linkedModules.includes(module.id)) {
|
|
165
|
+
await (0, link_1.linkCommand)(module.id, { version: module.version });
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
console.log(chalk_1.default.gray(`Skipping already linked module: ${module.id}`));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
console.log(chalk_1.default.green('\nā Collection linking complete!'));
|
|
172
|
+
}
|
|
173
|
+
async function searchModulesInteractive(modules) {
|
|
174
|
+
const { searchTerm } = await inquirer_1.default.prompt([
|
|
175
|
+
{
|
|
176
|
+
type: 'input',
|
|
177
|
+
name: 'searchTerm',
|
|
178
|
+
message: 'Enter search term:'
|
|
179
|
+
}
|
|
180
|
+
]);
|
|
181
|
+
if (!searchTerm) {
|
|
182
|
+
console.log(chalk_1.default.yellow('No search term provided.'));
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const results = modules.filter(m => m.metadata.displayName.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
186
|
+
m.metadata.description.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
187
|
+
m.metadata.tags?.some((tag) => tag.toLowerCase().includes(searchTerm.toLowerCase())));
|
|
188
|
+
if (results.length === 0) {
|
|
189
|
+
console.log(chalk_1.default.yellow(`No modules found matching "${searchTerm}"`));
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
console.log(chalk_1.default.blue(`\nFound ${results.length} module(s):\n`));
|
|
193
|
+
for (const module of results) {
|
|
194
|
+
console.log(chalk_1.default.green(` ${module.metadata.displayName}`));
|
|
195
|
+
console.log(chalk_1.default.gray(` ${module.fullName}`));
|
|
196
|
+
console.log(chalk_1.default.gray(` ${module.metadata.description}`));
|
|
197
|
+
console.log();
|
|
198
|
+
}
|
|
199
|
+
const { linkNow } = await inquirer_1.default.prompt([
|
|
200
|
+
{
|
|
201
|
+
type: 'confirm',
|
|
202
|
+
name: 'linkNow',
|
|
203
|
+
message: 'Would you like to link any of these modules?',
|
|
204
|
+
default: false
|
|
205
|
+
}
|
|
206
|
+
]);
|
|
207
|
+
if (linkNow) {
|
|
208
|
+
await linkModulesInteractive(results, []);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=gui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gui.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E,EAAE,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,UAAU,WAAW;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAkHrE"}
|
|
@@ -41,6 +41,7 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
41
41
|
const fs = __importStar(require("fs"));
|
|
42
42
|
const path = __importStar(require("path"));
|
|
43
43
|
const inquirer_1 = __importDefault(require("inquirer"));
|
|
44
|
+
const install_rules_1 = require("../utils/install-rules");
|
|
44
45
|
async function initCommand(options) {
|
|
45
46
|
console.log(chalk_1.default.bold.blue('\nš Initializing Augment Extensions\n'));
|
|
46
47
|
try {
|
|
@@ -123,6 +124,17 @@ Check \`.augment/extensions.json\` for currently linked modules.
|
|
|
123
124
|
console.log(chalk_1.default.green('ā Updated .gitignore'));
|
|
124
125
|
}
|
|
125
126
|
}
|
|
127
|
+
// Install character count management rule
|
|
128
|
+
console.log(chalk_1.default.blue('\nš Installing character count management rule...\n'));
|
|
129
|
+
const ruleResult = await (0, install_rules_1.installCharacterCountRule)({
|
|
130
|
+
targetDir: process.cwd(),
|
|
131
|
+
skipIfExists: true,
|
|
132
|
+
verbose: true
|
|
133
|
+
});
|
|
134
|
+
if (!ruleResult.success) {
|
|
135
|
+
console.log(chalk_1.default.yellow(`ā Warning: Could not install character count rule: ${ruleResult.error}`));
|
|
136
|
+
console.log(chalk_1.default.gray('You can manually copy the rule from .augment/rules/character-count-management.md'));
|
|
137
|
+
}
|
|
126
138
|
console.log(chalk_1.default.bold.green('\n⨠Augment Extensions initialized successfully!\n'));
|
|
127
139
|
console.log(chalk_1.default.gray('Next steps:'));
|
|
128
140
|
console.log(chalk_1.default.gray(' 1. Link modules: augx link coding-standards/typescript'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,kCAkHC;AA5HD,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAC7B,wDAAgC;AAChC,0DAAmE;AAM5D,KAAK,UAAU,WAAW,CAAC,OAAoB;IACpD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC,CAAC;IAEvE,IAAI,CAAC;QACH,+BAA+B;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,UAAU,CAAC,CAAC;QACxD,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;QAElE,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACpC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;gBAC1C;oBACE,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,oDAAoD;oBAC7D,OAAO,EAAE,KAAK;iBACf;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;gBACvD,OAAO;YACT,CAAC;QACH,CAAC;QAED,gDAAgD;QAChD,IAAI,CAAC,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