akm-cli 0.9.16 → 0.9.17-alpha.10

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 (403) hide show
  1. package/CHANGELOG.md +2101 -0
  2. package/STABILITY.md +11 -10
  3. package/dist/akm +124 -193
  4. package/dist/akm-migrate +38 -19
  5. package/dist/assets/hints/cli-hints-full.md +6 -7
  6. package/dist/assets/improve-strategies/catchup.json +0 -3
  7. package/dist/assets/improve-strategies/consolidate.json +0 -1
  8. package/dist/assets/improve-strategies/default.json +1 -2
  9. package/dist/assets/improve-strategies/proactive-maintenance.json +1 -2
  10. package/dist/assets/improve-strategies/quick.json +1 -2
  11. package/dist/assets/improve-strategies/reflect-distill.json +1 -2
  12. package/dist/assets/improve-strategies/thorough.json +0 -3
  13. package/dist/assets/prompts/consolidate-pair.md +20 -0
  14. package/dist/assets/prompts/consolidate-system.md +4 -11
  15. package/dist/assets/prompts/retrieval-relevance-judge.md +6 -0
  16. package/dist/assets/stash-skeleton/facts/conventions/backlinks.md +20 -20
  17. package/dist/assets/stash-skeleton/facts/conventions/domains.md +2 -2
  18. package/dist/assets/templates/html/health.html +3 -5
  19. package/dist/cli/retired-commands.js +1 -1
  20. package/dist/cli/shared.js +6 -2
  21. package/dist/cli/unknown-flags.js +24 -1
  22. package/dist/cli.js +68 -10
  23. package/dist/commands/agent/agent-dispatch.js +1 -1
  24. package/dist/commands/command/command-execution.js +24 -62
  25. package/dist/commands/feedback-cli.js +0 -1
  26. package/dist/commands/health/accept-rate.js +6 -0
  27. package/dist/commands/health/archive-usage.js +92 -0
  28. package/dist/commands/health/checks.js +83 -74
  29. package/dist/commands/health/config-skew.js +38 -0
  30. package/dist/commands/health/data-dir-usage.js +25 -13
  31. package/dist/commands/health/egress.js +54 -0
  32. package/dist/commands/health/html-report.js +1 -42
  33. package/dist/commands/health/improve-metrics.js +136 -591
  34. package/dist/commands/health/md-report.js +1 -6
  35. package/dist/commands/health/plugin-staleness.js +53 -3
  36. package/dist/commands/health/renderers.js +12 -4
  37. package/dist/commands/health/report-view-model.js +14 -120
  38. package/dist/commands/health/types-improve.js +4 -19
  39. package/dist/commands/health/windows.js +64 -74
  40. package/dist/commands/health.js +145 -143
  41. package/dist/commands/improve/consolidate/chunking.js +26 -117
  42. package/dist/commands/improve/consolidate/continuity-check.js +137 -0
  43. package/dist/commands/improve/consolidate/pair-pass.js +791 -0
  44. package/dist/commands/improve/consolidate/sanitize.js +54 -149
  45. package/dist/commands/improve/consolidate.js +589 -1127
  46. package/dist/commands/improve/content-hash.js +16 -24
  47. package/dist/commands/improve/distill/content-repair.js +18 -100
  48. package/dist/commands/improve/distill-guards.js +20 -81
  49. package/dist/commands/improve/distill-promotion-policy.js +23 -243
  50. package/dist/commands/improve/distill.js +608 -1041
  51. package/dist/commands/improve/eligibility.js +126 -390
  52. package/dist/commands/improve/execution.js +8 -10
  53. package/dist/commands/improve/extract-prompt.js +1 -2
  54. package/dist/commands/improve/extract.js +487 -1046
  55. package/dist/commands/improve/feedback-valence.js +0 -25
  56. package/dist/commands/improve/improve-cli.js +75 -169
  57. package/dist/commands/improve/improve-result-file.js +10 -66
  58. package/dist/commands/improve/improve-strategies.js +52 -4
  59. package/dist/commands/improve/improve-usage-report.js +18 -64
  60. package/dist/commands/improve/improve.js +480 -1074
  61. package/dist/commands/improve/ledger.js +119 -0
  62. package/dist/commands/improve/locks.js +2 -8
  63. package/dist/commands/improve/loop-stages.js +415 -1073
  64. package/dist/commands/improve/memory/derived-ref.js +12 -77
  65. package/dist/commands/improve/memory/memory-belief.js +16 -118
  66. package/dist/commands/improve/memory/memory-improve.js +266 -14
  67. package/dist/commands/improve/outcome-loop.js +28 -156
  68. package/dist/commands/improve/planner.js +5 -15
  69. package/dist/commands/improve/preparation.js +779 -2319
  70. package/dist/commands/improve/proactive-maintenance.js +34 -101
  71. package/dist/commands/improve/reflect-noise.js +104 -280
  72. package/dist/commands/improve/reflect.js +642 -1353
  73. package/dist/commands/improve/retrieval-gate.js +127 -0
  74. package/dist/commands/improve/retrieval-scope.js +92 -0
  75. package/dist/commands/improve/salience.js +41 -240
  76. package/dist/commands/improve/session-asset.js +19 -100
  77. package/dist/commands/improve/stage.js +322 -0
  78. package/dist/commands/lint/base-linter.js +37 -15
  79. package/dist/commands/proposal/drain.js +261 -578
  80. package/dist/commands/proposal/proposal-cli.js +19 -20
  81. package/dist/commands/proposal/proposal-types.js +31 -24
  82. package/dist/commands/proposal/proposal.js +38 -8
  83. package/dist/commands/proposal/propose.js +134 -160
  84. package/dist/commands/proposal/repository.js +1097 -1394
  85. package/dist/commands/proposal/validators/proposal-quality-validators.js +71 -174
  86. package/dist/commands/proposal/validators/proposal-validators.js +1 -1
  87. package/dist/commands/proposal/validators/proposals.js +22 -89
  88. package/dist/commands/read/curate.js +105 -462
  89. package/dist/commands/read/knowledge.js +3 -2
  90. package/dist/commands/read/search-cli.js +16 -33
  91. package/dist/commands/read/search.js +17 -23
  92. package/dist/commands/read/show.js +57 -108
  93. package/dist/commands/sources/bundle-cli.js +25 -2
  94. package/dist/commands/sources/bundle-config-ops.js +4 -0
  95. package/dist/commands/sources/dangerous-env-audit.js +1 -2
  96. package/dist/commands/sources/info.js +127 -29
  97. package/dist/commands/sources/installed-stashes.js +197 -746
  98. package/dist/commands/sources/schema-repair.js +98 -129
  99. package/dist/commands/sources/source-add.js +62 -12
  100. package/dist/commands/sources/source-manage.js +9 -2
  101. package/dist/commands/sources/stash-cli.js +24 -4
  102. package/dist/commands/tasks/explain.js +10 -13
  103. package/dist/commands/tasks/tasks-cli.js +12 -13
  104. package/dist/commands/tasks/tasks.js +350 -936
  105. package/dist/commands/tasks/validate.js +26 -24
  106. package/dist/commands/workflow/plan.js +22 -29
  107. package/dist/commands/workflow-cli.js +4 -4
  108. package/dist/core/adapter/adapters/akm-adapter.js +2 -1
  109. package/dist/core/adapter/adapters/akm-lint.js +2 -3
  110. package/dist/core/adapter/adapters/akm-metadata.js +42 -12
  111. package/dist/core/adapter/adapters/akm-task-adapter.js +29 -8
  112. package/dist/core/adapter/adapters/akm-workflow-adapter.js +1 -1
  113. package/dist/core/adapter/execution-source.js +17 -29
  114. package/dist/core/asset/asset-placement.js +4 -13
  115. package/dist/core/asset/frontmatter.js +106 -1
  116. package/dist/core/asset/resolve-ref.js +1 -1
  117. package/dist/core/bundle-id.js +42 -5
  118. package/dist/core/bundle-rename.js +285 -0
  119. package/dist/core/config/config-io.js +1 -2
  120. package/dist/core/config/config-schema.js +9 -34
  121. package/dist/core/config/config-walker.js +1 -1
  122. package/dist/core/config/config.js +184 -111
  123. package/dist/core/config/engine-semantics.js +0 -2
  124. package/dist/core/config/legacy-source-shape-shim.js +38 -9
  125. package/dist/core/config/schema/embedding.js +20 -5
  126. package/dist/core/config/schema/engines.js +5 -0
  127. package/dist/core/config/schema/execution.js +1 -1
  128. package/dist/core/config/schema/experimental.js +1 -1
  129. package/dist/core/config/schema/improve-processes.js +54 -125
  130. package/dist/core/config/schema/improve.js +4 -42
  131. package/dist/core/config/schema/index-config.js +9 -48
  132. package/dist/core/config/schema/scheduler.js +12 -12
  133. package/dist/core/config/schema/search.js +6 -22
  134. package/dist/core/env-secret-ref.js +0 -1
  135. package/dist/core/errors.js +8 -9
  136. package/dist/core/file-change.js +13 -5
  137. package/dist/core/file-lock.js +76 -173
  138. package/dist/core/improve-result.js +35 -7
  139. package/dist/core/improve-types.js +0 -1
  140. package/dist/core/logs-db.js +2 -2
  141. package/dist/core/loopback.js +7 -12
  142. package/dist/core/non-task-input.js +20 -0
  143. package/dist/core/parse.js +13 -16
  144. package/dist/core/paths.js +0 -24
  145. package/dist/core/redaction.js +109 -2
  146. package/dist/core/run-lock.js +2 -5
  147. package/dist/core/spawn-env.js +1 -1
  148. package/dist/core/state/migrations.js +123 -61
  149. package/dist/core/state-db-scope.js +2 -4
  150. package/dist/core/state-db.js +126 -692
  151. package/dist/core/time.js +0 -20
  152. package/dist/core/type-presentation.js +1 -9
  153. package/dist/core/write-source.js +294 -1005
  154. package/dist/execution/input-contract.js +1 -1
  155. package/dist/execution/resolved-request.js +135 -689
  156. package/dist/execution/source.js +63 -257
  157. package/dist/execution/target-ref.js +1 -1
  158. package/dist/indexer/bundle-identity-guard.js +2 -2
  159. package/dist/indexer/db/llm-cache.js +2 -2
  160. package/dist/indexer/ensure-index.js +77 -73
  161. package/dist/indexer/index-rebuild-lock.js +3 -11
  162. package/dist/indexer/index-writer-lock.js +8 -17
  163. package/dist/indexer/index-written-assets.js +141 -154
  164. package/dist/indexer/indexer.js +400 -1124
  165. package/dist/indexer/links/declared-links.js +90 -0
  166. package/dist/indexer/materialize-embeddings.js +60 -397
  167. package/dist/indexer/passes/memory-inference.js +96 -90
  168. package/dist/indexer/passes/metadata.js +132 -219
  169. package/dist/indexer/read-preflight.js +0 -7
  170. package/dist/indexer/scan/doc-to-entry.js +2 -3
  171. package/dist/indexer/scan/drain-dir.js +1 -1
  172. package/dist/indexer/search/db-search.js +190 -590
  173. package/dist/indexer/search/fts-query.js +30 -41
  174. package/dist/indexer/search/ranking.js +28 -154
  175. package/dist/indexer/search/search-attribution.js +12 -32
  176. package/dist/indexer/search/search-fields.js +11 -15
  177. package/dist/indexer/search/search-hit-enrichers.js +54 -85
  178. package/dist/indexer/search/search-source.js +1 -4
  179. package/dist/indexer/usage/usage-events.js +36 -7
  180. package/dist/indexer/walk/walker.js +3 -4
  181. package/dist/integrations/agent/engine-fallback.js +23 -40
  182. package/dist/integrations/agent/engine-resolution.js +93 -183
  183. package/dist/integrations/agent/execution.js +507 -0
  184. package/dist/integrations/agent/model-map.js +28 -156
  185. package/dist/integrations/agent/request-lowering.js +66 -141
  186. package/dist/integrations/agent/runner-dispatch.js +143 -321
  187. package/dist/integrations/agent/runner.js +54 -14
  188. package/dist/integrations/lockfile.js +53 -101
  189. package/dist/llm/client.js +18 -6
  190. package/dist/llm/embedders/deterministic.js +2 -3
  191. package/dist/llm/embedders/profile.js +71 -0
  192. package/dist/llm/embedders/remote.js +11 -17
  193. package/dist/llm/feature-gate.js +0 -8
  194. package/dist/llm/index-passes.js +3 -5
  195. package/dist/llm/memory-infer.js +1 -2
  196. package/dist/llm/structured-call.js +5 -24
  197. package/dist/output/generic-render.js +23 -11
  198. package/dist/output/html-render.js +13 -10
  199. package/dist/output/render-registry.js +3 -32
  200. package/dist/output/shapes/helpers.js +25 -38
  201. package/dist/output/shapes/passthrough.js +1 -9
  202. package/dist/{indexer/graph/graph-types.js → output/text/bundle-rename.js} +4 -1
  203. package/dist/output/text/command-format.js +69 -31
  204. package/dist/output/text/helpers.js +1 -1
  205. package/dist/output/text/migrate.js +5 -14
  206. package/dist/output/text/proposal-format.js +48 -3
  207. package/dist/output/text/show-format.js +13 -17
  208. package/dist/output/text/workflow-format.js +0 -32
  209. package/dist/output/text.js +2 -0
  210. package/dist/registry/factory.js +4 -19
  211. package/dist/registry/network.js +66 -220
  212. package/dist/registry/providers/index.js +0 -2
  213. package/dist/registry/providers/skills-sh.js +3 -14
  214. package/dist/registry/providers/static-index.js +24 -26
  215. package/dist/registry/resolve.js +55 -131
  216. package/dist/scripts/akm-migrate-node.js +42948 -92369
  217. package/dist/scripts/akm-migrate.js +42935 -92354
  218. package/dist/setup/registry-stash-loader.js +4 -13
  219. package/dist/setup/semantic-assets.js +3 -44
  220. package/dist/setup/setup.js +1 -1
  221. package/dist/setup/steps/connection.js +5 -6
  222. package/dist/setup/steps/platforms.js +2 -2
  223. package/dist/setup/steps/tasks.js +25 -15
  224. package/dist/sources/provider-factory.js +17 -18
  225. package/dist/sources/providers/filesystem.js +2 -3
  226. package/dist/sources/providers/git-install.js +7 -1
  227. package/dist/sources/providers/git-provider.js +0 -3
  228. package/dist/sources/providers/git-stash.js +83 -21
  229. package/dist/sources/providers/npm.js +2 -4
  230. package/dist/sources/providers/provider-utils.js +5 -10
  231. package/dist/sources/providers/website.js +0 -2
  232. package/dist/sources/snapshot-fetchers/website-ingest.js +1 -1
  233. package/dist/sources/website-url.js +2 -2
  234. package/dist/storage/database.js +9 -35
  235. package/dist/storage/repositories/improve-ledger-repository.js +209 -0
  236. package/dist/storage/repositories/index-connection.js +39 -72
  237. package/dist/storage/repositories/index-entries-repository.js +131 -129
  238. package/dist/storage/repositories/index-entry-mapper.js +1 -2
  239. package/dist/storage/repositories/index-entry-schema.js +101 -268
  240. package/dist/storage/repositories/index-fts-repository.js +86 -256
  241. package/dist/storage/repositories/index-links-repository.js +143 -0
  242. package/dist/storage/repositories/index-llm-cache-repository.js +7 -9
  243. package/dist/storage/repositories/index-meta-repository.js +6 -4
  244. package/dist/storage/repositories/index-schema.js +257 -325
  245. package/dist/storage/repositories/index-utility-repository.js +8 -29
  246. package/dist/storage/repositories/index-vec-repository.js +133 -414
  247. package/dist/storage/repositories/outcome-repository.js +2 -1
  248. package/dist/storage/repositories/proposals-repository.js +104 -1
  249. package/dist/storage/repositories/registry-index-cache-repository.js +100 -0
  250. package/dist/storage/repositories/salience-repository.js +1 -19
  251. package/dist/storage/repositories/task-history-repository.js +26 -4
  252. package/dist/storage/repositories/workflow-runs-repository.js +53 -244
  253. package/dist/storage/sqlite-migrations.js +136 -0
  254. package/dist/storage/sqlite-pragmas.js +11 -9
  255. package/dist/storage/sqlite-transaction.js +170 -0
  256. package/dist/storage/state-db-integrity.js +130 -0
  257. package/dist/tasks/activation-config.js +134 -62
  258. package/dist/tasks/backends/cron.js +191 -302
  259. package/dist/tasks/backends/exec-utils.js +2 -5
  260. package/dist/tasks/backends/launchd.js +141 -748
  261. package/dist/tasks/backends/schtasks.js +119 -623
  262. package/dist/tasks/prepare/prepare-support.js +5 -15
  263. package/dist/tasks/prepare/prepare.js +0 -2
  264. package/dist/tasks/resolve-akm-bin.js +20 -79
  265. package/dist/tasks/run/attempt-lifecycle.js +0 -1
  266. package/dist/tasks/run/load-task.js +1 -1
  267. package/dist/tasks/scheduler-binding.js +20 -238
  268. package/dist/tasks/scheduler-invocation.js +136 -244
  269. package/dist/tasks/scheduler-lock.js +53 -0
  270. package/dist/tasks/scheduler-sync.js +368 -679
  271. package/dist/tasks/source/parse-task-source.js +55 -9
  272. package/dist/tasks/source/task-source-v3-frozen.js +3 -4
  273. package/dist/tasks/source/task-to-v4.js +464 -88
  274. package/dist/workflows/authoring/authoring.js +3 -12
  275. package/dist/workflows/compile.js +211 -0
  276. package/dist/workflows/concurrency-policy.js +13 -74
  277. package/dist/workflows/exec/child-invocation.js +3 -17
  278. package/dist/workflows/exec/child-workflow.js +32 -141
  279. package/dist/workflows/exec/dispatch-redaction.js +13 -53
  280. package/dist/workflows/exec/environment.js +98 -0
  281. package/dist/workflows/exec/exec-unit.js +33 -140
  282. package/dist/workflows/exec/frozen-judge.js +7 -59
  283. package/dist/workflows/exec/native-executor.js +82 -341
  284. package/dist/workflows/exec/param-secrets.js +29 -47
  285. package/dist/workflows/exec/run-workflow.js +154 -387
  286. package/dist/workflows/exec/scheduler.js +9 -36
  287. package/dist/workflows/exec/step-work.js +127 -430
  288. package/dist/workflows/exec/unit-dispatch.js +11 -63
  289. package/dist/workflows/exec/unit-writer.js +8 -52
  290. package/dist/workflows/exec/worktree.js +39 -273
  291. package/dist/workflows/freeze/child-output-references.js +4 -15
  292. package/dist/workflows/freeze/environment.js +99 -92
  293. package/dist/workflows/freeze/freeze.js +172 -0
  294. package/dist/workflows/freeze/step-values.js +19 -21
  295. package/dist/workflows/freeze/targets/child-workflow.js +23 -92
  296. package/dist/workflows/freeze/targets/command.js +10 -33
  297. package/dist/workflows/freeze/targets/script.js +5 -12
  298. package/dist/workflows/freeze/targets/shell.js +3 -6
  299. package/dist/workflows/freeze/targets/task.js +25 -80
  300. package/dist/workflows/freeze/task-bindings.js +20 -67
  301. package/dist/workflows/{source-ir/github-yaml.js → github-yaml.js} +88 -206
  302. package/dist/workflows/ir/params.js +6 -51
  303. package/dist/workflows/ir/plan-hash.js +2 -34
  304. package/dist/workflows/parser.js +140 -43
  305. package/dist/{commands/improve/consolidate/types.js → workflows/plan.js} +2 -1
  306. package/dist/workflows/renderer.js +36 -69
  307. package/dist/workflows/resource-limits.js +12 -120
  308. package/dist/workflows/runtime/agent-identity.js +8 -40
  309. package/dist/workflows/runtime/run-outputs.js +3 -6
  310. package/dist/workflows/runtime/run-plan.js +316 -0
  311. package/dist/workflows/runtime/runs.js +48 -200
  312. package/dist/workflows/runtime/workflow-asset-loader.js +24 -57
  313. package/dist/workflows/{source-ir/semantics.js → source-semantics.js} +16 -20
  314. package/dist/workflows/validate-summary.js +2 -7
  315. package/docs/integration/bundling-akm.md +49 -42
  316. package/docs/migration/README.md +1 -0
  317. package/docs/migration/release-notes/0.9.17.md +43 -0
  318. package/docs/migration/v0.9.1-to-v0.9.2.md +23 -7
  319. package/docs/reference/cli.md +232 -135
  320. package/docs/reference/configuration.md +71 -57
  321. package/docs/reference/data-and-telemetry.md +20 -21
  322. package/docs/reference/tasks.md +105 -39
  323. package/docs/reference/workflow-schema.md +14 -18
  324. package/docs/reference/workflows.md +6 -9
  325. package/package.json +1 -1
  326. package/schemas/akm-config.json +115 -738
  327. package/schemas/akm-workflow.json +1 -0
  328. package/dist/assets/improve-strategies/graph-refresh.json +0 -15
  329. package/dist/assets/prompts/contradiction-judge.md +0 -33
  330. package/dist/assets/prompts/graph-extract-system.md +0 -1
  331. package/dist/assets/prompts/graph-extract-user-prompt.md +0 -35
  332. package/dist/assets/prompts/metadata-enhance-system.md +0 -1
  333. package/dist/assets/tasks/improve/akm-graph-refresh-weekly.yml +0 -4
  334. package/dist/commands/health/advisories.js +0 -150
  335. package/dist/commands/health/metrics.js +0 -329
  336. package/dist/commands/health/surfaces.js +0 -102
  337. package/dist/commands/improve/anti-collapse.js +0 -83
  338. package/dist/commands/improve/collapse-detector.js +0 -432
  339. package/dist/commands/improve/consolidate/eligibility.js +0 -48
  340. package/dist/commands/improve/consolidate/merge.js +0 -149
  341. package/dist/commands/improve/distill/promote-memory.js +0 -291
  342. package/dist/commands/improve/distill/quality-gate.js +0 -337
  343. package/dist/commands/improve/eval-cases.js +0 -52
  344. package/dist/commands/improve/memory/memory-contradiction-detect.js +0 -291
  345. package/dist/commands/improve/proposal-envelope.js +0 -31
  346. package/dist/commands/improve/run-context.js +0 -123
  347. package/dist/commands/improve/shared.js +0 -31
  348. package/dist/commands/improve/source-identity.js +0 -28
  349. package/dist/commands/improve/triage.js +0 -96
  350. package/dist/commands/proposal/drain-policies.js +0 -151
  351. package/dist/commands/sources/update-transaction.js +0 -220
  352. package/dist/core/action-contributors.js +0 -28
  353. package/dist/core/config/config-version-shim.js +0 -101
  354. package/dist/core/fs-txn.js +0 -405
  355. package/dist/core/lexical-score.js +0 -25
  356. package/dist/core/maintenance-barrier.js +0 -167
  357. package/dist/execution/executable-identity.js +0 -105
  358. package/dist/execution/guarded-source.js +0 -427
  359. package/dist/indexer/db/graph-db.js +0 -444
  360. package/dist/indexer/graph/graph-boost.js +0 -427
  361. package/dist/indexer/graph/graph-dedup.js +0 -95
  362. package/dist/indexer/graph/graph-extraction.js +0 -1108
  363. package/dist/indexer/search/name-match.js +0 -35
  364. package/dist/indexer/search/ranking-contributors.js +0 -515
  365. package/dist/indexer/search/ranking-types.js +0 -4
  366. package/dist/indexer/walk/project-context.js +0 -192
  367. package/dist/integrations/agent/execution-cascade.js +0 -566
  368. package/dist/integrations/agent/execution-definitions.js +0 -202
  369. package/dist/integrations/agent/execution-lowering.js +0 -841
  370. package/dist/integrations/agent/execution-preparation.js +0 -98
  371. package/dist/integrations/agent/inline-execution.js +0 -74
  372. package/dist/llm/graph-extract.js +0 -728
  373. package/dist/llm/metadata-enhance.js +0 -96
  374. package/dist/registry/create-provider-registry.js +0 -29
  375. package/dist/registry/pinned-request-helper.js +0 -247
  376. package/dist/registry/pinned-transport.js +0 -717
  377. package/dist/sources/providers/index.js +0 -14
  378. package/dist/storage/engines/sqlite-migrations.js +0 -271
  379. package/dist/storage/repositories/canaries-repository.js +0 -107
  380. package/dist/storage/repositories/embedding-salvage-repository.js +0 -184
  381. package/dist/storage/repositories/registry-cache.js +0 -113
  382. package/dist/tasks/scheduler-sync-preview.js +0 -52
  383. package/dist/tasks/source/task-to-v3.js +0 -507
  384. package/dist/workflows/freeze/resolve-steps.js +0 -86
  385. package/dist/workflows/freeze/source-freeze.js +0 -64
  386. package/dist/workflows/ir/compile.js +0 -321
  387. package/dist/workflows/ir/environment-v4.js +0 -330
  388. package/dist/workflows/ir/freeze-v4.js +0 -153
  389. package/dist/workflows/ir/schema-v4.js +0 -745
  390. package/dist/workflows/ir/schema.js +0 -354
  391. package/dist/workflows/program/schema.js +0 -77
  392. package/dist/workflows/runtime/checkin.js +0 -57
  393. package/dist/workflows/runtime/plan-classifier.js +0 -196
  394. package/dist/workflows/runtime/unit-checkin.js +0 -45
  395. package/dist/workflows/runtime/unit-phases.js +0 -20
  396. package/dist/workflows/schema.js +0 -4
  397. package/dist/workflows/source-ir/compile.js +0 -200
  398. package/dist/workflows/source-ir/program.js +0 -50
  399. package/dist/workflows/source-ir/result.js +0 -26
  400. package/dist/workflows/source-ir/schema.js +0 -786
  401. package/dist/workflows/source-ir/triggers.js +0 -79
  402. package/dist/workflows/source-ir/uses.js +0 -40
  403. package/dist/workflows/validator.js +0 -60
