@warpgogol/forge 0.26.0 → 0.27.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 (187) hide show
  1. package/AGENTS.md +9 -9
  2. package/README.md +14 -26
  3. package/README.uk.md +1 -1
  4. package/dist/bin/cli.js +1 -1
  5. package/dist/os/adr/handlers/archive.d.ts.map +1 -1
  6. package/dist/os/adr/handlers/archive.js +15 -9
  7. package/dist/os/adr/handlers/archive.js.map +1 -1
  8. package/dist/os/adr/handlers/implement-stamp.d.ts.map +1 -1
  9. package/dist/os/adr/handlers/implement-stamp.js.map +1 -1
  10. package/dist/os/adr/handlers/validate.js +18 -10
  11. package/dist/os/adr/handlers/validate.js.map +1 -1
  12. package/dist/os/audit/frontmatter-io.d.ts.map +1 -1
  13. package/dist/os/audit/frontmatter-io.js +1 -3
  14. package/dist/os/audit/frontmatter-io.js.map +1 -1
  15. package/dist/os/audit/handlers/archive.d.ts.map +1 -1
  16. package/dist/os/audit/handlers/archive.js +15 -9
  17. package/dist/os/audit/handlers/archive.js.map +1 -1
  18. package/dist/os/compass/handlers/compass-audit-handler.js +1 -1
  19. package/dist/os/compass/handlers/compass-audit-handler.js.map +1 -1
  20. package/dist/os/compass/handlers/git-revision.d.ts.map +1 -1
  21. package/dist/os/compass/handlers/git-revision.js.map +1 -1
  22. package/dist/os/core/core.module.js +1 -1
  23. package/dist/os/core/core.module.js.map +1 -1
  24. package/dist/os/core/handlers/assets-check.d.ts.map +1 -1
  25. package/dist/os/core/handlers/assets-check.js +1 -3
  26. package/dist/os/core/handlers/assets-check.js.map +1 -1
  27. package/dist/os/core/handlers/assets-list.d.ts.map +1 -1
  28. package/dist/os/core/handlers/assets-list.js +2 -6
  29. package/dist/os/core/handlers/assets-list.js.map +1 -1
  30. package/dist/os/core/handlers/knowledge-compact.d.ts.map +1 -1
  31. package/dist/os/core/handlers/knowledge-compact.js.map +1 -1
  32. package/dist/os/core/handlers/pinned-check.d.ts +10 -0
  33. package/dist/os/core/handlers/pinned-check.d.ts.map +1 -1
  34. package/dist/os/core/handlers/pinned-check.js +24 -0
  35. package/dist/os/core/handlers/pinned-check.js.map +1 -1
  36. package/dist/os/core/handlers/pinned-init.d.ts.map +1 -1
  37. package/dist/os/core/handlers/pinned-init.js +1 -0
  38. package/dist/os/core/handlers/pinned-init.js.map +1 -1
  39. package/dist/os/core/handlers/pinned-validate.d.ts.map +1 -1
  40. package/dist/os/core/handlers/pinned-validate.js +30 -10
  41. package/dist/os/core/handlers/pinned-validate.js.map +1 -1
  42. package/dist/os/core/handlers/release-prepare.js +1 -1
  43. package/dist/os/core/handlers/release-prepare.js.map +1 -1
  44. package/dist/os/core/handlers/workspace-deps.js +4 -4
  45. package/dist/os/core/handlers/workspace-deps.js.map +1 -1
  46. package/dist/os/exploration/frontmatter-io.d.ts.map +1 -1
  47. package/dist/os/exploration/frontmatter-io.js +1 -3
  48. package/dist/os/exploration/frontmatter-io.js.map +1 -1
  49. package/dist/os/exploration/handlers/list.d.ts.map +1 -1
  50. package/dist/os/exploration/handlers/list.js.map +1 -1
  51. package/dist/os/exploration/handlers/show.d.ts.map +1 -1
  52. package/dist/os/exploration/handlers/show.js +1 -1
  53. package/dist/os/exploration/handlers/show.js.map +1 -1
  54. package/dist/os/exploration/index.d.ts +1 -1
  55. package/dist/os/exploration/index.d.ts.map +1 -1
  56. package/dist/os/exploration/index.js +1 -1
  57. package/dist/os/exploration/index.js.map +1 -1
  58. package/dist/os/mission/handlers/archive.d.ts.map +1 -1
  59. package/dist/os/mission/handlers/archive.js +32 -5
  60. package/dist/os/mission/handlers/archive.js.map +1 -1
  61. package/dist/os/plan/frontmatter-io.d.ts.map +1 -1
  62. package/dist/os/plan/frontmatter-io.js +1 -3
  63. package/dist/os/plan/frontmatter-io.js.map +1 -1
  64. package/dist/os/plan/handlers/archive.d.ts.map +1 -1
  65. package/dist/os/plan/handlers/archive.js +15 -9
  66. package/dist/os/plan/handlers/archive.js.map +1 -1
  67. package/dist/os/rfc/acceptance.d.ts.map +1 -1
  68. package/dist/os/rfc/acceptance.js +5 -3
  69. package/dist/os/rfc/acceptance.js.map +1 -1
  70. package/dist/os/rfc/decision-log.js +1 -1
  71. package/dist/os/rfc/decision-log.js.map +1 -1
  72. package/dist/os/rfc/dna-trace.js +1 -1
  73. package/dist/os/rfc/dna-trace.js.map +1 -1
  74. package/dist/os/rfc/frontmatter-io.d.ts +6 -2
  75. package/dist/os/rfc/frontmatter-io.d.ts.map +1 -1
  76. package/dist/os/rfc/frontmatter-io.js +21 -9
  77. package/dist/os/rfc/frontmatter-io.js.map +1 -1
  78. package/dist/os/rfc/handlers/archive.d.ts.map +1 -1
  79. package/dist/os/rfc/handlers/archive.js +16 -10
  80. package/dist/os/rfc/handlers/archive.js.map +1 -1
  81. package/dist/os/rfc/handlers/check.js +1 -1
  82. package/dist/os/rfc/handlers/check.js.map +1 -1
  83. package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
  84. package/dist/os/rfc/handlers/implement-stamp.js +101 -19
  85. package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
  86. package/dist/os/rfc/handlers/index-graph.d.ts.map +1 -1
  87. package/dist/os/rfc/handlers/index-graph.js +6 -3
  88. package/dist/os/rfc/handlers/index-graph.js.map +1 -1
  89. package/dist/os/rfc/handlers/lifecycle.d.ts.map +1 -1
  90. package/dist/os/rfc/handlers/lifecycle.js +7 -1
  91. package/dist/os/rfc/handlers/lifecycle.js.map +1 -1
  92. package/dist/os/rfc/handlers/list-create.d.ts.map +1 -1
  93. package/dist/os/rfc/handlers/list-create.js +6 -1
  94. package/dist/os/rfc/handlers/list-create.js.map +1 -1
  95. package/dist/os/rfc/handlers/pipeline-status.d.ts.map +1 -1
  96. package/dist/os/rfc/handlers/pipeline-status.js +1 -1
  97. package/dist/os/rfc/handlers/pipeline-status.js.map +1 -1
  98. package/dist/os/rfc/handlers/supersede-propose.d.ts.map +1 -1
  99. package/dist/os/rfc/handlers/supersede-propose.js +3 -0
  100. package/dist/os/rfc/handlers/supersede-propose.js.map +1 -1
  101. package/dist/os/rfc/handlers/validate-rules.d.ts +2 -0
  102. package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
  103. package/dist/os/rfc/handlers/validate-rules.js +54 -8
  104. package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
  105. package/dist/os/rfc/handlers/validate.d.ts.map +1 -1
  106. package/dist/os/rfc/handlers/validate.js +7 -3
  107. package/dist/os/rfc/handlers/validate.js.map +1 -1
  108. package/dist/os/rfc/index.d.ts +2 -2
  109. package/dist/os/rfc/index.d.ts.map +1 -1
  110. package/dist/os/rfc/index.js +1 -1
  111. package/dist/os/rfc/index.js.map +1 -1
  112. package/dist/os/rfc/rfc.module.d.ts.map +1 -1
  113. package/dist/os/rfc/rfc.module.js +8 -2
  114. package/dist/os/rfc/rfc.module.js.map +1 -1
  115. package/dist/os/rfc/types.d.ts +22 -1
  116. package/dist/os/rfc/types.d.ts.map +1 -1
  117. package/dist/os/rfc/types.js +3 -0
  118. package/dist/os/rfc/types.js.map +1 -1
  119. package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
  120. package/dist/os/rfc/verification-evidence.js +2 -0
  121. package/dist/os/rfc/verification-evidence.js.map +1 -1
  122. package/dist/os/session/atif-parser.d.ts.map +1 -1
  123. package/dist/os/session/atif-parser.js +4 -2
  124. package/dist/os/session/atif-parser.js.map +1 -1
  125. package/dist/os/session/handlers/archive.d.ts.map +1 -1
  126. package/dist/os/session/handlers/archive.js +14 -8
  127. package/dist/os/session/handlers/archive.js.map +1 -1
  128. package/dist/os/session/handlers/validate.js +1 -1
  129. package/dist/os/session/handlers/validate.js.map +1 -1
  130. package/dist/os/session/index.d.ts +1 -1
  131. package/dist/os/session/index.d.ts.map +1 -1
  132. package/dist/os/session/index.js +1 -1
  133. package/dist/os/session/index.js.map +1 -1
  134. package/dist/os/spec/live-spec-merge.js +1 -1
  135. package/dist/os/spec/live-spec-merge.js.map +1 -1
  136. package/dist/os/spec/live-spec-validate.js +1 -1
  137. package/dist/os/spec/live-spec-validate.js.map +1 -1
  138. package/dist/os/spec/spec-materialize.js.map +1 -1
  139. package/dist/os/spec/spec-schema.d.ts +6 -12
  140. package/dist/os/spec/spec-schema.d.ts.map +1 -1
  141. package/dist/os/werkstatt/handlers/schema.js +2 -2
  142. package/dist/os/workflow/handlers.js +1 -1
  143. package/dist/os/workflow/handlers.js.map +1 -1
  144. package/dist/src/index.d.ts +1 -0
  145. package/dist/src/index.d.ts.map +1 -1
  146. package/dist/src/index.js +1 -0
  147. package/dist/src/index.js.map +1 -1
  148. package/dist/src/knowledge/compact.d.ts.map +1 -1
  149. package/dist/src/knowledge/compact.js +1 -3
  150. package/dist/src/knowledge/compact.js.map +1 -1
  151. package/dist/src/knowledge/parse.js +2 -2
  152. package/dist/src/knowledge/parse.js.map +1 -1
  153. package/dist/src/knowledge/promote.d.ts.map +1 -1
  154. package/dist/src/knowledge/promote.js.map +1 -1
  155. package/dist/src/migration-adapters/ignored-files.d.ts.map +1 -1
  156. package/dist/src/migration-adapters/ignored-files.js.map +1 -1
  157. package/dist/src/migration-adapters/registry.d.ts.map +1 -1
  158. package/dist/src/migration-adapters/registry.js +1 -4
  159. package/dist/src/migration-adapters/registry.js.map +1 -1
  160. package/dist/src/onboarding/agents-generate.js +1 -1
  161. package/dist/src/onboarding/agents-generate.js.map +1 -1
  162. package/dist/src/onboarding/nested-agents-generate.js.map +1 -1
  163. package/dist/src/onboarding/scaffold-project.js +1 -1
  164. package/dist/src/onboarding/scaffold-project.js.map +1 -1
  165. package/dist/src/profiles/terminology-utils.js.map +1 -1
  166. package/dist/src/utils/fs.js +2 -2
  167. package/dist/src/utils/fs.js.map +1 -1
  168. package/dist/src/utils/generated-marker.d.ts +1 -1
  169. package/dist/src/utils/generated-marker.js +1 -1
  170. package/dist/src/utils/string-utils.js +1 -1
  171. package/dist/src/validators/port-validate.d.ts.map +1 -1
  172. package/dist/src/validators/port-validate.js +7 -2
  173. package/dist/src/validators/port-validate.js.map +1 -1
  174. package/dist/src/validators/skill-validate.js +2 -2
  175. package/dist/src/validators/skill-validate.js.map +1 -1
  176. package/os/rfc/rfc-0000-template.md +3 -3
  177. package/package.json +174 -64
  178. package/skills/_shared/fo-pipeline-conventions.md +3 -3
  179. package/skills/fo/fo-compass-annotate/reference/comment-styles.md +12 -12
  180. package/skills/fo/fo-compass-annotate/reference/risk-patterns.md +10 -10
  181. package/skills/fo/fo-idea/SKILL.md +2 -0
  182. package/skills/fo/fo-idea-implement/SKILL.md +4 -0
  183. package/skills/fo/fo-idea-plan/SKILL.md +4 -0
  184. package/skills/fo/fo-memory-sync/learned-principles.md +1 -0
  185. package/skills/fo/fo-memory-sync/qa-log.md +1 -0
  186. package/skills/fo/fo-session-save/qa-log.md +1 -1
  187. package/skills/meta/port-to-forge/SKILL.md +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warpgogol/forge",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -15,115 +15,115 @@
