myaidev-method 0.2.8 → 0.2.10

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.
Files changed (158) hide show
  1. package/.claude/agents/wordpress-admin.md +271 -0
  2. package/.env.example +0 -1
  3. package/PACKAGE_FIXES_SUMMARY.md +319 -0
  4. package/PAYLOADCMS_AUTH_UPDATE.md +248 -0
  5. package/USER_GUIDE.md +260 -0
  6. package/bin/cli.js +70 -0
  7. package/dist/server/.tsbuildinfo +1 -0
  8. package/dist/server/auth/controllers/AuthController.d.ts +34 -0
  9. package/dist/server/auth/controllers/AuthController.d.ts.map +1 -0
  10. package/dist/server/auth/controllers/AuthController.js +43 -0
  11. package/dist/server/auth/controllers/AuthController.js.map +1 -0
  12. package/dist/server/auth/example-usage.d.ts +53 -0
  13. package/dist/server/auth/example-usage.d.ts.map +1 -0
  14. package/dist/server/auth/example-usage.js +129 -0
  15. package/dist/server/auth/example-usage.js.map +1 -0
  16. package/dist/server/auth/index.d.ts +11 -0
  17. package/dist/server/auth/index.d.ts.map +1 -0
  18. package/dist/server/auth/index.js +15 -0
  19. package/dist/server/auth/index.js.map +1 -0
  20. package/dist/server/auth/layers.d.ts +19 -0
  21. package/dist/server/auth/layers.d.ts.map +1 -0
  22. package/dist/server/auth/layers.js +33 -0
  23. package/dist/server/auth/layers.js.map +1 -0
  24. package/dist/server/auth/middleware/authMiddleware.d.ts +24 -0
  25. package/dist/server/auth/middleware/authMiddleware.d.ts.map +1 -0
  26. package/dist/server/auth/middleware/authMiddleware.js +65 -0
  27. package/dist/server/auth/middleware/authMiddleware.js.map +1 -0
  28. package/dist/server/auth/routes/authRoutes.d.ts +11 -0
  29. package/dist/server/auth/routes/authRoutes.d.ts.map +1 -0
  30. package/dist/server/auth/routes/authRoutes.js +213 -0
  31. package/dist/server/auth/routes/authRoutes.js.map +1 -0
  32. package/dist/server/auth/services/AuditLogService.d.ts +21 -0
  33. package/dist/server/auth/services/AuditLogService.d.ts.map +1 -0
  34. package/dist/server/auth/services/AuditLogService.js +28 -0
  35. package/dist/server/auth/services/AuditLogService.js.map +1 -0
  36. package/dist/server/auth/services/AuthService.d.ts +27 -0
  37. package/dist/server/auth/services/AuthService.d.ts.map +1 -0
  38. package/dist/server/auth/services/AuthService.js +246 -0
  39. package/dist/server/auth/services/AuthService.js.map +1 -0
  40. package/dist/server/auth/services/PasswordService.d.ts +12 -0
  41. package/dist/server/auth/services/PasswordService.d.ts.map +1 -0
  42. package/dist/server/auth/services/PasswordService.js +31 -0
  43. package/dist/server/auth/services/PasswordService.js.map +1 -0
  44. package/dist/server/auth/services/SessionRepository.d.ts +24 -0
  45. package/dist/server/auth/services/SessionRepository.d.ts.map +1 -0
  46. package/dist/server/auth/services/SessionRepository.js +101 -0
  47. package/dist/server/auth/services/SessionRepository.js.map +1 -0
  48. package/dist/server/auth/services/TokenService.d.ts +12 -0
  49. package/dist/server/auth/services/TokenService.d.ts.map +1 -0
  50. package/dist/server/auth/services/TokenService.js +86 -0
  51. package/dist/server/auth/services/TokenService.js.map +1 -0
  52. package/dist/server/auth/services/UserRepository.d.ts +23 -0
  53. package/dist/server/auth/services/UserRepository.d.ts.map +1 -0
  54. package/dist/server/auth/services/UserRepository.js +168 -0
  55. package/dist/server/auth/services/UserRepository.js.map +1 -0
  56. package/dist/server/auth/services/example.d.ts +26 -0
  57. package/dist/server/auth/services/example.d.ts.map +1 -0
  58. package/dist/server/auth/services/example.js +221 -0
  59. package/dist/server/auth/services/example.js.map +1 -0
  60. package/dist/server/auth/services/index.d.ts +6 -0
  61. package/dist/server/auth/services/index.d.ts.map +1 -0
  62. package/dist/server/auth/services/index.js +7 -0
  63. package/dist/server/auth/services/index.js.map +1 -0
  64. package/dist/server/database/db.d.ts +28 -0
  65. package/dist/server/database/db.d.ts.map +1 -0
  66. package/dist/server/database/db.js +91 -0
  67. package/dist/server/database/db.js.map +1 -0
  68. package/dist/server/database/schema.sql +95 -0
  69. package/dist/server/hono/app.d.ts +10 -0
  70. package/dist/server/hono/app.d.ts.map +1 -0
  71. package/dist/server/hono/app.js +26 -0
  72. package/dist/server/hono/app.js.map +1 -0
  73. package/dist/server/hono/routes.d.ts +12 -0
  74. package/dist/server/hono/routes.d.ts.map +1 -0
  75. package/dist/server/hono/routes.js +40 -0
  76. package/dist/server/hono/routes.js.map +1 -0
  77. package/dist/server/main.d.ts +2 -0
  78. package/dist/server/main.d.ts.map +1 -0
  79. package/dist/server/main.js +94 -0
  80. package/dist/server/main.js.map +1 -0
  81. package/dist/server/user-management/DirectoryService.d.ts +62 -0
  82. package/dist/server/user-management/DirectoryService.d.ts.map +1 -0
  83. package/dist/server/user-management/DirectoryService.js +201 -0
  84. package/dist/server/user-management/DirectoryService.js.map +1 -0
  85. package/dist/server/user-management/LinuxUserService.d.ts +71 -0
  86. package/dist/server/user-management/LinuxUserService.d.ts.map +1 -0
  87. package/dist/server/user-management/LinuxUserService.js +192 -0
  88. package/dist/server/user-management/LinuxUserService.js.map +1 -0
  89. package/dist/server/user-management/QuotaService.d.ts +59 -0
  90. package/dist/server/user-management/QuotaService.d.ts.map +1 -0
  91. package/dist/server/user-management/QuotaService.js +148 -0
  92. package/dist/server/user-management/QuotaService.js.map +1 -0
  93. package/dist/server/user-management/UserManagementService.d.ts +74 -0
  94. package/dist/server/user-management/UserManagementService.d.ts.map +1 -0
  95. package/dist/server/user-management/UserManagementService.js +122 -0
  96. package/dist/server/user-management/UserManagementService.js.map +1 -0
  97. package/dist/server/user-management/index.d.ts +26 -0
  98. package/dist/server/user-management/index.d.ts.map +1 -0
  99. package/dist/server/user-management/index.js +26 -0
  100. package/dist/server/user-management/index.js.map +1 -0
  101. package/dist/server/user-management/layers.d.ts +27 -0
  102. package/dist/server/user-management/layers.d.ts.map +1 -0
  103. package/dist/server/user-management/layers.js +37 -0
  104. package/dist/server/user-management/layers.js.map +1 -0
  105. package/dist/shared/types.d.ts +94 -0
  106. package/dist/shared/types.d.ts.map +1 -0
  107. package/dist/shared/types.js +32 -0
  108. package/dist/shared/types.js.map +1 -0
  109. package/package.json +25 -5
  110. package/src/lib/payloadcms-utils.js +5 -12
  111. package/src/server/auth/ARCHITECTURE.md +575 -0
  112. package/src/server/auth/IMPLEMENTATION_SUMMARY.md +287 -0
  113. package/src/server/auth/QUICK_START.md +283 -0
  114. package/src/server/auth/README.md +290 -0
  115. package/src/server/auth/controllers/AuthController.ts +129 -0
  116. package/src/server/auth/example-usage.ts +159 -0
  117. package/src/server/auth/index.ts +19 -0
  118. package/src/server/auth/layers.ts +57 -0
  119. package/src/server/auth/middleware/authMiddleware.ts +118 -0
  120. package/src/server/auth/routes/authRoutes.ts +319 -0
  121. package/src/server/auth/services/AuditLogService.ts +81 -0
  122. package/src/server/auth/services/AuthService.ts +408 -0
  123. package/src/server/auth/services/IMPLEMENTATION_SUMMARY.md +404 -0
  124. package/src/server/auth/services/PasswordService.ts +85 -0
  125. package/src/server/auth/services/README.md +361 -0
  126. package/src/server/auth/services/SessionRepository.ts +227 -0
  127. package/src/server/auth/services/TokenService.ts +174 -0
  128. package/src/server/auth/services/UserRepository.ts +318 -0
  129. package/src/server/auth/services/example.ts +346 -0
  130. package/src/server/auth/services/index.ts +6 -0
  131. package/src/server/database/db.ts +161 -0
  132. package/src/server/database/schema.sql +95 -0
  133. package/src/server/hono/app.ts +41 -0
  134. package/src/server/main.ts +115 -0
  135. package/src/server/user-management/DirectoryService.ts +348 -0
  136. package/src/server/user-management/LinuxUserService.ts +338 -0
  137. package/src/server/user-management/QuotaService.ts +256 -0
  138. package/src/server/user-management/README.md +333 -0
  139. package/src/server/user-management/UserManagementService.ts +335 -0
  140. package/src/server/user-management/index.ts +26 -0
  141. package/src/server/user-management/layers.ts +51 -0
  142. package/src/shared/types.ts +111 -0
  143. package/src/templates/claude/agents/coolify-deploy.md +50 -50
  144. package/src/templates/claude/agents/payloadcms-publish.md +46 -18
  145. package/src/templates/codex/commands/myai-astro-publish.md +8 -2
  146. package/src/templates/codex/commands/myai-content-writer.md +8 -2
  147. package/src/templates/codex/commands/myai-coolify-deploy.md +8 -2
  148. package/src/templates/codex/commands/myai-dev-architect.md +8 -2
  149. package/src/templates/codex/commands/myai-dev-code.md +8 -2
  150. package/src/templates/codex/commands/myai-dev-docs.md +8 -2
  151. package/src/templates/codex/commands/myai-dev-review.md +8 -2
  152. package/src/templates/codex/commands/myai-dev-test.md +8 -2
  153. package/src/templates/codex/commands/myai-docusaurus-publish.md +8 -2
  154. package/src/templates/codex/commands/myai-mintlify-publish.md +8 -2
  155. package/src/templates/codex/commands/myai-payloadcms-publish.md +17 -3
  156. package/src/templates/codex/commands/myai-sparc-workflow.md +8 -2
  157. package/src/templates/codex/commands/myai-wordpress-admin.md +8 -2
  158. package/src/templates/codex/commands/myai-wordpress-publish.md +8 -2
