principles-disciple 1.8.0 → 1.8.2

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 (460) hide show
  1. package/ADVANCED_CONFIG_ZH.md +97 -0
  2. package/AGENT_INSTALL.md +173 -0
  3. package/AGENT_INSTALL_EN.md +173 -0
  4. package/INSTALL.md +256 -0
  5. package/SKILL.md +63 -0
  6. package/docs/COMMAND_REFERENCE.md +76 -0
  7. package/docs/COMMAND_REFERENCE_EN.md +79 -0
  8. package/esbuild.config.js +75 -0
  9. package/openclaw.plugin.json +6 -1
  10. package/package.json +13 -15
  11. package/scripts/build-web.mjs +46 -0
  12. package/scripts/install-dependencies.cjs +47 -0
  13. package/scripts/sync-plugin.mjs +802 -0
  14. package/scripts/verify-build.mjs +109 -0
  15. package/src/agents/nocturnal-dreamer.md +152 -0
  16. package/src/agents/nocturnal-philosopher.md +138 -0
  17. package/src/agents/nocturnal-reflector.md +126 -0
  18. package/src/agents/nocturnal-scribe.md +164 -0
  19. package/src/commands/capabilities.ts +85 -0
  20. package/{dist/commands/context.js → src/commands/context.ts} +78 -38
  21. package/src/commands/evolution-status.ts +146 -0
  22. package/src/commands/export.ts +111 -0
  23. package/src/commands/focus.ts +533 -0
  24. package/src/commands/nocturnal-review.ts +311 -0
  25. package/src/commands/nocturnal-rollout.ts +763 -0
  26. package/src/commands/nocturnal-train.ts +1002 -0
  27. package/{dist/commands/pain.js → src/commands/pain.ts} +68 -49
  28. package/src/commands/principle-rollback.ts +27 -0
  29. package/{dist/commands/rollback.js → src/commands/rollback.ts} +44 -12
  30. package/src/commands/samples.ts +60 -0
  31. package/src/commands/strategy.ts +38 -0
  32. package/{dist/commands/thinking-os.js → src/commands/thinking-os.ts} +59 -36
  33. package/src/commands/workflow-debug.ts +128 -0
  34. package/{dist/config/defaults/runtime.js → src/config/defaults/runtime.ts} +12 -5
  35. package/src/config/errors.ts +163 -0
  36. package/{dist/config/index.d.ts → src/config/index.ts} +2 -1
  37. package/src/constants/diagnostician.ts +66 -0
  38. package/src/constants/tools.ts +62 -0
  39. package/src/core/adaptive-thresholds.ts +476 -0
  40. package/{dist/core/config-service.js → src/core/config-service.ts} +7 -4
  41. package/{dist/core/config.js → src/core/config.ts} +158 -46
  42. package/src/core/control-ui-db.ts +435 -0
  43. package/{dist/core/detection-funnel.js → src/core/detection-funnel.ts} +36 -21
  44. package/{dist/core/detection-service.js → src/core/detection-service.ts} +7 -4
  45. package/{dist/core/dictionary-service.js → src/core/dictionary-service.ts} +7 -4
  46. package/{dist/core/dictionary.js → src/core/dictionary.ts} +57 -34
  47. package/src/core/empathy-keyword-matcher.ts +327 -0
  48. package/src/core/empathy-types.ts +218 -0
  49. package/src/core/event-log.ts +544 -0
  50. package/src/core/evolution-engine.ts +612 -0
  51. package/src/core/evolution-logger.ts +353 -0
  52. package/src/core/evolution-migration.ts +77 -0
  53. package/src/core/evolution-reducer.ts +731 -0
  54. package/src/core/evolution-types.ts +456 -0
  55. package/src/core/external-training-contract.ts +527 -0
  56. package/src/core/focus-history.ts +1458 -0
  57. package/src/core/hygiene/tracker.ts +117 -0
  58. package/{dist/core/init.js → src/core/init.ts} +39 -26
  59. package/src/core/local-worker-routing.ts +617 -0
  60. package/{dist/core/migration.js → src/core/migration.ts} +18 -11
  61. package/src/core/model-deployment-registry.ts +722 -0
  62. package/src/core/model-training-registry.ts +813 -0
  63. package/src/core/nocturnal-arbiter.ts +706 -0
  64. package/src/core/nocturnal-candidate-scoring.ts +392 -0
  65. package/src/core/nocturnal-compliance.ts +1075 -0
  66. package/src/core/nocturnal-dataset.ts +668 -0
  67. package/src/core/nocturnal-executability.ts +428 -0
  68. package/src/core/nocturnal-export.ts +390 -0
  69. package/{dist/core/nocturnal-paths.js → src/core/nocturnal-paths.ts} +49 -23
  70. package/src/core/nocturnal-trajectory-extractor.ts +484 -0
  71. package/src/core/nocturnal-trinity.ts +1384 -0
  72. package/src/core/pain.ts +122 -0
  73. package/{dist/core/path-resolver.js → src/core/path-resolver.ts} +157 -36
  74. package/{dist/core/paths.js → src/core/paths.ts} +13 -4
  75. package/src/core/principle-training-state.ts +450 -0
  76. package/src/core/profile.ts +226 -0
  77. package/src/core/promotion-gate.ts +822 -0
  78. package/{dist/core/risk-calculator.js → src/core/risk-calculator.ts} +42 -16
  79. package/{dist/core/session-tracker.js → src/core/session-tracker.ts} +185 -63
  80. package/src/core/shadow-observation-registry.ts +534 -0
  81. package/{dist/core/system-logger.js → src/core/system-logger.ts} +9 -5
  82. package/src/core/thinking-models.ts +217 -0
  83. package/src/core/training-program.ts +630 -0
  84. package/src/core/trajectory-types.ts +243 -0
  85. package/src/core/trajectory.ts +1673 -0
  86. package/{dist/core/workspace-context.js → src/core/workspace-context.ts} +57 -32
  87. package/src/hooks/bash-risk.ts +171 -0
  88. package/src/hooks/edit-verification.ts +295 -0
  89. package/src/hooks/gate-block-helper.ts +160 -0
  90. package/src/hooks/gate.ts +210 -0
  91. package/src/hooks/gfi-gate.ts +177 -0
  92. package/src/hooks/lifecycle.ts +326 -0
  93. package/{dist/hooks/llm.js → src/hooks/llm.ts} +166 -139
  94. package/src/hooks/message-sanitize.ts +45 -0
  95. package/src/hooks/pain.ts +384 -0
  96. package/src/hooks/progressive-trust-gate.ts +174 -0
  97. package/src/hooks/prompt.ts +920 -0
  98. package/src/hooks/subagent.ts +207 -0
  99. package/src/hooks/thinking-checkpoint.ts +73 -0
  100. package/src/hooks/trajectory-collector.ts +290 -0
  101. package/src/http/principles-console-route.ts +716 -0
  102. package/src/i18n/commands.ts +117 -0
  103. package/src/index.ts +694 -0
  104. package/src/service/central-database.ts +831 -0
  105. package/src/service/control-ui-query-service.ts +888 -0
  106. package/src/service/evolution-query-service.ts +405 -0
  107. package/src/service/evolution-worker.ts +1646 -0
  108. package/src/service/health-query-service.ts +836 -0
  109. package/{dist/service/nocturnal-runtime.js → src/service/nocturnal-runtime.ts} +263 -36
  110. package/src/service/nocturnal-service.ts +1015 -0
  111. package/src/service/nocturnal-target-selector.ts +532 -0
  112. package/src/service/phase3-input-filter.ts +237 -0
  113. package/src/service/runtime-summary-service.ts +757 -0
  114. package/src/service/subagent-workflow/deep-reflect-workflow-manager.ts +513 -0
  115. package/src/service/subagent-workflow/empathy-observer-workflow-manager.ts +603 -0
  116. package/src/service/subagent-workflow/index.ts +51 -0
  117. package/src/service/subagent-workflow/nocturnal-workflow-manager.ts +856 -0
  118. package/src/service/subagent-workflow/runtime-direct-driver.ts +166 -0
  119. package/src/service/subagent-workflow/types.ts +378 -0
  120. package/src/service/subagent-workflow/workflow-store.ts +328 -0
  121. package/src/service/trajectory-service.ts +15 -0
  122. package/{dist/tools/critique-prompt.js → src/tools/critique-prompt.ts} +25 -8
  123. package/src/tools/deep-reflect.ts +349 -0
  124. package/{dist/tools/model-index.js → src/tools/model-index.ts} +33 -17
  125. package/src/types/event-types.ts +453 -0
  126. package/src/types/hygiene-types.ts +31 -0
  127. package/src/types/principle-tree-schema.ts +244 -0
  128. package/src/types/runtime-summary.ts +49 -0
  129. package/src/types.ts +74 -0
  130. package/src/utils/file-lock.ts +391 -0
  131. package/{dist/utils/glob-match.js → src/utils/glob-match.ts} +21 -20
  132. package/{dist/utils/hashing.js → src/utils/hashing.ts} +6 -4
  133. package/src/utils/io.ts +110 -0
  134. package/{dist/utils/nlp.js → src/utils/nlp.ts} +19 -12
  135. package/{dist/utils/plugin-logger.js → src/utils/plugin-logger.ts} +33 -8
  136. package/src/utils/subagent-probe.ts +94 -0
  137. package/templates/langs/zh/skills/pd-diagnostician/SKILL.md +70 -1
  138. package/templates/pain_settings.json +2 -1
  139. package/tests/README.md +120 -0
  140. package/tests/build-artifacts.test.ts +111 -0
  141. package/tests/commands/evolution-status.test.ts +222 -0
  142. package/tests/commands/evolver.test.ts +22 -0
  143. package/tests/commands/export.test.ts +78 -0
  144. package/tests/commands/nocturnal-review.test.ts +448 -0
  145. package/tests/commands/nocturnal-train.test.ts +97 -0
  146. package/tests/commands/pain.test.ts +108 -0
  147. package/tests/commands/samples.test.ts +65 -0
  148. package/tests/commands/strategy.test.ts +34 -0
  149. package/tests/commands/thinking-os.test.ts +88 -0
  150. package/tests/core/adaptive-thresholds.test.ts +261 -0
  151. package/tests/core/config-service.test.ts +89 -0
  152. package/tests/core/config.test.ts +90 -0
  153. package/tests/core/control-ui-db.test.ts +75 -0
  154. package/tests/core/core-template-guidance.test.ts +21 -0
  155. package/tests/core/detection-funnel.test.ts +63 -0
  156. package/tests/core/detection-service.test.ts +50 -0
  157. package/tests/core/dictionary-service.test.ts +116 -0
  158. package/tests/core/dictionary.test.ts +168 -0
  159. package/tests/core/empathy-keyword-matcher.test.ts +209 -0
  160. package/tests/core/event-log.test.ts +181 -0
  161. package/tests/core/evolution-e2e.test.ts +58 -0
  162. package/tests/core/evolution-engine-gate-integration.test.ts +543 -0
  163. package/tests/core/evolution-engine.test.ts +562 -0
  164. package/tests/core/evolution-logger.test.ts +148 -0
  165. package/tests/core/evolution-migration.test.ts +50 -0
  166. package/tests/core/evolution-paths.test.ts +21 -0
  167. package/tests/core/evolution-reducer.detector-metadata.test.ts +602 -0
  168. package/tests/core/evolution-reducer.test.ts +180 -0
  169. package/tests/core/evolution-types-loop.test.ts +48 -0
  170. package/tests/core/evolution-user-stories.e2e.test.ts +249 -0
  171. package/tests/core/external-training-contract.test.ts +463 -0
  172. package/tests/core/focus-history.test.ts +682 -0
  173. package/tests/core/init-flatten.test.ts +69 -0
  174. package/tests/core/init-refactor.test.ts +87 -0
  175. package/tests/core/init-v1.3.test.ts +46 -0
  176. package/tests/core/init.test.ts +190 -0
  177. package/tests/core/local-worker-routing.test.ts +757 -0
  178. package/tests/core/migration.test.ts +84 -0
  179. package/tests/core/model-deployment-registry.test.ts +845 -0
  180. package/tests/core/model-training-registry.test.ts +889 -0
  181. package/tests/core/nocturnal-arbiter.test.ts +494 -0
  182. package/tests/core/nocturnal-candidate-scoring.test.ts +400 -0
  183. package/tests/core/nocturnal-compliance.test.ts +646 -0
  184. package/tests/core/nocturnal-dataset.test.ts +892 -0
  185. package/tests/core/nocturnal-executability.test.ts +357 -0
  186. package/tests/core/nocturnal-export.test.ts +462 -0
  187. package/tests/core/nocturnal-reviewed-subset-comparison.test.ts +428 -0
  188. package/tests/core/nocturnal-trajectory-extractor.test.ts +634 -0
  189. package/tests/core/nocturnal-trinity.test.ts +953 -0
  190. package/tests/core/pain.test.ts +33 -0
  191. package/tests/core/path-resolver.test.ts +57 -0
  192. package/tests/core/paths-refactor.test.ts +42 -0
  193. package/tests/core/phase7-rollout-integration.test.ts +477 -0
  194. package/tests/core/principle-training-state.test.ts +712 -0
  195. package/tests/core/profile.test.ts +56 -0
  196. package/tests/core/promotion-gate.test.ts +556 -0
  197. package/tests/core/risk-calculator.test.ts +168 -0
  198. package/tests/core/session-tracker.test.ts +191 -0
  199. package/tests/core/training-program.test.ts +472 -0
  200. package/tests/core/trajectory.test.ts +265 -0
  201. package/tests/core/workspace-context-factory.test.ts +18 -0
  202. package/tests/core/workspace-context.test.ts +134 -0
  203. package/tests/fixtures/nocturnal-reviewed-subset.json +183 -0
  204. package/tests/fixtures/production-compatibility.test.ts +147 -0
  205. package/tests/fixtures/production-mock-generator.ts +282 -0
  206. package/tests/hooks/bash-risk-integration.test.ts +137 -0
  207. package/tests/hooks/bash-risk.test.ts +81 -0
  208. package/tests/hooks/edit-verification.test.ts +678 -0
  209. package/tests/hooks/gate-edit-verification-p1.test.ts +632 -0
  210. package/tests/hooks/gate-edit-verification.test.ts +435 -0
  211. package/tests/hooks/gate-pipeline-integration.test.ts +404 -0
  212. package/tests/hooks/gate.test.ts +271 -0
  213. package/tests/hooks/gfi-gate-unit.test.ts +422 -0
  214. package/tests/hooks/gfi-gate.test.ts +669 -0
  215. package/tests/hooks/lifecycle.test.ts +248 -0
  216. package/tests/hooks/llm.test.ts +308 -0
  217. package/tests/hooks/message-sanitize.test.ts +36 -0
  218. package/tests/hooks/pain.test.ts +141 -0
  219. package/tests/hooks/progressive-trust-gate.test.ts +277 -0
  220. package/tests/hooks/prompt.test.ts +1411 -0
  221. package/tests/hooks/subagent.test.ts +467 -0
  222. package/tests/hooks/thinking-gate.test.ts +313 -0
  223. package/tests/http/principles-console-route.test.ts +140 -0
  224. package/tests/hygiene-tracker.test.ts +77 -0
  225. package/tests/index.integration.test.ts +179 -0
  226. package/tests/index.shadow-routing.integration.test.ts +140 -0
  227. package/tests/index.test.ts +9 -0
  228. package/tests/integration/empathy-workflow-integration.test.ts +627 -0
  229. package/tests/service/control-ui-query-service.test.ts +121 -0
  230. package/tests/service/empathy-observer-workflow-manager.test.ts +176 -0
  231. package/tests/service/evolution-worker.test.ts +585 -0
  232. package/tests/service/nocturnal-runtime.test.ts +470 -0
  233. package/tests/service/nocturnal-service.test.ts +577 -0
  234. package/tests/service/nocturnal-target-selector.test.ts +615 -0
  235. package/tests/service/nocturnal-workflow-manager.test.ts +439 -0
  236. package/tests/service/phase3-input-filter.test.ts +289 -0
  237. package/tests/service/runtime-summary-service.test.ts +919 -0
  238. package/tests/task-compliance.test.ts +166 -0
  239. package/tests/test-utils.ts +48 -0
  240. package/tests/tools/critique-prompt.test.ts +260 -0
  241. package/tests/tools/deep-reflect.test.ts +232 -0
  242. package/tests/tools/model-index.test.ts +246 -0
  243. package/tests/ui/app.test.tsx +114 -0
  244. package/tests/utils/file-lock.test.ts +407 -0
  245. package/tests/utils/hashing.test.ts +32 -0
  246. package/tests/utils/io.test.ts +39 -0
  247. package/tests/utils/nlp.test.ts +53 -0
  248. package/tests/utils/plugin-logger.test.ts +156 -0
  249. package/tsconfig.json +16 -0
  250. package/tsconfig.tsbuildinfo +1 -0
  251. package/ui/src/App.tsx +45 -0
  252. package/ui/src/api.ts +216 -0
  253. package/ui/src/charts.tsx +586 -0
  254. package/ui/src/components/ErrorState.tsx +6 -0
  255. package/ui/src/components/Loading.tsx +13 -0
  256. package/ui/src/components/ProtectedRoute.tsx +12 -0
  257. package/ui/src/components/Shell.tsx +91 -0
  258. package/ui/src/components/WorkspaceConfig.tsx +146 -0
  259. package/ui/src/components/index.ts +5 -0
  260. package/ui/src/context/auth.tsx +80 -0
  261. package/ui/src/context/theme.tsx +66 -0
  262. package/ui/src/hooks/useAutoRefresh.ts +39 -0
  263. package/ui/src/i18n/ui.ts +363 -0
  264. package/ui/src/main.tsx +16 -0
  265. package/ui/src/pages/EvolutionPage.tsx +352 -0
  266. package/ui/src/pages/FeedbackPage.tsx +140 -0
  267. package/ui/src/pages/GateMonitorPage.tsx +136 -0
  268. package/ui/src/pages/LoginPage.tsx +88 -0
  269. package/ui/src/pages/OverviewPage.tsx +238 -0
  270. package/ui/src/pages/SamplesPage.tsx +174 -0
  271. package/ui/src/pages/ThinkingModelsPage.tsx +127 -0
  272. package/ui/src/styles.css +1661 -0
  273. package/ui/src/types.ts +368 -0
  274. package/ui/src/utils/format.ts +15 -0
  275. package/vitest.config.ts +23 -0
  276. package/dist/commands/capabilities.d.ts +0 -3
  277. package/dist/commands/capabilities.js +0 -73
  278. package/dist/commands/context.d.ts +0 -5
  279. package/dist/commands/evolution-status.d.ts +0 -4
  280. package/dist/commands/evolution-status.js +0 -117
  281. package/dist/commands/evolver.d.ts +0 -9
  282. package/dist/commands/evolver.js +0 -26
  283. package/dist/commands/export.d.ts +0 -2
  284. package/dist/commands/export.js +0 -98
  285. package/dist/commands/focus.d.ts +0 -14
  286. package/dist/commands/focus.js +0 -457
  287. package/dist/commands/nocturnal-review.d.ts +0 -24
  288. package/dist/commands/nocturnal-review.js +0 -265
  289. package/dist/commands/nocturnal-rollout.d.ts +0 -27
  290. package/dist/commands/nocturnal-rollout.js +0 -671
  291. package/dist/commands/nocturnal-train.d.ts +0 -25
  292. package/dist/commands/nocturnal-train.js +0 -919
  293. package/dist/commands/pain.d.ts +0 -5
  294. package/dist/commands/principle-rollback.d.ts +0 -4
  295. package/dist/commands/principle-rollback.js +0 -22
  296. package/dist/commands/rollback.d.ts +0 -19
  297. package/dist/commands/samples.d.ts +0 -2
  298. package/dist/commands/samples.js +0 -55
  299. package/dist/commands/strategy.d.ts +0 -3
  300. package/dist/commands/strategy.js +0 -29
  301. package/dist/commands/thinking-os.d.ts +0 -2
  302. package/dist/config/defaults/runtime.d.ts +0 -40
  303. package/dist/config/errors.d.ts +0 -84
  304. package/dist/config/errors.js +0 -94
  305. package/dist/config/index.js +0 -7
  306. package/dist/constants/diagnostician.d.ts +0 -12
  307. package/dist/constants/diagnostician.js +0 -56
  308. package/dist/constants/tools.d.ts +0 -17
  309. package/dist/constants/tools.js +0 -54
  310. package/dist/core/adaptive-thresholds.d.ts +0 -186
  311. package/dist/core/adaptive-thresholds.js +0 -300
  312. package/dist/core/config-service.d.ts +0 -15
  313. package/dist/core/config.d.ts +0 -127
  314. package/dist/core/control-ui-db.d.ts +0 -95
  315. package/dist/core/control-ui-db.js +0 -292
  316. package/dist/core/detection-funnel.d.ts +0 -33
  317. package/dist/core/detection-service.d.ts +0 -15
  318. package/dist/core/dictionary-service.d.ts +0 -15
  319. package/dist/core/dictionary.d.ts +0 -38
  320. package/dist/core/event-log.d.ts +0 -82
  321. package/dist/core/event-log.js +0 -463
  322. package/dist/core/evolution-engine.d.ts +0 -118
  323. package/dist/core/evolution-engine.js +0 -464
  324. package/dist/core/evolution-logger.d.ts +0 -137
  325. package/dist/core/evolution-logger.js +0 -256
  326. package/dist/core/evolution-migration.d.ts +0 -5
  327. package/dist/core/evolution-migration.js +0 -65
  328. package/dist/core/evolution-reducer.d.ts +0 -98
  329. package/dist/core/evolution-reducer.js +0 -465
  330. package/dist/core/evolution-types.d.ts +0 -287
  331. package/dist/core/evolution-types.js +0 -78
  332. package/dist/core/external-training-contract.d.ts +0 -276
  333. package/dist/core/external-training-contract.js +0 -269
  334. package/dist/core/focus-history.d.ts +0 -210
  335. package/dist/core/focus-history.js +0 -1185
  336. package/dist/core/hygiene/tracker.d.ts +0 -22
  337. package/dist/core/hygiene/tracker.js +0 -106
  338. package/dist/core/init.d.ts +0 -12
  339. package/dist/core/local-worker-routing.d.ts +0 -175
  340. package/dist/core/local-worker-routing.js +0 -525
  341. package/dist/core/migration.d.ts +0 -6
  342. package/dist/core/model-deployment-registry.d.ts +0 -218
  343. package/dist/core/model-deployment-registry.js +0 -503
  344. package/dist/core/model-training-registry.d.ts +0 -295
  345. package/dist/core/model-training-registry.js +0 -475
  346. package/dist/core/nocturnal-arbiter.d.ts +0 -159
  347. package/dist/core/nocturnal-arbiter.js +0 -534
  348. package/dist/core/nocturnal-candidate-scoring.d.ts +0 -137
  349. package/dist/core/nocturnal-candidate-scoring.js +0 -266
  350. package/dist/core/nocturnal-compliance.d.ts +0 -175
  351. package/dist/core/nocturnal-compliance.js +0 -824
  352. package/dist/core/nocturnal-dataset.d.ts +0 -224
  353. package/dist/core/nocturnal-dataset.js +0 -443
  354. package/dist/core/nocturnal-executability.d.ts +0 -85
  355. package/dist/core/nocturnal-executability.js +0 -331
  356. package/dist/core/nocturnal-export.d.ts +0 -124
  357. package/dist/core/nocturnal-export.js +0 -275
  358. package/dist/core/nocturnal-paths.d.ts +0 -124
  359. package/dist/core/nocturnal-trajectory-extractor.d.ts +0 -242
  360. package/dist/core/nocturnal-trajectory-extractor.js +0 -307
  361. package/dist/core/nocturnal-trinity.d.ts +0 -311
  362. package/dist/core/nocturnal-trinity.js +0 -880
  363. package/dist/core/pain.d.ts +0 -4
  364. package/dist/core/pain.js +0 -70
  365. package/dist/core/path-resolver.d.ts +0 -46
  366. package/dist/core/paths.d.ts +0 -65
  367. package/dist/core/principle-training-state.d.ts +0 -121
  368. package/dist/core/principle-training-state.js +0 -321
  369. package/dist/core/profile.d.ts +0 -62
  370. package/dist/core/profile.js +0 -210
  371. package/dist/core/promotion-gate.d.ts +0 -238
  372. package/dist/core/promotion-gate.js +0 -529
  373. package/dist/core/risk-calculator.d.ts +0 -22
  374. package/dist/core/session-tracker.d.ts +0 -99
  375. package/dist/core/shadow-observation-registry.d.ts +0 -217
  376. package/dist/core/shadow-observation-registry.js +0 -308
  377. package/dist/core/system-logger.d.ts +0 -8
  378. package/dist/core/thinking-models.d.ts +0 -38
  379. package/dist/core/thinking-models.js +0 -170
  380. package/dist/core/training-program.d.ts +0 -233
  381. package/dist/core/training-program.js +0 -433
  382. package/dist/core/trajectory.d.ts +0 -411
  383. package/dist/core/trajectory.js +0 -1307
  384. package/dist/core/workspace-context.d.ts +0 -71
  385. package/dist/hooks/bash-risk.d.ts +0 -57
  386. package/dist/hooks/bash-risk.js +0 -137
  387. package/dist/hooks/edit-verification.d.ts +0 -62
  388. package/dist/hooks/edit-verification.js +0 -256
  389. package/dist/hooks/gate-block-helper.d.ts +0 -44
  390. package/dist/hooks/gate-block-helper.js +0 -119
  391. package/dist/hooks/gate.d.ts +0 -24
  392. package/dist/hooks/gate.js +0 -173
  393. package/dist/hooks/gfi-gate.d.ts +0 -40
  394. package/dist/hooks/gfi-gate.js +0 -113
  395. package/dist/hooks/lifecycle.d.ts +0 -5
  396. package/dist/hooks/lifecycle.js +0 -284
  397. package/dist/hooks/llm.d.ts +0 -12
  398. package/dist/hooks/message-sanitize.d.ts +0 -3
  399. package/dist/hooks/message-sanitize.js +0 -37
  400. package/dist/hooks/pain.d.ts +0 -5
  401. package/dist/hooks/pain.js +0 -301
  402. package/dist/hooks/progressive-trust-gate.d.ts +0 -51
  403. package/dist/hooks/progressive-trust-gate.js +0 -89
  404. package/dist/hooks/prompt.d.ts +0 -47
  405. package/dist/hooks/prompt.js +0 -884
  406. package/dist/hooks/subagent.d.ts +0 -10
  407. package/dist/hooks/subagent.js +0 -387
  408. package/dist/hooks/thinking-checkpoint.d.ts +0 -37
  409. package/dist/hooks/thinking-checkpoint.js +0 -51
  410. package/dist/hooks/trajectory-collector.d.ts +0 -32
  411. package/dist/hooks/trajectory-collector.js +0 -256
  412. package/dist/http/principles-console-route.d.ts +0 -9
  413. package/dist/http/principles-console-route.js +0 -567
  414. package/dist/i18n/commands.d.ts +0 -26
  415. package/dist/i18n/commands.js +0 -116
  416. package/dist/index.d.ts +0 -7
  417. package/dist/index.js +0 -581
  418. package/dist/service/central-database.d.ts +0 -104
  419. package/dist/service/central-database.js +0 -649
  420. package/dist/service/control-ui-query-service.d.ts +0 -221
  421. package/dist/service/control-ui-query-service.js +0 -543
  422. package/dist/service/empathy-observer-manager.d.ts +0 -52
  423. package/dist/service/empathy-observer-manager.js +0 -229
  424. package/dist/service/evolution-query-service.d.ts +0 -155
  425. package/dist/service/evolution-query-service.js +0 -258
  426. package/dist/service/evolution-worker.d.ts +0 -101
  427. package/dist/service/evolution-worker.js +0 -974
  428. package/dist/service/nocturnal-runtime.d.ts +0 -183
  429. package/dist/service/nocturnal-service.d.ts +0 -163
  430. package/dist/service/nocturnal-service.js +0 -787
  431. package/dist/service/nocturnal-target-selector.d.ts +0 -145
  432. package/dist/service/nocturnal-target-selector.js +0 -315
  433. package/dist/service/phase3-input-filter.d.ts +0 -73
  434. package/dist/service/phase3-input-filter.js +0 -172
  435. package/dist/service/runtime-summary-service.d.ts +0 -122
  436. package/dist/service/runtime-summary-service.js +0 -485
  437. package/dist/service/trajectory-service.d.ts +0 -2
  438. package/dist/service/trajectory-service.js +0 -15
  439. package/dist/tools/critique-prompt.d.ts +0 -14
  440. package/dist/tools/deep-reflect.d.ts +0 -39
  441. package/dist/tools/deep-reflect.js +0 -350
  442. package/dist/tools/model-index.d.ts +0 -9
  443. package/dist/types/event-types.d.ts +0 -306
  444. package/dist/types/event-types.js +0 -106
  445. package/dist/types/hygiene-types.d.ts +0 -20
  446. package/dist/types/hygiene-types.js +0 -12
  447. package/dist/types/runtime-summary.d.ts +0 -47
  448. package/dist/types/runtime-summary.js +0 -1
  449. package/dist/types.d.ts +0 -50
  450. package/dist/types.js +0 -22
  451. package/dist/utils/file-lock.d.ts +0 -71
  452. package/dist/utils/file-lock.js +0 -309
  453. package/dist/utils/glob-match.d.ts +0 -28
  454. package/dist/utils/hashing.d.ts +0 -9
  455. package/dist/utils/io.d.ts +0 -6
  456. package/dist/utils/io.js +0 -106
  457. package/dist/utils/nlp.d.ts +0 -9
  458. package/dist/utils/plugin-logger.d.ts +0 -39
  459. package/dist/utils/subagent-probe.d.ts +0 -34
  460. package/dist/utils/subagent-probe.js +0 -81
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "esModuleInterop": true,
7
+ "jsx": "react-jsx",
8
+ "strict": true,
9
+ "skipLibCheck": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "outDir": "./dist",
12
+ "rootDir": "./src",
13
+ "declaration": true
14
+ },
15
+ "include": ["src/**/*"]
16
+ }
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../../.npm-global/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../.npm-global/lib/node_modules/typescript/lib/lib.es2022.full.d.ts","./src/openclaw-sdk.d.ts","./src/utils/file-lock.ts","./src/core/model-training-registry.ts","./src/core/external-training-contract.ts","./src/core/shadow-observation-registry.ts","./src/core/promotion-gate.ts","./src/core/model-deployment-registry.ts","./src/core/local-worker-routing.ts","./src/i18n/commands.ts","./src/core/paths.ts","./src/config/defaults/runtime.ts","./src/config/errors.ts","./src/config/index.ts","./src/core/path-resolver.ts","./src/core/config.ts","./src/core/config-service.ts","./src/types/event-types.ts","./src/core/event-log.ts","./src/core/dictionary.ts","./src/core/dictionary-service.ts","./src/types/hygiene-types.ts","./src/core/hygiene/tracker.ts","./src/core/system-logger.ts","./src/core/trajectory.ts","./src/core/evolution-types.ts","./src/core/evolution-reducer.ts","./src/core/workspace-context.ts","./src/core/session-tracker.ts","./src/types.ts","./src/core/focus-history.ts","./src/utils/subagent-probe.ts","./src/service/empathy-observer-manager.ts","./src/service/subagent-workflow/runtime-direct-driver.ts","./src/service/subagent-workflow/types.ts","./src/service/subagent-workflow/workflow-store.ts","./src/service/subagent-workflow/empathy-observer-workflow-manager.ts","./src/service/subagent-workflow/index.ts","./src/hooks/prompt.ts","./src/utils/io.ts","./src/core/profile.ts","./src/core/risk-calculator.ts","./src/hooks/thinking-checkpoint.ts","./src/hooks/edit-verification.ts","./src/hooks/bash-risk.ts","./src/constants/tools.ts","./src/hooks/gate-block-helper.ts","./src/core/evolution-engine.ts","./src/hooks/gfi-gate.ts","./src/hooks/progressive-trust-gate.ts","./src/hooks/gate.ts","./src/core/pain.ts","./src/utils/hashing.ts","./src/core/evolution-logger.ts","./src/hooks/pain.ts","./src/hooks/lifecycle.ts","./src/core/control-ui-db.ts","./src/core/detection-funnel.ts","./src/core/detection-service.ts","./src/core/thinking-models.ts","./src/hooks/message-sanitize.ts","./src/hooks/llm.ts","./src/core/init.ts","./src/utils/nlp.ts","./src/constants/diagnostician.ts","./src/service/nocturnal-runtime.ts","./src/core/nocturnal-trajectory-extractor.ts","./src/core/principle-training-state.ts","./src/core/nocturnal-compliance.ts","./src/service/nocturnal-target-selector.ts","./src/core/nocturnal-arbiter.ts","./src/core/adaptive-thresholds.ts","./src/core/nocturnal-candidate-scoring.ts","./src/core/nocturnal-trinity.ts","./src/core/nocturnal-executability.ts","./src/core/nocturnal-paths.ts","./src/core/nocturnal-dataset.ts","./src/service/nocturnal-service.ts","./src/service/evolution-worker.ts","./src/hooks/subagent.ts","./src/hooks/trajectory-collector.ts","./src/commands/strategy.ts","./src/commands/capabilities.ts","./src/commands/thinking-os.ts","./src/commands/evolver.ts","./src/commands/pain.ts","./src/commands/context.ts","./src/commands/focus.ts","./src/commands/rollback.ts","./src/service/phase3-input-filter.ts","./src/types/runtime-summary.ts","./src/service/runtime-summary-service.ts","./src/commands/evolution-status.ts","./src/commands/principle-rollback.ts","./src/core/nocturnal-export.ts","./src/commands/export.ts","./src/commands/samples.ts","./src/commands/nocturnal-review.ts","./src/core/training-program.ts","./src/commands/nocturnal-train.ts","./src/commands/nocturnal-rollout.ts","./src/service/trajectory-service.ts","./src/core/migration.ts","./src/tools/model-index.ts","./src/tools/critique-prompt.ts","./src/tools/deep-reflect.ts","./src/service/control-ui-query-service.ts","./src/service/evolution-query-service.ts","./src/service/health-query-service.ts","./src/service/central-database.ts","./src/http/principles-console-route.ts","./src/index.ts","./src/core/evolution-migration.ts","./src/utils/glob-match.ts","./src/utils/plugin-logger.ts"],"fileIdsList":[[64,90],[64,92,101],[64,72,89,154],[64,90,157],[64,90,93],[64,139],[64,66,67,68,69,70,71,90],[64,66,67,69,70,90,161],[64,80,90,91],[64,89],[64,90,91],[74,75],[65],[78],[65,73],[82],[83,120],[64,80],[65,73,88,108],[86,87],[86,88,89],[65,77,82,86,87,88],[64,84],[64,73,92],[66,69,70],[64,73],[65,66,69],[129],[134,136],[65,133,138],[133],[138,139],[87,122],[129,134,135],[73,79,102],[76],[65,88],[65,66,67,68,70],[102],[64,78,81,86],[73],[66,67],[65,73,76],[73,77,78,79,81,82,83,85,87,89],[64,76,90,91],[64,90,102,103,104,105,106,108,109,111,112],[64,76,90,91,104,107,108,109,110],[64,73,90,93,114],[64,90,91,114,119,121,122,123],[64],[64,86,88,90,91,102,103,110,114,115,116],[64,90,102,109,110],[64,71,77,90,91,92,93,95,100],[64,88,90,95,110,114,141],[64,76,91],[64,87,169,170,171,172],[64,68,70,71,72,77,86,90,101,113,117,118,123,124,125,141,142,143,144,145,146,147,148,149,150,151,155,156,158,159,160,162,163,164,165,168,173],[90,119,122],[64,90,91,94],[87,116],[64,65,76,83,86,90,91,116,121,125,126,127,128,136,140],[70,73,80,90,91,114,119],[65,91],[128,129,132,133,134,136,137,138,139,141],[128,129,130,131],[87,90,91,114,152,153],[64,90,91,94,96,97,98],[96,97,98,99],[97],[64,87,90],[64,166],[64,73,81,92,167]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},"9d8b3a1813740b581aa1a2b50a25fd976276a8ada08bcb362854fcfa1f91521f","262eaabfa3905fb4a82d082990b44c1d888b41955944254aec6c75624bf9a6fe","c3c4b14d7f2f86acef18a32ca98559116d81416e85328f8f7202abc8d00eb6ee","fb0b83a68d1ab00013e50783a8a3485659cc11df4cea678bb8c867e63eed6ccb","74efa7673bc1dfde11ed9badbfc36bc4e16d8cf2d0204398991f90cd6a7c9c00","ca56da3cdccf7731263f77dc5b0fce7a4ede885bb9dee3d0ed3d961a5ddaa001","6c7af54fb57f4ed3f0cbf29784f62df694c5d393f7736a4a8b0d61415491aa38","6e5be48fddbecfb48354c7dbbb0e7e19449d1edc400df37d6d4ecfd5b3636496","e4623380656c5939d7849669914ecd52107a979b4ffd3476c36db153e13f86b4","1e2bede1af57d49af563701f7b78765ccd40674ce66a0cf451e293e6bb1f5d6a","fec28636b608cbae5fff7935cbd758a1818f4ed11136fd8b171c6dc030aaf826","0e9c0067cab37fb3a3066199440cd2d341071ff2c3d1e870502f6d4f6c38b388","55bad809622ff93ba248aa092fc7b5d034fb0d951b7408ad6b96a1d5a8c7d620","395748eedf239c6007d0c59d53cb61efa60daed51f3069c43db018ae864cc42d","96c1ece41aabd170785a27097c56383086e36cb1c0bfa0d93a55c2117a33c6ad","5cd5deab63096b54ac0a8602730a33f93fa78da7c92f73ee77c2c656a1e66220","bcabdcb3fc75fe4324a1f76521d3e3c9771cbdce9a70b6ca67cba3edd13fe600","cc6be56007351d7642dee75881e18cfaf9e4d5a80633c43b3819cead85328721","c7840dcf758cf962c9b5921bf2877a7d68ac3d5f9c0535b72d4be1fb7fe331d0","8a815153c34f6a4cc7370af59338282870ea05d5f7bb504391a24eaa8061571f","71910559d2afc62ad138692ba1de6807d7ce5fae088d412473b6ea1f12345455","5a417b46d2266124171f0d6cf04d87e03c0147353f00cee80ebea6eb21b15af3","b467f6d92ed3a076db89c1b4c907c8f52a120cad62ddccaaadeb0d779d413ec0","385d5a57193712804d9af710dba2a9a1bd7f7d61227f42b1279a896e12b02aec","3fe7b54125bbae42abe66758bf11135c1c7ac240a41d0ec8bd8175d33cb811da","761bf70b706e61ffc18d005b50025c713127379f0b71c88c23d9d13ddb4329e4","14ddff59bfe118c36eedbc599fe3f851ab96f9e2533d597144f5c7a337549acb","7785f0c8ddd30197fbbc2e0fcc639a85796955dd621fe7a2b7e4a109c7be0e5c","861986bb92809c085bef8f1a196844c314c77bedbebb3c762dec53d31c1b5fa2","c5c1c808b8a5a3376840c6f1c076508066439e5aac48a437fb51a40281b74b10","50d39ae9732f40294c7ad597efa7f8b51e8020db3f53c196817a89021ef4cffe","ab3f1e1cac00fdeb41bfcd285343714cda84ee915e2a0848eb06d2a480b60225","9ff3769fea15f3ea87604fab66f9df9c60253e3d8e35a27e30c45368f302823c","f1cc34f32d35fbe8cf9da310d3e827c1075ffc59f67f8ab63b5ea5998e8f9ac8","fe36c4012ea1592148cf8dcf233046e70ed00d8ff3ac17ce2f60deefc7bfc814","0936b33ea78cca7a3b9a43659de1c608a6a1f74745a8cf64cd579fd478f7d0e9","e78c4428e63742f8ce9f6b458c2f77d342895c6186874e07f26ee1b2babc20bb","dd31048fd48693c6e5e9f9daafc488f45d3e075273b488dbe8ffe66547c32456","0065522b7c253c24f790f5fd9b92f6aa2b5281e02f59aee67df4fd83252cf4fe","33e05b1149b08b208119b49f401d3c52f1325add13e252a4ca53117118f79a90","db1c5da92fca254ca627b827ec69156af474512cbc1053219b0db6b43a6c622f","02b1b99f03bff793c1167f22dbc426ff5d0a576cfea997325f304fb3a0910cc3","6a370db16331a34a75f9a996207a90e8653cf8f0c7b8e1271192b9f024d19449","f0570fc2ac9b5a8f7e56581a7b8bfc46ebb2dcc0426369cc30d4c36cd1fb4ad7","f17ca09660b4d7e49cfe351105da8a0d0e33a2da7d053faf9a97cde219874b88","46cd1d609cb3519e2f837747f5c4d5983c440b627f6b093b35c6c8b0cde78c57","2f0fcf3fe2b5eb552d5b7d5388d0abc0937359b58c21b505b4f25d7865b15f43","0dc53e0ed5346d2f1673a98301c9fd04910220f5ec52fbc1bba9562d52d78459","1cecbfd332d84e92823294503c7fc94946f92e5e5d561bd7cd738182a45c3e0a","1389c9a0f3194c4092ac35e5111073a71edaebfca0c4c37822c5749b555c82b9","81d926659a72220ee69b2c0d127afb3b6899f845c15eaacdb161570427d4d697","153033e9c0e1e1378df25d7d993bef559363cf093eda1d88c7df3bbbac811ebd","6d8a1b531cfad78ba0bf2bb22128f540d69ca9ff7d7e7a51a82492cb8cfc1990","5f2a66a6b0d89fc5e2ae32436e6cf9f893fea8ceb0eeac4178939b22b30ec8d0","7f627e420fe7e40964ed65e76f3026728e3e4e56b17d46d74f8732309cd3b0c4","8dfb4addf7ec8a53139f961e986244b51e5b62ad285dd5ef2f2ddad79e4b76e3","975a0346ef51073e5f0628f48cfd0e5ec9eab7661aa48ef4e8bf3df60a397e02","05c62efccea581a27d72d6be673a484887ed4776b4734c222f2a3700d063305a","91f5da2550c281aa28827085442ad8927bf1e13ee7b22a135976eed0823dbe07","3b0d26c6101b5b3b94e5d070ac511f32935da7060096e1c4af77af0acf799ab5","cc9f8ea2b0e60cb1109783a68b3fe70c726521f2e9be18b766e6e6bdc1d7f746","7bffbd69d62237085abeff2337cf289d87b8ef503d2c2a550794ce0de84e1ec8","453603986384ec482e4367057c899fa72607aeeda1f5e8c11a42bea3d763b792","0da32f4b974db17f1b98b3e70daf98887fc42753bcb0efe8acc7d8f3535cedbe","67e81ace6fe5f7808efbf4ef94896ccd3a6d37383aeb9ad1aa2d8ce1a79cf73d","217a5d46bc48bf78af9ed0dc4a57f86585e905925a090c53f4ffd2c98c0e32cc","951ba9347de5ccd741f1373d7b8f87038c507ffd53e9a7cc1e17181fe778d20a","49e9fa4f7f81de98352581c03c469ca5171ce982d6d917bcd46c0c599a7fe80a","189618d658d4fdddcca2ee77755fd64a9b7fb7bd29d7d13d25bc8c8c673a0861","5d4c758c9df5c060812520bd0cb90cd56da75e74a4ad72a9697ad0ef8590718b","7694821ca40004d1d6ebdfb044d48ca9c0fbd81c94a7d0d2655272078e1db89e","16943c31b37a6b82d53f12968442dc925310e48aa9c51c9c0268e137cedf56a1","f9ba6113c421c0c974615178a8eda513dd403082e43f7b18ead8096d264890e4","404cd3ad8ab0664132968fc86c0f38594c971e33e0142173a4057c7904393d88","709b285f80272eccbb391930eda1cea625cdbaa2692288869d182d56b38446b7","3f3f70b08621799e3ed841b6eaae54bb3284558c2a26c399387948218794f713","c79040137cc6fb54071b9124700f4c13a8e453d18ca3a12c1829869f8f5b2855","e6024c2232c8e4eb94decd14f2249be85c01ffba0a7cd2488be59be170b2c88c","6f57d65e12c95626fcbb352815f8c9326e3ff4c5240354d399e397f552340fa9","298798cab06c5760f9e09acb274f22e4574d1616f5e7e64d9ef9a9a24d5ccb8c","7f3b9e3f807ef757640343e60d56918a28f438c2219aa3d96018ae0259157872","9d42e3b90864643bded9bfc940f8fa06615414376a447398cd098a712d8a75cf","7b35df5aba4bfa54ad83884a353e201266ff2c85bb4471415c16bd792117d574","00a02646cfd0fe098bd82f25fc3bc99038ee931cd9a36471a72312654e6d7321","260e88a5b6d4ee08d6065c75c3d47414334543940f72002fb9d21e8bfd9570c9","bf8889b96771e9da3b30052ffc548124a75f6a0e2bcf21e17e6fa7a4916668a2","0b0bd6e68ed04b2b3ad25e7a8c2c9fc4fb11c86acb50fab6a8fdf8f9579cb452","7db0cc4fac0f7add2551acb6a3c73948c6dc5c583ef5793811abdd49319aa0e4","c8044dce86bddc6fbc03787e97ac6507e0987164eaac5dc1abf896f368a13528","12390f3103f6561fa96dec434abf056683962548969f2de2736f38d3ad0dd9bd","c4a9493482d93ab7d12c7a57e115c20413aa871112823320dc2043a325d6562d","438f519b40e011c79460b933a21b5ce18f5fd287651607681668bc73c215a9ab","c8c3bc1cf6026ad1291fc4e16875098b9dd051f9c11ae06bbccd55e8e5d436fd","886fb29537b13c577be11ac30c79d38c645260347f15deb92b5437cd974a434c","dd0de2d2c40ea3698037db273b569472ccbbd44b34aed0cef8a06952192ba7fa","ca1495b5164d2fc89542a29fa6838876c24cda589de48c26aee32284ab1a4ccb","4ae080e8d9ae2d39e5aca702182ba9ccaf2f80ce1793104084ac1ba2519b895b","0706d0cc6f3c6280b8c069d532b19eaee9a888de7886814823899197f22998d0","2e4cf85ae80c6669f9a789dffb0f7ecc55747c9dabdb43007d5d76b4b87d8ee3","05f7fdc21577226560aec69adfd18aebb700764c19831bd98e376b1513fed1c0","0312e6a7baa729f03f8829830ef313f33a059c3a18dd7f999eedf7bc8324d942","4e6759a834a759099219a887f137231ab8c42a5151864b638ca1262c9b93796c","0ae9ef2aa36812f9214947b2cd556dcaa7c4dcd4ccffc57010be1a66662dae67","a9c644c73bb60c4ab0ecce0a9c1f35785e6c3d9f5e06e03866b5e8bf521f6a85","2f37eb16f2c33a4757a05eb893cc725ab9461a78649801e64145100248b2d04a","e210b79bef1ecd1a1c133fba3835f9f4c4c04bfcf2245fa63de4b993ef620941","6e45f45c6b53193003d13114b10b522525b89d8cd1b6b28f8039952acd3b47d5","34e324900ae13db9f8e2f012c4dca329056881bc02e234decccc18d579fa0b65","b96cc7fe4039b41ba6bbb9927ab56381d34ee127f896f79e16213a45ceffb656","4aad48a4381c9658e6a66d03a703d377ff8b1b3aae7db65a68b394818e8c8dd8","307741545a33847665dbf8130e25c2eac8759787c1d68f209fb208b9f60eefcb","4af8ab48cde79e3103beb4a0b4de30a29f2ee5342ceb8470a20a8d512dc18144","02a39882b46c16e90cf54d99fdd2b2841b602373536fc7681c14e7d78d8c1762","380ba1268958e259fc0259333840f90f0f840f56acbfadf508f7ae1ff41d7997"],"root":[[64,177]],"options":{"declaration":true,"esModuleInterop":true,"jsx":4,"module":99,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"strict":true,"target":9},"referencedMap":[[145,1],[149,2],[155,3],[147,1],[158,4],[150,5],[160,6],[163,7],[162,8],[148,9],[156,10],[151,11],[159,1],[144,1],[146,1],[76,12],[134,13],[79,14],[119,15],[120,16],[121,17],[83,16],[81,18],[110,19],[116,20],[175,21],[89,22],[85,23],[125,24],[71,25],[165,26],[70,27],[66,13],[133,28],[135,29],[139,30],[137,31],[157,32],[129,33],[136,34],[114,35],[77,36],[130,37],[69,38],[104,39],[91,40],[68,13],[86,41],[161,42],[87,43],[90,44],[106,1],[109,45],[113,46],[111,47],[118,48],[124,49],[123,50],[117,51],[112,52],[101,53],[142,54],[105,55],[143,50],[173,56],[174,57],[172,36],[169,58],[95,59],[170,60],[141,61],[171,62],[128,63],[140,64],[132,65],[154,66],[99,67],[100,68],[96,50],[97,50],[98,69],[164,70],[167,71],[168,72],[166,1],[92,50],[102,41],[94,50]],"semanticDiagnosticsPerFile":[[65,[{"start":187,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":215,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1269,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":5410,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":5999,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[66,[{"start":1390,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1418,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1450,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[67,[{"start":1541,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":1571,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1607,"length":5,"messageText":"Cannot find module 'url' or its corresponding type declarations.","category":1,"code":2307}]],[68,[{"start":1512,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1540,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1572,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[69,[{"start":1620,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1648,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1680,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[70,[{"start":1455,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1483,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1515,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[73,[{"start":22,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[77,[{"start":22,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":50,"length":4,"messageText":"Cannot find module 'os' or its corresponding type declarations.","category":1,"code":2307},{"start":76,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":2108,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":4976,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":5632,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":5880,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":8270,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":8496,"length":6,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | null' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'null' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":9001,"length":6,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | null' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'null' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":9544,"length":6,"code":2322,"category":1,"messageText":{"messageText":"Type 'string | null' is not assignable to type 'string'.","category":1,"code":2322,"next":[{"messageText":"Type 'null' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":9826,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[78,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[81,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":8907,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":8954,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":9120,"length":5,"messageText":"Parameter 'entry' implicitly has an 'any' type.","category":1,"code":7006}]],[82,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[85,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[86,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1097,"length":3,"messageText":"Parameter 'err' implicitly has an 'any' type.","category":1,"code":7006}]],[87,[{"start":21,"length":16,"messageText":"Cannot find module 'better-sqlite3' or its corresponding type declarations.","category":1,"code":2307},{"start":54,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":77,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":104,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":50487,"length":5,"messageText":"Parameter 'entry' implicitly has an 'any' type.","category":1,"code":7006},{"start":58089,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":59004,"length":3,"messageText":"Parameter 'sum' implicitly has an 'any' type.","category":1,"code":7006},{"start":59009,"length":4,"messageText":"Parameter 'file' implicitly has an 'any' type.","category":1,"code":7006}]],[89,[{"start":24,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":54,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":82,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[91,[{"start":85,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":113,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":3232,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006}]],[93,[{"start":146,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":174,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":3525,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":3595,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":3752,"length":1,"messageText":"Parameter 'a' implicitly has an 'any' type.","category":1,"code":7006},{"start":3755,"length":1,"messageText":"Parameter 'b' implicitly has an 'any' type.","category":1,"code":7006},{"start":4560,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":4628,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":4760,"length":1,"messageText":"Parameter 'a' implicitly has an 'any' type.","category":1,"code":7006},{"start":4763,"length":1,"messageText":"Parameter 'b' implicitly has an 'any' type.","category":1,"code":7006},{"start":4830,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":6033,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":6205,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":30389,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":32682,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[98,[{"start":21,"length":16,"messageText":"Cannot find module 'better-sqlite3' or its corresponding type declarations.","category":1,"code":2307},{"start":59,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":87,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[99,[{"start":1249,"length":6,"messageText":"Cannot find namespace 'NodeJS'.","category":1,"code":2503}]],[101,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[102,[{"start":22,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":50,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307}]],[104,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":2568,"length":6,"messageText":"Cannot find namespace 'NodeJS'.","category":1,"code":2503}]],[106,[{"start":649,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":677,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[110,[{"start":219,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":247,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":12311,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":14512,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[113,[{"start":791,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":819,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[114,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[115,[{"start":27,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[116,[{"start":258,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[117,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[118,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":82,"length":10,"messageText":"Cannot find module 'readline' or its corresponding type declarations.","category":1,"code":2307}]],[119,[{"start":21,"length":16,"messageText":"Cannot find module 'better-sqlite3' or its corresponding type declarations.","category":1,"code":2307},{"start":54,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":77,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[120,[{"start":27,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[124,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[125,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":86,"length":5,"messageText":"Cannot find module 'url' or its corresponding type declarations.","category":1,"code":2307}]],[128,[{"start":903,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":931,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[130,[{"start":796,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":824,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[134,[{"start":828,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":856,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[136,[{"start":1362,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":1392,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1420,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1449,"length":5,"messageText":"Cannot find module 'url' or its corresponding type declarations.","category":1,"code":2307}]],[138,[{"start":1312,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1340,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":7000,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":7047,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":7094,"length":1,"messageText":"Parameter 'a' implicitly has an 'any' type.","category":1,"code":7006},{"start":7097,"length":1,"messageText":"Parameter 'b' implicitly has an 'any' type.","category":1,"code":7006}]],[139,[{"start":1195,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1223,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1255,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[140,[{"start":1258,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1286,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1321,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[141,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":83,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":1192,"length":6,"messageText":"Cannot find namespace 'NodeJS'.","category":1,"code":2503},{"start":1237,"length":6,"messageText":"Cannot find namespace 'NodeJS'.","category":1,"code":2503}]],[142,[{"start":133,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307}]],[143,[{"start":152,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":180,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":6779,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":6837,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":6979,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":7120,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006}]],[144,[{"start":299,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1285,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[145,[{"start":25,"length":15,"messageText":"Cannot find module 'child_process' or its corresponding type declarations.","category":1,"code":2307},{"start":62,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":90,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1081,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1109,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1133,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1645,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":2174,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[146,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":320,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[147,[{"start":567,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[148,[{"start":3597,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[149,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":458,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[150,[{"start":173,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":201,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":236,"length":13,"messageText":"Cannot find module 'node:crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":4506,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":5627,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":5695,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":6058,"length":1,"messageText":"Parameter 'a' implicitly has an 'any' type.","category":1,"code":7006},{"start":6061,"length":1,"messageText":"Parameter 'b' implicitly has an 'any' type.","category":1,"code":7006},{"start":6239,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":6242,"length":1,"messageText":"Parameter 'i' implicitly has an 'any' type.","category":1,"code":7006},{"start":10382,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":10450,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":10598,"length":1,"messageText":"Parameter 'a' implicitly has an 'any' type.","category":1,"code":7006},{"start":10601,"length":1,"messageText":"Parameter 'b' implicitly has an 'any' type.","category":1,"code":7006}]],[151,[{"start":577,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[154,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":16225,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":16423,"length":5,"messageText":"Parameter 'entry' implicitly has an 'any' type.","category":1,"code":7006}]],[155,[{"start":6593,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[156,[{"start":291,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[157,[{"start":1608,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1636,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1668,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[158,[{"start":497,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[159,[{"start":420,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[160,[{"start":1097,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":3669,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[161,[{"start":1423,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1451,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1483,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":1523,"length":5,"messageText":"Cannot find module 'url' or its corresponding type declarations.","category":1,"code":2307},{"start":11046,"length":15,"messageText":"Cannot find module 'child_process' or its corresponding type declarations.","category":1,"code":2307},{"start":11420,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":11890,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":11969,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":12304,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":12497,"length":4,"messageText":"Parameter 'code' implicitly has an 'any' type.","category":1,"code":7006},{"start":12588,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":14217,"length":3,"messageText":"Parameter 'err' implicitly has an 'any' type.","category":1,"code":7006}]],[162,[{"start":1012,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":1040,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":1082,"length":15,"messageText":"Cannot find module 'child_process' or its corresponding type declarations.","category":1,"code":2307},{"start":1129,"length":5,"messageText":"Cannot find module 'url' or its corresponding type declarations.","category":1,"code":2307},{"start":4646,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":9646,"length":1,"messageText":"Parameter 'f' implicitly has an 'any' type.","category":1,"code":7006},{"start":14569,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":15015,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":15110,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":15506,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":15739,"length":4,"messageText":"Parameter 'code' implicitly has an 'any' type.","category":1,"code":7006},{"start":15854,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":17440,"length":3,"messageText":"Parameter 'err' implicitly has an 'any' type.","category":1,"code":7006},{"start":23723,"length":10,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":31354,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[163,[{"start":3831,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[165,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[166,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[168,[{"start":102,"length":19,"messageText":"Cannot find module '@sinclair/typebox' or its corresponding type declarations.","category":1,"code":2307},{"start":150,"length":13,"messageText":"Cannot find module 'node:crypto' or its corresponding type declarations.","category":1,"code":2307},{"start":185,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":213,"length":11,"messageText":"Cannot find module 'node:path' or its corresponding type declarations.","category":1,"code":2307}]],[171,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":21771,"length":4,"messageText":"Parameter 'line' implicitly has an 'any' type.","category":1,"code":7006},{"start":21937,"length":5,"messageText":"Parameter 'entry' implicitly has an 'any' type.","category":1,"code":7006},{"start":26393,"length":4,"messageText":"Parameter 'name' implicitly has an 'any' type.","category":1,"code":7006},{"start":26433,"length":4,"messageText":"Parameter 'name' implicitly has an 'any' type.","category":1,"code":7006}]],[172,[{"start":21,"length":16,"messageText":"Cannot find module 'better-sqlite3' or its corresponding type declarations.","category":1,"code":2307},{"start":54,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":77,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":100,"length":4,"messageText":"Cannot find module 'os' or its corresponding type declarations.","category":1,"code":2307}]],[173,[{"start":15,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":38,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307},{"start":99,"length":11,"messageText":"Cannot find module 'node:http' or its corresponding type declarations.","category":1,"code":2307},{"start":1726,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1792,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1825,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":1903,"length":6,"messageText":"Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580},{"start":21307,"length":7,"messageText":"Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.","category":1,"code":2580}]],[174,[{"start":644,"length":8,"messageText":"Cannot find module 'crypto' or its corresponding type declarations.","category":1,"code":2307}]],[175,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]],[176,[{"start":172,"length":12,"messageText":"Cannot find module 'micromatch' or its corresponding type declarations.","category":1,"code":2307}]],[177,[{"start":20,"length":4,"messageText":"Cannot find module 'fs' or its corresponding type declarations.","category":1,"code":2307},{"start":48,"length":6,"messageText":"Cannot find module 'path' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[145,149,155,147,158,150,160,163,162,148,156,151,159,144,146,74,75,76,127,108,134,79,78,119,120,121,83,82,81,110,116,175,89,88,67,93,85,125,71,165,70,66,133,135,131,139,137,157,138,129,136,114,77,73,130,103,69,104,91,68,86,122,161,87,90,107,106,109,113,111,118,124,123,117,112,101,142,105,143,173,72,174,172,169,95,170,141,171,128,140,132,152,154,99,100,96,97,98,164,167,168,166,92,80,84,153,65,176,115,102,126,177,94],"version":"5.9.3"}
package/ui/src/App.tsx ADDED
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom';
3
+ import { AuthProvider } from './context/auth';
4
+ import { ThemeProvider } from './context/theme';
5
+ import { ProtectedRoute } from './components/ProtectedRoute';
6
+ import { Shell } from './components/Shell';
7
+ import { LoginPage } from './pages/LoginPage';
8
+ import { OverviewPage } from './pages/OverviewPage';
9
+ import { SamplesPage } from './pages/SamplesPage';
10
+ import { ThinkingModelsPage } from './pages/ThinkingModelsPage';
11
+ import { EvolutionPage } from './pages/EvolutionPage';
12
+ import { FeedbackPage } from './pages/FeedbackPage';
13
+ import { GateMonitorPage } from './pages/GateMonitorPage';
14
+
15
+ function AppRoutes() {
16
+ return (
17
+ <Shell>
18
+ <Routes>
19
+ <Route path="/" element={<Navigate to="/overview" replace />} />
20
+ <Route path="/overview" element={<OverviewPage />} />
21
+ <Route path="/evolution" element={<EvolutionPage />} />
22
+ <Route path="/samples" element={<SamplesPage />} />
23
+ <Route path="/thinking-models" element={<ThinkingModelsPage />} />
24
+ <Route path="/feedback" element={<FeedbackPage />} />
25
+ <Route path="/gate" element={<GateMonitorPage />} />
26
+ <Route path="*" element={<Navigate to="/overview" replace />} />
27
+ </Routes>
28
+ </Shell>
29
+ );
30
+ }
31
+
32
+ export default function App() {
33
+ return (
34
+ <BrowserRouter>
35
+ <ThemeProvider>
36
+ <AuthProvider>
37
+ <Routes>
38
+ <Route path="/login" element={<LoginPage />} />
39
+ <Route path="/*" element={<ProtectedRoute><AppRoutes /></ProtectedRoute>} />
40
+ </Routes>
41
+ </AuthProvider>
42
+ </ThemeProvider>
43
+ </BrowserRouter>
44
+ );
45
+ }
package/ui/src/api.ts ADDED
@@ -0,0 +1,216 @@
1
+ import type {
2
+ OverviewResponse,
3
+ SampleDetailResponse,
4
+ SamplesResponse,
5
+ ThinkingModelDetailResponse,
6
+ ThinkingOverviewResponse,
7
+ EvolutionTasksResponse,
8
+ EvolutionEventsResponse,
9
+ EvolutionTraceResponse,
10
+ EvolutionStatsResponse,
11
+ OverviewHealthResponse,
12
+ EvolutionPrinciplesResponse,
13
+ FeedbackGfiResponse,
14
+ EmpathyEvent,
15
+ FeedbackGateBlock,
16
+ GateStatsResponse,
17
+ GateBlockItem,
18
+ } from './types';
19
+
20
+ const GATEWAY_TOKEN_KEY = 'pd_gateway_token';
21
+ const OPENCLAW_SETTINGS_KEY = 'openclaw.control.settings.v1';
22
+
23
+ /**
24
+ * 从 OpenClaw 主控面板的设置中读取 token
25
+ */
26
+ function getOpenClawToken(): string | null {
27
+ try {
28
+ const raw = localStorage.getItem(OPENCLAW_SETTINGS_KEY);
29
+ if (!raw) return null;
30
+ const settings = JSON.parse(raw);
31
+ // OpenClaw 存储 token 在 settings.token 或 settings.gatewayUrl 的 hash 中
32
+ return settings?.token || null;
33
+ } catch {
34
+ return null;
35
+ }
36
+ }
37
+
38
+ /**
39
+ * 初始化 Gateway Token
40
+ * 1. 优先从 URL 参数 ?token=xxx 获取
41
+ * 2. 其次从 PD 自己的 localStorage 获取
42
+ * 3. 最后从 OpenClaw 主控面板的设置中获取(共享认证)
43
+ */
44
+ export function initGatewayToken(): string | null {
45
+ // 1. 尝试从 URL 参数获取
46
+ const urlParams = new URLSearchParams(window.location.search);
47
+ const urlToken = urlParams.get('token');
48
+ if (urlToken) {
49
+ localStorage.setItem(GATEWAY_TOKEN_KEY, urlToken);
50
+ // 清理 URL 中的 token 参数(安全考虑)
51
+ urlParams.delete('token');
52
+ const newUrl = urlParams.toString()
53
+ ? `${window.location.pathname}?${urlParams.toString()}`
54
+ : window.location.pathname;
55
+ window.history.replaceState({}, '', newUrl);
56
+ return urlToken;
57
+ }
58
+
59
+ // 2. 从 PD 自己的 localStorage 获取
60
+ const pdToken = localStorage.getItem(GATEWAY_TOKEN_KEY);
61
+ if (pdToken) return pdToken;
62
+
63
+ // 3. 尝试从 OpenClaw 主控面板共享
64
+ const openclawToken = getOpenClawToken();
65
+ if (openclawToken) {
66
+ // 缓存到 PD 的 localStorage
67
+ localStorage.setItem(GATEWAY_TOKEN_KEY, openclawToken);
68
+ return openclawToken;
69
+ }
70
+
71
+ return null;
72
+ }
73
+
74
+ /**
75
+ * 获取当前 Gateway Token
76
+ * 优先从 PD localStorage,其次从 OpenClaw 共享
77
+ */
78
+ export function getGatewayToken(): string | null {
79
+ const pdToken = localStorage.getItem(GATEWAY_TOKEN_KEY);
80
+ if (pdToken) return pdToken;
81
+ return getOpenClawToken();
82
+ }
83
+
84
+ /**
85
+ * 设置 Gateway Token
86
+ */
87
+ export function setGatewayToken(token: string): void {
88
+ localStorage.setItem(GATEWAY_TOKEN_KEY, token);
89
+ }
90
+
91
+ /**
92
+ * 清除 Gateway Token
93
+ */
94
+ export function clearGatewayToken(): void {
95
+ localStorage.removeItem(GATEWAY_TOKEN_KEY);
96
+ }
97
+
98
+ async function requestJson<T>(path: string, init?: RequestInit): Promise<T> {
99
+ const hasBody = init?.body !== undefined;
100
+ const token = getGatewayToken();
101
+
102
+ const headers: Record<string, string> = {
103
+ ...(hasBody ? { 'Content-Type': 'application/json' } : {}),
104
+ ...(init?.headers as Record<string, string> ?? {}),
105
+ };
106
+
107
+ // 添加 Authorization header
108
+ if (token) {
109
+ headers['Authorization'] = `Bearer ${token}`;
110
+ }
111
+
112
+ const response = await fetch(path, {
113
+ credentials: 'same-origin',
114
+ headers,
115
+ ...init,
116
+ });
117
+
118
+ if (!response.ok) {
119
+ const message = await response.text();
120
+ throw new Error(message || `Request failed: ${response.status}`);
121
+ }
122
+
123
+ return response.json() as Promise<T>;
124
+ }
125
+
126
+ export const api = {
127
+ getOverview(days?: number): Promise<OverviewResponse> {
128
+ const params = days ? `?days=${days}` : '';
129
+ return requestJson(`/plugins/principles/api/overview${params}`);
130
+ },
131
+ getCentralOverview(days?: number): Promise<OverviewResponse & { centralInfo?: { workspaceCount: number; enabledWorkspaceCount: number; workspaces: string[]; enabledWorkspaces: string[] } }> {
132
+ const params = days ? `?days=${days}` : '';
133
+ return requestJson(`/plugins/principles/api/central/overview${params}`);
134
+ },
135
+ syncCentral(): Promise<{ synced: Record<string, number>; timestamp: string }> {
136
+ return requestJson('/plugins/principles/api/central/sync', { method: 'POST' });
137
+ },
138
+ getWorkspaceConfigs(): Promise<{
139
+ configs: Array<{ workspaceName: string; enabled: boolean; displayName: string | null; syncEnabled: boolean }>;
140
+ workspaces: Array<{ name: string; path: string; lastSync: string | null; config: null | { workspaceName: string; enabled: boolean; displayName: string | null; syncEnabled: boolean } }>;
141
+ }> {
142
+ return requestJson('/plugins/principles/api/central/workspaces');
143
+ },
144
+ updateWorkspaceConfig(workspaceName: string, updates: { enabled?: boolean; displayName?: string | null; syncEnabled?: boolean }): Promise<unknown> {
145
+ return requestJson(`/plugins/principles/api/central/workspaces/${encodeURIComponent(workspaceName)}`, {
146
+ method: 'PATCH',
147
+ body: JSON.stringify(updates),
148
+ });
149
+ },
150
+ addCustomWorkspace(name: string, path: string): Promise<{ success: boolean; workspace: string }> {
151
+ return requestJson('/plugins/principles/api/central/workspaces', {
152
+ method: 'POST',
153
+ body: JSON.stringify({ name, path }),
154
+ });
155
+ },
156
+ listSamples(search: URLSearchParams): Promise<SamplesResponse> {
157
+ return requestJson(`/plugins/principles/api/samples?${search.toString()}`);
158
+ },
159
+ getSampleDetail(sampleId: string): Promise<SampleDetailResponse> {
160
+ return requestJson(`/plugins/principles/api/samples/${encodeURIComponent(sampleId)}`);
161
+ },
162
+ reviewSample(sampleId: string, decision: 'approved' | 'rejected', note?: string): Promise<unknown> {
163
+ return requestJson(`/plugins/principles/api/samples/${encodeURIComponent(sampleId)}/review`, {
164
+ method: 'POST',
165
+ body: JSON.stringify({ decision, note }),
166
+ });
167
+ },
168
+ getThinkingOverview(): Promise<ThinkingOverviewResponse> {
169
+ return requestJson('/plugins/principles/api/thinking');
170
+ },
171
+ getThinkingModelDetail(modelId: string): Promise<ThinkingModelDetailResponse> {
172
+ return requestJson(`/plugins/principles/api/thinking/models/${encodeURIComponent(modelId)}`);
173
+ },
174
+ exportCorrections(mode: 'raw' | 'redacted'): string {
175
+ return `/plugins/principles/api/export/corrections?mode=${mode}`;
176
+ },
177
+ // Evolution API
178
+ getEvolutionTasks(search: URLSearchParams): Promise<EvolutionTasksResponse> {
179
+ return requestJson(`/plugins/principles/api/evolution/tasks?${search.toString()}`);
180
+ },
181
+ getEvolutionEvents(search: URLSearchParams): Promise<EvolutionEventsResponse> {
182
+ return requestJson(`/plugins/principles/api/evolution/events?${search.toString()}`);
183
+ },
184
+ getEvolutionTrace(traceId: string): Promise<EvolutionTraceResponse> {
185
+ return requestJson(`/plugins/principles/api/evolution/trace/${encodeURIComponent(traceId)}`);
186
+ },
187
+ getEvolutionStats(days?: number): Promise<EvolutionStatsResponse> {
188
+ const params = days ? `?days=${days}` : '';
189
+ return requestJson(`/plugins/principles/api/evolution/stats${params}`);
190
+ },
191
+ // Health & Circuit API (Phase 5)
192
+ getOverviewHealth(): Promise<OverviewHealthResponse> {
193
+ return requestJson('/plugins/principles/api/overview/health');
194
+ },
195
+ getEvolutionPrinciples(): Promise<EvolutionPrinciplesResponse> {
196
+ return requestJson('/plugins/principles/api/evolution/principles');
197
+ },
198
+ getFeedbackGfi(): Promise<FeedbackGfiResponse> {
199
+ return requestJson('/plugins/principles/api/feedback/gfi');
200
+ },
201
+ getEmpathyEvents(limit?: number): Promise<EmpathyEvent[]> {
202
+ const params = limit ? `?limit=${limit}` : '';
203
+ return requestJson(`/plugins/principles/api/feedback/empathy-events${params}`);
204
+ },
205
+ getFeedbackGateBlocks(limit?: number): Promise<FeedbackGateBlock[]> {
206
+ const params = limit ? `?limit=${limit}` : '';
207
+ return requestJson(`/plugins/principles/api/feedback/gate-blocks${params}`);
208
+ },
209
+ getGateStats(): Promise<GateStatsResponse> {
210
+ return requestJson('/plugins/principles/api/gate/stats');
211
+ },
212
+ getGateBlocks(limit?: number): Promise<GateBlockItem[]> {
213
+ const params = limit ? `?limit=${limit}` : '';
214
+ return requestJson(`/plugins/principles/api/gate/blocks${params}`);
215
+ },
216
+ };