mindforge-cc 11.4.0 → 11.5.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 (92) hide show
  1. package/.agent/CLAUDE.md +13 -0
  2. package/.agent/hooks/lib/hook-flags.js +78 -0
  3. package/.agent/hooks/lib/pretooluse-visible-output.js +46 -0
  4. package/.agent/hooks/mindforge-block-no-verify.js +552 -0
  5. package/.agent/hooks/mindforge-config-protection.js +144 -0
  6. package/.agent/hooks/run-with-flags.js +207 -0
  7. package/.agent/mindforge/checkpoint.md +76 -0
  8. package/.agent/mindforge/harness-audit.md +59 -0
  9. package/.agent/mindforge/instinct.md +46 -0
  10. package/.agent/mindforge/orch-add-feature.md +43 -0
  11. package/.agent/mindforge/orch-build-mvp.md +48 -0
  12. package/.agent/mindforge/orch-change-feature.md +45 -0
  13. package/.agent/mindforge/orch-fix-defect.md +43 -0
  14. package/.agent/mindforge/orch-refine-code.md +43 -0
  15. package/.claude/CLAUDE.md +13 -0
  16. package/.claude/commands/mindforge/checkpoint.md +76 -0
  17. package/.claude/commands/mindforge/execute-phase.md +47 -6
  18. package/.claude/commands/mindforge/harness-audit.md +59 -0
  19. package/.claude/commands/mindforge/instinct.md +46 -0
  20. package/.claude/commands/mindforge/orch-add-feature.md +43 -0
  21. package/.claude/commands/mindforge/orch-build-mvp.md +48 -0
  22. package/.claude/commands/mindforge/orch-change-feature.md +45 -0
  23. package/.claude/commands/mindforge/orch-fix-defect.md +43 -0
  24. package/.claude/commands/mindforge/orch-refine-code.md +43 -0
  25. package/.claude/commands/mindforge/plan-write.md +11 -0
  26. package/.claude/commands/mindforge/product-spec.md +76 -0
  27. package/.mindforge/config.json +2 -2
  28. package/.mindforge/engine/instincts/instinct-schema.md +17 -9
  29. package/.mindforge/imported-agents.jsonl +10 -0
  30. package/.mindforge/manifests/install-components.json +36 -0
  31. package/.mindforge/manifests/install-modules.json +193 -0
  32. package/.mindforge/manifests/install-profiles.json +57 -0
  33. package/.mindforge/memory/sync-manifest.json +1 -1
  34. package/.mindforge/personas/gan-evaluator.md +226 -0
  35. package/.mindforge/personas/gan-generator.md +151 -0
  36. package/.mindforge/personas/gan-planner.md +118 -0
  37. package/.mindforge/personas/harness-optimizer.md +55 -0
  38. package/.mindforge/personas/loop-operator.md +58 -0
  39. package/.mindforge/schemas/hooks.schema.json +199 -0
  40. package/.mindforge/schemas/install-modules.schema.json +44 -0
  41. package/.mindforge/schemas/install-state.schema.json +95 -0
  42. package/.mindforge/schemas/plugin.schema.json +75 -0
  43. package/.mindforge/schemas/provenance.schema.json +31 -0
  44. package/.mindforge/skills/agent-architecture-audit/SKILL.md +272 -0
  45. package/.mindforge/skills/continuous-learning/SKILL.md +16 -0
  46. package/.mindforge/skills/orch-pipeline/SKILL.md +284 -0
  47. package/.mindforge/skills/writing-plans/SKILL.md +76 -0
  48. package/CHANGELOG.md +75 -0
  49. package/MINDFORGE.md +3 -3
  50. package/RELEASENOTES.md +86 -0
  51. package/SECURITY.md +16 -0
  52. package/bin/autonomous/auto-runner.js +46 -5
  53. package/bin/autonomous/handoff-schema.js +114 -0
  54. package/bin/autonomous/session-guardian.sh +138 -0
  55. package/bin/autonomous/supervisor.js +98 -0
  56. package/bin/change-classifier.js +19 -5
  57. package/bin/governance/approve.js +61 -28
  58. package/bin/governance/config-manager.js +3 -1
  59. package/bin/governance/rbac-manager.js +14 -6
  60. package/bin/harness-audit.js +520 -0
  61. package/bin/hooks/instinct-capture-hook.js +16 -1
  62. package/bin/hooks/lib/detect-project.js +72 -0
  63. package/bin/installer/harness-adapter-compliance.js +321 -0
  64. package/bin/installer/install-manifests.js +200 -0
  65. package/bin/installer/install-state.js +243 -0
  66. package/bin/installer-core.js +1 -1
  67. package/bin/learning/instinct-cli.js +359 -0
  68. package/bin/learning/lib/ssrf-guard.js +252 -0
  69. package/bin/memory/eis-client.js +31 -10
  70. package/bin/models/llm-errors.js +79 -0
  71. package/bin/models/model-client.js +39 -4
  72. package/bin/models/ollama-provider.js +115 -0
  73. package/bin/models/openai-provider.js +40 -9
  74. package/bin/models/profiles-loader.js +147 -0
  75. package/bin/models/provider-registry.js +59 -0
  76. package/bin/revops/market-evaluator.js +23 -2
  77. package/bin/revops/router-steering-v2.js +17 -2
  78. package/bin/security/trust-boundaries.js +15 -3
  79. package/bin/utils/readiness-gate.js +169 -0
  80. package/bin/worktree/engine.js +497 -0
  81. package/package.json +8 -2
  82. package/subagents/categories/04-quality-security/.claude-plugin/plugin.json +10 -0
  83. package/subagents/categories/04-quality-security/go-build-resolver.md +105 -0
  84. package/subagents/categories/04-quality-security/go-reviewer.md +87 -0
  85. package/subagents/categories/04-quality-security/python-reviewer.md +109 -0
  86. package/subagents/categories/04-quality-security/react-build-resolver.md +215 -0
  87. package/subagents/categories/04-quality-security/react-reviewer.md +167 -0
  88. package/subagents/categories/04-quality-security/rust-build-resolver.md +159 -0
  89. package/subagents/categories/04-quality-security/rust-reviewer.md +105 -0
  90. package/subagents/categories/04-quality-security/silent-failure-hunter.md +67 -0
  91. package/subagents/categories/04-quality-security/type-design-analyzer.md +58 -0
  92. package/subagents/categories/04-quality-security/typescript-reviewer.md +126 -0
