@mytechtoday/augment-extensions 0.7.0 → 1.2.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/AGENTS.md +265 -232
- package/README.md +956 -771
- package/augment-extensions/coding-standards/bash/README.md +196 -196
- package/augment-extensions/coding-standards/bash/module.json +163 -163
- package/augment-extensions/coding-standards/bash/rules/naming-conventions.md +336 -336
- package/augment-extensions/coding-standards/bash/rules/universal-standards.md +289 -289
- package/augment-extensions/coding-standards/css/README.md +40 -40
- package/augment-extensions/coding-standards/css/examples/css-examples.css +550 -550
- package/augment-extensions/coding-standards/css/module.json +44 -44
- package/augment-extensions/coding-standards/css/rules/css-modern-features.md +448 -448
- package/augment-extensions/coding-standards/css/rules/css-standards.md +492 -492
- package/augment-extensions/coding-standards/html/README.md +40 -40
- package/augment-extensions/coding-standards/html/examples/html-examples.html +267 -267
- package/augment-extensions/coding-standards/html/examples/responsive-layout.html +505 -505
- package/augment-extensions/coding-standards/html/module.json +44 -44
- package/augment-extensions/coding-standards/html/rules/html-standards.md +349 -349
- package/augment-extensions/coding-standards/html-css-js/README.md +194 -194
- package/augment-extensions/coding-standards/html-css-js/examples/async-examples.js +487 -487
- package/augment-extensions/coding-standards/html-css-js/examples/css-examples.css +550 -550
- package/augment-extensions/coding-standards/html-css-js/examples/dom-examples.js +667 -667
- package/augment-extensions/coding-standards/html-css-js/examples/html-examples.html +267 -267
- package/augment-extensions/coding-standards/html-css-js/examples/javascript-examples.js +612 -612
- package/augment-extensions/coding-standards/html-css-js/examples/responsive-layout.html +505 -505
- package/augment-extensions/coding-standards/html-css-js/module.json +48 -48
- package/augment-extensions/coding-standards/html-css-js/rules/async-patterns.md +515 -515
- package/augment-extensions/coding-standards/html-css-js/rules/css-modern-features.md +448 -448
- package/augment-extensions/coding-standards/html-css-js/rules/css-standards.md +492 -492
- package/augment-extensions/coding-standards/html-css-js/rules/dom-manipulation.md +439 -439
- package/augment-extensions/coding-standards/html-css-js/rules/html-standards.md +349 -349
- package/augment-extensions/coding-standards/html-css-js/rules/javascript-standards.md +486 -486
- package/augment-extensions/coding-standards/html-css-js/rules/performance.md +463 -463
- package/augment-extensions/coding-standards/html-css-js/rules/tooling.md +543 -543
- package/augment-extensions/coding-standards/js/README.md +46 -46
- package/augment-extensions/coding-standards/js/examples/async-examples.js +487 -487
- package/augment-extensions/coding-standards/js/examples/dom-examples.js +667 -667
- package/augment-extensions/coding-standards/js/examples/javascript-examples.js +612 -612
- package/augment-extensions/coding-standards/js/module.json +49 -49
- package/augment-extensions/coding-standards/js/rules/async-patterns.md +515 -515
- package/augment-extensions/coding-standards/js/rules/dom-manipulation.md +439 -439
- package/augment-extensions/coding-standards/js/rules/javascript-standards.md +486 -486
- package/augment-extensions/coding-standards/js/rules/performance.md +463 -463
- package/augment-extensions/coding-standards/js/rules/tooling.md +543 -543
- package/augment-extensions/coding-standards/php/README.md +248 -248
- package/augment-extensions/coding-standards/php/examples/api-endpoint-example.php +204 -204
- package/augment-extensions/coding-standards/php/examples/cli-command-example.php +206 -206
- package/augment-extensions/coding-standards/php/examples/legacy-refactoring-example.php +234 -234
- package/augment-extensions/coding-standards/php/examples/web-application-example.php +211 -211
- package/augment-extensions/coding-standards/php/examples/woocommerce-extension-example.php +215 -215
- package/augment-extensions/coding-standards/php/examples/wordpress-plugin-example.php +189 -189
- package/augment-extensions/coding-standards/php/module.json +166 -166
- package/augment-extensions/coding-standards/php/rules/api-development.md +480 -480
- package/augment-extensions/coding-standards/php/rules/category-configuration.md +332 -332
- package/augment-extensions/coding-standards/php/rules/cli-tools.md +472 -472
- package/augment-extensions/coding-standards/php/rules/cms-integration.md +561 -561
- package/augment-extensions/coding-standards/php/rules/code-quality.md +402 -402
- package/augment-extensions/coding-standards/php/rules/documentation.md +425 -425
- package/augment-extensions/coding-standards/php/rules/ecommerce.md +627 -627
- package/augment-extensions/coding-standards/php/rules/error-handling.md +336 -336
- package/augment-extensions/coding-standards/php/rules/legacy-migration.md +677 -677
- package/augment-extensions/coding-standards/php/rules/naming-conventions.md +279 -279
- package/augment-extensions/coding-standards/php/rules/performance.md +392 -392
- package/augment-extensions/coding-standards/php/rules/psr-standards.md +186 -186
- package/augment-extensions/coding-standards/php/rules/security.md +358 -358
- package/augment-extensions/coding-standards/php/rules/testing.md +403 -403
- package/augment-extensions/coding-standards/php/rules/type-declarations.md +331 -331
- package/augment-extensions/coding-standards/php/rules/web-applications.md +426 -426
- package/augment-extensions/coding-standards/powershell/README.md +154 -154
- package/augment-extensions/coding-standards/powershell/examples/admin-example.ps1 +272 -272
- package/augment-extensions/coding-standards/powershell/examples/automation-example.ps1 +173 -173
- package/augment-extensions/coding-standards/powershell/examples/cloud-example.ps1 +243 -243
- package/augment-extensions/coding-standards/powershell/examples/cross-platform-example.ps1 +297 -297
- package/augment-extensions/coding-standards/powershell/examples/dsc-example.ps1 +224 -224
- package/augment-extensions/coding-standards/powershell/examples/legacy-migration-example.ps1 +340 -340
- package/augment-extensions/coding-standards/powershell/examples/module-example.psm1 +255 -255
- package/augment-extensions/coding-standards/powershell/module.json +165 -165
- package/augment-extensions/coding-standards/powershell/rules/administrative-tools.md +439 -439
- package/augment-extensions/coding-standards/powershell/rules/automation-scripts.md +240 -240
- package/augment-extensions/coding-standards/powershell/rules/cloud-orchestration.md +384 -384
- package/augment-extensions/coding-standards/powershell/rules/configuration-schema.md +383 -383
- package/augment-extensions/coding-standards/powershell/rules/cross-platform-scripts.md +482 -482
- package/augment-extensions/coding-standards/powershell/rules/dsc-configurations.md +296 -296
- package/augment-extensions/coding-standards/powershell/rules/error-handling.md +314 -314
- package/augment-extensions/coding-standards/powershell/rules/legacy-migrations.md +466 -466
- package/augment-extensions/coding-standards/powershell/rules/modules-functions.md +244 -244
- package/augment-extensions/coding-standards/powershell/rules/naming-conventions.md +266 -266
- package/augment-extensions/coding-standards/powershell/rules/performance-optimization.md +209 -209
- package/augment-extensions/coding-standards/powershell/rules/security-practices.md +314 -314
- package/augment-extensions/coding-standards/powershell/rules/testing-guidelines.md +268 -268
- package/augment-extensions/coding-standards/powershell/rules/universal-standards.md +197 -197
- package/augment-extensions/coding-standards/python/README.md +48 -48
- package/augment-extensions/coding-standards/python/examples/best-practices.py +373 -373
- package/augment-extensions/coding-standards/python/module.json +30 -30
- package/augment-extensions/coding-standards/python/rules/async-patterns.md +884 -884
- package/augment-extensions/coding-standards/python/rules/best-practices.md +232 -232
- package/augment-extensions/coding-standards/python/rules/code-organization.md +220 -220
- package/augment-extensions/coding-standards/python/rules/documentation.md +831 -831
- package/augment-extensions/coding-standards/python/rules/error-handling.md +1008 -1008
- package/augment-extensions/coding-standards/python/rules/naming-conventions.md +172 -172
- package/augment-extensions/coding-standards/python/rules/testing.md +409 -409
- package/augment-extensions/coding-standards/python/rules/tooling.md +446 -446
- package/augment-extensions/coding-standards/python/rules/type-hints.md +253 -253
- package/augment-extensions/coding-standards/react/README.md +45 -45
- package/augment-extensions/coding-standards/react/module.json +27 -27
- package/augment-extensions/coding-standards/react/rules/component-patterns.md +214 -214
- package/augment-extensions/coding-standards/react/rules/hooks-best-practices.md +235 -235
- package/augment-extensions/coding-standards/react/rules/performance.md +300 -300
- package/augment-extensions/coding-standards/react/rules/state-management.md +265 -265
- package/augment-extensions/coding-standards/react/rules/typescript-react.md +271 -271
- package/augment-extensions/coding-standards/typescript/README.md +45 -45
- package/augment-extensions/coding-standards/typescript/module.json +27 -27
- package/augment-extensions/coding-standards/typescript/rules/naming-conventions.md +225 -225
- package/augment-extensions/collections/html-css-js/README.md +82 -82
- package/augment-extensions/collections/html-css-js/collection.json +41 -41
- package/augment-extensions/domain-rules/api-design/README.md +41 -41
- package/augment-extensions/domain-rules/api-design/module.json +27 -27
- package/augment-extensions/domain-rules/api-design/rules/authentication.md +263 -263
- package/augment-extensions/domain-rules/api-design/rules/documentation.md +395 -395
- package/augment-extensions/domain-rules/api-design/rules/error-handling.md +290 -290
- package/augment-extensions/domain-rules/api-design/rules/graphql-api.md +313 -313
- package/augment-extensions/domain-rules/api-design/rules/rest-api.md +214 -214
- package/augment-extensions/domain-rules/api-design/rules/versioning.md +268 -268
- package/augment-extensions/domain-rules/database/README.md +161 -161
- package/augment-extensions/domain-rules/database/examples/flat-database-example.md +793 -793
- package/augment-extensions/domain-rules/database/examples/hybrid-database-example.md +1132 -1132
- package/augment-extensions/domain-rules/database/examples/nosql-document-example.md +868 -868
- package/augment-extensions/domain-rules/database/examples/nosql-graph-example.md +805 -805
- package/augment-extensions/domain-rules/database/examples/relational-schema-example.md +621 -621
- package/augment-extensions/domain-rules/database/examples/vector-database-example.md +965 -965
- package/augment-extensions/domain-rules/database/module.json +28 -28
- package/augment-extensions/domain-rules/database/rules/flat-databases.md +624 -624
- package/augment-extensions/domain-rules/database/rules/nosql-databases.md +588 -588
- package/augment-extensions/domain-rules/database/rules/nosql-document-stores.md +856 -856
- package/augment-extensions/domain-rules/database/rules/nosql-graph-databases.md +778 -778
- package/augment-extensions/domain-rules/database/rules/nosql-key-value-stores.md +963 -963
- package/augment-extensions/domain-rules/database/rules/performance-optimization.md +1076 -1076
- package/augment-extensions/domain-rules/database/rules/relational-databases.md +697 -697
- package/augment-extensions/domain-rules/database/rules/relational-indexing.md +671 -671
- package/augment-extensions/domain-rules/database/rules/relational-query-optimization.md +607 -607
- package/augment-extensions/domain-rules/database/rules/relational-schema-design.md +907 -907
- package/augment-extensions/domain-rules/database/rules/relational-transactions.md +783 -783
- package/augment-extensions/domain-rules/database/rules/security-standards.md +980 -980
- package/augment-extensions/domain-rules/database/rules/universal-best-practices.md +485 -485
- package/augment-extensions/domain-rules/database/rules/vector-databases.md +521 -521
- package/augment-extensions/domain-rules/database/rules/vector-embeddings.md +858 -858
- package/augment-extensions/domain-rules/database/rules/vector-indexing.md +934 -934
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/dracula/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/dracula/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/README.md +27 -27
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/monokai/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/monokai/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/nord/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/nord/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/one-dark/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/one-dark/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/one-light/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/one-light/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/module.json +26 -26
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/README.md +23 -23
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/module.json +26 -26
- package/augment-extensions/domain-rules/mcp/README.md +150 -150
- package/augment-extensions/domain-rules/mcp/examples/compressed-example.md +522 -522
- package/augment-extensions/domain-rules/mcp/examples/graph-augmented-example.md +520 -520
- package/augment-extensions/domain-rules/mcp/examples/hybrid-example.md +570 -570
- package/augment-extensions/domain-rules/mcp/examples/state-based-example.md +427 -427
- package/augment-extensions/domain-rules/mcp/examples/token-based-example.md +435 -435
- package/augment-extensions/domain-rules/mcp/examples/vector-based-example.md +502 -502
- package/augment-extensions/domain-rules/mcp/module.json +49 -49
- package/augment-extensions/domain-rules/mcp/rules/compressed-mcp.md +595 -595
- package/augment-extensions/domain-rules/mcp/rules/configuration.md +345 -345
- package/augment-extensions/domain-rules/mcp/rules/graph-augmented-mcp.md +687 -687
- package/augment-extensions/domain-rules/mcp/rules/hybrid-mcp.md +636 -636
- package/augment-extensions/domain-rules/mcp/rules/state-based-mcp.md +484 -484
- package/augment-extensions/domain-rules/mcp/rules/testing-validation.md +360 -360
- package/augment-extensions/domain-rules/mcp/rules/token-based-mcp.md +393 -393
- package/augment-extensions/domain-rules/mcp/rules/universal-rules.md +194 -194
- package/augment-extensions/domain-rules/mcp/rules/vector-based-mcp.md +625 -625
- package/augment-extensions/domain-rules/security/README.md +41 -41
- package/augment-extensions/domain-rules/security/module.json +28 -28
- package/augment-extensions/domain-rules/security/rules/authentication-security.md +361 -361
- package/augment-extensions/domain-rules/security/rules/encryption.md +208 -208
- package/augment-extensions/domain-rules/security/rules/input-validation.md +294 -294
- package/augment-extensions/domain-rules/security/rules/owasp-top-10.md +339 -339
- package/augment-extensions/domain-rules/security/rules/secure-coding.md +293 -293
- package/augment-extensions/domain-rules/security/rules/web-security.md +268 -268
- package/augment-extensions/domain-rules/seo-sales-marketing/ANNOUNCEMENT.md +143 -0
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/README.md +140 -136
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/SCHEMA-VALIDATION-REPORT.md +216 -216
- package/augment-extensions/domain-rules/seo-sales-marketing/TEST-VALIDATION.md +129 -0
- package/augment-extensions/domain-rules/seo-sales-marketing/USAGE-GUIDES.md +254 -0
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/brand-kit-example.yaml +292 -292
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/campaign-brief-example.yaml +389 -389
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/content-calendar-example.yaml +643 -643
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/email-newsletter-example.md +376 -376
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/landing-page-example.md +934 -934
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/ppc-ad-copy-example.md +301 -301
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/seo-blog-post-example.md +347 -347
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/examples/social-media-campaign-example.md +606 -606
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/module.json +50 -50
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/affiliate-influencer-marketing.md +593 -593
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/asset-management.md +418 -418
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/brand-consistency.md +210 -210
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/content-marketing.md +337 -337
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/conversion-optimization.md +455 -455
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/direct-sales.md +499 -499
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/email-marketing.md +439 -439
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/legal-compliance.md +227 -227
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/ppc-advertising.md +569 -569
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/seo-optimization.md +470 -470
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/social-media-marketing.md +414 -414
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/rules/universal-marketing.md +177 -177
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/schemas/asset-inventory.schema.json +247 -247
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/schemas/brand-kit.schema.json +326 -326
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/schemas/campaign-brief.schema.json +342 -342
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/schemas/color-palette.schema.json +223 -223
- package/augment-extensions/domain-rules/{marketing-standards/seo-sales-marketing → seo-sales-marketing}/schemas/content-template.schema.json +383 -383
- package/augment-extensions/domain-rules/wordpress/README.md +163 -163
- package/augment-extensions/domain-rules/wordpress/module.json +32 -32
- package/augment-extensions/domain-rules/wordpress/rules/coding-standards.md +617 -617
- package/augment-extensions/domain-rules/wordpress/rules/directory-structure.md +270 -270
- package/augment-extensions/domain-rules/wordpress/rules/file-patterns.md +423 -423
- package/augment-extensions/domain-rules/wordpress/rules/gutenberg-blocks.md +493 -493
- package/augment-extensions/domain-rules/wordpress/rules/performance.md +568 -568
- package/augment-extensions/domain-rules/wordpress/rules/plugin-development.md +510 -510
- package/augment-extensions/domain-rules/wordpress/rules/project-detection.md +251 -251
- package/augment-extensions/domain-rules/wordpress/rules/rest-api.md +501 -501
- package/augment-extensions/domain-rules/wordpress/rules/security.md +564 -564
- package/augment-extensions/domain-rules/wordpress/rules/theme-development.md +388 -388
- package/augment-extensions/domain-rules/wordpress/rules/woocommerce.md +441 -441
- package/augment-extensions/domain-rules/wordpress-plugin/README.md +139 -139
- package/augment-extensions/domain-rules/wordpress-plugin/examples/ajax-plugin.md +1599 -1599
- package/augment-extensions/domain-rules/wordpress-plugin/examples/custom-post-type-plugin.md +1727 -1727
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block-plugin.md +428 -428
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block.md +422 -422
- package/augment-extensions/domain-rules/wordpress-plugin/examples/mvc-plugin.md +1623 -1623
- package/augment-extensions/domain-rules/wordpress-plugin/examples/object-oriented-plugin.md +1343 -1343
- package/augment-extensions/domain-rules/wordpress-plugin/examples/rest-endpoint.md +734 -734
- package/augment-extensions/domain-rules/wordpress-plugin/examples/settings-page-plugin.md +1350 -1350
- package/augment-extensions/domain-rules/wordpress-plugin/examples/simple-procedural-plugin.md +503 -503
- package/augment-extensions/domain-rules/wordpress-plugin/examples/singleton-plugin.md +971 -971
- package/augment-extensions/domain-rules/wordpress-plugin/module.json +53 -53
- package/augment-extensions/domain-rules/wordpress-plugin/rules/activation-hooks.md +770 -770
- package/augment-extensions/domain-rules/wordpress-plugin/rules/admin-interface.md +874 -874
- package/augment-extensions/domain-rules/wordpress-plugin/rules/ajax-handlers.md +629 -629
- package/augment-extensions/domain-rules/wordpress-plugin/rules/asset-management.md +559 -559
- package/augment-extensions/domain-rules/wordpress-plugin/rules/context-providers.md +709 -709
- package/augment-extensions/domain-rules/wordpress-plugin/rules/cron-jobs.md +736 -736
- package/augment-extensions/domain-rules/wordpress-plugin/rules/database-management.md +1057 -1057
- package/augment-extensions/domain-rules/wordpress-plugin/rules/documentation-standards.md +463 -463
- package/augment-extensions/domain-rules/wordpress-plugin/rules/frontend-functionality.md +478 -478
- package/augment-extensions/domain-rules/wordpress-plugin/rules/gutenberg-blocks.md +818 -818
- package/augment-extensions/domain-rules/wordpress-plugin/rules/internationalization.md +416 -416
- package/augment-extensions/domain-rules/wordpress-plugin/rules/migration.md +667 -667
- package/augment-extensions/domain-rules/wordpress-plugin/rules/performance-optimization.md +878 -878
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-architecture.md +693 -693
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-structure.md +352 -352
- package/augment-extensions/domain-rules/wordpress-plugin/rules/rest-api.md +818 -818
- package/augment-extensions/domain-rules/wordpress-plugin/rules/scaffolding-workflow.md +624 -624
- package/augment-extensions/domain-rules/wordpress-plugin/rules/security-best-practices.md +866 -866
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing-patterns.md +1165 -1165
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing.md +414 -414
- package/augment-extensions/domain-rules/wordpress-plugin/rules/vscode-integration.md +751 -751
- package/augment-extensions/domain-rules/wordpress-plugin/rules/woocommerce-integration.md +949 -949
- package/augment-extensions/domain-rules/wordpress-plugin/rules/wordpress-org-submission.md +458 -458
- package/augment-extensions/examples/design-patterns/README.md +37 -37
- package/augment-extensions/examples/design-patterns/examples/behavioral-patterns.md +370 -370
- package/augment-extensions/examples/design-patterns/examples/creational-patterns.md +250 -250
- package/augment-extensions/examples/design-patterns/examples/structural-patterns.md +264 -264
- package/augment-extensions/examples/design-patterns/module.json +27 -27
- package/augment-extensions/examples/gutenberg-block-plugin/README.md +101 -101
- package/augment-extensions/examples/gutenberg-block-plugin/examples/testimonial-block.md +428 -428
- package/augment-extensions/examples/gutenberg-block-plugin/module.json +40 -40
- package/augment-extensions/examples/rest-api-plugin/README.md +98 -98
- package/augment-extensions/examples/rest-api-plugin/examples/task-manager-api.md +1299 -1299
- package/augment-extensions/examples/rest-api-plugin/module.json +40 -40
- package/augment-extensions/examples/woocommerce-extension/README.md +98 -98
- package/augment-extensions/examples/woocommerce-extension/examples/product-customizer.md +763 -763
- package/augment-extensions/examples/woocommerce-extension/module.json +40 -40
- package/augment-extensions/workflows/beads/README.md +135 -135
- package/augment-extensions/workflows/beads/examples/complete-workflow-example.md +278 -278
- package/augment-extensions/workflows/beads/module.json +55 -55
- package/augment-extensions/workflows/beads/rules/best-practices.md +398 -398
- package/augment-extensions/workflows/beads/rules/file-format.md +327 -327
- package/augment-extensions/workflows/beads/rules/manual-setup.md +315 -315
- package/augment-extensions/workflows/beads/rules/workflow.md +326 -326
- package/augment-extensions/workflows/beads-integration/IMPLEMENTATION-STATUS.md +145 -145
- package/augment-extensions/workflows/beads-integration/README.md +143 -143
- package/augment-extensions/workflows/beads-integration/config/defaults.json +32 -32
- package/augment-extensions/workflows/beads-integration/config/schema.json +140 -140
- package/augment-extensions/workflows/beads-integration/examples/basic-task-generation.md +293 -293
- package/augment-extensions/workflows/beads-integration/module.json +75 -75
- package/augment-extensions/workflows/beads-integration/rules/core-rules.md +219 -219
- package/augment-extensions/workflows/beads-integration/rules/effectiveness-standards.md +256 -256
- package/augment-extensions/workflows/beads-integration/rules/task-generation.md +607 -607
- package/augment-extensions/workflows/database/README.md +195 -195
- package/augment-extensions/workflows/database/ai-prompt-testing.md +295 -295
- package/augment-extensions/workflows/database/examples/migration-example.md +498 -498
- package/augment-extensions/workflows/database/examples/optimization-example.md +496 -496
- package/augment-extensions/workflows/database/examples/schema-design-example.md +444 -444
- package/augment-extensions/workflows/database/module.json +42 -42
- package/augment-extensions/workflows/database/rules/data-migration.md +249 -249
- package/augment-extensions/workflows/database/rules/documentation-standards.md +339 -339
- package/augment-extensions/workflows/database/rules/migration-workflow.md +352 -352
- package/augment-extensions/workflows/database/rules/optimization-workflow.md +435 -435
- package/augment-extensions/workflows/database/rules/schema-design-workflow.md +535 -535
- package/augment-extensions/workflows/database/rules/testing-patterns.md +305 -305
- package/augment-extensions/workflows/database/rules/workflow.md +458 -458
- package/augment-extensions/workflows/wordpress-plugin/README.md +232 -232
- package/augment-extensions/workflows/wordpress-plugin/ai-prompts.md +839 -839
- package/augment-extensions/workflows/wordpress-plugin/bead-decomposition-patterns.md +854 -854
- package/augment-extensions/workflows/wordpress-plugin/examples/complete-plugin-example.md +540 -540
- package/augment-extensions/workflows/wordpress-plugin/examples/custom-post-type-example.md +1083 -1083
- package/augment-extensions/workflows/wordpress-plugin/examples/feature-addition-workflow.md +669 -669
- package/augment-extensions/workflows/wordpress-plugin/examples/plugin-creation-workflow.md +597 -597
- package/augment-extensions/workflows/wordpress-plugin/examples/secure-form-handler-example.md +925 -925
- package/augment-extensions/workflows/wordpress-plugin/examples/security-audit-workflow.md +752 -752
- package/augment-extensions/workflows/wordpress-plugin/examples/wordpress-org-submission-workflow.md +773 -773
- package/augment-extensions/workflows/wordpress-plugin/module.json +49 -49
- package/augment-extensions/workflows/wordpress-plugin/rules/best-practices.md +942 -942
- package/augment-extensions/workflows/wordpress-plugin/rules/development-workflow.md +702 -702
- package/augment-extensions/workflows/wordpress-plugin/rules/submission-workflow.md +728 -728
- package/augment-extensions/workflows/wordpress-plugin/rules/testing-workflow.md +775 -775
- package/augment-extensions/writing-standards/screenplay/README.md +339 -300
- package/augment-extensions/writing-standards/screenplay/_templates/README.md +121 -121
- package/augment-extensions/writing-standards/screenplay/_templates/genre-template.md +153 -153
- package/augment-extensions/writing-standards/screenplay/_templates/style-template.md +243 -243
- package/augment-extensions/writing-standards/screenplay/_templates/theme-template.md +213 -213
- package/augment-extensions/writing-standards/screenplay/examples/aaa-hollywood-scene.fountain +164 -164
- package/augment-extensions/writing-standards/screenplay/examples/beat-sheet-example.yaml +95 -95
- package/augment-extensions/writing-standards/screenplay/examples/character-profile-example.yaml +116 -116
- package/augment-extensions/writing-standards/screenplay/examples/commercial-30sec.fountain +151 -151
- package/augment-extensions/writing-standards/screenplay/examples/independent-monologue.fountain +67 -67
- package/augment-extensions/writing-standards/screenplay/examples/news-segment.fountain +142 -142
- package/augment-extensions/writing-standards/screenplay/examples/plot-outline-example.yaml +184 -184
- package/augment-extensions/writing-standards/screenplay/examples/tv-episode-teaser.fountain +204 -204
- package/augment-extensions/writing-standards/screenplay/genres/README.md +181 -181
- package/augment-extensions/writing-standards/screenplay/genres/examples/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/genres/module.json +70 -70
- package/augment-extensions/writing-standards/screenplay/genres/rules/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/genres/rules/action.md +399 -399
- package/augment-extensions/writing-standards/screenplay/genres/rules/adventure.md +407 -407
- package/augment-extensions/writing-standards/screenplay/genres/rules/animation.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/biographical.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/comedy.md +401 -401
- package/augment-extensions/writing-standards/screenplay/genres/rules/documentary.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/drama.md +409 -409
- package/augment-extensions/writing-standards/screenplay/genres/rules/fantasy.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/historical.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/horror.md +268 -268
- package/augment-extensions/writing-standards/screenplay/genres/rules/musical.md +294 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/mystery.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/noir.md +294 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/romance.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/sci-fi.md +289 -289
- package/augment-extensions/writing-standards/screenplay/genres/rules/superhero.md +293 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/thriller.md +294 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/western.md +293 -293
- package/augment-extensions/writing-standards/screenplay/module.json +124 -124
- package/augment-extensions/writing-standards/screenplay/rules/aaa-hollywood-films.md +339 -339
- package/augment-extensions/writing-standards/screenplay/rules/ai-integration-testing.md +329 -329
- package/augment-extensions/writing-standards/screenplay/rules/character-development.md +169 -169
- package/augment-extensions/writing-standards/screenplay/rules/commercials.md +437 -437
- package/augment-extensions/writing-standards/screenplay/rules/dialogue-writing.md +263 -263
- package/augment-extensions/writing-standards/screenplay/rules/diversity-inclusion.md +261 -261
- package/augment-extensions/writing-standards/screenplay/rules/examples-guide.md +315 -315
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -0
- package/augment-extensions/writing-standards/screenplay/rules/formatting-validation.md +413 -413
- package/augment-extensions/writing-standards/screenplay/rules/fountain-format.md +372 -372
- package/augment-extensions/writing-standards/screenplay/rules/independent-films.md +374 -374
- package/augment-extensions/writing-standards/screenplay/rules/live-tv-productions.md +443 -443
- package/augment-extensions/writing-standards/screenplay/rules/narrative-structures.md +207 -207
- package/augment-extensions/writing-standards/screenplay/rules/news-broadcasts.md +444 -444
- package/augment-extensions/writing-standards/screenplay/rules/pacing-timing.md +331 -331
- package/augment-extensions/writing-standards/screenplay/rules/quality-review-checklist.md +334 -334
- package/augment-extensions/writing-standards/screenplay/rules/quick-reference.md +299 -299
- package/augment-extensions/writing-standards/screenplay/rules/screen-continuity.md +263 -263
- package/augment-extensions/writing-standards/screenplay/rules/streaming-content.md +412 -412
- package/augment-extensions/writing-standards/screenplay/rules/trope-management.md +370 -370
- package/augment-extensions/writing-standards/screenplay/rules/tv-series.md +374 -374
- package/augment-extensions/writing-standards/screenplay/rules/universal-formatting.md +339 -339
- package/augment-extensions/writing-standards/screenplay/rules/vscode-integration.md +277 -277
- package/augment-extensions/writing-standards/screenplay/rules/web-content.md +393 -393
- package/augment-extensions/writing-standards/screenplay/schemas/beat-sheet.json +332 -332
- package/augment-extensions/writing-standards/screenplay/schemas/character-profile.json +247 -247
- package/augment-extensions/writing-standards/screenplay/schemas/feature-selection.json +200 -200
- package/augment-extensions/writing-standards/screenplay/schemas/plot-outline.json +233 -233
- package/augment-extensions/writing-standards/screenplay/schemas/screenplay-config.json +245 -245
- package/augment-extensions/writing-standards/screenplay/schemas/trope-inventory.json +221 -221
- package/augment-extensions/writing-standards/screenplay/styles/README.md +159 -159
- package/augment-extensions/writing-standards/screenplay/styles/examples/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/styles/examples/style-applications.md +1449 -1449
- package/augment-extensions/writing-standards/screenplay/styles/module.json +64 -64
- package/augment-extensions/writing-standards/screenplay/styles/rules/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/styles/rules/dialogue-centric.md +520 -520
- package/augment-extensions/writing-standards/screenplay/styles/rules/ensemble.md +499 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/epic.md +497 -497
- package/augment-extensions/writing-standards/screenplay/styles/rules/experimental.md +492 -492
- package/augment-extensions/writing-standards/screenplay/styles/rules/flashback.md +509 -509
- package/augment-extensions/writing-standards/screenplay/styles/rules/linear.md +490 -490
- package/augment-extensions/writing-standards/screenplay/styles/rules/minimalist.md +499 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/non-linear.md +501 -501
- package/augment-extensions/writing-standards/screenplay/styles/rules/poetic.md +499 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/realistic.md +498 -498
- package/augment-extensions/writing-standards/screenplay/styles/rules/satirical.md +499 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/surreal.md +508 -508
- package/augment-extensions/writing-standards/screenplay/styles/rules/voice-over.md +500 -500
- package/augment-extensions/writing-standards/screenplay/themes/README.md +158 -158
- package/augment-extensions/writing-standards/screenplay/themes/examples/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/themes/examples/common-mistakes-and-fixes.md +643 -643
- package/augment-extensions/writing-standards/screenplay/themes/examples/complete-scene-example.md +311 -311
- package/augment-extensions/writing-standards/screenplay/themes/examples/individual-theme-examples.md +562 -562
- package/augment-extensions/writing-standards/screenplay/themes/examples/multi-theme-weaving.md +538 -538
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-application-guide.md +432 -432
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-integration-across-acts.md +637 -637
- package/augment-extensions/writing-standards/screenplay/themes/module.json +66 -66
- package/augment-extensions/writing-standards/screenplay/themes/rules/.gitkeep +2 -2
- package/augment-extensions/writing-standards/screenplay/themes/rules/ambition.md +458 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/betrayal.md +490 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/environment.md +458 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/fate.md +459 -459
- package/augment-extensions/writing-standards/screenplay/themes/rules/friendship.md +491 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/growth.md +491 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/identity.md +490 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/isolation.md +464 -464
- package/augment-extensions/writing-standards/screenplay/themes/rules/justice.md +461 -461
- package/augment-extensions/writing-standards/screenplay/themes/rules/love.md +489 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/power.md +494 -494
- package/augment-extensions/writing-standards/screenplay/themes/rules/redemption.md +483 -483
- package/augment-extensions/writing-standards/screenplay/themes/rules/revenge.md +489 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/survival.md +496 -496
- package/augment-extensions/writing-standards/screenplay/themes/rules/technology.md +463 -463
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -0
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -0
- package/cli/MODULES.md +302 -302
- package/cli/dist/cli.js +109 -22
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +54 -6
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +76 -23
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/self-remove.d.ts.map +1 -1
- package/cli/dist/commands/self-remove.js +48 -74
- package/cli/dist/commands/self-remove.js.map +1 -1
- package/cli/dist/commands/show.d.ts +11 -0
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +120 -0
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/showCompleted.d.ts +21 -0
- package/cli/dist/commands/showCompleted.d.ts.map +1 -0
- package/cli/dist/commands/showCompleted.js +225 -0
- package/cli/dist/commands/showCompleted.js.map +1 -0
- package/cli/dist/commands/skill.js +88 -88
- package/cli/dist/commands/update.d.ts +2 -0
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +67 -1
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/utils/beadsCompletedChecker.d.ts +72 -0
- package/cli/dist/utils/beadsCompletedChecker.d.ts.map +1 -0
- package/cli/dist/utils/beadsCompletedChecker.js +198 -0
- package/cli/dist/utils/beadsCompletedChecker.js.map +1 -0
- package/cli/dist/utils/catalog-sync.js +13 -13
- package/cli/dist/utils/extractCommandHelp.d.ts +51 -0
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -0
- package/cli/dist/utils/extractCommandHelp.js +250 -0
- package/cli/dist/utils/extractCommandHelp.js.map +1 -0
- package/cli/dist/utils/install-rules.js +55 -55
- package/cli/dist/utils/mcp-integration.js +44 -44
- package/cli/dist/utils/rule-install-hooks.js +8 -8
- package/modules.md +667 -630
- package/package.json +85 -85
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.showCompletedCommand = showCompletedCommand;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const beadsCompletedChecker_1 = require("../utils/beadsCompletedChecker");
|
|
9
|
+
/**
|
|
10
|
+
* Format task status with color-coded indicators
|
|
11
|
+
*/
|
|
12
|
+
function formatStatus(status) {
|
|
13
|
+
switch (status.toLowerCase()) {
|
|
14
|
+
case 'closed':
|
|
15
|
+
return chalk_1.default.green('✓ closed');
|
|
16
|
+
case 'in-progress':
|
|
17
|
+
return chalk_1.default.yellow('⚙ in-progress');
|
|
18
|
+
case 'open':
|
|
19
|
+
return chalk_1.default.blue('○ open');
|
|
20
|
+
case 'blocked':
|
|
21
|
+
return chalk_1.default.red('✖ blocked');
|
|
22
|
+
default:
|
|
23
|
+
return chalk_1.default.gray(`• ${status}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Format task in bd-style output
|
|
28
|
+
*/
|
|
29
|
+
function formatTaskBdStyle(task, verbose = false) {
|
|
30
|
+
const lines = [];
|
|
31
|
+
// Header line with ID and title
|
|
32
|
+
lines.push(chalk_1.default.bold.cyan(`${task.id}`) + chalk_1.default.gray(' ') + chalk_1.default.white(task.title));
|
|
33
|
+
// Status and priority
|
|
34
|
+
const statusLine = [
|
|
35
|
+
formatStatus(task.status),
|
|
36
|
+
task.priority !== undefined ? chalk_1.default.gray(`P${task.priority}`) : null,
|
|
37
|
+
task.issue_type ? chalk_1.default.gray(`[${task.issue_type}]`) : null
|
|
38
|
+
].filter(Boolean).join(' ');
|
|
39
|
+
lines.push(' ' + statusLine);
|
|
40
|
+
// Description (if present)
|
|
41
|
+
if (task.description) {
|
|
42
|
+
if (verbose) {
|
|
43
|
+
lines.push(' ' + chalk_1.default.gray(task.description));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
lines.push(' ' + chalk_1.default.gray(task.description.substring(0, 100) + (task.description.length > 100 ? '...' : '')));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// Dates
|
|
50
|
+
if (task.closed_at) {
|
|
51
|
+
lines.push(' ' + chalk_1.default.gray(`Closed: ${new Date(task.closed_at).toLocaleString()}`));
|
|
52
|
+
}
|
|
53
|
+
// Verbose: show created_at and updated_at
|
|
54
|
+
if (verbose) {
|
|
55
|
+
if (task.created_at) {
|
|
56
|
+
lines.push(' ' + chalk_1.default.gray(`Created: ${new Date(task.created_at).toLocaleString()}`));
|
|
57
|
+
}
|
|
58
|
+
if (task.updated_at) {
|
|
59
|
+
lines.push(' ' + chalk_1.default.gray(`Updated: ${new Date(task.updated_at).toLocaleString()}`));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Close reason
|
|
63
|
+
if (task.close_reason) {
|
|
64
|
+
if (verbose) {
|
|
65
|
+
lines.push(' ' + chalk_1.default.green(`Reason: ${task.close_reason}`));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
lines.push(' ' + chalk_1.default.green(`Reason: ${task.close_reason.substring(0, 80)}${task.close_reason.length > 80 ? '...' : ''}`));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Labels
|
|
72
|
+
if (task.labels && task.labels.length > 0) {
|
|
73
|
+
lines.push(' ' + chalk_1.default.magenta(`Labels: ${task.labels.join(', ')}`));
|
|
74
|
+
}
|
|
75
|
+
// Verbose: show owner and created_by
|
|
76
|
+
if (verbose) {
|
|
77
|
+
if (task.owner) {
|
|
78
|
+
lines.push(' ' + chalk_1.default.gray(`Owner: ${task.owner}`));
|
|
79
|
+
}
|
|
80
|
+
if (task.created_by) {
|
|
81
|
+
lines.push(' ' + chalk_1.default.gray(`Created by: ${task.created_by}`));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Verbose: show dependencies
|
|
85
|
+
if (verbose && task.dependencies && task.dependencies.length > 0) {
|
|
86
|
+
lines.push(' ' + chalk_1.default.gray(`Dependencies: ${task.dependencies.length}`));
|
|
87
|
+
task.dependencies.forEach(dep => {
|
|
88
|
+
lines.push(' ' + chalk_1.default.gray(`- ${dep.type}: ${dep.depends_on_id}`));
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
// Verbose: show comments
|
|
92
|
+
if (verbose && task.comments && task.comments.length > 0) {
|
|
93
|
+
lines.push(' ' + chalk_1.default.gray(`Comments: ${task.comments.length}`));
|
|
94
|
+
task.comments.forEach((comment, idx) => {
|
|
95
|
+
lines.push(' ' + chalk_1.default.gray(`[${idx + 1}] ${comment.author || 'Unknown'}: ${(comment.text || comment.body || '').substring(0, 60)}...`));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return lines.join('\n');
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Show completed command handler
|
|
102
|
+
*/
|
|
103
|
+
function showCompletedCommand(options) {
|
|
104
|
+
const completedPath = 'scripts/completed.jsonl';
|
|
105
|
+
const beadsDir = '.beads';
|
|
106
|
+
const fs = require('fs');
|
|
107
|
+
// Check if Beads is initialized
|
|
108
|
+
if (!fs.existsSync(beadsDir)) {
|
|
109
|
+
console.log(chalk_1.default.yellow('⚠ Beads is not initialized in this project.'));
|
|
110
|
+
console.log(chalk_1.default.gray('\nTo use Beads task tracking:'));
|
|
111
|
+
console.log(chalk_1.default.cyan(' 1. Install Beads CLI:'));
|
|
112
|
+
console.log(chalk_1.default.gray(' npm install -g @beads/bd'));
|
|
113
|
+
console.log(chalk_1.default.gray(' # or: brew install steveyegge/beads/bd'));
|
|
114
|
+
console.log(chalk_1.default.cyan(' 2. Initialize Beads:'));
|
|
115
|
+
console.log(chalk_1.default.gray(' bd init'));
|
|
116
|
+
console.log(chalk_1.default.gray('\nAlternatively, you can work with Beads files manually.'));
|
|
117
|
+
console.log(chalk_1.default.gray('See: augx show workflows/beads for more information.'));
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
// Check if completed.jsonl exists
|
|
121
|
+
if (!fs.existsSync(completedPath)) {
|
|
122
|
+
console.log(chalk_1.default.yellow('No completed tasks file found.'));
|
|
123
|
+
console.log(chalk_1.default.gray('\nThe completed tasks file will be created automatically when you:'));
|
|
124
|
+
console.log(chalk_1.default.cyan(' • Run: augx init'));
|
|
125
|
+
console.log(chalk_1.default.cyan(' • Close your first task with: bd close <task-id>'));
|
|
126
|
+
console.log(chalk_1.default.gray('\nCompleted tasks are stored in: scripts/completed.jsonl'));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
// Get all completed tasks
|
|
130
|
+
let tasks = (0, beadsCompletedChecker_1.getAllCompletedTasks)(completedPath);
|
|
131
|
+
if (tasks.length === 0) {
|
|
132
|
+
console.log(chalk_1.default.yellow('No completed tasks found.'));
|
|
133
|
+
console.log(chalk_1.default.gray('\nCompleted tasks are stored in: scripts/completed.jsonl'));
|
|
134
|
+
console.log(chalk_1.default.gray('Close tasks using: bd close <task-id>'));
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
// Filter by date range if specified
|
|
138
|
+
if (options.since || options.until) {
|
|
139
|
+
tasks = (0, beadsCompletedChecker_1.filterTasksByDateRange)(tasks, options.since, options.until);
|
|
140
|
+
if (tasks.length === 0) {
|
|
141
|
+
console.log(chalk_1.default.yellow('No completed tasks found in the specified date range.'));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Filter by search term if specified
|
|
146
|
+
if (options.search) {
|
|
147
|
+
tasks = (0, beadsCompletedChecker_1.filterTasksBySearch)(tasks, options.search);
|
|
148
|
+
if (tasks.length === 0) {
|
|
149
|
+
console.log(chalk_1.default.yellow(`No completed tasks found matching "${options.search}".`));
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Filter by labels if specified
|
|
154
|
+
if (options.labels) {
|
|
155
|
+
const labelArray = options.labels.split(',').map(l => l.trim());
|
|
156
|
+
tasks = (0, beadsCompletedChecker_1.filterTasksByLabels)(tasks, labelArray);
|
|
157
|
+
if (tasks.length === 0) {
|
|
158
|
+
console.log(chalk_1.default.yellow(`No completed tasks found with labels: ${options.labels}`));
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Filter by type if specified
|
|
163
|
+
if (options.type) {
|
|
164
|
+
tasks = tasks.filter(task => task.issue_type === options.type);
|
|
165
|
+
if (tasks.length === 0) {
|
|
166
|
+
console.log(chalk_1.default.yellow(`No completed tasks found with type: ${options.type}`));
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// Filter by priority if specified
|
|
171
|
+
if (options.priority !== undefined) {
|
|
172
|
+
tasks = tasks.filter(task => task.priority === options.priority);
|
|
173
|
+
if (tasks.length === 0) {
|
|
174
|
+
console.log(chalk_1.default.yellow(`No completed tasks found with priority: ${options.priority}`));
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// Filter by assignee if specified
|
|
179
|
+
if (options.assignee) {
|
|
180
|
+
tasks = tasks.filter(task => task.owner === options.assignee);
|
|
181
|
+
if (tasks.length === 0) {
|
|
182
|
+
console.log(chalk_1.default.yellow(`No completed tasks found assigned to: ${options.assignee}`));
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// Sort tasks if specified
|
|
187
|
+
if (options.sort) {
|
|
188
|
+
tasks = (0, beadsCompletedChecker_1.sortTasks)(tasks, options.sort, options.order || 'desc');
|
|
189
|
+
}
|
|
190
|
+
// Apply limit if specified
|
|
191
|
+
if (options.limit && options.limit > 0) {
|
|
192
|
+
tasks = tasks.slice(0, options.limit);
|
|
193
|
+
}
|
|
194
|
+
// JSON output
|
|
195
|
+
if (options.json) {
|
|
196
|
+
console.log(JSON.stringify(tasks, null, 2));
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
// Quiet mode: only output task IDs
|
|
200
|
+
if (options.quiet) {
|
|
201
|
+
tasks.forEach(task => console.log(task.id));
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
// BD-style formatted output
|
|
205
|
+
console.log(chalk_1.default.bold.white(`\nCompleted Tasks (${tasks.length})`));
|
|
206
|
+
console.log(chalk_1.default.gray('─'.repeat(60)));
|
|
207
|
+
console.log();
|
|
208
|
+
for (const task of tasks) {
|
|
209
|
+
console.log(formatTaskBdStyle(task, options.verbose));
|
|
210
|
+
console.log();
|
|
211
|
+
}
|
|
212
|
+
// Footer
|
|
213
|
+
console.log(chalk_1.default.gray('─'.repeat(60)));
|
|
214
|
+
console.log(chalk_1.default.gray(`Total: ${tasks.length} completed task${tasks.length !== 1 ? 's' : ''}`));
|
|
215
|
+
if (options.since || options.until) {
|
|
216
|
+
const rangeInfo = [];
|
|
217
|
+
if (options.since)
|
|
218
|
+
rangeInfo.push(`since ${options.since}`);
|
|
219
|
+
if (options.until)
|
|
220
|
+
rangeInfo.push(`until ${options.until}`);
|
|
221
|
+
console.log(chalk_1.default.gray(`Filtered: ${rangeInfo.join(' ')}`));
|
|
222
|
+
}
|
|
223
|
+
console.log();
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=showCompleted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showCompleted.js","sourceRoot":"","sources":["../../src/commands/showCompleted.ts"],"names":[],"mappings":";;;;;AAmIA,oDAgJC;AAnRD,kDAA0B;AAC1B,0EAOwC;AAkBxC;;GAEG;AACH,SAAS,YAAY,CAAC,MAAc;IAClC,QAAQ,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;QAC7B,KAAK,QAAQ;YACX,OAAO,eAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACjC,KAAK,aAAa;YAChB,OAAO,eAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QACvC,KAAK,MAAM;YACT,OAAO,eAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,eAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAChC;YACE,OAAO,eAAK,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;IACrC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,IAAmB,EAAE,UAAmB,KAAK;IACtE,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,gCAAgC;IAChC,KAAK,CAAC,IAAI,CAAC,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,eAAK,CAAC,KAAK,CAAC,IAAI,CAAC,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;YAAE,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QAC5D,IAAI,OAAO,CAAC,KAAK;YAAE,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,aAAa,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,CAAC,GAAG,EAAE,CAAC;AAChB,CAAC"}
|
|
@@ -406,94 +406,94 @@ async function skillCreateMcpCommand(options) {
|
|
|
406
406
|
// Generate skill content
|
|
407
407
|
const mcpTags = ['mcp', ...tags];
|
|
408
408
|
const cliCommand = `augx-${skillId}`;
|
|
409
|
-
const skillContent = `---
|
|
410
|
-
id: ${skillId}
|
|
411
|
-
name: ${name}
|
|
412
|
-
version: 1.0.0
|
|
413
|
-
category: ${category}
|
|
414
|
-
tokenBudget: ${tokenBudget}
|
|
415
|
-
priority: medium
|
|
416
|
-
tags: [${mcpTags.join(', ')}]
|
|
417
|
-
dependencies: []
|
|
418
|
-
cliCommand: ${cliCommand}
|
|
419
|
-
${options.package ? `mcpServer: ${options.package}` : ''}
|
|
420
|
-
---
|
|
421
|
-
|
|
422
|
-
# ${name}
|
|
423
|
-
|
|
424
|
-
## Purpose
|
|
425
|
-
|
|
426
|
-
${description}
|
|
427
|
-
|
|
428
|
-
## Installation
|
|
429
|
-
|
|
430
|
-
\`\`\`bash
|
|
431
|
-
# Install MCP server
|
|
432
|
-
${options.package ? `npm install -g ${options.package}` : '# Add installation command here'}
|
|
433
|
-
\`\`\`
|
|
434
|
-
|
|
435
|
-
## Configuration
|
|
436
|
-
|
|
437
|
-
Add configuration steps here (authentication, API keys, etc.)
|
|
438
|
-
|
|
439
|
-
## Available Tools
|
|
440
|
-
|
|
441
|
-
List the tools provided by this MCP server:
|
|
442
|
-
|
|
443
|
-
1. **Tool 1** - Description
|
|
444
|
-
2. **Tool 2** - Description
|
|
445
|
-
3. **Tool 3** - Description
|
|
446
|
-
|
|
447
|
-
## CLI Command
|
|
448
|
-
|
|
449
|
-
\`\`\`bash
|
|
450
|
-
${cliCommand} [options]
|
|
451
|
-
\`\`\`
|
|
452
|
-
|
|
453
|
-
### Options
|
|
454
|
-
|
|
455
|
-
- \`--option1\` - Description
|
|
456
|
-
- \`--option2\` - Description
|
|
457
|
-
|
|
458
|
-
## Examples
|
|
459
|
-
|
|
460
|
-
### Example 1: Basic Usage
|
|
461
|
-
|
|
462
|
-
\`\`\`bash
|
|
463
|
-
${cliCommand} --option1 value
|
|
464
|
-
\`\`\`
|
|
465
|
-
|
|
466
|
-
### Example 2: Advanced Usage
|
|
467
|
-
|
|
468
|
-
\`\`\`bash
|
|
469
|
-
${cliCommand} --option1 value --option2 value
|
|
470
|
-
\`\`\`
|
|
471
|
-
|
|
472
|
-
## Performance
|
|
473
|
-
|
|
474
|
-
- **Query Time**: ~X seconds
|
|
475
|
-
- **Token Usage**: ~X tokens
|
|
476
|
-
- **Rate Limits**: X requests/minute
|
|
477
|
-
|
|
478
|
-
## Best Practices
|
|
479
|
-
|
|
480
|
-
1. Best practice 1
|
|
481
|
-
2. Best practice 2
|
|
482
|
-
3. Best practice 3
|
|
483
|
-
|
|
484
|
-
## Troubleshooting
|
|
485
|
-
|
|
486
|
-
### Issue 1
|
|
487
|
-
|
|
488
|
-
**Problem**: Description of problem
|
|
489
|
-
|
|
490
|
-
**Solution**: Description of solution
|
|
491
|
-
|
|
492
|
-
### Issue 2
|
|
493
|
-
|
|
494
|
-
**Problem**: Description of problem
|
|
495
|
-
|
|
496
|
-
**Solution**: Description of solution
|
|
409
|
+
const skillContent = `---
|
|
410
|
+
id: ${skillId}
|
|
411
|
+
name: ${name}
|
|
412
|
+
version: 1.0.0
|
|
413
|
+
category: ${category}
|
|
414
|
+
tokenBudget: ${tokenBudget}
|
|
415
|
+
priority: medium
|
|
416
|
+
tags: [${mcpTags.join(', ')}]
|
|
417
|
+
dependencies: []
|
|
418
|
+
cliCommand: ${cliCommand}
|
|
419
|
+
${options.package ? `mcpServer: ${options.package}` : ''}
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
# ${name}
|
|
423
|
+
|
|
424
|
+
## Purpose
|
|
425
|
+
|
|
426
|
+
${description}
|
|
427
|
+
|
|
428
|
+
## Installation
|
|
429
|
+
|
|
430
|
+
\`\`\`bash
|
|
431
|
+
# Install MCP server
|
|
432
|
+
${options.package ? `npm install -g ${options.package}` : '# Add installation command here'}
|
|
433
|
+
\`\`\`
|
|
434
|
+
|
|
435
|
+
## Configuration
|
|
436
|
+
|
|
437
|
+
Add configuration steps here (authentication, API keys, etc.)
|
|
438
|
+
|
|
439
|
+
## Available Tools
|
|
440
|
+
|
|
441
|
+
List the tools provided by this MCP server:
|
|
442
|
+
|
|
443
|
+
1. **Tool 1** - Description
|
|
444
|
+
2. **Tool 2** - Description
|
|
445
|
+
3. **Tool 3** - Description
|
|
446
|
+
|
|
447
|
+
## CLI Command
|
|
448
|
+
|
|
449
|
+
\`\`\`bash
|
|
450
|
+
${cliCommand} [options]
|
|
451
|
+
\`\`\`
|
|
452
|
+
|
|
453
|
+
### Options
|
|
454
|
+
|
|
455
|
+
- \`--option1\` - Description
|
|
456
|
+
- \`--option2\` - Description
|
|
457
|
+
|
|
458
|
+
## Examples
|
|
459
|
+
|
|
460
|
+
### Example 1: Basic Usage
|
|
461
|
+
|
|
462
|
+
\`\`\`bash
|
|
463
|
+
${cliCommand} --option1 value
|
|
464
|
+
\`\`\`
|
|
465
|
+
|
|
466
|
+
### Example 2: Advanced Usage
|
|
467
|
+
|
|
468
|
+
\`\`\`bash
|
|
469
|
+
${cliCommand} --option1 value --option2 value
|
|
470
|
+
\`\`\`
|
|
471
|
+
|
|
472
|
+
## Performance
|
|
473
|
+
|
|
474
|
+
- **Query Time**: ~X seconds
|
|
475
|
+
- **Token Usage**: ~X tokens
|
|
476
|
+
- **Rate Limits**: X requests/minute
|
|
477
|
+
|
|
478
|
+
## Best Practices
|
|
479
|
+
|
|
480
|
+
1. Best practice 1
|
|
481
|
+
2. Best practice 2
|
|
482
|
+
3. Best practice 3
|
|
483
|
+
|
|
484
|
+
## Troubleshooting
|
|
485
|
+
|
|
486
|
+
### Issue 1
|
|
487
|
+
|
|
488
|
+
**Problem**: Description of problem
|
|
489
|
+
|
|
490
|
+
**Solution**: Description of solution
|
|
491
|
+
|
|
492
|
+
### Issue 2
|
|
493
|
+
|
|
494
|
+
**Problem**: Description of problem
|
|
495
|
+
|
|
496
|
+
**Solution**: Description of solution
|
|
497
497
|
`;
|
|
498
498
|
// Write skill file
|
|
499
499
|
fs.writeFileSync(skillPath, skillContent, 'utf-8');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAMA,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AASD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAoEzE"}
|
|
@@ -40,8 +40,18 @@ exports.updateCommand = updateCommand;
|
|
|
40
40
|
const chalk_1 = __importDefault(require("chalk"));
|
|
41
41
|
const fs = __importStar(require("fs"));
|
|
42
42
|
const path = __importStar(require("path"));
|
|
43
|
+
const child_process_1 = require("child_process");
|
|
44
|
+
const semver = __importStar(require("semver"));
|
|
43
45
|
async function updateCommand(options) {
|
|
44
46
|
try {
|
|
47
|
+
// If --cli flag is set, update the CLI itself
|
|
48
|
+
if (options.cli || options.all) {
|
|
49
|
+
await updateCLI();
|
|
50
|
+
if (options.cli && !options.all) {
|
|
51
|
+
return; // Only update CLI, not modules
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Update modules
|
|
45
55
|
console.log(chalk_1.default.blue('\n🔄 Updating modules...\n'));
|
|
46
56
|
// Load extensions config
|
|
47
57
|
const configPath = path.join(process.cwd(), '.augment', 'extensions.json');
|
|
@@ -87,7 +97,63 @@ async function updateCommand(options) {
|
|
|
87
97
|
console.log();
|
|
88
98
|
}
|
|
89
99
|
catch (error) {
|
|
90
|
-
console.error(chalk_1.default.red('Error updating
|
|
100
|
+
console.error(chalk_1.default.red('Error updating:'), error);
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function updateCLI() {
|
|
105
|
+
try {
|
|
106
|
+
console.log(chalk_1.default.blue('\n🔄 Updating CLI...\n'));
|
|
107
|
+
// Get current version from package.json
|
|
108
|
+
const packageJsonPath = path.join(__dirname, '../../../package.json');
|
|
109
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
110
|
+
const currentVersion = packageJson.version;
|
|
111
|
+
console.log(chalk_1.default.gray(`Current version: ${currentVersion}`));
|
|
112
|
+
// Check npm registry for latest version
|
|
113
|
+
console.log(chalk_1.default.gray('Checking npm registry for latest version...'));
|
|
114
|
+
let latestVersion;
|
|
115
|
+
try {
|
|
116
|
+
const npmViewOutput = (0, child_process_1.execSync)('npm view @mytechtoday/augment-extensions version', {
|
|
117
|
+
encoding: 'utf-8',
|
|
118
|
+
stdio: ['pipe', 'pipe', 'pipe']
|
|
119
|
+
}).trim();
|
|
120
|
+
latestVersion = npmViewOutput;
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
console.error(chalk_1.default.red('✗ Failed to check npm registry'));
|
|
124
|
+
console.error(chalk_1.default.gray('Make sure you have internet connection and npm is configured correctly'));
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
console.log(chalk_1.default.gray(`Latest version: ${latestVersion}`));
|
|
128
|
+
// Compare versions
|
|
129
|
+
if (semver.eq(currentVersion, latestVersion)) {
|
|
130
|
+
console.log(chalk_1.default.green(`\n✓ CLI is already up to date (v${currentVersion})\n`));
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (semver.gt(currentVersion, latestVersion)) {
|
|
134
|
+
console.log(chalk_1.default.yellow(`\n⚠ Current version (${currentVersion}) is newer than npm registry (${latestVersion})\n`));
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
// Update available
|
|
138
|
+
console.log(chalk_1.default.cyan(`\n📦 Update available: ${currentVersion} → ${latestVersion}\n`));
|
|
139
|
+
console.log(chalk_1.default.gray('Installing update...'));
|
|
140
|
+
try {
|
|
141
|
+
(0, child_process_1.execSync)('npm install -g @mytechtoday/augment-extensions@latest', {
|
|
142
|
+
encoding: 'utf-8',
|
|
143
|
+
stdio: 'inherit'
|
|
144
|
+
});
|
|
145
|
+
console.log(chalk_1.default.bold.green(`\n✨ CLI updated successfully to v${latestVersion}!\n`));
|
|
146
|
+
console.log(chalk_1.default.gray('You may need to restart your terminal for changes to take effect.\n'));
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
console.error(chalk_1.default.red('\n✗ Failed to update CLI'));
|
|
150
|
+
console.error(chalk_1.default.gray('You may need to run with elevated permissions (sudo/administrator)'));
|
|
151
|
+
console.error(chalk_1.default.gray('Or try: npm install -g @mytechtoday/augment-extensions@latest'));
|
|
152
|
+
throw error;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
catch (error) {
|
|
156
|
+
console.error(chalk_1.default.red('Error updating CLI:'), error);
|
|
91
157
|
process.exit(1);
|
|
92
158
|
}
|
|
93
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot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;AAED,SAAS,eAAe,CAAC,EAAU,EAAE,EAAU;IAC7C,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAChE,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAE7B,IAAI,KAAK,GAAG,KAAK;YAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,KAAK,GAAG,KAAK;YAAE,OAAO,CAAC,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface BeadsTask {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
status: string;
|
|
6
|
+
priority?: number;
|
|
7
|
+
issue_type?: string;
|
|
8
|
+
owner?: string;
|
|
9
|
+
created_at?: string;
|
|
10
|
+
created_by?: string;
|
|
11
|
+
updated_at?: string;
|
|
12
|
+
closed_at?: string;
|
|
13
|
+
close_reason?: string;
|
|
14
|
+
labels?: string[];
|
|
15
|
+
dependencies?: Array<{
|
|
16
|
+
issue_id: string;
|
|
17
|
+
depends_on_id: string;
|
|
18
|
+
type: string;
|
|
19
|
+
created_at?: string;
|
|
20
|
+
created_by?: string;
|
|
21
|
+
}>;
|
|
22
|
+
comments?: Array<{
|
|
23
|
+
id?: number;
|
|
24
|
+
issue_id?: string;
|
|
25
|
+
author?: string;
|
|
26
|
+
text?: string;
|
|
27
|
+
body?: string;
|
|
28
|
+
created_at?: string;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Interface for completed tasks
|
|
33
|
+
* Extends BeadsTask with required fields for completed tasks
|
|
34
|
+
*/
|
|
35
|
+
export interface CompletedTask extends BeadsTask {
|
|
36
|
+
status: 'closed';
|
|
37
|
+
closed_at: string;
|
|
38
|
+
close_reason?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a task exists in completed.jsonl
|
|
42
|
+
*/
|
|
43
|
+
export declare function isTaskCompleted(taskId: string, completedPath?: string): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Get a completed task by ID from completed.jsonl
|
|
46
|
+
*/
|
|
47
|
+
export declare function getCompletedTask(taskId: string, completedPath?: string): CompletedTask | null;
|
|
48
|
+
/**
|
|
49
|
+
* Get all completed tasks from completed.jsonl
|
|
50
|
+
*/
|
|
51
|
+
export declare function getAllCompletedTasks(completedPath?: string): CompletedTask[];
|
|
52
|
+
/**
|
|
53
|
+
* Filter completed tasks by date range
|
|
54
|
+
*/
|
|
55
|
+
export declare function filterTasksByDateRange(tasks: CompletedTask[], since?: string, until?: string): CompletedTask[];
|
|
56
|
+
/**
|
|
57
|
+
* Validate ISO 8601 timestamp
|
|
58
|
+
*/
|
|
59
|
+
export declare function validateISO8601(timestamp: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Filter completed tasks by search term (searches title, description, close_reason)
|
|
62
|
+
*/
|
|
63
|
+
export declare function filterTasksBySearch(tasks: CompletedTask[], searchTerm: string): CompletedTask[];
|
|
64
|
+
/**
|
|
65
|
+
* Filter completed tasks by labels
|
|
66
|
+
*/
|
|
67
|
+
export declare function filterTasksByLabels(tasks: CompletedTask[], labels: string[]): CompletedTask[];
|
|
68
|
+
/**
|
|
69
|
+
* Sort completed tasks
|
|
70
|
+
*/
|
|
71
|
+
export declare function sortTasks(tasks: CompletedTask[], sortBy?: 'date' | 'title' | 'priority', order?: 'asc' | 'desc'): CompletedTask[];
|
|
72
|
+
//# sourceMappingURL=beadsCompletedChecker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beadsCompletedChecker.d.ts","sourceRoot":"","sources":["../../src/utils/beadsCompletedChecker.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;CACJ;AAED;;;GAGG;AACH,MAA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