autoforge-ai-ven1ce7 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 (105) hide show
  1. package/.autoforge/templates/spec_prompt.template.md +78 -0
  2. package/.claude/commands/check-code.md +32 -0
  3. package/.claude/commands/checkpoint.md +40 -0
  4. package/.claude/commands/create-spec.md +613 -0
  5. package/.claude/commands/expand-project.md +234 -0
  6. package/.claude/commands/gsd-to-autoforge-spec.md +10 -0
  7. package/.claude/commands/review-pr.md +106 -0
  8. package/.claude/skills/frontend-design/LICENSE.txt +177 -0
  9. package/.claude/skills/frontend-design/SKILL.md +42 -0
  10. package/.claude/skills/gsd-to-autoforge-spec/SKILL.md +221 -0
  11. package/.claude/skills/gsd-to-autoforge-spec/references/app-spec-format.md +293 -0
  12. package/.claude/skills/playwright-cli/SKILL.md +259 -0
  13. package/.claude/skills/playwright-cli/references/request-mocking.md +87 -0
  14. package/.claude/skills/playwright-cli/references/running-code.md +232 -0
  15. package/.claude/skills/playwright-cli/references/session-management.md +169 -0
  16. package/.claude/skills/playwright-cli/references/storage-state.md +275 -0
  17. package/.claude/skills/playwright-cli/references/test-generation.md +88 -0
  18. package/.claude/skills/playwright-cli/references/tracing.md +139 -0
  19. package/.claude/skills/playwright-cli/references/video-recording.md +43 -0
  20. package/.claude/templates/app_spec.template.txt +331 -0
  21. package/.claude/templates/coding_prompt.template.md +280 -0
  22. package/.claude/templates/initializer_prompt.template.md +354 -0
  23. package/.claude/templates/testing_prompt.template.md +150 -0
  24. package/.env.example +76 -0
  25. package/.opencode/opencode.json +32 -0
  26. package/LICENSE.md +676 -0
  27. package/README.md +408 -0
  28. package/agent.py +528 -0
  29. package/api/__init__.py +10 -0
  30. package/api/database.py +561 -0
  31. package/api/dependency_resolver.py +449 -0
  32. package/api/migration.py +156 -0
  33. package/auth.py +83 -0
  34. package/autoforge_paths.py +326 -0
  35. package/autonomous_agent_demo.py +320 -0
  36. package/bin/autoforge.js +3 -0
  37. package/client.py +497 -0
  38. package/env_constants.py +28 -0
  39. package/examples/OPTIMIZE_CONFIG.md +230 -0
  40. package/examples/README.md +531 -0
  41. package/examples/org_config.yaml +172 -0
  42. package/examples/project_allowed_commands.yaml +139 -0
  43. package/lib/cli.js +978 -0
  44. package/mcp_server/__init__.py +1 -0
  45. package/mcp_server/feature_mcp.py +1141 -0
  46. package/opencode_bash_guard.py +23 -0
  47. package/opencode_config.py +220 -0
  48. package/opencode_runtime.py +182 -0
  49. package/opencode_spec.py +336 -0
  50. package/package.json +61 -0
  51. package/parallel_orchestrator.py +1870 -0
  52. package/progress.py +264 -0
  53. package/prompts.py +832 -0
  54. package/pyproject.toml +17 -0
  55. package/rate_limit_utils.py +132 -0
  56. package/registry.py +852 -0
  57. package/requirements-prod.txt +15 -0
  58. package/security.py +1001 -0
  59. package/server/__init__.py +17 -0
  60. package/server/main.py +277 -0
  61. package/server/routers/__init__.py +32 -0
  62. package/server/routers/agent.py +205 -0
  63. package/server/routers/assistant_chat.py +363 -0
  64. package/server/routers/devserver.py +436 -0
  65. package/server/routers/expand_project.py +245 -0
  66. package/server/routers/features.py +821 -0
  67. package/server/routers/filesystem.py +514 -0
  68. package/server/routers/projects.py +524 -0
  69. package/server/routers/schedules.py +356 -0
  70. package/server/routers/settings.py +197 -0
  71. package/server/routers/spec_creation.py +363 -0
  72. package/server/routers/terminal.py +459 -0
  73. package/server/schemas.py +716 -0
  74. package/server/services/__init__.py +36 -0
  75. package/server/services/assistant_chat_session.py +523 -0
  76. package/server/services/assistant_database.py +304 -0
  77. package/server/services/chat_constants.py +111 -0
  78. package/server/services/dev_server_manager.py +568 -0
  79. package/server/services/expand_chat_session.py +407 -0
  80. package/server/services/process_manager.py +829 -0
  81. package/server/services/project_config.py +475 -0
  82. package/server/services/scheduler_service.py +683 -0
  83. package/server/services/spec_chat_session.py +203 -0
  84. package/server/services/terminal_manager.py +756 -0
  85. package/server/utils/__init__.py +1 -0
  86. package/server/utils/process_utils.py +134 -0
  87. package/server/utils/project_helpers.py +32 -0
  88. package/server/utils/validation.py +54 -0
  89. package/server/websocket.py +939 -0
  90. package/start.py +499 -0
  91. package/temp_cleanup.py +221 -0
  92. package/ui/dist/assets/index-DjOkaq7Z.js +95 -0
  93. package/ui/dist/assets/index-JNM7eUj7.css +1 -0
  94. package/ui/dist/assets/vendor-flow-CVNK-_lx.js +7 -0
  95. package/ui/dist/assets/vendor-markdown-lmnOnLXp.js +29 -0
  96. package/ui/dist/assets/vendor-query-BUABzP5o.js +1 -0
  97. package/ui/dist/assets/vendor-radix-DjWauVBs.js +45 -0
  98. package/ui/dist/assets/vendor-react-qkC6yhPU.js +1 -0
  99. package/ui/dist/assets/vendor-utils-BaL7xioT.js +2 -0
  100. package/ui/dist/assets/vendor-xterm-DP_gxef0.js +16 -0
  101. package/ui/dist/index.html +24 -0
  102. package/ui/dist/logo.png +0 -0
  103. package/ui/dist/ollama.png +0 -0
  104. package/ui/dist/vite.svg +6 -0
  105. package/ui/package.json +60 -0