15
15
  "framework"
16
16
  ],
17
17
  "homepage": "https://warpgogol.com",
18
- "main": "./dist/src/index.js",
19
- "types": "./dist/src/index.d.ts",
18
+ "main": "./src/index.ts",
19
+ "types": "./src/index.ts",
20
20
  "bin": {
21
21
  "forge": "./bin/cli.js"
22
22
  },
23
23
  "exports": {
24
24
  ".": {
25
- "types": "./dist/src/index.d.ts",
26
- "default": "./dist/src/index.js"
25
+ "types": "./src/index.ts",
26
+ "default": "./src/index.ts"
27
27
  },
28
28
  "./types": {
29
- "types": "./dist/src/types.d.ts",
30
- "default": "./dist/src/types.js"
29
+ "types": "./src/types.ts",
30
+ "default": "./src/types.ts"
31
31
  },
32
32
  "./utils": {
33
- "types": "./dist/src/utils/index.d.ts",
34
- "default": "./dist/src/utils/index.js"
33
+ "types": "./src/utils/index.ts",
34
+ "default": "./src/utils/index.ts"
35
35
  },
36
36
  "./config": {
37
- "types": "./dist/src/config/forge-config.d.ts",
38
- "default": "./dist/src/config/forge-config.js"
37
+ "types": "./src/config/forge-config.ts",
38
+ "default": "./src/config/forge-config.ts"
39
39
  },
40
40
  "./os/core": {
41
- "types": "./dist/os/core/core.module.d.ts",
42
- "default": "./dist/os/core/core.module.js"
41
+ "types": "./os/core/core.module.ts",
42
+ "default": "./os/core/core.module.ts"
43
43
  },
44
44
  "./os/compass": {
45
- "types": "./dist/os/compass/index.d.ts",
46
- "default": "./dist/os/compass/index.js"
45
+ "types": "./os/compass/index.ts",
46
+ "default": "./os/compass/index.ts"
47
47
  },
48
48
  "./os/naming": {
49
- "types": "./dist/os/naming/index.d.ts",
50
- "default": "./dist/os/naming/index.js"
49
+ "types": "./os/naming/index.ts",
50
+ "default": "./os/naming/index.ts"
51
51
  },
52
52
  "./os/naming-module": {
53
- "types": "./dist/os/naming/naming.module.d.ts",
54
- "default": "./dist/os/naming/naming.module.js"
53
+ "types": "./os/naming/naming.module.ts",
54
+ "default": "./os/naming/naming.module.ts"
55
55
  },
56
56
  "./os/rfc": {
57
- "types": "./dist/os/rfc/index.d.ts",
58
- "default": "./dist/os/rfc/index.js"
57
+ "types": "./os/rfc/index.ts",
58
+ "default": "./os/rfc/index.ts"
59
59
  },
60
60
  "./os/rfc-module": {
61
- "types": "./dist/os/rfc/rfc.module.d.ts",
62
- "default": "./dist/os/rfc/rfc.module.js"
61
+ "types": "./os/rfc/rfc.module.ts",
62
+ "default": "./os/rfc/rfc.module.ts"
63
63
  },
64
64
  "./os/werkstatt": {
65
- "types": "./dist/os/werkstatt/index.d.ts",
66
- "default": "./dist/os/werkstatt/index.js"
65
+ "types": "./os/werkstatt/index.ts",
66
+ "default": "./os/werkstatt/index.ts"
67
67
  },
68
68
  "./os/workflow": {
69
- "types": "./dist/os/workflow/index.d.ts",
70
- "default": "./dist/os/workflow/index.js"
69
+ "types": "./os/workflow/index.ts",
70
+ "default": "./os/workflow/index.ts"
71
71
  },
72
72
  "./os/workflow-module": {
73
- "types": "./dist/os/workflow/workflow.module.d.ts",
74
- "default": "./dist/os/workflow/workflow.module.js"
73
+ "types": "./os/workflow/workflow.module.ts",
74
+ "default": "./os/workflow/workflow.module.ts"
75
75
  },
76
76
  "./os/spec-module": {
77
- "types": "./dist/os/spec/spec.module.d.ts",
78
- "default": "./dist/os/spec/spec.module.js"
77
+ "types": "./os/spec/spec.module.ts",
78
+ "default": "./os/spec/spec.module.ts"
79
79
  },
80
80
  "./os/adr": {
81
- "types": "./dist/os/adr/index.d.ts",
82
- "default": "./dist/os/adr/index.js"
81
+ "types": "./os/adr/index.ts",
82
+ "default": "./os/adr/index.ts"
83
83
  },
84
84
  "./os/adr-module": {
85
- "types": "./dist/os/adr/adr.module.d.ts",
86
- "default": "./dist/os/adr/adr.module.js"
85
+ "types": "./os/adr/adr.module.ts",
86
+ "default": "./os/adr/adr.module.ts"
87
87
  },
88
88
  "./os/plan": {
89
- "types": "./dist/os/plan/index.d.ts",
90
- "default": "./dist/os/plan/index.js"
89
+ "types": "./os/plan/index.ts",
90
+ "default": "./os/plan/index.ts"
91
91
  },
92
92
  "./os/plan-module": {
93
- "types": "./dist/os/plan/plan.module.d.ts",
94
- "default": "./dist/os/plan/plan.module.js"
93
+ "types": "./os/plan/plan.module.ts",
94
+ "default": "./os/plan/plan.module.ts"
95
95
  },
96
96
  "./os/audit": {
97
- "types": "./dist/os/audit/index.d.ts",
98
- "default": "./dist/os/audit/index.js"
97
+ "types": "./os/audit/index.ts",
98
+ "default": "./os/audit/index.ts"
99
99
  },
100
100
  "./os/audit-module": {
101
- "types": "./dist/os/audit/audit.module.d.ts",
102
- "default": "./dist/os/audit/audit.module.js"
101
+ "types": "./os/audit/audit.module.ts",
102
+ "default": "./os/audit/audit.module.ts"
103
103
  },
104
104
  "./os/session": {
105
- "types": "./dist/os/session/index.d.ts",
106
- "default": "./dist/os/session/index.js"
105
+ "types": "./os/session/index.ts",
106
+ "default": "./os/session/index.ts"
107
107
  },
108
108
  "./os/session-module": {
109
- "types": "./dist/os/session/session.module.d.ts",
110
- "default": "./dist/os/session/session.module.js"
109
+ "types": "./os/session/session.module.ts",
110
+ "default": "./os/session/session.module.ts"
111
111
  },
112
112
  "./os/mission": {
113
- "types": "./dist/os/mission/index.d.ts",
114
- "default": "./dist/os/mission/index.js"
113
+ "types": "./os/mission/index.ts",
114
+ "default": "./os/mission/index.ts"
115
115
  },
116
116
  "./os/mission-module": {
117
- "types": "./dist/os/mission/mission.module.d.ts",
118
- "default": "./dist/os/mission/mission.module.js"
117
+ "types": "./os/mission/mission.module.ts",
118
+ "default": "./os/mission/mission.module.ts"
119
119
  },
120
120
  "./os/exploration": {
121
- "types": "./dist/os/exploration/index.d.ts",
122
- "default": "./dist/os/exploration/index.js"
121
+ "types": "./os/exploration/index.ts",
122
+ "default": "./os/exploration/index.ts"
123
123
  },
124
124
  "./os/exploration-module": {
125
- "types": "./dist/os/exploration/exploration.module.d.ts",
126
- "default": "./dist/os/exploration/exploration.module.js"
125
+ "types": "./os/exploration/exploration.module.ts",
126
+ "default": "./os/exploration/exploration.module.ts"
127
127
  }
128
128
  },