@@ -64,6 +64,9 @@
64
64
  "type": "integer",
65
65
  "exclusiveMinimum": 0
66
66
  },
67
+ "supportsJsonSchema": {
68
+ "type": "boolean"
69
+ },
67
70
  "extraParams": {
68
71
  "type": "object",
69
72
  "additionalProperties": {}
@@ -204,8 +207,7 @@
204
207
  },
205
208
  "dimension": {
206
209
  "type": "integer",
207
- "exclusiveMinimum": 0,
208
- "maximum": 4096
210
+ "exclusiveMinimum": 0
209
211
  },
210
212
  "localModel": {
211
213
  "type": "string",
@@ -241,6 +243,16 @@
241
243
  "type": "integer",
242
244
  "exclusiveMinimum": 0
243
245
  },
246
+ "queryTimeoutMs": {
247
+ "type": "integer",
248
+ "exclusiveMinimum": 0
249
+ },
250
+ "queryTemplate": {
251
+ "type": "string"
252
+ },
253
+ "documentTemplate": {
254
+ "type": "string"
255
+ },
244
256
  "concurrency": {
245
257
  "type": "integer",
246
258
  "exclusiveMinimum": 0,
@@ -261,7 +273,7 @@
261
273
  "default": []
262
274
  }
263
275
  },
