@hongmaple0820/med-scale-research-os 0.43.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 (1104) hide show
  1. package/.scale/mcp-servers.yaml +144 -0
  2. package/.scale/skills.json +830 -0
  3. package/.scale/verification.json +52 -0
  4. package/LICENSE +15 -0
  5. package/README.en.md +156 -0
  6. package/README.md +156 -0
  7. package/dist/adapters/AiderAdapter.d.ts +22 -0
  8. package/dist/adapters/AiderAdapter.js +262 -0
  9. package/dist/adapters/AiderAdapter.js.map +1 -0
  10. package/dist/adapters/AntigravityAdapter.d.ts +4 -0
  11. package/dist/adapters/AntigravityAdapter.js +21 -0
  12. package/dist/adapters/AntigravityAdapter.js.map +1 -0
  13. package/dist/adapters/ClaudeCodeAdapter.d.ts +54 -0
  14. package/dist/adapters/ClaudeCodeAdapter.js +185 -0
  15. package/dist/adapters/ClaudeCodeAdapter.js.map +1 -0
  16. package/dist/adapters/ClineAdapter.d.ts +4 -0
  17. package/dist/adapters/ClineAdapter.js +20 -0
  18. package/dist/adapters/ClineAdapter.js.map +1 -0
  19. package/dist/adapters/CodexAdapter.d.ts +15 -0
  20. package/dist/adapters/CodexAdapter.js +160 -0
  21. package/dist/adapters/CodexAdapter.js.map +1 -0
  22. package/dist/adapters/CursorAdapter.d.ts +14 -0
  23. package/dist/adapters/CursorAdapter.js +171 -0
  24. package/dist/adapters/CursorAdapter.js.map +1 -0
  25. package/dist/adapters/DeepSeekTuiAdapter.d.ts +19 -0
  26. package/dist/adapters/DeepSeekTuiAdapter.js +263 -0
  27. package/dist/adapters/DeepSeekTuiAdapter.js.map +1 -0
  28. package/dist/adapters/DoubaoAdapter.d.ts +14 -0
  29. package/dist/adapters/DoubaoAdapter.js +184 -0
  30. package/dist/adapters/DoubaoAdapter.js.map +1 -0
  31. package/dist/adapters/GeminiAdapter.d.ts +14 -0
  32. package/dist/adapters/GeminiAdapter.js +163 -0
  33. package/dist/adapters/GeminiAdapter.js.map +1 -0
  34. package/dist/adapters/GenericProjectAgentAdapter.d.ts +29 -0
  35. package/dist/adapters/GenericProjectAgentAdapter.js +204 -0
  36. package/dist/adapters/GenericProjectAgentAdapter.js.map +1 -0
  37. package/dist/adapters/HermesAdapter.d.ts +14 -0
  38. package/dist/adapters/HermesAdapter.js +163 -0
  39. package/dist/adapters/HermesAdapter.js.map +1 -0
  40. package/dist/adapters/JCodeAdapter.d.ts +4 -0
  41. package/dist/adapters/JCodeAdapter.js +19 -0
  42. package/dist/adapters/JCodeAdapter.js.map +1 -0
  43. package/dist/adapters/KiloCodeAdapter.d.ts +4 -0
  44. package/dist/adapters/KiloCodeAdapter.js +20 -0
  45. package/dist/adapters/KiloCodeAdapter.js.map +1 -0
  46. package/dist/adapters/KimiAdapter.d.ts +14 -0
  47. package/dist/adapters/KimiAdapter.js +183 -0
  48. package/dist/adapters/KimiAdapter.js.map +1 -0
  49. package/dist/adapters/KiroAdapter.d.ts +14 -0
  50. package/dist/adapters/KiroAdapter.js +180 -0
  51. package/dist/adapters/KiroAdapter.js.map +1 -0
  52. package/dist/adapters/OpenClawAdapter.d.ts +14 -0
  53. package/dist/adapters/OpenClawAdapter.js +163 -0
  54. package/dist/adapters/OpenClawAdapter.js.map +1 -0
  55. package/dist/adapters/OpenCodeAdapter.d.ts +14 -0
  56. package/dist/adapters/OpenCodeAdapter.js +172 -0
  57. package/dist/adapters/OpenCodeAdapter.js.map +1 -0
  58. package/dist/adapters/QCoderAdapter.d.ts +14 -0
  59. package/dist/adapters/QCoderAdapter.js +159 -0
  60. package/dist/adapters/QCoderAdapter.js.map +1 -0
  61. package/dist/adapters/QoderAdapter.d.ts +4 -0
  62. package/dist/adapters/QoderAdapter.js +21 -0
  63. package/dist/adapters/QoderAdapter.js.map +1 -0
  64. package/dist/adapters/TraeAdapter.d.ts +14 -0
  65. package/dist/adapters/TraeAdapter.js +159 -0
  66. package/dist/adapters/TraeAdapter.js.map +1 -0
  67. package/dist/adapters/VSCAdapter.d.ts +14 -0
  68. package/dist/adapters/VSCAdapter.js +159 -0
  69. package/dist/adapters/VSCAdapter.js.map +1 -0
  70. package/dist/adapters/WindsurfAdapter.d.ts +14 -0
  71. package/dist/adapters/WindsurfAdapter.js +185 -0
  72. package/dist/adapters/WindsurfAdapter.js.map +1 -0
  73. package/dist/adapters/WorkBuddyAdapter.d.ts +14 -0
  74. package/dist/adapters/WorkBuddyAdapter.js +159 -0
  75. package/dist/adapters/WorkBuddyAdapter.js.map +1 -0
  76. package/dist/adapters/index.d.ts +32 -0
  77. package/dist/adapters/index.js +87 -0
  78. package/dist/adapters/index.js.map +1 -0
  79. package/dist/agents/AgentChannel.d.ts +43 -0
  80. package/dist/agents/AgentChannel.js +136 -0
  81. package/dist/agents/AgentChannel.js.map +1 -0
  82. package/dist/agents/AgentCoordinator.d.ts +29 -0
  83. package/dist/agents/AgentCoordinator.js +136 -0
  84. package/dist/agents/AgentCoordinator.js.map +1 -0
  85. package/dist/agents/AgentDispatcher.d.ts +24 -0
  86. package/dist/agents/AgentDispatcher.js +112 -0
  87. package/dist/agents/AgentDispatcher.js.map +1 -0
  88. package/dist/agents/AgentManager.d.ts +14 -0
  89. package/dist/agents/AgentManager.js +85 -0
  90. package/dist/agents/AgentManager.js.map +1 -0
  91. package/dist/agents/AgentPool.d.ts +59 -0
  92. package/dist/agents/AgentPool.js +192 -0
  93. package/dist/agents/AgentPool.js.map +1 -0
  94. package/dist/agents/AgentRegistry.d.ts +20 -0
  95. package/dist/agents/AgentRegistry.js +36 -0
  96. package/dist/agents/AgentRegistry.js.map +1 -0
  97. package/dist/agents/AgentSourceLoader.d.ts +73 -0
  98. package/dist/agents/AgentSourceLoader.js +103 -0
  99. package/dist/agents/AgentSourceLoader.js.map +1 -0
  100. package/dist/agents/IAgent.d.ts +53 -0
  101. package/dist/agents/IAgent.js +4 -0
  102. package/dist/agents/IAgent.js.map +1 -0
  103. package/dist/agents/LeadershipPresets.d.ts +16 -0
  104. package/dist/agents/LeadershipPresets.js +152 -0
  105. package/dist/agents/LeadershipPresets.js.map +1 -0
  106. package/dist/agents/definitions/debugger.d.ts +2 -0
  107. package/dist/agents/definitions/debugger.js +6 -0
  108. package/dist/agents/definitions/debugger.js.map +1 -0
  109. package/dist/agents/definitions/doc-writer.d.ts +2 -0
  110. package/dist/agents/definitions/doc-writer.js +6 -0
  111. package/dist/agents/definitions/doc-writer.js.map +1 -0
  112. package/dist/agents/definitions/implementer.d.ts +2 -0
  113. package/dist/agents/definitions/implementer.js +6 -0
  114. package/dist/agents/definitions/implementer.js.map +1 -0
  115. package/dist/agents/definitions/planner.d.ts +2 -0
  116. package/dist/agents/definitions/planner.js +6 -0
  117. package/dist/agents/definitions/planner.js.map +1 -0
  118. package/dist/agents/definitions/researcher.d.ts +2 -0
  119. package/dist/agents/definitions/researcher.js +6 -0
  120. package/dist/agents/definitions/researcher.js.map +1 -0
  121. package/dist/agents/definitions/reviewer.d.ts +2 -0
  122. package/dist/agents/definitions/reviewer.js +6 -0
  123. package/dist/agents/definitions/reviewer.js.map +1 -0
  124. package/dist/agents/definitions/security.d.ts +2 -0
  125. package/dist/agents/definitions/security.js +6 -0
  126. package/dist/agents/definitions/security.js.map +1 -0
  127. package/dist/agents/definitions/tester.d.ts +2 -0
  128. package/dist/agents/definitions/tester.js +6 -0
  129. package/dist/agents/definitions/tester.js.map +1 -0
  130. package/dist/agents/index.d.ts +23 -0
  131. package/dist/agents/index.js +44 -0
  132. package/dist/agents/index.js.map +1 -0
  133. package/dist/agents/profiles.d.ts +26 -0
  134. package/dist/agents/profiles.js +197 -0
  135. package/dist/agents/profiles.js.map +1 -0
  136. package/dist/agents/types.d.ts +262 -0
  137. package/dist/agents/types.js +4 -0
  138. package/dist/agents/types.js.map +1 -0
  139. package/dist/api/cli.d.ts +2 -0
  140. package/dist/api/cli.js +6678 -0
  141. package/dist/api/cli.js.map +1 -0
  142. package/dist/api/doctor.d.ts +83 -0
  143. package/dist/api/doctor.js +982 -0
  144. package/dist/api/doctor.js.map +1 -0
  145. package/dist/api/mcp.d.ts +32 -0
  146. package/dist/api/mcp.js +223 -0
  147. package/dist/api/mcp.js.map +1 -0
  148. package/dist/api/medscale.d.ts +2 -0
  149. package/dist/api/medscale.js +20 -0
  150. package/dist/api/medscale.js.map +1 -0
  151. package/dist/api/quickstart.d.ts +86 -0
  152. package/dist/api/quickstart.js +291 -0
  153. package/dist/api/quickstart.js.map +1 -0
  154. package/dist/artifact/fsm.d.ts +41 -0
  155. package/dist/artifact/fsm.js +221 -0
  156. package/dist/artifact/fsm.js.map +1 -0
  157. package/dist/artifact/fsmDefinitions.d.ts +18 -0
  158. package/dist/artifact/fsmDefinitions.js +296 -0
  159. package/dist/artifact/fsmDefinitions.js.map +1 -0
  160. package/dist/artifact/sqliteStore.d.ts +61 -0
  161. package/dist/artifact/sqliteStore.js +381 -0
  162. package/dist/artifact/sqliteStore.js.map +1 -0
  163. package/dist/artifact/store.d.ts +49 -0
  164. package/dist/artifact/store.js +116 -0
  165. package/dist/artifact/store.js.map +1 -0
  166. package/dist/artifact/types.d.ts +535 -0
  167. package/dist/artifact/types.js +74 -0
  168. package/dist/artifact/types.js.map +1 -0
  169. package/dist/bootstrap/DependencyBootstrap.d.ts +112 -0
  170. package/dist/bootstrap/DependencyBootstrap.js +1046 -0
  171. package/dist/bootstrap/DependencyBootstrap.js.map +1 -0
  172. package/dist/bootstrap/DependencyBootstrapRenderer.d.ts +3 -0
  173. package/dist/bootstrap/DependencyBootstrapRenderer.js +138 -0
  174. package/dist/bootstrap/DependencyBootstrapRenderer.js.map +1 -0
  175. package/dist/bridge/PythonBridge.d.ts +80 -0
  176. package/dist/bridge/PythonBridge.js +437 -0
  177. package/dist/bridge/PythonBridge.js.map +1 -0
  178. package/dist/bridge/index.d.ts +2 -0
  179. package/dist/bridge/index.js +7 -0
  180. package/dist/bridge/index.js.map +1 -0
  181. package/dist/bridge/medicalWorkflows.d.ts +29 -0
  182. package/dist/bridge/medicalWorkflows.js +156 -0
  183. package/dist/bridge/medicalWorkflows.js.map +1 -0
  184. package/dist/bridge/types.d.ts +381 -0
  185. package/dist/bridge/types.js +113 -0
  186. package/dist/bridge/types.js.map +1 -0
  187. package/dist/cache/ScanCache.d.ts +41 -0
  188. package/dist/cache/ScanCache.js +120 -0
  189. package/dist/cache/ScanCache.js.map +1 -0
  190. package/dist/capabilities/BrowserCapability.d.ts +30 -0
  191. package/dist/capabilities/BrowserCapability.js +73 -0
  192. package/dist/capabilities/BrowserCapability.js.map +1 -0
  193. package/dist/capabilities/BrowserQACapability.d.ts +165 -0
  194. package/dist/capabilities/BrowserQACapability.js +438 -0
  195. package/dist/capabilities/BrowserQACapability.js.map +1 -0
  196. package/dist/capabilities/CapabilityRegistry.d.ts +17 -0
  197. package/dist/capabilities/CapabilityRegistry.js +65 -0
  198. package/dist/capabilities/CapabilityRegistry.js.map +1 -0
  199. package/dist/capabilities/ComputerCapability.d.ts +28 -0
  200. package/dist/capabilities/ComputerCapability.js +40 -0
  201. package/dist/capabilities/ComputerCapability.js.map +1 -0
  202. package/dist/capabilities/InstalledSkillsIntegration.d.ts +69 -0
  203. package/dist/capabilities/InstalledSkillsIntegration.js +240 -0
  204. package/dist/capabilities/InstalledSkillsIntegration.js.map +1 -0
  205. package/dist/capabilities/SearchCapability.d.ts +46 -0
  206. package/dist/capabilities/SearchCapability.js +88 -0
  207. package/dist/capabilities/SearchCapability.js.map +1 -0
  208. package/dist/capabilities/index.d.ts +6 -0
  209. package/dist/capabilities/index.js +9 -0
  210. package/dist/capabilities/index.js.map +1 -0
  211. package/dist/capabilities/types.d.ts +92 -0
  212. package/dist/capabilities/types.js +7 -0
  213. package/dist/capabilities/types.js.map +1 -0
  214. package/dist/cli/autofixCommands.d.ts +22 -0
  215. package/dist/cli/autofixCommands.js +32 -0
  216. package/dist/cli/autofixCommands.js.map +1 -0
  217. package/dist/cli/cortexCommands.d.ts +71 -0
  218. package/dist/cli/cortexCommands.js +335 -0
  219. package/dist/cli/cortexCommands.js.map +1 -0
  220. package/dist/cli/costCommands.d.ts +13 -0
  221. package/dist/cli/costCommands.js +48 -0
  222. package/dist/cli/costCommands.js.map +1 -0
  223. package/dist/cli/evolutionCommands.d.ts +112 -0
  224. package/dist/cli/evolutionCommands.js +246 -0
  225. package/dist/cli/evolutionCommands.js.map +1 -0
  226. package/dist/cli/gateStatusCommands.d.ts +1 -0
  227. package/dist/cli/gateStatusCommands.js +52 -0
  228. package/dist/cli/gateStatusCommands.js.map +1 -0
  229. package/dist/cli/liteCommands.d.ts +81 -0
  230. package/dist/cli/liteCommands.js +148 -0
  231. package/dist/cli/liteCommands.js.map +1 -0
  232. package/dist/cli/orchCommands.d.ts +43 -0
  233. package/dist/cli/orchCommands.js +135 -0
  234. package/dist/cli/orchCommands.js.map +1 -0
  235. package/dist/cli/phaseCommands.d.ts +248 -0
  236. package/dist/cli/phaseCommands.js +1878 -0
  237. package/dist/cli/phaseCommands.js.map +1 -0
  238. package/dist/cli/promptCommands.d.ts +1 -0
  239. package/dist/cli/promptCommands.js +57 -0
  240. package/dist/cli/promptCommands.js.map +1 -0
  241. package/dist/cli/qaCommands.d.ts +22 -0
  242. package/dist/cli/qaCommands.js +84 -0
  243. package/dist/cli/qaCommands.js.map +1 -0
  244. package/dist/cli/quickstartCommands.d.ts +17 -0
  245. package/dist/cli/quickstartCommands.js +47 -0
  246. package/dist/cli/quickstartCommands.js.map +1 -0
  247. package/dist/cli/runCommand.d.ts +39 -0
  248. package/dist/cli/runCommand.js +113 -0
  249. package/dist/cli/runCommand.js.map +1 -0
  250. package/dist/cli/scoreCommands.d.ts +1 -0
  251. package/dist/cli/scoreCommands.js +112 -0
  252. package/dist/cli/scoreCommands.js.map +1 -0
  253. package/dist/cli/shieldCommands.d.ts +30 -0
  254. package/dist/cli/shieldCommands.js +212 -0
  255. package/dist/cli/shieldCommands.js.map +1 -0
  256. package/dist/cli/targetCommands.d.ts +552 -0
  257. package/dist/cli/targetCommands.js +3173 -0
  258. package/dist/cli/targetCommands.js.map +1 -0
  259. package/dist/cli/tuiCommands.d.ts +7 -0
  260. package/dist/cli/tuiCommands.js +33 -0
  261. package/dist/cli/tuiCommands.js.map +1 -0
  262. package/dist/cli/vibeCommands.d.ts +64 -0
  263. package/dist/cli/vibeCommands.js +221 -0
  264. package/dist/cli/vibeCommands.js.map +1 -0
  265. package/dist/codegraph/CodeIntelligence.d.ts +147 -0
  266. package/dist/codegraph/CodeIntelligence.js +681 -0
  267. package/dist/codegraph/CodeIntelligence.js.map +1 -0
  268. package/dist/config/profiles.d.ts +64 -0
  269. package/dist/config/profiles.js +223 -0
  270. package/dist/config/profiles.js.map +1 -0
  271. package/dist/context/AntiPatternRegistry.d.ts +38 -0
  272. package/dist/context/AntiPatternRegistry.js +203 -0
  273. package/dist/context/AntiPatternRegistry.js.map +1 -0
  274. package/dist/context/CavemanCompressor.d.ts +20 -0
  275. package/dist/context/CavemanCompressor.js +14 -0
  276. package/dist/context/CavemanCompressor.js.map +1 -0
  277. package/dist/context/ContextBudget.d.ts +128 -0
  278. package/dist/context/ContextBudget.js +423 -0
  279. package/dist/context/ContextBudget.js.map +1 -0
  280. package/dist/context/ContextBuilder.d.ts +71 -0
  281. package/dist/context/ContextBuilder.js +372 -0
  282. package/dist/context/ContextBuilder.js.map +1 -0
  283. package/dist/context/ContextCompiler.d.ts +34 -0
  284. package/dist/context/ContextCompiler.js +120 -0
  285. package/dist/context/ContextCompiler.js.map +1 -0
  286. package/dist/context/ProjectAnatomy.d.ts +18 -0
  287. package/dist/context/ProjectAnatomy.js +287 -0
  288. package/dist/context/ProjectAnatomy.js.map +1 -0
  289. package/dist/context/SessionStartSequence.d.ts +54 -0
  290. package/dist/context/SessionStartSequence.js +162 -0
  291. package/dist/context/SessionStartSequence.js.map +1 -0
  292. package/dist/core/ExternalCommand.d.ts +9 -0
  293. package/dist/core/ExternalCommand.js +70 -0
  294. package/dist/core/ExternalCommand.js.map +1 -0
  295. package/dist/core/GbrainRuntime.d.ts +25 -0
  296. package/dist/core/GbrainRuntime.js +270 -0
  297. package/dist/core/GbrainRuntime.js.map +1 -0
  298. package/dist/core/container.d.ts +14 -0
  299. package/dist/core/container.js +35 -0
  300. package/dist/core/container.js.map +1 -0
  301. package/dist/core/eventBus.d.ts +60 -0
  302. package/dist/core/eventBus.js +157 -0
  303. package/dist/core/eventBus.js.map +1 -0
  304. package/dist/core/logger.d.ts +5 -0
  305. package/dist/core/logger.js +51 -0
  306. package/dist/core/logger.js.map +1 -0
  307. package/dist/cortex/GovernanceMetrics.d.ts +66 -0
  308. package/dist/cortex/GovernanceMetrics.js +230 -0
  309. package/dist/cortex/GovernanceMetrics.js.map +1 -0
  310. package/dist/cortex/InstinctExtractor.d.ts +61 -0
  311. package/dist/cortex/InstinctExtractor.js +184 -0
  312. package/dist/cortex/InstinctExtractor.js.map +1 -0
  313. package/dist/cortex/InstinctStore.d.ts +54 -0
  314. package/dist/cortex/InstinctStore.js +266 -0
  315. package/dist/cortex/InstinctStore.js.map +1 -0
  316. package/dist/cortex/ReflexionEngine.d.ts +34 -0
  317. package/dist/cortex/ReflexionEngine.js +157 -0
  318. package/dist/cortex/ReflexionEngine.js.map +1 -0
  319. package/dist/cortex/SessionInjector.d.ts +44 -0
  320. package/dist/cortex/SessionInjector.js +127 -0
  321. package/dist/cortex/SessionInjector.js.map +1 -0
  322. package/dist/cortex/adapters/ClaudeAdapter.d.ts +17 -0
  323. package/dist/cortex/adapters/ClaudeAdapter.js +61 -0
  324. package/dist/cortex/adapters/ClaudeAdapter.js.map +1 -0
  325. package/dist/cortex/adapters/CodexAdapter.d.ts +10 -0
  326. package/dist/cortex/adapters/CodexAdapter.js +52 -0
  327. package/dist/cortex/adapters/CodexAdapter.js.map +1 -0
  328. package/dist/cortex/adapters/CursorAdapter.d.ts +10 -0
  329. package/dist/cortex/adapters/CursorAdapter.js +46 -0
  330. package/dist/cortex/adapters/CursorAdapter.js.map +1 -0
  331. package/dist/cortex/adapters/GeminiAdapter.d.ts +11 -0
  332. package/dist/cortex/adapters/GeminiAdapter.js +48 -0
  333. package/dist/cortex/adapters/GeminiAdapter.js.map +1 -0
  334. package/dist/dashboard/DashboardServer.d.ts +86 -0
  335. package/dist/dashboard/DashboardServer.js +380 -0
  336. package/dist/dashboard/DashboardServer.js.map +1 -0
  337. package/dist/dashboard/MedicalWorkflowData.d.ts +155 -0
  338. package/dist/dashboard/MedicalWorkflowData.js +664 -0
  339. package/dist/dashboard/MedicalWorkflowData.js.map +1 -0
  340. package/dist/dashboard/MetricsAggregator.d.ts +38 -0
  341. package/dist/dashboard/MetricsAggregator.js +99 -0
  342. package/dist/dashboard/MetricsAggregator.js.map +1 -0
  343. package/dist/dashboard/index.d.ts +4 -0
  344. package/dist/dashboard/index.js +3 -0
  345. package/dist/dashboard/index.js.map +1 -0
  346. package/dist/dashboard/server.d.ts +52 -0
  347. package/dist/dashboard/server.js +84 -0
  348. package/dist/dashboard/server.js.map +1 -0
  349. package/dist/env/EnvironmentDoctor.d.ts +66 -0
  350. package/dist/env/EnvironmentDoctor.js +581 -0
  351. package/dist/env/EnvironmentDoctor.js.map +1 -0
  352. package/dist/eval/BenchmarkPublisher.d.ts +25 -0
  353. package/dist/eval/BenchmarkPublisher.js +27 -0
  354. package/dist/eval/BenchmarkPublisher.js.map +1 -0
  355. package/dist/eval/WorkflowEval.d.ts +161 -0
  356. package/dist/eval/WorkflowEval.js +377 -0
  357. package/dist/eval/WorkflowEval.js.map +1 -0
  358. package/dist/evolution/AutoDefectCreator.d.ts +43 -0
  359. package/dist/evolution/AutoDefectCreator.js +157 -0
  360. package/dist/evolution/AutoDefectCreator.js.map +1 -0
  361. package/dist/evolution/BehaviorTracker.d.ts +46 -0
  362. package/dist/evolution/BehaviorTracker.js +67 -0
  363. package/dist/evolution/BehaviorTracker.js.map +1 -0
  364. package/dist/evolution/EvolutionEngine.d.ts +102 -0
  365. package/dist/evolution/EvolutionEngine.js +326 -0
  366. package/dist/evolution/EvolutionEngine.js.map +1 -0
  367. package/dist/evolution/EvolutionEvaluator.d.ts +61 -0
  368. package/dist/evolution/EvolutionEvaluator.js +118 -0
  369. package/dist/evolution/EvolutionEvaluator.js.map +1 -0
  370. package/dist/evolution/LessonValidator.d.ts +36 -0
  371. package/dist/evolution/LessonValidator.js +132 -0
  372. package/dist/evolution/LessonValidator.js.map +1 -0
  373. package/dist/evolution/PatternExtractor.d.ts +40 -0
  374. package/dist/evolution/PatternExtractor.js +83 -0
  375. package/dist/evolution/PatternExtractor.js.map +1 -0
  376. package/dist/evolution/RuleMaturity.d.ts +39 -0
  377. package/dist/evolution/RuleMaturity.js +70 -0
  378. package/dist/evolution/RuleMaturity.js.map +1 -0
  379. package/dist/evolution/SessionLearnings.d.ts +70 -0
  380. package/dist/evolution/SessionLearnings.js +217 -0
  381. package/dist/evolution/SessionLearnings.js.map +1 -0
  382. package/dist/evolution/SkillCreator.d.ts +75 -0
  383. package/dist/evolution/SkillCreator.js +219 -0
  384. package/dist/evolution/SkillCreator.js.map +1 -0
  385. package/dist/fsm/FSMAgentBridge.d.ts +59 -0
  386. package/dist/fsm/FSMAgentBridge.js +193 -0
  387. package/dist/fsm/FSMAgentBridge.js.map +1 -0
  388. package/dist/fsm/index.d.ts +2 -0
  389. package/dist/fsm/index.js +3 -0
  390. package/dist/fsm/index.js.map +1 -0
  391. package/dist/governance/GovernanceRoi.d.ts +30 -0
  392. package/dist/governance/GovernanceRoi.js +102 -0
  393. package/dist/governance/GovernanceRoi.js.map +1 -0
  394. package/dist/governance/ProgressiveGovernance.d.ts +22 -0
  395. package/dist/governance/ProgressiveGovernance.js +159 -0
  396. package/dist/governance/ProgressiveGovernance.js.map +1 -0
  397. package/dist/guardrails/ActiveRedTeam.d.ts +46 -0
  398. package/dist/guardrails/ActiveRedTeam.js +203 -0
  399. package/dist/guardrails/ActiveRedTeam.js.map +1 -0
  400. package/dist/guardrails/DependencyAuditor.d.ts +68 -0
  401. package/dist/guardrails/DependencyAuditor.js +378 -0
  402. package/dist/guardrails/DependencyAuditor.js.map +1 -0
  403. package/dist/guardrails/DetectorEnhanced.d.ts +111 -0
  404. package/dist/guardrails/DetectorEnhanced.js +202 -0
  405. package/dist/guardrails/DetectorEnhanced.js.map +1 -0
  406. package/dist/guardrails/GateEvaluator.d.ts +18 -0
  407. package/dist/guardrails/GateEvaluator.js +129 -0
  408. package/dist/guardrails/GateEvaluator.js.map +1 -0
  409. package/dist/guardrails/Gateway.d.ts +26 -0
  410. package/dist/guardrails/Gateway.js +56 -0
  411. package/dist/guardrails/Gateway.js.map +1 -0
  412. package/dist/guardrails/OWASPDetector.d.ts +58 -0
  413. package/dist/guardrails/OWASPDetector.js +508 -0
  414. package/dist/guardrails/OWASPDetector.js.map +1 -0
  415. package/dist/guardrails/ReviewEnforcer.d.ts +52 -0
  416. package/dist/guardrails/ReviewEnforcer.js +117 -0
  417. package/dist/guardrails/ReviewEnforcer.js.map +1 -0
  418. package/dist/guardrails/advancedDetectors.d.ts +38 -0
  419. package/dist/guardrails/advancedDetectors.js +188 -0
  420. package/dist/guardrails/advancedDetectors.js.map +1 -0
  421. package/dist/guardrails/detectors.d.ts +34 -0
  422. package/dist/guardrails/detectors.js +332 -0
  423. package/dist/guardrails/detectors.js.map +1 -0
  424. package/dist/guardrails/roles.d.ts +4 -0
  425. package/dist/guardrails/roles.js +54 -0
  426. package/dist/guardrails/roles.js.map +1 -0
  427. package/dist/hooks/BugPatternDetector.d.ts +36 -0
  428. package/dist/hooks/BugPatternDetector.js +207 -0
  429. package/dist/hooks/BugPatternDetector.js.map +1 -0
  430. package/dist/hooks/HookDeployer.d.ts +44 -0
  431. package/dist/hooks/HookDeployer.js +144 -0
  432. package/dist/hooks/HookDeployer.js.map +1 -0
  433. package/dist/hooks/HookGeneratorEnhanced.d.ts +67 -0
  434. package/dist/hooks/HookGeneratorEnhanced.js +641 -0
  435. package/dist/hooks/HookGeneratorEnhanced.js.map +1 -0
  436. package/dist/hooks/WorkflowHooksManager.d.ts +30 -0
  437. package/dist/hooks/WorkflowHooksManager.js +160 -0
  438. package/dist/hooks/WorkflowHooksManager.js.map +1 -0
  439. package/dist/hooks/index.d.ts +6 -0
  440. package/dist/hooks/index.js +5 -0
  441. package/dist/hooks/index.js.map +1 -0
  442. package/dist/i18n/Language.d.ts +9 -0
  443. package/dist/i18n/Language.js +38 -0
  444. package/dist/i18n/Language.js.map +1 -0
  445. package/dist/index.d.ts +101 -0
  446. package/dist/index.js +104 -0
  447. package/dist/index.js.map +1 -0
  448. package/dist/knowledge/CerebrumManager.d.ts +25 -0
  449. package/dist/knowledge/CerebrumManager.js +127 -0
  450. package/dist/knowledge/CerebrumManager.js.map +1 -0
  451. package/dist/knowledge/GraphifyKnowledgeBase.d.ts +38 -0
  452. package/dist/knowledge/GraphifyKnowledgeBase.js +409 -0
  453. package/dist/knowledge/GraphifyKnowledgeBase.js.map +1 -0
  454. package/dist/knowledge/KnowledgeBase.d.ts +51 -0
  455. package/dist/knowledge/KnowledgeBase.js +182 -0
  456. package/dist/knowledge/KnowledgeBase.js.map +1 -0
  457. package/dist/knowledge/SQLiteKnowledgeBase.d.ts +29 -0
  458. package/dist/knowledge/SQLiteKnowledgeBase.js +203 -0
  459. package/dist/knowledge/SQLiteKnowledgeBase.js.map +1 -0
  460. package/dist/knowledge/TfidfIndex.d.ts +50 -0
  461. package/dist/knowledge/TfidfIndex.js +177 -0
  462. package/dist/knowledge/TfidfIndex.js.map +1 -0
  463. package/dist/knowledge/UbiquitousLanguageManager.d.ts +49 -0
  464. package/dist/knowledge/UbiquitousLanguageManager.js +133 -0
  465. package/dist/knowledge/UbiquitousLanguageManager.js.map +1 -0
  466. package/dist/memory/MemoryBrain.d.ts +146 -0
  467. package/dist/memory/MemoryBrain.js +679 -0
  468. package/dist/memory/MemoryBrain.js.map +1 -0
  469. package/dist/memory/MemoryFabric.d.ts +130 -0
  470. package/dist/memory/MemoryFabric.js +317 -0
  471. package/dist/memory/MemoryFabric.js.map +1 -0
  472. package/dist/memory/MemoryIntelligence.d.ts +42 -0
  473. package/dist/memory/MemoryIntelligence.js +215 -0
  474. package/dist/memory/MemoryIntelligence.js.map +1 -0
  475. package/dist/memory/MemoryLearning.d.ts +62 -0
  476. package/dist/memory/MemoryLearning.js +209 -0
  477. package/dist/memory/MemoryLearning.js.map +1 -0
  478. package/dist/memory/MemoryProviders.d.ts +165 -0
  479. package/dist/memory/MemoryProviders.js +940 -0
  480. package/dist/memory/MemoryProviders.js.map +1 -0
  481. package/dist/memory/MemoryReview.d.ts +65 -0
  482. package/dist/memory/MemoryReview.js +260 -0
  483. package/dist/memory/MemoryReview.js.map +1 -0
  484. package/dist/memory/index.d.ts +6 -0
  485. package/dist/memory/index.js +7 -0
  486. package/dist/memory/index.js.map +1 -0
  487. package/dist/orchestration/EffectsWiring.d.ts +8 -0
  488. package/dist/orchestration/EffectsWiring.js +87 -0
  489. package/dist/orchestration/EffectsWiring.js.map +1 -0
  490. package/dist/orchestrator/OrchestratorDaemon.d.ts +44 -0
  491. package/dist/orchestrator/OrchestratorDaemon.js +150 -0
  492. package/dist/orchestrator/OrchestratorDaemon.js.map +1 -0
  493. package/dist/orchestrator/PolicyLoader.d.ts +80 -0
  494. package/dist/orchestrator/PolicyLoader.js +229 -0
  495. package/dist/orchestrator/PolicyLoader.js.map +1 -0
  496. package/dist/orchestrator/ReconciliationLoop.d.ts +71 -0
  497. package/dist/orchestrator/ReconciliationLoop.js +266 -0
  498. package/dist/orchestrator/ReconciliationLoop.js.map +1 -0
  499. package/dist/orchestrator/TrackerAdapter.d.ts +60 -0
  500. package/dist/orchestrator/TrackerAdapter.js +147 -0
  501. package/dist/orchestrator/TrackerAdapter.js.map +1 -0
  502. package/dist/orchestrator/WorkspaceManager.d.ts +66 -0
  503. package/dist/orchestrator/WorkspaceManager.js +257 -0
  504. package/dist/orchestrator/WorkspaceManager.js.map +1 -0
  505. package/dist/output/BrandThemeLoader.d.ts +54 -0
  506. package/dist/output/BrandThemeLoader.js +340 -0
  507. package/dist/output/BrandThemeLoader.js.map +1 -0
  508. package/dist/output/GovernanceDashboard.d.ts +59 -0
  509. package/dist/output/GovernanceDashboard.js +281 -0
  510. package/dist/output/GovernanceDashboard.js.map +1 -0
  511. package/dist/output/HTMLArtifactLayer.d.ts +97 -0
  512. package/dist/output/HTMLArtifactLayer.js +576 -0
  513. package/dist/output/HTMLArtifactLayer.js.map +1 -0
  514. package/dist/output/HTMLDocumentRenderer.d.ts +83 -0
  515. package/dist/output/HTMLDocumentRenderer.js +718 -0
  516. package/dist/output/HTMLDocumentRenderer.js.map +1 -0
  517. package/dist/output/UIPrototypeRenderer.d.ts +61 -0
  518. package/dist/output/UIPrototypeRenderer.js +500 -0
  519. package/dist/output/UIPrototypeRenderer.js.map +1 -0
  520. package/dist/output/index.d.ts +10 -0
  521. package/dist/output/index.js +8 -0
  522. package/dist/output/index.js.map +1 -0
  523. package/dist/prompts/PhasePromptRegistry.d.ts +53 -0
  524. package/dist/prompts/PhasePromptRegistry.js +517 -0
  525. package/dist/prompts/PhasePromptRegistry.js.map +1 -0
  526. package/dist/prompts/PromptOptimizer.d.ts +42 -0
  527. package/dist/prompts/PromptOptimizer.js +309 -0
  528. package/dist/prompts/PromptOptimizer.js.map +1 -0
  529. package/dist/prompts/VibeTemplateGallery.d.ts +25 -0
  530. package/dist/prompts/VibeTemplateGallery.js +295 -0
  531. package/dist/prompts/VibeTemplateGallery.js.map +1 -0
  532. package/dist/qa/BrowserDaemon.d.ts +23 -0
  533. package/dist/qa/BrowserDaemon.js +79 -0
  534. package/dist/qa/BrowserDaemon.js.map +1 -0
  535. package/dist/qa/E2ETestOrchestrator.d.ts +14 -0
  536. package/dist/qa/E2ETestOrchestrator.js +19 -0
  537. package/dist/qa/E2ETestOrchestrator.js.map +1 -0
  538. package/dist/review/CrossModelReviewer.d.ts +35 -0
  539. package/dist/review/CrossModelReviewer.js +75 -0
  540. package/dist/review/CrossModelReviewer.js.map +1 -0
  541. package/dist/review/ReviewAggregator.d.ts +13 -0
  542. package/dist/review/ReviewAggregator.js +28 -0
  543. package/dist/review/ReviewAggregator.js.map +1 -0
  544. package/dist/review/reviewCommands.d.ts +15 -0
  545. package/dist/review/reviewCommands.js +24 -0
  546. package/dist/review/reviewCommands.js.map +1 -0
  547. package/dist/routing/LocalModelProvider.d.ts +11 -0
  548. package/dist/routing/LocalModelProvider.js +21 -0
  549. package/dist/routing/LocalModelProvider.js.map +1 -0
  550. package/dist/routing/ModelRouter.d.ts +42 -0
  551. package/dist/routing/ModelRouter.js +94 -0
  552. package/dist/routing/ModelRouter.js.map +1 -0
  553. package/dist/routing/PromptCachePolicy.d.ts +37 -0
  554. package/dist/routing/PromptCachePolicy.js +97 -0
  555. package/dist/routing/PromptCachePolicy.js.map +1 -0
  556. package/dist/runtime/AiOsRuntime.d.ts +485 -0
  557. package/dist/runtime/AiOsRuntime.js +1846 -0
  558. package/dist/runtime/AiOsRuntime.js.map +1 -0
  559. package/dist/runtime/CostAnalyzer.d.ts +53 -0
  560. package/dist/runtime/CostAnalyzer.js +160 -0
  561. package/dist/runtime/CostAnalyzer.js.map +1 -0
  562. package/dist/runtime/CostOptimizer.d.ts +11 -0
  563. package/dist/runtime/CostOptimizer.js +21 -0
  564. package/dist/runtime/CostOptimizer.js.map +1 -0
  565. package/dist/runtime/ExecutionLedger.d.ts +46 -0
  566. package/dist/runtime/ExecutionLedger.js +71 -0
  567. package/dist/runtime/ExecutionLedger.js.map +1 -0
  568. package/dist/runtime/FinalReportGuard.d.ts +16 -0
  569. package/dist/runtime/FinalReportGuard.js +14 -0
  570. package/dist/runtime/FinalReportGuard.js.map +1 -0
  571. package/dist/runtime/ModelUsageLedger.d.ts +101 -0
  572. package/dist/runtime/ModelUsageLedger.js +296 -0
  573. package/dist/runtime/ModelUsageLedger.js.map +1 -0
  574. package/dist/runtime/RuntimeDoctor.d.ts +23 -0
  575. package/dist/runtime/RuntimeDoctor.js +151 -0
  576. package/dist/runtime/RuntimeDoctor.js.map +1 -0
  577. package/dist/runtime/RuntimeEvidenceLedger.d.ts +50 -0
  578. package/dist/runtime/RuntimeEvidenceLedger.js +89 -0
  579. package/dist/runtime/RuntimeEvidenceLedger.js.map +1 -0
  580. package/dist/runtime/SessionLedger.d.ts +53 -0
  581. package/dist/runtime/SessionLedger.js +104 -0
  582. package/dist/runtime/SessionLedger.js.map +1 -0
  583. package/dist/runtime/index.d.ts +7 -0
  584. package/dist/runtime/index.js +8 -0
  585. package/dist/runtime/index.js.map +1 -0
  586. package/dist/setup/SetupVerification.d.ts +42 -0
  587. package/dist/setup/SetupVerification.js +180 -0
  588. package/dist/setup/SetupVerification.js.map +1 -0
  589. package/dist/setup/SetupWizard.d.ts +45 -0
  590. package/dist/setup/SetupWizard.js +216 -0
  591. package/dist/setup/SetupWizard.js.map +1 -0
  592. package/dist/shield/PolicyCompiler.d.ts +70 -0
  593. package/dist/shield/PolicyCompiler.js +540 -0
  594. package/dist/shield/PolicyCompiler.js.map +1 -0
  595. package/dist/shield/ProtectedPaths.d.ts +39 -0
  596. package/dist/shield/ProtectedPaths.js +179 -0
  597. package/dist/shield/ProtectedPaths.js.map +1 -0
  598. package/dist/shield/ShieldProtocol.d.ts +50 -0
  599. package/dist/shield/ShieldProtocol.js +103 -0
  600. package/dist/shield/ShieldProtocol.js.map +1 -0
  601. package/dist/skills/ExternalSkills.d.ts +3 -0
  602. package/dist/skills/ExternalSkills.js +27 -0
  603. package/dist/skills/ExternalSkills.js.map +1 -0
  604. package/dist/skills/GrillingSessionSkill.d.ts +65 -0
  605. package/dist/skills/GrillingSessionSkill.js +113 -0
  606. package/dist/skills/GrillingSessionSkill.js.map +1 -0
  607. package/dist/skills/GrillingTemplates.d.ts +7 -0
  608. package/dist/skills/GrillingTemplates.js +38 -0
  609. package/dist/skills/GrillingTemplates.js.map +1 -0
  610. package/dist/skills/RoleSkills.d.ts +20 -0
  611. package/dist/skills/RoleSkills.js +154 -0
  612. package/dist/skills/RoleSkills.js.map +1 -0
  613. package/dist/skills/SkillCatalog.d.ts +13 -0
  614. package/dist/skills/SkillCatalog.js +184 -0
  615. package/dist/skills/SkillCatalog.js.map +1 -0
  616. package/dist/skills/SkillDiscovery.d.ts +84 -0
  617. package/dist/skills/SkillDiscovery.js +402 -0
  618. package/dist/skills/SkillDiscovery.js.map +1 -0
  619. package/dist/skills/SkillDoctor.d.ts +37 -0
  620. package/dist/skills/SkillDoctor.js +267 -0
  621. package/dist/skills/SkillDoctor.js.map +1 -0
  622. package/dist/skills/SkillExecutor.d.ts +38 -0
  623. package/dist/skills/SkillExecutor.js +237 -0
  624. package/dist/skills/SkillExecutor.js.map +1 -0
  625. package/dist/skills/SkillFrontmatter.d.ts +28 -0
  626. package/dist/skills/SkillFrontmatter.js +152 -0
  627. package/dist/skills/SkillFrontmatter.js.map +1 -0
  628. package/dist/skills/SkillInstaller.d.ts +40 -0
  629. package/dist/skills/SkillInstaller.js +117 -0
  630. package/dist/skills/SkillInstaller.js.map +1 -0
  631. package/dist/skills/SkillMdStandard.d.ts +33 -0
  632. package/dist/skills/SkillMdStandard.js +88 -0
  633. package/dist/skills/SkillMdStandard.js.map +1 -0
  634. package/dist/skills/SkillRadar.d.ts +83 -0
  635. package/dist/skills/SkillRadar.js +404 -0
  636. package/dist/skills/SkillRadar.js.map +1 -0
  637. package/dist/skills/SkillRegistry.d.ts +112 -0
  638. package/dist/skills/SkillRegistry.js +161 -0
  639. package/dist/skills/SkillRegistry.js.map +1 -0
  640. package/dist/skills/SkillRepository.d.ts +71 -0
  641. package/dist/skills/SkillRepository.js +435 -0
  642. package/dist/skills/SkillRepository.js.map +1 -0
  643. package/dist/skills/TriggerEngine.d.ts +43 -0
  644. package/dist/skills/TriggerEngine.js +142 -0
  645. package/dist/skills/TriggerEngine.js.map +1 -0
  646. package/dist/skills/coreSkills.d.ts +6 -0
  647. package/dist/skills/coreSkills.js +41 -0
  648. package/dist/skills/coreSkills.js.map +1 -0
  649. package/dist/skills/index.d.ts +10 -0
  650. package/dist/skills/index.js +12 -0
  651. package/dist/skills/index.js.map +1 -0
  652. package/dist/skills/interop/GStackInterop.d.ts +15 -0
  653. package/dist/skills/interop/GStackInterop.js +34 -0
  654. package/dist/skills/interop/GStackInterop.js.map +1 -0
  655. package/dist/skills/interop/OMCInterop.d.ts +15 -0
  656. package/dist/skills/interop/OMCInterop.js +34 -0
  657. package/dist/skills/interop/OMCInterop.js.map +1 -0
  658. package/dist/skills/routing/SkillGate.d.ts +12 -0
  659. package/dist/skills/routing/SkillGate.js +117 -0
  660. package/dist/skills/routing/SkillGate.js.map +1 -0
  661. package/dist/skills/routing/SkillPlanner.d.ts +8 -0
  662. package/dist/skills/routing/SkillPlanner.js +179 -0
  663. package/dist/skills/routing/SkillPlanner.js.map +1 -0
  664. package/dist/skills/routing/SkillPolicy.d.ts +6 -0
  665. package/dist/skills/routing/SkillPolicy.js +336 -0
  666. package/dist/skills/routing/SkillPolicy.js.map +1 -0
  667. package/dist/skills/routing/SkillRoutingTypes.d.ts +89 -0
  668. package/dist/skills/routing/SkillRoutingTypes.js +2 -0
  669. package/dist/skills/routing/SkillRoutingTypes.js.map +1 -0
  670. package/dist/skills/routing/TaskIntentClassifier.d.ts +6 -0
  671. package/dist/skills/routing/TaskIntentClassifier.js +79 -0
  672. package/dist/skills/routing/TaskIntentClassifier.js.map +1 -0
  673. package/dist/skills/routing/index.d.ts +5 -0
  674. package/dist/skills/routing/index.js +6 -0
  675. package/dist/skills/routing/index.js.map +1 -0
  676. package/dist/tasks/IssueTriageFSM.d.ts +26 -0
  677. package/dist/tasks/IssueTriageFSM.js +107 -0
  678. package/dist/tasks/IssueTriageFSM.js.map +1 -0
  679. package/dist/tasks/TaskEngine.d.ts +97 -0
  680. package/dist/tasks/TaskEngine.js +289 -0
  681. package/dist/tasks/TaskEngine.js.map +1 -0
  682. package/dist/testing/DiffTestSelector.d.ts +22 -0
  683. package/dist/testing/DiffTestSelector.js +114 -0
  684. package/dist/testing/DiffTestSelector.js.map +1 -0
  685. package/dist/testing/index.d.ts +1 -0
  686. package/dist/testing/index.js +3 -0
  687. package/dist/testing/index.js.map +1 -0
  688. package/dist/tools/CommandOutputCompressor.d.ts +28 -0
  689. package/dist/tools/CommandOutputCompressor.js +242 -0
  690. package/dist/tools/CommandOutputCompressor.js.map +1 -0
  691. package/dist/tools/CommandRunLedger.d.ts +77 -0
  692. package/dist/tools/CommandRunLedger.js +111 -0
  693. package/dist/tools/CommandRunLedger.js.map +1 -0
  694. package/dist/tools/RtkRuntime.d.ts +9 -0
  695. package/dist/tools/RtkRuntime.js +43 -0
  696. package/dist/tools/RtkRuntime.js.map +1 -0
  697. package/dist/tools/SafeCommandRunner.d.ts +16 -0
  698. package/dist/tools/SafeCommandRunner.js +83 -0
  699. package/dist/tools/SafeCommandRunner.js.map +1 -0
  700. package/dist/tools/ToolCapabilityRegistry.d.ts +51 -0
  701. package/dist/tools/ToolCapabilityRegistry.js +295 -0
  702. package/dist/tools/ToolCapabilityRegistry.js.map +1 -0
  703. package/dist/tools/ToolEvidenceGate.d.ts +39 -0
  704. package/dist/tools/ToolEvidenceGate.js +117 -0
  705. package/dist/tools/ToolEvidenceGate.js.map +1 -0
  706. package/dist/tools/ToolEvidenceStore.d.ts +58 -0
  707. package/dist/tools/ToolEvidenceStore.js +129 -0
  708. package/dist/tools/ToolEvidenceStore.js.map +1 -0
  709. package/dist/tools/ToolOrchestrator.d.ts +67 -0
  710. package/dist/tools/ToolOrchestrator.js +252 -0
  711. package/dist/tools/ToolOrchestrator.js.map +1 -0
  712. package/dist/tools/ToolPolicy.d.ts +33 -0
  713. package/dist/tools/ToolPolicy.js +172 -0
  714. package/dist/tools/ToolPolicy.js.map +1 -0
  715. package/dist/tools/index.d.ts +7 -0
  716. package/dist/tools/index.js +8 -0
  717. package/dist/tools/index.js.map +1 -0
  718. package/dist/tui/TuiDashboard.d.ts +3 -0
  719. package/dist/tui/TuiDashboard.js +120 -0
  720. package/dist/tui/TuiDashboard.js.map +1 -0
  721. package/dist/version.d.ts +3 -0
  722. package/dist/version.js +15 -0
  723. package/dist/version.js.map +1 -0
  724. package/dist/workflow/AdaptiveWorkflowRouter.d.ts +38 -0
  725. package/dist/workflow/AdaptiveWorkflowRouter.js +214 -0
  726. package/dist/workflow/AdaptiveWorkflowRouter.js.map +1 -0
  727. package/dist/workflow/CommitDiscipline.d.ts +68 -0
  728. package/dist/workflow/CommitDiscipline.js +328 -0
  729. package/dist/workflow/CommitDiscipline.js.map +1 -0
  730. package/dist/workflow/ContextGovernance.d.ts +51 -0
  731. package/dist/workflow/ContextGovernance.js +233 -0
  732. package/dist/workflow/ContextGovernance.js.map +1 -0
  733. package/dist/workflow/CrossRepoOrchestrator.d.ts +92 -0
  734. package/dist/workflow/CrossRepoOrchestrator.js +408 -0
  735. package/dist/workflow/CrossRepoOrchestrator.js.map +1 -0
  736. package/dist/workflow/DiagnosticLoop.d.ts +40 -0
  737. package/dist/workflow/DiagnosticLoop.js +105 -0
  738. package/dist/workflow/DiagnosticLoop.js.map +1 -0
  739. package/dist/workflow/EngineeringStandards.d.ts +212 -0
  740. package/dist/workflow/EngineeringStandards.js +1113 -0
  741. package/dist/workflow/EngineeringStandards.js.map +1 -0
  742. package/dist/workflow/EvidenceStore.d.ts +20 -0
  743. package/dist/workflow/EvidenceStore.js +48 -0
  744. package/dist/workflow/EvidenceStore.js.map +1 -0
  745. package/dist/workflow/EvolutionShadowPromoter.d.ts +46 -0
  746. package/dist/workflow/EvolutionShadowPromoter.js +73 -0
  747. package/dist/workflow/EvolutionShadowPromoter.js.map +1 -0
  748. package/dist/workflow/GateCatalog.d.ts +63 -0
  749. package/dist/workflow/GateCatalog.js +268 -0
  750. package/dist/workflow/GateCatalog.js.map +1 -0
  751. package/dist/workflow/GovernanceLock.d.ts +35 -0
  752. package/dist/workflow/GovernanceLock.js +58 -0
  753. package/dist/workflow/GovernanceLock.js.map +1 -0
  754. package/dist/workflow/GovernanceRoi.d.ts +52 -0
  755. package/dist/workflow/GovernanceRoi.js +204 -0
  756. package/dist/workflow/GovernanceRoi.js.map +1 -0
  757. package/dist/workflow/GovernanceTemplatePacks.d.ts +24 -0
  758. package/dist/workflow/GovernanceTemplatePacks.js +2134 -0
  759. package/dist/workflow/GovernanceTemplatePacks.js.map +1 -0
  760. package/dist/workflow/GovernanceTemplates.d.ts +19 -0
  761. package/dist/workflow/GovernanceTemplates.js +1291 -0
  762. package/dist/workflow/GovernanceTemplates.js.map +1 -0
  763. package/dist/workflow/McpGovernance.d.ts +63 -0
  764. package/dist/workflow/McpGovernance.js +198 -0
  765. package/dist/workflow/McpGovernance.js.map +1 -0
  766. package/dist/workflow/OutOfScopeStore.d.ts +37 -0
  767. package/dist/workflow/OutOfScopeStore.js +164 -0
  768. package/dist/workflow/OutOfScopeStore.js.map +1 -0
  769. package/dist/workflow/PhaseMarkerTracker.d.ts +63 -0
  770. package/dist/workflow/PhaseMarkerTracker.js +291 -0
  771. package/dist/workflow/PhaseMarkerTracker.js.map +1 -0
  772. package/dist/workflow/ResourceGovernance.d.ts +120 -0
  773. package/dist/workflow/ResourceGovernance.js +531 -0
  774. package/dist/workflow/ResourceGovernance.js.map +1 -0
  775. package/dist/workflow/ReviewAnalyzer.d.ts +80 -0
  776. package/dist/workflow/ReviewAnalyzer.js +438 -0
  777. package/dist/workflow/ReviewAnalyzer.js.map +1 -0
  778. package/dist/workflow/ReviewStore.d.ts +36 -0
  779. package/dist/workflow/ReviewStore.js +42 -0
  780. package/dist/workflow/ReviewStore.js.map +1 -0
  781. package/dist/workflow/SecurityAudit.d.ts +27 -0
  782. package/dist/workflow/SecurityAudit.js +294 -0
  783. package/dist/workflow/SecurityAudit.js.map +1 -0
  784. package/dist/workflow/SessionCoordinator.d.ts +103 -0
  785. package/dist/workflow/SessionCoordinator.js +401 -0
  786. package/dist/workflow/SessionCoordinator.js.map +1 -0
  787. package/dist/workflow/SessionPreamble.d.ts +19 -0
  788. package/dist/workflow/SessionPreamble.js +130 -0
  789. package/dist/workflow/SessionPreamble.js.map +1 -0
  790. package/dist/workflow/SessionStateTracker.d.ts +74 -0
  791. package/dist/workflow/SessionStateTracker.js +270 -0
  792. package/dist/workflow/SessionStateTracker.js.map +1 -0
  793. package/dist/workflow/ShipPipeline.d.ts +30 -0
  794. package/dist/workflow/ShipPipeline.js +366 -0
  795. package/dist/workflow/ShipPipeline.js.map +1 -0
  796. package/dist/workflow/TaskArtifactScaffolder.d.ts +69 -0
  797. package/dist/workflow/TaskArtifactScaffolder.js +333 -0
  798. package/dist/workflow/TaskArtifactScaffolder.js.map +1 -0
  799. package/dist/workflow/TaskDependencyGraph.d.ts +73 -0
  800. package/dist/workflow/TaskDependencyGraph.js +245 -0
  801. package/dist/workflow/TaskDependencyGraph.js.map +1 -0
  802. package/dist/workflow/TaskLevelDetector.d.ts +41 -0
  803. package/dist/workflow/TaskLevelDetector.js +219 -0
  804. package/dist/workflow/TaskLevelDetector.js.map +1 -0
  805. package/dist/workflow/TaskMetricsStore.d.ts +49 -0
  806. package/dist/workflow/TaskMetricsStore.js +149 -0
  807. package/dist/workflow/TaskMetricsStore.js.map +1 -0
  808. package/dist/workflow/TaskScoreEngine.d.ts +42 -0
  809. package/dist/workflow/TaskScoreEngine.js +181 -0
  810. package/dist/workflow/TaskScoreEngine.js.map +1 -0
  811. package/dist/workflow/TddLoop.d.ts +49 -0
  812. package/dist/workflow/TddLoop.js +78 -0
  813. package/dist/workflow/TddLoop.js.map +1 -0
  814. package/dist/workflow/UpgradeManager.d.ts +178 -0
  815. package/dist/workflow/UpgradeManager.js +665 -0
  816. package/dist/workflow/UpgradeManager.js.map +1 -0
  817. package/dist/workflow/VerificationCommands.d.ts +36 -0
  818. package/dist/workflow/VerificationCommands.js +123 -0
  819. package/dist/workflow/VerificationCommands.js.map +1 -0
  820. package/dist/workflow/VerificationProfile.d.ts +67 -0
  821. package/dist/workflow/VerificationProfile.js +241 -0
  822. package/dist/workflow/VerificationProfile.js.map +1 -0
  823. package/dist/workflow/VerificationSchema.d.ts +46 -0
  824. package/dist/workflow/VerificationSchema.js +97 -0
  825. package/dist/workflow/VerificationSchema.js.map +1 -0
  826. package/dist/workflow/WorkflowArtifactWriter.d.ts +113 -0
  827. package/dist/workflow/WorkflowArtifactWriter.js +242 -0
  828. package/dist/workflow/WorkflowArtifactWriter.js.map +1 -0
  829. package/dist/workflow/WorkflowEngine.d.ts +83 -0
  830. package/dist/workflow/WorkflowEngine.js +183 -0
  831. package/dist/workflow/WorkflowEngine.js.map +1 -0
  832. package/dist/workflow/WorkflowGuidance.d.ts +30 -0
  833. package/dist/workflow/WorkflowGuidance.js +204 -0
  834. package/dist/workflow/WorkflowGuidance.js.map +1 -0
  835. package/dist/workflow/WorkflowOpenTasks.d.ts +16 -0
  836. package/dist/workflow/WorkflowOpenTasks.js +37 -0
  837. package/dist/workflow/WorkflowOpenTasks.js.map +1 -0
  838. package/dist/workflow/WorkflowOrchestrator.d.ts +59 -0
  839. package/dist/workflow/WorkflowOrchestrator.js +326 -0
  840. package/dist/workflow/WorkflowOrchestrator.js.map +1 -0
  841. package/dist/workflow/WorkflowTemplates.d.ts +38 -0
  842. package/dist/workflow/WorkflowTemplates.js +371 -0
  843. package/dist/workflow/WorkflowTemplates.js.map +1 -0
  844. package/dist/workflow/WorkspaceLifecycle.d.ts +71 -0
  845. package/dist/workflow/WorkspaceLifecycle.js +401 -0
  846. package/dist/workflow/WorkspaceLifecycle.js.map +1 -0
  847. package/dist/workflow/WorkspacePolicy.d.ts +46 -0
  848. package/dist/workflow/WorkspacePolicy.js +141 -0
  849. package/dist/workflow/WorkspacePolicy.js.map +1 -0
  850. package/dist/workflow/WorkspaceSafety.d.ts +9 -0
  851. package/dist/workflow/WorkspaceSafety.js +49 -0
  852. package/dist/workflow/WorkspaceSafety.js.map +1 -0
  853. package/dist/workflow/WorkspaceTopology.d.ts +58 -0
  854. package/dist/workflow/WorkspaceTopology.js +176 -0
  855. package/dist/workflow/WorkspaceTopology.js.map +1 -0
  856. package/dist/workflow/autofix/AutoFixEngine.d.ts +37 -0
  857. package/dist/workflow/autofix/AutoFixEngine.js +169 -0
  858. package/dist/workflow/autofix/AutoFixEngine.js.map +1 -0
  859. package/dist/workflow/autonomous/AutonomousDevLoop.d.ts +88 -0
  860. package/dist/workflow/autonomous/AutonomousDevLoop.js +381 -0
  861. package/dist/workflow/autonomous/AutonomousDevLoop.js.map +1 -0
  862. package/dist/workflow/autonomous/BackgroundHunter.d.ts +74 -0
  863. package/dist/workflow/autonomous/BackgroundHunter.js +220 -0
  864. package/dist/workflow/autonomous/BackgroundHunter.js.map +1 -0
  865. package/dist/workflow/autonomous/WorklogManager.d.ts +50 -0
  866. package/dist/workflow/autonomous/WorklogManager.js +264 -0
  867. package/dist/workflow/autonomous/WorklogManager.js.map +1 -0
  868. package/dist/workflow/autonomous/index.d.ts +3 -0
  869. package/dist/workflow/autonomous/index.js +5 -0
  870. package/dist/workflow/autonomous/index.js.map +1 -0
  871. package/dist/workflow/cognitive/AmbiguityScorer.d.ts +17 -0
  872. package/dist/workflow/cognitive/AmbiguityScorer.js +107 -0
  873. package/dist/workflow/cognitive/AmbiguityScorer.js.map +1 -0
  874. package/dist/workflow/cognitive/ConsensusPlanner.d.ts +26 -0
  875. package/dist/workflow/cognitive/ConsensusPlanner.js +141 -0
  876. package/dist/workflow/cognitive/ConsensusPlanner.js.map +1 -0
  877. package/dist/workflow/cognitive/SocraticQuestioner.d.ts +33 -0
  878. package/dist/workflow/cognitive/SocraticQuestioner.js +276 -0
  879. package/dist/workflow/cognitive/SocraticQuestioner.js.map +1 -0
  880. package/dist/workflow/evolution/LessonExtractor.d.ts +90 -0
  881. package/dist/workflow/evolution/LessonExtractor.js +317 -0
  882. package/dist/workflow/evolution/LessonExtractor.js.map +1 -0
  883. package/dist/workflow/evolution/SelfImproveEngine.d.ts +156 -0
  884. package/dist/workflow/evolution/SelfImproveEngine.js +361 -0
  885. package/dist/workflow/evolution/SelfImproveEngine.js.map +1 -0
  886. package/dist/workflow/execution/RalphEngine.d.ts +54 -0
  887. package/dist/workflow/execution/RalphEngine.js +145 -0
  888. package/dist/workflow/execution/RalphEngine.js.map +1 -0
  889. package/dist/workflow/execution/UltraworkEngine.d.ts +43 -0
  890. package/dist/workflow/execution/UltraworkEngine.js +135 -0
  891. package/dist/workflow/execution/UltraworkEngine.js.map +1 -0
  892. package/dist/workflow/gates/EnhancedGates.d.ts +74 -0
  893. package/dist/workflow/gates/EnhancedGates.js +653 -0
  894. package/dist/workflow/gates/EnhancedGates.js.map +1 -0
  895. package/dist/workflow/gates/GateSystem.d.ts +180 -0
  896. package/dist/workflow/gates/GateSystem.js +1279 -0
  897. package/dist/workflow/gates/GateSystem.js.map +1 -0
  898. package/dist/workflow/gates/MetaGovernanceGates.d.ts +70 -0
  899. package/dist/workflow/gates/MetaGovernanceGates.js +617 -0
  900. package/dist/workflow/gates/MetaGovernanceGates.js.map +1 -0
  901. package/dist/workflow/gates/VisualGate.d.ts +41 -0
  902. package/dist/workflow/gates/VisualGate.js +174 -0
  903. package/dist/workflow/gates/VisualGate.js.map +1 -0
  904. package/dist/workflow/index.d.ts +45 -0
  905. package/dist/workflow/index.js +47 -0
  906. package/dist/workflow/index.js.map +1 -0
  907. package/dist/workflow/qa/E2ETestRunner.d.ts +102 -0
  908. package/dist/workflow/qa/E2ETestRunner.js +227 -0
  909. package/dist/workflow/qa/E2ETestRunner.js.map +1 -0
  910. package/dist/workflow/quality/HonestDelivery.d.ts +19 -0
  911. package/dist/workflow/quality/HonestDelivery.js +77 -0
  912. package/dist/workflow/quality/HonestDelivery.js.map +1 -0
  913. package/dist/workflow/quality/KarpathyEvaluator.d.ts +18 -0
  914. package/dist/workflow/quality/KarpathyEvaluator.js +76 -0
  915. package/dist/workflow/quality/KarpathyEvaluator.js.map +1 -0
  916. package/dist/workflow/types.d.ts +151 -0
  917. package/dist/workflow/types.js +4 -0
  918. package/dist/workflow/types.js.map +1 -0
  919. package/dist/workflows/DAGBuilder.d.ts +52 -0
  920. package/dist/workflows/DAGBuilder.js +169 -0
  921. package/dist/workflows/DAGBuilder.js.map +1 -0
  922. package/dist/workflows/GateParser.d.ts +55 -0
  923. package/dist/workflows/GateParser.js +73 -0
  924. package/dist/workflows/GateParser.js.map +1 -0
  925. package/dist/workflows/WorkflowExecutor.d.ts +56 -0
  926. package/dist/workflows/WorkflowExecutor.js +143 -0
  927. package/dist/workflows/WorkflowExecutor.js.map +1 -0
  928. package/dist/workflows/WorkflowOrchestrator.d.ts +81 -0
  929. package/dist/workflows/WorkflowOrchestrator.js +337 -0
  930. package/dist/workflows/WorkflowOrchestrator.js.map +1 -0
  931. package/dist/workflows/index.d.ts +2 -0
  932. package/dist/workflows/index.js +5 -0
  933. package/dist/workflows/index.js.map +1 -0
  934. package/dist/workflows/presets.d.ts +34 -0
  935. package/dist/workflows/presets.js +224 -0
  936. package/dist/workflows/presets.js.map +1 -0
  937. package/docs/README.md +105 -0
  938. package/docs/guides/DEVELOPMENT_WORKFLOW.md +99 -0
  939. package/docs/guides/GETTING_STARTED.md +93 -0
  940. package/docs/guides/MEDICAL_AGENT_OPERATING_GUIDE.md +61 -0
  941. package/docs/guides/MEDICAL_RESEARCH_DELIVERY.md +217 -0
  942. package/docs/guides/MIGRATION.md +119 -0
  943. package/docs/reference/cli.md +2921 -0
  944. package/docs/start/README.md +79 -0
  945. package/docs/start/agent-governance-demo.md +107 -0
  946. package/docs/start/artifact-lifecycle.md +326 -0
  947. package/docs/start/quickstart.md +191 -0
  948. package/docs/start/workflow-upgrade.md +198 -0
  949. package/docs/workflow/GATES_AND_SCORE.md +89 -0
  950. package/docs/workflow/PROMPT_OPTIMIZATION.md +44 -0
  951. package/docs/workflow/README.md +123 -0
  952. package/docs/workflow/node-library.md +52 -0
  953. package/docs/workflow/templates/api-contract.md +29 -0
  954. package/docs/workflow/templates/architecture-review.md +23 -0
  955. package/docs/workflow/templates/db-change-plan.md +20 -0
  956. package/docs/workflow/templates/docs-impact.md +17 -0
  957. package/docs/workflow/templates/e2e-plan.md +20 -0
  958. package/docs/workflow/templates/explore.md +16 -0
  959. package/docs/workflow/templates/github-actions-scale-preflight.yml +32 -0
  960. package/docs/workflow/templates/mini-prd.md +16 -0
  961. package/docs/workflow/templates/plan.md +37 -0
  962. package/docs/workflow/templates/pre-push-scale-preflight.sh +8 -0
  963. package/docs/workflow/templates/product-smoke.md +61 -0
  964. package/docs/workflow/templates/reality-check.md +28 -0
  965. package/docs/workflow/templates/resource-cleanup.md +17 -0
  966. package/docs/workflow/templates/resource-impact.md +25 -0
  967. package/docs/workflow/templates/review.md +12 -0
  968. package/docs/workflow/templates/runtime.md +23 -0
  969. package/docs/workflow/templates/security-review.md +26 -0
  970. package/docs/workflow/templates/skill-evidence.md +33 -0
  971. package/docs/workflow/templates/skill-plan.md +39 -0
  972. package/docs/workflow/templates/spec.md +17 -0
  973. package/docs/workflow/templates/standards-impact.md +28 -0
  974. package/docs/workflow/templates/summary.md +16 -0
  975. package/docs/workflow/templates/tasks.md +8 -0
  976. package/docs/workflow/templates/ui-spec.md +29 -0
  977. package/docs/workflow/templates/verification.md +20 -0
  978. package/docs/workflow/templates/visual-review.md +20 -0
  979. package/docs/zh/quickstart.md +108 -0
  980. package/examples/demo-projects/agent-governance-demo/CONTEXT.md +14 -0
  981. package/examples/demo-projects/agent-governance-demo/README.md +48 -0
  982. package/examples/demo-projects/agent-governance-demo/docs/CONTEXT-MAP.md +14 -0
  983. package/examples/demo-projects/agent-governance-demo/package.json +22 -0
  984. package/examples/demo-projects/agent-governance-demo/src/oauth-state.ts +39 -0
  985. package/examples/demo-projects/agent-governance-demo/tests/oauth-state.test.ts +52 -0
  986. package/mcp-configs/_INDEX.md +55 -0
  987. package/mcp-configs/context7/config.json +9 -0
  988. package/mcp-configs/fetch/config.json +9 -0
  989. package/mcp-configs/filesystem/config.json +9 -0
  990. package/mcp-configs/github/config.json +11 -0
  991. package/mcp-configs/memory/config.json +9 -0
  992. package/mcp-configs/neon/config.json +11 -0
  993. package/mcp-configs/playwright/config.json +9 -0
  994. package/mcp-configs/postgres/config.json +11 -0
  995. package/mcp-configs/puppeteer/config.json +9 -0
  996. package/mcp-configs/sequential-thinking/config.json +9 -0
  997. package/package.json +113 -0
  998. package/scripts/workflow/lib/gbrain-runtime.mjs +185 -0
  999. package/scripts/workflow/lib/report-output.mjs +107 -0
  1000. package/scripts/workflow/medscale-release-smoke.mjs +338 -0
  1001. package/scripts/workflow/provider-rehearsal.mjs +597 -0
  1002. package/scripts/workflow/setup-smoke.mjs +433 -0
  1003. package/target-research-platform/bridge_runner.py +310 -0
  1004. package/target-research-platform/config.yaml +148 -0
  1005. package/target-research-platform/data/immune_infiltration/ACC.csv +201 -0
  1006. package/target-research-platform/data/immune_infiltration/BLCA.csv +201 -0
  1007. package/target-research-platform/data/immune_infiltration/BRCA.csv +201 -0
  1008. package/target-research-platform/data/immune_infiltration/CESC.csv +201 -0
  1009. package/target-research-platform/data/immune_infiltration/CHOL.csv +201 -0
  1010. package/target-research-platform/data/immune_infiltration/COAD.csv +201 -0
  1011. package/target-research-platform/data/immune_infiltration/DLBC.csv +201 -0
  1012. package/target-research-platform/data/immune_infiltration/ESCA.csv +201 -0
  1013. package/target-research-platform/data/immune_infiltration/GBM.csv +201 -0
  1014. package/target-research-platform/data/immune_infiltration/HNSC.csv +201 -0
  1015. package/target-research-platform/data/immune_infiltration/KICH.csv +201 -0
  1016. package/target-research-platform/data/immune_infiltration/KIRC.csv +201 -0
  1017. package/target-research-platform/data/immune_infiltration/KIRP.csv +201 -0
  1018. package/target-research-platform/data/immune_infiltration/LAML.csv +201 -0
  1019. package/target-research-platform/data/immune_infiltration/LGG.csv +201 -0
  1020. package/target-research-platform/data/immune_infiltration/LIHC.csv +201 -0
  1021. package/target-research-platform/data/immune_infiltration/LUAD.csv +201 -0
  1022. package/target-research-platform/data/immune_infiltration/LUSC.csv +201 -0
  1023. package/target-research-platform/data/immune_infiltration/MESO.csv +201 -0
  1024. package/target-research-platform/data/immune_infiltration/OV.csv +201 -0
  1025. package/target-research-platform/data/immune_infiltration/PAAD.csv +201 -0
  1026. package/target-research-platform/data/immune_infiltration/PCPG.csv +201 -0
  1027. package/target-research-platform/data/immune_infiltration/PRAD.csv +201 -0
  1028. package/target-research-platform/data/immune_infiltration/READ.csv +201 -0
  1029. package/target-research-platform/data/immune_infiltration/SARC.csv +201 -0
  1030. package/target-research-platform/data/immune_infiltration/SKCM.csv +201 -0
  1031. package/target-research-platform/data/immune_infiltration/STAD.csv +201 -0
  1032. package/target-research-platform/data/immune_infiltration/TGCT.csv +201 -0
  1033. package/target-research-platform/data/immune_infiltration/THCA.csv +201 -0
  1034. package/target-research-platform/data/immune_infiltration/THYM.csv +201 -0
  1035. package/target-research-platform/data/immune_infiltration/UCEC.csv +201 -0
  1036. package/target-research-platform/data/immune_infiltration/UCS.csv +201 -0
  1037. package/target-research-platform/data/immune_infiltration/UVM.csv +201 -0
  1038. package/target-research-platform/docs/JSON_SCHEMA.md +352 -0
  1039. package/target-research-platform/docs/PROGRESS_2026-06-09.md +140 -0
  1040. package/target-research-platform/main.py +755 -0
  1041. package/target-research-platform/pyproject.toml +54 -0
  1042. package/target-research-platform/requirements.txt +9 -0
  1043. package/target-research-platform/run_dashboard.py +5 -0
  1044. package/target-research-platform/run_real_medical_workflow.py +28 -0
  1045. package/target-research-platform/scripts/demo_report.py +481 -0
  1046. package/target-research-platform/scripts/generate_evidence_package.py +75 -0
  1047. package/target-research-platform/scripts/prepare_immune_data.py +386 -0
  1048. package/target-research-platform/src/__init__.py +4 -0
  1049. package/target-research-platform/src/analysis/__init__.py +3 -0
  1050. package/target-research-platform/src/analysis/stage1_expression/__init__.py +12 -0
  1051. package/target-research-platform/src/analysis/stage1_expression/immune_correlation.py +366 -0
  1052. package/target-research-platform/src/analysis/stage1_expression/pipeline.py +579 -0
  1053. package/target-research-platform/src/analysis/stage1_expression/survival_analysis.py +382 -0
  1054. package/target-research-platform/src/analysis/stage2_screening/__init__.py +12 -0
  1055. package/target-research-platform/src/analysis/stage2_screening/differential_expression.py +451 -0
  1056. package/target-research-platform/src/analysis/stage2_screening/druggability_score.py +477 -0
  1057. package/target-research-platform/src/analysis/stage2_screening/pipeline.py +822 -0
  1058. package/target-research-platform/src/analysis/stage3_deep_research/__init__.py +12 -0
  1059. package/target-research-platform/src/analysis/stage3_deep_research/competitive_landscape.py +479 -0
  1060. package/target-research-platform/src/analysis/stage3_deep_research/pipeline.py +763 -0
  1061. package/target-research-platform/src/analysis/stage3_deep_research/target_function.py +290 -0
  1062. package/target-research-platform/src/analysis/stage4_business/__init__.py +12 -0
  1063. package/target-research-platform/src/analysis/stage4_business/business_plan.py +816 -0
  1064. package/target-research-platform/src/analysis/stage4_business/milestone_planner.py +844 -0
  1065. package/target-research-platform/src/analysis/stage4_business/pipeline.py +284 -0
  1066. package/target-research-platform/src/api_clients/__init__.py +29 -0
  1067. package/target-research-platform/src/api_clients/aminer_client.py +163 -0
  1068. package/target-research-platform/src/api_clients/base_client.py +186 -0
  1069. package/target-research-platform/src/api_clients/clinicaltrials_client.py +411 -0
  1070. package/target-research-platform/src/api_clients/geo_client.py +1420 -0
  1071. package/target-research-platform/src/api_clients/gtex_client.py +209 -0
  1072. package/target-research-platform/src/api_clients/hpa_client.py +170 -0
  1073. package/target-research-platform/src/api_clients/immune_data_manager.py +247 -0
  1074. package/target-research-platform/src/api_clients/openalex_client.py +86 -0
  1075. package/target-research-platform/src/api_clients/opentargets_client.py +558 -0
  1076. package/target-research-platform/src/api_clients/pubmed_client.py +361 -0
  1077. package/target-research-platform/src/api_clients/tcga_client.py +712 -0
  1078. package/target-research-platform/src/api_clients/timer_client.py +169 -0
  1079. package/target-research-platform/src/dashboard/app.py +2283 -0
  1080. package/target-research-platform/src/dashboard/deliverables.py +710 -0
  1081. package/target-research-platform/src/dashboard/static/artifactPreview.js +96 -0
  1082. package/target-research-platform/src/dashboard/static/index.html +1292 -0
  1083. package/target-research-platform/src/dashboard/status_tracker.py +237 -0
  1084. package/target-research-platform/src/output/__init__.py +42 -0
  1085. package/target-research-platform/src/output/agent_llm_provider.py +171 -0
  1086. package/target-research-platform/src/output/chart_generator.py +550 -0
  1087. package/target-research-platform/src/output/data_exporter.py +215 -0
  1088. package/target-research-platform/src/output/delivery_packager.py +791 -0
  1089. package/target-research-platform/src/output/evidence_package.py +230 -0
  1090. package/target-research-platform/src/output/journal_templates.py +193 -0
  1091. package/target-research-platform/src/output/literature_enricher.py +395 -0
  1092. package/target-research-platform/src/output/literature_reviewer.py +420 -0
  1093. package/target-research-platform/src/output/manuscript_fact_checker.py +279 -0
  1094. package/target-research-platform/src/output/manuscript_generator.py +1189 -0
  1095. package/target-research-platform/src/output/manuscript_quality.py +401 -0
  1096. package/target-research-platform/src/output/medical_skills_bridge.py +140 -0
  1097. package/target-research-platform/src/output/report_generator.py +542 -0
  1098. package/target-research-platform/src/output/usage_envelope.py +193 -0
  1099. package/target-research-platform/src/utils/__init__.py +1 -0
  1100. package/target-research-platform/src/utils/config.py +125 -0
  1101. package/target-research-platform/src/utils/logger.py +71 -0
  1102. package/target-research-platform/src/validators/__init__.py +13 -0
  1103. package/target-research-platform/src/validators/cross_validator.py +394 -0
  1104. package/target-research-platform/src/validators/data_provenance.py +298 -0
