oh-my-knowledge 1.0.0-beta.13 → 1.0.0-beta.15

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 (1551) hide show
  1. package/README.md +25 -142
  2. package/README.zh.md +25 -142
  3. package/dist/assets/agent-skills/omk/SKILL.md +97 -46
  4. package/dist/assets/agent-skills/omk/references/commands.md +392 -122
  5. package/dist/assets/agent-skills/omk/references/knowledge-maintenance.md +33 -0
  6. package/dist/assets/agent-skills/omk/references/knowledge-reuse.md +69 -0
  7. package/dist/cli/commands/agents.d.ts +2 -0
  8. package/dist/cli/commands/agents.js +68 -33
  9. package/dist/cli/commands/doctor.js +17 -11
  10. package/dist/cli/commands/eval/gold/compare.js +1 -1
  11. package/dist/cli/commands/eval/index.d.ts +0 -1
  12. package/dist/cli/commands/eval/index.js +4 -26
  13. package/dist/cli/commands/evolve.js +6 -44
  14. package/dist/cli/commands/init.js +4 -7
  15. package/dist/cli/commands/install.d.ts +1 -1
  16. package/dist/cli/commands/install.js +50 -132
  17. package/dist/cli/commands/know/extract.d.ts +34 -0
  18. package/dist/cli/commands/know/extract.js +275 -0
  19. package/dist/cli/commands/know/index.d.ts +8 -0
  20. package/dist/cli/commands/know/index.js +16 -0
  21. package/dist/cli/commands/know/list.d.ts +10 -0
  22. package/dist/cli/commands/know/list.js +10 -0
  23. package/dist/cli/commands/know/migrate.d.ts +23 -0
  24. package/dist/cli/commands/know/migrate.js +131 -0
  25. package/dist/cli/commands/know/retrieve.d.ts +20 -0
  26. package/dist/cli/commands/know/retrieve.js +38 -0
  27. package/dist/cli/commands/know/review.d.ts +24 -0
  28. package/dist/cli/commands/know/review.js +98 -0
  29. package/dist/cli/commands/know/revise.d.ts +21 -0
  30. package/dist/cli/commands/know/revise.js +63 -0
  31. package/dist/cli/commands/know/runs.d.ts +28 -0
  32. package/dist/cli/commands/know/runs.js +115 -0
  33. package/dist/cli/commands/know/show.d.ts +24 -0
  34. package/dist/cli/commands/know/show.js +68 -0
  35. package/dist/cli/commands/know/sources.d.ts +20 -0
  36. package/dist/cli/commands/know/sources.js +98 -0
  37. package/dist/cli/commands/observe/entity-links.d.ts +37 -0
  38. package/dist/cli/commands/observe/entity-links.js +240 -0
  39. package/dist/cli/commands/observe/inbox.js +8 -6
  40. package/dist/cli/commands/observe/index.d.ts +1 -2
  41. package/dist/cli/commands/observe/index.js +9 -71
  42. package/dist/cli/commands/observe/ingest.d.ts +1 -1
  43. package/dist/cli/commands/observe/ingest.js +5 -6
  44. package/dist/cli/commands/observe/show.js +1 -1
  45. package/dist/cli/commands/sample.js +1 -1
  46. package/dist/cli/commands/studio.d.ts +2 -0
  47. package/dist/cli/commands/studio.js +41 -10
  48. package/dist/cli/index.js +4 -5
  49. package/dist/cli/lib/cell-format.d.ts +1 -5
  50. package/dist/cli/lib/cell-format.js +1 -5
  51. package/dist/cli/lib/entity-link-output.d.ts +450 -0
  52. package/dist/cli/lib/entity-link-output.js +79 -0
  53. package/dist/cli/lib/eval-output.js +0 -5
  54. package/dist/cli/lib/generation-failure-hint.js +0 -21
  55. package/dist/cli/lib/i18n-dict/common.d.ts +1 -1
  56. package/dist/cli/lib/i18n-dict/common.js +12 -8
  57. package/dist/cli/lib/i18n-dict/evolve.d.ts +1 -1
  58. package/dist/cli/lib/i18n-dict/evolve.js +2 -6
  59. package/dist/cli/lib/i18n-dict/gen.d.ts +1 -1
  60. package/dist/cli/lib/i18n-dict/gen.js +8 -20
  61. package/dist/cli/lib/i18n-dict/install.d.ts +1 -1
  62. package/dist/cli/lib/i18n-dict/install.js +4 -20
  63. package/dist/cli/lib/i18n-dict/run.d.ts +1 -1
  64. package/dist/cli/lib/i18n-dict/run.js +4 -24
  65. package/dist/cli/lib/i18n-dict.d.ts +1 -4
  66. package/dist/cli/lib/i18n-dict.js +0 -6
  67. package/dist/cli/lib/i18n.js +1 -1
  68. package/dist/cli/lib/know-command.d.ts +60 -0
  69. package/dist/cli/lib/know-command.js +198 -0
  70. package/dist/cli/lib/knowledge-output.d.ts +4 -0
  71. package/dist/cli/lib/knowledge-output.js +39 -0
  72. package/dist/cli/lib/knowledge-review-actor.d.ts +3 -0
  73. package/dist/cli/lib/knowledge-review-actor.js +8 -0
  74. package/dist/cli/lib/prepare-evaluation.js +2 -2
  75. package/dist/cli/lib/progress.d.ts +1 -1
  76. package/dist/cli/lib/resolve-skill-input.d.ts +0 -1
  77. package/dist/cli/lib/run-core-evaluation.js +1 -13
  78. package/dist/cli/lib/runtime-defaults.d.ts +2 -6
  79. package/dist/cli/lib/runtime-defaults.js +14 -48
  80. package/dist/cli/lib/update-check.js +1 -1
  81. package/dist/cli/oclif/base-command.d.ts +2 -1
  82. package/dist/cli/oclif/base-command.js +21 -3
  83. package/dist/cli/oclif/run.js +2 -1
  84. package/dist/cli/runtime/entity-capture.d.ts +10 -0
  85. package/dist/cli/runtime/entity-capture.js +15 -0
  86. package/dist/dsh-plugin/cleanup.d.ts +3 -0
  87. package/dist/dsh-plugin/cleanup.js +22 -0
  88. package/dist/dsh-plugin/core-adapter.d.ts +2 -0
  89. package/dist/dsh-plugin/core-adapter.js +27 -35
  90. package/dist/dsh-plugin/core-command.js +2 -9
  91. package/dist/dsh-plugin/core-protocol.d.ts +1 -1
  92. package/dist/dsh-plugin/core-protocol.js +1 -1
  93. package/dist/dsh-plugin/host-executor.js +65 -50
  94. package/dist/dsh-plugin/index.js +34 -10
  95. package/dist/dsh-plugin/observe.d.ts +2 -2
  96. package/dist/dsh-plugin/observe.js +3 -3
  97. package/dist/dsh-plugin/protocol.js +2 -2
  98. package/dist/dsh-plugin/resources.d.ts +86 -0
  99. package/dist/dsh-plugin/resources.js +392 -0
  100. package/dist/dsh-plugin/trace-adapter.d.ts +2 -2
  101. package/dist/dsh-plugin/trace-adapter.js +2 -2
  102. package/dist/eval-core/analysis/bootstrap.d.ts +1 -1
  103. package/dist/eval-core/analysis/builtin-composite.js +9 -5
  104. package/dist/eval-core/analysis/builtin-registry.js +4 -4
  105. package/dist/eval-core/analysis/builtin-schemas.d.ts +1 -0
  106. package/dist/eval-core/analysis/builtin-schemas.js +10 -5
  107. package/dist/eval-core/budget/index.js +5 -42
  108. package/dist/eval-core/compiler/index.d.ts +1 -3
  109. package/dist/eval-core/compiler/index.js +8 -889
  110. package/dist/eval-core/compiler/preparation/capabilities.d.ts +8 -0
  111. package/dist/eval-core/compiler/preparation/capabilities.js +175 -0
  112. package/dist/eval-core/compiler/preparation/definition.d.ts +5 -0
  113. package/dist/eval-core/compiler/preparation/definition.js +105 -0
  114. package/dist/eval-core/compiler/preparation/extensions.d.ts +11 -0
  115. package/dist/eval-core/compiler/preparation/extensions.js +74 -0
  116. package/dist/eval-core/compiler/preparation/runtimes.d.ts +7 -0
  117. package/dist/eval-core/compiler/preparation/runtimes.js +433 -0
  118. package/dist/eval-core/compiler/preparation/schemas.d.ts +9 -0
  119. package/dist/eval-core/compiler/preparation/schemas.js +122 -0
  120. package/dist/eval-core/compiler/validation/analysis.d.ts +8 -0
  121. package/dist/eval-core/compiler/validation/analysis.js +304 -0
  122. package/dist/eval-core/compiler/validation/bindings.d.ts +4 -0
  123. package/dist/eval-core/compiler/validation/bindings.js +110 -0
  124. package/dist/eval-core/compiler/validation/policy.d.ts +2 -0
  125. package/dist/eval-core/compiler/validation/policy.js +56 -0
  126. package/dist/eval-core/compiler/validation/sampling.d.ts +2 -0
  127. package/dist/eval-core/compiler/validation/sampling.js +140 -0
  128. package/dist/eval-core/compiler/validation/shared.d.ts +3 -0
  129. package/dist/eval-core/compiler/validation/shared.js +19 -0
  130. package/dist/eval-core/compiler/validation.d.ts +2 -6
  131. package/dist/eval-core/compiler/validation.js +7 -599
  132. package/dist/eval-core/contracts/analysis-input-matching.js +2 -2
  133. package/dist/eval-core/contracts/budget.d.ts +18 -0
  134. package/dist/eval-core/contracts/budget.js +92 -82
  135. package/dist/eval-core/contracts/evaluation-bundle.d.ts +2 -1
  136. package/dist/eval-core/evaluation/bundle.d.ts +4 -0
  137. package/dist/eval-core/evaluation/bundle.js +96 -0
  138. package/dist/eval-core/evaluation/coordinate.d.ts +34 -0
  139. package/dist/eval-core/evaluation/coordinate.js +776 -0
  140. package/dist/eval-core/evaluation/preparation.d.ts +6 -0
  141. package/dist/eval-core/evaluation/preparation.js +74 -0
  142. package/dist/eval-core/evaluation/runtime-state.d.ts +34 -0
  143. package/dist/eval-core/evaluation/runtime.js +8 -931
  144. package/dist/eval-core/execution/bundle.d.ts +4 -0
  145. package/dist/eval-core/execution/bundle.js +90 -0
  146. package/dist/eval-core/execution/coordinate.d.ts +27 -0
  147. package/dist/eval-core/execution/coordinate.js +669 -0
  148. package/dist/eval-core/execution/preparation.d.ts +4 -0
  149. package/dist/eval-core/execution/preparation.js +104 -0
  150. package/dist/eval-core/execution/runtime-state.d.ts +40 -0
  151. package/dist/eval-core/execution/runtime.js +4 -857
  152. package/dist/eval-core/verify/evaluation-bundle.js +2 -1
  153. package/dist/eval-runtime/adapters/json-executor.d.ts +3 -3
  154. package/dist/eval-runtime/adapters/json-executor.js +36 -11
  155. package/dist/eval-runtime/conformance/cache.d.ts +1 -1
  156. package/dist/eval-runtime/conformance/content-store.d.ts +1 -1
  157. package/dist/eval-runtime/conformance/executor.js +2 -2
  158. package/dist/eval-runtime/conformance/workspace-provider.d.ts +1 -1
  159. package/dist/eval-runtime/conformance/workspace-provider.js +1 -1
  160. package/dist/eval-runtime/content/executed-store.d.ts +48 -0
  161. package/dist/eval-runtime/content/executed-store.js +257 -0
  162. package/dist/eval-runtime/content/infrastructure.d.ts +51 -0
  163. package/dist/eval-runtime/content/infrastructure.js +89 -0
  164. package/dist/eval-runtime/content/result-store.d.ts +45 -0
  165. package/dist/eval-runtime/content/result-store.js +249 -0
  166. package/dist/eval-runtime/debug/evaluator.d.ts +26 -0
  167. package/dist/eval-runtime/debug/evaluator.js +65 -0
  168. package/dist/eval-runtime/debug/rubric.d.ts +29 -0
  169. package/dist/eval-runtime/debug/rubric.js +92 -0
  170. package/dist/eval-runtime/evaluate.d.ts +1 -1
  171. package/dist/eval-runtime/evaluate.js +1 -1
  172. package/dist/eval-runtime/evaluation/capture-evaluators.d.ts +1 -1
  173. package/dist/eval-runtime/evaluation/capture-input.d.ts +4 -4
  174. package/dist/eval-runtime/evaluation/capture-input.js +4 -4
  175. package/dist/eval-runtime/evaluation/conformance.js +1 -1
  176. package/dist/eval-runtime/evaluation/contracts.d.ts +8 -6
  177. package/dist/eval-runtime/evaluation/definition.js +7 -7
  178. package/dist/eval-runtime/evaluation/prepare.js +3 -3
  179. package/dist/eval-runtime/execution/assembly.d.ts +35 -0
  180. package/dist/eval-runtime/execution/assembly.js +111 -0
  181. package/dist/eval-runtime/execution/clock.d.ts +3 -0
  182. package/dist/eval-runtime/execution/controls.d.ts +6 -0
  183. package/dist/eval-runtime/execution/controls.js +55 -0
  184. package/dist/eval-runtime/execution/lifecycle.d.ts +60 -0
  185. package/dist/eval-runtime/execution/lifecycle.js +183 -0
  186. package/dist/eval-runtime/execution/provider.d.ts +39 -0
  187. package/dist/eval-runtime/execution/provider.js +13 -0
  188. package/dist/eval-runtime/execution/run.d.ts +47 -0
  189. package/dist/eval-runtime/execution/run.js +116 -0
  190. package/dist/eval-runtime/index.d.ts +18 -18
  191. package/dist/eval-runtime/index.js +7 -7
  192. package/dist/eval-runtime/judges/rubric-judge.d.ts +1 -1
  193. package/dist/eval-runtime/judges/rubric-kit.d.ts +1 -1
  194. package/dist/eval-runtime/resources/mcp-config.d.ts +48 -0
  195. package/dist/eval-runtime/resources/mcp-config.js +91 -0
  196. package/dist/eval-runtime/resources/mock-interception.d.ts +65 -0
  197. package/dist/eval-runtime/resources/mock-interception.js +110 -0
  198. package/dist/eval-runtime/resources/tool-policy.js +67 -0
  199. package/dist/eval-runtime/resources/workspace.d.ts +49 -0
  200. package/dist/eval-runtime/resources/workspace.js +85 -0
  201. package/dist/eval-runtime/series.js +1 -1
  202. package/dist/eval-workflows/artifact-store/overlay-store.js +12 -10
  203. package/dist/eval-workflows/artifact-store/run-id.js +19 -0
  204. package/dist/eval-workflows/gold/dataset.js +15 -1
  205. package/dist/eval-workflows/hosts/adapters/codex/cli.d.ts +1 -1
  206. package/dist/eval-workflows/hosts/adapters/codex/cli.js +1 -1
  207. package/dist/eval-workflows/hosts/adapters/codex/environment.d.ts +1 -2
  208. package/dist/eval-workflows/hosts/adapters/codex/environment.js +1 -1
  209. package/dist/eval-workflows/hosts/adapters/codex/reference-executor.d.ts +1 -1
  210. package/dist/eval-workflows/hosts/adapters/codex/reference-executor.js +1 -1
  211. package/dist/eval-workflows/hosts/adapters/codex/sdk.d.ts +1 -1
  212. package/dist/eval-workflows/hosts/adapters/codex/sdk.js +1 -1
  213. package/dist/eval-workflows/hosts/adapters/custom/executor.js +1 -1
  214. package/dist/eval-workflows/hosts/adapters/shared/content-identity.d.ts +1 -1
  215. package/dist/eval-workflows/hosts/adapters/shared/content-identity.js +1 -1
  216. package/dist/eval-workflows/hosts/application.d.ts +4 -10
  217. package/dist/eval-workflows/hosts/application.js +4 -19
  218. package/dist/eval-workflows/hosts/carrier-measurement.d.ts +18 -0
  219. package/dist/eval-workflows/hosts/carrier-measurement.js +249 -0
  220. package/dist/eval-workflows/hosts/composition/evolution-evaluation.js +0 -1
  221. package/dist/eval-workflows/hosts/composition/judge-provider-identity.d.ts +2 -1
  222. package/dist/eval-workflows/hosts/composition/judge-provider-identity.js +8 -2
  223. package/dist/eval-workflows/hosts/composition/node-preflight.js +2 -2
  224. package/dist/eval-workflows/hosts/composition/node-runtime.d.ts +1 -1
  225. package/dist/eval-workflows/hosts/composition/node-runtime.js +17 -33
  226. package/dist/eval-workflows/hosts/composition/registered-runtime.d.ts +1 -1
  227. package/dist/eval-workflows/hosts/composition/runtime-registry.d.ts +1 -13
  228. package/dist/eval-workflows/hosts/composition/runtime-registry.js +2 -17
  229. package/dist/eval-workflows/hosts/composition/runtime.d.ts +2 -2
  230. package/dist/eval-workflows/hosts/composition/runtime.js +2 -2
  231. package/dist/eval-workflows/hosts/input-resolution/node-cli-evaluation-resolver.js +27 -697
  232. package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.d.ts +21 -0
  233. package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.js +187 -0
  234. package/dist/eval-workflows/hosts/input-resolution/resolution-execution.d.ts +16 -0
  235. package/dist/eval-workflows/hosts/input-resolution/resolution-execution.js +201 -0
  236. package/dist/eval-workflows/hosts/input-resolution/resolution-resources.d.ts +29 -0
  237. package/dist/eval-workflows/hosts/input-resolution/resolution-resources.js +193 -0
  238. package/dist/eval-workflows/hosts/input-resolution/resolution-samples.d.ts +22 -0
  239. package/dist/eval-workflows/hosts/input-resolution/resolution-samples.js +130 -0
  240. package/dist/eval-workflows/hosts/local-task/application.js +1 -1
  241. package/dist/eval-workflows/hosts/local-task/executor.d.ts +1 -1
  242. package/dist/eval-workflows/hosts/local-task/workspace.d.ts +1 -1
  243. package/dist/eval-workflows/hosts/node-environment.d.ts +3 -0
  244. package/dist/eval-workflows/hosts/node-environment.js +94 -0
  245. package/dist/eval-workflows/hosts/resource-leases/types.d.ts +1 -1
  246. package/dist/eval-workflows/hosts/resource-leases/types.js +1 -1
  247. package/dist/eval-workflows/input-compilation/compile/binding.d.ts +3 -0
  248. package/dist/eval-workflows/input-compilation/compile/binding.js +190 -0
  249. package/dist/eval-workflows/input-compilation/compile/definition.d.ts +3 -0
  250. package/dist/eval-workflows/input-compilation/compile/definition.js +280 -0
  251. package/dist/eval-workflows/input-compilation/compile/policy.d.ts +4 -0
  252. package/dist/eval-workflows/input-compilation/compile/policy.js +155 -0
  253. package/dist/eval-workflows/input-compilation/compile/resources.d.ts +7 -0
  254. package/dist/eval-workflows/input-compilation/compile/resources.js +346 -0
  255. package/dist/eval-workflows/input-compilation/compile/values.d.ts +5 -0
  256. package/dist/eval-workflows/input-compilation/compile/values.js +95 -0
  257. package/dist/eval-workflows/input-compilation/compile.js +8 -1055
  258. package/dist/eval-workflows/input-compilation/parse.js +0 -6
  259. package/dist/eval-workflows/input-compilation/registry.d.ts +1 -1
  260. package/dist/eval-workflows/input-compilation/registry.js +0 -3
  261. package/dist/eval-workflows/input-compilation/types.d.ts +3 -4
  262. package/dist/eval-workflows/input-compilation/types.js +2 -2
  263. package/dist/eval-workflows/inputs/contracts/config-schema.js +3 -3
  264. package/dist/eval-workflows/inputs/contracts/sample.d.ts +2 -2
  265. package/dist/eval-workflows/inputs/contracts/variant.d.ts +1 -1
  266. package/dist/eval-workflows/inputs/eval-samples.d.ts +0 -4
  267. package/dist/eval-workflows/inputs/eval-samples.js +0 -11
  268. package/dist/eval-workflows/instruments/contracts/config.d.ts +1 -1
  269. package/dist/eval-workflows/instruments/prompts/judge-prompts.js +1 -1
  270. package/dist/eval-workflows/measurement/analysis/composite-node-contract.d.ts +1 -0
  271. package/dist/eval-workflows/measurement/analysis/composite-node-contract.js +1 -0
  272. package/dist/eval-workflows/orchestration/artifact-graph-persistence.js +3 -2
  273. package/dist/eval-workflows/orchestration/evaluation-service.d.ts +2 -0
  274. package/dist/eval-workflows/orchestration/evaluation-service.js +5 -1
  275. package/dist/eval-workflows/orchestration/measurement-design.js +7 -2
  276. package/dist/eval-workflows/orchestration/orchestration.d.ts +1 -1
  277. package/dist/eval-workflows/orchestration/workflow.d.ts +2 -2
  278. package/dist/eval-workflows/orchestration/workflow.js +1 -1
  279. package/dist/eval-workflows/projections/artifact-graph.d.ts +1 -1
  280. package/dist/eval-workflows/projections/artifact-graph.js +1 -1
  281. package/dist/eval-workflows/projections/carrier-measurement.d.ts +72 -0
  282. package/dist/eval-workflows/projections/contracts.d.ts +1 -47
  283. package/dist/eval-workflows/projections/contracts.js +0 -1
  284. package/dist/eval-workflows/projections/index.d.ts +0 -1
  285. package/dist/eval-workflows/projections/index.js +0 -1
  286. package/dist/eval-workflows/resume-disposition/contracts.d.ts +0 -1
  287. package/dist/eval-workflows/sample-generation/generator.d.ts +1 -1
  288. package/dist/eval-workflows/sample-generation/generator.js +7 -8
  289. package/dist/eval-workflows/sample-generation/trace-drafts.js +2 -2
  290. package/dist/executors/archive.d.ts +3 -0
  291. package/dist/executors/archive.js +18 -0
  292. package/dist/executors/contracts/archive.d.ts +23 -0
  293. package/dist/executors/contracts/mock.d.ts +1 -2
  294. package/dist/executors/contracts/openai-chat.d.ts +3 -0
  295. package/dist/executors/contracts/openai-chat.js +16 -0
  296. package/dist/executors/contracts/ports.d.ts +17 -31
  297. package/dist/executors/contracts/result.d.ts +11 -0
  298. package/dist/executors/contracts/token-budget.d.ts +25 -0
  299. package/dist/executors/contracts/token-budget.js +29 -0
  300. package/dist/executors/contracts/tool-call-status.d.ts +8 -0
  301. package/dist/executors/contracts/tool-call-status.js +71 -0
  302. package/dist/executors/contracts/tool-identity.d.ts +21 -0
  303. package/dist/executors/contracts/trace-source-kind.d.ts +4 -0
  304. package/dist/executors/contracts/trace-source-kind.js +5 -0
  305. package/dist/executors/core/capabilities.d.ts +5 -1
  306. package/dist/executors/core/capabilities.js +30 -3
  307. package/dist/executors/core/diagnostics.d.ts +2 -0
  308. package/dist/executors/core/diagnostics.js +13 -0
  309. package/dist/executors/core/http.d.ts +6 -0
  310. package/dist/executors/core/http.js +46 -1
  311. package/dist/executors/core/optional-dependencies.js +1 -5
  312. package/dist/executors/core/registry.d.ts +8 -56
  313. package/dist/executors/core/registry.js +3 -45
  314. package/dist/executors/core/runtime-fingerprint.js +0 -27
  315. package/dist/executors/core/runtime.d.ts +1 -1
  316. package/dist/executors/core/runtime.js +2 -5
  317. package/dist/executors/core/subprocess.d.ts +2 -2
  318. package/dist/executors/core/subprocess.js +36 -16
  319. package/dist/executors/index.d.ts +7 -4
  320. package/dist/executors/index.js +13 -19
  321. package/dist/executors/mock-runtime/runtime.d.ts +5 -85
  322. package/dist/executors/mock-runtime/runtime.js +77 -335
  323. package/dist/executors/openai/api.d.ts +4 -1
  324. package/dist/executors/openai/api.js +115 -82
  325. package/dist/executors/openai/archive.d.ts +10 -0
  326. package/dist/executors/openai/archive.js +70 -0
  327. package/dist/executors/openai/codex/archive.d.ts +8 -0
  328. package/dist/executors/openai/codex/archive.js +231 -0
  329. package/dist/executors/openai/codex/cli-arguments.d.ts +1 -0
  330. package/dist/executors/openai/codex/cli-arguments.js +1 -0
  331. package/dist/executors/openai/codex/cli.d.ts +4 -6
  332. package/dist/executors/openai/codex/cli.js +77 -42
  333. package/dist/executors/openai/codex/protocol.d.ts +4 -1
  334. package/dist/executors/openai/codex/protocol.js +12 -4
  335. package/dist/executors/openai/codex/sdk.d.ts +4 -6
  336. package/dist/executors/openai/codex/sdk.js +12 -9
  337. package/dist/executors/openai/codex/trace.js +2 -4
  338. package/dist/executors/openai/request.d.ts +14 -0
  339. package/dist/executors/openai/request.js +8 -0
  340. package/dist/executors/result-validation.js +21 -3
  341. package/dist/executors/script/index.d.ts +1 -1
  342. package/dist/executors/script/index.js +14 -17
  343. package/dist/knowledge/adapters/association-migration.d.ts +41 -0
  344. package/dist/knowledge/adapters/association-migration.js +205 -0
  345. package/dist/knowledge/adapters/association-store.d.ts +21 -0
  346. package/dist/knowledge/adapters/association-store.js +111 -0
  347. package/dist/knowledge/adapters/body-digest.d.ts +5 -0
  348. package/dist/knowledge/adapters/body-digest.js +20 -0
  349. package/dist/knowledge/adapters/conversation-source.d.ts +30 -0
  350. package/dist/knowledge/adapters/conversation-source.js +82 -0
  351. package/dist/knowledge/adapters/durable-publication.d.ts +6 -0
  352. package/dist/knowledge/adapters/durable-publication.js +118 -0
  353. package/dist/knowledge/adapters/entity-link-api-producer.d.ts +31 -0
  354. package/dist/knowledge/adapters/entity-link-api-producer.js +27 -0
  355. package/dist/knowledge/adapters/entity-link-executor.d.ts +51 -0
  356. package/dist/knowledge/adapters/entity-link-executor.js +70 -0
  357. package/dist/knowledge/adapters/entity-link-store.d.ts +20 -0
  358. package/dist/knowledge/adapters/entity-link-store.js +131 -0
  359. package/dist/knowledge/adapters/entity-store.d.ts +14 -0
  360. package/dist/knowledge/adapters/entity-store.js +94 -0
  361. package/dist/knowledge/adapters/generation-executor.d.ts +14 -0
  362. package/dist/knowledge/adapters/generation-executor.js +65 -0
  363. package/dist/knowledge/adapters/generation-host.d.ts +11 -0
  364. package/dist/knowledge/adapters/generation-host.js +36 -0
  365. package/dist/knowledge/adapters/generation-journal-store.d.ts +25 -0
  366. package/dist/knowledge/adapters/generation-journal-store.js +470 -0
  367. package/dist/knowledge/adapters/knowledge-migration.d.ts +65 -0
  368. package/dist/knowledge/adapters/knowledge-migration.js +258 -0
  369. package/dist/knowledge/adapters/knowledge-store.d.ts +16 -0
  370. package/dist/knowledge/adapters/knowledge-store.js +88 -0
  371. package/dist/knowledge/adapters/knowledge-tags.d.ts +13 -0
  372. package/dist/knowledge/adapters/knowledge-tags.js +70 -0
  373. package/dist/knowledge/adapters/library-store.d.ts +14 -0
  374. package/dist/knowledge/adapters/library-store.js +95 -0
  375. package/dist/knowledge/adapters/project-source-reader.d.ts +36 -0
  376. package/dist/knowledge/adapters/project-source-reader.js +269 -0
  377. package/dist/knowledge/adapters/relation-store.d.ts +17 -0
  378. package/dist/knowledge/adapters/relation-store.js +164 -0
  379. package/dist/knowledge/adapters/review-store.d.ts +16 -0
  380. package/dist/knowledge/adapters/review-store.js +89 -0
  381. package/dist/knowledge/adapters/run-store.d.ts +45 -0
  382. package/dist/knowledge/adapters/run-store.js +684 -0
  383. package/dist/knowledge/adapters/source-migration.d.ts +102 -0
  384. package/dist/knowledge/adapters/source-migration.js +774 -0
  385. package/dist/knowledge/adapters/source-review-original.d.ts +8 -0
  386. package/dist/knowledge/adapters/source-review-original.js +24 -0
  387. package/dist/knowledge/adapters/source-review-store.d.ts +16 -0
  388. package/dist/knowledge/adapters/source-review-store.js +134 -0
  389. package/dist/knowledge/adapters/source-store.d.ts +29 -0
  390. package/dist/knowledge/adapters/source-store.js +348 -0
  391. package/dist/knowledge/adapters/source-workspace.d.ts +2 -0
  392. package/dist/knowledge/adapters/source-workspace.js +15 -0
  393. package/dist/knowledge/adapters/storage-state.d.ts +1 -0
  394. package/dist/knowledge/adapters/storage-state.js +9 -0
  395. package/dist/knowledge/adapters/trace-evidence.d.ts +14 -0
  396. package/dist/knowledge/adapters/trace-evidence.js +174 -0
  397. package/dist/knowledge/adapters/trace-source-reader.d.ts +55 -0
  398. package/dist/knowledge/adapters/trace-source-reader.js +252 -0
  399. package/dist/knowledge/adapters/workflow-migration.d.ts +70 -0
  400. package/dist/knowledge/adapters/workflow-migration.js +444 -0
  401. package/dist/knowledge/adapters/workspace-guard.d.ts +44 -0
  402. package/dist/knowledge/adapters/workspace-guard.js +230 -0
  403. package/dist/knowledge/application/application.d.ts +10349 -0
  404. package/dist/knowledge/application/application.js +198 -0
  405. package/dist/knowledge/application/auto-extraction.d.ts +43 -0
  406. package/dist/knowledge/application/auto-extraction.js +51 -0
  407. package/dist/knowledge/application/body-generation.d.ts +5403 -0
  408. package/dist/knowledge/application/body-generation.js +624 -0
  409. package/dist/knowledge/application/entity-catalog.d.ts +86 -0
  410. package/dist/knowledge/application/entity-catalog.js +25 -0
  411. package/dist/knowledge/application/entity-link-source.d.ts +585 -0
  412. package/dist/knowledge/application/entity-link-source.js +27 -0
  413. package/dist/knowledge/application/entity-links.d.ts +3567 -0
  414. package/dist/knowledge/application/entity-links.js +422 -0
  415. package/dist/knowledge/application/graph.d.ts +184 -0
  416. package/dist/knowledge/application/graph.js +364 -0
  417. package/dist/knowledge/application/library.d.ts +520 -0
  418. package/dist/knowledge/application/library.js +258 -0
  419. package/dist/knowledge/application/local-source-host.d.ts +51 -0
  420. package/dist/knowledge/application/local-source-host.js +99 -0
  421. package/dist/knowledge/application/local-source-updates.d.ts +4 -0
  422. package/dist/knowledge/application/local-source-updates.js +197 -0
  423. package/dist/knowledge/application/local.d.ts +202 -0
  424. package/dist/knowledge/application/local.js +159 -0
  425. package/dist/knowledge/application/operations.d.ts +788 -0
  426. package/dist/knowledge/application/operations.js +157 -0
  427. package/dist/knowledge/application/read-context.d.ts +2508 -0
  428. package/dist/knowledge/application/read-context.js +294 -0
  429. package/dist/knowledge/application/relation-operations.d.ts +702 -0
  430. package/dist/knowledge/application/relation-operations.js +45 -0
  431. package/dist/knowledge/application/relations.d.ts +743 -0
  432. package/dist/knowledge/application/relations.js +142 -0
  433. package/dist/knowledge/application/retrieval-text.d.ts +5 -0
  434. package/dist/knowledge/application/retrieval-text.js +45 -0
  435. package/dist/knowledge/application/retrieval.d.ts +108 -0
  436. package/dist/knowledge/application/retrieval.js +195 -0
  437. package/dist/knowledge/application/review-operations.d.ts +650 -0
  438. package/dist/knowledge/application/review-operations.js +33 -0
  439. package/dist/knowledge/application/review.d.ts +394 -0
  440. package/dist/knowledge/application/review.js +114 -0
  441. package/dist/knowledge/application/source-capture.d.ts +355 -0
  442. package/dist/knowledge/application/source-capture.js +261 -0
  443. package/dist/knowledge/application/source-evidence-search.d.ts +37 -0
  444. package/dist/knowledge/application/source-evidence-search.js +129 -0
  445. package/dist/knowledge/application/source-review.d.ts +886 -0
  446. package/dist/knowledge/application/source-review.js +135 -0
  447. package/dist/knowledge/application/source-summary.d.ts +130 -0
  448. package/dist/knowledge/application/source-summary.js +11 -0
  449. package/dist/knowledge/application/source-updates.d.ts +583 -0
  450. package/dist/knowledge/application/source-updates.js +208 -0
  451. package/dist/knowledge/artifacts/authoring/application.d.ts +125 -0
  452. package/dist/knowledge/artifacts/authoring/application.js +83 -0
  453. package/dist/knowledge/artifacts/authoring/carrier-contracts.d.ts +98 -0
  454. package/dist/knowledge/artifacts/authoring/carrier-library.d.ts +19 -0
  455. package/dist/knowledge/artifacts/authoring/carrier-library.js +167 -0
  456. package/dist/knowledge/artifacts/authoring/core-evolver.d.ts +65 -0
  457. package/dist/knowledge/artifacts/authoring/core-evolver.js +313 -0
  458. package/dist/knowledge/artifacts/authoring/knowledge-content.d.ts +17 -0
  459. package/dist/knowledge/artifacts/authoring/knowledge-content.js +139 -0
  460. package/dist/knowledge/artifacts/authoring/knowledge-review.d.ts +9 -0
  461. package/dist/knowledge/artifacts/authoring/knowledge-review.js +39 -0
  462. package/dist/knowledge/artifacts/authoring/scaffold.js +109 -0
  463. package/dist/knowledge/artifacts/authoring/text-edits.d.ts +6 -0
  464. package/dist/knowledge/artifacts/authoring/text-edits.js +31 -0
  465. package/dist/knowledge/artifacts/doctor/contracts.d.ts +201 -0
  466. package/dist/knowledge/artifacts/doctor/endpoint-rule.js +382 -0
  467. package/dist/knowledge/artifacts/doctor/fixer.js +338 -0
  468. package/dist/knowledge/artifacts/doctor/graph.d.ts +22 -0
  469. package/dist/knowledge/artifacts/doctor/graph.js +570 -0
  470. package/dist/knowledge/artifacts/doctor/health/composer.d.ts +18 -0
  471. package/dist/knowledge/artifacts/doctor/health/composer.js +411 -0
  472. package/dist/knowledge/artifacts/doctor/index.js +277 -0
  473. package/dist/knowledge/artifacts/doctor/messages.d.ts +20 -0
  474. package/dist/knowledge/artifacts/doctor/messages.js +224 -0
  475. package/dist/knowledge/artifacts/doctor/persistence.js +126 -0
  476. package/dist/knowledge/artifacts/doctor/renderer.d.ts +17 -0
  477. package/dist/knowledge/artifacts/doctor/report-parser.js +103 -0
  478. package/dist/knowledge/artifacts/doctor/rules.d.ts +32 -0
  479. package/dist/knowledge/artifacts/doctor/rules.js +290 -0
  480. package/dist/knowledge/artifacts/sources/artifact-resolution.d.ts +180 -0
  481. package/dist/knowledge/artifacts/sources/artifact-resolution.js +804 -0
  482. package/dist/knowledge/artifacts/sources/content-hash.js +117 -0
  483. package/dist/knowledge/artifacts/sources/deploy-artifact.js +65 -0
  484. package/dist/knowledge/artifacts/sources/install-source.d.ts +27 -0
  485. package/dist/knowledge/artifacts/sources/install-source.js +116 -0
  486. package/dist/knowledge/artifacts/sources/materialize-copy.d.ts +37 -0
  487. package/dist/knowledge/artifacts/sources/materialize-copy.js +193 -0
  488. package/dist/knowledge/associations.d.ts +350 -0
  489. package/dist/knowledge/associations.js +160 -0
  490. package/dist/knowledge/contracts.d.ts +118 -358
  491. package/dist/knowledge/contracts.js +21 -41
  492. package/dist/knowledge/entities/association-references.d.ts +5 -0
  493. package/dist/knowledge/entities/association-references.js +17 -0
  494. package/dist/knowledge/entities/contracts.d.ts +331 -0
  495. package/dist/knowledge/entities/contracts.js +50 -0
  496. package/dist/knowledge/entities/history.d.ts +4 -0
  497. package/dist/knowledge/entities/history.js +63 -0
  498. package/dist/knowledge/entities/identity.d.ts +53 -0
  499. package/dist/knowledge/entities/identity.js +106 -0
  500. package/dist/knowledge/entities/link-invocation-state.d.ts +375 -0
  501. package/dist/knowledge/entities/link-invocation-state.js +316 -0
  502. package/dist/knowledge/entities/link-invocation.d.ts +2320 -0
  503. package/dist/knowledge/entities/link-invocation.js +113 -0
  504. package/dist/knowledge/entities/links.d.ts +72 -0
  505. package/dist/knowledge/entities/links.js +39 -0
  506. package/dist/knowledge/entities/validation.d.ts +10 -0
  507. package/dist/knowledge/entities/validation.js +72 -0
  508. package/dist/knowledge/entity-library/contracts.d.ts +161 -0
  509. package/dist/knowledge/entity-library/contracts.js +38 -0
  510. package/dist/knowledge/entity-library/history.d.ts +3 -0
  511. package/dist/knowledge/entity-library/history.js +51 -0
  512. package/dist/knowledge/entity-library/write-errors.d.ts +8 -0
  513. package/dist/knowledge/entity-library/write-errors.js +11 -0
  514. package/dist/knowledge/entity-linking/entity-link-hash.d.ts +3 -0
  515. package/dist/knowledge/entity-linking/entity-link-hash.js +4 -0
  516. package/dist/knowledge/entity-linking/entity-link-prompt.d.ts +21 -0
  517. package/dist/knowledge/entity-linking/entity-link-prompt.js +35 -0
  518. package/dist/knowledge/entity-linking/entity-link-quality.d.ts +111 -0
  519. package/dist/knowledge/entity-linking/entity-link-quality.js +139 -0
  520. package/dist/knowledge/extraction/association-catalog.d.ts +15 -0
  521. package/dist/knowledge/extraction/association-catalog.js +53 -0
  522. package/dist/knowledge/extraction/body-generation-wire.d.ts +177 -0
  523. package/dist/knowledge/extraction/body-generation-wire.js +250 -0
  524. package/dist/knowledge/extraction/entities.d.ts +66 -0
  525. package/dist/knowledge/extraction/entities.js +124 -0
  526. package/dist/knowledge/extraction/entity-only-prompt.d.ts +9 -0
  527. package/dist/knowledge/extraction/entity-only-prompt.js +50 -0
  528. package/dist/knowledge/extraction/generation-journal.d.ts +1290 -0
  529. package/dist/knowledge/extraction/generation-journal.js +48 -0
  530. package/dist/knowledge/extraction/generation-policy.d.ts +108 -0
  531. package/dist/knowledge/extraction/generation-policy.js +58 -0
  532. package/dist/knowledge/extraction/generation.d.ts +74 -0
  533. package/dist/knowledge/extraction/generation.js +211 -0
  534. package/dist/knowledge/extraction/knowledge-semantic-policy.d.ts +15 -0
  535. package/dist/knowledge/extraction/knowledge-semantic-policy.js +31 -0
  536. package/dist/knowledge/extraction/long-body.d.ts +92 -0
  537. package/dist/knowledge/extraction/long-body.js +210 -0
  538. package/dist/knowledge/extraction/model-wire.d.ts +69 -0
  539. package/dist/knowledge/extraction/model-wire.js +248 -0
  540. package/dist/knowledge/extraction/native-outcome.d.ts +42 -0
  541. package/dist/knowledge/extraction/native-outcome.js +152 -0
  542. package/dist/knowledge/extraction/occurrence-guided-prompt.d.ts +9 -0
  543. package/dist/knowledge/extraction/occurrence-guided-prompt.js +20 -0
  544. package/dist/knowledge/extraction/prompt.d.ts +2 -0
  545. package/dist/knowledge/extraction/prompt.js +42 -0
  546. package/dist/knowledge/extraction/proposals.d.ts +24 -0
  547. package/dist/knowledge/extraction/proposals.js +24 -0
  548. package/dist/knowledge/extraction/quote-context.d.ts +11 -0
  549. package/dist/knowledge/extraction/quote-context.js +33 -0
  550. package/dist/knowledge/extraction/quote-occurrence.d.ts +9 -0
  551. package/dist/knowledge/extraction/quote-occurrence.js +31 -0
  552. package/dist/knowledge/extraction/run-sealing.d.ts +89 -0
  553. package/dist/knowledge/extraction/run-sealing.js +42 -0
  554. package/dist/knowledge/extraction/runs.d.ts +695 -0
  555. package/dist/knowledge/extraction/runs.js +268 -0
  556. package/dist/knowledge/extraction/source-input.d.ts +524 -0
  557. package/dist/knowledge/extraction/source-input.js +61 -0
  558. package/dist/knowledge/extraction/source-passages.d.ts +63 -0
  559. package/dist/knowledge/extraction/source-passages.js +94 -0
  560. package/dist/knowledge/extraction/source-review-input.d.ts +57 -0
  561. package/dist/knowledge/extraction/source-review-input.js +81 -0
  562. package/dist/knowledge/extraction/source-review-wire.d.ts +137 -0
  563. package/dist/knowledge/extraction/source-review-wire.js +248 -0
  564. package/dist/knowledge/extraction/strict-fewshot.d.ts +1032 -0
  565. package/dist/knowledge/extraction/strict-fewshot.js +1240 -0
  566. package/dist/knowledge/extraction/strict-prompt.d.ts +3 -0
  567. package/dist/knowledge/extraction/strict-prompt.js +18 -0
  568. package/dist/knowledge/extraction/window-proposals.d.ts +342 -0
  569. package/dist/knowledge/extraction/window-proposals.js +93 -0
  570. package/dist/knowledge/extraction/writing-draft.d.ts +6 -0
  571. package/dist/knowledge/extraction/writing-draft.js +37 -0
  572. package/dist/knowledge/history.d.ts +1 -1
  573. package/dist/knowledge/history.js +9 -17
  574. package/dist/knowledge/measurement/typed-contracts.d.ts +477 -0
  575. package/dist/knowledge/measurement/typed-contracts.js +88 -0
  576. package/dist/knowledge/measurement/typed-grounding.d.ts +40 -0
  577. package/dist/knowledge/measurement/typed-grounding.js +14 -0
  578. package/dist/knowledge/measurement/typed-quote-locator.d.ts +6 -0
  579. package/dist/knowledge/measurement/typed-quote-locator.js +8 -0
  580. package/dist/knowledge/measurement/typed-validation.d.ts +19 -0
  581. package/dist/knowledge/measurement/typed-validation.js +111 -0
  582. package/dist/knowledge/migration/associations-v1.d.ts +186 -0
  583. package/dist/knowledge/migration/associations-v1.js +34 -0
  584. package/dist/knowledge/migration/legacy-v2.d.ts +242 -0
  585. package/dist/knowledge/migration/legacy-v2.js +282 -0
  586. package/dist/knowledge/relations/relation-history.d.ts +96 -0
  587. package/dist/knowledge/relations/relation-history.js +95 -0
  588. package/dist/knowledge/relations/relations.d.ts +602 -0
  589. package/dist/knowledge/relations/relations.js +65 -0
  590. package/dist/knowledge/reviews/review-history.d.ts +8 -0
  591. package/dist/knowledge/reviews/review-history.js +86 -0
  592. package/dist/knowledge/reviews/reviews.d.ts +946 -0
  593. package/dist/knowledge/reviews/reviews.js +121 -0
  594. package/dist/knowledge/sources/source-review-history.d.ts +59 -0
  595. package/dist/knowledge/sources/source-review-history.js +283 -0
  596. package/dist/knowledge/sources/source-review.d.ts +1725 -0
  597. package/dist/knowledge/sources/source-review.js +94 -0
  598. package/dist/knowledge/sources/source-store.d.ts +24 -0
  599. package/dist/knowledge/sources/sources.d.ts +1882 -0
  600. package/dist/knowledge/sources/sources.js +278 -0
  601. package/dist/knowledge/store.d.ts +136 -202
  602. package/dist/knowledge/store.js +9 -11
  603. package/dist/knowledge/tags.d.ts +12 -0
  604. package/dist/knowledge/tags.js +6 -0
  605. package/dist/knowledge/validation.d.ts +8 -8
  606. package/dist/knowledge/validation.js +26 -89
  607. package/dist/mcp/capture-store.d.ts +1 -1
  608. package/dist/mcp/capture-store.js +2 -2
  609. package/dist/mcp/feedback-store.d.ts +2 -2
  610. package/dist/mcp/feedback-store.js +3 -3
  611. package/dist/mcp/http.js +65 -27
  612. package/dist/mcp/index.d.ts +1 -1
  613. package/dist/mcp/index.js +1 -1
  614. package/dist/mcp/mcp-server.d.ts +1 -1
  615. package/dist/mcp/review-component.js +35 -8
  616. package/dist/mcp/tool-copy.d.ts +7 -0
  617. package/dist/mcp/tool-copy.js +15 -1
  618. package/dist/observe/agents/collect.d.ts +105 -0
  619. package/dist/observe/agents/collect.js +686 -0
  620. package/dist/observe/agents/index.d.ts +19 -0
  621. package/dist/observe/agents/index.js +13 -0
  622. package/dist/observe/agents/local-catalog.js +101 -0
  623. package/dist/observe/analysis/coverage-analyzer.js +258 -0
  624. package/dist/observe/analysis/gap-analyzer.d.ts +110 -0
  625. package/dist/observe/analysis/gap-analyzer.js +455 -0
  626. package/dist/observe/analysis/hedging-classifier.js +142 -0
  627. package/dist/observe/application.d.ts +15 -0
  628. package/dist/observe/application.js +11 -0
  629. package/dist/observe/contracts/experience-enums.d.ts +228 -0
  630. package/dist/observe/contracts/experience-evidence-schema.d.ts +33532 -0
  631. package/dist/observe/contracts/experience.d.ts +79 -0
  632. package/dist/observe/contracts/inbox.d.ts +181 -0
  633. package/dist/observe/contracts/skill-chain.d.ts +114 -0
  634. package/dist/observe/conversation/catalog.d.ts +57 -0
  635. package/dist/observe/conversation/catalog.js +614 -0
  636. package/dist/observe/conversation/polling-subscription-hub.js +167 -0
  637. package/dist/observe/diagnosis/contracts/parser.js +181 -0
  638. package/dist/observe/diagnosis/observe-mapper.js +265 -0
  639. package/dist/observe/diagnosis/studio-projection.js +90 -0
  640. package/dist/observe/experience/report-assembly.js +808 -0
  641. package/dist/observe/experience/report-derivations.js +283 -0
  642. package/dist/observe/experience/session-story.js +302 -0
  643. package/dist/observe/experience/text-signals.d.ts +6 -0
  644. package/dist/observe/experience/text-signals.js +29 -0
  645. package/dist/observe/experience/timeline.d.ts +28 -0
  646. package/dist/observe/experience/timeline.js +513 -0
  647. package/dist/observe/inbox/diagnosis-producer.d.ts +8 -0
  648. package/dist/observe/inbox/diagnosis-producer.js +132 -0
  649. package/dist/observe/inbox/feedback-matchers.d.ts +40 -0
  650. package/dist/observe/inbox/feedback-matchers.js +260 -0
  651. package/dist/observe/inbox/index.d.ts +14 -0
  652. package/dist/observe/inbox/index.js +7 -0
  653. package/dist/observe/inbox/paths.d.ts +30 -0
  654. package/dist/observe/inbox/paths.js +87 -0
  655. package/dist/observe/inbox/problem-patterns.js +249 -0
  656. package/dist/observe/inbox/report-building.d.ts +18 -0
  657. package/dist/observe/inbox/report-building.js +595 -0
  658. package/dist/observe/inbox/report-primitives.js +88 -0
  659. package/dist/observe/inbox/report-store.js +516 -0
  660. package/dist/observe/inbox/source-record-archive.d.ts +9 -0
  661. package/dist/observe/inbox/source-record-archive.js +311 -0
  662. package/dist/observe/skill-health/analyzer.d.ts +128 -0
  663. package/dist/observe/skill-health/analyzer.js +327 -0
  664. package/dist/observe/skill-health/experience-frontmatter.js +99 -0
  665. package/dist/observe/skill-health/persistence.d.ts +10 -0
  666. package/dist/observe/skill-health/persistence.js +21 -0
  667. package/dist/observe/skill-health/skill-chain.js +530 -0
  668. package/dist/observe/soft-standards/constants.d.ts +4 -0
  669. package/dist/observe/soft-standards/constants.js +9 -0
  670. package/dist/observe/soft-standards/llm-extractor.js +698 -0
  671. package/dist/observe/soft-standards/runtime-evaluator.js +384 -0
  672. package/dist/observe/soft-standards/skill-standards-store.d.ts +10 -0
  673. package/dist/observe/soft-standards/skill-standards-store.js +230 -0
  674. package/dist/observe/soft-standards/types.d.ts +213 -0
  675. package/dist/observe/soft-standards/types.js +1 -0
  676. package/dist/observe/trace/adapters/claude/record-events.js +297 -0
  677. package/dist/observe/trace/adapters/codex/pending-tool-events.js +100 -0
  678. package/dist/observe/trace/adapters/codex/tool-event-factory.js +20 -0
  679. package/dist/observe/trace/adapters/codex/tool-events.js +183 -0
  680. package/dist/observe/trace/adapters/codex/tool-status.js +114 -0
  681. package/dist/observe/trace/adapters/codex/turn-events.js +126 -0
  682. package/dist/observe/trace/adapters/dsh/trace.d.ts +17 -0
  683. package/dist/observe/trace/adapters/dsh/trace.js +352 -0
  684. package/dist/observe/trace/adapters/jsonl-records.js +67 -0
  685. package/dist/observe/trace/adapters/openclaw/record-events.js +192 -0
  686. package/dist/observe/trace/adapters/qoder/trace.js +477 -0
  687. package/dist/observe/trace/segmentation.js +491 -0
  688. package/dist/observe/trace/tool-search.js +160 -0
  689. package/dist/observe/trace/zstd-frames.js +167 -0
  690. package/dist/observe/view-models/conversation.js +1 -0
  691. package/dist/observe/view-models/index.d.ts +8 -0
  692. package/dist/observe/view-models/index.js +1 -0
  693. package/dist/observe/view-models/knowledge-debugger.js +1 -0
  694. package/dist/settings/user-settings.d.ts +43 -0
  695. package/dist/settings/user-settings.js +59 -0
  696. package/dist/shared/content-hash.d.ts +0 -1
  697. package/dist/shared/content-hash.js +0 -3
  698. package/dist/shared/file-lock.d.ts +4 -0
  699. package/dist/shared/file-lock.js +53 -22
  700. package/dist/shared/llm-json.d.ts +2 -0
  701. package/dist/shared/llm-json.js +36 -0
  702. package/dist/storage/artifact-graph/contracts.js +1 -0
  703. package/dist/storage/atomic-text.d.ts +4 -0
  704. package/dist/storage/atomic-text.js +71 -0
  705. package/dist/storage/default-dirs.d.ts +26 -0
  706. package/dist/storage/default-dirs.js +27 -0
  707. package/dist/storage/directories.d.ts +18 -0
  708. package/dist/storage/directories.js +60 -0
  709. package/dist/storage/discovery-index.d.ts +86 -0
  710. package/dist/storage/discovery-index.js +297 -0
  711. package/dist/storage/file-names.d.ts +13 -0
  712. package/dist/storage/file-names.js +54 -0
  713. package/dist/storage/layout.d.ts +39 -0
  714. package/dist/storage/layout.js +52 -0
  715. package/dist/storage/report-bundle.js +120 -0
  716. package/dist/studio/application/agents/agents-view.d.ts +1 -1
  717. package/dist/studio/application/agents/agents-view.js +1 -1
  718. package/dist/studio/application/conversations/conversation-activity.d.ts +1 -1
  719. package/dist/studio/application/conversations/conversation-extraction.d.ts +1 -41
  720. package/dist/studio/application/conversations/conversation-extraction.js +1 -53
  721. package/dist/studio/application/conversations/conversation-reader.d.ts +1 -1
  722. package/dist/studio/application/conversations/replay/layout.d.ts +1 -1
  723. package/dist/studio/application/conversations/replay/projection.d.ts +1 -1
  724. package/dist/studio/application/conversations/replay/summary.d.ts +1 -1
  725. package/dist/studio/application/conversations/sidebar-window.d.ts +1 -1
  726. package/dist/studio/application/conversations/trajectory-evidence.d.ts +1 -1
  727. package/dist/studio/application/directory-sources.d.ts +1 -3
  728. package/dist/studio/application/directory-sources.js +0 -1
  729. package/dist/studio/application/display/conversation-label.d.ts +1 -1
  730. package/dist/studio/application/display/conversation-label.js +15 -2
  731. package/dist/studio/application/knowledge/artifact-authoring.d.ts +41 -0
  732. package/dist/studio/application/knowledge/artifact-authoring.js +16 -0
  733. package/dist/studio/application/knowledge/auto-extraction.d.ts +4 -0
  734. package/dist/studio/application/knowledge/auto-extraction.js +23 -0
  735. package/dist/studio/application/knowledge/candidate-review.d.ts +5 -0
  736. package/dist/studio/application/knowledge/candidate-review.js +20 -0
  737. package/dist/studio/application/knowledge/candidate-status.js +2 -2
  738. package/dist/studio/application/knowledge/doctor-format.d.ts +2 -2
  739. package/dist/studio/application/knowledge/entity-links.d.ts +14 -0
  740. package/dist/studio/application/knowledge/entity-links.js +178 -0
  741. package/dist/studio/application/knowledge/knowledge-candidates.d.ts +2 -1
  742. package/dist/studio/application/knowledge/knowledge-candidates.js +195 -47
  743. package/dist/studio/application/knowledge/knowledge-library.d.ts +424 -0
  744. package/dist/studio/application/knowledge/knowledge-library.js +24 -0
  745. package/dist/studio/application/knowledge/knowledge-query.js +1 -1
  746. package/dist/studio/application/knowledge/knowledge-relations.d.ts +471 -0
  747. package/dist/studio/application/knowledge/knowledge-relations.js +14 -0
  748. package/dist/studio/application/knowledge/knowledge-reports.d.ts +1 -1
  749. package/dist/studio/application/knowledge/knowledge-reports.js +3 -3
  750. package/dist/studio/application/knowledge/knowledge-reviews.d.ts +356 -0
  751. package/dist/studio/application/knowledge/knowledge-reviews.js +15 -0
  752. package/dist/studio/application/knowledge/library-view.d.ts +23 -0
  753. package/dist/studio/application/knowledge/library-view.js +7 -0
  754. package/dist/studio/application/knowledge/skill-health.js +1 -1
  755. package/dist/studio/application/knowledge/skill-index.js +5 -6
  756. package/dist/studio/application/knowledge/skill-insights.js +1 -1
  757. package/dist/studio/application/knowledge/source-picker.d.ts +368 -0
  758. package/dist/studio/application/knowledge/source-picker.js +54 -0
  759. package/dist/studio/application/knowledge/source-view.d.ts +4 -0
  760. package/dist/studio/application/knowledge/source-view.js +8 -0
  761. package/dist/studio/application/measure/carrier-measurement.d.ts +20 -0
  762. package/dist/studio/application/measure/carrier-measurement.js +51 -0
  763. package/dist/studio/application/measure/core-run-format.d.ts +12 -1
  764. package/dist/studio/application/measure/core-run-format.js +69 -1
  765. package/dist/studio/application/observe/health-format.d.ts +1 -1
  766. package/dist/studio/application/observe/health-format.js +1 -1
  767. package/dist/studio/application/settings/settings.d.ts +3 -3
  768. package/dist/studio/application/settings/settings.js +2 -2
  769. package/dist/studio/http/contracts.d.ts +22 -4
  770. package/dist/studio/http/errors.js +8 -1
  771. package/dist/studio/http/language.js +1 -1
  772. package/dist/studio/http/next-context.d.ts +2 -2
  773. package/dist/studio/http/next-context.js +1 -1
  774. package/dist/studio/http/next-server.js +48 -69
  775. package/dist/studio/http/page-fault.d.ts +3 -0
  776. package/dist/studio/http/page-fault.js +23 -0
  777. package/dist/studio/http/page-paths.d.ts +2 -2
  778. package/dist/studio/http/page-paths.js +2 -2
  779. package/dist/studio/http/pages/inbox-page.d.ts +2 -2
  780. package/dist/studio/http/pages/inbox-page.js +2 -2
  781. package/dist/studio/http/pages/knowledge-page.d.ts +1 -1
  782. package/dist/studio/http/pages/knowledge-page.js +3 -3
  783. package/dist/studio/http/pages/measure-page.d.ts +2 -2
  784. package/dist/studio/http/pages/measure-page.js +4 -2
  785. package/dist/studio/http/pages/observe-page.d.ts +4 -4
  786. package/dist/studio/http/pages/observe-page.js +1 -1
  787. package/dist/studio/http/report-server.js +69 -22
  788. package/dist/studio/http/request-errors.js +61 -28
  789. package/dist/studio/http/request-handler.d.ts +2 -2
  790. package/dist/studio/http/request-handler.js +39 -13
  791. package/dist/studio/http/routes/artifact-authoring.d.ts +1 -0
  792. package/dist/studio/http/routes/artifact-authoring.js +35 -0
  793. package/dist/studio/http/routes/carrier-measurement.d.ts +8 -0
  794. package/dist/studio/http/routes/carrier-measurement.js +34 -0
  795. package/dist/studio/http/routes/conversations.d.ts +1 -1
  796. package/dist/studio/http/routes/entity-links.d.ts +3 -0
  797. package/dist/studio/http/routes/entity-links.js +39 -0
  798. package/dist/studio/http/routes/knowledge-candidates.d.ts +5 -2
  799. package/dist/studio/http/routes/knowledge-candidates.js +41 -31
  800. package/dist/studio/http/routes/knowledge-relations.d.ts +3 -0
  801. package/dist/studio/http/routes/knowledge-relations.js +32 -0
  802. package/dist/studio/http/routes/knowledge-reviews.d.ts +3 -0
  803. package/dist/studio/http/routes/knowledge-reviews.js +30 -0
  804. package/dist/studio/http/routes/knowledge.d.ts +1 -2
  805. package/dist/studio/http/routes/knowledge.js +1 -14
  806. package/dist/studio/http/routes/observations.js +1 -1
  807. package/dist/studio/http/server-addresses.d.ts +5 -0
  808. package/dist/studio/http/server-addresses.js +16 -0
  809. package/dist/studio/view-models/conversations/conversation-reader.d.ts +1 -1
  810. package/dist/studio/view-models/conversations/replay.d.ts +1 -1
  811. package/dist/studio/view-models/display/tone.d.ts +1 -2
  812. package/dist/studio/view-models/knowledge/artifact-authoring.d.ts +2 -0
  813. package/dist/studio/view-models/knowledge/artifact-authoring.js +1 -0
  814. package/dist/studio/view-models/knowledge/entity-links.d.ts +17 -0
  815. package/dist/studio/view-models/knowledge/entity-links.js +1 -0
  816. package/dist/studio/view-models/knowledge/insight.d.ts +1 -1
  817. package/dist/studio/view-models/knowledge/knowledge-candidates.d.ts +127 -11
  818. package/dist/studio/view-models/knowledge/knowledge-library.d.ts +4 -0
  819. package/dist/studio/view-models/knowledge/knowledge-library.js +1 -0
  820. package/dist/studio/view-models/knowledge/knowledge-relations.d.ts +2 -0
  821. package/dist/studio/view-models/knowledge/knowledge-relations.js +1 -0
  822. package/dist/studio/view-models/knowledge/knowledge-reviews.d.ts +2 -0
  823. package/dist/studio/view-models/knowledge/knowledge-reviews.js +1 -0
  824. package/dist/studio/view-models/knowledge/skill-index.d.ts +2 -2
  825. package/dist/studio/view-models/measure/carrier-measurement.d.ts +1 -0
  826. package/dist/studio/view-models/measure/carrier-measurement.js +1 -0
  827. package/dist/studio/view-models/measure/core-runs.d.ts +6 -0
  828. package/dist/studio/view-models/page-fault.d.ts +9 -0
  829. package/dist/studio/view-models/page-fault.js +1 -0
  830. package/dist/studio/view-models/settings/settings.d.ts +1 -1
  831. package/dist/studio/web/.next/BUILD_ID +1 -1
  832. package/dist/studio/web/.next/app-path-routes-manifest.json +6 -5
  833. package/dist/studio/web/.next/build-manifest.json +4 -4
  834. package/dist/studio/web/.next/next-minimal-server.js.nft.json +1 -1
  835. package/dist/studio/web/.next/next-server.js.nft.json +1 -1
  836. package/dist/studio/web/.next/prerender-manifest.json +4 -4
  837. package/dist/studio/web/.next/required-server-files.js +35 -2
  838. package/dist/studio/web/.next/required-server-files.json +35 -2
  839. package/dist/studio/web/.next/routes-manifest.json +30 -22
  840. package/dist/studio/web/.next/server/app/_global-error/page.js +1 -1
  841. package/dist/studio/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  842. package/dist/studio/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  843. package/dist/studio/web/.next/server/app/_global-error.html +1 -1
  844. package/dist/studio/web/.next/server/app/_global-error.meta +8 -0
  845. package/dist/studio/web/.next/server/app/_global-error.rsc +30 -18
  846. package/dist/studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +30 -18
  847. package/dist/studio/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +36 -24
  848. package/dist/studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -1
  849. package/dist/studio/web/.next/server/app/_not-found/page.js +1 -1
  850. package/dist/studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  851. package/dist/studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  852. package/dist/studio/web/.next/server/app/agents/page.js +1 -1
  853. package/dist/studio/web/.next/server/app/agents/page.js.nft.json +1 -1
  854. package/dist/studio/web/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  855. package/dist/studio/web/.next/server/app/knowledge/candidates/page.js +1 -1
  856. package/dist/studio/web/.next/server/app/knowledge/candidates/page.js.nft.json +1 -1
  857. package/dist/studio/web/.next/server/app/knowledge/candidates/page_client-reference-manifest.js +1 -1
  858. package/dist/studio/web/.next/server/app/knowledge/entities/page.js +1 -0
  859. package/dist/studio/web/.next/server/app/knowledge/entities/page.js.nft.json +1 -0
  860. package/dist/studio/web/.next/server/app/knowledge/entities/page_client-reference-manifest.js +1 -0
  861. package/dist/studio/web/.next/server/app/knowledge/library/page.js +55 -0
  862. package/dist/studio/web/.next/server/app/knowledge/library/page.js.nft.json +1 -0
  863. package/dist/studio/web/.next/server/app/knowledge/library/page_client-reference-manifest.js +1 -0
  864. package/dist/studio/web/.next/server/app/knowledge/page.js +1 -1
  865. package/dist/studio/web/.next/server/app/knowledge/page.js.nft.json +1 -1
  866. package/dist/studio/web/.next/server/app/knowledge/page_client-reference-manifest.js +1 -1
  867. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js +1 -1
  868. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js.nft.json +1 -1
  869. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page_client-reference-manifest.js +1 -1
  870. package/dist/studio/web/.next/server/app/measure/[runId]/page.js +1 -1
  871. package/dist/studio/web/.next/server/app/measure/[runId]/page.js.nft.json +1 -1
  872. package/dist/studio/web/.next/server/app/measure/[runId]/page_client-reference-manifest.js +1 -1
  873. package/dist/studio/web/.next/server/app/measure/page.js +1 -1
  874. package/dist/studio/web/.next/server/app/measure/page.js.nft.json +1 -1
  875. package/dist/studio/web/.next/server/app/measure/page_client-reference-manifest.js +1 -1
  876. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js +1 -1
  877. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js.nft.json +1 -1
  878. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page_client-reference-manifest.js +1 -1
  879. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js +1 -1
  880. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js.nft.json +1 -1
  881. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page_client-reference-manifest.js +1 -1
  882. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js +1 -1
  883. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js.nft.json +1 -1
  884. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page_client-reference-manifest.js +1 -1
  885. package/dist/studio/web/.next/server/app/observe/health/page.js +1 -1
  886. package/dist/studio/web/.next/server/app/observe/health/page.js.nft.json +1 -1
  887. package/dist/studio/web/.next/server/app/observe/health/page_client-reference-manifest.js +1 -1
  888. package/dist/studio/web/.next/server/app/observe/health-diff/page.js +1 -1
  889. package/dist/studio/web/.next/server/app/observe/health-diff/page.js.nft.json +1 -1
  890. package/dist/studio/web/.next/server/app/observe/health-diff/page_client-reference-manifest.js +1 -1
  891. package/dist/studio/web/.next/server/app/observe/inbox/page.js +2 -5
  892. package/dist/studio/web/.next/server/app/observe/inbox/page.js.nft.json +1 -1
  893. package/dist/studio/web/.next/server/app/observe/inbox/page_client-reference-manifest.js +1 -1
  894. package/dist/studio/web/.next/server/app/observe/page.js +1 -1
  895. package/dist/studio/web/.next/server/app/observe/page.js.nft.json +1 -1
  896. package/dist/studio/web/.next/server/app/observe/page_client-reference-manifest.js +1 -1
  897. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js +1 -1
  898. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js.nft.json +1 -1
  899. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page_client-reference-manifest.js +1 -1
  900. package/dist/studio/web/.next/server/app/studio-fault/page.js +1 -0
  901. package/dist/studio/web/.next/server/app/studio-fault/page.js.nft.json +1 -0
  902. package/dist/studio/web/.next/server/app/studio-fault/page_client-reference-manifest.js +1 -0
  903. package/dist/studio/web/.next/server/app-paths-manifest.json +6 -5
  904. package/dist/studio/web/.next/server/chunks/158.js +4 -0
  905. package/dist/studio/web/.next/server/chunks/173.js +23 -0
  906. package/dist/studio/web/.next/server/chunks/197.js +1 -0
  907. package/dist/studio/web/.next/server/chunks/241.js +1 -0
  908. package/dist/studio/web/.next/server/chunks/276.js +55 -0
  909. package/dist/studio/web/.next/server/chunks/278.js +4 -0
  910. package/dist/studio/web/.next/server/chunks/285.js +16 -0
  911. package/dist/studio/web/.next/server/chunks/3.js +1 -1
  912. package/dist/studio/web/.next/server/chunks/464.js +3 -3
  913. package/dist/studio/web/.next/server/chunks/475.js +1 -1
  914. package/dist/studio/web/.next/server/chunks/499.js +1 -1
  915. package/dist/studio/web/.next/server/chunks/5.js +1 -1
  916. package/dist/studio/web/.next/server/chunks/520.js +1 -0
  917. package/dist/studio/web/.next/server/chunks/644.js +16 -0
  918. package/dist/studio/web/.next/server/chunks/647.js +41 -0
  919. package/dist/studio/web/.next/server/chunks/704.js +1 -0
  920. package/dist/studio/web/.next/server/chunks/757.js +4 -0
  921. package/dist/studio/web/.next/server/chunks/758.js +1 -0
  922. package/dist/studio/web/.next/server/chunks/772.js +4 -4
  923. package/dist/studio/web/.next/server/chunks/777.js +1 -0
  924. package/dist/studio/web/.next/server/chunks/78.js +1 -0
  925. package/dist/studio/web/.next/server/chunks/845.js +6 -0
  926. package/dist/studio/web/.next/server/chunks/907.js +471 -0
  927. package/dist/studio/web/.next/server/chunks/952.js +10 -0
  928. package/dist/studio/web/.next/server/chunks/996.js +1 -1
  929. package/dist/studio/web/.next/server/middleware-build-manifest.js +1 -1
  930. package/dist/studio/web/.next/server/pages/500.html +1 -1
  931. package/dist/studio/web/.next/server/preview-props.json +5 -0
  932. package/dist/studio/web/.next/server/server-reference-manifest.json +1 -1
  933. package/dist/studio/web/.next/static/chunks/0937d497-cb7a9ff884a082ab.js +1 -0
  934. package/dist/studio/web/.next/static/chunks/1046-d6406775bf6e4e56.js +10 -0
  935. package/dist/studio/web/.next/static/chunks/130-893cf722c2625b17.js +126 -0
  936. package/dist/studio/web/.next/static/chunks/1492-bad4ed42c0e250f4.js +1 -0
  937. package/dist/studio/web/.next/static/chunks/1858-c1e4347ec29d9975.js +52 -0
  938. package/dist/studio/web/.next/static/chunks/2038-6693f44ecf63822c.js +1 -0
  939. package/dist/studio/web/.next/static/chunks/2192-3018e652a8614c1a.js +16 -0
  940. package/dist/studio/web/.next/static/chunks/2519-4e2ef8a5f4329f8f.js +1 -0
  941. package/dist/studio/web/.next/static/chunks/2974-4e69b5f46cfb7dcf.js +41 -0
  942. package/dist/studio/web/.next/static/chunks/3596-edc23b1335d9e066.js +16 -0
  943. package/dist/studio/web/.next/static/chunks/3958-a0c0cdf3f949cce5.js +1 -0
  944. package/dist/studio/web/.next/static/chunks/3978-7aa1fe441f992fbc.js +1 -0
  945. package/dist/studio/web/.next/static/chunks/4994-f4341c8b63e0b273.js +23 -0
  946. package/dist/studio/web/.next/static/chunks/5014-5f3f743dbdca752b.js +1 -0
  947. package/dist/studio/web/.next/static/chunks/5382-1b919cde624bb761.js +1 -0
  948. package/dist/studio/web/.next/static/chunks/5669-9c97987efcbb436b.js +4 -0
  949. package/dist/studio/web/.next/static/chunks/5686-ca88fb679f990180.js +7 -0
  950. package/dist/studio/web/.next/static/chunks/5810-175f6442bf41f93f.js +8 -0
  951. package/dist/studio/web/.next/static/chunks/5834-a15c5aca742e8dfe.js +1 -0
  952. package/dist/studio/web/.next/static/chunks/5888-7fcdb8113bad0a83.js +55 -0
  953. package/dist/studio/web/.next/static/chunks/6238-d5503cb2b71c7dac.js +1 -0
  954. package/dist/studio/web/.next/static/chunks/6722-e64d7dff19ba05f4.js +4 -0
  955. package/dist/studio/web/.next/static/chunks/7754-35adc2934225f819.js +4 -0
  956. package/dist/studio/web/.next/static/chunks/7936-e4a0d3ac28eb54cc.js +164 -0
  957. package/dist/studio/web/.next/static/chunks/7956-5d0381b62a26fe4d.js +6 -0
  958. package/dist/studio/web/.next/static/chunks/8093-42784c8dd11cb2f7.js +1 -0
  959. package/dist/studio/web/.next/static/chunks/8284-7f5a979f042ab2fa.js +1 -0
  960. package/dist/studio/web/.next/static/chunks/8791-c05283fd8a8fdb82.js +1 -0
  961. package/dist/studio/web/.next/static/chunks/9688-4bdad39f3387b49a.js +1 -0
  962. package/dist/studio/web/.next/static/chunks/9978-5c07c696f9455dda.js +9 -0
  963. package/dist/studio/web/.next/static/chunks/app/agents/page-d4eaa6a8179b7b19.js +1 -0
  964. package/dist/studio/web/.next/static/chunks/app/error-edb0db1072d1d73f.js +1 -0
  965. package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-9526538d0b68d6f4.js +1 -0
  966. package/dist/studio/web/.next/static/chunks/app/knowledge/entities/page-aff10fb4087e2ead.js +1 -0
  967. package/dist/studio/web/.next/static/chunks/app/knowledge/library/page-94bff0d5847f1372.js +1 -0
  968. package/dist/studio/web/.next/static/chunks/app/knowledge/page-a0f3756f1167905f.js +1 -0
  969. package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-6dba56e2cc7bf391.js +1 -0
  970. package/dist/studio/web/.next/static/chunks/app/layout-238de1f5bd3b0186.js +1 -0
  971. package/dist/studio/web/.next/static/chunks/app/loading-bafa7dd71ac593fb.js +1 -0
  972. package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-18d8cdad7fbd3103.js +1 -0
  973. package/dist/studio/web/.next/static/chunks/app/measure/page-ef11f68b9809a459.js +1 -0
  974. package/dist/studio/web/.next/static/chunks/app/not-found-2ea031c66ca97f78.js +1 -0
  975. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-bcc0e0e84f975fe2.js +1 -0
  976. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-f0f71def8fed4edb.js +1 -0
  977. package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-b9ee172f2f50b703.js +1 -0
  978. package/dist/studio/web/.next/static/chunks/app/observe/health/page-4786159a2715cfc0.js +1 -0
  979. package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-82c559a9f9f00e46.js +1 -0
  980. package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-1aeba2d85fcdb064.js +1 -0
  981. package/dist/studio/web/.next/static/chunks/app/observe/page-85aa6e5ef7030a53.js +1 -0
  982. package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-81db0784463726ef.js +1 -0
  983. package/dist/studio/web/.next/static/chunks/app/studio-fault/page-c1a55437331aa91a.js +1 -0
  984. package/dist/studio/web/.next/static/chunks/framework-c65554ff3488f9ae.js +1 -0
  985. package/dist/studio/web/.next/static/chunks/main-6fb9fe9da7afc450.js +5 -0
  986. package/dist/studio/web/.next/static/css/9037c4f39a77549b.css +1 -0
  987. package/dist/studio/web/.next/static/pt5Rgfsq8ItsRzlq_ZEPl/_buildManifest.js +1 -0
  988. package/dist/studio/web/.next/trace +108 -47
  989. package/dist/studio/web/.next/trace-build +1 -1
  990. package/dist/studio/web/next.config.mjs +7 -0
  991. package/package.json +12 -11
  992. package/dist/cli/commands/list.d.ts +0 -26
  993. package/dist/cli/commands/list.js +0 -121
  994. package/dist/cli/commands/observe/knowledge.d.ts +0 -26
  995. package/dist/cli/commands/observe/knowledge.js +0 -124
  996. package/dist/cli/commands/promote.d.ts +0 -24
  997. package/dist/cli/commands/promote.js +0 -141
  998. package/dist/cli/commands/rollback.d.ts +0 -20
  999. package/dist/cli/commands/rollback.js +0 -87
  1000. package/dist/cli/lib/actor.d.ts +0 -2
  1001. package/dist/cli/lib/actor.js +0 -13
  1002. package/dist/cli/lib/evaluation-composition.d.ts +0 -3
  1003. package/dist/cli/lib/evaluation-composition.js +0 -96
  1004. package/dist/cli/lib/i18n-dict/list.d.ts +0 -3
  1005. package/dist/cli/lib/i18n-dict/list.js +0 -40
  1006. package/dist/cli/lib/i18n-dict/promote.d.ts +0 -3
  1007. package/dist/cli/lib/i18n-dict/promote.js +0 -46
  1008. package/dist/cli/lib/i18n-dict/rollback.d.ts +0 -3
  1009. package/dist/cli/lib/i18n-dict/rollback.js +0 -22
  1010. package/dist/diagnosis/contracts/parser.js +0 -181
  1011. package/dist/diagnosis/observe-mapper.js +0 -265
  1012. package/dist/diagnosis/observe-producer.d.ts +0 -8
  1013. package/dist/diagnosis/observe-producer.js +0 -132
  1014. package/dist/diagnosis/studio-projection.js +0 -90
  1015. package/dist/eval-runtime/clock.d.ts +0 -3
  1016. package/dist/eval-runtime/debug-evaluator.d.ts +0 -26
  1017. package/dist/eval-runtime/debug-evaluator.js +0 -65
  1018. package/dist/eval-runtime/debug-rubric.d.ts +0 -29
  1019. package/dist/eval-runtime/debug-rubric.js +0 -92
  1020. package/dist/eval-runtime/executed-store.d.ts +0 -48
  1021. package/dist/eval-runtime/executed-store.js +0 -257
  1022. package/dist/eval-runtime/execution-controls.d.ts +0 -6
  1023. package/dist/eval-runtime/execution-controls.js +0 -55
  1024. package/dist/eval-runtime/execution.d.ts +0 -60
  1025. package/dist/eval-runtime/execution.js +0 -183
  1026. package/dist/eval-runtime/infrastructure.d.ts +0 -51
  1027. package/dist/eval-runtime/infrastructure.js +0 -89
  1028. package/dist/eval-runtime/mcp-config.d.ts +0 -48
  1029. package/dist/eval-runtime/mcp-config.js +0 -91
  1030. package/dist/eval-runtime/mock-interception.d.ts +0 -65
  1031. package/dist/eval-runtime/mock-interception.js +0 -110
  1032. package/dist/eval-runtime/provider.d.ts +0 -39
  1033. package/dist/eval-runtime/provider.js +0 -13
  1034. package/dist/eval-runtime/result-store.d.ts +0 -45
  1035. package/dist/eval-runtime/result-store.js +0 -248
  1036. package/dist/eval-runtime/runner.d.ts +0 -47
  1037. package/dist/eval-runtime/runner.js +0 -116
  1038. package/dist/eval-runtime/runtime.d.ts +0 -35
  1039. package/dist/eval-runtime/runtime.js +0 -111
  1040. package/dist/eval-runtime/tool-policy.js +0 -67
  1041. package/dist/eval-runtime/workspace.d.ts +0 -49
  1042. package/dist/eval-runtime/workspace.js +0 -85
  1043. package/dist/eval-workflows/hosts/adapters/anthropic/api.d.ts +0 -31
  1044. package/dist/eval-workflows/hosts/adapters/anthropic/api.js +0 -292
  1045. package/dist/eval-workflows/hosts/adapters/anthropic/input.d.ts +0 -7
  1046. package/dist/eval-workflows/hosts/adapters/anthropic/input.js +0 -28
  1047. package/dist/eval-workflows/hosts/adapters/anthropic/protocol.d.ts +0 -67
  1048. package/dist/eval-workflows/hosts/adapters/anthropic/protocol.js +0 -192
  1049. package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.d.ts +0 -19
  1050. package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.js +0 -274
  1051. package/dist/eval-workflows/hosts/adapters/claude/cli.d.ts +0 -48
  1052. package/dist/eval-workflows/hosts/adapters/claude/cli.js +0 -609
  1053. package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.d.ts +0 -5
  1054. package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.js +0 -57
  1055. package/dist/eval-workflows/hosts/adapters/claude/resources.d.ts +0 -125
  1056. package/dist/eval-workflows/hosts/adapters/claude/resources.js +0 -710
  1057. package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.d.ts +0 -7
  1058. package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.js +0 -36
  1059. package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.d.ts +0 -40
  1060. package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.js +0 -137
  1061. package/dist/eval-workflows/hosts/adapters/claude/sdk.d.ts +0 -29
  1062. package/dist/eval-workflows/hosts/adapters/claude/sdk.js +0 -509
  1063. package/dist/eval-workflows/projections/managed.d.ts +0 -8
  1064. package/dist/eval-workflows/projections/managed.js +0 -105
  1065. package/dist/evidence/graph/doctor.d.ts +0 -22
  1066. package/dist/evidence/graph/doctor.js +0 -569
  1067. package/dist/evidence/storage/default-dirs.d.ts +0 -33
  1068. package/dist/evidence/storage/default-dirs.js +0 -34
  1069. package/dist/evidence/storage/directories.d.ts +0 -18
  1070. package/dist/evidence/storage/directories.js +0 -60
  1071. package/dist/evidence/storage/discovery-index.d.ts +0 -86
  1072. package/dist/evidence/storage/discovery-index.js +0 -297
  1073. package/dist/evidence/storage/file-names.d.ts +0 -15
  1074. package/dist/evidence/storage/file-names.js +0 -56
  1075. package/dist/evidence/storage/layout.d.ts +0 -41
  1076. package/dist/evidence/storage/layout.js +0 -55
  1077. package/dist/evidence/storage/report-bundle.js +0 -120
  1078. package/dist/evidence/storage/run-id.js +0 -19
  1079. package/dist/evidence/storage/user-settings.d.ts +0 -44
  1080. package/dist/evidence/storage/user-settings.js +0 -59
  1081. package/dist/executors/anthropic/api.d.ts +0 -3
  1082. package/dist/executors/anthropic/api.js +0 -102
  1083. package/dist/executors/anthropic/claude/cli.d.ts +0 -3
  1084. package/dist/executors/anthropic/claude/cli.js +0 -119
  1085. package/dist/executors/anthropic/claude/protocol.d.ts +0 -87
  1086. package/dist/executors/anthropic/claude/protocol.js +0 -180
  1087. package/dist/executors/anthropic/claude/sdk.d.ts +0 -20
  1088. package/dist/executors/anthropic/claude/sdk.js +0 -159
  1089. package/dist/executors/anthropic/claude/trace.d.ts +0 -9
  1090. package/dist/executors/anthropic/claude/trace.js +0 -133
  1091. package/dist/executors/core/tool-identity.d.ts +0 -21
  1092. package/dist/executors/core/trace-source-kind.d.ts +0 -4
  1093. package/dist/executors/core/trace-source-kind.js +0 -5
  1094. package/dist/executors/mock-runtime/mock-hook.cjs +0 -271
  1095. package/dist/executors/tool-call-status.d.ts +0 -8
  1096. package/dist/executors/tool-call-status.js +0 -71
  1097. package/dist/knowledge-artifacts/authoring/core-evolver.d.ts +0 -66
  1098. package/dist/knowledge-artifacts/authoring/core-evolver.js +0 -283
  1099. package/dist/knowledge-artifacts/authoring/scaffold.js +0 -109
  1100. package/dist/knowledge-artifacts/doctor/contracts.d.ts +0 -201
  1101. package/dist/knowledge-artifacts/doctor/endpoint-rule.js +0 -382
  1102. package/dist/knowledge-artifacts/doctor/fixer.js +0 -345
  1103. package/dist/knowledge-artifacts/doctor/health/composer.d.ts +0 -18
  1104. package/dist/knowledge-artifacts/doctor/health/composer.js +0 -411
  1105. package/dist/knowledge-artifacts/doctor/index.js +0 -277
  1106. package/dist/knowledge-artifacts/doctor/messages.d.ts +0 -20
  1107. package/dist/knowledge-artifacts/doctor/messages.js +0 -224
  1108. package/dist/knowledge-artifacts/doctor/persistence.js +0 -126
  1109. package/dist/knowledge-artifacts/doctor/renderer.d.ts +0 -17
  1110. package/dist/knowledge-artifacts/doctor/report-parser.js +0 -103
  1111. package/dist/knowledge-artifacts/doctor/rules.d.ts +0 -32
  1112. package/dist/knowledge-artifacts/doctor/rules.js +0 -290
  1113. package/dist/knowledge-artifacts/governance/contracts.d.ts +0 -158
  1114. package/dist/knowledge-artifacts/governance/evidence.d.ts +0 -25
  1115. package/dist/knowledge-artifacts/governance/evidence.js +0 -111
  1116. package/dist/knowledge-artifacts/governance/evolve-outcome.d.ts +0 -16
  1117. package/dist/knowledge-artifacts/governance/evolve-outcome.js +0 -41
  1118. package/dist/knowledge-artifacts/governance/index.d.ts +0 -11
  1119. package/dist/knowledge-artifacts/governance/index.js +0 -11
  1120. package/dist/knowledge-artifacts/governance/install.d.ts +0 -29
  1121. package/dist/knowledge-artifacts/governance/install.js +0 -63
  1122. package/dist/knowledge-artifacts/governance/list-query.d.ts +0 -7
  1123. package/dist/knowledge-artifacts/governance/list-query.js +0 -11
  1124. package/dist/knowledge-artifacts/governance/list-view.d.ts +0 -67
  1125. package/dist/knowledge-artifacts/governance/list-view.js +0 -77
  1126. package/dist/knowledge-artifacts/governance/observe-feedback.d.ts +0 -73
  1127. package/dist/knowledge-artifacts/governance/observe-feedback.js +0 -59
  1128. package/dist/knowledge-artifacts/governance/promote-gate.d.ts +0 -34
  1129. package/dist/knowledge-artifacts/governance/promote-gate.js +0 -32
  1130. package/dist/knowledge-artifacts/governance/source-probe.d.ts +0 -15
  1131. package/dist/knowledge-artifacts/governance/source-probe.js +0 -129
  1132. package/dist/knowledge-artifacts/governance/store.d.ts +0 -145
  1133. package/dist/knowledge-artifacts/governance/store.js +0 -594
  1134. package/dist/knowledge-artifacts/sources/artifact-resolution.d.ts +0 -184
  1135. package/dist/knowledge-artifacts/sources/artifact-resolution.js +0 -818
  1136. package/dist/knowledge-artifacts/sources/content-hash.js +0 -117
  1137. package/dist/knowledge-artifacts/sources/deploy-artifact.js +0 -65
  1138. package/dist/knowledge-artifacts/sources/install-source.d.ts +0 -37
  1139. package/dist/knowledge-artifacts/sources/install-source.js +0 -124
  1140. package/dist/knowledge-artifacts/sources/materialize-copy.d.ts +0 -37
  1141. package/dist/knowledge-artifacts/sources/materialize-copy.js +0 -193
  1142. package/dist/observability/agents/collect.d.ts +0 -105
  1143. package/dist/observability/agents/collect.js +0 -686
  1144. package/dist/observability/agents/index.d.ts +0 -19
  1145. package/dist/observability/agents/index.js +0 -13
  1146. package/dist/observability/agents/local-catalog.js +0 -101
  1147. package/dist/observability/analysis/coverage-analyzer.js +0 -258
  1148. package/dist/observability/analysis/gap-analyzer.d.ts +0 -110
  1149. package/dist/observability/analysis/gap-analyzer.js +0 -455
  1150. package/dist/observability/analysis/hedging-classifier.js +0 -142
  1151. package/dist/observability/application.d.ts +0 -18
  1152. package/dist/observability/application.js +0 -12
  1153. package/dist/observability/contracts/experience-enums.d.ts +0 -228
  1154. package/dist/observability/contracts/experience-evidence-schema.d.ts +0 -33532
  1155. package/dist/observability/contracts/experience.d.ts +0 -80
  1156. package/dist/observability/contracts/inbox.d.ts +0 -181
  1157. package/dist/observability/contracts/skill-chain.d.ts +0 -114
  1158. package/dist/observability/conversation/catalog.d.ts +0 -56
  1159. package/dist/observability/conversation/catalog.js +0 -593
  1160. package/dist/observability/conversation/polling-subscription-hub.js +0 -149
  1161. package/dist/observability/experience/report-assembly.js +0 -808
  1162. package/dist/observability/experience/report-derivations.js +0 -283
  1163. package/dist/observability/experience/session-story.js +0 -303
  1164. package/dist/observability/experience/text-signals.d.ts +0 -7
  1165. package/dist/observability/experience/text-signals.js +0 -30
  1166. package/dist/observability/experience/timeline.d.ts +0 -29
  1167. package/dist/observability/experience/timeline.js +0 -521
  1168. package/dist/observability/inbox/feedback-matchers.d.ts +0 -40
  1169. package/dist/observability/inbox/feedback-matchers.js +0 -260
  1170. package/dist/observability/inbox/index.d.ts +0 -13
  1171. package/dist/observability/inbox/index.js +0 -6
  1172. package/dist/observability/inbox/paths.d.ts +0 -30
  1173. package/dist/observability/inbox/paths.js +0 -87
  1174. package/dist/observability/inbox/problem-patterns.js +0 -246
  1175. package/dist/observability/inbox/report-building.d.ts +0 -18
  1176. package/dist/observability/inbox/report-building.js +0 -595
  1177. package/dist/observability/inbox/report-primitives.js +0 -85
  1178. package/dist/observability/inbox/report-store.js +0 -516
  1179. package/dist/observability/inbox/source-record-archive.d.ts +0 -14
  1180. package/dist/observability/inbox/source-record-archive.js +0 -328
  1181. package/dist/observability/knowledge-extraction/adapters/executor.d.ts +0 -3
  1182. package/dist/observability/knowledge-extraction/adapters/executor.js +0 -38
  1183. package/dist/observability/knowledge-extraction/adapters/knowledge-store.d.ts +0 -13
  1184. package/dist/observability/knowledge-extraction/adapters/knowledge-store.js +0 -68
  1185. package/dist/observability/knowledge-extraction/adapters/run-store.d.ts +0 -11
  1186. package/dist/observability/knowledge-extraction/adapters/run-store.js +0 -49
  1187. package/dist/observability/knowledge-extraction/adapters/trace-evidence.d.ts +0 -12
  1188. package/dist/observability/knowledge-extraction/adapters/trace-evidence.js +0 -160
  1189. package/dist/observability/knowledge-extraction/application.d.ts +0 -1061
  1190. package/dist/observability/knowledge-extraction/application.js +0 -155
  1191. package/dist/observability/knowledge-extraction/local.d.ts +0 -3
  1192. package/dist/observability/knowledge-extraction/local.js +0 -21
  1193. package/dist/observability/knowledge-extraction/prompt.d.ts +0 -2
  1194. package/dist/observability/knowledge-extraction/prompt.js +0 -13
  1195. package/dist/observability/knowledge-extraction/proposals.d.ts +0 -168
  1196. package/dist/observability/knowledge-extraction/proposals.js +0 -57
  1197. package/dist/observability/knowledge-extraction/runs.d.ts +0 -263
  1198. package/dist/observability/knowledge-extraction/runs.js +0 -25
  1199. package/dist/observability/skill-health/analyzer.d.ts +0 -129
  1200. package/dist/observability/skill-health/analyzer.js +0 -328
  1201. package/dist/observability/skill-health/experience-frontmatter.js +0 -99
  1202. package/dist/observability/skill-health/persistence.d.ts +0 -18
  1203. package/dist/observability/skill-health/persistence.js +0 -43
  1204. package/dist/observability/skill-health/skill-chain.js +0 -486
  1205. package/dist/observability/soft-standards/constants.d.ts +0 -3
  1206. package/dist/observability/soft-standards/constants.js +0 -8
  1207. package/dist/observability/soft-standards/llm-extractor.js +0 -693
  1208. package/dist/observability/soft-standards/runtime-evaluator.js +0 -384
  1209. package/dist/observability/soft-standards/skill-standards-store.d.ts +0 -11
  1210. package/dist/observability/soft-standards/skill-standards-store.js +0 -240
  1211. package/dist/observability/soft-standards/types.d.ts +0 -213
  1212. package/dist/observability/trace/adapters/claude/record-events.js +0 -297
  1213. package/dist/observability/trace/adapters/codex/pending-tool-events.js +0 -100
  1214. package/dist/observability/trace/adapters/codex/tool-event-factory.js +0 -20
  1215. package/dist/observability/trace/adapters/codex/tool-events.js +0 -183
  1216. package/dist/observability/trace/adapters/codex/tool-status.js +0 -114
  1217. package/dist/observability/trace/adapters/codex/turn-events.js +0 -126
  1218. package/dist/observability/trace/adapters/dsh/trace.d.ts +0 -18
  1219. package/dist/observability/trace/adapters/dsh/trace.js +0 -355
  1220. package/dist/observability/trace/adapters/jsonl-records.js +0 -67
  1221. package/dist/observability/trace/adapters/openclaw/record-events.js +0 -192
  1222. package/dist/observability/trace/adapters/qoder/trace.js +0 -477
  1223. package/dist/observability/trace/segmentation.js +0 -491
  1224. package/dist/observability/trace/tool-search.js +0 -160
  1225. package/dist/observability/trace/zstd-frames.js +0 -166
  1226. package/dist/observability/view-models/index.d.ts +0 -7
  1227. package/dist/studio/application/knowledge/managed-format.d.ts +0 -58
  1228. package/dist/studio/application/knowledge/managed-format.js +0 -113
  1229. package/dist/studio/http/managed-root.d.ts +0 -12
  1230. package/dist/studio/http/managed-root.js +0 -19
  1231. package/dist/studio/http/pages/managed-page.d.ts +0 -30
  1232. package/dist/studio/http/pages/managed-page.js +0 -44
  1233. package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js +0 -1
  1234. package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js.nft.json +0 -1
  1235. package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page_client-reference-manifest.js +0 -1
  1236. package/dist/studio/web/.next/server/app/knowledge/managed/page.js +0 -1
  1237. package/dist/studio/web/.next/server/app/knowledge/managed/page.js.nft.json +0 -1
  1238. package/dist/studio/web/.next/server/app/knowledge/managed/page_client-reference-manifest.js +0 -1
  1239. package/dist/studio/web/.next/server/chunks/335.js +0 -53
  1240. package/dist/studio/web/.next/server/chunks/374.js +0 -16
  1241. package/dist/studio/web/.next/server/chunks/584.js +0 -16
  1242. package/dist/studio/web/.next/server/chunks/740.js +0 -3
  1243. package/dist/studio/web/.next/server/chunks/789.js +0 -6
  1244. package/dist/studio/web/.next/server/chunks/827.js +0 -583
  1245. package/dist/studio/web/.next/server/chunks/84.js +0 -4
  1246. package/dist/studio/web/.next/server/chunks/881.js +0 -1
  1247. package/dist/studio/web/.next/server/chunks/955.js +0 -1
  1248. package/dist/studio/web/.next/static/Ahppnr7sbzLwhsw77RqCy/_buildManifest.js +0 -1
  1249. package/dist/studio/web/.next/static/chunks/0937d497-e4b3c577da4da67b.js +0 -1
  1250. package/dist/studio/web/.next/static/chunks/1858-3ad7971aef7540de.js +0 -52
  1251. package/dist/studio/web/.next/static/chunks/2038-b941bab2ee1ef91a.js +0 -1
  1252. package/dist/studio/web/.next/static/chunks/258-9e85d3d73100f7d7.js +0 -10
  1253. package/dist/studio/web/.next/static/chunks/2666-022e0893a8ce80b1.js +0 -4
  1254. package/dist/studio/web/.next/static/chunks/285-ee2bde496eae900b.js +0 -86
  1255. package/dist/studio/web/.next/static/chunks/2953-32389c228338c03f.js +0 -53
  1256. package/dist/studio/web/.next/static/chunks/3958-b95d9b60fc7f9eaf.js +0 -1
  1257. package/dist/studio/web/.next/static/chunks/4684-62296d31718b47b2.js +0 -1
  1258. package/dist/studio/web/.next/static/chunks/5067-75d71f6808309f44.js +0 -6
  1259. package/dist/studio/web/.next/static/chunks/5669-9f0ec3bc92ab3392.js +0 -3
  1260. package/dist/studio/web/.next/static/chunks/5810-594b07e59946b7ae.js +0 -8
  1261. package/dist/studio/web/.next/static/chunks/5834-ceadd3ef88dd5027.js +0 -1
  1262. package/dist/studio/web/.next/static/chunks/6651-392fd48cf473d253.js +0 -16
  1263. package/dist/studio/web/.next/static/chunks/6698-fe3dadb4c5aa013d.js +0 -9
  1264. package/dist/studio/web/.next/static/chunks/7576-0651db5aa8473f62.js +0 -142
  1265. package/dist/studio/web/.next/static/chunks/8284-399476b82eb468d0.js +0 -1
  1266. package/dist/studio/web/.next/static/chunks/8791-cc9640eb97b0ac98.js +0 -1
  1267. package/dist/studio/web/.next/static/chunks/900-afd29ea08f2e1714.js +0 -1
  1268. package/dist/studio/web/.next/static/chunks/9688-8fc2ea8f15ab0642.js +0 -1
  1269. package/dist/studio/web/.next/static/chunks/9804-2d943d62c12ddbd6.js +0 -16
  1270. package/dist/studio/web/.next/static/chunks/9953-e991c2f9674aeb7b.js +0 -1
  1271. package/dist/studio/web/.next/static/chunks/app/agents/page-5566ed76365fc033.js +0 -1
  1272. package/dist/studio/web/.next/static/chunks/app/error-da3a9e3657f1dc15.js +0 -1
  1273. package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-8f6377569b01b64e.js +0 -1
  1274. package/dist/studio/web/.next/static/chunks/app/knowledge/managed/[managedId]/page-e8aa43310b5ab528.js +0 -1
  1275. package/dist/studio/web/.next/static/chunks/app/knowledge/managed/page-cbae9028d8b57dcf.js +0 -1
  1276. package/dist/studio/web/.next/static/chunks/app/knowledge/page-92a6b1ddc3e44d8b.js +0 -1
  1277. package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-082ada30d2554c7e.js +0 -1
  1278. package/dist/studio/web/.next/static/chunks/app/layout-872f1dfcd7ede526.js +0 -1
  1279. package/dist/studio/web/.next/static/chunks/app/loading-459503db9bf76ee0.js +0 -1
  1280. package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-1b6e584362fa1fc7.js +0 -1
  1281. package/dist/studio/web/.next/static/chunks/app/measure/page-94c52f9a44a8b88e.js +0 -1
  1282. package/dist/studio/web/.next/static/chunks/app/not-found-5b86ee2b9fd19a95.js +0 -1
  1283. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-327796657a0b2692.js +0 -1
  1284. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-1c806e81831e69b9.js +0 -1
  1285. package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-41dd612e29247f6f.js +0 -1
  1286. package/dist/studio/web/.next/static/chunks/app/observe/health/page-66161c7025058683.js +0 -1
  1287. package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-373e7ca6f18a4594.js +0 -1
  1288. package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-923860677b6af0ad.js +0 -1
  1289. package/dist/studio/web/.next/static/chunks/app/observe/page-ff04bfbae9e9c409.js +0 -1
  1290. package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-4711e930a7c6a790.js +0 -1
  1291. package/dist/studio/web/.next/static/chunks/framework-9d2daf55218bfcdb.js +0 -1
  1292. package/dist/studio/web/.next/static/chunks/main-be4276342bf776ea.js +0 -5
  1293. package/dist/studio/web/.next/static/css/bc117f6d956d35b6.css +0 -1
  1294. /package/dist/{diagnosis/contracts.js → eval-core/evaluation/runtime-state.js} +0 -0
  1295. /package/dist/{evidence/graph/contracts.js → eval-core/execution/runtime-state.js} +0 -0
  1296. /package/dist/eval-runtime/{clock.js → execution/clock.js} +0 -0
  1297. /package/dist/eval-runtime/{tool-policy.d.ts → resources/tool-policy.d.ts} +0 -0
  1298. /package/dist/{evidence/storage → eval-workflows/artifact-store}/run-id.d.ts +0 -0
  1299. /package/dist/{knowledge-artifacts/contracts.js → eval-workflows/projections/carrier-measurement.js} +0 -0
  1300. /package/dist/{knowledge-artifacts/doctor/contracts.js → executors/contracts/archive.js} +0 -0
  1301. /package/dist/executors/{core → contracts}/token-usage.d.ts +0 -0
  1302. /package/dist/executors/{core → contracts}/token-usage.js +0 -0
  1303. /package/dist/executors/{core → contracts}/tool-identity.js +0 -0
  1304. /package/dist/{knowledge-artifacts/governance/contracts.js → knowledge/artifacts/authoring/carrier-contracts.js} +0 -0
  1305. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.d.ts +0 -0
  1306. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.js +0 -0
  1307. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/scaffold.d.ts +0 -0
  1308. /package/dist/{knowledge-artifacts → knowledge/artifacts}/contracts.d.ts +0 -0
  1309. /package/dist/{knowledge-artifacts/skills → knowledge/artifacts}/contracts.js +0 -0
  1310. /package/dist/{observability/analysis → knowledge/artifacts/doctor}/contracts.js +0 -0
  1311. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/endpoint-rule.d.ts +0 -0
  1312. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/fixer.d.ts +0 -0
  1313. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.d.ts +0 -0
  1314. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.js +0 -0
  1315. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.d.ts +0 -0
  1316. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.js +0 -0
  1317. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.d.ts +0 -0
  1318. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.js +0 -0
  1319. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.d.ts +0 -0
  1320. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.js +0 -0
  1321. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.d.ts +0 -0
  1322. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.js +0 -0
  1323. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.d.ts +0 -0
  1324. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.js +0 -0
  1325. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.d.ts +0 -0
  1326. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.js +0 -0
  1327. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.d.ts +0 -0
  1328. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.js +0 -0
  1329. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.d.ts +0 -0
  1330. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.js +0 -0
  1331. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/index.d.ts +0 -0
  1332. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/persistence.d.ts +0 -0
  1333. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/renderer.js +0 -0
  1334. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-parser.d.ts +0 -0
  1335. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.d.ts +0 -0
  1336. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.js +0 -0
  1337. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.d.ts +0 -0
  1338. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.js +0 -0
  1339. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/contracts.d.ts +0 -0
  1340. /package/dist/{observability/contracts/experience.js → knowledge/artifacts/skills/contracts.js} +0 -0
  1341. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.d.ts +0 -0
  1342. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.js +0 -0
  1343. /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/content-hash.d.ts +0 -0
  1344. /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/deploy-artifact.d.ts +0 -0
  1345. /package/dist/{observability/knowledge-extraction → knowledge/extraction}/evidence.d.ts +0 -0
  1346. /package/dist/{observability/knowledge-extraction → knowledge/extraction}/evidence.js +0 -0
  1347. /package/dist/{observability/contracts/inbox.js → knowledge/sources/source-store.js} +0 -0
  1348. /package/dist/{observability → observe}/agents/contracts.d.ts +0 -0
  1349. /package/dist/{observability → observe}/agents/contracts.js +0 -0
  1350. /package/dist/{observability → observe}/agents/detect.d.ts +0 -0
  1351. /package/dist/{observability → observe}/agents/detect.js +0 -0
  1352. /package/dist/{observability → observe}/agents/fs-ports.d.ts +0 -0
  1353. /package/dist/{observability → observe}/agents/fs-ports.js +0 -0
  1354. /package/dist/{observability → observe}/agents/local-catalog.d.ts +0 -0
  1355. /package/dist/{observability → observe}/agents/registry.d.ts +0 -0
  1356. /package/dist/{observability → observe}/agents/registry.js +0 -0
  1357. /package/dist/{observability → observe}/agents/scan.d.ts +0 -0
  1358. /package/dist/{observability → observe}/agents/scan.js +0 -0
  1359. /package/dist/{observability → observe}/analysis/contracts.d.ts +0 -0
  1360. /package/dist/{observability/contracts/problem-patterns.js → observe/analysis/contracts.js} +0 -0
  1361. /package/dist/{observability → observe}/analysis/coverage-analyzer.d.ts +0 -0
  1362. /package/dist/{observability → observe}/analysis/hedging-classifier.d.ts +0 -0
  1363. /package/dist/{observability → observe}/contracts/experience-enums.js +0 -0
  1364. /package/dist/{observability → observe}/contracts/experience-evidence-schema.js +0 -0
  1365. /package/dist/{observability/contracts/review.js → observe/contracts/experience.js} +0 -0
  1366. /package/dist/{observability/contracts/skill-chain-advisories.js → observe/contracts/inbox.js} +0 -0
  1367. /package/dist/{observability → observe}/contracts/problem-patterns.d.ts +0 -0
  1368. /package/dist/{observability/contracts/skill-chain.js → observe/contracts/problem-patterns.js} +0 -0
  1369. /package/dist/{observability → observe}/contracts/review.d.ts +0 -0
  1370. /package/dist/{observability/contracts/trace.js → observe/contracts/review.js} +0 -0
  1371. /package/dist/{observability → observe}/contracts/skill-chain-advisories.d.ts +0 -0
  1372. /package/dist/{observability/conversation/index-process.d.ts → observe/contracts/skill-chain-advisories.js} +0 -0
  1373. /package/dist/{observability/soft-standards/types.js → observe/contracts/skill-chain.js} +0 -0
  1374. /package/dist/{observability → observe}/contracts/trace-metadata-schema.d.ts +0 -0
  1375. /package/dist/{observability → observe}/contracts/trace-metadata-schema.js +0 -0
  1376. /package/dist/{observability → observe}/contracts/trace.d.ts +0 -0
  1377. /package/dist/{observability/view-models/conversation.js → observe/contracts/trace.js} +0 -0
  1378. /package/dist/{observability/view-models/index.js → observe/conversation/index-process.d.ts} +0 -0
  1379. /package/dist/{observability → observe}/conversation/index-process.js +0 -0
  1380. /package/dist/{observability → observe}/conversation/knowledge-debugger.d.ts +0 -0
  1381. /package/dist/{observability → observe}/conversation/knowledge-debugger.js +0 -0
  1382. /package/dist/{observability → observe}/conversation/polling-subscription-hub.d.ts +0 -0
  1383. /package/dist/{observability → observe}/conversation/project.d.ts +0 -0
  1384. /package/dist/{observability → observe}/conversation/project.js +0 -0
  1385. /package/dist/{observability → observe}/conversation/task-semantic-projection.d.ts +0 -0
  1386. /package/dist/{observability → observe}/conversation/task-semantic-projection.js +0 -0
  1387. /package/dist/{observability → observe}/conversation/task-window.d.ts +0 -0
  1388. /package/dist/{observability → observe}/conversation/task-window.js +0 -0
  1389. /package/dist/{observability → observe}/conversation/turn-index.d.ts +0 -0
  1390. /package/dist/{observability → observe}/conversation/turn-index.js +0 -0
  1391. /package/dist/{diagnosis → observe/diagnosis}/contracts/parser.d.ts +0 -0
  1392. /package/dist/{diagnosis → observe/diagnosis}/contracts.d.ts +0 -0
  1393. /package/dist/{observability/view-models/knowledge-debugger.js → observe/diagnosis/contracts.js} +0 -0
  1394. /package/dist/{diagnosis → observe/diagnosis}/lifecycle.d.ts +0 -0
  1395. /package/dist/{diagnosis → observe/diagnosis}/lifecycle.js +0 -0
  1396. /package/dist/{diagnosis → observe/diagnosis}/observe-mapper.d.ts +0 -0
  1397. /package/dist/{diagnosis → observe/diagnosis}/studio-projection.d.ts +0 -0
  1398. /package/dist/{observability → observe}/experience/primitives.d.ts +0 -0
  1399. /package/dist/{observability → observe}/experience/primitives.js +0 -0
  1400. /package/dist/{observability → observe}/experience/report-assembly.d.ts +0 -0
  1401. /package/dist/{observability → observe}/experience/report-codec.d.ts +0 -0
  1402. /package/dist/{observability → observe}/experience/report-codec.js +0 -0
  1403. /package/dist/{observability → observe}/experience/report-derivations.d.ts +0 -0
  1404. /package/dist/{observability → observe}/experience/report-reference-validator.d.ts +0 -0
  1405. /package/dist/{observability → observe}/experience/report-reference-validator.js +0 -0
  1406. /package/dist/{observability → observe}/experience/report-structure.d.ts +0 -0
  1407. /package/dist/{observability → observe}/experience/report-structure.js +0 -0
  1408. /package/dist/{observability → observe}/experience/report-value-guards.d.ts +0 -0
  1409. /package/dist/{observability → observe}/experience/report-value-guards.js +0 -0
  1410. /package/dist/{observability → observe}/experience/review-checklist.d.ts +0 -0
  1411. /package/dist/{observability → observe}/experience/review-checklist.js +0 -0
  1412. /package/dist/{observability → observe}/experience/reviewer-report.d.ts +0 -0
  1413. /package/dist/{observability → observe}/experience/reviewer-report.js +0 -0
  1414. /package/dist/{observability → observe}/experience/session-story-episodes.d.ts +0 -0
  1415. /package/dist/{observability → observe}/experience/session-story-episodes.js +0 -0
  1416. /package/dist/{observability → observe}/experience/session-story-evidence.d.ts +0 -0
  1417. /package/dist/{observability → observe}/experience/session-story-evidence.js +0 -0
  1418. /package/dist/{observability → observe}/experience/session-story-feedback.d.ts +0 -0
  1419. /package/dist/{observability → observe}/experience/session-story-feedback.js +0 -0
  1420. /package/dist/{observability → observe}/experience/session-story-orchestration.d.ts +0 -0
  1421. /package/dist/{observability → observe}/experience/session-story-orchestration.js +0 -0
  1422. /package/dist/{observability → observe}/experience/session-story-segments.d.ts +0 -0
  1423. /package/dist/{observability → observe}/experience/session-story-segments.js +0 -0
  1424. /package/dist/{observability → observe}/experience/session-story.d.ts +0 -0
  1425. /package/dist/{observability → observe}/experience.d.ts +0 -0
  1426. /package/dist/{observability → observe}/experience.js +0 -0
  1427. /package/dist/{observability → observe}/inbox/capture-coverage.d.ts +0 -0
  1428. /package/dist/{observability → observe}/inbox/capture-coverage.js +0 -0
  1429. /package/dist/{observability → observe}/inbox/effective-review.d.ts +0 -0
  1430. /package/dist/{observability → observe}/inbox/effective-review.js +0 -0
  1431. /package/dist/{observability → observe}/inbox/explicit-capture.d.ts +0 -0
  1432. /package/dist/{observability → observe}/inbox/explicit-capture.js +0 -0
  1433. /package/dist/{observability → observe}/inbox/identity.d.ts +0 -0
  1434. /package/dist/{observability → observe}/inbox/identity.js +0 -0
  1435. /package/dist/{observability → observe}/inbox/metric-semantics.d.ts +0 -0
  1436. /package/dist/{observability → observe}/inbox/metric-semantics.js +0 -0
  1437. /package/dist/{observability → observe}/inbox/problem-patterns.d.ts +0 -0
  1438. /package/dist/{observability → observe}/inbox/report-filter.d.ts +0 -0
  1439. /package/dist/{observability → observe}/inbox/report-filter.js +0 -0
  1440. /package/dist/{observability → observe}/inbox/report-presentation.d.ts +0 -0
  1441. /package/dist/{observability → observe}/inbox/report-presentation.js +0 -0
  1442. /package/dist/{observability → observe}/inbox/report-primitives.d.ts +0 -0
  1443. /package/dist/{observability → observe}/inbox/report-store.d.ts +0 -0
  1444. /package/dist/{observability → observe}/inbox/resolved-review.d.ts +0 -0
  1445. /package/dist/{observability → observe}/inbox/resolved-review.js +0 -0
  1446. /package/dist/{observability → observe}/inbox/review-semantics.d.ts +0 -0
  1447. /package/dist/{observability → observe}/inbox/review-semantics.js +0 -0
  1448. /package/dist/{observability → observe}/inbox/review-state.d.ts +0 -0
  1449. /package/dist/{observability → observe}/inbox/review-state.js +0 -0
  1450. /package/dist/{observability → observe}/inbox/session-time-range.d.ts +0 -0
  1451. /package/dist/{observability → observe}/inbox/session-time-range.js +0 -0
  1452. /package/dist/{observability → observe}/inbox/severity-reason.d.ts +0 -0
  1453. /package/dist/{observability → observe}/inbox/severity-reason.js +0 -0
  1454. /package/dist/{observability → observe}/inbox/signal-semantics.d.ts +0 -0
  1455. /package/dist/{observability → observe}/inbox/signal-semantics.js +0 -0
  1456. /package/dist/{observability → observe}/inbox/skill-chains.d.ts +0 -0
  1457. /package/dist/{observability → observe}/inbox/skill-chains.js +0 -0
  1458. /package/dist/{observability → observe}/inbox/skill-rollups.d.ts +0 -0
  1459. /package/dist/{observability → observe}/inbox/skill-rollups.js +0 -0
  1460. /package/dist/{observability → observe}/inbox/view-model.d.ts +0 -0
  1461. /package/dist/{observability → observe}/inbox/view-model.js +0 -0
  1462. /package/dist/{observability → observe}/presentation.d.ts +0 -0
  1463. /package/dist/{observability → observe}/presentation.js +0 -0
  1464. /package/dist/{observability → observe}/prompts/document.d.ts +0 -0
  1465. /package/dist/{observability → observe}/prompts/document.js +0 -0
  1466. /package/dist/{observability → observe}/prompts/llm-enhanced-review.prompt.md +0 -0
  1467. /package/dist/{observability → observe}/skill-health/advisories.d.ts +0 -0
  1468. /package/dist/{observability → observe}/skill-health/advisories.js +0 -0
  1469. /package/dist/{observability → observe}/skill-health/experience-frontmatter.d.ts +0 -0
  1470. /package/dist/{observability → observe}/skill-health/report.d.ts +0 -0
  1471. /package/dist/{observability → observe}/skill-health/report.js +0 -0
  1472. /package/dist/{observability → observe}/skill-health/skill-chain.d.ts +0 -0
  1473. /package/dist/{observability → observe}/soft-standards/index.d.ts +0 -0
  1474. /package/dist/{observability → observe}/soft-standards/index.js +0 -0
  1475. /package/dist/{observability → observe}/soft-standards/llm-extractor.d.ts +0 -0
  1476. /package/dist/{observability → observe}/soft-standards/runtime-evaluator.d.ts +0 -0
  1477. /package/dist/{observability → observe}/soft-standards/runtime-evidence.d.ts +0 -0
  1478. /package/dist/{observability → observe}/soft-standards/runtime-evidence.js +0 -0
  1479. /package/dist/{observability → observe}/trace/adapters/claude/record-events.d.ts +0 -0
  1480. /package/dist/{observability → observe}/trace/adapters/claude/record-schema.d.ts +0 -0
  1481. /package/dist/{observability → observe}/trace/adapters/claude/record-schema.js +0 -0
  1482. /package/dist/{observability → observe}/trace/adapters/claude/trace.d.ts +0 -0
  1483. /package/dist/{observability → observe}/trace/adapters/claude/trace.js +0 -0
  1484. /package/dist/{observability → observe}/trace/adapters/codex/context-events.d.ts +0 -0
  1485. /package/dist/{observability → observe}/trace/adapters/codex/context-events.js +0 -0
  1486. /package/dist/{observability → observe}/trace/adapters/codex/conversation-events.d.ts +0 -0
  1487. /package/dist/{observability → observe}/trace/adapters/codex/conversation-events.js +0 -0
  1488. /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.d.ts +0 -0
  1489. /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.js +0 -0
  1490. /package/dist/{observability → observe}/trace/adapters/codex/conversion-contract.d.ts +0 -0
  1491. /package/dist/{observability → observe}/trace/adapters/codex/conversion-contract.js +0 -0
  1492. /package/dist/{observability → observe}/trace/adapters/codex/exec-command.d.ts +0 -0
  1493. /package/dist/{observability → observe}/trace/adapters/codex/exec-command.js +0 -0
  1494. /package/dist/{observability → observe}/trace/adapters/codex/item-views.d.ts +0 -0
  1495. /package/dist/{observability → observe}/trace/adapters/codex/item-views.js +0 -0
  1496. /package/dist/{observability → observe}/trace/adapters/codex/pending-tool-events.d.ts +0 -0
  1497. /package/dist/{observability → observe}/trace/adapters/codex/protocol.d.ts +0 -0
  1498. /package/dist/{observability → observe}/trace/adapters/codex/protocol.js +0 -0
  1499. /package/dist/{observability → observe}/trace/adapters/codex/record-conversion.d.ts +0 -0
  1500. /package/dist/{observability → observe}/trace/adapters/codex/record-conversion.js +0 -0
  1501. /package/dist/{observability → observe}/trace/adapters/codex/record-fields.d.ts +0 -0
  1502. /package/dist/{observability → observe}/trace/adapters/codex/record-fields.js +0 -0
  1503. /package/dist/{observability → observe}/trace/adapters/codex/record-indexes.d.ts +0 -0
  1504. /package/dist/{observability → observe}/trace/adapters/codex/record-indexes.js +0 -0
  1505. /package/dist/{observability → observe}/trace/adapters/codex/record-text.d.ts +0 -0
  1506. /package/dist/{observability → observe}/trace/adapters/codex/record-text.js +0 -0
  1507. /package/dist/{observability → observe}/trace/adapters/codex/tool-event-factory.d.ts +0 -0
  1508. /package/dist/{observability → observe}/trace/adapters/codex/tool-events.d.ts +0 -0
  1509. /package/dist/{observability → observe}/trace/adapters/codex/tool-status.d.ts +0 -0
  1510. /package/dist/{observability → observe}/trace/adapters/codex/trace.d.ts +0 -0
  1511. /package/dist/{observability → observe}/trace/adapters/codex/trace.js +0 -0
  1512. /package/dist/{observability → observe}/trace/adapters/codex/turn-events.d.ts +0 -0
  1513. /package/dist/{observability → observe}/trace/adapters/jsonl-records.d.ts +0 -0
  1514. /package/dist/{observability → observe}/trace/adapters/markdown/trace.d.ts +0 -0
  1515. /package/dist/{observability → observe}/trace/adapters/markdown/trace.js +0 -0
  1516. /package/dist/{observability → observe}/trace/adapters/openclaw/record-events.d.ts +0 -0
  1517. /package/dist/{observability → observe}/trace/adapters/openclaw/trace.d.ts +0 -0
  1518. /package/dist/{observability → observe}/trace/adapters/openclaw/trace.js +0 -0
  1519. /package/dist/{observability → observe}/trace/adapters/qoder/trace.d.ts +0 -0
  1520. /package/dist/{observability → observe}/trace/attribution.d.ts +0 -0
  1521. /package/dist/{observability → observe}/trace/attribution.js +0 -0
  1522. /package/dist/{observability → observe}/trace/index.d.ts +0 -0
  1523. /package/dist/{observability → observe}/trace/index.js +0 -0
  1524. /package/dist/{observability → observe}/trace/ingestion.d.ts +0 -0
  1525. /package/dist/{observability → observe}/trace/ingestion.js +0 -0
  1526. /package/dist/{observability → observe}/trace/message-classification.d.ts +0 -0
  1527. /package/dist/{observability → observe}/trace/message-classification.js +0 -0
  1528. /package/dist/{observability → observe}/trace/projection.d.ts +0 -0
  1529. /package/dist/{observability → observe}/trace/projection.js +0 -0
  1530. /package/dist/{observability → observe}/trace/segmentation.d.ts +0 -0
  1531. /package/dist/{observability → observe}/trace/session-index.d.ts +0 -0
  1532. /package/dist/{observability → observe}/trace/session-index.js +0 -0
  1533. /package/dist/{observability → observe}/trace/source.d.ts +0 -0
  1534. /package/dist/{observability → observe}/trace/source.js +0 -0
  1535. /package/dist/{observability → observe}/trace/streamed-records.d.ts +0 -0
  1536. /package/dist/{observability → observe}/trace/streamed-records.js +0 -0
  1537. /package/dist/{observability → observe}/trace/tool-search.d.ts +0 -0
  1538. /package/dist/{observability → observe}/trace/trace-ir.d.ts +0 -0
  1539. /package/dist/{observability → observe}/trace/trace-ir.js +0 -0
  1540. /package/dist/{observability → observe}/trace/unknown-disposition.d.ts +0 -0
  1541. /package/dist/{observability → observe}/trace/unknown-disposition.js +0 -0
  1542. /package/dist/{observability → observe}/trace/zstd-frames.d.ts +0 -0
  1543. /package/dist/{observability → observe}/view-models/conversation.d.ts +0 -0
  1544. /package/dist/{observability → observe}/view-models/knowledge-debugger.d.ts +0 -0
  1545. /package/dist/{evidence/graph → storage/artifact-graph}/contracts.d.ts +0 -0
  1546. /package/dist/{evidence/graph → storage/artifact-graph}/schema.d.ts +0 -0
  1547. /package/dist/{evidence/graph → storage/artifact-graph}/schema.js +0 -0
  1548. /package/dist/{evidence/storage → storage}/directory-selection.d.ts +0 -0
  1549. /package/dist/{evidence/storage → storage}/directory-selection.js +0 -0
  1550. /package/dist/{evidence/storage → storage}/report-bundle.d.ts +0 -0
  1551. /package/dist/studio/web/.next/static/{Ahppnr7sbzLwhsw77RqCy → pt5Rgfsq8ItsRzlq_ZEPl}/_ssgManifest.js +0 -0