264
- "additionalProperties": false
276
+ "additionalProperties": true
265
277
  },
266
278
  "index": {
267
279
  "type": "object",
@@ -322,15 +334,6 @@
322
334
  }
323
335
  },
324
336
  "additionalProperties": true
325
- },
326
- "metadataEnhance": {
327
- "type": "object",
328
- "properties": {
329
- "enabled": {
330
- "type": "boolean"
331
- }
332
- },
333
- "additionalProperties": true
334
337
  }
335
338
  },
336
339
  "additionalProperties": {
@@ -389,21 +392,6 @@
389
392
  }
390
393
  },
391
394
  "additionalProperties": true
392
- },
393
- "graphExtractionBatchSize": {
394
- "type": "integer",
395
- "exclusiveMinimum": 0
396
- },
397
- "graphExtractionIncludeTypes": {
398
- "type": "array",
399
- "items": {
400
- "type": "string",
401
- "minLength": 1
402
- },
403
- "minItems": 1
404
- },
405
- "lazyGraphExtraction": {
406
- "type": "boolean"
407
395
  }
408
396
  },
409
397
  "additionalProperties": true
@@ -564,10 +552,6 @@
564
552
  "search": {
565
553
  "type": "object",
566
554
  "properties": {
567
- "minScore": {
568
- "type": "number",
569
- "minimum": 0
570
- },
571
555
  "defaultExcludeTypes": {
572
556
  "type": "array",
573
557
  "items": {
@@ -575,46 +559,6 @@
575
559
  "minLength": 1
576
560
  }
577
561
  },
578
- "graphBoost": {
579
- "type": "object",
580
- "properties": {
581
- "directBoostPerEntity": {
582
- "type": "number",
583
- "minimum": 0
584
- },
585
- "directBoostCap": {
586
- "type": "number",
587
- "minimum": 0
588
- },
589
- "hopBoostPerEntity": {
590
- "type": "number",
591
- "minimum": 0
592
- },
593
- "hopBoostCap": {
594
- "type": "number",
595
- "minimum": 0
596
- },
597
- "maxHops": {
598
- "type": "integer",
599
- "exclusiveMinimum": 0,
600
- "maximum": 3
601
- },
602
- "confidenceMode": {
603
- "type": "string",
604
- "enum": [
605
- "blend"
606
- ],
607
- "default": "blend"
608
- },
609
- "confidenceWeight": {
610
- "type": "number",
611
- "minimum": 0,
612
- "maximum": 1,
613
- "default": 0.2
614
- }
615
- },
616
- "additionalProperties": true
617
- },
618
562
  "curateRerank": {
619
563
  "type": "object",
620
564
  "properties": {
@@ -641,7 +585,7 @@
641
585
  "maximum": 50
642
586
  }
643
587
  },
644
- "additionalProperties": false
588
+ "additionalProperties": true
645
589
  }
646
590
  },