129
129
  "files": [
@@ -137,6 +137,14 @@
137
137
  "README.md",
138
138
  "LICENSE"
139
139
  ],
140
+ "scripts": {
141
+ "build": "pnpm exec tsc -p tsconfig.json",
142
+ "build:check": "pnpm exec tsc -p tsconfig.json --noEmit",
143
+ "lint": "pnpm exec eslint src --ext .ts",
144
+ "typecheck": "pnpm exec tsc -p tsconfig.json --noEmit",
145
+ "test": "vitest run --passWithNoTests",
146
+ "test:watch": "vitest"
147
+ },
140
148
  "dependencies": {
141
149
  "@aws-sdk/client-s3": "^3.700.0",
142
150
  "trash": "^10.1.1",
@@ -153,13 +161,115 @@
153
161
  "node": ">=20.0.0"
154
162
  },
155
163
  "publishConfig": {
156
- "access": "public"
164
+ "access": "public",
165
+ "main": "./dist/src/index.js",
166
+ "types": "./dist/src/index.d.ts",
167
+ "exports": {
168
+ ".": {
169
+ "types": "./dist/src/index.d.ts",
170
+ "default": "./dist/src/index.js"
171
+ },
172
+ "./types": {
173
+ "types": "./dist/src/types.d.ts",
174
+ "default": "./dist/src/types.js"
175
+ },
176
+ "./utils": {
177
+ "types": "./dist/src/utils/index.d.ts",
178
+ "default": "./dist/src/utils/index.js"
179
+ },
180
+ "./config": {
181
+ "types": "./dist/src/config/forge-config.d.ts",
182
+ "default": "./dist/src/config/forge-config.js"
183
+ },
184
+ "./os/core": {
185
+ "types": "./dist/os/core/core.module.d.ts",
186
+ "default": "./dist/os/core/core.module.js"
187
+ },
188
+ "./os/compass": {
189
+ "types": "./dist/os/compass/index.d.ts",
190
+ "default": "./dist/os/compass/index.js"
191
+ },
192
+ "./os/naming": {
193
+ "types": "./dist/os/naming/index.d.ts",
194
+ "default": "./dist/os/naming/index.js"
195
+ },
196
+ "./os/naming-module": {
197
+ "types": "./dist/os/naming/naming.module.d.ts",
198
+ "default": "./dist/os/naming/naming.module.js"
199
+ },
200
+ "./os/rfc": {
201
+ "types": "./dist/os/rfc/index.d.ts",
202
+ "default": "./dist/os/rfc/index.js"
203
+ },
204
+ "./os/rfc-module": {
205
+ "types": "./dist/os/rfc/rfc.module.d.ts",
206
+ "default": "./dist/os/rfc/rfc.module.js"
207
+ },
208
+ "./os/werkstatt": {
209
+ "types": "./dist/os/werkstatt/index.d.ts",
210
+ "default": "./dist/os/werkstatt/index.js"
211
+ },
212
+ "./os/workflow": {
213
+ "types": "./dist/os/workflow/index.d.ts",
214
+ "default": "./dist/os/workflow/index.js"
215
+ },
216
+ "./os/workflow-module": {
217
+ "types": "./dist/os/workflow/workflow.module.d.ts",
218
+ "default": "./dist/os/workflow/workflow.module.js"
219
+ },
220
+ "./os/spec-module": {
221
+ "types": "./dist/os/spec/spec.module.d.ts",
222
+ "default": "./dist/os/spec/spec.module.js"
223
+ },
224
+ "./os/adr": {
225
+ "types": "./dist/os/adr/index.d.ts",
226
+ "default": "./dist/os/adr/index.js"
227
+ },
228
+ "./os/adr-module": {
229
+ "types": "./dist/os/adr/adr.module.d.ts",
230
+ "default": "./dist/os/adr/adr.module.js"
231
+ },
232
+ "./os/plan": {
233
+ "types": "./dist/os/plan/index.d.ts",
234
+ "default": "./dist/os/plan/index.js"
235
+ },
236
+ "./os/plan-module": {
237
+ "types": "./dist/os/plan/plan.module.d.ts",
238
+ "default": "./dist/os/plan/plan.module.js"
239
+ },
240
+ "./os/audit": {
241
+ "types": "./dist/os/audit/index.d.ts",
242
+ "default": "./dist/os/audit/index.js"
243
+ },
244
+ "./os/audit-module": {
245
+ "types": "./dist/os/audit/audit.module.d.ts",
246
+ "default": "./dist/os/audit/audit.module.js"
247
+ },
248
+ "./os/session": {
249
+ "types": "./dist/os/session/index.d.ts",
250
+ "default": "./dist/os/session/index.js"
251
+ },
252
+ "./os/session-module": {
253
+ "types": "./dist/os/session/session.module.d.ts",
254
+ "default": "./dist/os/session/session.module.js"
255
+ },
256
+ "./os/mission": {
257
+ "types": "./dist/os/mission/index.d.ts",
258
+ "default": "./dist/os/mission/index.js"
259
+ },
260
+ "./os/mission-module": {
261
+ "types": "./dist/os/mission/mission.module.d.ts",
262
+ "default": "./dist/os/mission/mission.module.js"
263
+ },
264
+ "./os/exploration": {
265
+ "types": "./dist/os/exploration/index.d.ts",
266
+ "default": "./dist/os/exploration/index.js"
267
+ },
268
+ "./os/exploration-module": {
269
+ "types": "./dist/os/exploration/exploration.module.d.ts",
270
+ "default": "./dist/os/exploration/exploration.module.js"
271
+ }
272
+ }
157
273
  },