@@ -1,8 +1,14 @@
1
1
  # Code Quality Review
2
2
 
3
- Perform comprehensive code review using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Reviewer" to perform comprehensive code review based on the provided scope.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--security, --performance, --output-dir).
6
+
7
+ The agent will handle code quality analysis, security vulnerability assessment, performance review, and best practices validation using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Reviewer agent to analyze code quality, security vulnerabilities, performance issues, and best practices compliance.
9
+ ## Overview
10
+
11
+ Perform comprehensive code review using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Comprehensive Testing
2
2
 
3
- Write and execute comprehensive tests using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="MyAIDev Tester" to create comprehensive tests based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--coverage, --integration, --framework, --output-dir).
6
+
7
+ The agent will handle test suite creation, unit and integration test generation, coverage analysis, and quality gate validation using MyAIDev Method's SPARC workflow.
4
8
 
5
- Invoke the MyAIDev Tester agent to create unit tests, integration tests, and validate code quality with coverage analysis.
9
+ ## Overview
10
+
11
+ Write and execute comprehensive tests using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## What It Does
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Docusaurus Content Publisher
2
2
 
3
- Publish markdown content to Docusaurus static site generator with automatic git workflow: $ARGUMENTS
3
+ Use the Task tool with subagent_type="Docusaurus Publishing Agent" to publish the markdown file provided in the arguments to Docusaurus.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--type, --project, --branch, --no-push, --dry-run).
6
+
7
+ The agent will handle content transformation, file placement, and git workflow automation for Docusaurus static site generator.
4
8
 