647
591
  "additionalProperties": true
@@ -796,6 +740,13 @@
796
740
  "minLength": 1
797
741
  }
798
742
  },
743
+ "excludeRefPrefixes": {
744
+ "type": "array",
745
+ "items": {
746
+ "type": "string",
747
+ "minLength": 1
748
+ }
749
+ },
799
750
  "limit": {
800
751
  "type": "integer",
801
752
  "exclusiveMinimum": 0
@@ -1003,13 +954,6 @@
1003
954
  "minimum": 1,
1004
955
  "maximum": 50
1005
956
  },
1006
- "incrementalSince": {
1007
- "type": "string"
1008
- },
1009
- "neighborsPerChanged": {
1010
- "type": "integer",
1011
- "minimum": 1
1012
- },
1013
957
  "p90ChunkSecondsDefault": {
1014
958
  "type": "number",
1015
959
  "exclusiveMinimum": 0
@@ -1020,34 +964,10 @@
1020
964
  "enabled": {
1021
965
  "type": "boolean"
1022
966
  },
1023
- "maxGeneration": {
1024
- "type": "integer",
1025
- "minimum": 1
1026
- },
1027
- "lexicalDiversityCheck": {
1028
- "type": "boolean"
1029
- },
1030
967
  "randomClusterFraction": {
1031
968
  "type": "number",
1032
969
  "minimum": 0,
1033
970
  "maximum": 1
1034
- },
1035
- "mergeInformationFloor": {
1036
- "type": "boolean"
1037
- },
1038
- "minSpecificityRetention": {
1039
- "type": "number",
1040
- "minimum": 0,
1041
- "maximum": 1
1042
- }
1043
- },
1044
- "additionalProperties": true
1045
- },
1046
- "contradictionDetection": {
1047
- "type": "object",
1048
- "properties": {
1049
- "enabled": {
1050
- "type": "boolean"
1051
971
  }
1052
972
  },
1053
973
  "additionalProperties": true
@@ -1132,85 +1052,6 @@
1132
1052
  },