@@ -0,0 +1,2921 @@
1
+ # SCALE Engine CLI Reference
2
+
3
+ > Auto-generated by `scripts/generate-cli-reference.mjs`. Do not edit by hand.
4
+ > Regenerate with `npm run docs:cli`.
5
+
6
+ Version: `0.43.0`
7
+
8
+ SCALE Engine v0.43.0 CLI - hardened phase workflow gates, governance templates, platform adapters, skill routing, and verification automation
9
+
10
+ ## Commands
11
+
12
+ - [`scale lite`](#scale-lite)
13
+ - [`scale vibe`](#scale-vibe)
14
+ - [`scale vibe-next`](#scale-vibe-next)
15
+ - [`scale vibe-index`](#scale-vibe-index)
16
+ - [`scale define`](#scale-define)
17
+ - [`scale plan`](#scale-plan)
18
+ - [`scale build`](#scale-build)
19
+ - [`scale verify`](#scale-verify)
20
+ - [`scale review`](#scale-review)
21
+ - [`scale ship`](#scale-ship)
22
+ - [`scale run`](#scale-run)
23
+ - [`scale init`](#scale-init)
24
+ - [`scale setup`](#scale-setup)
25
+ - [`scale bootstrap`](#scale-bootstrap)
26
+ - [`scale bootstrap deps`](#scale-bootstrap-deps)
27
+ - [`scale doctor`](#scale-doctor)
28
+ - [`scale session`](#scale-session)
29
+ - [`scale session start`](#scale-session-start)
30
+ - [`scale session end`](#scale-session-end)
31
+ - [`scale gate`](#scale-gate)
32
+ - [`scale gate pre-tool`](#scale-gate-pre-tool)
33
+ - [`scale gate post-tool`](#scale-gate-post-tool)
34
+ - [`scale gate before-stop`](#scale-gate-before-stop)
35
+ - [`scale gates`](#scale-gates)
36
+ - [`scale gates status`](#scale-gates-status)
37
+ - [`scale meta-governance`](#scale-meta-governance)
38
+ - [`scale create`](#scale-create)
39
+ - [`scale list`](#scale-list)
40
+ - [`scale show`](#scale-show)
41
+ - [`scale suggest`](#scale-suggest)
42
+ - [`scale transition`](#scale-transition)
43
+ - [`scale verifyTask`](#scale-verifyTask)
44
+ - [`scale role`](#scale-role)
45
+ - [`scale role activate`](#scale-role-activate)
46
+ - [`scale role show`](#scale-role-show)
47
+ - [`scale context`](#scale-context)
48
+ - [`scale context build`](#scale-context-build)
49
+ - [`scale context status`](#scale-context-status)
50
+ - [`scale context inject`](#scale-context-inject)
51
+ - [`scale context glossary`](#scale-context-glossary)
52
+ - [`scale context init`](#scale-context-init)
53
+ - [`scale context grill`](#scale-context-grill)
54
+ - [`scale context budget`](#scale-context-budget)
55
+ - [`scale context pack`](#scale-context-pack)
56
+ - [`scale context doctor`](#scale-context-doctor)
57
+ - [`scale context anatomy`](#scale-context-anatomy)
58
+ - [`scale evolve`](#scale-evolve)
59
+ - [`scale stats`](#scale-stats)
60
+ - [`scale preflight`](#scale-preflight)
61
+ - [`scale upgrade`](#scale-upgrade)
62
+ - [`scale upgrade check`](#scale-upgrade-check)
63
+ - [`scale upgrade plan`](#scale-upgrade-plan)
64
+ - [`scale upgrade diff`](#scale-upgrade-diff)
65
+ - [`scale upgrade apply`](#scale-upgrade-apply)
66
+ - [`scale upgrade rollback`](#scale-upgrade-rollback)
67
+ - [`scale governance`](#scale-governance)
68
+ - [`scale governance diff`](#scale-governance-diff)
69
+ - [`scale governance mode`](#scale-governance-mode)
70
+ - [`scale governance roi`](#scale-governance-roi)
71
+ - [`scale prompt`](#scale-prompt)
72
+ - [`scale prompt optimize`](#scale-prompt-optimize)
73
+ - [`scale score`](#scale-score)
74
+ - [`scale score task`](#scale-score-task)
75
+ - [`scale ai-os`](#scale-ai-os)
76
+ - [`scale ai-os adopt`](#scale-ai-os-adopt)
77
+ - [`scale ai-os status`](#scale-ai-os-status)
78
+ - [`scale ai-os plan`](#scale-ai-os-plan)
79
+ - [`scale ai-os run`](#scale-ai-os-run)
80
+ - [`scale ai-os dashboard`](#scale-ai-os-dashboard)
81
+ - [`scale ai-os benchmark`](#scale-ai-os-benchmark)
82
+ - [`scale ai-os migrate`](#scale-ai-os-migrate)
83
+ - [`scale ai-os doctor`](#scale-ai-os-doctor)
84
+ - [`scale codegraph`](#scale-codegraph)
85
+ - [`scale codegraph status`](#scale-codegraph-status)
86
+ - [`scale codegraph init`](#scale-codegraph-init)
87
+ - [`scale codegraph query`](#scale-codegraph-query)
88
+ - [`scale codegraph impact`](#scale-codegraph-impact)
89
+ - [`scale codegraph context`](#scale-codegraph-context)
90
+ - [`scale codegraph roi`](#scale-codegraph-roi)
91
+ - [`scale eval`](#scale-eval)
92
+ - [`scale eval init`](#scale-eval-init)
93
+ - [`scale eval run`](#scale-eval-run)
94
+ - [`scale eval compare`](#scale-eval-compare)
95
+ - [`scale eval report`](#scale-eval-report)
96
+ - [`scale eval failures`](#scale-eval-failures)
97
+ - [`scale eval replay`](#scale-eval-replay)
98
+ - [`scale eval promote-failure`](#scale-eval-promote-failure)
99
+ - [`scale artifact`](#scale-artifact)
100
+ - [`scale artifact render`](#scale-artifact-render)
101
+ - [`scale artifact doctor`](#scale-artifact-doctor)
102
+ - [`scale artifact settle`](#scale-artifact-settle)
103
+ - [`scale artifact open`](#scale-artifact-open)
104
+ - [`scale artifact dashboard`](#scale-artifact-dashboard)
105
+ - [`scale assets`](#scale-assets)
106
+ - [`scale assets scan`](#scale-assets-scan)
107
+ - [`scale assets doctor`](#scale-assets-doctor)
108
+ - [`scale assets settle`](#scale-assets-settle)
109
+ - [`scale standards`](#scale-standards)
110
+ - [`scale standards scan`](#scale-standards-scan)
111
+ - [`scale standards doctor`](#scale-standards-doctor)
112
+ - [`scale standards settle`](#scale-standards-settle)
113
+ - [`scale standards baseline`](#scale-standards-baseline)
114
+ - [`scale metrics`](#scale-metrics)
115
+ - [`scale metrics list`](#scale-metrics-list)
116
+ - [`scale task-artifacts`](#scale-task-artifacts)
117
+ - [`scale task-artifacts check`](#scale-task-artifacts-check)
118
+ - [`scale workspace`](#scale-workspace)
119
+ - [`scale workspace map`](#scale-workspace-map)
120
+ - [`scale workspace status`](#scale-workspace-status)
121
+ - [`scale workspace finish`](#scale-workspace-finish)
122
+ - [`scale workspace cleanup`](#scale-workspace-cleanup)
123
+ - [`scale status`](#scale-status)
124
+ - [`scale workflow`](#scale-workflow)
125
+ - [`scale workflow list`](#scale-workflow-list)
126
+ - [`scale evidence`](#scale-evidence)
127
+ - [`scale evidence list`](#scale-evidence-list)
128
+ - [`scale evidence show`](#scale-evidence-show)
129
+ - [`scale runtime`](#scale-runtime)
130
+ - [`scale runtime start`](#scale-runtime-start)
131
+ - [`scale runtime end`](#scale-runtime-end)
132
+ - [`scale runtime record`](#scale-runtime-record)
133
+ - [`scale runtime doctor`](#scale-runtime-doctor)
134
+ - [`scale runtime final-check`](#scale-runtime-final-check)
135
+ - [`scale token`](#scale-token)
136
+ - [`scale token record`](#scale-token-record)
137
+ - [`scale token report`](#scale-token-report)
138
+ - [`scale memory`](#scale-memory)
139
+ - [`scale memory pack`](#scale-memory-pack)
140
+ - [`scale memory doctor`](#scale-memory-doctor)
141
+ - [`scale memory cerebrum`](#scale-memory-cerebrum)
142
+ - [`scale memory settle`](#scale-memory-settle)
143
+ - [`scale memory ingest`](#scale-memory-ingest)
144
+ - [`scale memory query`](#scale-memory-query)
145
+ - [`scale memory contradictions`](#scale-memory-contradictions)
146
+ - [`scale memory dream`](#scale-memory-dream)
147
+ - [`scale memory promote`](#scale-memory-promote)
148
+ - [`scale memory export`](#scale-memory-export)
149
+ - [`scale memory import`](#scale-memory-import)
150
+ - [`scale memory provider`](#scale-memory-provider)
151
+ - [`scale memory provider init`](#scale-memory-provider-init)
152
+ - [`scale memory provider status`](#scale-memory-provider-status)
153
+ - [`scale memory provider recall`](#scale-memory-provider-recall)
154
+ - [`scale memory provider use`](#scale-memory-provider-use)
155
+ - [`scale diagnose`](#scale-diagnose)
156
+ - [`scale diagnose plan`](#scale-diagnose-plan)
157
+ - [`scale hunt`](#scale-hunt)
158
+ - [`scale hunt scan`](#scale-hunt-scan)
159
+ - [`scale hunt report`](#scale-hunt-report)
160
+ - [`scale hunt diagnose`](#scale-hunt-diagnose)
161
+ - [`scale hunt ignore`](#scale-hunt-ignore)
162
+ - [`scale dependency`](#scale-dependency)
163
+ - [`scale dependency audit`](#scale-dependency-audit)
164
+ - [`scale tdd`](#scale-tdd)
165
+ - [`scale tdd slice`](#scale-tdd-slice)
166
+ - [`scale tool`](#scale-tool)
167
+ - [`scale tool policy`](#scale-tool-policy)
168
+ - [`scale tool doctor`](#scale-tool-doctor)
169
+ - [`scale tool plan`](#scale-tool-plan)
170
+ - [`scale tool run`](#scale-tool-run)
171
+ - [`scale tool evidence`](#scale-tool-evidence)
172
+ - [`scale tool outdated`](#scale-tool-outdated)
173
+ - [`scale tools`](#scale-tools)
174
+ - [`scale tools policy`](#scale-tools-policy)
175
+ - [`scale tools doctor`](#scale-tools-doctor)
176
+ - [`scale tools plan`](#scale-tools-plan)
177
+ - [`scale tools run`](#scale-tools-run)
178
+ - [`scale tools evidence`](#scale-tools-evidence)
179
+ - [`scale tools outdated`](#scale-tools-outdated)
180
+ - [`scale skill`](#scale-skill)
181
+ - [`scale skill scan`](#scale-skill-scan)
182
+ - [`scale skill doctor`](#scale-skill-doctor)
183
+ - [`scale skill plan`](#scale-skill-plan)
184
+ - [`scale skill check`](#scale-skill-check)
185
+ - [`scale skill repo`](#scale-skill-repo)
186
+ - [`scale skill safety`](#scale-skill-safety)
187
+ - [`scale skill radar`](#scale-skill-radar)
188
+ - [`scale skill recommend`](#scale-skill-recommend)
189
+ - [`scale skill outdated`](#scale-skill-outdated)
190
+ - [`scale skills`](#scale-skills)
191
+ - [`scale skills scan`](#scale-skills-scan)
192
+ - [`scale skills doctor`](#scale-skills-doctor)
193
+ - [`scale skills plan`](#scale-skills-plan)
194
+ - [`scale skills check`](#scale-skills-check)
195
+ - [`scale skills repo`](#scale-skills-repo)
196
+ - [`scale skills safety`](#scale-skills-safety)
197
+ - [`scale skills radar`](#scale-skills-radar)
198
+ - [`scale skills recommend`](#scale-skills-recommend)
199
+ - [`scale skills outdated`](#scale-skills-outdated)
200
+ - [`scale agent`](#scale-agent)
201
+ - [`scale agent spawn`](#scale-agent-spawn)
202
+ - [`scale agent list`](#scale-agent-list)
203
+ - [`scale agent profiles`](#scale-agent-profiles)
204
+ - [`scale agent leaders`](#scale-agent-leaders)
205
+ - [`scale team`](#scale-team)
206
+ - [`scale team create`](#scale-team-create)
207
+ - [`scale team status`](#scale-team-status)
208
+ - [`scale create-prd`](#scale-create-prd)
209
+ - [`scale out-of-scope`](#scale-out-of-scope)
210
+ - [`scale out-of-scope add`](#scale-out-of-scope-add)
211
+ - [`scale out-of-scope check`](#scale-out-of-scope-check)
212
+ - [`scale out-of-scope list`](#scale-out-of-scope-list)
213
+ - [`scale out-of-scope remove`](#scale-out-of-scope-remove)
214
+ - [`scale config`](#scale-config)
215
+ - [`scale config profile`](#scale-config-profile)
216
+ - [`scale quickstart`](#scale-quickstart)
217
+ - [`scale tui`](#scale-tui)
218
+ - [`scale qa`](#scale-qa)
219
+ - [`scale qa e2e`](#scale-qa-e2e)
220
+ - [`scale qa daemon`](#scale-qa-daemon)
221
+ - [`scale auto-fix`](#scale-auto-fix)
222
+ - [`scale cost-report`](#scale-cost-report)
223
+ - [`scale cost-optimize`](#scale-cost-optimize)
224
+ - [`scale cross-review`](#scale-cross-review)
225
+ - [`scale shield`](#scale-shield)
226
+ - [`scale shield compile`](#scale-shield-compile)
227
+ - [`scale shield status`](#scale-shield-status)
228
+ - [`scale shield test`](#scale-shield-test)
229
+ - [`scale orch`](#scale-orch)
230
+ - [`scale orch start`](#scale-orch-start)
231
+ - [`scale orch stop`](#scale-orch-stop)
232
+ - [`scale orch status`](#scale-orch-status)
233
+ - [`scale orch log`](#scale-orch-log)
234
+ - [`scale cortex`](#scale-cortex)
235
+ - [`scale cortex extract`](#scale-cortex-extract)
236
+ - [`scale cortex inject`](#scale-cortex-inject)
237
+ - [`scale cortex metrics`](#scale-cortex-metrics)
238
+ - [`scale cortex evolve`](#scale-cortex-evolve)
239
+ - [`scale cortex verify`](#scale-cortex-verify)
240
+
241
+ ---
242
+ ## `scale lite`
243
+
244
+ SCALE Lite Mode - Interactive phase workflow
245
+
246
+
247
+ | Option | Type | Default | Description |
248
+ |---|---|---|---|
249
+ | `--phase` | positional | | |
250
+ | `--interactive` | boolean | `false` | |
251
+ | `--list` | boolean | `false` | |
252
+ | `--skills` | boolean | `false` | |
253
+
254
+
255
+ ## `scale vibe`
256
+
257
+ 生成可复制的 SCALE Vibe Coding 中文提示词模板
258
+
259
+
260
+ | Option | Type | Default | Description |
261
+ |---|---|---|---|
262
+ | `--template` | string | | 模板 ID,例如 product-ceo-discovery / technical-architecture-plan |
263
+ | `--phase` | string | | 兼容旧阶段: idea/research/prd/design/agents/build |
264
+ | `--pack` | string | | 组合包: full-mvp/quick-prototype/developer-path/vibe-coder-path |
265
+ | `--app` | string | | 项目或应用名称 |
266
+ | `--scenario` | string | | 本次任务场景 |
267
+ | `--user` | string | | 用户身份或角色 |
268
+ | `--output` | string | | 输出文件路径;不填则输出到终端 |
269
+ | `--interactive` | boolean | `false` | 显示交互式使用引导 |
270
+
271
+
272
+ ## `scale vibe-next`
273
+
274
+ 基于旧阶段推荐下一步 Vibe 模板
275
+
276
+
277
+ | Option | Type | Default | Description |
278
+ |---|---|---|---|
279
+ | `--current` | string | | 当前阶段 |
280
+
281
+
282
+ ## `scale vibe-index`
283
+
284
+ 生成 SCALE Vibe Coding 可视化提示词索引
285
+
286
+
287
+ | Option | Type | Default | Description |
288
+ |---|---|---|---|
289
+ | `--output` | string | `docs/VIBE-TEMPLATES.md` | 输出文件路径 |
290
+ | `--app` | string | | 项目或应用名称 |
291
+
292
+
293
+ ## `scale define`
294
+
295
+ DEFINE: Create Spec with AmbiguityScorer + SocraticQuestioner (/spec)
296
+
297
+
298
+ | Option | Type | Default | Description |
299
+ |---|---|---|---|
300
+ | `--title` | positional | | |
301
+ | `--description` | string | | |
302
+ | `--success-criteria` | string | | Comma-separated criteria |
303
+ | `--goal` | string | | Goal answer for Socratic refinement |
304
+ | `--constraint` | string | | Constraint answer for Socratic refinement |
305
+ | `--acceptance` | string | | Acceptance criteria answer for Socratic refinement |
306
+ | `--context` | string | | Context answer for Socratic refinement |
307
+ | `--risk` | string | | Risk answer for Socratic refinement |
308
+ | `--priority` | string | | Priority answer for Socratic refinement |
309
+ | `--format` | string | | Output format: html or md (default: html) |
310
+ | `--brand` | string | | Brand theme for HTML output (vercel/stripe/notion/linear/github) |
311
+ | `--json` | boolean | `false` | |
312
+
313
+
314
+ ## `scale plan`
315
+
316
+ PLAN: Create Plan with ConsensusPlanner (/plan)
317
+
318
+
319
+ | Option | Type | Default | Description |
320
+ |---|---|---|---|
321
+ | `--spec-id` | positional | | |
322
+ | `--approach` | string | | Implementation approach |
323
+ | `--rollback` | string | | Rollback strategy (required for FSM) |
324
+ | `--format` | string | | Output format: html or md (default: html) |
325
+ | `--brand` | string | | Brand theme for HTML output (vercel/stripe/notion/linear/github) |
326
+ | `--json` | boolean | `false` | |
327
+
328
+
329
+ ## `scale build`
330
+
331
+ BUILD: Create Task (/build)
332
+
333
+
334
+ | Option | Type | Default | Description |
335
+ |---|---|---|---|
336
+ | `--plan-id` | positional | | |
337
+ | `--description` | string | | Task description |
338
+ | `--level` | string | `` | Workflow task level: S, M, L, or CRITICAL (auto-detected if omitted) |
339
+ | `--service` | string | | Comma-separated service names touched by this task |
340
+ | `--residual-risk` | string | | Known residual risk statement for metrics |
341
+ | `--json` | boolean | `false` | |
342
+
343
+
344
+ ## `scale verify`
345
+
346
+ VERIFY: Run Gates G3-G7 (/test)
347
+
348
+
349
+ | Option | Type | Default | Description |
350
+ |---|---|---|---|
351
+ | `--task-id` | positional | | |
352
+ | `--build-cmd` | string | | Override build command |
353
+ | `--lint-cmd` | string | | Override lint command |
354
+ | `--test-cmd` | string | | Override test command |
355
+ | `--coverage-cmd` | string | | Override coverage command |
356
+ | `--profile` | string | | Verification profile from .scale/verification.json |
357
+ | `--service` | string | | Service name from .scale/verification.json |
358
+ | `--artifact-gate` | string | | Task artifact policy override: off, warn, or block |
359
+ | `--require-artifacts` | boolean | `false` | Fail verification when required M/L/CRITICAL artifacts are incomplete |
360
+ | `--require-installed-skills` | boolean | `false` | Fail verification when required workflow skills are not installed locally |
361
+ | `--tool-gate` | string | | Tool evidence policy override: off, advisory, evidence-required, or block |
362
+ | `--require-tool-evidence` | boolean | `false` | Fail verification when required tool execution evidence is missing or skipped |
363
+ | `--allow-skipped-tool-evidence` | boolean | `false` | Allow skipped/manual fallback tool evidence to satisfy the tool gate |
364
+ | `--tdd-evidence` | string | | Path to JSON TDD evidence with red/green/refactor/testFirst=true |
365
+ | `--tdd-strict` | boolean | `false` | Require TDD evidence before other gates |
366
+ | `--residual-risk` | string | | Residual risk statement to record in task metrics |
367
+ | `--skip-build` | boolean | `false` | |
368
+ | `--skip-lint` | boolean | `false` | |
369
+ | `--skip-test` | boolean | `false` | |
370
+ | `--json` | boolean | `false` | |
371
+
372
+
373
+ ## `scale review`
374
+
375
+ REVIEW: Code review with Karpathy Principles (/review)
376
+
377
+
378
+ | Option | Type | Default | Description |
379
+ |---|---|---|---|
380
+ | `--task-id` | positional | | |
381
+ | `--check-security` | boolean | `true` | |
382
+ | `--check-style` | boolean | `true` | |
383
+ | `--format` | string | | Output format: html or md (default: html) |
384
+ | `--brand` | string | | Brand theme for HTML output (vercel/stripe/notion/linear/github) |
385
+ | `--json` | boolean | `false` | |
386
+
387
+
388
+ ## `scale ship`
389
+
390
+ SHIP: Commit with HonestDelivery Report (/ship)
391
+
392
+
393
+ | Option | Type | Default | Description |
394
+ |---|---|---|---|
395
+ | `--task-id` | positional | | |
396
+ | `--message` | string | | Commit message |
397
+ | `--no-commit` | boolean | `false` | Skip git commit |
398
+ | `--skip-commit` | boolean | `false` | Skip git commit |
399
+ | `--json` | boolean | `false` | |
400
+
401
+
402
+ ## `scale run`
403
+
404
+ RUN: End-to-end workflow (define → plan → build → verify → review → ship)
405
+
406
+
407
+ | Option | Type | Default | Description |
408
+ |---|---|---|---|
409
+ | `--title` | positional | | Task title |
410
+ | `--description` | string | | Task description |
411
+ | `--level` | string | | Task level (S/M/L/CRITICAL). Auto-detected if omitted. |
412
+ | `--success-criteria` | string | | Comma-separated success criteria |
413
+ | `--skip-phases` | string | | Comma-separated phases to skip (define,plan,build,verify,review,ship) |
414
+ | `--no-stop` | boolean | `false` | Continue on phase failure instead of stopping |
415
+ | `--no-commit` | boolean | `false` | Skip git commit in ship phase |
416
+ | `--json` | boolean | `false` | |
417
+
418
+
419
+ ## `scale init`
420
+
421
+ Initialize SCALE Engine governance in current project (one-click bootstrap, not third-party auto-install)
422
+
423
+
424
+ | Option | Type | Default | Description |
425
+ |---|---|---|---|
426
+ | `--agent` | string | `` | Agent type (claude-code/codex/opencode/cursor/gemini/openclaw/hermes/trae/workbuddy/vsc/qcoder/deepseek-tui/aider/windsurf/kimi/doubao/kiro/qoder/jcode/cline/kilocode/antigravity) - auto-detected if not specified |
427
+ | `--dir` | string | `.` | Project directory |
428
+ | `--json` | boolean | `false` | Output initialization result as JSON |
429
+ | `--scenario` | string | `standard` | Scenario mode (sandbox/standard/critical) |
430
+ | `--governance-pack` | string | `standard` | Governance template pack (standard/project-scaffold/scale-engine-repo/moe-workspace/resource-governance/go-service-matrix/node-library/frontend-app) |
431
+ | `--quick` | boolean | `false` | Quick start with auto-detection |
432
+ | `--interactive` | boolean | `false` | Interactive configuration mode with prompts |
433
+ | `--profile` | string | `` | Configuration profile (minimal/standard/advanced). Auto-mapped from scenario if not specified |
434
+ | `--coverage-threshold` | string | `80` | Coverage threshold (default 80%) |
435
+ | `--retry-threshold` | string | `3` | Brute retry threshold (default 3) |
436
+ | `--block-severity` | string | `CRITICAL` | Block severity level (CRITICAL/HIGH/MEDIUM) |
437
+
438
+
439
+ ## `scale setup`
440
+
441
+ Interactive SCALE setup for third-party skills, CLIs, memory, and knowledge providers
442
+
443
+
444
+ | Option | Type | Default | Description |
445
+ |---|---|---|---|
446
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
447
+ | `--pack` | string | `` | Comma-separated packs: ui,memory,knowledge,external-cli,full. Defaults to full unless --profile is supplied. |
448
+ | `--profile` | string | | Resolve recommended packs from profile: minimal, standard, advanced |
449
+ | `--governance-pack` | string | | Optional governance pack hint, for example frontend-app -> ui |
450
+ | `--include` | string | | Additional dependency ids to include explicitly |
451
+ | `--apply` | boolean | `false` | Run install commands for ready dependencies |
452
+ | `--yes` | boolean | `false` | Confirm installation without prompting |
453
+ | `--verify` | boolean | `false` | Verify governed setup and dependency readiness instead of running the setup wizard |
454
+ | `--interactive` | boolean | `true` | Prompt before installation when dependencies are ready |
455
+ | `--lang` | string | | Output language zh/en. Defaults to zh, then SCALE_LANG, then .scale/config.yaml locale. |
456
+ | `--memory-provider` | string | | Switch memory provider during setup: gbrain, agentmemory, or scale-local |
457
+ | `--memory-mode` | string | | Memory routing mode: auto, local-only, external-first |
458
+ | `--memory-endpoint` | string | | Optional endpoint to persist for the selected memory provider |
459
+ | `--memory-write-mode` | string | | Memory write mode: disabled, candidate-only, enabled |
460
+ | `--allow-external-write` | boolean | `false` | Explicitly allow external memory writes in provider routing |
461
+ | `--json` | boolean | `false` | Output setup report as JSON |
462
+
463
+
464
+ ## `scale bootstrap`
465
+
466
+ Bootstrap third-party workflow dependencies with explicit install intent
467
+
468
+
469
+ ### `scale bootstrap deps`
470
+
471
+ Plan or install third-party skills, CLI dependencies, and project post-configuration
472
+
473
+
474
+ | Option | Type | Default | Description |
475
+ |---|---|---|---|
476
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
477
+ | `--pack` | string | `` | Comma-separated packs: ui,memory,knowledge,external-cli,full. Defaults to full unless --profile is supplied. |
478
+ | `--profile` | string | | Resolve recommended packs from profile: minimal, standard, advanced |
479
+ | `--governance-pack` | string | | Optional governance pack hint, for example frontend-app -> ui |
480
+ | `--include` | string | | Additional dependency ids to include explicitly |
481
+ | `--apply` | boolean | `false` | Run install commands for ready dependencies |
482
+ | `--lang` | string | | Output language zh/en. Defaults to zh, then SCALE_LANG, then .scale/config.yaml locale. |
483
+ | `--json` | boolean | `false` | Output bootstrap plan as JSON |
484
+
485
+
486
+ ## `scale doctor`
487
+
488
+ Diagnose SCALE Engine health
489
+
490
+
491
+ | Option | Type | Default | Description |
492
+ |---|---|---|---|
493
+ | `--scope` | positional | | Optional diagnostic scope: env |
494
+ | `--dir` | string | `.` | Project directory |
495
+ | `--json` | boolean | `false` | Output as JSON |
496
+
497
+
498
+ ## `scale session`
499
+
500
+ Session lifecycle
501
+
502
+
503
+ ### `scale session start`
504
+
505
+ Start a new session
506
+
507
+
508
+ | Option | Type | Default | Description |
509
+ |---|---|---|---|
510
+ | `--agent` | string | `claude-code` | |
511
+ | `--session-id` | string | | |
512
+
513
+
514
+ ### `scale session end`
515
+
516
+ End current session
517
+
518
+
519
+ | Option | Type | Default | Description |
520
+ |---|---|---|---|
521
+ | `--session-id` | string | | |
522
+
523
+
524
+ ## `scale gate`
525
+
526
+ Guardrail gate commands
527
+
528
+
529
+ ### `scale gate pre-tool`
530
+
531
+ Pre-tool gate check
532
+
533
+
534
+ | Option | Type | Default | Description |
535
+ |---|---|---|---|
536
+ | `--tool` | positional | | |
537
+ | `--args-json` | string | `{}` | |
538
+ | `--session-id` | string | | |
539
+
540
+
541
+ ### `scale gate post-tool`
542
+
543
+ Post-tool event recording
544
+
545
+
546
+ | Option | Type | Default | Description |
547
+ |---|---|---|---|
548
+ | `--tool` | positional | | |
549
+ | `--args-json` | string | `{}` | |
550
+ | `--output-json` | string | `` | |
551
+ | `--exit-code` | string | `0` | |
552
+ | `--session-id` | string | | |
553
+
554
+
555
+ ### `scale gate before-stop`
556
+
557
+ Before-stop gate check
558
+
559
+
560
+ | Option | Type | Default | Description |
561
+ |---|---|---|---|
562
+ | `--session-id` | string | | |
563
+
564
+
565
+ ## `scale gates`
566
+
567
+ Quality gate catalog and status commands
568
+
569
+
570
+ ### `scale gates status`
571
+
572
+ Show active gate catalog, profiles, and policy-backed extension gates
573
+
574
+
575
+ | Option | Type | Default | Description |
576
+ |---|---|---|---|
577
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
578
+ | `--scale-dir` | string | `.scale` | Scale governance directory |
579
+ | `--profile` | string | | Verification profile from .scale/verification.json |
580
+ | `--service` | string | | Service name from .scale/verification.json |
581
+ | `--json` | boolean | `false` | Print JSON output |
582
+
583
+
584
+ ## `scale meta-governance`
585
+
586
+ Run meta-governance gates (G9-G15) — check if governance capabilities are actually used
587
+
588
+
589
+ | Option | Type | Default | Description |
590
+ |---|---|---|---|
591
+ | `--scale-dir` | string | `.scale` | |
592
+ | `--json` | boolean | `false` | Output as JSON |
593
+
594
+
595
+ ## `scale create`
596
+
597
+ Create an artifact
598
+
599
+
600
+ | Option | Type | Default | Description |
601
+ |---|---|---|---|
602
+ | `--type` | positional | | |
603
+ | `--title` | positional | | |
604
+ | `--parent` | string | | |
605
+ | `--payload` | string | `{}` | |
606
+
607
+
608
+ ## `scale list`
609
+
610
+ List artifacts
611
+
612
+
613
+ | Option | Type | Default | Description |
614
+ |---|---|---|---|
615
+ | `--type` | string | | |
616
+ | `--status` | string | | |
617
+ | `--limit` | string | `20` | |
618
+
619
+
620
+ ## `scale show`
621
+
622
+ Show artifact details
623
+
624
+
625
+ | Option | Type | Default | Description |
626
+ |---|---|---|---|
627
+ | `--id` | positional | | |
628
+
629
+
630
+ ## `scale suggest`
631
+
632
+ Show available actions for an artifact
633
+
634
+
635
+ | Option | Type | Default | Description |
636
+ |---|---|---|---|
637
+ | `--id` | positional | | |
638
+ | `--json` | boolean | `false` | |
639
+
640
+
641
+ ## `scale transition`
642
+
643
+ Transition artifact state
644
+
645
+
646
+ | Option | Type | Default | Description |
647
+ |---|---|---|---|
648
+ | `--id` | positional | | |
649
+ | `--action` | positional | | |
650
+ | `--reason` | string | | |
651
+
652
+
653
+ ## `scale verifyTask`
654
+
655
+ Verify task code quality (build/lint/test)
656
+
657
+
658
+ | Option | Type | Default | Description |
659
+ |---|---|---|---|
660
+ | `--id` | positional | | |
661
+ | `--build-cmd` | string | `npm run build` | Build command |
662
+ | `--lint-cmd` | string | `npm run lint` | Lint command |
663
+ | `--test-cmd` | string | `npm test` | Test command |
664
+ | `--skip-build` | boolean | `false` | Skip build check |
665
+ | `--skip-lint` | boolean | `false` | Skip lint check |
666
+ | `--skip-test` | boolean | `false` | Skip test check |
667
+ | `--json` | boolean | `false` | Output as JSON |
668
+
669
+
670
+ ## `scale role`
671
+
672
+ Role management
673
+
674
+
675
+ ### `scale role activate`
676
+
677
+ Activate a role
678
+
679
+
680
+ | Option | Type | Default | Description |
681
+ |---|---|---|---|
682
+ | `--role` | positional | | |
683
+
684
+
685
+ ### `scale role show`
686
+
687
+ Show current role
688
+
689
+
690
+ ## `scale context`
691
+
692
+ Context assembly
693
+
694
+
695
+ ### `scale context build`
696
+
697
+ Build context for current task
698
+
699
+
700
+ | Option | Type | Default | Description |
701
+ |---|---|---|---|
702
+ | `--session-id` | string | | |
703
+ | `--artifact-id` | string | | |
704
+ | `--role` | string | | |
705
+
706
+
707
+ ### `scale context status`
708
+
709
+ Show session context status
710
+
711
+
712
+ | Option | Type | Default | Description |
713
+ |---|---|---|---|
714
+ | `--session-id` | string | | |
715
+
716
+
717
+ ### `scale context inject`
718
+
719
+ Inject FSM context for SessionStart hook
720
+
721
+
722
+ | Option | Type | Default | Description |
723
+ |---|---|---|---|
724
+ | `--session-id` | string | | |
725
+
726
+
727
+ ### `scale context glossary`
728
+
729
+ Show project domain glossary (借鉴 mattpocock/skills CONTEXT.md)
730
+
731
+
732
+ | Option | Type | Default | Description |
733
+ |---|---|---|---|
734
+ | `--json` | boolean | `false` | JSON output |
735
+
736
+
737
+ ### `scale context init`
738
+
739
+ Create CONTEXT.md and CONTEXT-MAP.md starter templates
740
+
741
+
742
+ | Option | Type | Default | Description |
743
+ |---|---|---|---|
744
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
745
+ | `--name` | string | | Project display name |
746
+ | `--force` | boolean | `false` | Overwrite existing templates |
747
+ | `--json` | boolean | `false` | |
748
+
749
+
750
+ ### `scale context grill`
751
+
752
+ Check project context docs and generate request-specific grill questions
753
+
754
+
755
+ | Option | Type | Default | Description |
756
+ |---|---|---|---|
757
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
758
+ | `--task-id` | string | | Task id for workflow state and artifact linkage |
759
+ | `--task` | string | | Task or requirement description |
760
+ | `--files` | string | | Comma-separated changed or target files |
761
+ | `--artifact-dir` | string | | Task artifact directory where explore.md should be updated |
762
+ | `--write` | boolean | `false` | Append context grill output to the task explore artifact |
763
+ | `--json` | boolean | `false` | |
764
+
765
+
766
+ ### `scale context budget`
767
+
768
+ Report Always/on-demand/evidence/archive/generated context token cost
769
+
770
+
771
+ | Option | Type | Default | Description |
772
+ |---|---|---|---|
773
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
774
+ | `--max-always` | string | | Maximum Always-loaded estimated tokens |
775
+ | `--max-task` | string | | Maximum task context estimated tokens |
776
+ | `--provider` | string | `generic` | Model provider for prompt cache policy: anthropic, openai, or generic |
777
+ | `--write` | boolean | `false` | Write .scale/context-budget.json |
778
+ | `--json` | boolean | `false` | |
779
+
780
+
781
+ ### `scale context pack`
782
+
783
+ Build a lazy-loaded context pack for a task
784
+
785
+
786
+ | Option | Type | Default | Description |
787
+ |---|---|---|---|
788
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
789
+ | `--task` | string | | Current task or question |
790
+ | `--task-id` | string | | Task id |
791
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
792
+ | `--files` | string | | Comma-separated files or modules in scope |
793
+ | `--budget` | string | | Maximum estimated tokens for the context pack |
794
+ | `--json` | boolean | `false` | |
795
+
796
+
797
+ ### `scale context doctor`
798
+
799
+ Check context budget thresholds and generated-artifact loading risk
800
+
801
+
802
+ | Option | Type | Default | Description |
803
+ |---|---|---|---|
804
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
805
+ | `--max-always` | string | | Maximum Always-loaded estimated tokens |
806
+ | `--max-task` | string | | Maximum task context estimated tokens |
807
+ | `--task` | string | | Task text for a representative lazy context pack probe |
808
+ | `--level` | string | `M` | Task level for the context pack probe |
809
+ | `--files` | string | | Comma-separated scoped files for the context pack probe |
810
+ | `--json` | boolean | `false` | |
811
+
812
+
813
+ ### `scale context anatomy`
814
+
815
+ Scan the project and generate .scale/anatomy.md for file-map context
816
+
817
+
818
+ | Option | Type | Default | Description |
819
+ |---|---|---|---|
820
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
821
+ | `--max-files` | string | | Maximum files to include; defaults to 500 |
822
+ | `--exclude` | string | | Comma-separated directory names to exclude |
823
+ | `--write` | boolean | `false` | Write .scale/anatomy.md |
824
+ | `--json` | boolean | `false` | |
825
+
826
+
827
+ ## `scale evolve`
828
+
829
+ Run evolution cycle (Defect→Lesson→Rule→Hook)
830
+
831
+
832
+ ## `scale stats`
833
+
834
+ Show engine stats
835
+
836
+
837
+ ## `scale preflight`
838
+
839
+ Run service-aware verification without a task artifact
840
+
841
+
842
+ | Option | Type | Default | Description |
843
+ |---|---|---|---|
844
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
845
+ | `--build-cmd` | string | | Override build command |
846
+ | `--lint-cmd` | string | | Override lint command |
847
+ | `--test-cmd` | string | | Override test command |
848
+ | `--coverage-cmd` | string | | Override coverage command |
849
+ | `--profile` | string | | Verification profile from .scale/verification.json |
850
+ | `--preflight-profile` | string | `quick` | Gate intensity profile (quick/full/ci); quick skips coverage and security |
851
+ | `--service` | string | | Service name from .scale/verification.json; use all for required services |
852
+ | `--tdd-evidence` | string | | Path to JSON TDD evidence with red/green/refactor/testFirst=true |
853
+ | `--tdd-strict` | boolean | `false` | Require TDD evidence before other gates |
854
+ | `--json` | boolean | `false` | |
855
+
856
+
857
+ ## `scale upgrade`
858
+
859
+ SCALE 工作流、模板、skills、MCP、CLI 工具的安全升级向导 / Safe update wizard for workflow assets
860
+
861
+
862
+ | Option | Type | Default | Description |
863
+ |---|---|---|---|
864
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
865
+ | `--target-version` | string | | 目标 SCALE Engine 版本,默认使用当前 CLI 版本 / Target SCALE Engine version |
866
+ | `--apply` | boolean | `false` | 直接应用安全升级计划 / Apply safe upgrade plan |
867
+ | `--yes` | boolean | `false` | 非交互确认 / Confirm without prompting |
868
+ | `--html` | boolean | `true` | 写入 HTML 升级计划 / Write HTML plan |
869
+ | `--interactive` | boolean | `true` | 启用升级向导交互 / Enable upgrade wizard prompts |
870
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
871
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
872
+
873
+
874
+ ### `scale upgrade check`
875
+
876
+ 检查 SCALE 工作流、治理包和第三方能力更新状态 / Check SCALE workflow, governance pack, and third-party capability update status
877
+
878
+
879
+ | Option | Type | Default | Description |
880
+ |---|---|---|---|
881
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
882
+ | `--target-version` | string | | 目标 SCALE Engine 版本,默认使用当前 CLI 版本 / Target SCALE Engine version |
883
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
884
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
885
+
886
+
887
+ ### `scale upgrade plan`
888
+
889
+ 生成非破坏性的 SCALE 升级计划 / Create a non-destructive SCALE upgrade plan
890
+
891
+
892
+ | Option | Type | Default | Description |
893
+ |---|---|---|---|
894
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
895
+ | `--target-version` | string | | 目标 SCALE Engine 版本,默认使用当前 CLI 版本 / Target SCALE Engine version |
896
+ | `--html` | boolean | `false` | 写入 .scale/reports/upgrade-plan.html / Write HTML plan |
897
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
898
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
899
+
900
+
901
+ ### `scale upgrade diff`
902
+
903
+ 显示受管文件的本地改动 vs SCALE 模板的差异 / Show local managed-file changes vs SCALE templates
904
+
905
+
906
+ | Option | Type | Default | Description |
907
+ |---|---|---|---|
908
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
909
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
910
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
911
+
912
+
913
+ ### `scale upgrade apply`
914
+
915
+ 按已审阅计划安全应用升级 / Guarded entrypoint for applying an upgrade plan
916
+
917
+
918
+ | Option | Type | Default | Description |
919
+ |---|---|---|---|
920
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
921
+ | `--confirm` | boolean | `false` | 确认当前升级计划已经审阅 / Confirm the current plan was reviewed |
922
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
923
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
924
+
925
+
926
+ ### `scale upgrade rollback`
927
+
928
+ 回滚最近一次 SCALE 托管升级 / Roll back the latest SCALE-managed upgrade
929
+
930
+
931
+ | Option | Type | Default | Description |
932
+ |---|---|---|---|
933
+ | `--dir` | string | `E:\project\yixue-scale-engine` | 项目目录 / Project directory |
934
+ | `--lang` | string | `zh` | 输出语言 zh/en / Output language |
935
+ | `--json` | boolean | `false` | 输出 JSON / Print JSON output |
936
+
937
+
938
+ ## `scale governance`
939
+
940
+ Governance template pack tools
941
+
942
+
943
+ ### `scale governance diff`
944
+
945
+ Check generated governance files for drift
946
+
947
+
948
+ | Option | Type | Default | Description |
949
+ |---|---|---|---|
950
+ | `--dir` | string | `.` | Project directory |
951
+ | `--json` | boolean | `false` | Print JSON output |
952
+
953
+
954
+ ### `scale governance mode`
955
+
956
+ Evaluate progressive governance mode from task text and changed files
957
+
958
+
959
+ | Option | Type | Default | Description |
960
+ |---|---|---|---|
961
+ | `--task` | string | | Task or requirement description |
962
+ | `--files` | string | | Comma-separated changed or target files |
963
+ | `--requested-mode` | string | | Requested governance mode: minimal, standard, expanded, or critical |
964
+ | `--json` | boolean | `false` | |
965
+
966
+
967
+ ### `scale governance roi`
968
+
969
+ Report benefit and overhead signals for active governance modules
970
+
971
+
972
+ | Option | Type | Default | Description |
973
+ |---|---|---|---|
974
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
975
+ | `--task-id` | string | | Task id |
976
+ | `--task` | string | | Task or requirement description |
977
+ | `--files` | string | | Comma-separated changed or target files |
978
+ | `--requested-mode` | string | | Requested governance mode |
979
+ | `--code-query` | string | | Optional code intelligence query to include in ROI |
980
+ | `--symbol` | string | | Optional symbol impact query to include in ROI |
981
+ | `--json` | boolean | `false` | |
982
+
983
+
984
+ ## `scale prompt`
985
+
986
+ Prompt optimization and rewriting utilities
987
+
988
+
989
+ ### `scale prompt optimize`
990
+
991
+ Rewrite a raw coding instruction into a structured executable prompt
992
+
993
+
994
+ | Option | Type | Default | Description |
995
+ |---|---|---|---|
996
+ | `--input` | string | | Raw prompt text |
997
+ | `--title` | string | | Optional task title |
998
+ | `--language` | string | `auto` | Output language: auto, zh, or en |
999
+ | `--level` | string | | Task level hint: S, M, L, or CRITICAL |
1000
+ | `--files` | string | | Comma-separated relevant files |
1001
+ | `--service` | string | | Comma-separated relevant services |
1002
+ | `--success-criteria` | string | | Comma-separated acceptance criteria |
1003
+ | `--json` | boolean | `false` | Print JSON output |
1004
+
1005
+
1006
+ ## `scale score`
1007
+
1008
+ Algorithmic task quality and efficiency scoring
1009
+
1010
+
1011
+ ### `scale score task`
1012
+
1013
+ Compute deterministic task completion, quality, and efficiency score
1014
+
1015
+
1016
+ | Option | Type | Default | Description |
1017
+ |---|---|---|---|
1018
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1019
+ | `--scale-dir` | string | `.scale` | Scale governance directory |
1020
+ | `--task-id` | string | | Task id for reporting |
1021
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1022
+ | `--changed` | boolean | `false` | Score engineering standards against changed Git files only |
1023
+ | `--changed-files` | string | | Comma or newline separated changed files to score |
1024
+ | `--warn-only` | boolean | `false` | Return zero even when score is below threshold |
1025
+ | `--json` | boolean | `false` | Print JSON output |
1026
+
1027
+
1028
+ ## `scale ai-os`
1029
+
1030
+ AI Engineering OS runtime planning and governance orchestration
1031
+
1032
+
1033
+ ### `scale ai-os adopt`
1034
+
1035
+ Prepare a project for AI OS runtime use by running migrate, first dry-run, benchmark, and doctor
1036
+
1037
+
1038
+ | Option | Type | Default | Description |
1039
+ |---|---|---|---|
1040
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1041
+ | `--task-id` | string | | Task id for the first adoption dry-run report |
1042
+ | `--task` | string | | Task or adoption scenario description |
1043
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1044
+ | `--files` | string | | Comma-separated changed or target files |
1045
+ | `--services` | string | | Comma-separated affected services |
1046
+ | `--budget` | string | | Maximum estimated tokens for the adoption plan and benchmark |
1047
+ | `--requested-mode` | string | | Requested governance mode: minimal, standard, expanded, or critical |
1048
+ | `--lang` | string | `en` | Output language zh/en |
1049
+ | `--benchmark-max-age-hours` | string | | Maximum accepted benchmark report age in hours |
1050
+ | `--json` | boolean | `false` | |
1051
+
1052
+
1053
+ ### `scale ai-os status`
1054
+
1055
+ Show AI OS closed-loop readiness across runtime, run, verification, dashboard, benchmark, and adoption evidence
1056
+
1057
+
1058
+ | Option | Type | Default | Description |
1059
+ |---|---|---|---|
1060
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1061
+ | `--lang` | string | `en` | Output language zh/en |
1062
+ | `--benchmark-max-age-hours` | string | | Maximum accepted benchmark report age in hours |
1063
+ | `--json` | boolean | `false` | |
1064
+
1065
+
1066
+ ### `scale ai-os plan`
1067
+
1068
+ Create a unified AI OS runtime plan for governance, context, memory, skills, and ROI
1069
+
1070
+
1071
+ | Option | Type | Default | Description |
1072
+ |---|---|---|---|
1073
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1074
+ | `--task-id` | string | | Task id |
1075
+ | `--task` | string | | Task or requirement description |
1076
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1077
+ | `--files` | string | | Comma-separated changed or target files |
1078
+ | `--services` | string | | Comma-separated affected services |
1079
+ | `--budget` | string | | Maximum estimated tokens for the context compiler |
1080
+ | `--requested-mode` | string | | Requested governance mode: minimal, standard, expanded, or critical |
1081
+ | `--json` | boolean | `false` | |
1082
+
1083
+
1084
+ ### `scale ai-os run`
1085
+
1086
+ Run the AI OS beta loop in dry-run or guarded mode and write an execution report
1087
+
1088
+
1089
+ | Option | Type | Default | Description |
1090
+ |---|---|---|---|
1091
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1092
+ | `--task-id` | string | | Task id |
1093
+ | `--task` | string | | Task or requirement description |
1094
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1095
+ | `--files` | string | | Comma-separated changed or target files |
1096
+ | `--services` | string | | Comma-separated affected services |
1097
+ | `--budget` | string | | Maximum estimated tokens for the context compiler |
1098
+ | `--requested-mode` | string | | Requested governance mode: minimal, standard, expanded, or critical |
1099
+ | `--verify` | string | | Comma-separated guarded verification commands to run without shell by default |
1100
+ | `--timeout` | string | | Verification command timeout in milliseconds |
1101
+ | `--mode` | string | | Run mode: dry-run or guarded |
1102
+ | `--dry-run` | boolean | `false` | Force dry-run mode without executing external commands |
1103
+ | `--allow-shell` | boolean | `false` | Allow shell execution for trusted local guarded runs |
1104
+ | `--json` | boolean | `false` | |
1105
+
1106
+
1107
+ ### `scale ai-os dashboard`
1108
+
1109
+ Summarize AI OS runtime run reports and verification health
1110
+
1111
+
1112
+ | Option | Type | Default | Description |
1113
+ |---|---|---|---|
1114
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1115
+ | `--limit` | string | | Maximum latest run rows to include |
1116
+ | `--json` | boolean | `false` | |
1117
+
1118
+
1119
+ ### `scale ai-os benchmark`
1120
+
1121
+ Run fixed AI OS beta benchmark scenarios for context, memory, skill, governance, and dashboard metrics
1122
+
1123
+
1124
+ | Option | Type | Default | Description |
1125
+ |---|---|---|---|
1126
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1127
+ | `--budget` | string | | Scenario context budget |
1128
+ | `--json` | boolean | `false` | |
1129
+
1130
+
1131
+ ### `scale ai-os migrate`
1132
+
1133
+ Create or verify AI OS runtime state directories for this project
1134
+
1135
+
1136
+ | Option | Type | Default | Description |
1137
+ |---|---|---|---|
1138
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1139
+ | `--json` | boolean | `false` | |
1140
+
1141
+
1142
+ ### `scale ai-os doctor`
1143
+
1144
+ Check AI OS beta runtime readiness, dashboard health, and benchmark freshness
1145
+
1146
+
1147
+ | Option | Type | Default | Description |
1148
+ |---|---|---|---|
1149
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1150
+ | `--lang` | string | `en` | Output language zh/en |
1151
+ | `--benchmark-max-age-hours` | string | | Maximum accepted benchmark report age in hours |
1152
+ | `--json` | boolean | `false` | |
1153
+
1154
+
1155
+ ## `scale codegraph`
1156
+
1157
+ Adapter-first code intelligence and exploration ROI
1158
+
1159
+
1160
+ ### `scale codegraph status`
1161
+
1162
+ Inspect CodeGraph, Graphify, and fallback code intelligence providers
1163
+
1164
+
1165
+ | Option | Type | Default | Description |
1166
+ |---|---|---|---|
1167
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1168
+ | `--json` | boolean | `false` | |
1169
+
1170
+
1171
+ ### `scale codegraph init`
1172
+
1173
+ Create .scale/code-intelligence.json provider configuration
1174
+
1175
+
1176
+ | Option | Type | Default | Description |
1177
+ |---|---|---|---|
1178
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1179
+ | `--force` | boolean | `false` | Overwrite existing configuration |
1180
+ | `--json` | boolean | `false` | |
1181
+
1182
+
1183
+ ### `scale codegraph query`
1184
+
1185
+ Query code intelligence providers, with explicit fallback when graph data is unavailable
1186
+
1187
+
1188
+ | Option | Type | Default | Description |
1189
+ |---|---|---|---|
1190
+ | `--query` | positional | | Symbol, function, class, route, or text query |
1191
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1192
+ | `--json` | boolean | `false` | |
1193
+
1194
+
1195
+ ### `scale codegraph impact`
1196
+
1197
+ Find likely impacted files for a symbol
1198
+
1199
+
1200
+ | Option | Type | Default | Description |
1201
+ |---|---|---|---|
1202
+ | `--symbol` | string | | Symbol to analyze |
1203
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1204
+ | `--json` | boolean | `false` | |
1205
+
1206
+
1207
+ ### `scale codegraph context`
1208
+
1209
+ Build a budgeted file context recommendation from code intelligence
1210
+
1211
+
1212
+ | Option | Type | Default | Description |
1213
+ |---|---|---|---|
1214
+ | `--symbol` | string | | Symbol to analyze |
1215
+ | `--budget` | string | | Maximum estimated tokens for recommended files |
1216
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1217
+ | `--json` | boolean | `false` | |
1218
+
1219
+
1220
+ ### `scale codegraph roi`
1221
+
1222
+ Estimate exploration ROI from code intelligence or fallback query results
1223
+
1224
+
1225
+ | Option | Type | Default | Description |
1226
+ |---|---|---|---|
1227
+ | `--query` | string | | Text query |
1228
+ | `--symbol` | string | | Symbol to analyze |
1229
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1230
+ | `--json` | boolean | `false` | |
1231
+
1232
+
1233
+ ## `scale eval`
1234
+
1235
+ Workflow eval harness, pass@k metrics, and failure replay
1236
+
1237
+
1238
+ ### `scale eval init`
1239
+
1240
+ Create a lightweight workflow eval suite under .scale/evals
1241
+
1242
+
1243
+ | Option | Type | Default | Description |
1244
+ |---|---|---|---|
1245
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1246
+ | `--suite` | string | `workflow-baseline` | Suite id |
1247
+ | `--force` | boolean | `false` | Overwrite the existing suite file |
1248
+ | `--json` | boolean | `false` | |
1249
+
1250
+
1251
+ ### `scale eval run`
1252
+
1253
+ Run a workflow eval suite and preserve failure replay artifacts
1254
+
1255
+
1256
+ | Option | Type | Default | Description |
1257
+ |---|---|---|---|
1258
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1259
+ | `--suite` | string | `workflow-baseline` | Suite id or JSON path |
1260
+ | `--json` | boolean | `false` | |
1261
+
1262
+
1263
+ ### `scale eval compare`
1264
+
1265
+ Compare two workflow eval runs by pass rate, iterations, tool calls, and token estimate
1266
+
1267
+
1268
+ | Option | Type | Default | Description |
1269
+ |---|---|---|---|
1270
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1271
+ | `--baseline` | string | | Baseline run id or JSON path |
1272
+ | `--candidate` | string | | Candidate run id or JSON path |
1273
+ | `--json` | boolean | `false` | |
1274
+
1275
+
1276
+ ### `scale eval report`
1277
+
1278
+ Render a Markdown workflow eval report from a saved run
1279
+
1280
+
1281
+ | Option | Type | Default | Description |
1282
+ |---|---|---|---|
1283
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1284
+ | `--run` | string | | Run id or JSON path |
1285
+ | `--output` | string | | Write report to a Markdown file |
1286
+ | `--json` | boolean | `false` | |
1287
+
1288
+
1289
+ ### `scale eval failures`
1290
+
1291
+ List failure replay records for workflow improvement
1292
+
1293
+
1294
+ | Option | Type | Default | Description |
1295
+ |---|---|---|---|
1296
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1297
+ | `--task-id` | string | | Filter by task/case id |
1298
+ | `--since` | string | `30d` | Window such as 30d; use all for no date filter |
1299
+ | `--json` | boolean | `false` | |
1300
+
1301
+
1302
+ ### `scale eval replay`
1303
+
1304
+ Show failure replay records by failure id or task id
1305
+
1306
+
1307
+ | Option | Type | Default | Description |
1308
+ |---|---|---|---|
1309
+ | `--id` | positional | | Failure replay id |
1310
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1311
+ | `--task-id` | string | | Task/case id to replay |
1312
+ | `--json` | boolean | `false` | |
1313
+
1314
+
1315
+ ### `scale eval promote-failure`
1316
+
1317
+ Promote a failure replay into a workflow improvement candidate
1318
+
1319
+
1320
+ | Option | Type | Default | Description |
1321
+ |---|---|---|---|
1322
+ | `--id` | positional | | Failure replay id |
1323
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
1324
+ | `--json` | boolean | `false` | |
1325
+
1326
+
1327
+ ## `scale artifact`
1328
+
1329
+ Derived HTML artifact rendering and safety checks
1330
+
1331
+
1332
+ ### `scale artifact render`
1333
+
1334
+ Render a task Markdown source set into a governed HTML artifact
1335
+
1336
+
1337
+ | Option | Type | Default | Description |
1338
+ |---|---|---|---|
1339
+ | `--dir` | string | `.` | Project directory |
1340
+ | `--task-id` | string | | Task id under docs/worklog/tasks |
1341
+ | `--artifact-dir` | string | | Task artifact directory override |
1342
+ | `--type` | string | `release-report` | HTML artifact type |
1343
+ | `--source` | string | | Comma or newline separated source Markdown files relative to the task directory |
1344
+ | `--theme` | string | `auto` | Theme mode: dark/light/auto |
1345
+ | `--lang` | string | `zh` | HTML language: zh/en |
1346
+ | `--title` | string | | HTML document title override |
1347
+ | `--json` | boolean | `false` | Print JSON output |
1348
+
1349
+
1350
+ ### `scale artifact doctor`
1351
+
1352
+ Check HTML artifacts for traceability, stale sources, remote assets, and secret-like content
1353
+
1354
+
1355
+ | Option | Type | Default | Description |
1356
+ |---|---|---|---|
1357
+ | `--dir` | string | `.` | Project directory |
1358
+ | `--task-id` | string | | Task id under docs/worklog/tasks |
1359
+ | `--artifact-dir` | string | | Task artifact directory override |
1360
+ | `--type` | string | | Optional HTML artifact type to check |
1361
+ | `--json` | boolean | `false` | Print JSON output |
1362
+
1363
+
1364
+ ### `scale artifact settle`
1365
+
1366
+ Record HTML artifact settlement evidence for a task
1367
+
1368
+
1369
+ | Option | Type | Default | Description |
1370
+ |---|---|---|---|
1371
+ | `--dir` | string | `.` | Project directory |
1372
+ | `--task-id` | string | | Task id under docs/worklog/tasks |
1373
+ | `--artifact-dir` | string | | Task artifact directory override |
1374
+ | `--json` | boolean | `false` | Print JSON output |
1375
+
1376
+
1377
+ ### `scale artifact open`
1378
+
1379
+ Open or print the local file URL for a rendered HTML artifact
1380
+
1381
+
1382
+ | Option | Type | Default | Description |
1383
+ |---|---|---|---|
1384
+ | `--dir` | string | `.` | Project directory |
1385
+ | `--task-id` | string | | Task id under docs/worklog/tasks |
1386
+ | `--artifact-dir` | string | | Task artifact directory override |
1387
+ | `--type` | string | | Optional HTML artifact type to open |
1388
+ | `--print-only` | boolean | `false` | Only print the file URL without launching a browser |
1389
+ | `--json` | boolean | `false` | Print JSON output |
1390
+
1391
+
1392
+ ### `scale artifact dashboard`
1393
+
1394
+ Render a governance HTML dashboard from runtime, eval, memory, resource, and artifact evidence
1395
+
1396
+
1397
+ | Option | Type | Default | Description |
1398
+ |---|---|---|---|
1399
+ | `--dir` | string | `.` | Project directory |
1400
+ | `--task-id` | string | | Optional task id to scope runtime/eval evidence and task HTML artifacts |
1401
+ | `--output` | string | | Output HTML path; defaults to .scale/reports/governance-dashboard.html |
1402
+ | `--theme` | string | `auto` | Theme mode: dark/light/auto |
1403
+ | `--lang` | string | `zh` | HTML language: zh/en |
1404
+ | `--json` | boolean | `false` | Print JSON output |
1405
+
1406
+
1407
+ ## `scale assets`
1408
+
1409
+ Resource lifecycle governance for generated and maintained project assets
1410
+
1411
+
1412
+ ### `scale assets scan`
1413
+
1414
+ Classify project docs, reports, media, scripts, and temporary outputs
1415
+
1416
+
1417
+ | Option | Type | Default | Description |
1418
+ |---|---|---|---|
1419
+ | `--dir` | string | `.` | Project directory |
1420
+ | `--json` | boolean | `false` | Print JSON output |
1421
+
1422
+
1423
+ ### `scale assets doctor`
1424
+
1425
+ Find resource lifecycle and Git policy problems
1426
+
1427
+
1428
+ | Option | Type | Default | Description |
1429
+ |---|---|---|---|
1430
+ | `--dir` | string | `.` | Project directory |
1431
+ | `--json` | boolean | `false` | Print JSON output |
1432
+
1433
+
1434
+ ### `scale assets settle`
1435
+
1436
+ Record resource lifecycle settlement evidence for a task
1437
+
1438
+
1439
+ | Option | Type | Default | Description |
1440
+ |---|---|---|---|
1441
+ | `--dir` | string | `.` | Project directory |
1442
+ | `--task-id` | string | | Task id for the settlement record |
1443
+ | `--artifact-dir` | string | | Task artifact directory where resource-impact.md should be updated |
1444
+ | `--json` | boolean | `false` | Print JSON output |
1445
+
1446
+
1447
+ ## `scale standards`
1448
+
1449
+ Engineering standards governance for logs, security, architecture, database, and code quality
1450
+
1451
+
1452
+ ### `scale standards scan`
1453
+
1454
+ Scan source files for engineering standard violations
1455
+
1456
+
1457
+ | Option | Type | Default | Description |
1458
+ |---|---|---|---|
1459
+ | `--dir` | string | `.` | Project directory |
1460
+ | `--changed` | boolean | `false` | Scan changed Git files only |
1461
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
1462
+ | `--json` | boolean | `false` | Print JSON output |
1463
+
1464
+
1465
+ ### `scale standards doctor`
1466
+
1467
+ Find blocking engineering standards problems
1468
+
1469
+
1470
+ | Option | Type | Default | Description |
1471
+ |---|---|---|---|
1472
+ | `--dir` | string | `.` | Project directory |
1473
+ | `--changed` | boolean | `false` | Scan changed Git files only |
1474
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
1475
+ | `--json` | boolean | `false` | Print JSON output |
1476
+
1477
+
1478
+ ### `scale standards settle`
1479
+
1480
+ Record engineering standards settlement evidence for a task
1481
+
1482
+
1483
+ | Option | Type | Default | Description |
1484
+ |---|---|---|---|
1485
+ | `--dir` | string | `.` | Project directory |
1486
+ | `--task-id` | string | | Task id for the settlement record |
1487
+ | `--artifact-dir` | string | | Task artifact directory where standards-impact.md should be updated |
1488
+ | `--changed` | boolean | `false` | Scan changed Git files only |
1489
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
1490
+ | `--json` | boolean | `false` | Print JSON output |
1491
+
1492
+
1493
+ ### `scale standards baseline`
1494
+
1495
+ Generate a legacy standards baseline and classification report
1496
+
1497
+
1498
+ | Option | Type | Default | Description |
1499
+ |---|---|---|---|
1500
+ | `--dir` | string | `.` | Project directory |
1501
+ | `--write` | boolean | `false` | Write .scale/engineering-standards-baseline.json |
1502
+ | `--task-id` | string | | Task id for the legacy debt report |
1503
+ | `--artifact-dir` | string | | Directory where standards-legacy-debt.md should be written |
1504
+ | `--reason` | string | `legacy standards debt accepted for staged remediation` | Reason recorded on generated baseline entries |
1505
+ | `--json` | boolean | `false` | Print JSON output |
1506
+
1507
+
1508
+ ## `scale metrics`
1509
+
1510
+ Inspect workflow task metrics
1511
+
1512
+
1513
+ ### `scale metrics list`
1514
+
1515
+ List M/L task workflow metrics
1516
+
1517
+
1518
+ | Option | Type | Default | Description |
1519
+ |---|---|---|---|
1520
+ | `--json` | boolean | `false` | |
1521
+
1522
+
1523
+ ## `scale task-artifacts`
1524
+
1525
+ Inspect task artifact completeness
1526
+
1527
+
1528
+ ### `scale task-artifacts check`
1529
+
1530
+ Check task artifact completeness
1531
+
1532
+
1533
+ | Option | Type | Default | Description |
1534
+ |---|---|---|---|
1535
+ | `--dir` | string | | Task artifact directory; defaults to .scale/state/current.json artifactsDir |
1536
+ | `--level` | string | | Task level: S, M, L, or CRITICAL; defaults to current state level or M |
1537
+ | `--warn-only` | boolean | `false` | Return zero even when artifacts are incomplete |
1538
+ | `--json` | boolean | `false` | |
1539
+
1540
+
1541
+ ## `scale workspace`
1542
+
1543
+ Inspect worktree, branch, and child repository lifecycle safety
1544
+
1545
+
1546
+ ### `scale workspace map`
1547
+
1548
+ Resolve or write explicit workspace topology for single, monorepo, polyrepo, submodule, or MOE projects
1549
+
1550
+
1551
+ | Option | Type | Default | Description |
1552
+ |---|---|---|---|
1553
+ | `--dir` | string | | Project directory; defaults to current project directory |
1554
+ | `--topology` | string | `moe` | Starter topology for --write (single/monorepo/polyrepo/submodule-workspace/moe) |
1555
+ | `--write` | boolean | `false` | Create .scale/workspace.json when it does not exist |
1556
+ | `--json` | boolean | `false` | |
1557
+
1558
+
1559
+ ### `scale workspace status`
1560
+
1561
+ Inspect root worktree and child repository lifecycle state
1562
+
1563
+
1564
+ | Option | Type | Default | Description |
1565
+ |---|---|---|---|
1566
+ | `--dir` | string | | Repository or worktree directory; defaults to current project directory |
1567
+ | `--summary` | boolean | `false` | Print concise human summary instead of the full repository listing |
1568
+ | `--json` | boolean | `false` | |
1569
+
1570
+
1571
+ ### `scale workspace finish`
1572
+
1573
+ Check whether a temporary worktree can be safely finished or cleaned up
1574
+
1575
+
1576
+ | Option | Type | Default | Description |
1577
+ |---|---|---|---|
1578
+ | `--dir` | string | | Repository or worktree directory; defaults to current project directory |
1579
+ | `--summary` | boolean | `false` | Print concise human summary instead of the full repository listing |
1580
+ | `--json` | boolean | `false` | |
1581
+
1582
+
1583
+ ### `scale workspace cleanup`
1584
+
1585
+ Dry-run or apply safe removal of a linked temporary worktree
1586
+
1587
+
1588
+ | Option | Type | Default | Description |
1589
+ |---|---|---|---|
1590
+ | `--dir` | string | | Linked worktree directory; defaults to current project directory |
1591
+ | `--dry-run` | boolean | `false` | Preview cleanup; this is the default unless --apply is set |
1592
+ | `--apply` | boolean | `false` | Actually run git worktree remove after safety checks |
1593
+ | `--confirm` | string | | Required confirmation token for --apply, usually the worktree branch name |
1594
+ | `--summary` | boolean | `false` | Print concise human summary before the cleanup plan |
1595
+ | `--json` | boolean | `false` | |
1596
+
1597
+
1598
+ ## `scale status`
1599
+
1600
+ Show current SCALE workflow status
1601
+
1602
+
1603
+ | Option | Type | Default | Description |
1604
+ |---|---|---|---|
1605
+ | `--json` | boolean | `false` | |
1606
+
1607
+
1608
+ ## `scale workflow`
1609
+
1610
+ Workflow preset management
1611
+
1612
+
1613
+ ### `scale workflow list`
1614
+
1615
+ List all workflow presets
1616
+
1617
+
1618
+ | Option | Type | Default | Description |
1619
+ |---|---|---|---|
1620
+ | `--scenario` | string | | Filter by scenario mode (sandbox/standard/critical) |
1621
+ | `--json` | boolean | `false` | Output workflow presets as JSON |
1622
+
1623
+
1624
+ ## `scale evidence`
1625
+
1626
+ Persisted gate evidence inspection
1627
+
1628
+
1629
+ ### `scale evidence list`
1630
+
1631
+ List persisted gate evidence records
1632
+
1633
+
1634
+ | Option | Type | Default | Description |
1635
+ |---|---|---|---|
1636
+ | `--limit` | string | `20` | Maximum number of records |
1637
+ | `--json` | boolean | `false` | |
1638
+
1639
+
1640
+ ### `scale evidence show`
1641
+
1642
+ Show a persisted gate evidence record
1643
+
1644
+
1645
+ | Option | Type | Default | Description |
1646
+ |---|---|---|---|
1647
+ | `--id` | positional | | |
1648
+ | `--json` | boolean | `false` | |
1649
+
1650
+
1651
+ ## `scale runtime`
1652
+
1653
+ Runtime session ledger and completion evidence governance
1654
+
1655
+
1656
+ ### `scale runtime start`
1657
+
1658
+ Start a runtime session ledger
1659
+
1660
+
1661
+ | Option | Type | Default | Description |
1662
+ |---|---|---|---|
1663
+ | `--session-id` | string | | Session id; generated when omitted |
1664
+ | `--task-id` | string | | Task id linked to this session |
1665
+ | `--agent` | string | | Agent name |
1666
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1667
+ | `--summary` | string | | Short session summary |
1668
+ | `--json` | boolean | `false` | |
1669
+
1670
+
1671
+ ### `scale runtime end`
1672
+
1673
+ End the current or named runtime session
1674
+
1675
+
1676
+ | Option | Type | Default | Description |
1677
+ |---|---|---|---|
1678
+ | `--session-id` | string | | Session id; current session is used when omitted |
1679
+ | `--status` | string | `completed` | completed, failed, or abandoned |
1680
+ | `--summary` | string | | Completion summary |
1681
+ | `--json` | boolean | `false` | |
1682
+
1683
+
1684
+ ### `scale runtime record`
1685
+
1686
+ Record command, gate, tool, browser, skill, or manual runtime evidence
1687
+
1688
+
1689
+ | Option | Type | Default | Description |
1690
+ |---|---|---|---|
1691
+ | `--task-id` | string | | Task id linked to this evidence |
1692
+ | `--session-id` | string | | Session id linked to this evidence |
1693
+ | `--kind` | string | `command` | command, gate, tool, skill, mcp, browser, desktop, manual, final-report |
1694
+ | `--title` | string | | Evidence title |
1695
+ | `--status` | string | | passed, failed, or skipped |
1696
+ | `--command` | string | | Exact command or tool invocation, with secrets redacted by SCALE |
1697
+ | `--exit-code` | string | | Exit code when applicable |
1698
+ | `--summary` | string | | Short output summary |
1699
+ | `--artifacts` | string | | Comma-separated artifact paths |
1700
+ | `--provider` | string | | Optional model provider when attaching model usage: anthropic, openai, codex, etc. |
1701
+ | `--model` | string | | Optional model id when attaching model usage |
1702
+ | `--usage-json` | string | | Raw provider response or usage JSON to normalize into the usage ledger |
1703
+ | `--usage-file` | string | | Path to a JSON file containing a raw provider response or usage payload |
1704
+ | `--input-tokens` | string | | Explicit input token count; overrides usage JSON when provided |
1705
+ | `--output-tokens` | string | | Explicit output token count; overrides usage JSON when provided |
1706
+ | `--cache-eligible-tokens` | string | | Explicit cache-eligible token count |
1707
+ | `--cache-creation-input-tokens` | string | | Explicit Anthropic cache creation token count |
1708
+ | `--cache-read-input-tokens` | string | | Explicit Anthropic cache read token count |
1709
+ | `--cached-tokens` | string | | Explicit OpenAI cached token count |
1710
+ | `--estimated-cost-usd` | string | | Optional estimated cost in USD |
1711
+ | `--timestamp` | string | | Optional ISO timestamp for the usage record |
1712
+ | `--metadata-json` | string | `{}` | Additional JSON metadata |
1713
+ | `--json` | boolean | `false` | |
1714
+
1715
+
1716
+ ### `scale runtime doctor`
1717
+
1718
+ Check runtime session and completion evidence
1719
+
1720
+
1721
+ | Option | Type | Default | Description |
1722
+ |---|---|---|---|
1723
+ | `--task-id` | string | | Task id to inspect |
1724
+ | `--session-id` | string | | Session id to inspect |
1725
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1726
+ | `--json` | boolean | `false` | |
1727
+
1728
+
1729
+ ### `scale runtime final-check`
1730
+
1731
+ Block final delivery claims without passed runtime evidence
1732
+
1733
+
1734
+ | Option | Type | Default | Description |
1735
+ |---|---|---|---|
1736
+ | `--task-id` | string | | Task id to inspect |
1737
+ | `--session-id` | string | | Session id to inspect |
1738
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1739
+ | `--json` | boolean | `false` | |
1740
+
1741
+
1742
+ ## `scale token`
1743
+
1744
+ Record and audit real model token usage
1745
+
1746
+
1747
+ ### `scale token record`
1748
+
1749
+ Record real model usage from provider usage payloads or explicit token counts
1750
+
1751
+
1752
+ | Option | Type | Default | Description |
1753
+ |---|---|---|---|
1754
+ | `--provider` | string | | Model provider: anthropic, openai, codex, etc. |
1755
+ | `--model` | string | | Optional model id |
1756
+ | `--task-id` | string | | Task id linked to this model usage |
1757
+ | `--session-id` | string | | Session id linked to this model usage |
1758
+ | `--usage-json` | string | | Raw provider response or usage JSON to normalize into the usage ledger |
1759
+ | `--usage-file` | string | | Path to a JSON file containing a raw provider response or usage payload |
1760
+ | `--input-tokens` | string | | Explicit input token count; overrides usage JSON when provided |
1761
+ | `--output-tokens` | string | | Explicit output token count; overrides usage JSON when provided |
1762
+ | `--cache-eligible-tokens` | string | | Explicit cache-eligible token count |
1763
+ | `--cache-creation-input-tokens` | string | | Explicit Anthropic cache creation token count |
1764
+ | `--cache-read-input-tokens` | string | | Explicit Anthropic cache read token count |
1765
+ | `--cached-tokens` | string | | Explicit OpenAI cached token count |
1766
+ | `--estimated-cost-usd` | string | | Optional estimated cost in USD |
1767
+ | `--timestamp` | string | | Optional ISO timestamp |
1768
+ | `--metadata-json` | string | `{}` | Additional JSON metadata |
1769
+ | `--json` | boolean | `false` | |
1770
+
1771
+
1772
+ ### `scale token report`
1773
+
1774
+ Summarize recorded model usage by day, provider, model, and task
1775
+
1776
+
1777
+ | Option | Type | Default | Description |
1778
+ |---|---|---|---|
1779
+ | `--day` | string | | Exact UTC day in YYYY-MM-DD format |
1780
+ | `--since` | string | | ISO timestamp lower bound |
1781
+ | `--until` | string | | ISO timestamp upper bound |
1782
+ | `--since-days` | string | `7d` | Relative time window when day/since/until are omitted; use all to disable |
1783
+ | `--provider` | string | | Filter by provider |
1784
+ | `--model` | string | | Filter by model id |
1785
+ | `--task-id` | string | | Filter by task id |
1786
+ | `--session-id` | string | | Filter by session id |
1787
+ | `--limit` | string | | Maximum recent records to include in the report; defaults to 20 |
1788
+ | `--json` | boolean | `false` | |
1789
+
1790
+
1791
+ ## `scale memory`
1792
+
1793
+ Memory Fabric context packs and project-scoped long-term memory
1794
+
1795
+
1796
+ ### `scale memory pack`
1797
+
1798
+ Build a compact context pack from runtime evidence, session events, knowledge, and graph status
1799
+
1800
+
1801
+ | Option | Type | Default | Description |
1802
+ |---|---|---|---|
1803
+ | `--task` | string | | Current task or question |
1804
+ | `--task-id` | string | | Task id to scope evidence and session data |
1805
+ | `--session-id` | string | | Session id to scope session events |
1806
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1807
+ | `--files` | string | | Comma-separated files or modules in scope |
1808
+ | `--budget` | string | | Maximum estimated tokens for the context pack |
1809
+ | `--json` | boolean | `false` | |
1810
+
1811
+
1812
+ ### `scale memory doctor`
1813
+
1814
+ Check whether a task context pack is available and within token budget
1815
+
1816
+
1817
+ | Option | Type | Default | Description |
1818
+ |---|---|---|---|
1819
+ | `--task` | string | | Current task or question |
1820
+ | `--task-id` | string | | Task id to scope evidence and session data |
1821
+ | `--session-id` | string | | Session id to scope session events |
1822
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1823
+ | `--files` | string | | Comma-separated files or modules in scope |
1824
+ | `--budget` | string | | Maximum estimated tokens for the context pack |
1825
+ | `--json` | boolean | `false` | |
1826
+
1827
+
1828
+ ### `scale memory cerebrum`
1829
+
1830
+ Maintain .scale/cerebrum.md do-not-repeat rules and preferences
1831
+
1832
+
1833
+ | Option | Type | Default | Description |
1834
+ |---|---|---|---|
1835
+ | `--type` | string | | Optional entry type: preference or do-not-repeat |
1836
+ | `--pattern` | string | | Pattern for do-not-repeat entries |
1837
+ | `--description` | string | | Entry description or preference text |
1838
+ | `--tags` | string | | Comma-separated tags for preferences |
1839
+ | `--write` | boolean | `false` | Write .scale/cerebrum.md |
1840
+ | `--json` | boolean | `false` | |
1841
+
1842
+
1843
+ ### `scale memory settle`
1844
+
1845
+ Settle runtime evidence into a reviewable memory learning candidate
1846
+
1847
+
1848
+ | Option | Type | Default | Description |
1849
+ |---|---|---|---|
1850
+ | `--task` | string | | Current task or question |
1851
+ | `--task-id` | string | | Task id to scope evidence and session data |
1852
+ | `--session-id` | string | | Session id to scope session events |
1853
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
1854
+ | `--files` | string | | Comma-separated files or modules in scope |
1855
+ | `--budget` | string | | Maximum estimated tokens for the context pack |
1856
+ | `--json` | boolean | `false` | |
1857
+
1858
+
1859
+ ### `scale memory ingest`
1860
+
1861
+ Ingest runtime evidence, learning candidates, or failure replays into the project memory brain
1862
+
1863
+
1864
+ | Option | Type | Default | Description |
1865
+ |---|---|---|---|
1866
+ | `--from` | string | `evidence` | Source: evidence, candidate, or failure |
1867
+ | `--task-id` | string | | Task id to scope runtime evidence |
1868
+ | `--session-id` | string | | Session id to scope runtime evidence |
1869
+ | `--candidate-id` | string | | Memory learning candidate id |
1870
+ | `--failure-id` | string | | Workflow eval failure replay id |
1871
+ | `--type` | string | | Memory type override: fact/decision/incident/relation/contradiction |
1872
+ | `--scope` | string | | Memory scope: project/workspace/global-candidate |
1873
+ | `--json` | boolean | `false` | |
1874
+
1875
+
1876
+ ### `scale memory query`
1877
+
1878
+ Query concise project-scoped long-term memory with evidence references
1879
+
1880
+
1881
+ | Option | Type | Default | Description |
1882
+ |---|---|---|---|
1883
+ | `--query` | positional | | Search query |
1884
+ | `--limit` | string | `8` | Maximum number of memory nodes |
1885
+ | `--status` | string | | Filter by status: candidate/active/stale/rejected |
1886
+ | `--json` | boolean | `false` | |
1887
+
1888
+
1889
+ ### `scale memory contradictions`
1890
+
1891
+ Report conflicting project memory instead of silently resolving it
1892
+
1893
+
1894
+ | Option | Type | Default | Description |
1895
+ |---|---|---|---|
1896
+ | `--json` | boolean | `false` | |
1897
+
1898
+
1899
+ ### `scale memory dream`
1900
+
1901
+ Run memory maintenance: duplicates, stale memories, contradictions, and promotion candidates
1902
+
1903
+
1904
+ | Option | Type | Default | Description |
1905
+ |---|---|---|---|
1906
+ | `--json` | boolean | `false` | |
1907
+
1908
+
1909
+ ### `scale memory promote`
1910
+
1911
+ Promote a memory candidate to active project memory after evidence review
1912
+
1913
+
1914
+ | Option | Type | Default | Description |
1915
+ |---|---|---|---|
1916
+ | `--id` | positional | | Memory node id or learning candidate id |
1917
+ | `--scope` | string | | Scope override: project/workspace/global-candidate |
1918
+ | `--json` | boolean | `false` | |
1919
+
1920
+
1921
+ ### `scale memory export`
1922
+
1923
+ Export project memory as JSONL
1924
+
1925
+
1926
+ | Option | Type | Default | Description |
1927
+ |---|---|---|---|
1928
+ | `--output` | string | | Output JSONL file; stdout when omitted |
1929
+ | `--json` | boolean | `false` | |
1930
+
1931
+
1932
+ ### `scale memory import`
1933
+
1934
+ Import project memory from JSONL
1935
+
1936
+
1937
+ | Option | Type | Default | Description |
1938
+ |---|---|---|---|
1939
+ | `--file` | positional | | Input JSONL file |
1940
+ | `--json` | boolean | `false` | |
1941
+
1942
+
1943
+ ### `scale memory provider`
1944
+
1945
+ Manage autonomous memory provider routing for agentmemory, gbrain, and scale-local
1946
+
1947
+
1948
+ #### `scale memory provider init`
1949
+
1950
+ Create .scale/memory-providers.json for autonomous memory provider routing
1951
+
1952
+
1953
+ | Option | Type | Default | Description |
1954
+ |---|---|---|---|
1955
+ | `--force` | boolean | `false` | Overwrite existing provider configuration |
1956
+ | `--json` | boolean | `false` | |
1957
+
1958
+
1959
+ #### `scale memory provider status`
1960
+
1961
+ Inspect memory provider routing, availability, and safety boundaries
1962
+
1963
+
1964
+ | Option | Type | Default | Description |
1965
+ |---|---|---|---|
1966
+ | `--json` | boolean | `false` | |
1967
+
1968
+
1969
+ #### `scale memory provider recall`
1970
+
1971
+ Recall relevant memory through provider routing with local fallback
1972
+
1973
+
1974
+ | Option | Type | Default | Description |
1975
+ |---|---|---|---|
1976
+ | `--query` | positional | | Memory query or task context |
1977
+ | `--task` | string | | Optional task text for provider routing context |
1978
+ | `--files` | string | | Comma-separated files or modules in scope |
1979
+ | `--provider` | string | | Force one provider id, such as agentmemory, gbrain, or scale-local |
1980
+ | `--limit` | string | `5` | Maximum results |
1981
+ | `--include-candidates` | boolean | `false` | Allow scale-local candidate memory fallback |
1982
+ | `--json` | boolean | `false` | |
1983
+
1984
+
1985
+ #### `scale memory provider use`
1986
+
1987
+ Promote one memory provider to the front of routing and persist the selection
1988
+
1989
+
1990
+ | Option | Type | Default | Description |
1991
+ |---|---|---|---|
1992
+ | `--provider` | positional | | Provider id: gbrain, agentmemory, or scale-local |
1993
+ | `--mode` | string | | Optional routing mode override: auto, local-only, external-first |
1994
+ | `--endpoint` | string | | Optional provider endpoint to persist while switching |
1995
+ | `--write-mode` | string | | Optional provider write mode: disabled, candidate-only, enabled |
1996
+ | `--allow-external-write` | boolean | `false` | Persist external write allowance when explicitly switching |
1997
+ | `--json` | boolean | `false` | |
1998
+
1999
+
2000
+ ## `scale diagnose`
2001
+
2002
+ Evidence-first debugging workflows
2003
+
2004
+
2005
+ ### `scale diagnose plan`
2006
+
2007
+ Create a reproducible diagnostic loop before fixing a bug
2008
+
2009
+
2010
+ | Option | Type | Default | Description |
2011
+ |---|---|---|---|
2012
+ | `--task-id` | string | | |
2013
+ | `--symptom` | string | | |
2014
+ | `--repro` | string | | Command that reproduces the current failure |
2015
+ | `--expected-failure` | string | | Expected failing behavior or assertion |
2016
+ | `--files` | string | | Comma-separated changed or suspicious files |
2017
+ | `--verify` | string | | Comma-separated verification commands after the fix |
2018
+ | `--artifact-dir` | string | | Task artifact directory where plan.md should be updated |
2019
+ | `--write` | boolean | `false` | Append diagnostic loop output to the task plan artifact |
2020
+ | `--json` | boolean | `false` | |
2021
+
2022
+
2023
+ ## `scale hunt`
2024
+
2025
+ Readonly proactive governance scans
2026
+
2027
+
2028
+ ### `scale hunt scan`
2029
+
2030
+ Run a readonly proactive governance scan
2031
+
2032
+
2033
+ | Option | Type | Default | Description |
2034
+ |---|---|---|---|
2035
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2036
+ | `--changed` | boolean | `false` | Scan changed Git files only |
2037
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
2038
+ | `--json` | boolean | `false` | |
2039
+
2040
+
2041
+ ### `scale hunt report`
2042
+
2043
+ Print open and ignored hunt findings
2044
+
2045
+
2046
+ | Option | Type | Default | Description |
2047
+ |---|---|---|---|
2048
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2049
+ | `--changed` | boolean | `false` | Scan changed Git files only |
2050
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
2051
+ | `--json` | boolean | `false` | |
2052
+
2053
+
2054
+ ### `scale hunt diagnose`
2055
+
2056
+ Create a diagnostic loop from a hunt finding
2057
+
2058
+
2059
+ | Option | Type | Default | Description |
2060
+ |---|---|---|---|
2061
+ | `--id` | positional | | Hunt finding id |
2062
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2063
+ | `--changed` | boolean | `false` | Scan changed Git files only |
2064
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
2065
+ | `--json` | boolean | `false` | |
2066
+
2067
+
2068
+ ### `scale hunt ignore`
2069
+
2070
+ Ignore a stable hunt finding fingerprint
2071
+
2072
+
2073
+ | Option | Type | Default | Description |
2074
+ |---|---|---|---|
2075
+ | `--id` | positional | | Hunt finding id |
2076
+ | `--reason` | string | | Why this finding is accepted or deferred |
2077
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2078
+ | `--changed` | boolean | `false` | Scan changed Git files only |
2079
+ | `--changed-files` | string | | Comma or newline separated file list to scan |
2080
+ | `--json` | boolean | `false` | |
2081
+
2082
+
2083
+ ## `scale dependency`
2084
+
2085
+ Supply-chain dependency governance
2086
+
2087
+
2088
+ ### `scale dependency audit`
2089
+
2090
+ Audit lockfile-scoped dependency supply-chain risk
2091
+
2092
+
2093
+ | Option | Type | Default | Description |
2094
+ |---|---|---|---|
2095
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2096
+ | `--mode` | string | | Audit mode: compatibility, strict, or offline |
2097
+ | `--changed-packages` | string | | Comma-separated package names to audit instead of direct dependencies |
2098
+ | `--json` | boolean | `false` | |
2099
+
2100
+
2101
+ ## `scale tdd`
2102
+
2103
+ TDD vertical slice workflows
2104
+
2105
+
2106
+ ### `scale tdd slice`
2107
+
2108
+ Create and evaluate a TDD vertical slice
2109
+
2110
+
2111
+ | Option | Type | Default | Description |
2112
+ |---|---|---|---|
2113
+ | `--task-id` | string | | |
2114
+ | `--behavior` | string | | |
2115
+ | `--public-interface` | string | | |
2116
+ | `--failing-test` | string | | |
2117
+ | `--test-file` | string | | |
2118
+ | `--impl-files` | string | | |
2119
+ | `--red-exit-code` | string | | Exit code from the RED command |
2120
+ | `--red-summary` | string | | Short RED output summary |
2121
+ | `--green-exit-code` | string | | Exit code from the GREEN command |
2122
+ | `--green-summary` | string | | Short GREEN output summary |
2123
+ | `--refactor-exit-code` | string | | Exit code from the REFACTOR command |
2124
+ | `--refactor-summary` | string | | Short REFACTOR output summary |
2125
+ | `--artifact-dir` | string | | Task artifact directory where verification.md should be updated |
2126
+ | `--write` | boolean | `false` | Append TDD slice output to the task verification artifact |
2127
+ | `--json` | boolean | `false` | |
2128
+
2129
+
2130
+ ## `scale tool`
2131
+
2132
+ Skills, MCP, browser, desktop, and external CLI governance
2133
+
2134
+
2135
+ ### `scale tool policy`
2136
+
2137
+ Show resolved tool orchestration policy
2138
+
2139
+
2140
+ | Option | Type | Default | Description |
2141
+ |---|---|---|---|
2142
+ | `--dir` | string | `.` | Project directory |
2143
+ | `--mode` | string | | Render a starter policy mode instead of reading .scale/tools.json |
2144
+ | `--json` | boolean | `false` | |
2145
+
2146
+
2147
+ ### `scale tool doctor`
2148
+
2149
+ Check skill, MCP, and CLI tool availability
2150
+
2151
+
2152
+ | Option | Type | Default | Description |
2153
+ |---|---|---|---|
2154
+ | `--dir` | string | `.` | Project directory |
2155
+ | `--tools` | string | | Comma-separated tool ids to check |
2156
+ | `--json` | boolean | `false` | |
2157
+
2158
+
2159
+ ### `scale tool plan`
2160
+
2161
+ Create a tool execution plan from task intent
2162
+
2163
+
2164
+ | Option | Type | Default | Description |
2165
+ |---|---|---|---|
2166
+ | `--dir` | string | `.` | Project directory |
2167
+ | `--task-id` | string | | Task id for evidence linkage |
2168
+ | `--task` | string | | Task description |
2169
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2170
+ | `--files` | string | | Comma-separated changed or target files |
2171
+ | `--services` | string | | Comma-separated affected services |
2172
+ | `--json` | boolean | `false` | |
2173
+
2174
+
2175
+ ### `scale tool run`
2176
+
2177
+ Run or dry-run a tool execution plan and write tool evidence
2178
+
2179
+
2180
+ | Option | Type | Default | Description |
2181
+ |---|---|---|---|
2182
+ | `--dir` | string | `.` | Project directory |
2183
+ | `--task-id` | string | | Task id for evidence linkage |
2184
+ | `--task` | string | | Task description |
2185
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2186
+ | `--files` | string | | Comma-separated changed or target files |
2187
+ | `--services` | string | | Comma-separated affected services |
2188
+ | `--dry-run` | boolean | `false` | Plan and record skipped evidence without executing tools |
2189
+ | `--json` | boolean | `false` | |
2190
+
2191
+
2192
+ ### `scale tool evidence`
2193
+
2194
+ Check required tool execution evidence for a task
2195
+
2196
+
2197
+ | Option | Type | Default | Description |
2198
+ |---|---|---|---|
2199
+ | `--dir` | string | `.` | Project directory |
2200
+ | `--task-id` | string | | Task id for evidence linkage |
2201
+ | `--task` | string | | Task description |
2202
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2203
+ | `--files` | string | | Comma-separated changed or target files |
2204
+ | `--services` | string | | Comma-separated affected services |
2205
+ | `--mode` | string | | Override tool gate mode: off, advisory, evidence-required, or block |
2206
+ | `--allow-skipped` | boolean | `false` | Allow skipped/manual fallback evidence to satisfy required tools |
2207
+ | `--json` | boolean | `false` | |
2208
+
2209
+
2210
+ ### `scale tool outdated`
2211
+
2212
+ List MCP, browser, desktop, and external CLI update surfaces without installing anything
2213
+
2214
+
2215
+ | Option | Type | Default | Description |
2216
+ |---|---|---|---|
2217
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2218
+ | `--json` | boolean | `false` | Print JSON output |
2219
+
2220
+
2221
+ ## `scale tools`
2222
+
2223
+ Skills, MCP, browser, desktop, and external CLI governance
2224
+
2225
+
2226
+ ### `scale tools policy`
2227
+
2228
+ Show resolved tool orchestration policy
2229
+
2230
+
2231
+ | Option | Type | Default | Description |
2232
+ |---|---|---|---|
2233
+ | `--dir` | string | `.` | Project directory |
2234
+ | `--mode` | string | | Render a starter policy mode instead of reading .scale/tools.json |
2235
+ | `--json` | boolean | `false` | |
2236
+
2237
+
2238
+ ### `scale tools doctor`
2239
+
2240
+ Check skill, MCP, and CLI tool availability
2241
+
2242
+
2243
+ | Option | Type | Default | Description |
2244
+ |---|---|---|---|
2245
+ | `--dir` | string | `.` | Project directory |
2246
+ | `--tools` | string | | Comma-separated tool ids to check |
2247
+ | `--json` | boolean | `false` | |
2248
+
2249
+
2250
+ ### `scale tools plan`
2251
+
2252
+ Create a tool execution plan from task intent
2253
+
2254
+
2255
+ | Option | Type | Default | Description |
2256
+ |---|---|---|---|
2257
+ | `--dir` | string | `.` | Project directory |
2258
+ | `--task-id` | string | | Task id for evidence linkage |
2259
+ | `--task` | string | | Task description |
2260
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2261
+ | `--files` | string | | Comma-separated changed or target files |
2262
+ | `--services` | string | | Comma-separated affected services |
2263
+ | `--json` | boolean | `false` | |
2264
+
2265
+
2266
+ ### `scale tools run`
2267
+
2268
+ Run or dry-run a tool execution plan and write tool evidence
2269
+
2270
+
2271
+ | Option | Type | Default | Description |
2272
+ |---|---|---|---|
2273
+ | `--dir` | string | `.` | Project directory |
2274
+ | `--task-id` | string | | Task id for evidence linkage |
2275
+ | `--task` | string | | Task description |
2276
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2277
+ | `--files` | string | | Comma-separated changed or target files |
2278
+ | `--services` | string | | Comma-separated affected services |
2279
+ | `--dry-run` | boolean | `false` | Plan and record skipped evidence without executing tools |
2280
+ | `--json` | boolean | `false` | |
2281
+
2282
+
2283
+ ### `scale tools evidence`
2284
+
2285
+ Check required tool execution evidence for a task
2286
+
2287
+
2288
+ | Option | Type | Default | Description |
2289
+ |---|---|---|---|
2290
+ | `--dir` | string | `.` | Project directory |
2291
+ | `--task-id` | string | | Task id for evidence linkage |
2292
+ | `--task` | string | | Task description |
2293
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2294
+ | `--files` | string | | Comma-separated changed or target files |
2295
+ | `--services` | string | | Comma-separated affected services |
2296
+ | `--mode` | string | | Override tool gate mode: off, advisory, evidence-required, or block |
2297
+ | `--allow-skipped` | boolean | `false` | Allow skipped/manual fallback evidence to satisfy required tools |
2298
+ | `--json` | boolean | `false` | |
2299
+
2300
+
2301
+ ### `scale tools outdated`
2302
+
2303
+ List MCP, browser, desktop, and external CLI update surfaces without installing anything
2304
+
2305
+
2306
+ | Option | Type | Default | Description |
2307
+ |---|---|---|---|
2308
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2309
+ | `--json` | boolean | `false` | Print JSON output |
2310
+
2311
+
2312
+ ## `scale skill`
2313
+
2314
+ Skill discovery and management
2315
+
2316
+
2317
+ ### `scale skill scan`
2318
+
2319
+ Scan for installed skills
2320
+
2321
+
2322
+ | Option | Type | Default | Description |
2323
+ |---|---|---|---|
2324
+ | `--dir` | string | `.` | Project directory |
2325
+ | `--json` | boolean | `false` | Output scan result as JSON |
2326
+
2327
+
2328
+ ### `scale skill doctor`
2329
+
2330
+ Check workflow skill installation status
2331
+
2332
+
2333
+ | Option | Type | Default | Description |
2334
+ |---|---|---|---|
2335
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2336
+ | `--supply-chain` | boolean | `false` | Include supply-chain safety review for known skill sources |
2337
+ | `--json` | boolean | `false` | Output skill doctor report as JSON |
2338
+
2339
+
2340
+ ### `scale skill plan`
2341
+
2342
+ Create or refresh a task skill plan
2343
+
2344
+
2345
+ | Option | Type | Default | Description |
2346
+ |---|---|---|---|
2347
+ | `--task-id` | positional | | |
2348
+ | `--dir` | string | | Task artifact directory; defaults to current state artifactsDir |
2349
+ | `--json` | boolean | `false` | |
2350
+
2351
+
2352
+ ### `scale skill check`
2353
+
2354
+ Check required skill evidence artifacts
2355
+
2356
+
2357
+ | Option | Type | Default | Description |
2358
+ |---|---|---|---|
2359
+ | `--dir` | string | | Task artifact directory; defaults to current state artifactsDir |
2360
+ | `--level` | string | | Task level: S, M, L, or CRITICAL; defaults to current state level or M |
2361
+ | `--require-installed` | boolean | `false` | Fail when required workflow skills are not installed locally |
2362
+ | `--json` | boolean | `false` | |
2363
+
2364
+
2365
+ ### `scale skill repo`
2366
+
2367
+ Show SCALE progressive skill repository guide
2368
+
2369
+
2370
+ | Option | Type | Default | Description |
2371
+ |---|---|---|---|
2372
+ | `--category` | string | | Filter by category: ui/browser/desktop/testing/review/docs/agent-cli/role-library/discovery |
2373
+ | `--output` | string | | Write markdown guide to file |
2374
+ | `--json` | boolean | `false` | |
2375
+
2376
+
2377
+ ### `scale skill safety`
2378
+
2379
+ Evaluate skill install command and source safety
2380
+
2381
+
2382
+ | Option | Type | Default | Description |
2383
+ |---|---|---|---|
2384
+ | `--source` | string | | Skill source URL |
2385
+ | `--command` | string | | Install command to review |
2386
+ | `--json` | boolean | `false` | |
2387
+
2388
+
2389
+ ### `scale skill radar`
2390
+
2391
+ Recommend skills, MCP, and CLI capabilities with confidence, safety, and evidence requirements
2392
+
2393
+
2394
+ | Option | Type | Default | Description |
2395
+ |---|---|---|---|
2396
+ | `--task` | string | | Task description |
2397
+ | `--phase` | string | | Workflow phase |
2398
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2399
+ | `--files` | string | | Comma-separated changed or relevant files |
2400
+ | `--services` | string | | Comma-separated services or modules |
2401
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2402
+ | `--output` | string | | Write markdown report to file |
2403
+ | `--json` | boolean | `false` | Output radar report as JSON |
2404
+
2405
+
2406
+ ### `scale skill recommend`
2407
+
2408
+ Recommend a composable skill workflow for a task
2409
+
2410
+
2411
+ | Option | Type | Default | Description |
2412
+ |---|---|---|---|
2413
+ | `--task` | string | | Task description |
2414
+ | `--phase` | string | | Workflow phase |
2415
+ | `--json` | boolean | `false` | |
2416
+
2417
+
2418
+ ### `scale skill outdated`
2419
+
2420
+ List skill update surfaces without installing or upgrading anything
2421
+
2422
+
2423
+ | Option | Type | Default | Description |
2424
+ |---|---|---|---|
2425
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2426
+ | `--json` | boolean | `false` | Print JSON output |
2427
+
2428
+
2429
+ ## `scale skills`
2430
+
2431
+ Skill discovery and management
2432
+
2433
+
2434
+ ### `scale skills scan`
2435
+
2436
+ Scan for installed skills
2437
+
2438
+
2439
+ | Option | Type | Default | Description |
2440
+ |---|---|---|---|
2441
+ | `--dir` | string | `.` | Project directory |
2442
+ | `--json` | boolean | `false` | Output scan result as JSON |
2443
+
2444
+
2445
+ ### `scale skills doctor`
2446
+
2447
+ Check workflow skill installation status
2448
+
2449
+
2450
+ | Option | Type | Default | Description |
2451
+ |---|---|---|---|
2452
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2453
+ | `--supply-chain` | boolean | `false` | Include supply-chain safety review for known skill sources |
2454
+ | `--json` | boolean | `false` | Output skill doctor report as JSON |
2455
+
2456
+
2457
+ ### `scale skills plan`
2458
+
2459
+ Create or refresh a task skill plan
2460
+
2461
+
2462
+ | Option | Type | Default | Description |
2463
+ |---|---|---|---|
2464
+ | `--task-id` | positional | | |
2465
+ | `--dir` | string | | Task artifact directory; defaults to current state artifactsDir |
2466
+ | `--json` | boolean | `false` | |
2467
+
2468
+
2469
+ ### `scale skills check`
2470
+
2471
+ Check required skill evidence artifacts
2472
+
2473
+
2474
+ | Option | Type | Default | Description |
2475
+ |---|---|---|---|
2476
+ | `--dir` | string | | Task artifact directory; defaults to current state artifactsDir |
2477
+ | `--level` | string | | Task level: S, M, L, or CRITICAL; defaults to current state level or M |
2478
+ | `--require-installed` | boolean | `false` | Fail when required workflow skills are not installed locally |
2479
+ | `--json` | boolean | `false` | |
2480
+
2481
+
2482
+ ### `scale skills repo`
2483
+
2484
+ Show SCALE progressive skill repository guide
2485
+
2486
+
2487
+ | Option | Type | Default | Description |
2488
+ |---|---|---|---|
2489
+ | `--category` | string | | Filter by category: ui/browser/desktop/testing/review/docs/agent-cli/role-library/discovery |
2490
+ | `--output` | string | | Write markdown guide to file |
2491
+ | `--json` | boolean | `false` | |
2492
+
2493
+
2494
+ ### `scale skills safety`
2495
+
2496
+ Evaluate skill install command and source safety
2497
+
2498
+
2499
+ | Option | Type | Default | Description |
2500
+ |---|---|---|---|
2501
+ | `--source` | string | | Skill source URL |
2502
+ | `--command` | string | | Install command to review |
2503
+ | `--json` | boolean | `false` | |
2504
+
2505
+
2506
+ ### `scale skills radar`
2507
+
2508
+ Recommend skills, MCP, and CLI capabilities with confidence, safety, and evidence requirements
2509
+
2510
+
2511
+ | Option | Type | Default | Description |
2512
+ |---|---|---|---|
2513
+ | `--task` | string | | Task description |
2514
+ | `--phase` | string | | Workflow phase |
2515
+ | `--level` | string | `M` | Task level: S, M, L, or CRITICAL |
2516
+ | `--files` | string | | Comma-separated changed or relevant files |
2517
+ | `--services` | string | | Comma-separated services or modules |
2518
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2519
+ | `--output` | string | | Write markdown report to file |
2520
+ | `--json` | boolean | `false` | Output radar report as JSON |
2521
+
2522
+
2523
+ ### `scale skills recommend`
2524
+
2525
+ Recommend a composable skill workflow for a task
2526
+
2527
+
2528
+ | Option | Type | Default | Description |
2529
+ |---|---|---|---|
2530
+ | `--task` | string | | Task description |
2531
+ | `--phase` | string | | Workflow phase |
2532
+ | `--json` | boolean | `false` | |
2533
+
2534
+
2535
+ ### `scale skills outdated`
2536
+
2537
+ List skill update surfaces without installing or upgrading anything
2538
+
2539
+
2540
+ | Option | Type | Default | Description |
2541
+ |---|---|---|---|
2542
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2543
+ | `--json` | boolean | `false` | Print JSON output |
2544
+
2545
+
2546
+ ## `scale agent`
2547
+
2548
+ Multi-Agent system management
2549
+
2550
+
2551
+ ### `scale agent spawn`
2552
+
2553
+ Spawn a new agent instance
2554
+
2555
+
2556
+ | Option | Type | Default | Description |
2557
+ |---|---|---|---|
2558
+ | `--profile` | positional | | Agent profile ID (e.g., frontend-agent) |
2559
+
2560
+
2561
+ ### `scale agent list`
2562
+
2563
+ List all agent instances
2564
+
2565
+
2566
+ ### `scale agent profiles`
2567
+
2568
+ List available agent profiles
2569
+
2570
+
2571
+ ### `scale agent leaders`
2572
+
2573
+ List SCALE leader presets such as CEO and CTO
2574
+
2575
+
2576
+ | Option | Type | Default | Description |
2577
+ |---|---|---|---|
2578
+ | `--output` | string | | Write markdown guide to file |
2579
+ | `--json` | boolean | `false` | |
2580
+
2581
+
2582
+ ## `scale team`
2583
+
2584
+ Agent team orchestration
2585
+
2586
+
2587
+ ### `scale team create`
2588
+
2589
+ Create an agent team for a task
2590
+
2591
+
2592
+ | Option | Type | Default | Description |
2593
+ |---|---|---|---|
2594
+ | `--profiles` | string | | Comma-separated profile IDs |
2595
+ | `--task` | string | | Task description |
2596
+
2597
+
2598
+ ### `scale team status`
2599
+
2600
+ Show team status
2601
+
2602
+
2603
+ | Option | Type | Default | Description |
2604
+ |---|---|---|---|
2605
+ | `--team` | positional | | Team ID |
2606
+
2607
+
2608
+ ## `scale create-prd`
2609
+
2610
+ Create PRD hierarchy (Spec → Plan → Tasks)
2611
+
2612
+
2613
+ | Option | Type | Default | Description |
2614
+ |---|---|---|---|
2615
+ | `--title` | positional | | |
2616
+ | `--specs` | string | | Spec description |
2617
+ | `--plans` | string | | Plan design |
2618
+ | `--tasks` | string | | Task list (comma-separated) |
2619
+ | `--session-id` | string | | |
2620
+
2621
+
2622
+ ## `scale out-of-scope`
2623
+
2624
+ Manage out-of-scope knowledge base (rejected concepts with institutional memory)
2625
+
2626
+
2627
+ ### `scale out-of-scope add`
2628
+
2629
+ Record a rejected concept to the out-of-scope knowledge base
2630
+
2631
+
2632
+ | Option | Type | Default | Description |
2633
+ |---|---|---|---|
2634
+ | `--concept` | positional | | kebab-case concept name |
2635
+ | `--title` | string | | Human-readable title |
2636
+ | `--reason` | string | | Why this was rejected |
2637
+ | `--tech-context` | string | | Technical constraints that led to rejection |
2638
+ | `--prior-requests` | string | | Comma-separated issue IDs or URLs |
2639
+
2640
+
2641
+ ### `scale out-of-scope check`
2642
+
2643
+ Check if a concept matches any existing out-of-scope entry
2644
+
2645
+
2646
+ | Option | Type | Default | Description |
2647
+ |---|---|---|---|
2648
+ | `--concept` | positional | | Concept name to check |
2649
+ | `--description` | string | | Optional description for fuzzy matching |
2650
+
2651
+
2652
+ ### `scale out-of-scope list`
2653
+
2654
+ List all out-of-scope entries
2655
+
2656
+
2657
+ ### `scale out-of-scope remove`
2658
+
2659
+ Remove an out-of-scope entry (concept reconsidered)
2660
+
2661
+
2662
+ | Option | Type | Default | Description |
2663
+ |---|---|---|---|
2664
+ | `--concept` | positional | | Concept name to remove |
2665
+
2666
+
2667
+ ## `scale config`
2668
+
2669
+ Configuration management
2670
+
2671
+
2672
+ ### `scale config profile`
2673
+
2674
+ View or switch configuration profile
2675
+
2676
+
2677
+ | Option | Type | Default | Description |
2678
+ |---|---|---|---|
2679
+ | `--set` | string | `` | Switch to profile (minimal/standard/advanced) |
2680
+ | `--governance-pack` | string | | Optional governance pack hint for bootstrap suggestions, for example frontend-app |
2681
+ | `--list` | boolean | `false` | List all available profiles |
2682
+ | `--json` | boolean | `false` | Output as JSON |
2683
+
2684
+
2685
+ ## `scale quickstart`
2686
+
2687
+ One-command governance setup (30 seconds to your first gate)
2688
+
2689
+
2690
+ | Option | Type | Default | Description |
2691
+ |---|---|---|---|
2692
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2693
+ | `--pack` | string | | Governance pack (auto-detected if omitted) |
2694
+ | `--profile` | string | `standard` | Profile (minimal\|standard\|critical) |
2695
+
2696
+
2697
+ ## `scale tui`
2698
+
2699
+ Interactive terminal UI dashboard for governance status
2700
+
2701
+
2702
+ | Option | Type | Default | Description |
2703
+ |---|---|---|---|
2704
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2705
+
2706
+
2707
+ ## `scale qa`
2708
+
2709
+ Browser QA — E2E, visual regression, daemon management
2710
+
2711
+
2712
+ ### `scale qa e2e`
2713
+
2714
+ Run browser E2E test flow
2715
+
2716
+
2717
+ | Option | Type | Default | Description |
2718
+ |---|---|---|---|
2719
+ | `--url` | string | | Base URL (default: http://localhost:3000) |
2720
+ | `--flow` | string | | Flow file path (.scale/qa/flows/*.json) |
2721
+ | `--save-domain-skill` | boolean | | Save successful selectors as domain skill |
2722
+
2723
+
2724
+ ### `scale qa daemon`
2725
+
2726
+ Manage persistent browser daemon
2727
+
2728
+
2729
+ | Option | Type | Default | Description |
2730
+ |---|---|---|---|
2731
+ | `--action` | positional | | start\|stop\|status |
2732
+
2733
+
2734
+ ## `scale auto-fix`
2735
+
2736
+ Auto-detect and fix lint, test, and security failures — then re-verify
2737
+
2738
+
2739
+ | Option | Type | Default | Description |
2740
+ |---|---|---|---|
2741
+ | `--scope` | string | `all` | Scope: lint\|test\|security\|all |
2742
+ | `--max-attempts` | string | `3` | Max fix attempts per failure |
2743
+ | `--escalate` | boolean | `true` | Escalate model tier on retry |
2744
+ | `--dry-run` | boolean | `false` | Report what would be done without applying fixes |
2745
+
2746
+
2747
+ ## `scale cost-report`
2748
+
2749
+ Show token usage and estimated cost by model, task, and day
2750
+
2751
+
2752
+ | Option | Type | Default | Description |
2753
+ |---|---|---|---|
2754
+ | `--days` | string | `30` | Lookback days |
2755
+ | `--format` | string | `text` | Output format: text\|json |
2756
+
2757
+
2758
+ ## `scale cost-optimize`
2759
+
2760
+ Show cost optimization recommendations
2761
+
2762
+
2763
+ ## `scale cross-review`
2764
+
2765
+ Cross-model review — multiple models independently review a change
2766
+
2767
+
2768
+ | Option | Type | Default | Description |
2769
+ |---|---|---|---|
2770
+ | `--diff` | string | | Git diff reference (e.g. HEAD~1) |
2771
+ | `--models` | string | `claude-sonnet` | Comma-separated model list |
2772
+ | `--files` | string | | Specific files to review |
2773
+
2774
+
2775
+ ## `scale shield`
2776
+
2777
+ SCALE Shield — Deterministic hook-based governance interception
2778
+
2779
+
2780
+ ### `scale shield compile`
2781
+
2782
+ Compile .scale/policy.yaml into runtime hook scripts for all harnesses
2783
+
2784
+
2785
+ | Option | Type | Default | Description |
2786
+ |---|---|---|---|
2787
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2788
+ | `--no-patch` | boolean | `false` | Skip settings.json patching |
2789
+
2790
+
2791
+ ### `scale shield status`
2792
+
2793
+ Check Shield integrity — verify hooks match policy, paths protected
2794
+
2795
+
2796
+ | Option | Type | Default | Description |
2797
+ |---|---|---|---|
2798
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2799
+ | `--json` | boolean | `false` | |
2800
+
2801
+
2802
+ ### `scale shield test`
2803
+
2804
+ Test Shield rules against sample inputs — verify blocking behavior
2805
+
2806
+
2807
+ | Option | Type | Default | Description |
2808
+ |---|---|---|---|
2809
+ | `--json` | boolean | `false` | |
2810
+
2811
+
2812
+ ## `scale orch`
2813
+
2814
+ SCALE Orchestrator — Declarative daemon-based orchestration
2815
+
2816
+
2817
+ ### `scale orch start`
2818
+
2819
+ Start the SCALE Orchestrator daemon for autonomous issue processing
2820
+
2821
+
2822
+ | Option | Type | Default | Description |
2823
+ |---|---|---|---|
2824
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2825
+ | `--foreground` | boolean | `false` | Run in foreground (blocking) |
2826
+
2827
+
2828
+ ### `scale orch stop`
2829
+
2830
+ Stop the SCALE Orchestrator daemon gracefully
2831
+
2832
+
2833
+ | Option | Type | Default | Description |
2834
+ |---|---|---|---|
2835
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2836
+
2837
+
2838
+ ### `scale orch status`
2839
+
2840
+ Show SCALE Orchestrator daemon status and active workspaces
2841
+
2842
+
2843
+ | Option | Type | Default | Description |
2844
+ |---|---|---|---|
2845
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2846
+ | `--json` | boolean | `false` | |
2847
+
2848
+
2849
+ ### `scale orch log`
2850
+
2851
+ Show recent SCALE Orchestrator daemon log entries
2852
+
2853
+
2854
+ | Option | Type | Default | Description |
2855
+ |---|---|---|---|
2856
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2857
+ | `--lines` | string | `50` | Number of recent log lines |
2858
+
2859
+
2860
+ ## `scale cortex`
2861
+
2862
+ SCALE Cortex — Evidence-driven continuous learning and governance evolution
2863
+
2864
+
2865
+ ### `scale cortex extract`
2866
+
2867
+ Extract instincts from observation logs — detect failure patterns and create learning entries
2868
+
2869
+
2870
+ | Option | Type | Default | Description |
2871
+ |---|---|---|---|
2872
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2873
+ | `--min-confidence` | string | `0.5` | Minimum confidence threshold (0.3-0.9) |
2874
+ | `--json` | boolean | `false` | |
2875
+
2876
+
2877
+ ### `scale cortex inject`
2878
+
2879
+ Preview what SCALE Cortex would inject at SessionStart — high-confidence instincts
2880
+
2881
+
2882
+ | Option | Type | Default | Description |
2883
+ |---|---|---|---|
2884
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2885
+ | `--minimal` | boolean | `false` | Show minimal (low-context) injection format |
2886
+ | `--json` | boolean | `false` | |
2887
+
2888
+
2889
+ ### `scale cortex metrics`
2890
+
2891
+ Compute SCALE Cortex governance ROI — gate pass rates, instinct hit rates, cost savings
2892
+
2893
+
2894
+ | Option | Type | Default | Description |
2895
+ |---|---|---|---|
2896
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2897
+ | `--days` | string | `30` | Lookback period in days |
2898
+ | `--json` | boolean | `false` | |
2899
+
2900
+
2901
+ ### `scale cortex evolve`
2902
+
2903
+ Run full Cortex evolution cycle: reflect → extract → save high-confidence instincts
2904
+
2905
+
2906
+ | Option | Type | Default | Description |
2907
+ |---|---|---|---|
2908
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2909
+ | `--json` | boolean | `false` | |
2910
+
2911
+
2912
+ ### `scale cortex verify`
2913
+
2914
+ Verify Cortex pipeline health — instinct store integrity, observation data, injection readiness
2915
+
2916
+
2917
+ | Option | Type | Default | Description |
2918
+ |---|---|---|---|
2919
+ | `--dir` | string | `E:\project\yixue-scale-engine` | Project directory |
2920
+ | `--json` | boolean | `false` | |
2921
+