@davidahmann/mill 0.1.4

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 (184) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +335 -0
  3. package/dist/audit/repository.d.ts +8 -0
  4. package/dist/audit/repository.d.ts.map +1 -0
  5. package/dist/audit/repository.js +232 -0
  6. package/dist/audit/repository.js.map +1 -0
  7. package/dist/cli-program.d.ts +12 -0
  8. package/dist/cli-program.d.ts.map +1 -0
  9. package/dist/cli-program.js +1020 -0
  10. package/dist/cli-program.js.map +1 -0
  11. package/dist/cli.d.ts +3 -0
  12. package/dist/cli.d.ts.map +1 -0
  13. package/dist/cli.js +7 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/config/lock.d.ts +12 -0
  16. package/dist/config/lock.d.ts.map +1 -0
  17. package/dist/config/lock.js +83 -0
  18. package/dist/config/lock.js.map +1 -0
  19. package/dist/contracts/canonical.d.ts +7 -0
  20. package/dist/contracts/canonical.d.ts.map +1 -0
  21. package/dist/contracts/canonical.js +30 -0
  22. package/dist/contracts/canonical.js.map +1 -0
  23. package/dist/contracts/schemas.d.ts +2705 -0
  24. package/dist/contracts/schemas.d.ts.map +1 -0
  25. package/dist/contracts/schemas.js +988 -0
  26. package/dist/contracts/schemas.js.map +1 -0
  27. package/dist/doctor.d.ts +21 -0
  28. package/dist/doctor.d.ts.map +1 -0
  29. package/dist/doctor.js +138 -0
  30. package/dist/doctor.js.map +1 -0
  31. package/dist/errors.d.ts +18 -0
  32. package/dist/errors.d.ts.map +1 -0
  33. package/dist/errors.js +31 -0
  34. package/dist/errors.js.map +1 -0
  35. package/dist/index.d.ts +20 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +20 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/intake/prd.d.ts +14 -0
  40. package/dist/intake/prd.d.ts.map +1 -0
  41. package/dist/intake/prd.js +39 -0
  42. package/dist/intake/prd.js.map +1 -0
  43. package/dist/planning/impact.d.ts +59 -0
  44. package/dist/planning/impact.d.ts.map +1 -0
  45. package/dist/planning/impact.js +400 -0
  46. package/dist/planning/impact.js.map +1 -0
  47. package/dist/planning/specification.d.ts +42 -0
  48. package/dist/planning/specification.d.ts.map +1 -0
  49. package/dist/planning/specification.js +235 -0
  50. package/dist/planning/specification.js.map +1 -0
  51. package/dist/qualification/public-alpha.d.ts +16 -0
  52. package/dist/qualification/public-alpha.d.ts.map +1 -0
  53. package/dist/qualification/public-alpha.js +128 -0
  54. package/dist/qualification/public-alpha.js.map +1 -0
  55. package/dist/recipes/node-typescript-next-web.d.ts +19 -0
  56. package/dist/recipes/node-typescript-next-web.d.ts.map +1 -0
  57. package/dist/recipes/node-typescript-next-web.js +136 -0
  58. package/dist/recipes/node-typescript-next-web.js.map +1 -0
  59. package/dist/repository/integration.d.ts +58 -0
  60. package/dist/repository/integration.d.ts.map +1 -0
  61. package/dist/repository/integration.js +1385 -0
  62. package/dist/repository/integration.js.map +1 -0
  63. package/dist/repository/scan.d.ts +27 -0
  64. package/dist/repository/scan.d.ts.map +1 -0
  65. package/dist/repository/scan.js +388 -0
  66. package/dist/repository/scan.js.map +1 -0
  67. package/dist/result.d.ts +23 -0
  68. package/dist/result.d.ts.map +1 -0
  69. package/dist/result.js +24 -0
  70. package/dist/result.js.map +1 -0
  71. package/dist/runtime/codex.d.ts +28 -0
  72. package/dist/runtime/codex.d.ts.map +1 -0
  73. package/dist/runtime/codex.js +439 -0
  74. package/dist/runtime/codex.js.map +1 -0
  75. package/dist/runtime/context.d.ts +10 -0
  76. package/dist/runtime/context.d.ts.map +1 -0
  77. package/dist/runtime/context.js +151 -0
  78. package/dist/runtime/context.js.map +1 -0
  79. package/dist/runtime/delivery.d.ts +58 -0
  80. package/dist/runtime/delivery.d.ts.map +1 -0
  81. package/dist/runtime/delivery.js +1073 -0
  82. package/dist/runtime/delivery.js.map +1 -0
  83. package/dist/runtime/dependencies.d.ts +19 -0
  84. package/dist/runtime/dependencies.d.ts.map +1 -0
  85. package/dist/runtime/dependencies.js +495 -0
  86. package/dist/runtime/dependencies.js.map +1 -0
  87. package/dist/runtime/github.d.ts +112 -0
  88. package/dist/runtime/github.d.ts.map +1 -0
  89. package/dist/runtime/github.js +510 -0
  90. package/dist/runtime/github.js.map +1 -0
  91. package/dist/runtime/inputs.d.ts +24 -0
  92. package/dist/runtime/inputs.d.ts.map +1 -0
  93. package/dist/runtime/inputs.js +237 -0
  94. package/dist/runtime/inputs.js.map +1 -0
  95. package/dist/runtime/lease.d.ts +11 -0
  96. package/dist/runtime/lease.d.ts.map +1 -0
  97. package/dist/runtime/lease.js +52 -0
  98. package/dist/runtime/lease.js.map +1 -0
  99. package/dist/runtime/lifecycle.d.ts +87 -0
  100. package/dist/runtime/lifecycle.d.ts.map +1 -0
  101. package/dist/runtime/lifecycle.js +1024 -0
  102. package/dist/runtime/lifecycle.js.map +1 -0
  103. package/dist/runtime/process.d.ts +39 -0
  104. package/dist/runtime/process.d.ts.map +1 -0
  105. package/dist/runtime/process.js +304 -0
  106. package/dist/runtime/process.js.map +1 -0
  107. package/dist/runtime/repository.d.ts +36 -0
  108. package/dist/runtime/repository.d.ts.map +1 -0
  109. package/dist/runtime/repository.js +458 -0
  110. package/dist/runtime/repository.js.map +1 -0
  111. package/dist/runtime/state.d.ts +121 -0
  112. package/dist/runtime/state.d.ts.map +1 -0
  113. package/dist/runtime/state.js +1017 -0
  114. package/dist/runtime/state.js.map +1 -0
  115. package/dist/runtime/verifier.d.ts +31 -0
  116. package/dist/runtime/verifier.d.ts.map +1 -0
  117. package/dist/runtime/verifier.js +478 -0
  118. package/dist/runtime/verifier.js.map +1 -0
  119. package/dist/runtime/worker.d.ts +67 -0
  120. package/dist/runtime/worker.d.ts.map +1 -0
  121. package/dist/runtime/worker.js +34 -0
  122. package/dist/runtime/worker.js.map +1 -0
  123. package/dist/security/safe-path.d.ts +3 -0
  124. package/dist/security/safe-path.d.ts.map +1 -0
  125. package/dist/security/safe-path.js +102 -0
  126. package/dist/security/safe-path.js.map +1 -0
  127. package/dist/version.d.ts +4 -0
  128. package/dist/version.d.ts.map +1 -0
  129. package/dist/version.js +4 -0
  130. package/dist/version.js.map +1 -0
  131. package/dist/workflows/founder.d.ts +33 -0
  132. package/dist/workflows/founder.d.ts.map +1 -0
  133. package/dist/workflows/founder.js +422 -0
  134. package/dist/workflows/founder.js.map +1 -0
  135. package/package.json +79 -0
  136. package/recipes/node-typescript-next-web/.github/workflows/ci.yml +34 -0
  137. package/recipes/node-typescript-next-web/.node-version +1 -0
  138. package/recipes/node-typescript-next-web/.tool-versions +1 -0
  139. package/recipes/node-typescript-next-web/AGENTS.md +44 -0
  140. package/recipes/node-typescript-next-web/README.md +16 -0
  141. package/recipes/node-typescript-next-web/WORKFLOW.md +6 -0
  142. package/recipes/node-typescript-next-web/app/api/health/route.ts +5 -0
  143. package/recipes/node-typescript-next-web/app/layout.tsx +19 -0
  144. package/recipes/node-typescript-next-web/app/page.tsx +12 -0
  145. package/recipes/node-typescript-next-web/app/styles.css +21 -0
  146. package/recipes/node-typescript-next-web/docs/development.md +16 -0
  147. package/recipes/node-typescript-next-web/eslint.config.mjs +9 -0
  148. package/recipes/node-typescript-next-web/gitignore.template +5 -0
  149. package/recipes/node-typescript-next-web/next-env.d.ts +7 -0
  150. package/recipes/node-typescript-next-web/next.config.ts +11 -0
  151. package/recipes/node-typescript-next-web/package-lock.json +7540 -0
  152. package/recipes/node-typescript-next-web/package.json +39 -0
  153. package/recipes/node-typescript-next-web/playwright.config.ts +23 -0
  154. package/recipes/node-typescript-next-web/recipe.yaml +71 -0
  155. package/recipes/node-typescript-next-web/scripts/check-package.mjs +3 -0
  156. package/recipes/node-typescript-next-web/src/health.ts +3 -0
  157. package/recipes/node-typescript-next-web/test/browser/home.spec.ts +14 -0
  158. package/recipes/node-typescript-next-web/test/integration/health-route.test.ts +11 -0
  159. package/recipes/node-typescript-next-web/test/unit/health.test.ts +9 -0
  160. package/recipes/node-typescript-next-web/tsconfig.json +33 -0
  161. package/schemas/README.md +64 -0
  162. package/schemas/audit-report.schema.json +59 -0
  163. package/schemas/blueprint.schema.json +34 -0
  164. package/schemas/context-manifest.schema.json +88 -0
  165. package/schemas/delivery-record.schema.json +266 -0
  166. package/schemas/impact-manifest.schema.json +146 -0
  167. package/schemas/managed-repository.schema.json +36 -0
  168. package/schemas/mill-config.schema.json +212 -0
  169. package/schemas/mill-lock.schema.json +96 -0
  170. package/schemas/outcome-plan.schema.json +51 -0
  171. package/schemas/product-contract.schema.json +181 -0
  172. package/schemas/public-alpha-qualification.schema.json +391 -0
  173. package/schemas/recipe-manifest.schema.json +187 -0
  174. package/schemas/release-evidence.schema.json +170 -0
  175. package/schemas/repository-integration-plan.schema.json +156 -0
  176. package/schemas/review-result.schema.json +57 -0
  177. package/schemas/scenario-set.schema.json +84 -0
  178. package/schemas/source-manifest.schema.json +96 -0
  179. package/schemas/specification-proposal.schema.json +406 -0
  180. package/schemas/support-tuple.schema.json +107 -0
  181. package/schemas/task-packet.schema.json +395 -0
  182. package/schemas/validation-evidence.schema.json +125 -0
  183. package/schemas/worker-invocation.schema.json +119 -0
  184. package/schemas/worker-profile.schema.json +53 -0