1133
1053
  "additionalProperties": true
1134
1054
  },
1135
- "graphExtraction": {
1136
- "type": "object",
1137
- "properties": {
1138
- "engine": {
1139
- "type": "string",
1140
- "maxLength": 63,
1141
- "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
1142
- },
1143
- "model": {
1144
- "type": "string",
1145
- "minLength": 1
1146
- },
1147
- "llm": {
1148
- "type": "object",
1149
- "properties": {
1150
- "temperature": {
1151
- "type": "number"
1152
- },
1153
- "maxTokens": {
1154
- "type": "integer",
1155
- "exclusiveMinimum": 0
1156
- },
1157
- "supportsJsonSchema": {
1158
- "type": "boolean"
1159
- },
1160
- "extraParams": {
1161
- "type": "object",
1162
- "additionalProperties": {}
1163
- },
1164
- "contextLength": {
1165
- "type": "integer",
1166
- "exclusiveMinimum": 0
1167
- },
1168
- "enableThinking": {
1169
- "type": "boolean"
1170
- },
1171
- "reasoningEffort": {
1172
- "type": "string",
1173
- "minLength": 1
1174
- }
1175
- },
1176
- "additionalProperties": true
1177
- },
1178
- "enabled": {
1179
- "type": "boolean"
1180
- },
1181
- "timeoutMs": {
1182
- "anyOf": [
1183
- {
1184
- "type": "integer",
1185
- "exclusiveMinimum": 0
1186
- },
1187
- {
1188
- "type": "null"
1189
- }
1190
- ]
1191
- },
1192
- "topN": {
1193
- "type": "integer",
1194
- "exclusiveMinimum": 0
1195
- },
1196
- "includeTypes": {
1197
- "type": "array",
1198
- "items": {
1199
- "type": "string",
1200
- "minLength": 1
1201
- },
1202
- "minItems": 1
1203
- },
1204
- "batchSize": {
1205
- "type": "integer",
1206
- "exclusiveMinimum": 0
1207
- },
1208
- "fullScan": {
1209
- "type": "boolean"
1210
- }
1211
- },
1212
- "additionalProperties": true
1213
- },
1214
1055
  "extract": {
1215
1056
  "type": "object",
1216
1057
  "properties": {
@@ -1435,21 +1276,10 @@
1435
1276
  "promote"
1436
1277
  ]
1437
1278
  },
1438
- "policy": {
1439
- "type": "string",
1440
- "minLength": 1
1441
- },
1442
1279
  "maxAcceptsPerRun": {
1443
1280
  "type": "integer",
1444
1281
  "exclusiveMinimum": 0
1445
1282
  },
1446
- "maxDiffLines": {
1447
- "type": "integer",
1448
- "exclusiveMinimum": 0
1449
- },
1450
- "rejectEmpty": {
1451
- "type": "boolean"
1452
- },
1453
1283
  "judgment": {
1454
1284
  "anyOf": [
1455
1285
  {
@@ -1510,10 +1340,10 @@
1510
1340
  "minLength": 1
1511
1341
  }
1512
1342
  },
1513
- "additionalProperties": false
1343
+ "additionalProperties": true
1514
1344
  }
1515
1345
  },
1516
- "additionalProperties": false
1346
+ "additionalProperties": true
1517
1347
  }
1518
1348
  ]
1519
1349
  }
@@ -1623,20 +1453,6 @@
1623
1453
  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
1624
1454
  }
1625
1455
  },
1626
- "utilityDecay": {
1627
- "type": "object",
1628
- "properties": {
1629
- "halfLifeDays": {
1630
- "type": "number",
1631
- "minimum": 0.1
1632
- },
1633
- "feedbackStabilityBoost": {
1634
- "type": "number",
1635
- "minimum": 1
1636
- }
1637
- },
1638
- "additionalProperties": true
1639
- },
1640
1456
  "eventRetentionDays": {
1641
1457
  "type": "number",
1642
1458
  "minimum": 0
@@ -1651,48 +1467,6 @@
1651
1467
  "type": "number",
1652
1468
  "minimum": 0,
1653
1469
  "maximum": 1
1654
- },
1655
- "replayBudget": {
1656
- "type": "integer",
1657
- "minimum": 0
1658
- }
1659
- },
1660
- "additionalProperties": true
1661
- },
1662
- "collapseDetector": {
1663
- "type": "object",
1664
- "properties": {
1665
- "enabled": {
1666
- "type": "boolean"
1667
- },
1668
- "canaryCount": {
1669
- "type": "integer",
1670
- "minimum": 3,
1671
- "maximum": 200
1672
- },
1673
- "k": {
1674
- "type": "integer",
1675
- "minimum": 1,
1676
- "maximum": 100
1677
- },
1678
- "windowCycles": {
1679
- "type": "integer",
1680
- "minimum": 2,
1681
- "maximum": 50
1682
- },
1683
- "recallDropThreshold": {
1684
- "type": "number",
1685
- "minimum": 0,
1686
- "maximum": 1
1687
- },
1688
- "entropyDropThreshold": {
1689
- "type": "number",
1690
- "minimum": 0,
1691
- "maximum": 1
1692
- },
1693
- "retentionDays": {
1694
- "type": "integer",
1695
- "minimum": 1
1696
1470
  }
1697
1471
  },
1698
1472
  "additionalProperties": true
@@ -1734,35 +1508,29 @@
1734
1508
  "enabled": {
1735
1509
  "type": "array",
1736
1510
  "items": {
1737
- "type": "object",
1738
- "properties": {
1739
- "kind": {
1740
- "type": "string",
1741
- "enum": [
1742
- "task",
1743
- "workflow"
1744
- ]
1745
- },
1746
- "ref": {
1511
+ "anyOf": [
1512
+ {
1747
1513
  "type": "string",
1748
1514
  "minLength": 1
1749
1515
  },
1750
- "sourceId": {
1751
- "type": "string",
1752
- "pattern": "^sha256:[0-9a-f]{64}$"
1516
+ {
1517
+ "type": "object",
1518
+ "properties": {
1519
+ "ref": {
1520
+ "type": "string",
1521
+ "minLength": 1
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "ref"
1526
+ ],
1527
+ "additionalProperties": true
1753
1528
  }
1754
- },
1755
- "required": [
1756
- "kind",
1757
- "ref",
1758
- "sourceId"
1759
- ],
1760
- "additionalProperties": false
1761
- },
1762
- "default": []
1529
+ ]
1530
+ }
1763
1531
  }
1764
1532
  },
1765
- "additionalProperties": false
1533
+ "additionalProperties": true
1766
1534
  },
1767
1535
  "setup": {
1768
1536
  "type": "object",
@@ -1776,7 +1544,7 @@
1776
1544
  "type": "boolean"
1777
1545
  }
1778
1546
  },
1779
- "additionalProperties": false
1547
+ "additionalProperties": true
1780
1548
  }
1781
1549
  },