158
- "scripts": {
159
- "build": "pnpm exec tsc -p tsconfig.json",
160
- "build:check": "pnpm exec tsc -p tsconfig.json --noEmit",
161
- "clean": "rm -rf dist",
162
- "test": "vitest run --passWithNoTests",
163
- "test:watch": "vitest"
164
- }
165
- }
274
+ "packageManager": "pnpm@11.10.0"
275
+ }
@@ -99,7 +99,7 @@ Every `run_command` call MUST use a 6-minute (360 000 ms) execution budget. This
99
99
 
100
100
  - The `run_command` tool has no built-in timeout parameter. `WaitMsBeforeAsync` is the only mechanism to regain control after a fixed duration.
101
101
  - Abandoning a still-running process is acceptable — the process may complete in the background, but the agent is unblocked and can retry or try an alternative.
102
- - This covers all command classes: `pnpm exec site-kernel run ...`, `pnpm --filter <pkg> run build:check`, `astro check`, `git`, `pnpm install`, etc.
102
+ - This covers all command classes: `pnpm exec werkstatt run ...`, `pnpm --filter <pkg> run build:check`, `astro check`, `git`, `pnpm install`, etc.
103
103
  - Site-kernel commands already have internal `timeoutMs`, but the agent-side 6-min budget is a safety net for ALL commands, not just site-kernel.