@@ -0,0 +1,199 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MindForge Hooks Configuration",
4
+ "description": "Schema for MindForge settings.json hooks. Ported from ECC's Claude Code hooks schema, with the event-name enum EXTENDED to include the Gemini-mirror events (BeforeTool/AfterTool) used by .agent/settings.json, so a single schema lints BOTH .claude/settings.json and the .agent mirror.",
5
+ "$defs": {
6
+ "stringArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "minItems": 1
13
+ },
14
+ "commandHookItem": {
15
+ "type": "object",
16
+ "required": [
17
+ "type",
18
+ "command"
19
+ ],
20
+ "properties": {
21
+ "type": {
22
+ "type": "string",
23
+ "const": "command",
24
+ "description": "Run a local command"
25
+ },
26
+ "command": {
27
+ "oneOf": [
28
+ {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ {
33
+ "$ref": "#/$defs/stringArray"
34
+ }
35
+ ]
36
+ },
37
+ "async": {
38
+ "type": "boolean",
39
+ "description": "Run hook asynchronously in background without blocking"
40
+ },
41
+ "timeout": {
42
+ "type": "number",
43
+ "minimum": 0,
44
+ "description": "Timeout in milliseconds (Claude Code / MindForge convention)"
45
+ }
46
+ },
47
+ "additionalProperties": true
48
+ },
49
+ "httpHookItem": {
50
+ "type": "object",
51
+ "required": [
52
+ "type",
53
+ "url"
54
+ ],
55
+ "properties": {
56
+ "type": {
57
+ "type": "string",
58
+ "const": "http"
59
+ },
60
+ "url": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "headers": {
65
+ "type": "object",
66
+ "additionalProperties": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ "allowedEnvVars": {
71
+ "$ref": "#/$defs/stringArray"
72
+ },
73
+ "timeout": {
74
+ "type": "number",
75
+ "minimum": 0
76
+ }
77
+ },
78
+ "additionalProperties": true
79
+ },
80
+ "promptHookItem": {
81
+ "type": "object",
82
+ "required": [
83
+ "type",
84
+ "prompt"
85
+ ],
86
+ "properties": {
87
+ "type": {
88
+ "type": "string",
89
+ "enum": ["prompt", "agent"]
90
+ },
91
+ "prompt": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ },
95
+ "model": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ },
99
+ "timeout": {
100
+ "type": "number",
101
+ "minimum": 0
102
+ }
103
+ },
104
+ "additionalProperties": true
105
+ },
106
+ "hookItem": {
107
+ "oneOf": [
108
+ {
109
+ "$ref": "#/$defs/commandHookItem"
110
+ },
111
+ {
112
+ "$ref": "#/$defs/httpHookItem"
113
+ },
114
+ {
115
+ "$ref": "#/$defs/promptHookItem"
116
+ }
117
+ ]
118
+ },
119
+ "matcherEntry": {
120
+ "type": "object",
121
+ "required": [
122
+ "hooks"
123
+ ],
124
+ "properties": {
125
+ "matcher": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string"
129
+ },
130
+ {
131
+ "type": "object"
132
+ }
133
+ ]
134
+ },
135
+ "hooks": {
136
+ "type": "array",
137
+ "items": {
138
+ "$ref": "#/$defs/hookItem"
139
+ }
140
+ },
141
+ "description": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "type": "object",
148
+ "properties": {
149
+ "$schema": {
150
+ "type": "string"
151
+ },
152
+ "permissions": {
153
+ "type": "object",
154
+ "properties": {
155
+ "deny": { "$ref": "#/$defs/stringArray" },
156
+ "allow": { "type": "array", "items": { "type": "string" } },
157
+ "ask": { "type": "array", "items": { "type": "string" } }
158
+ },
159
+ "additionalProperties": true
160
+ },
161
+ "hooks": {
162
+ "type": "object",
163
+ "propertyNames": {
164
+ "enum": [
165
+ "SessionStart",
166
+ "UserPromptSubmit",
167
+ "PreToolUse",
168
+ "PermissionRequest",
169
+ "PostToolUse",
170
+ "PostToolUseFailure",
171
+ "Notification",
172
+ "SubagentStart",
173
+ "Stop",
174
+ "SubagentStop",
175
+ "PreCompact",
176
+ "InstructionsLoaded",
177
+ "TeammateIdle",
178
+ "TaskCompleted",
179
+ "ConfigChange",
180
+ "WorktreeCreate",
181
+ "WorktreeRemove",
182
+ "SessionEnd",
183
+ "BeforeTool",
184
+ "AfterTool"
185
+ ]
186
+ },
187
+ "additionalProperties": {
188
+ "type": "array",
189
+ "items": {
190
+ "$ref": "#/$defs/matcherEntry"
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "required": [
196
+ "hooks"
197
+ ],
198
+ "additionalProperties": true
199
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MindForge install modules manifest",
4
+ "description": "Declarative module/profile/component selection vocabulary for the MindForge installer. Ported from ECC; the adapter-factory wiring that CONSUMES a resolved plan is deferred to a future, separately-reviewed PR — this schema + resolver ship INERT (the installer-core.js path is unchanged). Replaces the two-boolean --minimal/--with-utils selectivity once wired.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["version", "modules"],
8
+ "properties": {
9
+ "version": { "type": "integer", "minimum": 1 },
10
+ "modules": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["id", "kind", "description", "paths", "targets", "defaultInstall"],
16
+ "properties": {
17
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
18
+ "kind": { "type": "string", "minLength": 1, "description": "asset family: rules|agents|commands|hooks|skills|engine|configs|...)" },
19
+ "description": { "type": "string", "minLength": 1 },
20
+ "paths": {
21
+ "type": "array",
22
+ "minItems": 1,
23
+ "items": { "type": "string", "minLength": 1 },
24
+ "description": "repo-relative source paths this module installs"
25
+ },
26
+ "targets": {
27
+ "type": "array",
28
+ "minItems": 1,
29
+ "items": { "type": "string", "minLength": 1 },
30
+ "description": "runtime ids this module supports (subset of SUPPORTED_INSTALL_TARGETS)"
31
+ },
32
+ "dependencies": {
33
+ "type": "array",
34
+ "items": { "type": "string" },
35
+ "default": []
36
+ },
37
+ "defaultInstall": { "type": "boolean" },
38
+ "cost": { "type": "string", "enum": ["light", "medium", "heavy"] },
39
+ "stability": { "type": "string", "enum": ["stable", "beta", "experimental"] }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,95 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MindForge install state",
4
+ "description": "Provenance record written after a MindForge install/update. Sibling to .agent/file-manifest.json (which stores content hashes); this records WHO installed, from WHICH source commit, for WHICH runtimes/scope, WHEN, and the operation log — enabling precise diff, uninstall, and supply-chain audit.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "installedAt",
10
+ "target",
11
+ "request",
12
+ "source",
13
+ "operations"
14
+ ],
15
+ "properties": {
16
+ "schemaVersion": {
17
+ "type": "string",
18
+ "const": "mindforge.install.v1"
19
+ },
20
+ "installedAt": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "lastValidatedAt": {
25
+ "type": "string",
26
+ "minLength": 1
27
+ },
28
+ "target": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": ["scope", "root"],
32
+ "properties": {
33
+ "scope": {
34
+ "type": "string",
35
+ "enum": ["global", "local"]
36
+ },
37
+ "root": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "installStatePath": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ }
45
+ }
46
+ },
47
+ "request": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": ["runtimes"],
51
+ "properties": {
52
+ "runtimes": {
53
+ "type": "array",
54
+ "items": { "type": "string", "minLength": 1 },
55
+ "description": "Runtimes installed for, e.g. claude, antigravity, cursor, opencode, gemini, copilot"
56
+ },
57
+ "withUtils": { "type": "boolean" },
58
+ "minimal": { "type": "boolean" }
59
+ }
60
+ },
61
+ "source": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": ["repoVersion", "repoCommit"],
65
+ "properties": {
66
+ "repoVersion": { "type": ["string", "null"] },
67
+ "repoCommit": { "type": ["string", "null"] }
68
+ }
69
+ },
70
+ "operations": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "additionalProperties": true,
75
+ "required": ["kind", "destinationPath", "ownership"],
76
+ "properties": {
77
+ "kind": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "description": "copy | merge-json | scaffold | symlink | transform"
81
+ },
82
+ "sourceRelativePath": { "type": "string", "minLength": 1 },
83
+ "destinationPath": { "type": "string", "minLength": 1 },
84
+ "runtime": { "type": "string", "minLength": 1 },
85
+ "ownership": {
86
+ "type": "string",
87
+ "minLength": 1,
88
+ "description": "mindforge | user | shared — governs what uninstall may remove"
89
+ },
90
+ "sha256": { "type": "string", "minLength": 1 }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MindForge Plugin Configuration",
4
+ "description": "Schema for MindForge / Claude plugin manifests (.claude-plugin/plugin.json). Ported from ECC unchanged — the Claude plugin manifest format is shared.",
5
+ "type": "object",
6
+ "required": ["name"],
7
+ "properties": {
8
+ "name": { "type": "string" },
9
+ "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" },
10
+ "description": { "type": "string" },
11
+ "author": {
12
+ "oneOf": [
13
+ { "type": "string" },
14
+ {
15
+ "type": "object",
16
+ "properties": {
17
+ "name": { "type": "string" },
18
+ "url": { "type": "string", "format": "uri" }
19
+ },
20
+ "required": ["name"]
21
+ }
22
+ ]
23
+ },
24
+ "homepage": { "type": "string", "format": "uri" },
25
+ "repository": { "type": "string" },
26
+ "license": { "type": "string" },
27
+ "keywords": {
28
+ "type": "array",
29
+ "items": { "type": "string" }
30
+ },
31
+ "skills": {
32
+ "type": "array",
33
+ "items": { "type": "string" }
34
+ },
35
+ "commands": {
36
+ "type": "array",
37
+ "items": { "type": "string" }
38
+ },
39
+ "agents": {
40
+ "type": "array",
41
+ "items": { "type": "string" }
42
+ },
43
+ "mcpServers": {
44
+ "oneOf": [
45
+ { "type": "string" },
46
+ {
47
+ "type": "array",
48
+ "items": { "type": "string" }
49
+ },
50
+ {
51
+ "type": "object"
52
+ }
53
+ ]
54
+ },
55
+ "features": {
56
+ "type": "object",
57
+ "properties": {
58
+ "agents": { "type": "integer", "minimum": 0 },
59
+ "commands": { "type": "integer", "minimum": 0 },
60
+ "skills": { "type": "integer", "minimum": 0 },
61
+ "configAssets": { "type": "boolean" },
62
+ "hookEvents": {
63
+ "type": "array",
64
+ "items": { "type": "string" }
65
+ },
66
+ "customTools": {
67
+ "type": "array",
68
+ "items": { "type": "string" }
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "additionalProperties": true
75
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MindForge Skill/Agent Provenance",
4
+ "description": "Provenance metadata for learned, imported, or published skills and subagents. Used to harden the supply chain — validated by bin/skill-validator.js and the publish-skill/install-skill CLI before an asset is trusted.",
5
+ "type": "object",
6
+ "properties": {
7
+ "source": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Origin (URL, path, or identifier)"
11
+ },
12
+ "created_at": {
13
+ "type": "string",
14
+ "format": "date-time",
15
+ "description": "ISO 8601 timestamp"
16
+ },
17
+ "confidence": {
18
+ "type": "number",
19
+ "minimum": 0,
20
+ "maximum": 1,
21
+ "description": "Confidence score 0-1"
22
+ },
23
+ "author": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "description": "Who or what produced the asset"
27
+ }
28
+ },
29
+ "required": ["source", "created_at", "confidence", "author"],
30
+ "additionalProperties": true
31
+ }