@@ -0,0 +1,78 @@
1
+ ---
2
+ description: Create an app spec for autonomous coding (project)
3
+ ---
4
+
5
+ # PROJECT DIRECTORY
6
+
7
+ This command requires the project directory via `$ARGUMENTS`.
8
+
9
+ Output targets:
10
+ - `$ARGUMENTS/.autoforge/prompts/app_spec.txt`
11
+ - `$ARGUMENTS/.autoforge/prompts/initializer_prompt.md`
12
+
13
+ If `$ARGUMENTS` is empty, ask for a valid project path and stop.
14
+
15
+ ---
16
+
17
+ # ROLE
18
+
19
+ You are the Spec Creation Assistant. Your job is to run a clear, user-friendly conversation that turns a rough app idea into a complete technical spec for an autonomous coding workflow.
20
+
21
+ Support both technical and non-technical users:
22
+ - Ask plain-language product questions first.
23
+ - Derive technical architecture from requirements when the user prefers quick mode.
24
+ - Ask technical follow-ups only when needed.
25
+
26
+ ---
27
+
28
+ # CONVERSATION FLOW
29
+
30
+ Run this as a phased conversation, one phase at a time.
31
+ Do not dump all questions in one turn.
32
+
33
+ 1. Project basics: name, purpose, users.
34
+ 2. Involvement mode: quick (recommended) or detailed.
35
+ 3. Tech preferences and data persistence requirement.
36
+ 4. Core features and user workflows (deepest phase).
37
+ 5. Derive technical details (entities, APIs, layout, architecture).
38
+ 6. Define success criteria.
39
+ 7. Review and final confirmation.
40
+
41
+ Always confirm before finalizing outputs.
42
+
43
+ ---
44
+
45
+ # FEATURE COUNT
46
+
47
+ Do not ask the user to guess a feature count.
48
+ Derive it from requirements and show a brief category breakdown.
49
+
50
+ If persistent data is required, include five mandatory infrastructure checks in the plan:
51
+ 1. Database connection established
52
+ 2. Database schema applied correctly
53
+ 3. Data persists across server restart
54
+ 4. No mock data patterns in codebase
55
+ 5. Backend API queries real database
56
+
57
+ ---
58
+
59
+ # OUTPUT REQUIREMENTS
60
+
61
+ When the user confirms, produce content for:
62
+ - `app_spec.txt` using `<project_specification>...</project_specification>` XML
63
+ - `initializer_prompt.md` with exact feature count inserted
64
+
65
+ Your final output must be a single JSON object (no markdown fences) with:
66
+ - `app_spec_txt`
67
+ - `initializer_prompt_md`
68
+
69
+ Do not include extra top-level keys.
70
+
71
+ ---
72
+
73
+ # START
74
+
75
+ Open with a short friendly greeting and ask only the first three basics:
76
+ 1. Project name
77
+ 2. What they want to build
78
+ 3. Who it is for
@@ -0,0 +1,32 @@
1
+ ---
2
+ description:
3
+ ---
4
+
5
+ Run the following commands and ensure the code is clean.
6
+
7
+ From project root:
8
+
9
+ # Python linting
10
+
11
+ ruff check .
12
+
13
+ # Security tests
14
+
15
+ python test_security.py
16
+
17
+ From ui/ directory:
18
+ cd ui
19
+
20
+ # ESLint (will fail until we add the config)
21
+
22
+ npm run lint
23
+
24
+ # TypeScript check + build
25
+
26
+ npm run build
27
+
28
+ One-liner to run everything:
29
+ ruff check . && python test_security.py && cd ui && npm run lint && npm run build
30
+
31
+ Or if you want to see all failures at once (doesn't stop on first error):
32
+ ruff check .; python test_security.py; cd ui && npm run lint; npm run build
@@ -0,0 +1,40 @@
1
+ ---
2
+ description: Create commit with detailed comment
3
+ ---
4
+
5
+ Please create a comprehensive checkpoint commit with the following steps:
6
+
7
+ 1. **Initialize Git if needed**: Run `git init` if git has not been instantiated for the project yet.
8
+
9
+ 2. **Analyze all changes**:
10
+
11
+ - Run `git status` to see all tracked and untracked files
12
+ - Run `git diff` to see detailed changes in tracked files
13
+ - Run `git log -5 --oneline` to understand the commit message style of this repository
14
+
15
+ 3. **Stage everything**:
16
+
17
+ - Add ALL tracked changes (modified and deleted files)
18
+ - Add ALL untracked files (new files)
19
+ - Use `git add -A` or `git add .` to stage everything
20
+
21
+ 4. **Create a detailed commit message**:
22
+
23
+ - **First line**: Write a clear, concise summary (50-72 chars) describing the primary change
24
+ - Use imperative mood (e.g., "Add feature" not "Added feature")
25
+ - Examples: "feat: add user authentication", "fix: resolve database connection issue", "refactor: improve API route structure"
26
+ - **Body**: Provide a detailed description including:
27
+ - What changes were made (list of key modifications)
28
+ - Why these changes were made (purpose/motivation)
29
+ - Any important technical details or decisions
30
+ - Breaking changes or migration notes if applicable
31
+ - **Footer**: Include co-author attribution as shown in the Git Safety Protocol
32
+
33
+ 5. **Execute the commit**: Create the commit with the properly formatted message following this repository's conventions.
34
+
35
+ IMPORTANT:
36
+
37
+ - Do NOT skip any files - include everything
38
+ - Make the commit message descriptive enough that someone reviewing the git log can understand what was accomplished
39
+ - Follow the project's existing commit message conventions (check git log first)
40
+ - Include the Claude Code co-author attribution in the commit message