1782
1550
  "required": [
@@ -1846,6 +1614,9 @@
1846
1614
  "type": "integer",
1847
1615
  "exclusiveMinimum": 0
1848
1616
  },
1617
+ "supportsJsonSchema": {
1618
+ "type": "boolean"
1619
+ },
1849
1620
  "extraParams": {
1850
1621
  "type": "object",
1851
1622
  "additionalProperties": {}
@@ -1986,8 +1757,7 @@
1986
1757
  },
1987
1758
  "dimension": {
1988
1759
  "type": "integer",
1989
- "exclusiveMinimum": 0,
1990
- "maximum": 4096
1760
+ "exclusiveMinimum": 0
1991
1761
  },
1992
1762
  "localModel": {
1993
1763
  "type": "string",
@@ -2023,6 +1793,16 @@
2023
1793
  "type": "integer",
2024
1794
  "exclusiveMinimum": 0
2025
1795
  },
1796
+ "queryTimeoutMs": {
1797
+ "type": "integer",
1798
+ "exclusiveMinimum": 0
1799
+ },
1800
+ "queryTemplate": {
1801
+ "type": "string"
1802
+ },
1803
+ "documentTemplate": {
1804
+ "type": "string"
1805
+ },
2026
1806
  "concurrency": {
2027
1807
  "type": "integer",
2028
1808
  "exclusiveMinimum": 0,
@@ -2043,7 +1823,7 @@
2043
1823
  "default": []
2044
1824
  }
2045
1825
  },
2046
- "additionalProperties": false
1826
+ "additionalProperties": true
2047
1827
  },
2048
1828
  "index": {
2049
1829
  "type": "object",
@@ -2104,15 +1884,6 @@
2104
1884
  }
2105
1885
  },
2106
1886
  "additionalProperties": true
2107
- },
2108
- "metadataEnhance": {
2109
- "type": "object",
2110
- "properties": {
2111
- "enabled": {
2112
- "type": "boolean"
2113
- }
2114
- },
2115
- "additionalProperties": true
2116
1887
  }
2117
1888
  },
2118
1889
  "additionalProperties": {
@@ -2171,21 +1942,6 @@
2171
1942
  }
2172
1943
  },
2173
1944
  "additionalProperties": true
2174
- },
2175
- "graphExtractionBatchSize": {
2176
- "type": "integer",
2177
- "exclusiveMinimum": 0
2178
- },
2179
- "graphExtractionIncludeTypes": {
2180
- "type": "array",
2181
- "items": {
2182
- "type": "string",
2183
- "minLength": 1
2184
- },
2185
- "minItems": 1
2186
- },
2187
- "lazyGraphExtraction": {
2188
- "type": "boolean"
2189
1945
  }
2190
1946
  },
2191
1947
  "additionalProperties": true
@@ -2346,10 +2102,6 @@
2346
2102
  "search": {
2347
2103
  "type": "object",
2348
2104
  "properties": {
2349
- "minScore": {
2350
- "type": "number",
2351
- "minimum": 0
2352
- },
2353
2105
  "defaultExcludeTypes": {
2354
2106
  "type": "array",
2355
2107
  "items": {
@@ -2357,46 +2109,6 @@
2357
2109
  "minLength": 1
2358
2110
  }
2359
2111
  },
2360
- "graphBoost": {
2361
- "type": "object",
2362
- "properties": {
2363
- "directBoostPerEntity": {
2364
- "type": "number",
2365
- "minimum": 0
2366
- },
2367
- "directBoostCap": {
2368
- "type": "number",
2369
- "minimum": 0
2370
- },
2371
- "hopBoostPerEntity": {
2372
- "type": "number",
2373
- "minimum": 0
2374
- },
2375
- "hopBoostCap": {
2376
- "type": "number",
2377
- "minimum": 0
2378
- },
2379
- "maxHops": {
2380
- "type": "integer",
2381
- "exclusiveMinimum": 0,
2382
- "maximum": 3
2383
- },
2384
- "confidenceMode": {
2385
- "type": "string",
2386
- "enum": [
2387
- "blend"
2388
- ],
2389
- "default": "blend"
2390
- },
2391
- "confidenceWeight": {
2392
- "type": "number",
2393
- "minimum": 0,
2394
- "maximum": 1,
2395
- "default": 0.2
2396
- }
2397
- },
2398
- "additionalProperties": true
2399
- },
2400
2112
  "curateRerank": {
2401
2113
  "type": "object",
2402
2114
  "properties": {
@@ -2423,7 +2135,7 @@
2423
2135
  "maximum": 50
2424
2136
  }
2425
2137
  },
2426
- "additionalProperties": false
2138
+ "additionalProperties": true
2427
2139
  }
2428
2140
  },
2429
2141
  "additionalProperties": true
@@ -2578,6 +2290,13 @@
2578
2290
  "minLength": 1
2579
2291
  }
2580
2292
  },
2293
+ "excludeRefPrefixes": {
2294
+ "type": "array",
2295
+ "items": {
2296
+ "type": "string",
2297
+ "minLength": 1
2298
+ }
2299
+ },
2581
2300
  "limit": {
2582
2301
  "type": "integer",
2583
2302
  "exclusiveMinimum": 0
@@ -2785,13 +2504,6 @@
2785
2504
  "minimum": 1,
2786
2505
  "maximum": 50
2787
2506
  },
2788
- "incrementalSince": {
2789
- "type": "string"
2790
- },
2791
- "neighborsPerChanged": {
2792
- "type": "integer",
2793
- "minimum": 1
2794
- },
2795
2507
  "p90ChunkSecondsDefault": {
2796
2508
  "type": "number",
2797
2509
  "exclusiveMinimum": 0
@@ -2802,34 +2514,10 @@
2802
2514
  "enabled": {
2803
2515
  "type": "boolean"
2804
2516
  },
2805
- "maxGeneration": {
2806
- "type": "integer",
2807
- "minimum": 1
2808
- },
2809
- "lexicalDiversityCheck": {
2810
- "type": "boolean"
2811
- },
2812
2517
  "randomClusterFraction": {
2813
2518
  "type": "number",
2814
2519
  "minimum": 0,
2815
2520
  "maximum": 1
2816
- },
2817
- "mergeInformationFloor": {
2818
- "type": "boolean"
2819
- },
2820
- "minSpecificityRetention": {
2821
- "type": "number",
2822
- "minimum": 0,
2823
- "maximum": 1
2824
- }
2825
- },
2826
- "additionalProperties": true
2827
- },
2828
- "contradictionDetection": {
2829
- "type": "object",
2830
- "properties": {
2831
- "enabled": {
2832
- "type": "boolean"
2833
2521
  }
2834
2522
  },
2835
2523
  "additionalProperties": true
@@ -2914,85 +2602,6 @@
2914
2602
  },
2915
2603
  "additionalProperties": true
2916
2604
  },
2917
- "graphExtraction": {
2918
- "type": "object",
2919
- "properties": {
2920
- "engine": {
2921
- "type": "string",
2922
- "maxLength": 63,
2923
- "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
2924
- },
2925
- "model": {
2926
- "type": "string",
2927
- "minLength": 1
2928
- },
2929
- "llm": {
2930
- "type": "object",
2931
- "properties": {
2932
- "temperature": {
2933
- "type": "number"
2934
- },
2935
- "maxTokens": {
2936
- "type": "integer",
2937
- "exclusiveMinimum": 0
2938
- },
2939
- "supportsJsonSchema": {
2940
- "type": "boolean"
2941
- },
2942
- "extraParams": {
2943
- "type": "object",
2944
- "additionalProperties": {}
2945
- },
2946
- "contextLength": {
2947
- "type": "integer",
2948
- "exclusiveMinimum": 0
2949
- },
2950
- "enableThinking": {
2951
- "type": "boolean"
2952
- },
2953
- "reasoningEffort": {
2954
- "type": "string",
2955
- "minLength": 1
2956
- }
2957
- },
2958
- "additionalProperties": true
2959
- },
2960
- "enabled": {
2961
- "type": "boolean"
2962
- },
2963
- "timeoutMs": {
2964
- "anyOf": [
2965
- {
2966
- "type": "integer",
2967
- "exclusiveMinimum": 0
2968
- },
2969
- {
2970
- "type": "null"
2971
- }
2972
- ]
2973
- },
2974
- "topN": {
2975
- "type": "integer",
2976
- "exclusiveMinimum": 0
2977
- },
2978
- "includeTypes": {
2979
- "type": "array",
2980
- "items": {
2981
- "type": "string",
2982
- "minLength": 1
2983
- },
2984
- "minItems": 1
2985
- },
2986
- "batchSize": {
2987
- "type": "integer",
2988
- "exclusiveMinimum": 0
2989
- },
2990
- "fullScan": {
2991
- "type": "boolean"
2992
- }
2993
- },
2994
- "additionalProperties": true
2995
- },
2996
2605
  "extract": {
2997
2606
  "type": "object",
2998
2607
  "properties": {
@@ -3217,21 +2826,10 @@
3217
2826
  "promote"
3218
2827
  ]
3219
2828
  },
