@robotaccomplice/architext 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 (43) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +497 -0
  3. package/docs/architecture/AGENTS_APPENDIX.md +39 -0
  4. package/docs/architecture/ARCHITECTURE_PLAN.md +520 -0
  5. package/docs/architecture/LLM_ARCHITEXT.md +95 -0
  6. package/docs/architext/AGENTS_APPENDIX.md +39 -0
  7. package/docs/architext/LLM_ARCHITEXT.md +64 -0
  8. package/docs/architext/README.md +120 -0
  9. package/docs/architext/data/data-classification.json +34 -0
  10. package/docs/architext/data/decisions.json +54 -0
  11. package/docs/architext/data/flows.json +114 -0
  12. package/docs/architext/data/glossary.json +24 -0
  13. package/docs/architext/data/manifest.json +23 -0
  14. package/docs/architext/data/nodes.json +194 -0
  15. package/docs/architext/data/risks.json +59 -0
  16. package/docs/architext/data/views.json +91 -0
  17. package/docs/architext/dist/assets/index-BWZ6sEpA.js +51 -0
  18. package/docs/architext/dist/assets/index-iWLms0Pa.css +1 -0
  19. package/docs/architext/dist/compass.svg +9 -0
  20. package/docs/architext/dist/index.html +14 -0
  21. package/docs/architext/index.html +13 -0
  22. package/docs/architext/package-lock.json +1822 -0
  23. package/docs/architext/package.json +28 -0
  24. package/docs/architext/public/compass.svg +9 -0
  25. package/docs/architext/schema/data-classification.schema.json +28 -0
  26. package/docs/architext/schema/decisions.schema.json +33 -0
  27. package/docs/architext/schema/flows.schema.json +72 -0
  28. package/docs/architext/schema/glossary.schema.json +22 -0
  29. package/docs/architext/schema/manifest.schema.json +47 -0
  30. package/docs/architext/schema/nodes.schema.json +69 -0
  31. package/docs/architext/schema/risks.schema.json +34 -0
  32. package/docs/architext/schema/views.schema.json +48 -0
  33. package/docs/architext/src/main.tsx +2133 -0
  34. package/docs/architext/src/styles.css +1475 -0
  35. package/docs/architext/tools/validate-architext.mjs +163 -0
  36. package/docs/architext/tsconfig.json +21 -0
  37. package/docs/architext/vite.config.ts +47 -0
  38. package/docs/assets/screenshots/architext-c4.png +0 -0
  39. package/docs/assets/screenshots/architext-data-risks.png +0 -0
  40. package/docs/assets/screenshots/architext-flows.png +0 -0
  41. package/docs/assets/screenshots/architext-sequence.png +0 -0
  42. package/package.json +81 -0
  43. package/tools/architext-adopt.mjs +874 -0
