monty-autonomous-fullstack-dev-multillm 1.0.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.
Files changed (186) hide show
  1. package/LICENSE +81 -0
  2. package/README.md +608 -0
  3. package/bin/cli.js +448 -0
  4. package/dist/agents/coding.d.ts +15 -0
  5. package/dist/agents/coding.d.ts.map +1 -0
  6. package/dist/agents/coding.js +189 -0
  7. package/dist/agents/coding.js.map +1 -0
  8. package/dist/agents/initializer.d.ts +15 -0
  9. package/dist/agents/initializer.d.ts.map +1 -0
  10. package/dist/agents/initializer.js +87 -0
  11. package/dist/agents/initializer.js.map +1 -0
  12. package/dist/agents/prompts/arbitrator.md +143 -0
  13. package/dist/agents/prompts/coding.md +247 -0
  14. package/dist/agents/prompts/initializer.md +98 -0
  15. package/dist/config/agent-config.d.ts +103 -0
  16. package/dist/config/agent-config.d.ts.map +1 -0
  17. package/dist/config/agent-config.js +138 -0
  18. package/dist/config/agent-config.js.map +1 -0
  19. package/dist/config/auth-config.d.ts +152 -0
  20. package/dist/config/auth-config.d.ts.map +1 -0
  21. package/dist/config/auth-config.js +139 -0
  22. package/dist/config/auth-config.js.map +1 -0
  23. package/dist/config/mcp-config.d.ts +109 -0
  24. package/dist/config/mcp-config.d.ts.map +1 -0
  25. package/dist/config/mcp-config.js +234 -0
  26. package/dist/config/mcp-config.js.map +1 -0
  27. package/dist/config/provider-config.d.ts +139 -0
  28. package/dist/config/provider-config.d.ts.map +1 -0
  29. package/dist/config/provider-config.js +344 -0
  30. package/dist/config/provider-config.js.map +1 -0
  31. package/dist/config/subagents-config.d.ts +85 -0
  32. package/dist/config/subagents-config.d.ts.map +1 -0
  33. package/dist/config/subagents-config.js +430 -0
  34. package/dist/config/subagents-config.js.map +1 -0
  35. package/dist/index.d.ts +14 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +385 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/orchestrator/arbitrator.d.ts +93 -0
  40. package/dist/orchestrator/arbitrator.d.ts.map +1 -0
  41. package/dist/orchestrator/arbitrator.js +330 -0
  42. package/dist/orchestrator/arbitrator.js.map +1 -0
  43. package/dist/orchestrator/index.d.ts +113 -0
  44. package/dist/orchestrator/index.d.ts.map +1 -0
  45. package/dist/orchestrator/index.js +217 -0
  46. package/dist/orchestrator/index.js.map +1 -0
  47. package/dist/orchestrator/review-coordinator.d.ts +143 -0
  48. package/dist/orchestrator/review-coordinator.d.ts.map +1 -0
  49. package/dist/orchestrator/review-coordinator.js +401 -0
  50. package/dist/orchestrator/review-coordinator.js.map +1 -0
  51. package/dist/orchestrator/task-classifier.d.ts +87 -0
  52. package/dist/orchestrator/task-classifier.d.ts.map +1 -0
  53. package/dist/orchestrator/task-classifier.js +250 -0
  54. package/dist/orchestrator/task-classifier.js.map +1 -0
  55. package/dist/providers/anthropic-provider.d.ts +64 -0
  56. package/dist/providers/anthropic-provider.d.ts.map +1 -0
  57. package/dist/providers/anthropic-provider.js +264 -0
  58. package/dist/providers/anthropic-provider.js.map +1 -0
  59. package/dist/providers/base-provider.d.ts +219 -0
  60. package/dist/providers/base-provider.d.ts.map +1 -0
  61. package/dist/providers/base-provider.js +143 -0
  62. package/dist/providers/base-provider.js.map +1 -0
  63. package/dist/providers/cursor-provider.d.ts +82 -0
  64. package/dist/providers/cursor-provider.d.ts.map +1 -0
  65. package/dist/providers/cursor-provider.js +321 -0
  66. package/dist/providers/cursor-provider.js.map +1 -0
  67. package/dist/providers/google-provider.d.ts +75 -0
  68. package/dist/providers/google-provider.d.ts.map +1 -0
  69. package/dist/providers/google-provider.js +274 -0
  70. package/dist/providers/google-provider.js.map +1 -0
  71. package/dist/providers/index.d.ts +92 -0
  72. package/dist/providers/index.d.ts.map +1 -0
  73. package/dist/providers/index.js +233 -0
  74. package/dist/providers/index.js.map +1 -0
  75. package/dist/providers/openai-provider.d.ts +83 -0
  76. package/dist/providers/openai-provider.d.ts.map +1 -0
  77. package/dist/providers/openai-provider.js +295 -0
  78. package/dist/providers/openai-provider.js.map +1 -0
  79. package/dist/templates/feature_list.template.json +66 -0
  80. package/dist/templates/progress.template.txt +51 -0
  81. package/dist/utils/auth-manager.d.ts +121 -0
  82. package/dist/utils/auth-manager.d.ts.map +1 -0
  83. package/dist/utils/auth-manager.js +560 -0
  84. package/dist/utils/auth-manager.js.map +1 -0
  85. package/dist/utils/budget-enforcer.d.ts +181 -0
  86. package/dist/utils/budget-enforcer.d.ts.map +1 -0
  87. package/dist/utils/budget-enforcer.js +386 -0
  88. package/dist/utils/budget-enforcer.js.map +1 -0
  89. package/dist/utils/chatgpt-detector.d.ts +51 -0
  90. package/dist/utils/chatgpt-detector.d.ts.map +1 -0
  91. package/dist/utils/chatgpt-detector.js +274 -0
  92. package/dist/utils/chatgpt-detector.js.map +1 -0
  93. package/dist/utils/claude-code-detector.d.ts +39 -0
  94. package/dist/utils/claude-code-detector.d.ts.map +1 -0
  95. package/dist/utils/claude-code-detector.js +153 -0
  96. package/dist/utils/claude-code-detector.js.map +1 -0
  97. package/dist/utils/code-quality.d.ts +58 -0
  98. package/dist/utils/code-quality.d.ts.map +1 -0
  99. package/dist/utils/code-quality.js +258 -0
  100. package/dist/utils/code-quality.js.map +1 -0
  101. package/dist/utils/context-primer.d.ts +50 -0
  102. package/dist/utils/context-primer.d.ts.map +1 -0
  103. package/dist/utils/context-primer.js +429 -0
  104. package/dist/utils/context-primer.js.map +1 -0
  105. package/dist/utils/dependency-management.d.ts +40 -0
  106. package/dist/utils/dependency-management.d.ts.map +1 -0
  107. package/dist/utils/dependency-management.js +123 -0
  108. package/dist/utils/dependency-management.js.map +1 -0
  109. package/dist/utils/environment-validation.d.ts +33 -0
  110. package/dist/utils/environment-validation.d.ts.map +1 -0
  111. package/dist/utils/environment-validation.js +136 -0
  112. package/dist/utils/environment-validation.js.map +1 -0
  113. package/dist/utils/error-recovery.d.ts +60 -0
  114. package/dist/utils/error-recovery.d.ts.map +1 -0
  115. package/dist/utils/error-recovery.js +183 -0
  116. package/dist/utils/error-recovery.js.map +1 -0
  117. package/dist/utils/feature-list.d.ts +102 -0
  118. package/dist/utils/feature-list.d.ts.map +1 -0
  119. package/dist/utils/feature-list.js +191 -0
  120. package/dist/utils/feature-list.js.map +1 -0
  121. package/dist/utils/gemini-detector.d.ts +65 -0
  122. package/dist/utils/gemini-detector.d.ts.map +1 -0
  123. package/dist/utils/gemini-detector.js +340 -0
  124. package/dist/utils/gemini-detector.js.map +1 -0
  125. package/dist/utils/git-utils.d.ts +48 -0
  126. package/dist/utils/git-utils.d.ts.map +1 -0
  127. package/dist/utils/git-utils.js +110 -0
  128. package/dist/utils/git-utils.js.map +1 -0
  129. package/dist/utils/health-check.d.ts +32 -0
  130. package/dist/utils/health-check.d.ts.map +1 -0
  131. package/dist/utils/health-check.js +152 -0
  132. package/dist/utils/health-check.js.map +1 -0
  133. package/dist/utils/hooks-manager.d.ts +154 -0
  134. package/dist/utils/hooks-manager.d.ts.map +1 -0
  135. package/dist/utils/hooks-manager.js +359 -0
  136. package/dist/utils/hooks-manager.js.map +1 -0
  137. package/dist/utils/multi-auth-manager.d.ts +144 -0
  138. package/dist/utils/multi-auth-manager.d.ts.map +1 -0
  139. package/dist/utils/multi-auth-manager.js +588 -0
  140. package/dist/utils/multi-auth-manager.js.map +1 -0
  141. package/dist/utils/progress.d.ts +49 -0
  142. package/dist/utils/progress.d.ts.map +1 -0
  143. package/dist/utils/progress.js +209 -0
  144. package/dist/utils/progress.js.map +1 -0
  145. package/dist/utils/project-detection.d.ts +40 -0
  146. package/dist/utils/project-detection.d.ts.map +1 -0
  147. package/dist/utils/project-detection.js +230 -0
  148. package/dist/utils/project-detection.js.map +1 -0
  149. package/dist/utils/session-manager.d.ts +119 -0
  150. package/dist/utils/session-manager.d.ts.map +1 -0
  151. package/dist/utils/session-manager.js +389 -0
  152. package/dist/utils/session-manager.js.map +1 -0
  153. package/dist/utils/skills-manager.d.ts +113 -0
  154. package/dist/utils/skills-manager.d.ts.map +1 -0
  155. package/dist/utils/skills-manager.js +332 -0
  156. package/dist/utils/skills-manager.js.map +1 -0
  157. package/dist/utils/structured-output.d.ts +117 -0
  158. package/dist/utils/structured-output.d.ts.map +1 -0
  159. package/dist/utils/structured-output.js +191 -0
  160. package/dist/utils/structured-output.js.map +1 -0
  161. package/dist/utils/subagent-manager.d.ts +143 -0
  162. package/dist/utils/subagent-manager.d.ts.map +1 -0
  163. package/dist/utils/subagent-manager.js +326 -0
  164. package/dist/utils/subagent-manager.js.map +1 -0
  165. package/dist/utils/supabase-setup.d.ts +50 -0
  166. package/dist/utils/supabase-setup.d.ts.map +1 -0
  167. package/dist/utils/supabase-setup.js +151 -0
  168. package/dist/utils/supabase-setup.js.map +1 -0
  169. package/dist/utils/token-refresh.d.ts +21 -0
  170. package/dist/utils/token-refresh.d.ts.map +1 -0
  171. package/dist/utils/token-refresh.js +77 -0
  172. package/dist/utils/token-refresh.js.map +1 -0
  173. package/dist/utils/tos-warning.d.ts +115 -0
  174. package/dist/utils/tos-warning.d.ts.map +1 -0
  175. package/dist/utils/tos-warning.js +304 -0
  176. package/dist/utils/tos-warning.js.map +1 -0
  177. package/dist/utils/usage-monitor.d.ts +156 -0
  178. package/dist/utils/usage-monitor.d.ts.map +1 -0
  179. package/dist/utils/usage-monitor.js +296 -0
  180. package/dist/utils/usage-monitor.js.map +1 -0
  181. package/package.json +105 -0
  182. package/scripts/init.ps1 +73 -0
  183. package/scripts/init.sh +86 -0
  184. package/scripts/test-auth.sh +90 -0
  185. package/templates/feature_list.template.json +66 -0
  186. package/templates/progress.template.txt +51 -0