3220
- "policy": {
3221
- "type": "string",
3222
- "minLength": 1
3223
- },
3224
2829
  "maxAcceptsPerRun": {
3225
2830
  "type": "integer",
3226
2831
  "exclusiveMinimum": 0
3227
2832
  },
3228
- "maxDiffLines": {
3229
- "type": "integer",
3230
- "exclusiveMinimum": 0
3231
- },
3232
- "rejectEmpty": {
3233
- "type": "boolean"
3234
- },
3235
2833
  "judgment": {
3236
2834
  "anyOf": [
3237
2835
  {
@@ -3292,10 +2890,10 @@
3292
2890
  "minLength": 1
3293
2891
  }
3294
2892
  },
3295
- "additionalProperties": false
2893
+ "additionalProperties": true
3296
2894
  }
3297
2895
  },
3298
- "additionalProperties": false
2896
+ "additionalProperties": true
3299
2897
  }
3300
2898
  ]
3301
2899
  }
@@ -3405,20 +3003,6 @@
3405
3003
  "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
3406
3004
  }
3407
3005
  },
3408
- "utilityDecay": {
3409
- "type": "object",
3410
- "properties": {
3411
- "halfLifeDays": {
3412
- "type": "number",
3413
- "minimum": 0.1
3414
- },
3415
- "feedbackStabilityBoost": {
3416
- "type": "number",
3417
- "minimum": 1
3418
- }
3419
- },
3420
- "additionalProperties": true
3421
- },
3422
3006
  "eventRetentionDays": {
3423
3007
  "type": "number",
3424
3008
  "minimum": 0
@@ -3433,48 +3017,6 @@
3433
3017
  "type": "number",
3434
3018
  "minimum": 0,
3435
3019
  "maximum": 1
3436
- },
3437
- "replayBudget": {
3438
- "type": "integer",
3439
- "minimum": 0
3440
- }
3441
- },
3442
- "additionalProperties": true
3443
- },
3444
- "collapseDetector": {
3445
- "type": "object",
3446
- "properties": {
3447
- "enabled": {
3448
- "type": "boolean"
3449
- },
3450
- "canaryCount": {
3451
- "type": "integer",
3452
- "minimum": 3,
3453
- "maximum": 200
3454
- },
3455
- "k": {
3456
- "type": "integer",
3457
- "minimum": 1,
3458
- "maximum": 100
3459
- },
3460
- "windowCycles": {
3461
- "type": "integer",
3462
- "minimum": 2,
3463
- "maximum": 50
3464
- },
3465
- "recallDropThreshold": {
3466
- "type": "number",
3467
- "minimum": 0,
3468
- "maximum": 1
3469
- },
3470
- "entropyDropThreshold": {
3471
- "type": "number",
3472
- "minimum": 0,
3473
- "maximum": 1
3474
- },
3475
- "retentionDays": {
3476
- "type": "integer",
3477
- "minimum": 1
3478
3020
  }
3479
3021
  },
3480
3022
  "additionalProperties": true
@@ -3516,35 +3058,29 @@
3516
3058
  "enabled": {
3517
3059
  "type": "array",
3518
3060
  "items": {
3519
- "type": "object",
3520
- "properties": {
3521
- "kind": {
3522
- "type": "string",
3523
- "enum": [
3524
- "task",
3525
- "workflow"
3526
- ]
3527
- },
3528
- "ref": {
3061
+ "anyOf": [
3062
+ {
3529
3063
  "type": "string",
3530
3064
  "minLength": 1
3531
3065
  },
3532
- "sourceId": {
3533
- "type": "string",
3534
- "pattern": "^sha256:[0-9a-f]{64}$"
3066
+ {
3067
+ "type": "object",
3068
+ "properties": {
3069
+ "ref": {
3070
+ "type": "string",
3071
+ "minLength": 1
3072
+ }
3073
+ },
3074
+ "required": [
3075
+ "ref"
3076
+ ],
3077
+ "additionalProperties": true
3535
3078
  }
3536
- },
3537
- "required": [
3538
- "kind",
3539
- "ref",
3540
- "sourceId"
3541
- ],
3542
- "additionalProperties": false
3543
- },
3544
- "default": []
3079
+ ]
3080
+ }
3545
3081
  }
3546
3082
  },
3547
- "additionalProperties": false
3083
+ "additionalProperties": true
3548
3084
  },
3549
3085
  "setup": {
3550
3086
  "type": "object",
@@ -3558,7 +3094,7 @@
3558
3094
  "type": "boolean"
3559
3095
  }
3560
3096
  },
3561
- "additionalProperties": false
3097
+ "additionalProperties": true
3562
3098
  }
3563
3099
  },
3564
3100
  "required": [
@@ -3646,8 +3182,7 @@
3646
3182
  },
3647
3183
  "dimension": {
3648
3184
  "type": "integer",
3649
- "exclusiveMinimum": 0,
3650
- "maximum": 4096
3185
+ "exclusiveMinimum": 0
3651
3186
  },
3652
3187
  "localModel": {
3653
3188
  "type": "string",
@@ -3683,6 +3218,16 @@
3683
3218
  "type": "integer",
3684
3219
  "exclusiveMinimum": 0
3685
3220
  },
3221
+ "queryTimeoutMs": {
3222
+ "type": "integer",
3223
+ "exclusiveMinimum": 0
3224
+ },
3225
+ "queryTemplate": {
3226
+ "type": "string"
3227
+ },
3228
+ "documentTemplate": {
3229
+ "type": "string"
3230
+ },
3686
3231
  "concurrency": {
3687
3232
  "type": "integer",
3688
3233
  "exclusiveMinimum": 0,
@@ -3755,6 +3300,13 @@
3755
3300
  "minLength": 1
3756
3301
  }
3757
3302
  },
3303
+ "excludeRefPrefixes": {
3304
+ "type": "array",
3305
+ "items": {
3306
+ "type": "string",
3307
+ "minLength": 1
3308
+ }
3309
+ },
3758
3310
  "limit": {
3759
3311
  "type": "integer",
3760
3312
  "exclusiveMinimum": 0
@@ -3811,13 +3363,6 @@
3811
3363
  "minimum": 1,
3812
3364
  "maximum": 50
3813
3365
  },