5
- Invoke the Docusaurus publishing agent to transform content and deploy via git.
9
+ ## Overview
10
+
11
+ Publish markdown content to Docusaurus static site generator with automatic git workflow: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -1,8 +1,14 @@
1
1
  # Mintlify Documentation Publisher
2
2
 
3
- Publish markdown/MDX content to Mintlify documentation site with automatic navigation updates: $ARGUMENTS
3
+ Use the Task tool with subagent_type="mintlify-publish" to publish the markdown/MDX file provided in the arguments to Mintlify.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--nav-section, --project, --branch, --no-push, --dry-run).
6
+
7
+ The agent will handle content transformation, mint.json navigation updates, and git workflow automation for Mintlify documentation sites.
4
8
 
5
- Invoke the Mintlify publishing agent to transform content, update mint.json, and deploy via git.
9
+ ## Overview
10
+
11
+ Publish markdown/MDX content to Mintlify documentation site with automatic navigation updates: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -1,8 +1,14 @@
1
1
  # PayloadCMS Content Publisher
2
2
 
3
- Publish markdown content to PayloadCMS headless CMS: $ARGUMENTS
3
+ Use the Task tool with subagent_type="PayloadCMS Publisher" to publish the markdown file provided in the arguments to PayloadCMS.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--status, --collection, --id, --dry-run, --verbose).
6
+
7
+ The agent will handle authentication, markdown conversion to Lexical format, and publishing to your PayloadCMS instance.
4
8
 