@@ -6,35 +6,9 @@ import { Args, Flags, Errors } from '@oclif/core';
6
6
  import { LANG_FLAG, bilingual } from '../oclif/i18n.js';
7
7
  import { BaseCommand } from '../oclif/base-command.js';
8
8
  import { tCli } from '../lib/i18n.js';
9
- import { resolveInstallSource, resolveRemoteGitSource, usingInstallSource, SourceResolveError } from '../../knowledge-artifacts/sources/install-source.js';
10
- import { managedDir } from '../../knowledge-artifacts/governance/index.js';
11
- import { installManagedArtifact, InstallRegistrationError } from '../../knowledge-artifacts/governance/install.js';
12
- import { replaceDeployedArtifact } from '../../knowledge-artifacts/sources/deploy-artifact.js';
13
- function localizeInstallationError(error, lang) {
14
- if (error instanceof InstallRegistrationError && lang === 'zh') {
15
- return new Error(`分发已完成,但治理登记失败:${error.paths.join('、')}。请修复受管目录 ${error.store} 后,以相同参数加 --force 重试登记。`, { cause: error });
16
- }
17
- if (error instanceof AggregateError) {
18
- const errors = error.errors.map((item) => localizeInstallationError(item, lang));
19
- return new AggregateError(errors, errors.map(String).join('; '));
20
- }
21
- return error;
22
- }
9
+ import { resolveInstallSource, resolveRemoteGitSource, usingInstallSource, SourceResolveError } from '../../knowledge/artifacts/sources/install-source.js';
10
+ import { replaceDeployedArtifact } from '../../knowledge/artifacts/sources/deploy-artifact.js';
23
11
  const BUILTIN_OMK_AGENT_SKILL_ID = 'omk-agent-skill';