3814
- "incrementalSince": {
3815
- "type": "string"
3816
- },
3817
- "neighborsPerChanged": {
3818
- "type": "integer",
3819
- "minimum": 1
3820
- },
3821
3366
  "p90ChunkSecondsDefault": {
3822
3367
  "type": "number",
3823
3368
  "exclusiveMinimum": 0
@@ -3828,34 +3373,10 @@
3828
3373
  "enabled": {
3829
3374
  "type": "boolean"
3830
3375
  },
3831
- "maxGeneration": {
3832
- "type": "integer",
3833
- "minimum": 1
3834
- },
3835
- "lexicalDiversityCheck": {
3836
- "type": "boolean"
3837
- },
3838
3376
  "randomClusterFraction": {
3839
3377
  "type": "number",
3840
3378
  "minimum": 0,
3841
3379
  "maximum": 1
3842
- },
3843
- "mergeInformationFloor": {
3844
- "type": "boolean"
3845
- },
3846
- "minSpecificityRetention": {
3847
- "type": "number",
3848
- "minimum": 0,
3849
- "maximum": 1
3850
- }
3851
- },
3852
- "additionalProperties": true
3853
- },
3854
- "contradictionDetection": {
3855
- "type": "object",
3856
- "properties": {
3857
- "enabled": {
3858
- "type": "boolean"
3859
3380
  }
3860
3381
  },
3861
3382
  "additionalProperties": true
@@ -3864,25 +3385,6 @@
3864
3385
  "type": "integer",
3865
3386
  "minimum": 0
3866
3387
  },
3867
- "topN": {
3868
- "type": "integer",
3869
- "exclusiveMinimum": 0
3870
- },
3871
- "includeTypes": {
3872
- "type": "array",
3873
- "items": {
3874
- "type": "string",
3875
- "minLength": 1
3876
- },
3877
- "minItems": 1
3878
- },
3879
- "batchSize": {
3880
- "type": "integer",
3881
- "exclusiveMinimum": 0
3882
- },
3883
- "fullScan": {
3884
- "type": "boolean"
3885
- },
3886
3388
  "defaultSince": {
3887
3389
  "type": "string",
3888
3390
  "minLength": 1
@@ -3930,21 +3432,10 @@
3930
3432
  "promote"
3931
3433
  ]
3932
3434
  },
3933
- "policy": {
3934
- "type": "string",
3935
- "minLength": 1
3936
- },
3937
3435
  "maxAcceptsPerRun": {
3938
3436
  "type": "integer",
3939
3437
  "exclusiveMinimum": 0
3940
3438
  },
3941
- "maxDiffLines": {
3942
- "type": "integer",
3943
- "exclusiveMinimum": 0
3944
- },
3945
- "rejectEmpty": {
3946
- "type": "boolean"
3947
- },
3948
3439
  "judgment": {
3949
3440
  "anyOf": [
3950
3441
  {
@@ -4005,10 +3496,10 @@
4005
3496
  "minLength": 1
4006
3497
  }
4007
3498
  },
4008
- "additionalProperties": false
3499
+ "additionalProperties": true
4009
3500
  }
4010
3501
  },
4011
- "additionalProperties": false
3502
+ "additionalProperties": true
4012
3503
  }
4013
3504
  ]
4014
3505
  },
@@ -4148,6 +3639,13 @@
4148
3639
  "minLength": 1
4149
3640
  }
4150
3641
  },
3642
+ "excludeRefPrefixes": {
3643
+ "type": "array",
3644
+ "items": {
3645
+ "type": "string",
3646
+ "minLength": 1
3647
+ }
3648
+ },
4151
3649
  "limit": {
4152
3650
  "type": "integer",
4153
3651
  "exclusiveMinimum": 0
@@ -4355,13 +3853,6 @@
4355
3853
  "minimum": 1,
4356
3854
  "maximum": 50
4357
3855
  },
4358
- "incrementalSince": {
4359
- "type": "string"
4360
- },
4361
- "neighborsPerChanged": {
4362
- "type": "integer",
4363
- "minimum": 1
4364
- },
4365
3856
  "p90ChunkSecondsDefault": {
4366
3857
  "type": "number",
4367
3858
  "exclusiveMinimum": 0
@@ -4372,34 +3863,10 @@
4372
3863
  "enabled": {
4373
3864
  "type": "boolean"
4374
3865
  },
4375
- "maxGeneration": {
4376
- "type": "integer",
4377
- "minimum": 1
4378
- },
4379
- "lexicalDiversityCheck": {
4380
- "type": "boolean"
4381
- },
4382
3866
  "randomClusterFraction": {
4383
3867
  "type": "number",
4384
3868
  "minimum": 0,
4385
3869
  "maximum": 1
4386
- },
4387
- "mergeInformationFloor": {
4388
- "type": "boolean"
4389
- },
4390
- "minSpecificityRetention": {
4391
- "type": "number",
4392
- "minimum": 0,
4393
- "maximum": 1
4394
- }
4395
- },
4396
- "additionalProperties": true
4397
- },
4398
- "contradictionDetection": {
4399
- "type": "object",
4400
- "properties": {
4401
- "enabled": {
4402
- "type": "boolean"
4403
3870
  }
4404
3871
  },
4405
3872
  "additionalProperties": true
@@ -4484,85 +3951,6 @@
4484
3951
  },
4485
3952
  "additionalProperties": true
4486
3953
  },
4487
- "graphExtraction": {
4488
- "type": "object",
4489
- "properties": {
4490
- "engine": {
4491
- "type": "string",
4492
- "maxLength": 63,
4493
- "pattern": "^(?!akm-)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
4494
- },
4495
- "model": {
4496
- "type": "string",
4497
- "minLength": 1
4498
- },
4499
- "llm": {
4500
- "type": "object",
4501
- "properties": {
4502
- "temperature": {
4503
- "type": "number"
4504
- },
4505
- "maxTokens": {
4506
- "type": "integer",
4507
- "exclusiveMinimum": 0
4508
- },
4509
- "supportsJsonSchema": {
4510
- "type": "boolean"
4511
- },
4512
- "extraParams": {
4513
- "type": "object",
4514
- "additionalProperties": {}
4515
- },
4516
- "contextLength": {
4517
- "type": "integer",
4518
- "exclusiveMinimum": 0
4519
- },
4520
- "enableThinking": {
4521
- "type": "boolean"
4522
- },
4523
- "reasoningEffort": {
4524
- "type": "string",
4525
- "minLength": 1
4526
- }
4527
- },
4528
- "additionalProperties": true
4529
- },
4530
- "enabled": {
4531
- "type": "boolean"
4532
- },
4533
- "timeoutMs": {
4534
- "anyOf": [
4535
- {
4536
- "type": "integer",
4537
- "exclusiveMinimum": 0
4538
- },
4539
- {
4540
- "type": "null"
4541
- }
4542
- ]
4543
- },
4544
- "topN": {
4545
- "type": "integer",
4546
- "exclusiveMinimum": 0
4547
- },
4548
- "includeTypes": {
4549
- "type": "array",
4550
- "items": {
4551
- "type": "string",
4552
- "minLength": 1
4553
- },
4554
- "minItems": 1
4555
- },
4556
- "batchSize": {
4557
- "type": "integer",
4558
- "exclusiveMinimum": 0
4559
- },
4560
- "fullScan": {
4561
- "type": "boolean"
4562
- }
4563
- },
4564
- "additionalProperties": true
4565
- },
4566
3954
  "extract": {
4567
3955
  "type": "object",
4568
3956
  "properties": {
@@ -4787,21 +4175,10 @@
4787
4175
  "promote"
4788
4176
  ]
4789
4177
  },
4790
- "policy": {
4791
- "type": "string",
4792
- "minLength": 1
4793
- },
4794
4178
  "maxAcceptsPerRun": {
4795
4179
  "type": "integer",
4796
4180
  "exclusiveMinimum": 0
4797
4181
  },
4798
- "maxDiffLines": {
4799
- "type": "integer",
4800
- "exclusiveMinimum": 0
4801
- },
4802
- "rejectEmpty": {
4803
- "type": "boolean"
4804
- },
4805
4182
  "judgment": {
4806
4183
  "anyOf": [
4807
4184
  {
@@ -4862,10 +4239,10 @@
4862
4239
  "minLength": 1
4863
4240
  }
4864
4241
  },
4865
- "additionalProperties": false
4242
+ "additionalProperties": true
4866
4243
  }
4867
4244
  },
4868
- "additionalProperties": false
4245
+ "additionalProperties": true
4869
4246
  }
4870
4247
  ]
4871
4248
  }