5
- Invoke the PayloadCMS publishing agent to convert markdown to Lexical format and publish to your PayloadCMS instance.
9
+ ## Overview
10
+
11
+ Publish markdown content to PayloadCMS headless CMS: $ARGUMENTS
6
12
 
7
13
  ## Usage Examples
8
14
 
@@ -22,7 +28,15 @@ Invoke the PayloadCMS publishing agent to convert markdown to Lexical format and
22
28
 
23
29
  ## Prerequisites
24
30
 
25
- Configure PayloadCMS credentials: `/myai-configure`
31
+ Configure PayloadCMS credentials in your `.env` file:
32
+
33
+ ```bash
34
+ PAYLOADCMS_URL=https://your-payloadcms-site.com
35
+ PAYLOADCMS_EMAIL=your-email@example.com
36
+ PAYLOADCMS_PASSWORD=your-password
37
+ ```
38
+
39
+ The agent will authenticate using these credentials to obtain a JWT token for API access.
26
40
 
27
41
  ## Examples
28
42
 
@@ -1,8 +1,14 @@
1
1
  # SPARC Development Workflow
2
2
 
3
- Execute the complete 5-phase SPARC development workflow using MyAIDev Method's systematic approach: $ARGUMENTS
3
+ Use the Task tool with subagent_type="SPARC Workflow Orchestrator" to execute the complete 5-phase development workflow based on the provided requirements.
4
+
5
+ Pass all command arguments to the agent, including the task description and any flags (--phases, --tech-stack, --output-dir, --test-framework, --skip-phase).
6
+
7
+ The agent will orchestrate all development phases in sequence: Architecture → Implementation → Testing → Review → Documentation using MyAIDev Method's systematic SPARC approach.
4
8
 
5
- Orchestrates all development agents in sequence: Architecture → Implementation → Testing → Review → Documentation
9
+ ## Overview
10
+
11
+ Execute the complete 5-phase SPARC development workflow using MyAIDev Method's systematic approach: $ARGUMENTS
6
12
 
7
13
  ## SPARC Workflow Phases
8
14
 
@@ -1,8 +1,14 @@
1
1
  # WordPress Site Administrator
2
2
 
3
- Execute WordPress administration operations: $ARGUMENTS
3
+ Use the Task tool with subagent_type="wordpress-admin" to execute WordPress administration operations provided in the arguments.
4
+
5
+ Pass all command arguments to the agent, including the operation type (security-scan, health-check, speed-test, plugin-manage, etc.) and any configuration flags.
6
+
7
+ The agent will handle comprehensive site management, security analysis, performance optimization, and administrative tasks via WordPress REST API and optional SSH access.
4
8
 
5
- Launch the WordPress administrator agent for comprehensive site management, security analysis, and performance optimization.
9
+ ## Overview
10
+
11
+ Execute WordPress administration operations: $ARGUMENTS
6
12
 
7
13
  ## Available Operations
8
14
 
@@ -1,8 +1,14 @@
1
1
  # WordPress Content Publisher
2
2
 
3
- Publish the specified markdown file to WordPress: $ARGUMENTS
3
+ Use the Task tool with subagent_type="wordpress-admin" to publish the markdown file provided in the arguments to WordPress.
4
+
5
+ Pass all command arguments to the agent, including the file path and any flags (--status, --gutenberg, --classic).
6
+
7
+ The agent will handle reading the file, parsing frontmatter, converting content format, and publishing using the WordPress REST API.
4
8
 
5
- Read and publish the file to WordPress using native tools and the WordPress REST API.
9
+ ## Overview
10
+
11
+ Publish the specified markdown file to WordPress: $ARGUMENTS
6
12
 
7
13
  ## Process
8
14