create-project-arch 1.1.0 → 1.3.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 (62) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/LICENSE +21 -0
  3. package/README.md +662 -43
  4. package/dist/cli.js +151 -0
  5. package/dist/cli.test.js +191 -0
  6. package/package.json +28 -4
  7. package/templates/arch-ui/.arch/edges/decision_to_domain.json +0 -1
  8. package/templates/arch-ui/.arch/edges/milestone_to_task.json +0 -1
  9. package/templates/arch-ui/.arch/edges/task_to_decision.json +0 -1
  10. package/templates/arch-ui/.arch/edges/task_to_module.json +0 -1
  11. package/templates/arch-ui/.arch/graph.json +0 -1
  12. package/templates/arch-ui/.arch/nodes/decisions.json +0 -1
  13. package/templates/arch-ui/.arch/nodes/domains.json +0 -1
  14. package/templates/arch-ui/.arch/nodes/milestones.json +0 -1
  15. package/templates/arch-ui/.arch/nodes/modules.json +0 -1
  16. package/templates/arch-ui/.arch/nodes/tasks.json +0 -1
  17. package/templates/arch-ui/app/api/health/route.ts +5 -4
  18. package/templates/arch-ui/app/api/node-files/route.ts +6 -1
  19. package/templates/arch-ui/app/api/search/route.ts +0 -1
  20. package/templates/arch-ui/app/work/page.tsx +94 -64
  21. package/templates/arch-ui/components/app-shell.tsx +1 -7
  22. package/templates/arch-ui/components/graph/arch-node.tsx +13 -3
  23. package/templates/arch-ui/components/graph/build-graph-from-dataset.ts +6 -2
  24. package/templates/arch-ui/components/graph/build-initial-graph.ts +215 -221
  25. package/templates/arch-ui/components/graph/graph-types.ts +49 -49
  26. package/templates/arch-ui/components/graph/use-auto-layout.ts +51 -51
  27. package/templates/arch-ui/components/graph/use-connection-validation.ts +48 -48
  28. package/templates/arch-ui/components/graph/use-flow-persistence.ts +38 -38
  29. package/templates/arch-ui/components/graph-canvas.tsx +90 -74
  30. package/templates/arch-ui/components/inspector.tsx +56 -22
  31. package/templates/arch-ui/components/sidebar.tsx +18 -8
  32. package/templates/arch-ui/components/topbar.tsx +8 -11
  33. package/templates/arch-ui/components/work-table.tsx +1 -5
  34. package/templates/arch-ui/components/workspace-context.tsx +2 -1
  35. package/templates/arch-ui/eslint.config.js +2 -2
  36. package/templates/arch-ui/lib/graph-dataset.ts +4 -8
  37. package/templates/arch-ui/lib/graph-schema.ts +1 -4
  38. package/templates/arch-ui/package.json +0 -1
  39. package/templates/arch-ui/tsconfig.json +3 -11
  40. package/templates/architecture-specs/SPEC_TEMPLATE.md +49 -0
  41. package/templates/architecture-specs/example-system.md +42 -0
  42. package/templates/concept-map/concept-map.json +67 -0
  43. package/templates/decisions/DECISION_TEMPLATE.md +53 -0
  44. package/templates/decisions/README.md +19 -0
  45. package/templates/decisions/example-decision.md +45 -0
  46. package/templates/domains/DOMAIN_TEMPLATE.md +43 -0
  47. package/templates/domains/README.md +18 -0
  48. package/templates/domains/api.md +33 -0
  49. package/templates/domains/core.md +33 -0
  50. package/templates/domains/domains.json +19 -0
  51. package/templates/domains/ui.md +34 -0
  52. package/templates/foundation/goals.md +35 -0
  53. package/templates/foundation/project-overview.md +35 -0
  54. package/templates/foundation/prompt.md +23 -0
  55. package/templates/foundation/scope.md +35 -0
  56. package/templates/foundation/user-journey.md +37 -0
  57. package/templates/gap-closure/GAP_CLOSURE_TEMPLATE.md +50 -0
  58. package/templates/gap-closure/README.md +19 -0
  59. package/templates/gap-closure/example-gap-closure.md +43 -0
  60. package/templates/validation-hooks/.githooks/pre-commit +4 -0
  61. package/templates/validation-hooks/README.md +20 -0
  62. package/templates/validation-hooks/scripts/validate.sh +9 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.3.0] - 2026-03-08
9
+
10
+ ### Added
11
+
12
+ - Foundation, domain, architecture spec, concept-map, decision record, and gap-closure scaffolds.
13
+ - Local validation hook scaffold (`scripts/validate.sh` and `.githooks/pre-commit`).
14
+
15
+ ### Changed
16
+
17
+ - Validation-hook copy behavior now merges directories and preserves existing files while adding missing template files.
18
+ - Template scaffolding flow expanded to include architecture governance docs by default.
19
+
20
+ ## [1.1.0] - 2026-03-07
21
+
22
+ ### Added
23
+
24
+ - Comprehensive test coverage for scaffolding operations
25
+ - Sandbox development workflow for template iteration
26
+ - `sandbox:init`, `sandbox:dev`, and `sandbox:sync` scripts for template development
27
+ - Enhanced template documentation
28
+
29
+ ### Changed
30
+
31
+ - Improved template structure for `arch-ui` and `ui-package`
32
+ - Better error handling during scaffolding process
33
+ - Enhanced CLI options documentation
34
+
35
+ ### Fixed
36
+
37
+ - Template file copying edge cases
38
+ - Directory creation validation
39
+
40
+ ## [1.0.0] - 2026-02-15
41
+
42
+ ### Added
43
+
44
+ - Initial public release
45
+ - Interactive scaffolding CLI
46
+ - `arch-ui` template (Next.js with Architecture UI)
47
+ - `ui-package` template (React component library)
48
+ - Integration with `create-turbo` for monorepo setup
49
+ - Automatic `project-arch` initialization
50
+ - Package manager detection and support (pnpm, npm, yarn)
51
+ - Template customization options
52
+ - Force mode for non-empty directories
53
+
54
+ [1.1.0]: https://github.com/project-arch/project-arch-system/compare/v1.0.0...v1.1.0
55
+ [1.0.0]: https://github.com/project-arch/project-arch-system/releases/tag/v1.0.0
56
+ [1.3.0]: https://github.com/project-arch/project-arch-system/compare/v1.1.0...v1.3.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Project Arch Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.