@@ -0,0 +1,86 @@
1
+ #!/bin/bash
2
+ #
3
+ # Development Environment Initialization Script (Unix/macOS/Linux)
4
+ # This script is called by the agent to set up and start the development server.
5
+ #
6
+ # Usage: ./scripts/init.sh [options]
7
+ # --install Run npm install before starting
8
+ # --build Run build before starting
9
+ # --test Run tests instead of dev server
10
+ #
11
+
12
+ set -e
13
+
14
+ # Colors for output
15
+ RED='\033[0;31m'
16
+ GREEN='\033[0;32m'
17
+ YELLOW='\033[1;33m'
18
+ BLUE='\033[0;34m'
19
+ NC='\033[0m' # No Color
20
+
21
+ echo -e "${BLUE}════════════════════════════════════════════════════════════════${NC}"
22
+ echo -e "${BLUE} Development Environment Initialization ${NC}"
23
+ echo -e "${BLUE}════════════════════════════════════════════════════════════════${NC}"
24
+
25
+ # Parse arguments
26
+ INSTALL=false
27
+ BUILD=false
28
+ TEST=false
29
+
30
+ for arg in "$@"; do
31
+ case $arg in
32
+ --install)
33
+ INSTALL=true
34
+ shift
35
+ ;;
36
+ --build)
37
+ BUILD=true
38
+ shift
39
+ ;;
40
+ --test)
41
+ TEST=true
42
+ shift
43
+ ;;
44
+ esac
45
+ done
46
+
47
+ # Check if we're in the right directory
48
+ if [ ! -f "package.json" ]; then
49
+ echo -e "${RED}Error: package.json not found. Are you in the project root?${NC}"
50
+ exit 1
51
+ fi
52
+
53
+ # Install dependencies if requested or if node_modules doesn't exist
54
+ if [ "$INSTALL" = true ] || [ ! -d "node_modules" ]; then
55
+ echo -e "${YELLOW}Installing dependencies...${NC}"
56
+ npm install
57
+ fi
58
+
59
+ # Run build if requested
60
+ if [ "$BUILD" = true ]; then
61
+ echo -e "${YELLOW}Building project...${NC}"
62
+ npm run build
63
+ fi
64
+
65
+ # Run tests if requested
66
+ if [ "$TEST" = true ]; then
67
+ echo -e "${YELLOW}Running tests...${NC}"
68
+ npm test
69
+ exit $?
70
+ fi
71
+
72
+ # Start development server
73
+ echo -e "${GREEN}Starting development server...${NC}"
74
+ echo -e "${BLUE}────────────────────────────────────────────────────────────────${NC}"
75
+
76
+ # Check for common dev server scripts
77
+ if npm run 2>&1 | grep -q "dev"; then
78
+ npm run dev
79
+ elif npm run 2>&1 | grep -q "start"; then
80
+ npm start
81
+ else
82
+ echo -e "${RED}Error: No 'dev' or 'start' script found in package.json${NC}"
83
+ echo -e "${YELLOW}Available scripts:${NC}"
84
+ npm run
85
+ exit 1
86
+ fi
@@ -0,0 +1,90 @@
1
+ #!/bin/bash
2
+
3
+ # Authentication Test Script
4
+ # Manual testing of authentication flow
5
+ # Run this script to verify authentication works as expected
6
+
7
+ echo "🧪 Authentication Test Suite"
8
+ echo "=============================="
9
+ echo ""
10
+
11
+ # Test 1: Check if monty command is available
12
+ echo "Test 1: Verify monty command is available"
13
+ if ! command -v monty &> /dev/null; then
14
+ echo "✗ monty command not found"
15
+ echo " Please run: npm link (for local development) or npm install -g monty-autonomous-fullstack-dev-multillm"
16
+ exit 1
17
+ fi
18
+ echo "✓ monty command found"
19
+ echo ""
20
+
21
+ # Test 2: Check authentication status
22
+ echo "Test 2: Check current authentication status"
23
+ monty whoami
24
+ echo ""
25
+
26
+ # Test 3: Prompt user to test login flow
27
+ read -p "Would you like to test the login flow? (y/N): " test_login
28
+ if [[ $test_login =~ ^[Yy]$ ]]; then
29
+ echo ""
30
+ echo "Test 3: Testing login flow"
31
+ echo " Please follow the prompts..."
32
+ monty logout
33
+ monty login
34
+
35
+ if [ $? -eq 0 ]; then
36
+ echo "✓ Login successful"
37
+ else
38
+ echo "✗ Login failed"
39
+ exit 1
40
+ fi
41
+ echo ""
42
+ fi
43
+
44
+ # Test 4: Verify authentication after login
45
+ echo "Test 4: Verify authentication status after login"
46
+ monty whoami
47
+ if [ $? -eq 0 ]; then
48
+ echo "✓ Authentication verified"
49
+ else
50
+ echo "✗ Authentication check failed"
51
+ exit 1
52
+ fi
53
+ echo ""
54
+
55
+ # Test 5: Test agent execution with valid credentials
56
+ read -p "Would you like to test agent execution? (y/N): " test_agent
57
+ if [[ $test_agent =~ ^[Yy]$ ]]; then
58
+ echo ""
59
+ echo "Test 5: Testing agent execution"
60
+ echo " Creating temporary test directory..."
61
+
62
+ TEST_DIR=$(mktemp -d)
63
+ cd "$TEST_DIR"
64
+
65
+ echo " Running agent in: $TEST_DIR"
66
+ monty init --spec="Build a simple counter app with React"
67
+
68
+ if [ $? -eq 0 ]; then
69
+ echo "✓ Agent executed successfully"
70
+ else
71
+ echo "✗ Agent execution failed"
72
+ cd -
73
+ rm -rf "$TEST_DIR"
74
+ exit 1
75
+ fi
76
+
77
+ cd -
78
+ rm -rf "$TEST_DIR"
79
+ echo ""
80
+ fi
81
+
82
+ echo "✓ All tests completed!"
83
+ echo ""
84
+ echo "Manual verification checklist:"
85
+ echo " [ ] Credentials stored in ~/.monty/credentials.json"
86
+ echo " [ ] File permissions are secure (0600 on Unix, restricted on Windows)"
87
+ echo " [ ] monty whoami shows correct authentication method"
88
+ echo " [ ] Agent can start and make API calls"
89
+ echo " [ ] Token expiration is displayed correctly"
90
+ echo ""
@@ -0,0 +1,66 @@
1
+ {
2
+ "project": {
3
+ "name": "",
4
+ "description": "",
5
+ "created_at": "",
6
+ "stack": "fullstack-web"
7
+ },
8
+ "features": [
9
+ {
10
+ "id": "feat-001",
11
+ "category": "functional",
12
+ "priority": 1,
13
+ "description": "Example: New chat button creates a fresh conversation",
14
+ "steps": [
15
+ "Navigate to main interface",
16
+ "Click the 'New Chat' button",
17
+ "Verify a new conversation is created",
18
+ "Check that chat area shows welcome state",
19
+ "Verify conversation appears in sidebar"
20
+ ],
21
+ "passes": false,
22
+ "last_tested": null,
23
+ "tested_by": null,
24
+ "notes": ""
25
+ },
26
+ {
27
+ "id": "feat-002",
28
+ "category": "ui",
29
+ "priority": 2,
30
+ "description": "Example: Page is responsive on mobile viewport",
31
+ "steps": [
32
+ "Set viewport to 375x667 (iPhone SE)",
33
+ "Navigate to main page",
34
+ "Verify all elements are visible",
35
+ "Verify no horizontal scroll",
36
+ "Verify touch targets are adequate size"
37
+ ],
38
+ "passes": false,
39
+ "last_tested": null,
40
+ "tested_by": null,
41
+ "notes": ""
42
+ },
43
+ {
44
+ "id": "feat-003",
45
+ "category": "integration",
46
+ "priority": 3,
47
+ "description": "Example: API returns valid response for GET request",
48
+ "steps": [
49
+ "Start the development server",
50
+ "Send GET request to /api/health",
51
+ "Verify response status is 200",
52
+ "Verify response contains expected fields",
53
+ "Verify response time is under 500ms"
54
+ ],
55
+ "passes": false,
56
+ "last_tested": null,
57
+ "tested_by": null,
58
+ "notes": ""
59
+ }
60
+ ],
61
+ "metadata": {
62
+ "total_features": 3,
63
+ "passing_features": 0,
64
+ "last_updated": ""
65
+ }
66
+ }
@@ -0,0 +1,51 @@
1
+ ================================================================================
2
+ PROJECT: [Project Name]
3
+ CREATED: [Date]
4
+ LAST SESSION: [Date/Time]
5
+ ================================================================================
6
+
7
+ ## PROJECT OVERVIEW
8
+ [Brief description of the project and its goals. This section should provide
9
+ enough context for any agent to understand what is being built and why.]
10
+
11
+ ## CURRENT STATE
12
+ - Total Features: X
13
+ - Completed: Y
14
+ - Remaining: Z
15
+ - Last Feature Worked On: [feature-id]
16
+
17
+ ## SESSION LOG
18
+ ### [Date/Time]
19
+ - Agent: [initializer/coding]
20
+ - Actions taken:
21
+ * [Action 1]
22
+ * [Action 2]
23
+ * [Action 3]
24
+ - Features completed: [feat-001, feat-002]
25
+ - Issues encountered: [list any problems]
26
+ - Next steps:
27
+ * [Recommended action 1]
28
+ * [Recommended action 2]
29
+
30
+ ## KNOWN ISSUES
31
+ - [Issue 1: Description and any workarounds]
32
+ - [Issue 2: Description and any workarounds]
33
+
34
+ ## NOTES FOR NEXT SESSION
35
+ - [Important context that the next agent should know]
36
+ - [Pending decisions that need to be made]
37
+ - [Dependencies or blockers to be aware of]
38
+
39
+ ## ENVIRONMENT SETUP
40
+ - Dev server command: npm run dev
41
+ - Test command: npm test
42
+ - Build command: npm run build
43
+ - Default URL: http://localhost:3000
44
+
45
+ ## DEPENDENCIES
46
+ - [List key dependencies and versions]
47
+ - [Note any special configuration required]
48
+
49
+ ================================================================================
50
+ END OF PROGRESS FILE
51
+ ================================================================================