104
104
 
105
105
  ## Binding resolution and degradation
@@ -140,8 +140,8 @@ Skills reference bindings by key, never by value. To resolve a binding:
140
140
 
141
141
  A skill needs to run `rfc.validate` for `RFC-XXXX`:
142
142
 
143
- 1. Read `forge.yaml` → `bindings.commands.validateRfc` = `"pnpm exec site-kernel run rfc.validate {id} --json"`
144
- 2. Substitute `{id}` → `"pnpm exec site-kernel run rfc.validate RFC-XXXX --json"`
143
+ 1. Read `forge.yaml` → `bindings.commands.validateRfc` = `"pnpm exec werkstatt run rfc.validate {id} --json"`
144
+ 2. Substitute `{id}` → `"pnpm exec werkstatt run rfc.validate RFC-XXXX --json"`
145
145
  3. Run the resolved command.
146
146
 
147
147
  If `bindings.commands.validateRfc` were `null`, the skill would skip the step and report: `Degraded: commands.validateRfc — not configured in forge.yaml`.
@@ -4,18 +4,18 @@ Compass headers are embedded in source file comments. The comment syntax varies
4
4
 
5
5
  ## Mapping
6
6
 
7
- | Extension | Comment syntax | Example |
8
- | --- | --- | --- |
9
- | `.ts` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
10
- | `.tsx` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
11
- | `.astro` | `<!-- ... -->` HTML comment | `<!-- <MODULE_CONTRACT> ... </MODULE_CONTRACT> -->` |
12
- | `.js` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
13
- | `.mjs` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
14
- | `.css` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
15
- | `.yaml` | `# ` line comment | `# <MODULE_CONTRACT>` (each line prefixed with `# `) |
16
- | `.yml` | `# ` line comment | `# <MODULE_CONTRACT>` (each line prefixed with `# `) |
17
- | `.json` | Not supported | JSON files cannot carry comments; skip Compass headers |
18
- | `.md` | `<!-- ... -->` HTML comment | `<!-- <MODULE_CONTRACT> ... </MODULE_CONTRACT> -->` |
7
+ | Extension | Comment syntax | Example |
8
+ | --------- | --------------------------- | ------------------------------------------------------ |
9
+ | `.ts` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
10
+ | `.tsx` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
11
+ | `.astro` | `<!-- ... -->` HTML comment | `<!-- <MODULE_CONTRACT> ... </MODULE_CONTRACT> -->` |
12
+ | `.js` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
13
+ | `.mjs` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
14
+ | `.css` | `/* ... */` block comment | `/* <MODULE_CONTRACT> ... </MODULE_CONTRACT> */` |
15
+ | `.yaml` | `# ` line comment | `# <MODULE_CONTRACT>` (each line prefixed with `# `) |
16
+ | `.yml` | `# ` line comment | `# <MODULE_CONTRACT>` (each line prefixed with `# `) |
17
+ | `.json` | Not supported | JSON files cannot carry comments; skip Compass headers |
18
+ | `.md` | `<!-- ... -->` HTML comment | `<!-- <MODULE_CONTRACT> ... </MODULE_CONTRACT> -->` |
19
19
 