@@ -0,0 +1,59 @@
1
+ {
2
+ "risks": [
3
+ {
4
+ "id": "migration-data-loss",
5
+ "title": "Migration removes target-owned files by mistake",
6
+ "category": "operational",
7
+ "severity": "critical",
8
+ "status": "mitigating",
9
+ "summary": "The 1.0 migration deletes copied package-owned files from target repositories. A bad file list could remove project-owned content.",
10
+ "mitigations": ["Preserve docs/architext/data/*.json by default", "Expose removals in --dry-run", "Limit cleanup to known copied install paths"],
11
+ "relatedNodes": ["architext-cli", "target-repository", "target-data-files"],
12
+ "relatedFlows": ["copied-install-migration"]
13
+ },
14
+ {
15
+ "id": "outdated-agent-instructions",
16
+ "title": "Agents keep following copied-template instructions",
17
+ "category": "technical",
18
+ "severity": "high",
19
+ "status": "mitigating",
20
+ "summary": "Existing AGENTS.md or CLAUDE.md sections may tell agents to edit copied viewer/schema/tool files or run target-local npm commands.",
21
+ "mitigations": ["Replace the managed Architext section during migration", "Make doctor report outdated instruction sections", "Prompt agents to edit only docs/architext/data/*.json"],
22
+ "relatedNodes": ["llm-agent", "target-repository", "architext-cli"],
23
+ "relatedFlows": ["copied-install-migration", "architecture-maintenance"]
24
+ },
25
+ {
26
+ "id": "schema-version-mismatch",
27
+ "title": "Installed CLI schema differs from target data expectations",
28
+ "category": "technical",
29
+ "severity": "medium",
30
+ "status": "open",
31
+ "summary": "Target data created by an older CLI may fail validation under a newer package-owned schema.",
32
+ "mitigations": ["Report CLI and metadata versions in doctor", "Keep data migrations explicit and dry-runnable", "Do not rewrite architecture facts silently"],
33
+ "relatedNodes": ["schema-validator", "package-schemas", "target-data-files"],
34
+ "relatedFlows": ["architecture-maintenance", "copied-install-migration"]
35
+ },
36
+ {
37
+ "id": "package-runtime-drift",
38
+ "title": "Package contents miss runtime files",
39
+ "category": "operational",
40
+ "severity": "high",
41
+ "status": "mitigating",
42
+ "summary": "The global CLI depends on package-owned viewer assets, schemas, and tools. A bad package file list can break serve, build, or validate.",
43
+ "mitigations": ["Run npm pack --dry-run before release", "Keep package files explicit", "Validate serve/build/package workflows before publishing"],
44
+ "relatedNodes": ["package-artifacts", "viewer-runtime", "schema-validator"],
45
+ "relatedFlows": ["release-packaging", "local-review", "static-export"]
46
+ },
47
+ {
48
+ "id": "stale-static-export",
49
+ "title": "Static export becomes stale after data edits",
50
+ "category": "operational",
51
+ "severity": "low",
52
+ "status": "accepted",
53
+ "summary": "architext build copies target data into dist/data. Later JSON edits are not reflected until build runs again.",
54
+ "mitigations": ["Keep docs/architext/dist ignored by default", "Prefer architext serve for active review", "Rebuild before publishing static output"],
55
+ "relatedNodes": ["static-dist", "target-data-files"],
56
+ "relatedFlows": ["static-export"]
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "views": [
3
+ {
4
+ "id": "system-map",
5
+ "name": "System Map",
6
+ "type": "system-map",
7
+ "summary": "Architext global CLI and data-only repository architecture.",
8
+ "lanes": [
9
+ { "id": "users", "name": "Users", "nodeIds": ["maintainer", "llm-agent"] },
10
+ { "id": "cli", "name": "CLI", "nodeIds": ["architext-cli", "schema-validator"] },
11
+ { "id": "package", "name": "Package", "nodeIds": ["viewer-runtime", "package-schemas", "package-artifacts"] },
12
+ { "id": "target", "name": "Target Repository", "nodeIds": ["target-repository", "target-data-files", "static-dist"] }
13
+ ]
14
+ },
15
+ {
16
+ "id": "dataflow",
17
+ "name": "Dataflow",
18
+ "type": "dataflow",
19
+ "summary": "Project-owned data moving through package-owned validation and viewer runtime.",
20
+ "lanes": [
21
+ { "id": "actors", "name": "Actors", "nodeIds": ["maintainer", "llm-agent"] },
22
+ { "id": "package-owned", "name": "Package-Owned Runtime", "nodeIds": ["architext-cli", "viewer-runtime", "schema-validator", "package-schemas"] },
23
+ { "id": "repo-owned", "name": "Repo-Owned Data", "nodeIds": ["target-repository", "target-data-files", "static-dist"] }
24
+ ]
25
+ },
26
+ {
27
+ "id": "sequence",
28
+ "name": "Sequence",
29
+ "type": "sequence",
30
+ "summary": "Ordered lifecycle command interactions for the selected Architext flow.",
31
+ "lanes": [
32
+ { "id": "participants", "name": "Participants", "nodeIds": ["maintainer", "llm-agent", "architext-cli", "schema-validator", "viewer-runtime", "target-repository", "target-data-files", "static-dist"] }
33
+ ]
34
+ },
35
+ {
36
+ "id": "deployment",
37
+ "name": "Deployment",
38
+ "type": "deployment",
39
+ "summary": "Runtime placement for global package code and target repository data.",
40
+ "lanes": [
41
+ { "id": "terminal", "name": "Terminal", "nodeIds": ["maintainer", "llm-agent", "architext-cli", "schema-validator"] },
42
+ { "id": "package-files", "name": "Installed Package", "nodeIds": ["viewer-runtime", "package-schemas", "package-artifacts"] },
43
+ { "id": "repository", "name": "Repository", "nodeIds": ["target-repository", "target-data-files", "static-dist"] }
44
+ ]
45
+ },
46
+ {
47
+ "id": "c4-context",
48
+ "name": "C4 Context",
49
+ "type": "c4-context",
50
+ "summary": "Architext as a system used by maintainers and LLM agents.",
51
+ "lanes": [
52
+ { "id": "people", "name": "People", "nodeIds": ["maintainer", "llm-agent"] },
53
+ { "id": "system", "name": "Architext System", "nodeIds": ["architext-cli"] },
54
+ { "id": "external-context", "name": "Repository Context", "nodeIds": ["target-repository"] }
55
+ ]
56
+ },
57
+ {
58
+ "id": "c4-container",
59
+ "name": "C4 Container",
60
+ "type": "c4-container",
61
+ "summary": "Package-owned containers and target-owned data boundaries.",
62
+ "lanes": [
63
+ { "id": "actors", "name": "Actors", "nodeIds": ["maintainer", "llm-agent"] },
64
+ { "id": "containers", "name": "Architext Package", "nodeIds": ["architext-cli", "viewer-runtime", "schema-validator", "package-schemas"] },
65
+ { "id": "data", "name": "Target Data", "nodeIds": ["target-data-files", "static-dist"] }
66
+ ]
67
+ },
68
+ {
69
+ "id": "c4-component",
70
+ "name": "C4 Component",
71
+ "type": "c4-component",
72
+ "summary": "CLI-adjacent components that enforce the data-only repository contract.",
73
+ "lanes": [
74
+ { "id": "entrypoint", "name": "Entrypoint", "nodeIds": ["architext-cli"] },
75
+ { "id": "runtime", "name": "Runtime Components", "nodeIds": ["viewer-runtime", "schema-validator"] },
76
+ { "id": "contracts", "name": "Contracts", "nodeIds": ["package-schemas", "target-data-files", "package-artifacts"] }
77
+ ]
78
+ },
79
+ {
80
+ "id": "risk-overlay",
81
+ "name": "Data/Risks",
82
+ "type": "risk-overlay",
83
+ "summary": "Upgrade, migration, and package/runtime risks for Architext itself.",
84
+ "lanes": [
85
+ { "id": "operators", "name": "Operators", "nodeIds": ["maintainer", "llm-agent"] },
86
+ { "id": "managed-runtime", "name": "Managed Runtime", "nodeIds": ["architext-cli", "schema-validator", "viewer-runtime"] },
87
+ { "id": "owned-data", "name": "Owned Data", "nodeIds": ["target-repository", "target-data-files", "static-dist"] }
88
+ ]
89
+ }
90
+ ]
91
+ }