@@ -0,0 +1,96 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": { "type": "string", "const": "1" },
6
+ "mill": {
7
+ "type": "object",
8
+ "properties": {
9
+ "package": { "type": "string", "const": "@davidahmann/mill" },
10
+ "version": {
11
+ "type": "string",
12
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$"
13
+ },
14
+ "integrity": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
15
+ },
16
+ "required": ["package", "version"],
17
+ "additionalProperties": false
18
+ },
19
+ "schemaDigests": {
20
+ "default": {},
21
+ "type": "object",
22
+ "propertyNames": { "type": "string", "minLength": 1 },
23
+ "additionalProperties": {
24
+ "type": "string",
25
+ "pattern": "^sha256:[a-f0-9]{64}$"
26
+ }
27
+ },
28
+ "recipe": {
29
+ "type": "object",
30
+ "properties": {
31
+ "id": { "type": "string", "minLength": 1 },
32
+ "version": { "type": "string", "minLength": 1 },
33
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
34
+ },
35
+ "required": ["id", "version", "digest"],
36
+ "additionalProperties": false
37
+ },
38
+ "integration": {
39
+ "type": "object",
40
+ "properties": {
41
+ "mode": { "type": "string", "enum": ["greenfield", "adoption"] },
42
+ "planDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
43
+ "baseCommit": {
44
+ "anyOf": [
45
+ { "type": "string", "pattern": "^[a-f0-9]{40}$" },
46
+ { "type": "null" }
47
+ ]
48
+ },
49
+ "files": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "object",
53
+ "properties": {
54
+ "path": {
55
+ "type": "string",
56
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
57
+ },
58
+ "ownership": {
59
+ "type": "string",
60
+ "enum": ["mill_only", "generated_once", "managed"]
61
+ },
62
+ "templateDigest": {
63
+ "type": "string",
64
+ "pattern": "^sha256:[a-f0-9]{64}$"
65
+ },
66
+ "installedDigest": {
67
+ "type": "string",
68
+ "pattern": "^sha256:[a-f0-9]{64}$"
69
+ },
70
+ "preexistingDigest": {
71
+ "anyOf": [
72
+ { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
73
+ { "type": "null" }
74
+ ]
75
+ }
76
+ },
77
+ "required": [
78
+ "path",
79
+ "ownership",
80
+ "templateDigest",
81
+ "installedDigest",
82
+ "preexistingDigest"
83
+ ],
84
+ "additionalProperties": false
85
+ }
86
+ }
87
+ },
88
+ "required": ["mode", "planDigest", "baseCommit", "files"],
89
+ "additionalProperties": false
90
+ }
91
+ },
92
+ "required": ["schemaVersion", "mill"],
93
+ "additionalProperties": false,
94
+ "$id": "https://github.com/davidahmann/mill/schemas/mill-lock.schema.json",
95
+ "title": "MillLock"
96
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": { "type": "string", "const": "1" },
6
+ "productContractDigest": {
7
+ "type": "string",
8
+ "pattern": "^sha256:[a-f0-9]{64}$"
9
+ },
10
+ "outcomes": {
11
+ "minItems": 1,
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "properties": {
16
+ "id": { "type": "string", "minLength": 1 },
17
+ "title": { "type": "string", "minLength": 1 },
18
+ "acceptance": {
19
+ "minItems": 1,
20
+ "type": "array",
21
+ "items": { "type": "string", "minLength": 1 }
22
+ },
23
+ "acceptanceIds": {
24
+ "minItems": 1,
25
+ "type": "array",
26
+ "items": { "type": "string", "minLength": 1 },
27
+ "uniqueItems": true
28
+ },
29
+ "dependsOn": {
30
+ "type": "array",
31
+ "items": { "type": "string", "minLength": 1 }
32
+ },
33
+ "status": {
34
+ "type": "string",
35
+ "enum": ["proposed", "approved", "ready", "blocked", "closed"]
36
+ },
37
+ "taskRef": {
38
+ "type": "string",
39
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
40
+ }
41
+ },
42
+ "required": ["id", "title", "acceptance", "dependsOn", "status"],
43
+ "additionalProperties": false
44
+ }
45
+ }
46
+ },
47
+ "required": ["schemaVersion", "productContractDigest", "outcomes"],
48
+ "additionalProperties": false,
49
+ "$id": "https://github.com/davidahmann/mill/schemas/outcome-plan.schema.json",
50
+ "title": "OutcomePlan"
51
+ }
@@ -0,0 +1,181 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": { "type": "string", "const": "1" },
6
+ "id": { "type": "string", "minLength": 1 },
7
+ "title": { "type": "string", "minLength": 1 },
8
+ "primaryUser": { "type": "string", "minLength": 1 },
9
+ "jobToBeDone": { "type": "string", "minLength": 1 },
10
+ "outcomes": {
11
+ "minItems": 1,
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "properties": {
16
+ "id": { "type": "string", "pattern": "^OUT-[A-Z0-9][A-Z0-9-]*$" },
17
+ "statement": { "type": "string", "minLength": 1 },
18
+ "acceptanceIds": {
19
+ "minItems": 1,
20
+ "type": "array",
21
+ "items": { "type": "string", "minLength": 1 },
22
+ "uniqueItems": true
23
+ }
24
+ },
25
+ "required": ["id", "statement"],
26
+ "additionalProperties": false
27
+ }
28
+ },
29
+ "nonGoals": {
30
+ "type": "array",
31
+ "items": { "type": "string", "minLength": 1 }
32
+ },
33
+ "assumptions": {
34
+ "type": "array",
35
+ "items": { "type": "string", "minLength": 1 }
36
+ },
37
+ "unknowns": {
38
+ "type": "array",
39
+ "items": { "type": "string", "minLength": 1 }
40
+ },
41
+ "sourceRefs": {
42
+ "minItems": 1,
43
+ "type": "array",
44
+ "items": { "type": "string", "minLength": 1 }
45
+ },
46
+ "acceptance": {
47
+ "default": [],
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "id": { "type": "string", "minLength": 1 },
53
+ "kind": {
54
+ "type": "string",
55
+ "enum": ["functional", "quality", "operational"]
56
+ },
57
+ "statement": { "type": "string", "minLength": 1 },
58
+ "sourceRefs": {
59
+ "minItems": 1,
60
+ "type": "array",
61
+ "items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
62
+ }
63
+ },
64
+ "required": ["id", "kind", "statement", "sourceRefs"],
65
+ "additionalProperties": false
66
+ }
67
+ },
68
+ "invariants": {
69
+ "default": [],
70
+ "type": "array",
71
+ "items": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": { "type": "string", "pattern": "^INV-[A-Z0-9][A-Z0-9-]*$" },
75
+ "statement": { "type": "string", "minLength": 1 },
76
+ "owner": { "type": "string", "minLength": 1 },
77
+ "criticality": {
78
+ "type": "string",
79
+ "enum": ["low", "medium", "high", "critical"]
80
+ },
81
+ "surfaceRefs": {
82
+ "minItems": 1,
83
+ "type": "array",
84
+ "items": { "type": "string", "minLength": 1 }
85
+ },
86
+ "verification": {
87
+ "type": "object",
88
+ "properties": {
89
+ "mode": {
90
+ "type": "string",
91
+ "enum": ["command", "human", "unsupported"]
92
+ },
93
+ "ref": { "type": "string", "minLength": 1 }
94
+ },
95
+ "required": ["mode", "ref"],
96
+ "additionalProperties": false
97
+ },
98
+ "sourceRefs": {
99
+ "minItems": 1,
100
+ "type": "array",
101
+ "items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
102
+ },
103
+ "unknowns": {
104
+ "type": "array",
105
+ "items": { "type": "string", "minLength": 1 }
106
+ }
107
+ },
108
+ "required": [
109
+ "id",
110
+ "statement",
111
+ "owner",
112
+ "criticality",
113
+ "surfaceRefs",
114
+ "verification",
115
+ "sourceRefs",
116
+ "unknowns"
117
+ ],
118
+ "additionalProperties": false
119
+ }
120
+ },
121
+ "decisions": {
122
+ "default": [],
123
+ "type": "array",
124
+ "items": {
125
+ "type": "object",
126
+ "properties": {
127
+ "id": { "type": "string", "pattern": "^DEC-[A-Z0-9][A-Z0-9-]*$" },
128
+ "kind": {
129
+ "type": "string",
130
+ "enum": [
131
+ "product",
132
+ "architecture",
133
+ "design",
134
+ "accessibility",
135
+ "research"
136
+ ]
137
+ },
138
+ "question": { "type": "string", "minLength": 1 },
139
+ "decision": { "type": "string", "minLength": 1 },
140
+ "rationale": { "type": "string", "minLength": 1 },
141
+ "sourceRefs": {
142
+ "minItems": 1,
143
+ "type": "array",
144
+ "items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
145
+ },
146
+ "status": {
147
+ "type": "string",
148
+ "enum": ["proposed", "approved", "rejected"]
149
+ },
150
+ "costlyToReverse": { "type": "boolean" }
151
+ },
152
+ "required": [
153
+ "id",
154
+ "kind",
155
+ "question",
156
+ "decision",
157
+ "rationale",
158
+ "sourceRefs",
159
+ "status",
160
+ "costlyToReverse"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ }
165
+ },
166
+ "required": [
167
+ "schemaVersion",
168
+ "id",
169
+ "title",
170
+ "primaryUser",
171
+ "jobToBeDone",
172
+ "outcomes",
173
+ "nonGoals",
174
+ "assumptions",
175
+ "unknowns",
176
+ "sourceRefs"
177
+ ],
178
+ "additionalProperties": false,
179
+ "$id": "https://github.com/davidahmann/mill/schemas/product-contract.schema.json",
180
+ "title": "ProductContract"
181
+ }