20
20
  ## Rules
21
21
 
@@ -4,16 +4,16 @@ These patterns are scanned deterministically (no LLM) to flag files that handle
4
4
 
5
5
  ## Patterns
6
6
 
7
- | Pattern | Regex | Risk level | Description |
8
- | --- | --- | --- | --- |
9
- | `sign` | `\b(sign|signing|signature)\b` | high | Cryptographic signing operations |
10
- | `crypto` | `\b(crypto|encrypt|decrypt|cipher|aes|rsa|hmac)\b` | high | Cryptographic operations |
11
- | `vault` | `\b(vault|secret|password|apiKey|api_key|token)\b` | high | Secret/credential handling |
12
- | `migrate` | `\b(migrate|migration|migrator)\b` | medium | Data migration logic |
13
- | `publish` | `\b(publish|deploy|release)\b` | medium | Publishing/deployment operations |
14
- | `delete` | `\b(delete|remove|destroy|purge)\b` | medium | Destructive operations |
15
- | `network` | `\b(fetch|http|request|axios|got)\b` | low | Network requests |
16
- | `fs-write` | `\b(writeFile|mkdir|rm |unlink|rename)\b` | low | Filesystem write operations |
7
+ | Pattern | Regex | Risk level | Description |
8
+ | ---------- | ------------- | ---------- | ------------- |
9
+ | `sign` | `\b(sign | signing | signature)\b` | high | Cryptographic signing operations |
10
+ | `crypto` | `\b(crypto | encrypt | decrypt | cipher | aes | rsa | hmac)\b` | high | Cryptographic operations |
11
+ | `vault` | `\b(vault | secret | password | apiKey | api_key | token)\b` | high | Secret/credential handling |
12
+ | `migrate` | `\b(migrate | migration | migrator)\b` | medium | Data migration logic |
13
+ | `publish` | `\b(publish | deploy | release)\b` | medium | Publishing/deployment operations |
14
+ | `delete` | `\b(delete | remove | destroy | purge)\b` | medium | Destructive operations |
15
+ | `network` | `\b(fetch | http | request | axios | got)\b` | low | Network requests |
16
+ | `fs-write` | `\b(writeFile | mkdir | rm | unlink | rename)\b` | low | Filesystem write operations |
17
17
 