24
- const INSTALLABLE_KINDS = ['skill', 'prompt', 'agent', 'workflow'];
25
- const TARGET_ORDER = ['codex', 'claude'];
26
- const TARGET_SPECS = {
27
- codex: {
28
- label: 'Codex/AGENTS',
29
- skillsDir: (home) => join(home, '.agents', 'skills'),
30
- detectDirs: (home) => [join(home, '.agents'), join(home, '.codex')],
31
- },
32
- claude: {
33
- label: 'Claude Code',
34
- skillsDir: (home) => join(home, '.claude', 'skills'),
35
- detectDirs: (home) => [join(home, '.claude')],
36
- },
37
- };
38
12
  function packagedOmkAgentSkillDir() {
39
13
  const here = dirname(fileURLToPath(import.meta.url));
40
14
  const packaged = resolve(here, '..', '..', 'assets', 'agent-skills', 'omk');
@@ -43,11 +17,6 @@ function packagedOmkAgentSkillDir() {
43
17
  const workspace = resolve(here, '..', '..', '..', '.agents', 'skills', 'omk');
44
18
  return existsSync(workspace) ? workspace : packaged;
45
19
  }
46
- function knownTarget(target) {
47
- const home = homedir();
48
- const spec = TARGET_SPECS[target];
49
- return { label: spec.label, skillsDir: spec.skillsDir(home) };
50
- }
51
20
  function directoryExists(path) {
52
21
  try {
53
22
  return statSync(path).isDirectory();
@@ -56,51 +25,15 @@ function directoryExists(path) {
56
25
  return false;
57
26
  }
58
27
  }
59
- function parseTargets(raw, lang) {
60
- const parts = [...new Set(raw.split(',').map((part) => part.trim()).filter(Boolean))];
61
- if (parts.length === 0)
62
- return autoTargets();
63
- if (parts.includes('auto')) {
64
- if (parts.length > 1)
65
- throw new Errors.CLIError(tCli('cli.install.invalid_target_combo', lang, { target: raw }), { exit: 2 });
66
- return autoTargets();
67
- }
68
- if (parts.includes('all')) {
69
- if (parts.length > 1)
70
- throw new Errors.CLIError(tCli('cli.install.invalid_target_combo', lang, { target: raw }), { exit: 2 });
71
- return TARGET_ORDER;
72
- }
73
- const out = [];
74
- for (const part of parts) {
75
- if (part !== 'codex' && part !== 'claude') {
76
- throw new Errors.CLIError(tCli('cli.install.unknown_target', lang, { target: part }), { exit: 2 });
77
- }
78
- out.push(part);
79
- }
80
- return out;
81
- }
82
- function autoTargets() {
83
- const home = homedir();
84
- return TARGET_ORDER.filter((target) => TARGET_SPECS[target].detectDirs(home).some(directoryExists));
85
- }
86
28
  function resolveInstallTargets(params) {
87
29
  if (params.dest) {
88
30
  return [{ label: 'custom', skillsDir: resolve(params.dest) }];
89
31
  }
90
- const targets = parseTargets(params.to, params.lang);
91
- if (targets.length === 0) {
32
+ const home = homedir();
33
+ if (params.to === 'auto' && ![join(home, '.agents'), join(home, '.codex')].some(directoryExists)) {
92
34
  throw new Error(tCli('cli.install.no_detected_targets', params.lang));
93
35
  }
94
- const seen = new Set();
95
- return targets
96
- .map(knownTarget)
97
- .filter((target) => {
98
- const key = resolve(target.skillsDir);
99
- if (seen.has(key))
100
- return false;
101
- seen.add(key);
102
- return true;
103
- });
36
+ return [{ label: 'Codex/AGENTS', skillsDir: join(home, '.agents', 'skills') }];
104
37
  }
105
38
  /** 目标落点:目录-skill → {skillsDir}/{name};文件-skill → {skillsDir}/{name}.md。 */
106
39
  function targetArtifactPath(target, name, isDirectorySkill) {
@@ -110,14 +43,20 @@ function targetArtifactPath(target, name, isDirectorySkill) {
110
43
  function targetSkillDir(target) {
111
44
  return targetArtifactPath(target, 'omk', true);
112
45
  }
113
- /** 全部目标预检通过才拷任何一个(无部分安装)。源就是目标(就地接管)的目标跳过存在性检查。 */
46
+ /** 全部目标预检通过才拷任何一个(无部分安装)。源就是目标(已在目标位置)的目标跳过存在性检查。 */
114
47
  function validateInstallTargets(params) {
115
- if (params.dryRun || params.force)
48
+ if (params.dryRun)
116
49
  return;
117
50
  for (const targetPath of params.targetPaths) {
118
- if (params.source && classifyPaths(params.source, targetPath) === 'same')
119
- continue;
120
- if (existsSync(targetPath)) {
51
+ if (params.source) {
52
+ const relation = classifyPaths(params.source, targetPath);
53
+ if (relation === 'same')
54
+ continue;
55
+ if (relation === 'overlap') {
56
+ throw new Error(tCli('cli.install.target_overlaps_source', params.lang, { source: params.source, target: targetPath }));
57
+ }
58
+ }
59
+ if (!params.force && existsSync(targetPath)) {
121
60
  throw new Error(tCli('cli.install.target_exists', params.lang, { path: targetPath }));
122
61
  }
123
62
  }
@@ -138,7 +77,7 @@ function realPathBestEffort(p) {
138
77
  }
139
78
  /**
140
79
  * 源与目标的物理关系(解析软链):
141
- * - same:同一节点 → 就地接管(绝不删/拷);
80
+ * - same:同一节点 → 已在目标位置(绝不删/拷);
142
81
  * - overlap:一个是另一个的祖先 → rmSync(target) 会删掉源、或 cpSync 把目录拷进自身子目录,数据损坏,必须拒;
143
82
  * - disjoint:正常拷贝。
144
83
  */
@@ -153,7 +92,7 @@ function classifyPaths(source, targetPath) {
153
92
  }
154
93
  /**
155
94
  * 通用拷贝:目录递归 cp(过滤 .omk / .git / evolve 等非分发产物 + 软链)、单文件 copyFile。
156
- * 清理失败单独提示,正常结果由调用方呈现。dry-run 不写。源即目标 → 就地接管(inPlace);重叠路径拒绝。
95
+ * 清理失败单独提示,正常结果由调用方呈现。dry-run 不写。源即目标 → 已在目标位置(inPlace);重叠路径拒绝。
157
96
  */
158
97
  function copyArtifactToTarget(params) {
159
98
  if (!existsSync(params.source)) {
@@ -163,7 +102,7 @@ function copyArtifactToTarget(params) {
163
102
  return { targetPath: params.targetPath, planned: true, inPlace: false };
164
103
  }
165
104
  const relation = classifyPaths(params.source, params.targetPath);
166
- // 就地接管:源就是目标(接管已安装的 skill),绝不 rmSync 源。
105
+ // 已在目标位置:源就是目标(接管已安装的 skill),绝不 rmSync 源。
167
106
  if (relation === 'same') {
168
107
  return { targetPath: params.targetPath, planned: false, inPlace: true };
169
108
  }
@@ -188,7 +127,6 @@ function installOmkAgentSkill(params) {
188
127
  source: params.sourceDir,
189
128
  isDirectorySkill: true,
190
129
  targetPath: targetDir,
191
- skillsDir: params.target.skillsDir,
192
130
  force: params.force,
193
131
  dryRun: params.dryRun,
194
132
  lang: params.lang,
@@ -198,7 +136,7 @@ function installOmkAgentSkill(params) {
198
136
  }
199
137
  /**
200
138
  * 是否当作用户 artifact 路径(否则按 typo 的内置 id 处理,报 unknown_input)。
201
- * - 显式路径意图(含 `/`)或 `.md` 结尾 → 是(后续 installManagedSkill 经 resolver 给出精确的存在性 / SKILL.md 报错);
139
+ * - 显式路径意图(含 `/`)或 `.md` 结尾 → 是(后续 installUserSkill 经 resolver 给出精确的存在性 / SKILL.md 报错);
202
140
  * - 裸短名 → 仅当它确实解析到一个含 SKILL.md 的目录才算;裸的同名普通文件(如 cwd 里恰好有个
203
141
  * `omk-agnt-skill` 文件)不该被当成 skill 安装,落回 unknown_input。
204
142
  */
@@ -215,8 +153,8 @@ function looksLikeArtifactPath(input) {
215
153
  }
216
154
  export default class Install extends BaseCommand {
217
155
  static description = bilingual({
218
- zh: '安装 omk 官方 Agent Skill,或登记并分发用户自己的 skill(内置 id omk-agent-skill,本地路径,或 git:<ref>:<name> 取当前仓库某个 ref 的 skill)。默认写入本机已检测 agent 目标;安装用户 skill 时同时登记一条受管记录。',
219
- en: 'Install the official omk Agent Skill, or register and distribute your own skill (built-in id omk-agent-skill, a local path, or git:<ref>:<name> for a skill at a ref of the current repo). Defaults to detected local agent targets; installing a user skill also records a managed entry.',
156
+ zh: '安装 omk 官方 Agent Skill,或安装用户自己的 skill(内置 id omk-agent-skill,本地路径,或 git:<ref>:<name> 取当前仓库某个 ref 的 skill)。默认写入本机已检测 agent 目标。',
157
+ en: 'Install the official omk Agent Skill, or install your own skill (built-in id omk-agent-skill, a local path, or git:<ref>:<name> for a skill at a ref of the current repo). Defaults to detected local agent targets.',
220
158
  });
221
159
  static examples = [
222
160
  {
@@ -228,10 +166,10 @@ export default class Install extends BaseCommand {
228
166
  },
229
167
  {
230
168
  description: bilingual({
231
- zh: '强制安装到当前 omk 已知的所有目标',
232
- en: 'Install into every target currently known to omk',
169
+ zh: '直接安装到 Codex/AGENTS,无需提前检测到目录',
170
+ en: 'Install to Codex/AGENTS even when its directories are not detected',
233
171
  }),
234
- command: '<%= config.bin %> install omk-agent-skill --to all',
172
+ command: '<%= config.bin %> install omk-agent-skill --to codex',
235
173
  },
236
174
  {
237
175
  description: bilingual({
@@ -242,8 +180,8 @@ export default class Install extends BaseCommand {
242
180
  },
243
181
  {
244
182
  description: bilingual({
245
- zh: '登记并分发用户自己的 skill(--kind 可省,命中 SKILL.md 自动推导)',
246
- en: 'Register and distribute your own skill (--kind optional; inferred from SKILL.md)',
183
+ zh: '安装用户自己的 skill(可省略 --kind skill)',
184
+ en: 'Install your own skill (--kind skill is optional)',
247
185
  }),
248
186
  command: '<%= config.bin %> install ./skills/review',
249
187
  },
@@ -256,8 +194,8 @@ export default class Install extends BaseCommand {
256
194
  },
257
195
  {
258
196
  description: bilingual({
259
- zh: '从远端 git 仓库安装 skill(位置参数是仓库内路径;认证用本机 git 凭证;记录钉实际 SHA)',
260
- en: 'Install a skill from a remote git repo (positional arg is the in-repo path; auth via local git credentials; record pins the actual SHA)',
197
+ zh: '从远端 git 仓库安装 skill(位置参数是仓库内路径;认证用本机 git 凭证)',
198
+ en: 'Install a skill from a remote git repo (positional arg is the in-repo path; auth via local git credentials)',
261
199
  }),
262
200
  command: '<%= config.bin %> install --git-url https://github.com/org/repo.git --git-ref v1.0.0 skills/review',
263
201
  },
@@ -275,16 +213,17 @@ export default class Install extends BaseCommand {
275
213
  lang: LANG_FLAG,
276
214
  kind: Flags.string({
277
215
  description: bilingual({
278
- zh: '用户 artifact 的 kind(对齐 Artifact.kind)。可省:命中 SKILL.md 自动推导,当前仅支持 skill。',
279
- en: 'Kind of the user artifact (aligns with Artifact.kind). Optional: inferred from SKILL.md; only skill is supported today.',
216
+ zh: '安装的 Artifact.kind,可省略;仅支持 skill。',
217
+ en: 'Artifact.kind to install. Optional; only skill is supported.',
280
218
  }),
281
- options: INSTALLABLE_KINDS,
219
+ options: ['skill'],
282
220
  }),
283
221
  to: Flags.string({
284
222
  description: bilingual({
285
- zh: '安装目标:auto(默认,本机已检测目标) / codex / claude / all。',
286
- en: 'Install target: auto (default, detected local targets) / codex / claude / all.',
223
+ zh: '安装目标:auto(默认,检测 Codex/AGENTS)或 codex(直接安装)。',
224
+ en: 'Install target: auto (default, detect Codex/AGENTS) or codex (install directly).',
287
225
  }),
226
+ options: ['auto', 'codex'],
288
227
  default: 'auto',
289
228
  }),
290
229
  dest: Flags.string({
@@ -330,7 +269,7 @@ export default class Install extends BaseCommand {
330
269
  }
331
270
  // 远端 git:--git-url 在场时,位置参数是仓库内 spec(repo 相对路径),先于其它分支判定。
332
271
  if (flags['git-url']) {
333
- this.installManagedSkill(args.input, flags.kind, flags, lang, {
272
+ this.installUserSkill(args.input, flags, lang, {
334
273
  url: flags['git-url'],
335
274
  ref: flags['git-ref'] || 'HEAD',
336
275
  });
@@ -341,7 +280,7 @@ export default class Install extends BaseCommand {
341
280
  return;
342
281
  }
343
282
  if (args.input.startsWith('git:') || looksLikeArtifactPath(args.input)) {
344
- this.installManagedSkill(args.input, flags.kind, flags, lang);
283
+ this.installUserSkill(args.input, flags, lang);
345
284
  return;
346
285
  }
347
286
  throw new Error(tCli('cli.install.unknown_input', lang, { input: args.input }));
@@ -355,6 +294,7 @@ export default class Install extends BaseCommand {
355
294
  force: flags.force,
356
295
  dryRun: flags['dry-run'],
357
296
  lang,
297
+ source: sourceDir,
358
298
  });
359
299
  for (const target of targets) {
360
300
  installOmkAgentSkill({ sourceDir, target, force: flags.force, dryRun: flags['dry-run'], lang });
@@ -362,12 +302,7 @@ export default class Install extends BaseCommand {
362
302
  if (!flags['dry-run'])
363
303
  console.log(tCli('cli.install.next_hint', lang));
364
304
  }
365
- installManagedSkill(input, kindFlag, flags, lang, remote) {
366
- // kind 推导:--kind 显式优先;否则缺省 skill(Phase 1 仅 skill)。
367
- const kind = kindFlag ?? 'skill';
368
- if (kind !== 'skill') {
369
- throw new Error(tCli('cli.install.kind_unsupported', lang, { kind }));
370
- }
305
+ installUserSkill(input, flags, lang, remote) {
371
306
  // 源解析委托给 source-resolver(file / 本地 git / 远端 git),install 主干源无关。
372
307
  // 远端走结构化 resolveRemoteGitSource(url/ref/spec 分字段,URL 不经任何字符串切分);
373
308
  // resolver 不依赖 CLI,错误以 SourceResolveError(messageKey) 抛出,这里映射成本地化文案。
@@ -391,35 +326,18 @@ export default class Install extends BaseCommand {
391
326
  lang,
392
327
  source: localRoot,
393
328
  });
394
- const store = managedDir();
395
- try {
396
- installManagedArtifact({
397
- source: src,
398
- artifactKind: kind,
399
- targets: targets.map((target) => ({ label: target.label, path: targetArtifactPath(target, name, isDirectorySkill) })),
400
- store,
401
- installedAt: new Date().toISOString(),
402
- deploy: (target) => {
403
- const { planned, inPlace } = copyArtifactToTarget({
404
- source: localRoot,
405
- isDirectorySkill,
406
- targetPath: target.path,
407
- skillsDir: dirname(target.path),
408
- force: flags.force,
409
- dryRun: flags['dry-run'],
410
- lang,
411
- });
412
- return planned ? 'planned' : inPlace ? 'adopted' : 'copied';
413
- },
414
- onDeployment: (target, result) => {
415
- const key = result === 'planned' ? 'cli.install.plan_skill' : result === 'adopted' ? 'cli.install.adopted' : 'cli.install.copied';
416
- console.log(tCli(key, lang, { name, path: target.path }));
417
- },
418
- onRegistered: (record) => console.log(tCli('cli.install.registered', lang, { id: record.id, store })),
329
+ for (const target of targets) {
330
+ const targetPath = targetArtifactPath(target, name, isDirectorySkill);
331
+ const { planned, inPlace } = copyArtifactToTarget({
332
+ source: localRoot,
333
+ isDirectorySkill,
334
+ targetPath,
335
+ force: flags.force,
336
+ dryRun: flags['dry-run'],
337
+ lang,
419
338
  });
420
- }
421
- catch (error) {
422
- throw localizeInstallationError(error, lang);
339
+ const key = planned ? 'cli.install.plan_skill' : inPlace ? 'cli.install.adopted' : 'cli.install.copied';
340
+ console.log(tCli(key, lang, { name, path: targetPath }));
423
341
  }
424
342
  });
425
343
  }
@@ -0,0 +1,34 @@
1
+ import { KnowCommand } from '../../lib/know-command.js';
2
+ export default class KnowExtract extends KnowCommand {
3
+ static description: string;
4
+ static args: {
5
+ action: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
6
+ };
7
+ static flags: {
8
+ workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ input: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ id: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ generation: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'run-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ executor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ model: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'confirm-request': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ scope: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ selection: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ trace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ 'trace-kind': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ lines: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ records: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
24
+ lang: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
+ };
26
+ static examples: string[];
27
+ run(): Promise<void>;
28
+ private runGuided;
29
+ private runGuidedStages;
30
+ private guideSources;
31
+ private directSource;
32
+ private selectFromScope;
33
+ private range;
34
+ }
@@ -0,0 +1,275 @@
1
+ import { isAbsolute, relative, resolve } from 'node:path';
2
+ import { Args, Flags } from '@oclif/core';
3
+ import { confirm, input as promptInput, select } from '@inquirer/prompts';
4
+ import { z } from 'zod';
5
+ import { LANG_FLAG, bilingual } from '../../oclif/i18n.js';
6
+ import { knowledgeOperationSchemas } from '../../../knowledge/application/operations.js';
7
+ import { SourceRefSchema, SourceSelectionSchema } from '../../../knowledge/sources/sources.js';
8
+ import { LocalSourceScopeSchema } from '../../../knowledge/application/local-source-host.js';
9
+ import { createLocalKnowledgeApplication } from '../../../knowledge/application/local.js';
10
+ import { createLocalKnowledgeGenerationModel } from '../../../knowledge/adapters/generation-host.js';
11
+ import { createExtractionArchiveProducer } from '../../../executors/archive.js';
12
+ import { UserSettingsStore } from '../../../settings/user-settings.js';
13
+ import { KnowCommand, knowJsonFlag, knowWorkspaceFlag } from '../../lib/know-command.js';
14
+ import { knowledgeCommand } from '../../lib/knowledge-output.js';
15
+ const actions = ['prepare', 'generate', 'continue'];
16
+ export default class KnowExtract extends KnowCommand {
17
+ static description = bilingual({
18
+ zh: '引导提炼知识,或使用 prepare/generate/continue 显式控制逐阶段请求。',
19
+ en: 'Guide knowledge extraction, or use prepare/generate/continue to control each stage explicitly.',
20
+ });
21
+ static args = { action: Args.string({ options: actions, description: bilingual({ zh: '高级阶段操作;省略则进入引导流程。', en: 'Advanced stage operation; omit for the guided flow.' }) }) };
22
+ static flags = {
23
+ workspace: knowWorkspaceFlag,
24
+ input: Flags.string({ description: bilingual({ zh: '显式阶段的精确来源 JSON。', en: 'Exact-source JSON for explicit stages.' }) }),
25
+ id: Flags.string({ description: bilingual({ zh: '显式 continue:运行 UUID。', en: 'Explicit continue: run UUID.' }) }),
26
+ generation: Flags.integer({ min: 1, description: bilingual({ zh: '显式 continue:日志 generation。', en: 'Explicit continue: journal generation.' }) }),
27
+ 'run-id': Flags.string({ description: bilingual({ zh: '稳定运行 UUID;引导模式可用它恢复已有运行。', en: 'Stable run UUID; the guided flow uses it to resume an existing run.' }) }),
28
+ executor: Flags.string({ description: bilingual({ zh: '生成执行器,沿用运行配置。', en: 'Generation executor; defaults to runtime settings.' }) }),
29
+ model: Flags.string({ description: bilingual({ zh: '生成模型,沿用运行配置。', en: 'Generation model; defaults to runtime settings.' }) }),
30
+ 'confirm-request': Flags.string({ description: bilingual({ zh: '显式发送:已核对完整请求的 requestDigest。', en: 'Explicit dispatch: requestDigest of the inspected complete request.' }) }),
31
+ scope: Flags.string({ description: bilingual({ zh: '引导:已有可信来源范围 JSON。', en: 'Guided: existing trusted source-scope JSON.' }) }),
32
+ selection: Flags.string({ description: bilingual({ zh: '引导:与 scope 对应的选区 JSON。', en: 'Guided: selection JSON corresponding to the scope.' }) }),
33
+ file: Flags.string({ description: bilingual({ zh: '引导:直接选择当前目录中的项目文件。', en: 'Guided: select a project file from the current directory directly.' }) }),
34
+ trace: Flags.string({ description: bilingual({ zh: '引导:直接选择一份轨迹文件。', en: 'Guided: select a trace file directly.' }) }),
35
+ 'trace-kind': Flags.string({ description: bilingual({ zh: 'trace:轨迹类型,如 codex/claude/qoder。', en: 'trace: trace kind, such as codex/claude/qoder.' }) }),
36
+ lines: Flags.string({ description: bilingual({ zh: 'file:行范围 start:end,从 1 开始;省略选择整个文件。', en: 'file: line range start:end, starting at 1; omit for the whole file.' }) }),
37
+ records: Flags.string({ description: bilingual({ zh: 'trace:原记录范围 start:end,从 0 开始。', en: 'trace: original record range start:end, starting at 0.' }) }),
38
+ json: knowJsonFlag,
39
+ lang: LANG_FLAG,
40
+ };
41
+ static examples = [
42
+ '<%= config.bin %> know extract',
43
+ '<%= config.bin %> know extract --file PRODUCT.md --lines 1:80',
44
+ '<%= config.bin %> know extract --trace ./session.jsonl --trace-kind codex --records 0:20',
45
+ '<%= config.bin %> know extract --run-id <run-id>',
46
+ '<%= config.bin %> know extract prepare --workspace ./knowledge --input ./sources.json --json',
47
+ '<%= config.bin %> know extract generate --workspace ./knowledge --input ./sources.json --confirm-request sha256:<digest>',
48
+ '<%= config.bin %> know extract continue --workspace ./knowledge --id <run-id> --generation 5 --confirm-request sha256:<digest>',
49
+ ];
50
+ async run() {
51
+ const { args, flags } = await this.parse(KnowExtract);
52
+ if (!args.action) {
53
+ await this.runGuided(flags);
54
+ return;
55
+ }
56
+ const action = args.action;
57
+ const allowed = new Set(['workspace', 'executor', 'model', 'json', 'lang', ...(action === 'continue'
58
+ ? ['id', 'generation', 'confirm-request']
59
+ : ['input', 'run-id', ...(action === 'generate' ? ['confirm-request'] : [])])]);
60
+ if (Object.entries(flags).some(([name, value]) => value !== undefined && value !== false && !allowed.has(name))) {
61
+ this.error(this.t('该提炼动作不接受这些参数。', 'These flags are not accepted for this extraction action.'), { exit: 2 });
62
+ }
63
+ let operation;
64
+ if (action === 'continue') {
65
+ operation = {
66
+ operation: 'continue-stage',
67
+ id: this.required(flags.id, 'id'),
68
+ generation: flags.generation ?? this.error('--generation is required', { exit: 2 }),
69
+ executor: 'configured',
70
+ model: 'configured',
71
+ confirmedRequestDigest: this.required(flags['confirm-request'], 'confirm-request'),
72
+ };
73
+ }
74
+ else {
75
+ const parsed = action === 'prepare'
76
+ ? knowledgeOperationSchemas['prepare-generation'].omit({ operation: true, executor: true, model: true, runId: true }).safeParse(this.input(flags.input))
77
+ : z.strictObject({ sources: z.array(SourceRefSchema).min(1).max(256) }).safeParse(this.input(flags.input));
78
+ if (!parsed.success)
79
+ this.error(this.t('提炼输入必须是完整精确的 {sources} 来源引用。', 'Extraction input must contain complete exact source references in {sources}.'), { exit: 2 });
80
+ operation = action === 'prepare'
81
+ ? { operation: 'prepare-generation', sources: parsed.data.sources, executor: 'configured', model: 'configured', runId: flags['run-id'] }
82
+ : {
83
+ operation: 'generate', sources: parsed.data.sources, executor: 'configured', model: 'configured', runId: flags['run-id'],
84
+ confirmedRequestDigest: this.required(flags['confirm-request'], 'confirm-request'),
85
+ };
86
+ }
87
+ await this.executeKnowOperation(operation, flags);
88
+ }
89
+ async runGuided(flags) {
90
+ const guidedFlags = ['scope', 'selection', 'file', 'trace', 'trace-kind', 'lines', 'records'];
91
+ const advancedOnly = ['input', 'id', 'generation', 'confirm-request'];
92
+ if (advancedOnly.some(name => flags[name] !== undefined)) {
93
+ this.error(this.t('引导流程不接受显式阶段参数;请先选择 prepare/generate/continue。', 'The guided flow does not accept explicit-stage flags; select prepare/generate/continue first.'), { exit: 2 });
94
+ }
95
+ const selectedResume = flags['run-id'] !== undefined;
96
+ if (selectedResume && guidedFlags.some(name => flags[name] !== undefined)) {
97
+ this.error(this.t('恢复已有运行时不能重新选择来源。', 'Resuming an existing run cannot change its source selection.'), { exit: 2 });
98
+ }
99
+ if (!selectedResume && ['trace-kind', 'lines', 'records'].some(name => flags[name] !== undefined)
100
+ && !flags.file && !flags.trace) {
101
+ this.error(this.t('范围参数须与 --file 或 --trace 一起使用。', 'Range flags require --file or --trace.'), { exit: 2 });
102
+ }
103
+ const settings = new UserSettingsStore().resolve({ workspace: flags.workspace, executor: flags.executor, model: flags.model });
104
+ const model = createLocalKnowledgeGenerationModel(settings.executor, this.required(settings.model, 'model'), createExtractionArchiveProducer);
105
+ await this.runWithCancellation(async (signal) => {
106
+ let app;
107
+ let sources;
108
+ if (selectedResume) {
109
+ app = createLocalKnowledgeApplication(settings.workspace);
110
+ const inspected = app.inspect(flags['run-id']);
111
+ sources = inspected.journal.sources.map(({ snapshotId, sourceVersion }) => ({ snapshotId, sourceVersion }));
112
+ }
113
+ else {
114
+ const selected = await this.guideSources(flags);
115
+ app = createLocalKnowledgeApplication(settings.workspace, { sourceScope: selected.scope });
116
+ const preview = app.previewSources(selected.selections, { signal });
117
+ this.log(JSON.stringify(preview, null, 2));
118
+ const save = await confirm({
119
+ message: this.t(`将上述选定来源保存到 ${settings.workspace}?保存不授权发送模型。`, `Save the selected sources to ${settings.workspace}? Saving does not authorize model dispatch.`),
120
+ default: false,
121
+ });
122
+ if (!save) {
123
+ this.log(this.t('已停止;没有保存来源或调用模型。', 'Stopped; no sources were saved and no model was called.'));
124
+ return;
125
+ }
126
+ const rebuilt = app.previewResolvedSources(preview.items.map(item => item.resolvedSelection), {
127
+ expectedDigest: preview.previewDigest,
128
+ signal,
129
+ });
130
+ const captured = await app.captureSources({ previewId: rebuilt.previewId, previewDigest: rebuilt.previewDigest }, signal);
131
+ sources = captured.saveManifest.items.map(({ snapshotId, sourceVersion }) => ({ snapshotId, sourceVersion }));
132
+ this.log(this.t(`已保存 ${sources.length} 份来源。接下来逐阶段核对模型请求。`, `Saved ${sources.length} source(s). Each model request will be reviewed next.`));
133
+ }
134
+ await this.runGuidedStages(app, sources, model, settings.workspace, flags['run-id'], signal);
135
+ });
136
+ }
137
+ async runGuidedStages(app, sources, model, workspace, runId, signal) {
138
+ let result = runId ? app.resume(runId, signal) : await app.prepareGeneration(sources, model, runId, signal);
139
+ for (let step = 0; step < 64; step++) {
140
+ if (result.journal.status === 'completed') {
141
+ this.log(this.t('提炼已完成;正文仍是待审候选,没有自动保留或接受关联。', 'Extraction completed; bodies remain pending candidates without automatic retention or association approval.'));
142
+ this.log(JSON.stringify({ runId: result.journal.runId, status: result.journal.status, bodies: result.journal.bodies }, null, 2));
143
+ for (const body of result.journal.bodies)
144
+ this.log(knowledgeCommand(workspace, 'show', { id: body.knowledgeId, revision: body.revisionId }));
145
+ return;
146
+ }
147
+ if (result.nextAction === 'prepare_next_stage') {
148
+ result = await app.prepareGeneration(sources, model, result.journal.runId, signal);
149
+ }
150
+ if (result.nextAction !== 'continue_stage') {
151
+ const issues = result.journal.stages.at(-1)?.issues.join('; ') ?? '';
152
+ this.error(this.t(`运行未处于可明确继续的状态(status=${result.journal.status},nextAction=${result.nextAction},issues=${issues});已保留记录,不自动重试或重发。`, `The run is not safely continuable (status=${result.journal.status}, nextAction=${result.nextAction}, issues=${issues}); records are preserved without automatic retry or redispatch.`), { exit: 1 });
153
+ }
154
+ const stage = result.journal.stages.find(item => item.state === 'prepared');
155
+ if (!stage)
156
+ this.error(this.t('没有已准备且未发送的阶段;请先核对运行记录。', 'No prepared unsent stage exists; inspect the run first.'), { exit: 1 });
157
+ this.log(JSON.stringify({
158
+ stageKind: stage.stageKind,
159
+ runId: result.journal.runId,
160
+ generation: result.journal.generation,
161
+ executor: result.journal.executor,
162
+ model: result.journal.model,
163
+ requestDigest: stage.requestDigest,
164
+ system: stage.system,
165
+ input: stage.input,
166
+ wireId: stage.wireId,
167
+ wireSchema: stage.wireSchema,
168
+ producer: stage.producer,
169
+ }, null, 2));
170
+ const approved = await confirm({
171
+ message: this.t(`确认发送阶段 ${stage.stageKind} 的上述完整请求?`, `Dispatch the complete ${stage.stageKind} request shown above?`),
172
+ default: false,
173
+ });
174
+ if (!approved) {
175
+ this.log(this.t('已停止,没有发送该阶段。之后可用同一运行继续引导:', 'Stopped without dispatching this stage. Resume the guided flow with the same run:'));
176
+ this.log(knowledgeCommand(workspace, 'extract', { 'run-id': result.journal.runId }));
177
+ return;
178
+ }
179
+ const initial = result.journal.stages.every(item => item.state === 'prepared');
180
+ result = initial
181
+ ? await app.generate(sources, model, result.journal.runId, signal, { confirmedRequestDigest: stage.requestDigest })
182
+ : await app.continueStage(result.journal.runId, result.journal.generation, model, signal, { confirmedRequestDigest: stage.requestDigest });
183
+ }
184
+ this.error(this.t('引导达到阶段上限;已保留记录,请核对运行后再继续。', 'The guided stage limit was reached; records are preserved. Inspect the run before continuing.'), { exit: 1 });
185
+ }
186
+ async guideSources(flags) {
187
+ if (flags.file && flags.trace || flags.scope && (flags.file || flags.trace) || flags.selection && !flags.scope) {
188
+ this.error(this.t('请只选择一种来源方式;--selection 须配 --scope。', 'Choose only one source mode; --selection requires --scope.'), { exit: 2 });
189
+ }
190
+ if (flags.scope) {
191
+ const scope = this.sourceScope(flags.scope);
192
+ if (flags.selection) {
193
+ const parsed = z.array(SourceSelectionSchema).min(1).max(256).safeParse(this.input(flags.selection));
194
+ if (!parsed.success)
195
+ this.error(this.t('选区必须是 selections JSON 数组。', 'The selection must be a JSON array of selections.'), { exit: 2 });
196
+ return { scope, selections: parsed.data };
197
+ }
198
+ return { scope, selections: [await this.selectFromScope(scope)] };
199
+ }
200
+ if (flags.file || flags.trace)
201
+ return this.directSource(flags.file, flags.trace, flags);
202
+ const sourceKind = await select({
203
+ message: this.t('选择提炼来源类型。', 'Choose a source type.'),
204
+ choices: [
205
+ { value: 'file', name: this.t('当前目录中的项目文件', 'Project file from the current directory') },
206
+ { value: 'trace', name: this.t('一份 Agent 轨迹文件', 'An agent trace file') },
207
+ ],
208
+ });
209
+ return this.directSource(sourceKind === 'file' ? await promptInput({ message: this.t('文件路径:', 'File path:'), required: true }) : undefined, sourceKind === 'trace' ? await promptInput({ message: this.t('轨迹路径:', 'Trace path:'), required: true }) : undefined, flags);
210
+ }
211
+ directSource(file, trace, flags) {
212
+ if (file) {
213
+ const absolute = resolve(file);
214
+ const relativePath = relative(process.cwd(), absolute);
215
+ if (!relativePath || relativePath.startsWith('..') || isAbsolute(relativePath)) {
216
+ this.error(this.t('项目文件必须位于当前目录内。', 'The project file must be inside the current directory.'), { exit: 2 });
217
+ }
218
+ const range = flags.lines ? this.range(flags.lines, 'lines') : undefined;
219
+ return {
220
+ scope: LocalSourceScopeSchema.parse({ scopeVersion: 'knowledge-source-scope/v1', projects: [{ projectId: 'cli-project', root: process.cwd() }], traces: [] }),
221
+ selections: [{ sourceKind: 'project_file', projectId: 'cli-project', relativePath,
222
+ lineRanges: range ? [{ startLine: range.start, endLine: range.end }] : null }],
223
+ };
224
+ }
225
+ const traceKind = this.required(flags['trace-kind'], 'trace-kind');
226
+ const range = flags.records ? this.range(flags.records, 'records') : undefined;
227
+ if (!range)
228
+ this.error(this.t('轨迹需要 --records start:end,明确选择原记录范围。', 'A trace requires --records start:end to select original records explicitly.'), { exit: 2 });
229
+ return {
230
+ scope: LocalSourceScopeSchema.parse({ scopeVersion: 'knowledge-source-scope/v1', projects: [], traces: [{ sourceId: 'cli-trace', traceKind, path: resolve(trace) }] }),
231
+ selections: [{ sourceKind: 'agent_trace', sourceId: 'cli-trace', traceKind,
232
+ recordRanges: [{ startRecord: range.start, endRecord: range.end }] }],
233
+ };
234
+ }
235
+ async selectFromScope(scope) {
236
+ const choices = [
237
+ ...scope.projects.map(project => ({ value: `project:${project.projectId}`, name: `项目 ${project.projectId}` })),
238
+ ...scope.traces.map(trace => ({ value: `trace:${trace.sourceId}`, name: `轨迹 ${trace.sourceId}` })),
239
+ ];
240
+ if (!choices.length)
241
+ this.error(this.t('scope 中没有可选来源。', 'The scope has no selectable sources.'), { exit: 2 });
242
+ const selected = await select({ message: this.t('选择来源。', 'Select a source.'), choices });
243
+ if (selected.startsWith('trace:')) {
244
+ const sourceId = selected.slice(6);
245
+ const bound = scope.traces.find(trace => trace.sourceId === sourceId);
246
+ const range = this.range(await promptInput({ message: this.t('原记录范围 start:end(从 0 开始):', 'Original record range start:end (starting at 0):'), required: true }), 'records');
247
+ return { sourceKind: 'agent_trace', sourceId, traceKind: bound.traceKind,
248
+ recordRanges: [{ startRecord: range.start, endRecord: range.end }] };
249
+ }
250
+ const projectId = selected.slice(8);
251
+ const sourceKind = await select({
252
+ message: this.t('选择项目文件或固定 Git 文件。', 'Choose a project file or fixed Git file.'),
253
+ choices: [{ value: 'project_file', name: '项目文件' }, { value: 'git_blob', name: '固定 Git 文件' }],
254
+ });
255
+ const relativePath = await promptInput({ message: this.t('相对路径:', 'Relative path:'), required: true });
256
+ const revision = sourceKind === 'git_blob'
257
+ ? await promptInput({ message: this.t('Git revision:', 'Git revision:'), required: true }) : undefined;
258
+ const rawRange = await promptInput({ message: this.t('行范围 start:end(从 1 开始;留空选择整个文件):', 'Line range start:end (starting at 1; blank selects the whole file):') });
259
+ const range = rawRange.trim() ? this.range(rawRange, 'lines') : undefined;
260
+ const lineRanges = range ? [{ startLine: range.start, endLine: range.end }] : null;
261
+ if (sourceKind === 'git_blob')
262
+ return { sourceKind, projectId, relativePath, revision: revision, lineRanges };
263
+ return { sourceKind: 'project_file', projectId, relativePath, lineRanges };
264
+ }
265
+ range(value, name) {
266
+ const match = /^(\d+):(\d+)$/.exec(value.trim());
267
+ if (!match)
268
+ this.error(this.t(`--${name} 必须是 start:end。`, `--${name} must be start:end.`), { exit: 2 });
269
+ const start = Number(match[1]), end = Number(match[2]);
270
+ if (!Number.isSafeInteger(start) || !Number.isSafeInteger(end) || end < start || name === 'lines' && start < 1) {
271
+ this.error(this.t(`--${name} 范围无效。`, `--${name} range is invalid.`), { exit: 2 });
272
+ }
273
+ return { start, end };
274
+ }
275
+ }