18
18
  ## Rules
19
19
 
@@ -223,6 +223,8 @@ Process documents **sequentially in dependency order** — foundational document
223
223
  2. When the creation skill collects metadata, include the cross-references:
224
224
  - **`related`** — list all other documents in the series by their assigned id (once created) or by title (if not yet created).
225
225
  - **`amends`** — if a document in the series amends an existing accepted RFC, set the `amends` field.
226
+ - **`dependsOn`** — for each document, based on the decomposition plan's dependency edges, write `dependsOn: [RFC-XXXX]` listing the RFC IDs that must be `implemented` before this RFC can be stamped. Direct dependencies only — not transitive.
227
+ - **`batch`** — write a shared `batch: <kebab-case-slug>` for all documents in the series. The slug should be descriptive of the overall task (e.g. "pbp-locale-fixes", "engine-consolidation"). Must match `/^[a-z0-9]+(-[a-z0-9]+)*$/`.
226
228
  3. The creation skill will grill, create, fill, validate, and report — let it run fully.
227
229
  4. After each document is created, record its assigned id for use in subsequent documents' `related` fields.
228
230
  5. Do not pause between documents in the series — continue to the next immediately.
@@ -503,6 +503,10 @@ If multiple documents were processed, present a single batch summary at the very
503
503
 
504
504
  Do not output per-document summaries or "Moving to XXXX next" messages during the loop; they belong here, at the very end.
505
505
 
506
+ ## Session affinity (advisory)
507
+
508
+ When an RFC was planned in this session, prefer implementing it in this session too. The session context contains edge cases and mental models not fully captured in the plan text. If starting a new session, re-read the plan file and the RFC body before implementing. This is a recommendation, not a machine-enforced constraint — sessions have no forge-internal identity.
509
+
506
510
  ## Constraints
507
511
 
508
512
  - **Commit only your own files.** Stage only the files this skill produces or modifies — document files, code files touched by implementation, documentation files. Do not stage unrelated changes. Another agent may be working in a different session; `git add -A` or `git add .` is forbidden.
@@ -230,6 +230,10 @@ If multiple RFCs were processed, present a single batch summary in `aiLanguage`.
230
230
 
231
231
  Do not output per-RFC summaries or "Moving to RFC-XXXX next" messages during the loop; they belong here, at the very end.
232
232
 
233
+ ## Session affinity (advisory)
234
+
235
+ When an RFC was planned in this session, prefer implementing it in this session too. The session context contains edge cases and mental models not fully captured in the plan text. If starting a new session, re-read the plan file and the RFC body before implementing. This is a recommendation, not a machine-enforced constraint — sessions have no forge-internal identity.
236
+
233
237
  ## Constraints
234
238
 
235
239
  - **Commit only your own files.** Stage only the files this skill produces or modifies — the plan file and the RFC file (for status transitions). Do not stage unrelated changes. Another agent may be working in a different session; `git add -A` or `git add .` is forbidden.
@@ -1,6 +1,7 @@
1
1
  <!-- L2: Concrete principles distilled from past runs, with confirmations counter.
2
2
  At confirmations >= 3, the skill auto-applies the principle without asking.
3
3
  Rejecting a recommended answer resets confirmations to 0. -->
4
+
4
5
  # Learned Principles
5
6
 
6
7
  <!-- Format: - principle: <text> | confirmations: N | project: <path-or-remote-or-all> -->
@@ -1,5 +1,6 @@
1
1
  <!-- L0: Append-only Q&A log. Each entry records a question asked and the operator's answer.
2
2
  Format: [YYYY-MM-DD] project:<path-or-remote> Q: <question> A: <answer> -->
3
+
3
4
  # Q&A Log
4
5
 
5
6
  <!-- Entries are appended by the skill during runs. Do not hand-edit. -->
@@ -8,4 +8,4 @@ Each entry: date, question, answer, context.
8
8
 
9
9
  ---
10
10
 
11
- *(no questions asked yet — initial creation)*
11
+ _(no questions asked yet — initial creation)_
@@ -28,7 +28,7 @@ Ask the operator what pattern (skill, command, or workflow) they want to port in
28
28
  Use the `grilling` skill to stress-test:
29
29
 
30
30
  - Is the pattern truly project-agnostic? Does it reference Forge-specific concepts (cosmic names, sections, biomes)?
31
- - Does it depend on project-specific packages (`@warpgogol/site-kernel`, `@warpgogol/ui`)?
31
+ - Does it depend on project-specific packages (`@warpgogol/werkstatt`, `@warpgogol/werkstatt-site`)?
32
32
  - What are the minimal dependencies needed (ontology, fingerprint, share)?
33
33
  - Should it be a skill, a command, or both?
34
34
 
@@ -44,8 +44,8 @@ Run `port.scaffold --name <name> --type <skill|command> --category <category>` t
44
44
 
45
45
  Port the implementation, ensuring:
46
46
 
47
- - No imports from `@warpgogol/site-kernel` or other project-specific packages.
48
- - Use `@warpgogol/ontology` for schemas, `@warpgogol/fingerprint` for hashing, `@warpgogol/share` for fs helpers.
47
+ - No imports from `@warpgogol/werkstatt` or other project-specific packages.
48
+ - Use `@warpgogol/werkstatt-site/ontology` for schemas, `@warpgogol/werkstatt/fingerprint` for hashing, `@warpgogol/werkstatt-site/share` for fs helpers.
49
49
  - Add Compass scaffolding (MODULE_CONTRACT, CHANGE_SUMMARY) to new TypeScript files.
50
50
 
51
51
  ### 6. Validate