universal-physics-tensor 11.0.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/README.md +36 -34
  2. package/data/applied-cases.json +1892 -0
  3. package/data/applied-cases.schema.json +194 -0
  4. package/data/atlas/atlas.json +21 -21
  5. package/data/atlas/atlas.jsonld +1 -1
  6. package/data/atlas/diffusion.json +5 -5
  7. package/data/atlas/oscillators.json +7 -7
  8. package/data/atlas/waves.json +11 -11
  9. package/data/bridge-catalog.json +20 -4
  10. package/data/units.json +6 -25
  11. package/dist/atlas/benchmark/stats.d.ts.map +1 -1
  12. package/dist/atlas/benchmark/stats.js +6 -20
  13. package/dist/atlas/benchmark/stats.js.map +1 -1
  14. package/dist/atlas/physjs-entries.generated.d.ts +13 -4
  15. package/dist/atlas/physjs-entries.generated.d.ts.map +1 -1
  16. package/dist/atlas/physjs-entries.generated.js +15 -4
  17. package/dist/atlas/physjs-entries.generated.js.map +1 -1
  18. package/dist/atlas/physjs-reviewed.js +2 -2
  19. package/dist/atlas/physjs-reviewed.js.map +1 -1
  20. package/dist/cases/catalog-checks.d.ts +10 -0
  21. package/dist/cases/catalog-checks.d.ts.map +1 -0
  22. package/dist/cases/catalog-checks.js +241 -0
  23. package/dist/cases/catalog-checks.js.map +1 -0
  24. package/dist/cases/catalog.d.ts +83 -0
  25. package/dist/cases/catalog.d.ts.map +1 -0
  26. package/dist/cases/catalog.js +118 -0
  27. package/dist/cases/catalog.js.map +1 -0
  28. package/dist/cases/engine.d.ts +13 -0
  29. package/dist/cases/engine.d.ts.map +1 -0
  30. package/dist/cases/engine.js +179 -0
  31. package/dist/cases/engine.js.map +1 -0
  32. package/dist/cases/index.d.ts.map +1 -1
  33. package/dist/cases/index.js +5 -7
  34. package/dist/cases/index.js.map +1 -1
  35. package/dist/cases/methods.d.ts +215 -0
  36. package/dist/cases/methods.d.ts.map +1 -0
  37. package/dist/cases/methods.js +743 -0
  38. package/dist/cases/methods.js.map +1 -0
  39. package/dist/cases/types.d.ts +12 -0
  40. package/dist/cases/types.d.ts.map +1 -1
  41. package/dist/cases/types.js.map +1 -1
  42. package/dist/cli/args.d.ts +2 -0
  43. package/dist/cli/args.d.ts.map +1 -1
  44. package/dist/cli/args.js.map +1 -1
  45. package/dist/cli/command.d.ts +3 -0
  46. package/dist/cli/command.d.ts.map +1 -1
  47. package/dist/cli/command.js.map +1 -1
  48. package/dist/cli/commands/_discovery-opts.d.ts +1 -0
  49. package/dist/cli/commands/_discovery-opts.d.ts.map +1 -1
  50. package/dist/cli/commands/_discovery-opts.js +1 -0
  51. package/dist/cli/commands/_discovery-opts.js.map +1 -1
  52. package/dist/cli/commands/discover.d.ts.map +1 -1
  53. package/dist/cli/commands/discover.js +116 -71
  54. package/dist/cli/commands/discover.js.map +1 -1
  55. package/dist/cli/commands/evaluate.js +2 -2
  56. package/dist/cli/commands/evaluate.js.map +1 -1
  57. package/dist/cli/commands/explain.d.ts.map +1 -1
  58. package/dist/cli/commands/explain.js +22 -2
  59. package/dist/cli/commands/explain.js.map +1 -1
  60. package/dist/cli/commands/ground.d.ts.map +1 -1
  61. package/dist/cli/commands/ground.js +6 -1
  62. package/dist/cli/commands/ground.js.map +1 -1
  63. package/dist/cli/commands/map.d.ts.map +1 -1
  64. package/dist/cli/commands/map.js +9 -6
  65. package/dist/cli/commands/map.js.map +1 -1
  66. package/dist/cli/determination.d.ts +1 -0
  67. package/dist/cli/determination.d.ts.map +1 -1
  68. package/dist/cli/determination.js.map +1 -1
  69. package/dist/cli/flag-help.d.ts +1 -0
  70. package/dist/cli/flag-help.d.ts.map +1 -1
  71. package/dist/cli/flag-help.js +1 -0
  72. package/dist/cli/flag-help.js.map +1 -1
  73. package/dist/cli/graphs.d.ts +2 -0
  74. package/dist/cli/graphs.d.ts.map +1 -1
  75. package/dist/cli/graphs.js +1 -0
  76. package/dist/cli/graphs.js.map +1 -1
  77. package/dist/cli/main.d.ts +1 -0
  78. package/dist/cli/main.d.ts.map +1 -1
  79. package/dist/cli/main.js +1 -0
  80. package/dist/cli/main.js.map +1 -1
  81. package/dist/cli/output.d.ts +8 -0
  82. package/dist/cli/output.d.ts.map +1 -1
  83. package/dist/cli/output.js +8 -0
  84. package/dist/cli/output.js.map +1 -1
  85. package/dist/cli/statuses.d.ts.map +1 -1
  86. package/dist/cli/statuses.js +12 -2
  87. package/dist/cli/statuses.js.map +1 -1
  88. package/dist/cli/version.d.ts +1 -0
  89. package/dist/cli/version.d.ts.map +1 -1
  90. package/dist/cli/version.js +1 -0
  91. package/dist/cli/version.js.map +1 -1
  92. package/dist/cli-api.d.ts +2 -0
  93. package/dist/cli-api.d.ts.map +1 -1
  94. package/dist/cli-api.js +2 -0
  95. package/dist/cli-api.js.map +1 -1
  96. package/dist/composition/canonical-graph.d.ts +2 -2
  97. package/dist/composition/canonical-graph.js +2 -2
  98. package/dist/composition/canonical-graph.js.map +1 -1
  99. package/dist/composition/consequence.d.ts +15 -5
  100. package/dist/composition/consequence.d.ts.map +1 -1
  101. package/dist/composition/consequence.js +6 -4
  102. package/dist/composition/consequence.js.map +1 -1
  103. package/dist/composition/discovery.d.ts +78 -14
  104. package/dist/composition/discovery.d.ts.map +1 -1
  105. package/dist/composition/discovery.js +73 -23
  106. package/dist/composition/discovery.js.map +1 -1
  107. package/dist/composition/expr-eval.d.ts +1 -1
  108. package/dist/composition/expr-eval.d.ts.map +1 -1
  109. package/dist/composition/expr-eval.js +4 -4
  110. package/dist/composition/expr-eval.js.map +1 -1
  111. package/dist/composition/expr-simplify.d.ts +10 -14
  112. package/dist/composition/expr-simplify.d.ts.map +1 -1
  113. package/dist/composition/expr-simplify.js +49 -52
  114. package/dist/composition/expr-simplify.js.map +1 -1
  115. package/dist/composition/grounding.d.ts.map +1 -1
  116. package/dist/composition/grounding.js +19 -7
  117. package/dist/composition/grounding.js.map +1 -1
  118. package/dist/composition/mathts-quiet.d.ts +4 -6
  119. package/dist/composition/mathts-quiet.d.ts.map +1 -1
  120. package/dist/composition/mathts-quiet.js +4 -14
  121. package/dist/composition/mathts-quiet.js.map +1 -1
  122. package/dist/composition/own-equation-magnitude.d.ts +95 -0
  123. package/dist/composition/own-equation-magnitude.d.ts.map +1 -0
  124. package/dist/composition/own-equation-magnitude.js +270 -0
  125. package/dist/composition/own-equation-magnitude.js.map +1 -0
  126. package/dist/composition/probe/backend-protocol.d.ts +3 -0
  127. package/dist/composition/probe/backend-protocol.d.ts.map +1 -1
  128. package/dist/composition/probe/backend-protocol.js.map +1 -1
  129. package/dist/composition/probe/candidate-store.d.ts +1 -0
  130. package/dist/composition/probe/candidate-store.d.ts.map +1 -1
  131. package/dist/composition/probe/candidate-store.js +1 -0
  132. package/dist/composition/probe/candidate-store.js.map +1 -1
  133. package/dist/composition/probe/corpus.d.ts +4 -2
  134. package/dist/composition/probe/corpus.d.ts.map +1 -1
  135. package/dist/composition/probe/corpus.js +3 -3
  136. package/dist/composition/probe/corpus.js.map +1 -1
  137. package/dist/composition/probe/dataset.d.ts +1 -0
  138. package/dist/composition/probe/dataset.d.ts.map +1 -1
  139. package/dist/composition/probe/dataset.js.map +1 -1
  140. package/dist/composition/probe/experiment-design.d.ts +2 -0
  141. package/dist/composition/probe/experiment-design.d.ts.map +1 -1
  142. package/dist/composition/probe/experiment-design.js.map +1 -1
  143. package/dist/composition/probe/falsify.d.ts +2 -0
  144. package/dist/composition/probe/falsify.d.ts.map +1 -1
  145. package/dist/composition/probe/falsify.js.map +1 -1
  146. package/dist/composition/probe/fit.d.ts +1 -0
  147. package/dist/composition/probe/fit.d.ts.map +1 -1
  148. package/dist/composition/probe/fit.js.map +1 -1
  149. package/dist/composition/probe/generator.d.ts +3 -0
  150. package/dist/composition/probe/generator.d.ts.map +1 -1
  151. package/dist/composition/probe/generator.js +5 -6
  152. package/dist/composition/probe/generator.js.map +1 -1
  153. package/dist/composition/probe/limits.d.ts +1 -0
  154. package/dist/composition/probe/limits.d.ts.map +1 -1
  155. package/dist/composition/probe/limits.js.map +1 -1
  156. package/dist/composition/probe/pipeline.d.ts +5 -0
  157. package/dist/composition/probe/pipeline.d.ts.map +1 -1
  158. package/dist/composition/probe/pipeline.js +64 -21
  159. package/dist/composition/probe/pipeline.js.map +1 -1
  160. package/dist/composition/probe/power-law.d.ts.map +1 -1
  161. package/dist/composition/probe/power-law.js +3 -7
  162. package/dist/composition/probe/power-law.js.map +1 -1
  163. package/dist/composition/probe/problem.d.ts +1 -0
  164. package/dist/composition/probe/problem.d.ts.map +1 -1
  165. package/dist/composition/probe/problem.js.map +1 -1
  166. package/dist/composition/probe/residual.d.ts +1 -0
  167. package/dist/composition/probe/residual.d.ts.map +1 -1
  168. package/dist/composition/probe/residual.js +1 -0
  169. package/dist/composition/probe/residual.js.map +1 -1
  170. package/dist/composition/probe/run-manifest.d.ts +1 -0
  171. package/dist/composition/probe/run-manifest.d.ts.map +1 -1
  172. package/dist/composition/probe/run-manifest.js.map +1 -1
  173. package/dist/composition/probe/scalar-search.d.ts +50 -0
  174. package/dist/composition/probe/scalar-search.d.ts.map +1 -0
  175. package/dist/composition/probe/scalar-search.js +169 -0
  176. package/dist/composition/probe/scalar-search.js.map +1 -0
  177. package/dist/composition/probe/scoring.d.ts +1 -0
  178. package/dist/composition/probe/scoring.d.ts.map +1 -1
  179. package/dist/composition/probe/scoring.js.map +1 -1
  180. package/dist/composition/probe/study.d.ts +2 -2
  181. package/dist/composition/probe/study.d.ts.map +1 -1
  182. package/dist/composition/probe/study.js +6 -10
  183. package/dist/composition/probe/study.js.map +1 -1
  184. package/dist/composition/probe/t-tail.d.ts +3 -4
  185. package/dist/composition/probe/t-tail.d.ts.map +1 -1
  186. package/dist/composition/probe/t-tail.js +7 -10
  187. package/dist/composition/probe/t-tail.js.map +1 -1
  188. package/dist/composition/proposed-bridges.d.ts +11 -2
  189. package/dist/composition/proposed-bridges.d.ts.map +1 -1
  190. package/dist/composition/proposed-bridges.js +7 -5
  191. package/dist/composition/proposed-bridges.js.map +1 -1
  192. package/dist/composition/rational-exponent.d.ts +2 -2
  193. package/dist/composition/rational-exponent.d.ts.map +1 -1
  194. package/dist/composition/rational-exponent.js +4 -4
  195. package/dist/composition/rational-exponent.js.map +1 -1
  196. package/dist/composition/representative-values.d.ts.map +1 -1
  197. package/dist/composition/representative-values.js +6 -0
  198. package/dist/composition/representative-values.js.map +1 -1
  199. package/dist/composition/retrodiction.d.ts +15 -0
  200. package/dist/composition/retrodiction.d.ts.map +1 -1
  201. package/dist/composition/retrodiction.js +10 -3
  202. package/dist/composition/retrodiction.js.map +1 -1
  203. package/dist/composition/user-equation.d.ts +1 -0
  204. package/dist/composition/user-equation.d.ts.map +1 -1
  205. package/dist/composition/user-equation.js +1 -0
  206. package/dist/composition/user-equation.js.map +1 -1
  207. package/dist/core/constants.d.ts +12 -11
  208. package/dist/core/constants.d.ts.map +1 -1
  209. package/dist/core/constants.js +24 -21
  210. package/dist/core/constants.js.map +1 -1
  211. package/dist/diff/bridge-ast-gradient.d.ts +27 -23
  212. package/dist/diff/bridge-ast-gradient.d.ts.map +1 -1
  213. package/dist/diff/bridge-ast-gradient.js +75 -173
  214. package/dist/diff/bridge-ast-gradient.js.map +1 -1
  215. package/dist/dimensional/ast-types.d.ts +15 -0
  216. package/dist/dimensional/ast-types.d.ts.map +1 -1
  217. package/dist/dimensional/ast-types.js.map +1 -1
  218. package/dist/dimensional/curvature-composite.d.ts +1 -1
  219. package/dist/dimensional/curvature-composite.js.map +1 -1
  220. package/dist/dimensional/exact-scale.d.ts +41 -11
  221. package/dist/dimensional/exact-scale.d.ts.map +1 -1
  222. package/dist/dimensional/exact-scale.js +115 -123
  223. package/dist/dimensional/exact-scale.js.map +1 -1
  224. package/dist/dimensional/mathts-unit-delegation.d.ts +29 -0
  225. package/dist/dimensional/mathts-unit-delegation.d.ts.map +1 -0
  226. package/dist/dimensional/mathts-unit-delegation.js +187 -0
  227. package/dist/dimensional/mathts-unit-delegation.js.map +1 -0
  228. package/dist/dimensional/mathts-unit-wrapper.d.ts +33 -0
  229. package/dist/dimensional/mathts-unit-wrapper.d.ts.map +1 -0
  230. package/dist/dimensional/mathts-unit-wrapper.js +190 -0
  231. package/dist/dimensional/mathts-unit-wrapper.js.map +1 -0
  232. package/dist/dimensional/scalar-lowering.d.ts +21 -0
  233. package/dist/dimensional/scalar-lowering.d.ts.map +1 -0
  234. package/dist/dimensional/scalar-lowering.js +45 -0
  235. package/dist/dimensional/scalar-lowering.js.map +1 -0
  236. package/dist/dimensional/unit-data.d.ts +5 -1
  237. package/dist/dimensional/unit-data.d.ts.map +1 -1
  238. package/dist/dimensional/unit-data.js +28 -4
  239. package/dist/dimensional/unit-data.js.map +1 -1
  240. package/dist/dimensional/units.d.ts +2 -0
  241. package/dist/dimensional/units.d.ts.map +1 -1
  242. package/dist/dimensional/units.js +59 -3
  243. package/dist/dimensional/units.js.map +1 -1
  244. package/dist/dimensional/validator.d.ts +2 -0
  245. package/dist/dimensional/validator.d.ts.map +1 -1
  246. package/dist/dimensional/validator.js.map +1 -1
  247. package/dist/index.js.map +1 -1
  248. package/dist/numerical/connection-lowering-helpers.d.ts +3 -1
  249. package/dist/numerical/connection-lowering-helpers.d.ts.map +1 -1
  250. package/dist/numerical/connection-lowering-helpers.js +11 -15
  251. package/dist/numerical/connection-lowering-helpers.js.map +1 -1
  252. package/dist/numerical/pderiv.d.ts.map +1 -1
  253. package/dist/numerical/pderiv.js +2 -6
  254. package/dist/numerical/pderiv.js.map +1 -1
  255. package/dist/numerical/quadrature.js +3 -3
  256. package/dist/numerical/quadrature.js.map +1 -1
  257. package/dist/numerical/statistics.js +1 -1
  258. package/dist/numerical/statistics.js.map +1 -1
  259. package/dist/numerical/strides.d.ts +3 -2
  260. package/dist/numerical/strides.d.ts.map +1 -1
  261. package/dist/numerical/strides.js +3 -10
  262. package/dist/numerical/strides.js.map +1 -1
  263. package/package.json +9 -12
  264. package/dist/cases/brownian-sphere.d.ts +0 -68
  265. package/dist/cases/brownian-sphere.d.ts.map +0 -1
  266. package/dist/cases/brownian-sphere.js +0 -355
  267. package/dist/cases/brownian-sphere.js.map +0 -1
  268. package/dist/cases/damped-resonator.d.ts +0 -23
  269. package/dist/cases/damped-resonator.d.ts.map +0 -1
  270. package/dist/cases/damped-resonator.js +0 -221
  271. package/dist/cases/damped-resonator.js.map +0 -1
  272. package/dist/cases/kepler-rv.d.ts +0 -13
  273. package/dist/cases/kepler-rv.d.ts.map +0 -1
  274. package/dist/cases/kepler-rv.js +0 -173
  275. package/dist/cases/kepler-rv.js.map +0 -1
  276. package/dist/cases/lumped-cooling.d.ts +0 -51
  277. package/dist/cases/lumped-cooling.d.ts.map +0 -1
  278. package/dist/cases/lumped-cooling.js +0 -259
  279. package/dist/cases/lumped-cooling.js.map +0 -1
  280. package/dist/cases/resistor-noise.d.ts +0 -14
  281. package/dist/cases/resistor-noise.d.ts.map +0 -1
  282. package/dist/cases/resistor-noise.js +0 -215
  283. package/dist/cases/resistor-noise.js.map +0 -1
  284. package/dist/cases/skin-depth.d.ts +0 -17
  285. package/dist/cases/skin-depth.d.ts.map +0 -1
  286. package/dist/cases/skin-depth.js +0 -170
  287. package/dist/cases/skin-depth.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAiC,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kB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AC,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACzD,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,OAAO,CAAC,CAAC;QACX,CAAC;QAED,kFAAkF;QAClF,6EAA6E;QAC7E,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QACjF,MAAM,GAAG,GAAe,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC/D,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC5B,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC;QACD,IAAI,CAAC,YAAY,QAAQ,EAAE,CAAC;YAC1B,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC;QACD,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC","sourcesContent":["/**\n * Verb-first dispatcher for the UPT CLI — `upt <command> [args...]`.\n *\n * Owns: top-level `help`/`version` handling, the no-args demo, unknown-verb\n * exit-2 contract, and per-command dispatch (parse -> run -> map thrown\n * UsageError/CliError to the documented exit codes). Individual commands are\n * plain data (see `command.ts`) registered via `registerCommand`; this file\n * never special-cases a command by name, so later tasks add commands without\n * touching `runCli`'s body.\n *\n * `main.ts` is the one place that imports the real `cli-api.js` barrel and\n * wires `out`/`err`/`write` to real stdio — every `Command.run` receives\n * those as an injected `CommandCtx`, never reaching for `process.*` itself,\n * which is what makes commands testable in-process against `dist/cli/*.js`.\n */\n\nimport * as api from '../cli-api.js';\nimport { UsageError, CliError } from './errors.js';\nimport { optionTokens, parseArgs } from './args.js';\nimport { packageVersion } from './version.js';\nimport { glossaryText } from './statuses.js';\nimport { listCommandNames, resolveCommand, type Command, type CommandCtx } from './command.js';\nimport { GLOBAL_FLAGS } from './flag-help.js';\nimport { renderTopLevelHelp } from './top-level-help.js';\nimport { recordInvocation, replayRecord, showRecord, type Io } from './record.js';\n// Side-effect import: registers every ported command (see commands/index.ts).\nimport './commands/index.js';\n\n// `Io` is the writer surface `runCli` needs. In production these wrap\n// `process.stdout`/`process.stderr` with exact `console.log`/`console.error`\n// semantics; tests pass a capturing stand-in as the optional second argument.\n\nfunction stdoutLine(line?: string): void {\n process.stdout.write((line ?? '') + '\\n');\n}\n\nfunction stderrLine(line?: string): void {\n process.stderr.write((line ?? '') + '\\n');\n}\n\nfunction stdoutRaw(s: string): void {\n process.stdout.write(s);\n}\n\nconst defaultIo: Io = { out: stdoutLine, err: stderrLine, write: stdoutRaw };\n\n/** EX_SOFTWARE (sysexits.h): the exit code of a defect, an error `runCli` did not map. */\nconst EX_SOFTWARE = 70;\n\n/**\n * The last-resort handler `bin/upt.mjs` calls when `runCli` rethrows: a defect, since every\n * usage error and value refusal was mapped to an exit code inside `runCli`. Prints one line,\n * `upt: internal error: <message>` (the message, not the stack), and returns 70 (EX_SOFTWARE).\n * A thrown value that is not an Error, or an Error with no message, prints as its string.\n */\nexport function reportInternalError(error: unknown, io: Pick<Io, 'err'> = defaultIo): number {\n const message = error instanceof Error && error.message !== '' ? error.message : String(error);\n io.err(`upt: internal error: ${message}`);\n return EX_SOFTWARE;\n}\n\nconst unknownCommandMessage = (name: string): string => `Unknown command '${name}'. See \\`upt help\\`.`;\n\nconst GLOBAL_FILE_OPTION = /^--(record|replay|show-record)(?:=(.*))?$/;\n\n/**\n * Verb-first CLI entry point. `argv` is the command + its arguments (NOT\n * `process.argv` — callers slice off the node/script prefix themselves, as\n * `bin/upt.mjs` did with `process.argv.slice(2)`).\n *\n * Leading `--record=FILE` / `--replay=FILE` / `--show-record=FILE` / `--json`\n * are global options. `--json` is moved onto the command so the command's\n * own flag spec parses it. `upt <command> --help` prints that command.\n */\nconst NO_JSON_VERBS = new Set(['help', '--help', '-h', 'version', '--version', '-v']);\n\nexport async function runCli(argv: string[], io: Io = defaultIo): Promise<number> {\n const files: Partial<Record<'record' | 'replay' | 'show-record', string>> = {};\n let json = false;\n let i = 0;\n try {\n for (; i < argv.length; i++) {\n const m = GLOBAL_FILE_OPTION.exec(argv[i]);\n if (m) {\n const name = m[1] as keyof typeof files;\n if (!m[2]) throw new UsageError(`upt: '--${name}' requires '--${name}=FILE'`);\n if (files[name] !== undefined) throw new UsageError(`upt: '--${name}' given more than once`);\n files[name] = m[2];\n } else if (argv[i] === '--json') {\n if (json) throw new UsageError(`upt: '--json' given more than once`);\n json = true;\n } else {\n break;\n }\n }\n let rest = argv.slice(i);\n if (json && (files.replay !== undefined || files['show-record'] !== undefined)) {\n // `--replay` / `--show-record` consume --json themselves and take no command.\n } else if (json) {\n if (rest.length === 0) throw new UsageError(`upt: '--json' requires a command`);\n const verb = rest[0]!;\n if (NO_JSON_VERBS.has(verb)) throw new UsageError(`upt: '${verb}' does not take --json`);\n rest = [verb, '--json', ...rest.slice(1)];\n }\n if (i === 0 && !json) return await dispatch(argv, io);\n if (Object.keys(files).length > 1) {\n throw new UsageError('upt: use one of --record, --replay and --show-record at a time');\n }\n if (files.record !== undefined) return await recordInvocation(files.record, rest, dispatch, io, api);\n if (files.replay !== undefined || files['show-record'] !== undefined) {\n if (rest.length > 0) {\n throw new UsageError(`upt: '--${files.replay !== undefined ? 'replay' : 'show-record'}' takes no command (got '${rest[0]}')`);\n }\n if (files.replay !== undefined) return await replayRecord(files.replay, json, dispatch, io, api);\n return showRecord(files['show-record']!, json, io);\n }\n return await dispatch(rest, io);\n } catch (e) {\n if (e instanceof UsageError) {\n io.err(e.message);\n return 2;\n }\n if (e instanceof CliError) {\n io.err(e.message);\n return 1;\n }\n throw e;\n }\n}\n\nasync function dispatch(argv: string[], io: Io): Promise<number> {\n const { out, err, write } = io;\n\n try {\n const [cmd, ...rest] = argv;\n\n if (cmd === undefined) {\n // Byte-identical to bin/upt.mjs's `case undefined` (lines 861-865): a\n // banner line, then dispatch to the registered `explain` + `priority`\n // commands with their historical demo arguments.\n out('upt — bridge-inference CLI. Demo (run `upt help` for usage):');\n\n const explainCmd = resolveCommand('explain');\n if (!explainCmd) {\n throw new CliError(\"upt: the demo needs the 'explain' command, which is not registered yet\");\n }\n const explainArgs = parseArgs('explain', ['hawking-temperature', 'mass=1.989e30'], explainCmd.flags, explainCmd.positionals);\n const explainCtx: CommandCtx = { args: explainArgs, api, out, err, write };\n const explainStatus = await explainCmd.run(explainCtx);\n if (explainStatus !== 0) return explainStatus;\n\n const priorityCmd = resolveCommand('priority');\n if (!priorityCmd) {\n throw new CliError(\"upt: the demo needs the 'priority' command, which is not registered yet\");\n }\n const priorityArgs = parseArgs('priority', [], priorityCmd.flags, priorityCmd.positionals);\n const priorityCtx: CommandCtx = { args: priorityArgs, api, out, err, write };\n return await priorityCmd.run(priorityCtx);\n }\n\n if (cmd === 'help' || cmd === '--help' || cmd === '-h') {\n if (rest.length > 1) throw new UsageError('upt help takes at most one command name');\n // `upt help -h` and `upt help --help` ask for the command list, as `upt help` does.\n const target = rest[0] === '--help' || rest[0] === '-h' ? undefined : rest[0];\n if (target === 'statuses') {\n out(glossaryText());\n return 0;\n }\n if (target !== undefined) {\n const command = resolveCommand(target);\n if (!command) throw new UsageError(unknownCommandMessage(target));\n out(command.help);\n return 0;\n }\n const commands: Command[] = [];\n for (const name of listCommandNames()) {\n const command = resolveCommand(name);\n if (command !== undefined) commands.push(command);\n }\n out(renderTopLevelHelp(commands, GLOBAL_FLAGS));\n return 0;\n }\n\n if (cmd === 'version' || cmd === '--version' || cmd === '-v') {\n if (rest.length > 0) throw new UsageError('upt version takes no arguments');\n out(packageVersion());\n return 0;\n }\n\n const command = resolveCommand(cmd);\n if (!command) {\n err(unknownCommandMessage(cmd));\n return 2;\n }\n\n // `-h` is `--help` on every command, as the global help says. A token after a\n // bare `--` is a positional, so it is not read as the help request.\n const options = optionTokens(rest);\n if (options.includes('--help') || options.includes('-h')) {\n out(command.help);\n return 0;\n }\n\n // The parser refuses a positional past the command's declared arity (none when it\n // declares none), so a token the command would not read never reaches `run`.\n const parsed = parseArgs(command.name, rest, command.flags, command.positionals);\n const ctx: CommandCtx = { args: parsed, api, out, err, write };\n return await command.run(ctx);\n } catch (e) {\n if (e instanceof UsageError) {\n err(e.message);\n return 2;\n }\n if (e instanceof CliError) {\n err(e.message);\n return 1;\n }\n throw e;\n }\n}\n"]}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAiC,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAW,MAAM,aAAa,CAAC;AAClF,8EAA8E;AAC9E,OAAO,qBAAqB,CAAC;AAE7B,sEAAsE;AACtE,6EAA6E;AAC7E,8EAA8E;AAE9E,SAAS,UAAU,CAAC,IAAa;IAC/B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,S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AAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC/D,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC5B,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC;QACD,IAAI,CAAC,YAAY,QAAQ,EAAE,CAAC;YAC1B,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC;QACD,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC","sourcesContent":["/**\n * Verb-first dispatcher for the UPT CLI — `upt <command> [args...]`.\n *\n * Owns: top-level `help`/`version` handling, the no-args demo, unknown-verb\n * exit-2 contract, and per-command dispatch (parse -> run -> map thrown\n * UsageError/CliError to the documented exit codes). Individual commands are\n * plain data (see `command.ts`) registered via `registerCommand`; this file\n * never special-cases a command by name, so later tasks add commands without\n * touching `runCli`'s body.\n *\n * `main.ts` is the one place that imports the real `cli-api.js` barrel and\n * wires `out`/`err`/`write` to real stdio — every `Command.run` receives\n * those as an injected `CommandCtx`, never reaching for `process.*` itself,\n * which is what makes commands testable in-process against `dist/cli/*.js`.\n */\n\nimport * as api from '../cli-api.js';\nimport { UsageError, CliError } from './errors.js';\nimport { optionTokens, parseArgs } from './args.js';\nimport { packageVersion } from './version.js';\nimport { glossaryText } from './statuses.js';\nimport { listCommandNames, resolveCommand, type Command, type CommandCtx } from './command.js';\nimport { GLOBAL_FLAGS } from './flag-help.js';\nimport { renderTopLevelHelp } from './top-level-help.js';\nimport { recordInvocation, replayRecord, showRecord, type Io } from './record.js';\n// Side-effect import: registers every ported command (see commands/index.ts).\nimport './commands/index.js';\n\n// `Io` is the writer surface `runCli` needs. In production these wrap\n// `process.stdout`/`process.stderr` with exact `console.log`/`console.error`\n// semantics; tests pass a capturing stand-in as the optional second argument.\n\nfunction stdoutLine(line?: string): void {\n process.stdout.write((line ?? '') + '\\n');\n}\n\nfunction stderrLine(line?: string): void {\n process.stderr.write((line ?? '') + '\\n');\n}\n\nfunction stdoutRaw(s: string): void {\n process.stdout.write(s);\n}\n\nconst defaultIo: Io = { out: stdoutLine, err: stderrLine, write: stdoutRaw };\n\n/** EX_SOFTWARE (sysexits.h): the exit code of a defect, an error `runCli` did not map. */\nconst EX_SOFTWARE = 70;\n\n/**\n * The last-resort handler `bin/upt.mjs` calls when `runCli` rethrows: a defect, since every\n * usage error and value refusal was mapped to an exit code inside `runCli`. Prints one line,\n * `upt: internal error: <message>` (the message, not the stack), and returns 70 (EX_SOFTWARE).\n * A thrown value that is not an Error, or an Error with no message, prints as its string.\n */\nexport function reportInternalError(error: unknown, io: Pick<Io, 'err'> = defaultIo): number {\n const message = error instanceof Error && error.message !== '' ? error.message : String(error);\n io.err(`upt: internal error: ${message}`);\n return EX_SOFTWARE;\n}\n\nconst unknownCommandMessage = (name: string): string => `Unknown command '${name}'. See \\`upt help\\`.`;\n\nconst GLOBAL_FILE_OPTION = /^--(record|replay|show-record)(?:=(.*))?$/;\n\n/**\n * Verb-first CLI entry point. `argv` is the command + its arguments (NOT\n * `process.argv` — callers slice off the node/script prefix themselves, as\n * `bin/upt.mjs` did with `process.argv.slice(2)`).\n *\n * Leading `--record=FILE` / `--replay=FILE` / `--show-record=FILE` / `--json`\n * are global options. `--json` is moved onto the command so the command's\n * own flag spec parses it. `upt <command> --help` prints that command.\n */\nconst NO_JSON_VERBS = new Set(['help', '--help', '-h', 'version', '--version', '-v']);\n\n/** Run one `upt` invocation and return its exit code. */\nexport async function runCli(argv: string[], io: Io = defaultIo): Promise<number> {\n const files: Partial<Record<'record' | 'replay' | 'show-record', string>> = {};\n let json = false;\n let i = 0;\n try {\n for (; i < argv.length; i++) {\n const m = GLOBAL_FILE_OPTION.exec(argv[i]);\n if (m) {\n const name = m[1] as keyof typeof files;\n if (!m[2]) throw new UsageError(`upt: '--${name}' requires '--${name}=FILE'`);\n if (files[name] !== undefined) throw new UsageError(`upt: '--${name}' given more than once`);\n files[name] = m[2];\n } else if (argv[i] === '--json') {\n if (json) throw new UsageError(`upt: '--json' given more than once`);\n json = true;\n } else {\n break;\n }\n }\n let rest = argv.slice(i);\n if (json && (files.replay !== undefined || files['show-record'] !== undefined)) {\n // `--replay` / `--show-record` consume --json themselves and take no command.\n } else if (json) {\n if (rest.length === 0) throw new UsageError(`upt: '--json' requires a command`);\n const verb = rest[0]!;\n if (NO_JSON_VERBS.has(verb)) throw new UsageError(`upt: '${verb}' does not take --json`);\n rest = [verb, '--json', ...rest.slice(1)];\n }\n if (i === 0 && !json) return await dispatch(argv, io);\n if (Object.keys(files).length > 1) {\n throw new UsageError('upt: use one of --record, --replay and --show-record at a time');\n }\n if (files.record !== undefined) return await recordInvocation(files.record, rest, dispatch, io, api);\n if (files.replay !== undefined || files['show-record'] !== undefined) {\n if (rest.length > 0) {\n throw new UsageError(`upt: '--${files.replay !== undefined ? 'replay' : 'show-record'}' takes no command (got '${rest[0]}')`);\n }\n if (files.replay !== undefined) return await replayRecord(files.replay, json, dispatch, io, api);\n return showRecord(files['show-record']!, json, io);\n }\n return await dispatch(rest, io);\n } catch (e) {\n if (e instanceof UsageError) {\n io.err(e.message);\n return 2;\n }\n if (e instanceof CliError) {\n io.err(e.message);\n return 1;\n }\n throw e;\n }\n}\n\nasync function dispatch(argv: string[], io: Io): Promise<number> {\n const { out, err, write } = io;\n\n try {\n const [cmd, ...rest] = argv;\n\n if (cmd === undefined) {\n // Byte-identical to bin/upt.mjs's `case undefined` (lines 861-865): a\n // banner line, then dispatch to the registered `explain` + `priority`\n // commands with their historical demo arguments.\n out('upt — bridge-inference CLI. Demo (run `upt help` for usage):');\n\n const explainCmd = resolveCommand('explain');\n if (!explainCmd) {\n throw new CliError(\"upt: the demo needs the 'explain' command, which is not registered yet\");\n }\n const explainArgs = parseArgs('explain', ['hawking-temperature', 'mass=1.989e30'], explainCmd.flags, explainCmd.positionals);\n const explainCtx: CommandCtx = { args: explainArgs, api, out, err, write };\n const explainStatus = await explainCmd.run(explainCtx);\n if (explainStatus !== 0) return explainStatus;\n\n const priorityCmd = resolveCommand('priority');\n if (!priorityCmd) {\n throw new CliError(\"upt: the demo needs the 'priority' command, which is not registered yet\");\n }\n const priorityArgs = parseArgs('priority', [], priorityCmd.flags, priorityCmd.positionals);\n const priorityCtx: CommandCtx = { args: priorityArgs, api, out, err, write };\n return await priorityCmd.run(priorityCtx);\n }\n\n if (cmd === 'help' || cmd === '--help' || cmd === '-h') {\n if (rest.length > 1) throw new UsageError('upt help takes at most one command name');\n // `upt help -h` and `upt help --help` ask for the command list, as `upt help` does.\n const target = rest[0] === '--help' || rest[0] === '-h' ? undefined : rest[0];\n if (target === 'statuses') {\n out(glossaryText());\n return 0;\n }\n if (target !== undefined) {\n const command = resolveCommand(target);\n if (!command) throw new UsageError(unknownCommandMessage(target));\n out(command.help);\n return 0;\n }\n const commands: Command[] = [];\n for (const name of listCommandNames()) {\n const command = resolveCommand(name);\n if (command !== undefined) commands.push(command);\n }\n out(renderTopLevelHelp(commands, GLOBAL_FLAGS));\n return 0;\n }\n\n if (cmd === 'version' || cmd === '--version' || cmd === '-v') {\n if (rest.length > 0) throw new UsageError('upt version takes no arguments');\n out(packageVersion());\n return 0;\n }\n\n const command = resolveCommand(cmd);\n if (!command) {\n err(unknownCommandMessage(cmd));\n return 2;\n }\n\n // `-h` is `--help` on every command, as the global help says. A token after a\n // bare `--` is a positional, so it is not read as the help request.\n const options = optionTokens(rest);\n if (options.includes('--help') || options.includes('-h')) {\n out(command.help);\n return 0;\n }\n\n // The parser refuses a positional past the command's declared arity (none when it\n // declares none), so a token the command would not read never reaches `run`.\n const parsed = parseArgs(command.name, rest, command.flags, command.positionals);\n const ctx: CommandCtx = { args: parsed, api, out, err, write };\n return await command.run(ctx);\n } catch (e) {\n if (e instanceof UsageError) {\n err(e.message);\n return 2;\n }\n if (e instanceof CliError) {\n err(e.message);\n return 1;\n }\n throw e;\n }\n}\n"]}
@@ -58,6 +58,14 @@ export interface JsonEnvelope {
58
58
  */
59
59
  compositionRecovery?: unknown;
60
60
  }
61
+ /**
62
+ * Make a value JSON-safe. NaN and infinite numbers become strings.
63
+ * A function is omitted from an object and becomes null in an array.
64
+ */
61
65
  export declare function sanitize(v: unknown): unknown;
66
+ /**
67
+ * Write the `--json` envelope of one command to `write`.
68
+ * The status definitions of the command are added when it has any.
69
+ */
62
70
  export declare function emitJson(env: JsonEnvelope, write?: (s: string) => void): void;
63
71
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;QAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,UAAU,GAAG,QAAQ,EACxB,KAAK,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAqC,GAC1D,CAAC,GAAG,CAAC,CAQP;AAED,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;IACpD,4GAA4G;IAC5G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B,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,UAAU,GAAG,QAAQ,EACxB,KAAK,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAqC,GAC1D,CAAC,GAAG,CAAC,CAQP;AAED,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;IACpD,4GAA4G;IAC5G,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,gHAAgH;IAChH,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,4GAA4G;IAC5G,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CA2C5C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAqC,GAAG,IAAI,CAK7G"}
@@ -23,6 +23,10 @@ export function emitJsonError(command, e, write = (s) => process.stdout.write(s)
23
23
  write(JSON.stringify(envelope, null, 2) + '\n');
24
24
  return envelope.error.exitCode;
25
25
  }
26
+ /**
27
+ * Make a value JSON-safe. NaN and infinite numbers become strings.
28
+ * A function is omitted from an object and becomes null in an array.
29
+ */
26
30
  export function sanitize(v) {
27
31
  if (typeof v === 'number') {
28
32
  if (Number.isNaN(v))
@@ -67,6 +71,10 @@ export function sanitize(v) {
67
71
  }
68
72
  return v;
69
73
  }
74
+ /**
75
+ * Write the `--json` envelope of one command to `write`.
76
+ * The status definitions of the command are added when it has any.
77
+ */
70
78
  export function emitJson(env, write = (s) => process.stdout.write(s)) {
71
79
  const definitions = definitionsFor(env.command);
72
80
  const { result, ...head } = env;
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAiB,MAAM,aAAa,CAAC;AAaxD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAe,EACf,CAAwB,EACxB,KAAK,GAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3D,MAAM,KAAK,GAAG,CAAC,YAAY,UAAU,CAAC;IACtC,MAAM,QAAQ,GAAsB;QAClC,OAAO;QACP,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;KACxF,CAAC;IACF,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;AACjC,CAAC;AAiCD,MAAM,UAAU,QAA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K,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7C,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,UAAU;gBAAE,SAAS;YACjE,GAAG,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAiB,EAAE,KAAK,GAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrG,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;IAChC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1F,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AACxD,CAAC","sourcesContent":["/**\n * JSON output envelope for the UPT CLI.\n *\n * Physics results genuinely contain non-finite numbers (e.g. `anchoring:\n * Infinity` in the priority board). `JSON.stringify` silently turns those\n * into `null`, which is indistinguishable from an absent value. `sanitize`\n * deep-copies a value into a JSON-safe shape first, encoding NaN/Infinity\n * as explicit strings so round-tripping through JSON preserves them.\n */\n\nimport { definitionsFor } from './statuses.js';\nimport { UsageError, type CliError } from './errors.js';\nimport type { AnchorScope } from './graphs.js';\n\n/**\n * The `--json` form of a refusal: no `result`; the error's kind (`usage` for a malformed\n * invocation, `value` for a value the command refuses), the exit code the process returns,\n * and the message the text mode prints on stderr.\n */\nexport interface JsonErrorEnvelope {\n command: string;\n error: { kind: 'usage' | 'value'; exitCode: 1 | 2; message: string };\n}\n\n/**\n * Write a refusal as a JSON envelope on stdout and return the exit code it stands for: 2 for a\n * `UsageError`, 1 for a `CliError`. A command that answers in JSON calls this instead of\n * letting the dispatcher print the message on stderr, so a JSON consumer reads one stream.\n */\nexport function emitJsonError(\n command: string,\n e: UsageError | CliError,\n write: (s: string) => void = (s) => process.stdout.write(s),\n): 1 | 2 {\n const usage = e instanceof UsageError;\n const envelope: JsonErrorEnvelope = {\n command,\n error: { kind: usage ? 'usage' : 'value', exitCode: usage ? 2 : 1, message: e.message },\n };\n write(JSON.stringify(envelope, null, 2) + '\\n');\n return envelope.error.exitCode;\n}\n\n/** The shape of every `--json` output: the command, what it read, and its result. */\nexport interface JsonEnvelope {\n command: string;\n /**\n * The graph a command read. `'atlas'` is `upt map --route` / `--family`,\n * which read the atlas families rather than an equation graph.\n */\n source?: 'catalog' | 'canonical' | 'both' | 'atlas';\n /** What the result is anchored to (audit I3): the discovery ground truth, the established core, or both. */\n anchor?: AnchorScope;\n options?: Record<string, unknown>;\n epistemics?: string;\n /** `upt confront` — count of confrontations by rigor tier (stringent/moderate/loose). */\n rigorDistribution?: Record<string, number>;\n /** `upt confront` — count of confrontations by statistical object (σ-test, limit, consistency ratio, table). */\n statisticDistribution?: Record<string, number>;\n /** `upt confront` — preprocessing and independence counts, recorded vs not recorded, each counted apart. */\n dataHandlingDistribution?: Record<string, Record<string, number>>;\n /**\n * The meaning of each status the command can emit, from STATUS_GLOSSARY (audit I13). `emitJson`\n * fills it in; a command never sets it.\n */\n definitions?: Record<string, string>;\n result: unknown;\n /**\n * `upt recover` — two-edge symbolic chains examined against the canonical\n * registry, and the structural matches. A chain is never restates-canonical.\n */\n compositionRecovery?: unknown;\n}\n\nexport function sanitize(v: unknown): unknown {\n if (typeof v === 'number') {\n if (Number.isNaN(v)) return 'NaN';\n if (v === Infinity) return 'Infinity';\n if (v === -Infinity) return '-Infinity';\n return v;\n }\n\n if (typeof v === 'function') {\n // Caller decides how to represent \"no value here\" (omit vs. null) based\n // on context (object key vs. array slot); signal via undefined and let\n // the array/object branches below handle it.\n return undefined;\n }\n\n if (Array.isArray(v)) {\n const out: unknown[] = [];\n for (const item of v) {\n const sanitized = sanitize(item);\n out.push(typeof item === 'function' ? null : sanitized);\n }\n return out;\n }\n\n if (v instanceof Map) {\n const out: Record<string, unknown> = {};\n for (const [key, value] of v) {\n if (typeof value === 'function') continue;\n out[String(key)] = sanitize(value);\n }\n return out;\n }\n\n if (v !== null && typeof v === 'object') {\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(v)) {\n if (value === undefined || typeof value === 'function') continue;\n out[key] = sanitize(value);\n }\n return out;\n }\n\n return v;\n}\n\nexport function emitJson(env: JsonEnvelope, write: (s: string) => void = (s) => process.stdout.write(s)): void {\n const definitions = definitionsFor(env.command);\n const { result, ...head } = env;\n const full = Object.keys(definitions).length > 0 ? { ...head, definitions, result } : env;\n write(JSON.stringify(sanitize(full), null, 2) + '\\n');\n}\n"]}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAiB,MAAM,aAAa,CAAC;AAaxD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAe,EACf,CAAwB,EACxB,KAAK,GAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3D,MAAM,KAAK,GAAG,CAAC,YAAY,UAAU,CAAC;IACtC,MAAM,QAAQ,GAAsB;QAClC,OAAO;QACP,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OA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AAG,IAAI,CAAC,CAAC;AACxD,CAAC","sourcesContent":["/**\n * JSON output envelope for the UPT CLI.\n *\n * Physics results genuinely contain non-finite numbers (e.g. `anchoring:\n * Infinity` in the priority board). `JSON.stringify` silently turns those\n * into `null`, which is indistinguishable from an absent value. `sanitize`\n * deep-copies a value into a JSON-safe shape first, encoding NaN/Infinity\n * as explicit strings so round-tripping through JSON preserves them.\n */\n\nimport { definitionsFor } from './statuses.js';\nimport { UsageError, type CliError } from './errors.js';\nimport type { AnchorScope } from './graphs.js';\n\n/**\n * The `--json` form of a refusal: no `result`; the error's kind (`usage` for a malformed\n * invocation, `value` for a value the command refuses), the exit code the process returns,\n * and the message the text mode prints on stderr.\n */\nexport interface JsonErrorEnvelope {\n command: string;\n error: { kind: 'usage' | 'value'; exitCode: 1 | 2; message: string };\n}\n\n/**\n * Write a refusal as a JSON envelope on stdout and return the exit code it stands for: 2 for a\n * `UsageError`, 1 for a `CliError`. A command that answers in JSON calls this instead of\n * letting the dispatcher print the message on stderr, so a JSON consumer reads one stream.\n */\nexport function emitJsonError(\n command: string,\n e: UsageError | CliError,\n write: (s: string) => void = (s) => process.stdout.write(s),\n): 1 | 2 {\n const usage = e instanceof UsageError;\n const envelope: JsonErrorEnvelope = {\n command,\n error: { kind: usage ? 'usage' : 'value', exitCode: usage ? 2 : 1, message: e.message },\n };\n write(JSON.stringify(envelope, null, 2) + '\\n');\n return envelope.error.exitCode;\n}\n\n/** The shape of every `--json` output: the command, what it read, and its result. */\nexport interface JsonEnvelope {\n command: string;\n /**\n * The graph a command read. `'atlas'` is `upt map --route` / `--family`,\n * which read the atlas families rather than an equation graph.\n */\n source?: 'catalog' | 'canonical' | 'both' | 'atlas';\n /** What the result is anchored to (audit I3): the discovery ground truth, the established core, or both. */\n anchor?: AnchorScope;\n options?: Record<string, unknown>;\n epistemics?: string;\n /** `upt confront` — count of confrontations by rigor tier (stringent/moderate/loose). */\n rigorDistribution?: Record<string, number>;\n /** `upt confront` — count of confrontations by statistical object (σ-test, limit, consistency ratio, table). */\n statisticDistribution?: Record<string, number>;\n /** `upt confront` — preprocessing and independence counts, recorded vs not recorded, each counted apart. */\n dataHandlingDistribution?: Record<string, Record<string, number>>;\n /**\n * The meaning of each status the command can emit, from STATUS_GLOSSARY (audit I13). `emitJson`\n * fills it in; a command never sets it.\n */\n definitions?: Record<string, string>;\n result: unknown;\n /**\n * `upt recover` — two-edge symbolic chains examined against the canonical\n * registry, and the structural matches. A chain is never restates-canonical.\n */\n compositionRecovery?: unknown;\n}\n\n/**\n * Make a value JSON-safe. NaN and infinite numbers become strings.\n * A function is omitted from an object and becomes null in an array.\n */\nexport function sanitize(v: unknown): unknown {\n if (typeof v === 'number') {\n if (Number.isNaN(v)) return 'NaN';\n if (v === Infinity) return 'Infinity';\n if (v === -Infinity) return '-Infinity';\n return v;\n }\n\n if (typeof v === 'function') {\n // Caller decides how to represent \"no value here\" (omit vs. null) based\n // on context (object key vs. array slot); signal via undefined and let\n // the array/object branches below handle it.\n return undefined;\n }\n\n if (Array.isArray(v)) {\n const out: unknown[] = [];\n for (const item of v) {\n const sanitized = sanitize(item);\n out.push(typeof item === 'function' ? null : sanitized);\n }\n return out;\n }\n\n if (v instanceof Map) {\n const out: Record<string, unknown> = {};\n for (const [key, value] of v) {\n if (typeof value === 'function') continue;\n out[String(key)] = sanitize(value);\n }\n return out;\n }\n\n if (v !== null && typeof v === 'object') {\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(v)) {\n if (value === undefined || typeof value === 'function') continue;\n out[key] = sanitize(value);\n }\n return out;\n }\n\n return v;\n}\n\n/**\n * Write the `--json` envelope of one command to `write`.\n * The status definitions of the command are added when it has any.\n */\nexport function emitJson(env: JsonEnvelope, write: (s: string) => void = (s) => process.stdout.write(s)): void {\n const definitions = definitionsFor(env.command);\n const { result, ...head } = env;\n const full = Object.keys(definitions).length > 0 ? { ...head, definitions, result } : env;\n write(JSON.stringify(sanitize(full), null, 2) + '\\n');\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"statuses.d.ts","sourceRoot":"","sources":["../../src/cli/statuses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,gBAAgB,EAwRtD,CAAC;AAEF,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAItE;AAED,2GAA2G;AAC3G,wBAAgB,YAAY,IAAI,MAAM,CAarC"}
1
+ {"version":3,"file":"statuses.d.ts","sourceRoot":"","sources":["../../src/cli/statuses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,gBAAgB,EAmStD,CAAC;AAEF,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAItE;AAED,2GAA2G;AAC3G,wBAAgB,YAAY,IAAI,MAAM,CAarC"}
@@ -182,8 +182,18 @@ export const STATUS_GLOSSARY = [
182
182
  {
183
183
  key: 'promising',
184
184
  words: ['PROMISING', 'promising'],
185
- meaning: 'an identification a ≡ b that is numerically consistent, connects disconnected physics and unlocks at least ' +
186
- 'one quantity: worth a physicist\'s review, not evidence that it holds',
185
+ meaning: 'an identification a ≡ b that is numerically consistent, connects disconnected physics, unlocks at least ' +
186
+ 'one quantity, and survived a magnitude comparison that could have failed: worth a physicist\'s review, not ' +
187
+ 'evidence that it holds',
188
+ commands: ['discover'],
189
+ },
190
+ {
191
+ key: 'promising-unchecked',
192
+ // `UNCHECKED` alone is `unknown` in the other commands; in `discover` it is this tier's heading word.
193
+ words: ['promising-unchecked', 'PROMISING, MAGNITUDE UNCHECKED', 'UNCHECKED'],
194
+ meaning: 'the same structure as promising (consistent, connects disconnected physics, unlocks at least one quantity), ' +
195
+ 'but the magnitude falsifier never tested it: an endpoint has no representative magnitude, or the graph fixes ' +
196
+ 'the ratio at every anchor so the comparison could not fail. Counted apart from promising and never added to it',
187
197
  commands: ['discover'],
188
198
  },
189
199
  {
@@ -1 +1 @@
1
- {"version":3,"file":"statuses.js","sourceRoot":"","sources":["../../src/cli/statuses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,MAAM,CAAC,MAAM,eAAe,GAAgC;IAC1D;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,CAAC,OAAO,CAAC;QAChB,OAAO,EACL,iGAAiG;YACjG,4GAA4G;QAC9G,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAC7B,OAAO,EACL,kGAAkG;YAClG,sCAAsC;QACxC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC;KAC7C;IACD;QACE,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC;QACvD,OAAO,E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C;IACtC,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC","sourcesContent":["/**\n * The status words the CLI prints, defined once (audit I13).\n *\n * `upt help statuses` prints this table, and every `--json` envelope carries the definitions of the\n * statuses its command can emit (`emitJson` adds them from here, so a command cannot omit them and no\n * command keeps a private copy). A status a command prints but this table does not assign to it is a\n * defect, which `tests/cli/statuses.test.ts` looks for in the commands' own output.\n */\n\nexport interface StatusDefinition {\n /** The key under `definitions` in a `--json` envelope. */\n readonly key: string;\n /** The words as the commands print them, text or JSON. */\n readonly words: readonly string[];\n readonly meaning: string;\n /** The commands (envelope `command` names) that can emit it. */\n readonly commands: readonly string[];\n}\n\nexport const STATUS_GLOSSARY: readonly StatusDefinition[] = [\n {\n key: 'valid',\n words: ['valid'],\n meaning:\n 'every machine inequality the record states was evaluated at the point and holds. Only a record ' +\n 'that states at least one inequality can be valid; its prose premises are listed apart and were not checked',\n commands: ['regime'],\n },\n {\n key: 'vacuous',\n words: ['VACUOUS', 'vacuous'],\n meaning:\n 'the record states no machine inequality, so nothing was evaluated: not a pass, and not evidence ' +\n 'that the record applies at the point',\n commands: ['regime', 'path', 'atlas', 'map'],\n },\n {\n key: 'unknown',\n words: ['UNKNOWN', 'unknown', 'UNCHECKED', 'unchecked'],\n meaning:\n 'a value the check needs was not supplied (or a search stopped at its budget), so the check did not ' +\n 'run: a failure to confirm, never a pass and never a violation. It exits 0',\n commands: ['regime', 'path', 'evaluate', 'map'],\n },\n {\n key: 'violated',\n words: ['VIOLATED', 'violated'],\n meaning:\n 'a machine inequality (a regime, horizon or validity condition) was evaluated at the point and fails; ' +\n 'no bound is claimed there',\n commands: ['regime', 'path', 'evaluate'],\n },\n {\n key: 'adequate',\n words: ['ADEQUATE', 'adequate'],\n meaning:\n 'every bound on the path is claimed at the point and its error, in the norm the tolerance is stated in, ' +\n 'is within the tolerance',\n commands: ['path'],\n },\n {\n key: 'inadequate',\n words: ['INADEQUATE', 'inadequate'],\n meaning:\n 'the point is outside a regime or past a horizon on the path, or the error exceeds the tolerance; exit 3',\n commands: ['path'],\n },\n {\n key: 'undetermined',\n words: ['UNDETERMINED', 'undetermined'],\n meaning:\n 'the point does not settle adequacy: a value is missing, the bound is in another norm with no declared ' +\n 'translation, or an upper bound is past its horizon. It is not shown inadequate',\n commands: ['path'],\n },\n {\n key: 'neither',\n words: ['NEITHER', 'neither'],\n meaning:\n 'in a route-coverage grid, no encoded route claims a bound at this point: the parent model is the one ' +\n 'to use there and no reduced-model number is given. It does not say the models disagree',\n commands: ['path'],\n },\n {\n key: 'unsettled',\n words: ['UNSETTLED', 'unsettled'],\n meaning: 'in a route-coverage grid, a coordinate or t was not supplied, so whether a route covers the point is not settled',\n commands: ['path'],\n },\n {\n key: 'no-composite-claim',\n words: ['no composite claim', 'no-claim', 'no-composite-claim'],\n meaning:\n 'the composition table yields no relation for two steps of the route (a silent cell). The route claims no ' +\n 'error and exits 0. A missing Lipschitz constant, an undeclared norm and an unmapped cross-family norm are ' +\n 'other refusals, counted apart from this one',\n commands: ['path', 'map'],\n },\n {\n key: 'missing-lipschitz',\n words: ['missing-lipschitz'],\n meaning:\n 'a step that is not last states no Lipschitz constant, so the error after it is unbounded. No bound is ' +\n 'claimed. It exits 0. It is not a silent composition-table cell',\n commands: ['path'],\n },\n {\n key: 'norm-not-stated',\n words: ['norm-not-stated'],\n meaning:\n 'an exact step declares no norm transport for the running norm and the direction the route crosses it. ' +\n 'No bound is claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'norm-mismatch',\n words: ['norm-mismatch'],\n meaning:\n 'two stated norms on one route are not the same norm, and no transport maps one to the other. No bound is ' +\n 'claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'cross-family-unmapped',\n words: ['cross-family-unmapped'],\n meaning:\n 'across model families a matching norm name is not a transport. No witnessed NormTransport carries the ' +\n 'bound, so none is claimed. It exits 0. It is not a violated check',\n commands: ['path'],\n },\n {\n key: 'uniformity-unanalysed',\n words: ['uniformity-unanalysed'],\n meaning:\n 'a bound on the route does not state whether its error is uniform. No bound is claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'decoy',\n words: ['DECOY', 'decoy'],\n meaning:\n 'a set of constants closes the dimensions, but its monomial does not reproduce the evaluator: a failed ' +\n 'dimensional reconstruction, not a physical refutation of the formula',\n commands: ['audit'],\n },\n {\n key: 'coefficient-unset',\n words: ['COEFFICIENT UNSET'],\n meaning:\n 'the entry is dimensional and no sourced prefactor multiplies the monomial. The evaluator\\'s leading 1 is ' +\n 'that absence, not a recovered constant. It is not a failed reconstruction and not a free dimensionless group',\n commands: ['audit'],\n },\n {\n key: 'not-a-monomial',\n words: ['NOT A MONOMIAL'],\n meaning:\n 'the encoded formula adds dimensionful terms, so it is not a proportionality. A monomial reconstruction ' +\n 'does not apply. This is not a failed reconstruction of a monomial, and not a physical refutation',\n commands: ['audit'],\n },\n {\n key: 'adjudicated-decoy',\n words: ['decoy'],\n meaning:\n 'a recorded adjudication of the identification a ≡ b found a dimensional coincidence with no mechanism ' +\n '(trivial and definitional identifications included). Folded out of the PROMISING list by default. Not ' +\n 'the DECOY of `upt audit`, which is a failed dimensional reconstruction of a bridge',\n commands: ['discover'],\n },\n {\n key: 'entailed',\n words: ['entailed'],\n meaning:\n 'real physics that the canonical L-layer already carries, so not a new link. As a recorded adjudication ' +\n 'verdict it folds the identification out of the PROMISING list by default; as a consequence signal it ' +\n 'means the derived monomial has the same normal form, target and governing set as a canonical equation',\n commands: ['discover'],\n },\n {\n key: 'novel-consequence',\n words: ['novel-consequence'],\n meaning:\n 'the derived monomial consequence matches no canonical equation: unadjudicated, and not evidence that it holds',\n commands: ['discover'],\n },\n {\n key: 'inconclusive',\n words: ['inconclusive'],\n meaning: 'no monomial consequence could be derived, so nothing was compared',\n commands: ['discover'],\n },\n {\n key: 'genuine',\n words: ['genuine'],\n meaning: 'a recorded adjudication found the identification real physics and a new link',\n commands: ['discover'],\n },\n {\n key: 'deferred',\n words: ['deferred'],\n meaning:\n 'the identification was reviewed and consciously parked. An identification with no recorded adjudication ' +\n 'was never reviewed, which is not the same',\n commands: ['discover'],\n },\n {\n key: 'not-covered',\n words: ['NOT COVERED'],\n meaning:\n 'the name is not a quantity of the selected graph (--source), so there is nothing to evaluate; the nearest ' +\n 'names and what `upt search` finds are listed. It is not a statement about the physics',\n commands: ['explain'],\n },\n {\n key: 'promising',\n words: ['PROMISING', 'promising'],\n meaning:\n 'an identification a ≡ b that is numerically consistent, connects disconnected physics and unlocks at least ' +\n 'one quantity: worth a physicist\\'s review, not evidence that it holds',\n commands: ['discover'],\n },\n {\n key: 'inert',\n words: ['INERT', 'inert'],\n meaning: 'consistent but idle: a dimensional coincidence that connects nothing new and unlocks no quantity',\n commands: ['discover'],\n },\n {\n key: 'contradictory',\n words: ['CONTRADICTORY', 'contradictory'],\n meaning: 'the identification breaks the numerical consistency of the graph: a falsification within the graph',\n commands: ['discover'],\n },\n {\n key: 'magnitude-clash',\n words: ['magnitude-clash'],\n meaning:\n 'the two quantities\\' representative values differ by more than the threshold of orders of magnitude: an ' +\n 'independent falsification',\n commands: ['discover'],\n },\n {\n key: 'axis-clash',\n words: ['axis-clash'],\n meaning:\n 'the identification\\'s stated scale or force regime labels disagree: a prior from catalog labels, no ' +\n 'computation, never counted as a falsification',\n commands: ['discover'],\n },\n {\n key: 'reproduced',\n words: ['reproduced'],\n meaning:\n 'the replayed run gave the recorded exit code, stdout and stderr, byte for byte, and any file it wrote ' +\n '(--out, written to a temporary path, never over the recorded one) has the recorded SHA-256',\n commands: ['replay'],\n },\n {\n key: 'differs',\n words: ['differs', 'differ'],\n meaning:\n 'the replayed run differs from the record: the stream (or the written file) and first differing line are ' +\n 'named, with every changed version, parser, constant or module source and whether the command can reach it. Exit 3',\n commands: ['replay'],\n },\n {\n key: 'not-replayable',\n words: ['not replayable', 'not-replayable'],\n meaning:\n 'the entry is not re-run, or its replay is not compared: its line is malformed; it was to write a file and ' +\n 'wrote none; it ran an external probe worker; a file it read (--problem, --data, --stored, ...) changed, ' +\n 'vanished or appeared since recording, or was not hashed; or the recorded or the replayed probe search ' +\n 'stopped on its wall-clock budget (time-limit). Nothing was compared',\n commands: ['replay'],\n },\n {\n key: 'checked',\n words: ['checked'],\n meaning: 'a witness ran in this invocation and its claim held',\n commands: ['atlas', 'map', 'path'],\n },\n {\n key: 'refuted',\n words: ['refuted', 'REFUTED'],\n meaning:\n 'a witness ran and its claim failed. On a negative control the wrong hypothesis is refuted, which is ' +\n 'the control working. A refuted witness makes `--run` exit 3',\n commands: ['atlas', 'map', 'path'],\n },\n {\n key: 'unresolved',\n words: ['unresolved'],\n meaning:\n 'a witness did not run (its peer is absent, it timed out, its input did not parse) or ran and could not ' +\n 'decide (a CAS difference that did not simplify to zero, no convergence). Not a refutation, and never ' +\n 'counted with the refuted',\n commands: ['atlas', 'map', 'path'],\n },\n];\n\n/** The definitions of the statuses `command` can emit, keyed as in the glossary. */\nexport function definitionsFor(command: string): Record<string, string> {\n const out: Record<string, string> = {};\n for (const s of STATUS_GLOSSARY) if (s.commands.includes(command)) out[s.key] = s.meaning;\n return out;\n}\n\n/** The text of `upt help statuses`: each status, its words, the commands that emit it, and its meaning. */\nexport function glossaryText(): string {\n const lines = [\n 'upt help statuses — the status words the commands print',\n '',\n 'Each --json envelope carries these definitions, under `definitions`, for the statuses its command',\n 'can emit. A status that did not check anything never reads as a pass.',\n '',\n ];\n for (const s of STATUS_GLOSSARY) {\n lines.push(` ${s.words.join(' / ')} (${s.commands.map((c) => (c === 'replay' ? '--replay' : c)).join(', ')})`);\n lines.push(` ${s.meaning}.`);\n }\n return lines.join('\\n');\n}\n"]}
1
+ {"version":3,"file":"statuses.js","sourceRoot":"","sources":["../../src/cli/statuses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,MAAM,CAAC,MAAM,eAAe,GAAgC;IAC1D;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,CAAC,OAAO,CAAC;QAChB,OAAO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AG,CAAC,CAAC,OAAO,CAAC;IAC1F,OAAO,GAAG,CAAC;AACb,CAAC;AAED,2GAA2G;AAC3G,MAAM,UAAU,YAAY;IAC1B,MAAM,KAAK,GAAG;QACZ,yDAAyD;QACzD,EAAE;QACF,mGAAmG;QACnG,uEAAuE;QACvE,EAAE;KACH,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,eAAe,EAAE,CAAC;QAChC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClH,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC","sourcesContent":["/**\n * The status words the CLI prints, defined once (audit I13).\n *\n * `upt help statuses` prints this table, and every `--json` envelope carries the definitions of the\n * statuses its command can emit (`emitJson` adds them from here, so a command cannot omit them and no\n * command keeps a private copy). A status a command prints but this table does not assign to it is a\n * defect, which `tests/cli/statuses.test.ts` looks for in the commands' own output.\n */\n\nexport interface StatusDefinition {\n /** The key under `definitions` in a `--json` envelope. */\n readonly key: string;\n /** The words as the commands print them, text or JSON. */\n readonly words: readonly string[];\n readonly meaning: string;\n /** The commands (envelope `command` names) that can emit it. */\n readonly commands: readonly string[];\n}\n\nexport const STATUS_GLOSSARY: readonly StatusDefinition[] = [\n {\n key: 'valid',\n words: ['valid'],\n meaning:\n 'every machine inequality the record states was evaluated at the point and holds. Only a record ' +\n 'that states at least one inequality can be valid; its prose premises are listed apart and were not checked',\n commands: ['regime'],\n },\n {\n key: 'vacuous',\n words: ['VACUOUS', 'vacuous'],\n meaning:\n 'the record states no machine inequality, so nothing was evaluated: not a pass, and not evidence ' +\n 'that the record applies at the point',\n commands: ['regime', 'path', 'atlas', 'map'],\n },\n {\n key: 'unknown',\n words: ['UNKNOWN', 'unknown', 'UNCHECKED', 'unchecked'],\n meaning:\n 'a value the check needs was not supplied (or a search stopped at its budget), so the check did not ' +\n 'run: a failure to confirm, never a pass and never a violation. It exits 0',\n commands: ['regime', 'path', 'evaluate', 'map'],\n },\n {\n key: 'violated',\n words: ['VIOLATED', 'violated'],\n meaning:\n 'a machine inequality (a regime, horizon or validity condition) was evaluated at the point and fails; ' +\n 'no bound is claimed there',\n commands: ['regime', 'path', 'evaluate'],\n },\n {\n key: 'adequate',\n words: ['ADEQUATE', 'adequate'],\n meaning:\n 'every bound on the path is claimed at the point and its error, in the norm the tolerance is stated in, ' +\n 'is within the tolerance',\n commands: ['path'],\n },\n {\n key: 'inadequate',\n words: ['INADEQUATE', 'inadequate'],\n meaning:\n 'the point is outside a regime or past a horizon on the path, or the error exceeds the tolerance; exit 3',\n commands: ['path'],\n },\n {\n key: 'undetermined',\n words: ['UNDETERMINED', 'undetermined'],\n meaning:\n 'the point does not settle adequacy: a value is missing, the bound is in another norm with no declared ' +\n 'translation, or an upper bound is past its horizon. It is not shown inadequate',\n commands: ['path'],\n },\n {\n key: 'neither',\n words: ['NEITHER', 'neither'],\n meaning:\n 'in a route-coverage grid, no encoded route claims a bound at this point: the parent model is the one ' +\n 'to use there and no reduced-model number is given. It does not say the models disagree',\n commands: ['path'],\n },\n {\n key: 'unsettled',\n words: ['UNSETTLED', 'unsettled'],\n meaning: 'in a route-coverage grid, a coordinate or t was not supplied, so whether a route covers the point is not settled',\n commands: ['path'],\n },\n {\n key: 'no-composite-claim',\n words: ['no composite claim', 'no-claim', 'no-composite-claim'],\n meaning:\n 'the composition table yields no relation for two steps of the route (a silent cell). The route claims no ' +\n 'error and exits 0. A missing Lipschitz constant, an undeclared norm and an unmapped cross-family norm are ' +\n 'other refusals, counted apart from this one',\n commands: ['path', 'map'],\n },\n {\n key: 'missing-lipschitz',\n words: ['missing-lipschitz'],\n meaning:\n 'a step that is not last states no Lipschitz constant, so the error after it is unbounded. No bound is ' +\n 'claimed. It exits 0. It is not a silent composition-table cell',\n commands: ['path'],\n },\n {\n key: 'norm-not-stated',\n words: ['norm-not-stated'],\n meaning:\n 'an exact step declares no norm transport for the running norm and the direction the route crosses it. ' +\n 'No bound is claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'norm-mismatch',\n words: ['norm-mismatch'],\n meaning:\n 'two stated norms on one route are not the same norm, and no transport maps one to the other. No bound is ' +\n 'claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'cross-family-unmapped',\n words: ['cross-family-unmapped'],\n meaning:\n 'across model families a matching norm name is not a transport. No witnessed NormTransport carries the ' +\n 'bound, so none is claimed. It exits 0. It is not a violated check',\n commands: ['path'],\n },\n {\n key: 'uniformity-unanalysed',\n words: ['uniformity-unanalysed'],\n meaning:\n 'a bound on the route does not state whether its error is uniform. No bound is claimed. It exits 0',\n commands: ['path'],\n },\n {\n key: 'decoy',\n words: ['DECOY', 'decoy'],\n meaning:\n 'a set of constants closes the dimensions, but its monomial does not reproduce the evaluator: a failed ' +\n 'dimensional reconstruction, not a physical refutation of the formula',\n commands: ['audit'],\n },\n {\n key: 'coefficient-unset',\n words: ['COEFFICIENT UNSET'],\n meaning:\n 'the entry is dimensional and no sourced prefactor multiplies the monomial. The evaluator\\'s leading 1 is ' +\n 'that absence, not a recovered constant. It is not a failed reconstruction and not a free dimensionless group',\n commands: ['audit'],\n },\n {\n key: 'not-a-monomial',\n words: ['NOT A MONOMIAL'],\n meaning:\n 'the encoded formula adds dimensionful terms, so it is not a proportionality. A monomial reconstruction ' +\n 'does not apply. This is not a failed reconstruction of a monomial, and not a physical refutation',\n commands: ['audit'],\n },\n {\n key: 'adjudicated-decoy',\n words: ['decoy'],\n meaning:\n 'a recorded adjudication of the identification a ≡ b found a dimensional coincidence with no mechanism ' +\n '(trivial and definitional identifications included). Folded out of the PROMISING list by default. Not ' +\n 'the DECOY of `upt audit`, which is a failed dimensional reconstruction of a bridge',\n commands: ['discover'],\n },\n {\n key: 'entailed',\n words: ['entailed'],\n meaning:\n 'real physics that the canonical L-layer already carries, so not a new link. As a recorded adjudication ' +\n 'verdict it folds the identification out of the PROMISING list by default; as a consequence signal it ' +\n 'means the derived monomial has the same normal form, target and governing set as a canonical equation',\n commands: ['discover'],\n },\n {\n key: 'novel-consequence',\n words: ['novel-consequence'],\n meaning:\n 'the derived monomial consequence matches no canonical equation: unadjudicated, and not evidence that it holds',\n commands: ['discover'],\n },\n {\n key: 'inconclusive',\n words: ['inconclusive'],\n meaning: 'no monomial consequence could be derived, so nothing was compared',\n commands: ['discover'],\n },\n {\n key: 'genuine',\n words: ['genuine'],\n meaning: 'a recorded adjudication found the identification real physics and a new link',\n commands: ['discover'],\n },\n {\n key: 'deferred',\n words: ['deferred'],\n meaning:\n 'the identification was reviewed and consciously parked. An identification with no recorded adjudication ' +\n 'was never reviewed, which is not the same',\n commands: ['discover'],\n },\n {\n key: 'not-covered',\n words: ['NOT COVERED'],\n meaning:\n 'the name is not a quantity of the selected graph (--source), so there is nothing to evaluate; the nearest ' +\n 'names and what `upt search` finds are listed. It is not a statement about the physics',\n commands: ['explain'],\n },\n {\n key: 'promising',\n words: ['PROMISING', 'promising'],\n meaning:\n 'an identification a ≡ b that is numerically consistent, connects disconnected physics, unlocks at least ' +\n 'one quantity, and survived a magnitude comparison that could have failed: worth a physicist\\'s review, not ' +\n 'evidence that it holds',\n commands: ['discover'],\n },\n {\n key: 'promising-unchecked',\n // `UNCHECKED` alone is `unknown` in the other commands; in `discover` it is this tier's heading word.\n words: ['promising-unchecked', 'PROMISING, MAGNITUDE UNCHECKED', 'UNCHECKED'],\n meaning:\n 'the same structure as promising (consistent, connects disconnected physics, unlocks at least one quantity), ' +\n 'but the magnitude falsifier never tested it: an endpoint has no representative magnitude, or the graph fixes ' +\n 'the ratio at every anchor so the comparison could not fail. Counted apart from promising and never added to it',\n commands: ['discover'],\n },\n {\n key: 'inert',\n words: ['INERT', 'inert'],\n meaning: 'consistent but idle: a dimensional coincidence that connects nothing new and unlocks no quantity',\n commands: ['discover'],\n },\n {\n key: 'contradictory',\n words: ['CONTRADICTORY', 'contradictory'],\n meaning: 'the identification breaks the numerical consistency of the graph: a falsification within the graph',\n commands: ['discover'],\n },\n {\n key: 'magnitude-clash',\n words: ['magnitude-clash'],\n meaning:\n 'the two quantities\\' representative values differ by more than the threshold of orders of magnitude: an ' +\n 'independent falsification',\n commands: ['discover'],\n },\n {\n key: 'axis-clash',\n words: ['axis-clash'],\n meaning:\n 'the identification\\'s stated scale or force regime labels disagree: a prior from catalog labels, no ' +\n 'computation, never counted as a falsification',\n commands: ['discover'],\n },\n {\n key: 'reproduced',\n words: ['reproduced'],\n meaning:\n 'the replayed run gave the recorded exit code, stdout and stderr, byte for byte, and any file it wrote ' +\n '(--out, written to a temporary path, never over the recorded one) has the recorded SHA-256',\n commands: ['replay'],\n },\n {\n key: 'differs',\n words: ['differs', 'differ'],\n meaning:\n 'the replayed run differs from the record: the stream (or the written file) and first differing line are ' +\n 'named, with every changed version, parser, constant or module source and whether the command can reach it. Exit 3',\n commands: ['replay'],\n },\n {\n key: 'not-replayable',\n words: ['not replayable', 'not-replayable'],\n meaning:\n 'the entry is not re-run, or its replay is not compared: its line is malformed; it was to write a file and ' +\n 'wrote none; it ran an external probe worker; a file it read (--problem, --data, --stored, ...) changed, ' +\n 'vanished or appeared since recording, or was not hashed; or the recorded or the replayed probe search ' +\n 'stopped on its wall-clock budget (time-limit). Nothing was compared',\n commands: ['replay'],\n },\n {\n key: 'checked',\n words: ['checked'],\n meaning: 'a witness ran in this invocation and its claim held',\n commands: ['atlas', 'map', 'path'],\n },\n {\n key: 'refuted',\n words: ['refuted', 'REFUTED'],\n meaning:\n 'a witness ran and its claim failed. On a negative control the wrong hypothesis is refuted, which is ' +\n 'the control working. A refuted witness makes `--run` exit 3',\n commands: ['atlas', 'map', 'path'],\n },\n {\n key: 'unresolved',\n words: ['unresolved'],\n meaning:\n 'a witness did not run (its peer is absent, it timed out, its input did not parse) or ran and could not ' +\n 'decide (a CAS difference that did not simplify to zero, no convergence). Not a refutation, and never ' +\n 'counted with the refuted',\n commands: ['atlas', 'map', 'path'],\n },\n];\n\n/** The definitions of the statuses `command` can emit, keyed as in the glossary. */\nexport function definitionsFor(command: string): Record<string, string> {\n const out: Record<string, string> = {};\n for (const s of STATUS_GLOSSARY) if (s.commands.includes(command)) out[s.key] = s.meaning;\n return out;\n}\n\n/** The text of `upt help statuses`: each status, its words, the commands that emit it, and its meaning. */\nexport function glossaryText(): string {\n const lines = [\n 'upt help statuses — the status words the commands print',\n '',\n 'Each --json envelope carries these definitions, under `definitions`, for the statuses its command',\n 'can emit. A status that did not check anything never reads as a pass.',\n '',\n ];\n for (const s of STATUS_GLOSSARY) {\n lines.push(` ${s.words.join(' / ')} (${s.commands.map((c) => (c === 'replay' ? '--replay' : c)).join(', ')})`);\n lines.push(` ${s.meaning}.`);\n }\n return lines.join('\\n');\n}\n"]}
@@ -7,6 +7,7 @@
7
7
  * resolves to the package root in both the dev checkout and the installed
8
8
  * npm layout (`dist/` ships as part of the published package).
9
9
  */
10
+ /** Read the package version from `package.json` at run time. */
10
11
  export declare function packageVersion(): string;
11
12
  /**
12
13
  * Installed version of each MathTS dependency and each optional peer, `null`
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,wBAAgB,cAAc,IAAI,MAAM,CAIvC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAsB5D;AAKD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAIrE"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,gEAAgE;AAChE,wBAAgB,cAAc,IAAI,MAAM,CAIvC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAsB5D;AAKD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAIrE"}
@@ -12,6 +12,7 @@ import { createRequire } from 'node:module';
12
12
  import { join } from 'node:path';
13
13
  import { fileURLToPath } from 'node:url';
14
14
  import { readJsonFile } from '../core/data-file.js';
15
+ /** Read the package version from `package.json` at run time. */
15
16
  export function packageVersion() {
16
17
  const pkgPath = fileURLToPath(new URL('../../package.json', import.meta.url));
17
18
  const pkg = readJsonFile(pkgPath);
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,UAAU,cAAc;IAC5B,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,oBAAoB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9E,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAwB,CAAC;IACzD,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,MAA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,kBAAkB,IAAI,YAAY,EAAE,CAAC,kBAAkB,CAAC,IAAI,iBAAiB,GAAG;QAC7F,CAAC,CAAC,qCAAqC,cAAc,EAAE,GAAG,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * Runtime package-version lookup for the UPT CLI (`upt --version`, etc.).\n *\n * Reads `package.json` relative to this module's own location rather than\n * importing a generated constant, so it stays correct without a build step\n * re-stamping a version string. From `dist/cli/version.js`, `../../package.json`\n * resolves to the package root in both the dev checkout and the installed\n * npm layout (`dist/` ships as part of the published package).\n */\n\nimport { existsSync } from 'node:fs';\nimport { createRequire } from 'node:module';\nimport { join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { readJsonFile } from '../core/data-file.js';\n\nexport function packageVersion(): string {\n const pkgPath = fileURLToPath(new URL('../../package.json', import.meta.url));\n const pkg = readJsonFile(pkgPath) as { version: string };\n return pkg.version;\n}\n\n/**\n * Installed version of each MathTS dependency and each optional peer, `null`\n * when absent. Reads the package's own package.json from the resolution\n * paths, because a package's `exports` may not expose it. MathTS is required;\n * the record still names those versions so a replay can see a parser change.\n */\nexport function peerVersions(): Record<string, string | null> {\n const pkg = readJsonFile(fileURLToPath(new URL('../../package.json', import.meta.url))) as {\n dependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n };\n const names = [\n ...Object.keys(pkg.dependencies ?? {}).filter((n) => n.startsWith('@danielsimonjr/')),\n ...Object.keys(pkg.peerDependencies ?? {}),\n ];\n const require = createRequire(import.meta.url);\n const peers: Record<string, string | null> = {};\n for (const name of [...new Set(names)].sort()) {\n peers[name] = null;\n for (const dir of require.resolve.paths(name) ?? []) {\n const manifest = join(dir, name, 'package.json');\n if (existsSync(manifest)) {\n peers[name] = (readJsonFile(manifest) as { version?: string }).version ?? null;\n break;\n }\n }\n }\n return peers;\n}\n\n/** The peer that backs the `mathts` formula parser. */\nconst MATHTS_PARSER_PEER = '@danielsimonjr/mathts-functions';\n\n/**\n * The active formula parser with the version that defines it (audit I4): the MathTS peer's\n * version for `mathts`, this package's for `builtin`, whose parser ships in it.\n */\nexport function formulaParserLabel(kind: 'mathts' | 'builtin'): string {\n return kind === 'mathts'\n ? `mathts (${MATHTS_PARSER_PEER} ${peerVersions()[MATHTS_PARSER_PEER] ?? 'version unknown'})`\n : `builtin (universal-physics-tensor ${packageVersion()})`;\n}"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,gEAAgE;AAChE,MAAM,UAAU,cAAc;IAC5B,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,oBAAoB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9E,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAwB,CAAC;IACzD,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,GAAG,GAAG,YAAY,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,oBAAoB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAGrF,CAAC;IACF,MAAM,KAAK,GAAG;QACZ,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;QACrF,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;KAC3C,CAAC;IACF,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAkC,EAAE,CAAC;IAChD,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACnB,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;YACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;YACjD,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACzB,KAAK,CAAC,IAAI,CAAC,GAAI,YAAY,CAAC,QAAQ,CAA0B,CAAC,OAAO,IAAI,IAAI,CAAC;gBAC/E,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,uDAAuD;AACvD,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;AAE7D;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAA0B;IAC3D,OAAO,IAAI,KAAK,QAAQ;QACtB,CAAC,CAAC,WAAW,kBAAkB,IAAI,YAAY,EAAE,CAAC,kBAAkB,CAAC,IAAI,iBAAiB,GAAG;QAC7F,CAAC,CAAC,qCAAqC,cAAc,EAAE,GAAG,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * Runtime package-version lookup for the UPT CLI (`upt --version`, etc.).\n *\n * Reads `package.json` relative to this module's own location rather than\n * importing a generated constant, so it stays correct without a build step\n * re-stamping a version string. From `dist/cli/version.js`, `../../package.json`\n * resolves to the package root in both the dev checkout and the installed\n * npm layout (`dist/` ships as part of the published package).\n */\n\nimport { existsSync } from 'node:fs';\nimport { createRequire } from 'node:module';\nimport { join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { readJsonFile } from '../core/data-file.js';\n\n/** Read the package version from `package.json` at run time. */\nexport function packageVersion(): string {\n const pkgPath = fileURLToPath(new URL('../../package.json', import.meta.url));\n const pkg = readJsonFile(pkgPath) as { version: string };\n return pkg.version;\n}\n\n/**\n * Installed version of each MathTS dependency and each optional peer, `null`\n * when absent. Reads the package's own package.json from the resolution\n * paths, because a package's `exports` may not expose it. MathTS is required;\n * the record still names those versions so a replay can see a parser change.\n */\nexport function peerVersions(): Record<string, string | null> {\n const pkg = readJsonFile(fileURLToPath(new URL('../../package.json', import.meta.url))) as {\n dependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n };\n const names = [\n ...Object.keys(pkg.dependencies ?? {}).filter((n) => n.startsWith('@danielsimonjr/')),\n ...Object.keys(pkg.peerDependencies ?? {}),\n ];\n const require = createRequire(import.meta.url);\n const peers: Record<string, string | null> = {};\n for (const name of [...new Set(names)].sort()) {\n peers[name] = null;\n for (const dir of require.resolve.paths(name) ?? []) {\n const manifest = join(dir, name, 'package.json');\n if (existsSync(manifest)) {\n peers[name] = (readJsonFile(manifest) as { version?: string }).version ?? null;\n break;\n }\n }\n }\n return peers;\n}\n\n/** The peer that backs the `mathts` formula parser. */\nconst MATHTS_PARSER_PEER = '@danielsimonjr/mathts-functions';\n\n/**\n * The active formula parser with the version that defines it (audit I4): the MathTS peer's\n * version for `mathts`, this package's for `builtin`, whose parser ships in it.\n */\nexport function formulaParserLabel(kind: 'mathts' | 'builtin'): string {\n return kind === 'mathts'\n ? `mathts (${MATHTS_PARSER_PEER} ${peerVersions()[MATHTS_PARSER_PEER] ?? 'version unknown'})`\n : `builtin (universal-physics-tensor ${packageVersion()})`;\n}"]}
package/dist/cli-api.d.ts CHANGED
@@ -26,6 +26,8 @@ export { parseDimensionSpec } from './dimensional/dimension-spec.js';
26
26
  export { predictMissingBridges } from './composition/bridge-prediction.js';
27
27
  export { catalogFrontierAccount, formatFrontierAccount } from './composition/frontier-account.js';
28
28
  export { rankDiscoveries, ANCHOR_DEFAULT } from './composition/discovery.js';
29
+ /** The one magnitude-evidence predicate behind the two promising tiers, and the selector of both tiers. */
30
+ export { hasMagnitudeEvidence, isPromisingTier } from './composition/discovery.js';
29
31
  export { BRIDGE_EQUATIONS } from './bridges/index.js';
30
32
  export { auditCoverage } from './composition/audit-coverage.js';
31
33
  export { CONFRONTATIONS, listConfrontations, runConfrontation, confrontationRigor, rigorDistribution, } from './bridges/confrontations.js';
@@ -1 +1 @@
1
- {"version":3,"file":"cli-api.d.ts","sourceRoot":"","sources":["../src/cli-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,+BAA+B,CAAC;AAEvC,4FAA4F;AAC5F,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,eAAe,EACf,MAAM,EACN,MAAM,IAAI,eAAe,EACzB,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,gHAAgH;AAChH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAA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BAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,gHAAgH;AAChH,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEjH;;;;GAIG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF;;;;GAIG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,6GAA6G;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,6DAA6D;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,wDAAwD;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,gDAAgD;AAChD,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAExE,yDAAyD;AACzD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,2DAA2D;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/cli-api.js CHANGED
@@ -30,6 +30,8 @@ export { parseDimensionSpec } from './dimensional/dimension-spec.js';
30
30
  export { predictMissingBridges } from './composition/bridge-prediction.js';
31
31
  export { catalogFrontierAccount, formatFrontierAccount } from './composition/frontier-account.js';
32
32
  export { rankDiscoveries, ANCHOR_DEFAULT } from './composition/discovery.js';
33
+ /** The one magnitude-evidence predicate behind the two promising tiers, and the selector of both tiers. */
34
+ export { hasMagnitudeEvidence, isPromisingTier } from './composition/discovery.js';
33
35
  export { BRIDGE_EQUATIONS } from './bridges/index.js';
34
36
  export { auditCoverage } from './composition/audit-coverage.js';
35
37
  export { CONFRONTATIONS, listConfrontations, runConfrontation, confrontationRigor, rigorDistribution, } from './bridges/confrontations.js';
@@ -1 +1 @@
1
- {"version":3,"file":"cli-api.js","sourceRoot":"","sources":["../src/cli-api.ts"],"names":[],"mappings":"AA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E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,yDAAyD;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG1E,mFAAmF;AACnF,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACpF,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,kGAAkG;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,kGAAkG;AAClG,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACxF,wGAAwG;AACxG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,uGAAuG;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,0FAA0F;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,gHAAgH;AAChH,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEjH;;;;GAIG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF;;;;GAIG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,6GAA6G;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,6DAA6D;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["/**\n * CLI-facing barrel — the single stable entrypoint `bin/upt.mjs` imports.\n *\n * The CLI needs a handful of `@internal` analysis/composition/canonical\n * functions that are deliberately NOT on the public surface (so they are not in\n * the root `index.ts`). Previously `bin/upt.mjs` reached into ~10 deep `dist/`\n * module paths to get them, coupling the CLI to the internal file layout — any\n * module move silently broke the CLI. This barrel re-exports everything the CLI\n * uses from one place, so layout changes touch only this file and `bin/upt.mjs`\n * imports a single `dist/cli-api.js`.\n *\n * @internal — a CLI-support barrel; NOT re-exported from the root index, so it\n * stays off the consumer-facing public surface.\n *\n * @module cli-api\n */\n\n// Domain names register when this barrel loads. The command reads the list.\nimport './relations/domain-regimes.js';\n\n/** Public-API symbols (already on the root surface), plus `equals` as `dimensionsEqual`. */\nexport {\n explainQuantity,\n CATALOG_GRAPH,\n CANONICAL_GRAPH,\n M_SUN_KG,\n composeSymbolic,\n format,\n equals as dimensionsEqual,\n buildVizModel,\n renderDotToSvg,\n equationLanding,\n analyzeUserEquation,\n suggestQuantities,\n buckinghamPi,\n dimensionallyDetermines,\n} from './index.js';\n/** Numeric composition of two graph edges. The grade is the lower of the two, and a chain stays provisional. */\nexport { composeEdges } from './index.js';\n// Landing-report summariser (persona W3) — internal, not on the public barrel.\nexport { formatConnectedSummary } from './composition/user-equation.js';\n\n// Internal analysis surface (bridge-analysis.ts).\nexport {\n bridgePriority,\n attemptDerivation,\n dimensionalFreedom,\n linkageMap,\n proposeLinkCandidates,\n proposeOrphanConnectors,\n} from './composition/bridge-analysis.js';\n\n// Other internal modules the CLI drives.\nexport {\n getFormulaParser,\n getFormulaParserKind,\n getFormulaDimensionChecker,\n} from './numerical/formula-registry.js';\nexport { parseDimensionSpec } from './dimensional/dimension-spec.js';\nexport { predictMissingBridges } from './composition/bridge-prediction.js';\nexport { catalogFrontierAccount, formatFrontierAccount } from './composition/frontier-account.js';\nexport { rankDiscoveries, ANCHOR_DEFAULT } from './composition/discovery.js';\nexport { BRIDGE_EQUATIONS } from './bridges/index.js';\nexport { auditCoverage } from './composition/audit-coverage.js';\nexport {\n CONFRONTATIONS,\n listConfrontations,\n runConfrontation,\n confrontationRigor,\n rigorDistribution,\n} from './bridges/confrontations.js';\n/** Ask for a caller-table confrontation. The catalog status does not change. */\nexport { requestCallerTableConfrontation } from './bridges/caller-table.js';\n/** The catalog row, the id parser (and its non-throwing form), and the relation a numeric id evaluates. */\nexport { catalogEntry, catalogIdNumber, parseBridgeId, primaryRelation } from './bridges/catalog-load.js';\n/** The graph key of a catalog number (`be-<n>`): the one place that spelling is written. */\nexport { catalogEdgeKey } from './bridges/catalog-load.js';\n/** `_` written as `-`: the one fold every spelling comparison uses. */\nexport { foldName } from './dimensional/quantity-registry.js';\n/** The two composition demonstrations the CLI prints. */\nexport { demonstrationEdges } from './composition/catalog-graph.js';\nexport type { ConfrontationEntry, RigorTier } from './bridges/confrontations.js';\nexport { consistencyComparison } from './bridges/observations/types.js';\nexport type { ConfrontationOutcome } from './bridges/observations/types.js';\nexport { decidingMeasurement } from './bridges/sensitivity.js';\n// Bridge-evaluator dispatch (`upt evaluate`) + axis-discrimination audit (`upt axes`).\nexport { BRIDGE_EVALUATORS, evaluateBridge } from './bridges/evaluators.js';\n/**\n * The input-contract errors: an absent, unknown, non-number, non-finite or twice-given input.\n * `upt evaluate` reports each as a bad value (exit 1), never a usage error (exit 2), prefixed `upt evaluate:`.\n */\nexport {\n DuplicateInputError,\n InputTypeError,\n isInputContractError,\n MissingInputError,\n NonFiniteInputError,\n UnknownInputError,\n} from './bridges/evaluation-errors.js';\nexport type { EvaluatorSpec, EvaluatorParameter } from './bridges/evaluators.js';\nexport { resolveEvaluatorInputs } from './bridges/evaluator-inputs.js';\nexport { APPLIED_CASES, runAppliedCase } from './cases/index.js';\nexport type { AppliedCase, CaseCheck, CaseResult } from './cases/index.js';\n/** The unit reader's conversion, its refusal and the rows of the unit table. */\nexport { convertValue, UnitError, unitRows } from './dimensional/units.js';\n/** The axis-discrimination audit and the level (0.05) at which an axis's evidence is earned. */\nexport { auditAxisDiscrimination, AUDIT_ALPHA } from './composition/axis-audit.js';\nexport type { AxisDiscrimination } from './composition/axis-audit.js';\nexport { AXES } from './composition/axes.js';\nexport type { AxisSpec } from './composition/axes.js';\nexport { simplifyObservable, isSimplifierAvailable } from './composition/expr-simplify.js';\nexport {\n CANONICAL_EQUATIONS,\n bridgesWithoutCanonicalPartner,\n} from './canonical/registry.js';\nexport { scanLinkages } from './canonical/linkage.js';\nexport { deriveProposedBridges } from './composition/proposed-bridges.js';\nexport { describeDerivedClaim } from './composition/consequence.js';\n// `upt map --relation= --evidence=` overlay filtering (S2.4). Internal: the\n// published surface is pinned by tests/api/public-surface.test.ts.\n// Relation filtering and the legend stay in graph-viz. Catalog evidence\n// derivation lives in cli/map-evidence.ts, which is what calls it.\nexport { filterEdges, formatFilterLegend } from './composition/graph-viz.js';\nexport { deriveEdgeEvidence } from './cli/map-evidence.js';\n/**\n * `upt map --communities | --cycles | --rank-hubs`: layout communities (Louvain, heuristic; never\n * physics), derivation cycles, and betweenness hub ranking on demand. Internal.\n */\nexport { communitiesOf, derivationCycles, rankHubs } from './composition/graph-structure.js';\n/** The community report, one derivation cycle, and one hub rank, as `upt map` prints them. */\nexport type { CommunityReport, DerivationCycle, HubRank } from './composition/graph-structure.js';\n\n/**\n * Experimental Product B (expression / residual search). Not the identification\n * funnel (`rankDiscoveries`). CLI `upt probe` only.\n */\nexport {\n DEFAULT_SEARCH_BUDGET,\n scanFrontier,\n findFrontierGap,\n expressionSearchGaps,\n scanWithExpressionGaps,\n problemFromResidualGap,\n makeResidualGap,\n loadSearchProblemFromJson,\n resolveObservationsPath,\n parseExprJson,\n ProblemFileError,\n runProbeSearch,\n nodeWorkerArgv,\n formatProbeReport,\n loadStudyFromJson,\n loadStudyFile,\n runProbeStudy,\n formatProbeStudy,\n formatFrontierScan,\n formatFrontierGap,\n suggestDiscriminatingPoint,\n parseDesignBounds,\n runFalsification,\n rankPareto,\n} from './composition/probe/index.js';\n\n// Adjudication ledger (composition/adjudication.ts) — annotates discovery\n// candidates with recorded human verdicts; never mutates the funnel.\nexport {\n annotateAdjudications,\n adjudicationFor,\n candidateId,\n ADJUDICATIONS,\n} from './composition/adjudication.js';\nexport type { AnnotatedCandidate } from './composition/adjudication.js';\n/** One record of the adjudication ledger, exported from its owner, the catalog file's types. */\nexport type { CatalogAdjudication } from './bridges/catalog-types.js';\n\n// Consequence propagation (composition/consequence.ts) — annotates discovery\n// candidates with the entailed/novel-consequence/inconclusive signal; never\n// mutates the catalog/graph, never re-orders or re-scores.\nexport { annotateConsequences } from './composition/consequence.js';\nexport type {\n ConsequenceAnnotatedCandidate,\n ConsequenceSignal,\n ConsequenceEvidence,\n} from './composition/consequence.js';\n\n// Epistemic-grounding ledger (composition/grounding.ts) — a pure, derived view\n// over each candidate's falsifier results: which gates passed vs abstained, plus\n// the honest no-mechanism/no-data ceiling. Annotation-only; changes no verdict.\n// Atlas Phase 1 convention comparison — `upt recover` uses it to flag a\n// bridge↔canonical pair whose DECLARED sign/unit choices disagree. Advisory\n// only: it changes no classification and no exit code.\nexport { checkConventions, unknownConventionKeys } from './atlas/conventions.js';\nexport type { ConventionKey } from './atlas/conventions.js';\n\nexport { describeGrounding, describeReadiness } from './composition/grounding.js';\nexport { REPRESENTATIVE_VALUES } from './composition/representative-values.js';\n// User formula vs the canonical equation it restates (persona finding L2).\nexport {\n compareWithCanonical,\n compareUserEquation,\n describeComparison,\n describeComparisons,\n describeKnownRelation,\n matchingCatalogEdges,\n} from './composition/canonical-compare.js';\n/** The comparison row, the catalog-edge match, and the exponent-difference diagnosis of a form mismatch. */\nexport type { CanonicalComparison, CatalogEdgeMatch, ExponentDifference } from './composition/canonical-compare.js';\n/** One line for an exponent difference (`yours/canonical ∝ mass^-1 (R² = 1): …`), for `upt derive` to print. */\nexport { describeExponentDifference } from './composition/canonical-compare.js';\n/** One owner for \"a constant times that one\" (proposal 6): `upt derive` recovers its prefactor here. */\nexport {\n FIXED_POINT_EXPONENTS,\n constantRatio,\n fixedPoint,\n recoverMonomialPrefactor,\n} from './canonical/fixed-points.js';\n/** The fixed-point scheme, the ratio statistic and the recovery result types of `canonical/fixed-points.ts`. */\nexport type {\n ConstantRatio,\n ConstantRatioOptions,\n FixedPointScheme,\n PrefactorRecovery,\n PrefactorRecoveryScheme,\n RatioStatistic,\n} from './canonical/fixed-points.js';\nexport { CONSTANTS, CONSTANT_PROVENANCE } from './dimensional/symbolic-constants.js';\n/** The one decimal-literal rule (`2`, `1e3`; not `0x2`, `''`, `Infinity`): a symbol name that is a number. */\nexport { isDecimalLiteral } from './dimensional/ast-leaves.js';\n/** The one scalar-leaf walk of an `ExprNode`: `op` arguments always, other arms as the caller opts in. */\nexport { forEachScalarLeaf } from './dimensional/ast-leaves.js';\nexport type { CandidateGrounding, CandidateReadiness } from './composition/grounding.js';\n\n// Atlas Phase 2 CLI surface (`upt regime`, `upt path`). Regime admission and\n// route bounds are `@internal`; the CLI is their only consumer today.\nexport { OSCILLATOR_FAMILY } from './atlas/oscillators/index.js';\nexport { ATLAS_FAMILIES } from './atlas/families.js';\nexport { deriveEvidence, deriveCompositeEvidence, NO_PASSING_WITNESSES, provedWithUnresolvedCounterexample } from './atlas/derive-evidence.js';\nexport { summarizeEvidence, ALL_EVIDENCE_TAGS } from './atlas/coverage.js';\nexport { runWitnessRegistry } from './atlas/witness-artifact.js';\nexport { WITNESS_REGISTRY } from './atlas/witness-specs.js';\nexport { runNumericWitness } from './atlas/witness-numeric.js';\nexport {\n OBSERVABLE_CARRIAGES,\n OBSERVABLE_TRANSLATIONS,\n carriageOf,\n runTranslationCheck,\n translationsOf,\n} from './atlas/translation-registry.js';\nexport type { ObservableCarriage, ObservableTranslation, PointCheck } from './atlas/translation.js';\nexport type { AtlasFamily } from './atlas/family.js';\nexport { collidingRegimeGroups, regimeHolds, regimeOverlap, uncoveredRegions } from './atlas/regime.js';\nexport { domainRegimeRegistrations } from './relations/regime-registration.js';\nexport type { RegimeCheck, RegimeOverlap, RegionSample } from './atlas/regime.js';\nexport { familyChangeBlocksHorizon, findPath, findAtlasPath, enumerateAtlasRoutes, boundPath, horizonOnRoute, routeEntryModels } from './atlas/path-bound.js';\nexport { composeRelation } from './atlas/composition-table.js';\nexport type { PathBoundResult, PathBoundClaim, PathNoClaim, AppliedTransport } from './atlas/path-bound.js';\nexport type { AtlasBridge, RegimeInequality, Witness } from './atlas/types.js';\nexport { MissingLipschitzError } from './atlas/types.js';\nexport type { AtlasModel, ModelId } from './atlas/model.js';\n\n/**\n * Catalog formal reference for `upt atlas`.\n *\n * @internal\n */\nexport { catalogFormalRef } from './atlas/catalog-formal-ref.js';\n\n/**\n * Composition recovery scan for `upt recover`.\n *\n * @internal\n */\nexport { scanCompositionRecovery } from './composition/composition-recovery.js';\n\n/**\n * Exact metrics and geodesic integrators for `upt metric`.\n *\n * @internal\n */\nexport {\n curvatureReport,\n kerrEquatorialCircular,\n kerrGeodesic,\n kerrTurningPointOrbit,\n MetricMassError,\n MetricValueError,\n schwarzschildCircularOrbit,\n type MetricId,\n} from './numerical/spacetime-metrics.js';\n/** One split of a `name=value` token; a null is the command's own usage or value error. */\nexport { splitAssignment } from './core/assignment.js';\n\n/**\n * Binding readers for `upt eval`, `upt evaluate`, `upt regime`, and `upt path`.\n *\n * @internal\n */\nexport { readBinding, bindingInUnit, readNamedBinding, BindingNumberError, TemperatureBindingError } from './numerical/binding-value.js';\n/** GUM propagation through a closed-form evaluator, and the correlation-matrix check, for `upt evaluate --sigma/--corr`. */\nexport { propagateEvaluatorUncertainty, correlationIsPositiveSemidefinite } from './numerical/evaluator-uncertainty.js';\n/** One propagated output, and one input's share of it. */\nexport type { PropagatedOutput, UncertaintyContribution } from './numerical/evaluator-uncertainty.js';\n/** A stated constant checked against the registry; a disagreement is its own error. */\nexport { constantAgreement, ConstantDisagreementError } from './dimensional/symbolic-constants.js';\n/** Thrown when a formula string does not parse or names an unbound symbol. */\nexport { FormulaError, FormulaValueError } from './numerical/formula-contract.js';\n/** The quantity names a target is bound under, the near names of a miss, and the synonym fold. */\nexport { aliasesForTarget, nearQuantityNames, shareSynonyms } from './composition/aliases.js';\n/** Synonym agreement and expansion of a binding set. */\nexport { assertSynonymAgreement, expandSynonymValues } from './dimensional/formula-names.js';\n/** A dimensionless group a canonical equation multiplies (sound-speed's gamma): an input, not a graph node. */\nexport { CANONICAL_GROUP_PREFACTORS } from './composition/canonical-prefactors.js';\n/** The one number formatter of explain text. */\nexport { formatQuantity, formatExact } from './composition/explain.js';\n/** A fraction printed as a percentage (fixed decimals, or significant digits for a statistic). */\nexport { formatPercent } from './core/format.js';\n/** A monomial odd in both carrier charge and mobility with opposite signs. */\nexport { CarrierSignError } from './bridges/carrier-sign.js';\n/** The constant values a natural-unit mode overrides. */\nexport { naturalConstantOverrides } from './dimensional/natural-units.js';\n/** The constant-value mode a formula is evaluated in: SI, natural, or geometrized. */\nexport type { UnitMode } from './dimensional/natural-units.js';\n/** Kebab catalog names rewritten to one symbol each before a formula is parsed. */\nexport { escapeRegExp, rewriteCatalogHyphens } from './dimensional/hyphen-names.js';\n/** The ledger id of an orphan-connector pair, when both names are slugs. */\nexport { candidateIdIfSlug } from './composition/adjudication.js';\n/** The catalog or parameter name a spelling means. The commands call this, not a second table. */\nexport { resolveQuantityName } from './index.js';\n/** The edge and the closed-form evaluator for an id. An evaluator with no edge is not unknown. */\nexport { evaluateResolved, resolveEvaluable } from './composition/evaluate-relation.js';\n/** The SI unit of a dimension, in the form `parseUnit` reads back. The CLI's derived label reads it. */\nexport { siUnitOf } from './dimensional/algebra.js';\n/** The required inputs of an evaluator that no relation source reads. They do not change the value. */\nexport { unusedInputKeys } from './bridges/evaluators.js';\n/** Two spellings of one quantity were given different numbers. The formula is not run. */\nexport { SynonymDisagreementError } from './dimensional/formula-names.js';\n/** `upt retrieve`: the canonical corpus, the optional Ollama embedder, and the atlas-accepted hybrid search. */\nexport { canonicalRetrievalCorpus, ollamaEmbedder, retrieveHybrid } from './atlas/benchmark/hybrid-retrieval.js';\n\n/**\n * Builtin dimension checker for `upt eval`.\n *\n * @internal\n */\nexport { builtinFormulaDimensionChecker } from './numerical/formula-dimension.js';\n\n/**\n * Missing-evaluator message for `upt evaluate`.\n *\n * @internal\n */\nexport { missingEvaluatorMessage } from './bridges/evaluators.js';\n\n/** The caveats printed beside a relation's value: its own notice and the notes of the constants it names. */\nexport { relationNotices } from './bridges/notices.js';\n/** The notes of the registered constants a formula names. */\nexport { constantNotes } from './dimensional/symbolic-constants.js';\n\n/** Quantity-graph edge type for `upt map`. @internal */\nexport type { BridgeEdge } from './composition/edge.js';\n\n/** Visual map types for `upt map`. @internal */\nexport type { VizJunction, VizModel } from './composition/graph-viz.js';\n\n/** Relation vocabulary types for `upt map`. @internal */\nexport type { EvidenceTag, RelationType } from './atlas/types.js';\n\n/** User-equation analysis type for `upt map`. @internal */\nexport type { EquationAnalysis } from './composition/user-equation.js';\n"]}
1
+ {"version":3,"file":"cli-api.js","sourceRoot":"","sources":["../src/cli-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,4EAA4E;AAC5E,OAAO,+BAA+B,CAAC;AAEvC,4FAA4F;AAC5F,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,eAAe,EACf,MAAM,EACN,MAAM,IAAI,eAAe,EACzB,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,gHAAgH;AAChH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,+EAA+E;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,kDAAkD;AAClD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,yCAAyC;AACzC,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,e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AC;AAElF;;;;GAIG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,6GAA6G;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,6DAA6D;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["/**\n * CLI-facing barrel — the single stable entrypoint `bin/upt.mjs` imports.\n *\n * The CLI needs a handful of `@internal` analysis/composition/canonical\n * functions that are deliberately NOT on the public surface (so they are not in\n * the root `index.ts`). Previously `bin/upt.mjs` reached into ~10 deep `dist/`\n * module paths to get them, coupling the CLI to the internal file layout — any\n * module move silently broke the CLI. This barrel re-exports everything the CLI\n * uses from one place, so layout changes touch only this file and `bin/upt.mjs`\n * imports a single `dist/cli-api.js`.\n *\n * @internal — a CLI-support barrel; NOT re-exported from the root index, so it\n * stays off the consumer-facing public surface.\n *\n * @module cli-api\n */\n\n// Domain names register when this barrel loads. The command reads the list.\nimport './relations/domain-regimes.js';\n\n/** Public-API symbols (already on the root surface), plus `equals` as `dimensionsEqual`. */\nexport {\n explainQuantity,\n CATALOG_GRAPH,\n CANONICAL_GRAPH,\n M_SUN_KG,\n composeSymbolic,\n format,\n equals as dimensionsEqual,\n buildVizModel,\n renderDotToSvg,\n equationLanding,\n analyzeUserEquation,\n suggestQuantities,\n buckinghamPi,\n dimensionallyDetermines,\n} from './index.js';\n/** Numeric composition of two graph edges. The grade is the lower of the two, and a chain stays provisional. */\nexport { composeEdges } from './index.js';\n// Landing-report summariser (persona W3) — internal, not on the public barrel.\nexport { formatConnectedSummary } from './composition/user-equation.js';\n\n// Internal analysis surface (bridge-analysis.ts).\nexport {\n bridgePriority,\n attemptDerivation,\n dimensionalFreedom,\n linkageMap,\n proposeLinkCandidates,\n proposeOrphanConnectors,\n} from './composition/bridge-analysis.js';\n\n// Other internal modules the CLI drives.\nexport {\n getFormulaParser,\n getFormulaParserKind,\n getFormulaDimensionChecker,\n} from './numerical/formula-registry.js';\nexport { parseDimensionSpec } from './dimensional/dimension-spec.js';\nexport { predictMissingBridges } from './composition/bridge-prediction.js';\nexport { catalogFrontierAccount, formatFrontierAccount } from './composition/frontier-account.js';\nexport { rankDiscoveries, ANCHOR_DEFAULT } from './composition/discovery.js';\n/** The one magnitude-evidence predicate behind the two promising tiers, and the selector of both tiers. */\nexport { hasMagnitudeEvidence, isPromisingTier } from './composition/discovery.js';\nexport { BRIDGE_EQUATIONS } from './bridges/index.js';\nexport { auditCoverage } from './composition/audit-coverage.js';\nexport {\n CONFRONTATIONS,\n listConfrontations,\n runConfrontation,\n confrontationRigor,\n rigorDistribution,\n} from './bridges/confrontations.js';\n/** Ask for a caller-table confrontation. The catalog status does not change. */\nexport { requestCallerTableConfrontation } from './bridges/caller-table.js';\n/** The catalog row, the id parser (and its non-throwing form), and the relation a numeric id evaluates. */\nexport { catalogEntry, catalogIdNumber, parseBridgeId, primaryRelation } from './bridges/catalog-load.js';\n/** The graph key of a catalog number (`be-<n>`): the one place that spelling is written. */\nexport { catalogEdgeKey } from './bridges/catalog-load.js';\n/** `_` written as `-`: the one fold every spelling comparison uses. */\nexport { foldName } from './dimensional/quantity-registry.js';\n/** The two composition demonstrations the CLI prints. */\nexport { demonstrationEdges } from './composition/catalog-graph.js';\nexport type { ConfrontationEntry, RigorTier } from './bridges/confrontations.js';\nexport { consistencyComparison } from './bridges/observations/types.js';\nexport type { ConfrontationOutcome } from './bridges/observations/types.js';\nexport { decidingMeasurement } from './bridges/sensitivity.js';\n// Bridge-evaluator dispatch (`upt evaluate`) + axis-discrimination audit (`upt axes`).\nexport { BRIDGE_EVALUATORS, evaluateBridge } from './bridges/evaluators.js';\n/**\n * The input-contract errors: an absent, unknown, non-number, non-finite or twice-given input.\n * `upt evaluate` reports each as a bad value (exit 1), never a usage error (exit 2), prefixed `upt evaluate:`.\n */\nexport {\n DuplicateInputError,\n InputTypeError,\n isInputContractError,\n MissingInputError,\n NonFiniteInputError,\n UnknownInputError,\n} from './bridges/evaluation-errors.js';\nexport type { EvaluatorSpec, EvaluatorParameter } from './bridges/evaluators.js';\nexport { resolveEvaluatorInputs } from './bridges/evaluator-inputs.js';\nexport { APPLIED_CASES, runAppliedCase } from './cases/index.js';\nexport type { AppliedCase, CaseCheck, CaseResult } from './cases/index.js';\n/** The unit reader's conversion, its refusal and the rows of the unit table. */\nexport { convertValue, UnitError, unitRows } from './dimensional/units.js';\n/** The axis-discrimination audit and the level (0.05) at which an axis's evidence is earned. */\nexport { auditAxisDiscrimination, AUDIT_ALPHA } from './composition/axis-audit.js';\nexport type { AxisDiscrimination } from './composition/axis-audit.js';\nexport { AXES } from './composition/axes.js';\nexport type { AxisSpec } from './composition/axes.js';\nexport { simplifyObservable, isSimplifierAvailable } from './composition/expr-simplify.js';\nexport {\n CANONICAL_EQUATIONS,\n bridgesWithoutCanonicalPartner,\n} from './canonical/registry.js';\nexport { scanLinkages } from './canonical/linkage.js';\nexport { deriveProposedBridges } from './composition/proposed-bridges.js';\nexport { describeDerivedClaim } from './composition/consequence.js';\n// `upt map --relation= --evidence=` overlay filtering (S2.4). Internal: the\n// published surface is pinned by tests/api/public-surface.test.ts.\n// Relation filtering and the legend stay in graph-viz. Catalog evidence\n// derivation lives in cli/map-evidence.ts, which is what calls it.\nexport { filterEdges, formatFilterLegend } from './composition/graph-viz.js';\nexport { deriveEdgeEvidence } from './cli/map-evidence.js';\n/**\n * `upt map --communities | --cycles | --rank-hubs`: layout communities (Louvain, heuristic; never\n * physics), derivation cycles, and betweenness hub ranking on demand. Internal.\n */\nexport { communitiesOf, derivationCycles, rankHubs } from './composition/graph-structure.js';\n/** The community report, one derivation cycle, and one hub rank, as `upt map` prints them. */\nexport type { CommunityReport, DerivationCycle, HubRank } from './composition/graph-structure.js';\n\n/**\n * Experimental Product B (expression / residual search). Not the identification\n * funnel (`rankDiscoveries`). CLI `upt probe` only.\n */\nexport {\n DEFAULT_SEARCH_BUDGET,\n scanFrontier,\n findFrontierGap,\n expressionSearchGaps,\n scanWithExpressionGaps,\n problemFromResidualGap,\n makeResidualGap,\n loadSearchProblemFromJson,\n resolveObservationsPath,\n parseExprJson,\n ProblemFileError,\n runProbeSearch,\n nodeWorkerArgv,\n formatProbeReport,\n loadStudyFromJson,\n loadStudyFile,\n runProbeStudy,\n formatProbeStudy,\n formatFrontierScan,\n formatFrontierGap,\n suggestDiscriminatingPoint,\n parseDesignBounds,\n runFalsification,\n rankPareto,\n} from './composition/probe/index.js';\n\n// Adjudication ledger (composition/adjudication.ts) — annotates discovery\n// candidates with recorded human verdicts; never mutates the funnel.\nexport {\n annotateAdjudications,\n adjudicationFor,\n candidateId,\n ADJUDICATIONS,\n} from './composition/adjudication.js';\nexport type { AnnotatedCandidate } from './composition/adjudication.js';\n/** One record of the adjudication ledger, exported from its owner, the catalog file's types. */\nexport type { CatalogAdjudication } from './bridges/catalog-types.js';\n\n// Consequence propagation (composition/consequence.ts) — annotates discovery\n// candidates with the entailed/novel-consequence/inconclusive signal; never\n// mutates the catalog/graph, never re-orders or re-scores.\nexport { annotateConsequences } from './composition/consequence.js';\nexport type {\n ConsequenceAnnotatedCandidate,\n ConsequenceSignal,\n ConsequenceEvidence,\n} from './composition/consequence.js';\n\n// Epistemic-grounding ledger (composition/grounding.ts) — a pure, derived view\n// over each candidate's falsifier results: which gates passed vs abstained, plus\n// the honest no-mechanism/no-data ceiling. Annotation-only; changes no verdict.\n// Atlas Phase 1 convention comparison — `upt recover` uses it to flag a\n// bridge↔canonical pair whose DECLARED sign/unit choices disagree. Advisory\n// only: it changes no classification and no exit code.\nexport { checkConventions, unknownConventionKeys } from './atlas/conventions.js';\nexport type { ConventionKey } from './atlas/conventions.js';\n\nexport { describeGrounding, describeReadiness } from './composition/grounding.js';\nexport { REPRESENTATIVE_VALUES } from './composition/representative-values.js';\n// User formula vs the canonical equation it restates (persona finding L2).\nexport {\n compareWithCanonical,\n compareUserEquation,\n describeComparison,\n describeComparisons,\n describeKnownRelation,\n matchingCatalogEdges,\n} from './composition/canonical-compare.js';\n/** The comparison row, the catalog-edge match, and the exponent-difference diagnosis of a form mismatch. */\nexport type { CanonicalComparison, CatalogEdgeMatch, ExponentDifference } from './composition/canonical-compare.js';\n/** One line for an exponent difference (`yours/canonical ∝ mass^-1 (R² = 1): …`), for `upt derive` to print. */\nexport { describeExponentDifference } from './composition/canonical-compare.js';\n/** One owner for \"a constant times that one\" (proposal 6): `upt derive` recovers its prefactor here. */\nexport {\n FIXED_POINT_EXPONENTS,\n constantRatio,\n fixedPoint,\n recoverMonomialPrefactor,\n} from './canonical/fixed-points.js';\n/** The fixed-point scheme, the ratio statistic and the recovery result types of `canonical/fixed-points.ts`. */\nexport type {\n ConstantRatio,\n ConstantRatioOptions,\n FixedPointScheme,\n PrefactorRecovery,\n PrefactorRecoveryScheme,\n RatioStatistic,\n} from './canonical/fixed-points.js';\nexport { CONSTANTS, CONSTANT_PROVENANCE } from './dimensional/symbolic-constants.js';\n/** The one decimal-literal rule (`2`, `1e3`; not `0x2`, `''`, `Infinity`): a symbol name that is a number. */\nexport { isDecimalLiteral } from './dimensional/ast-leaves.js';\n/** The one scalar-leaf walk of an `ExprNode`: `op` arguments always, other arms as the caller opts in. */\nexport { forEachScalarLeaf } from './dimensional/ast-leaves.js';\nexport type { CandidateGrounding, CandidateReadiness } from './composition/grounding.js';\n\n// Atlas Phase 2 CLI surface (`upt regime`, `upt path`). Regime admission and\n// route bounds are `@internal`; the CLI is their only consumer today.\nexport { OSCILLATOR_FAMILY } from './atlas/oscillators/index.js';\nexport { ATLAS_FAMILIES } from './atlas/families.js';\nexport { deriveEvidence, deriveCompositeEvidence, NO_PASSING_WITNESSES, provedWithUnresolvedCounterexample } from './atlas/derive-evidence.js';\nexport { summarizeEvidence, ALL_EVIDENCE_TAGS } from './atlas/coverage.js';\nexport { runWitnessRegistry } from './atlas/witness-artifact.js';\nexport { WITNESS_REGISTRY } from './atlas/witness-specs.js';\nexport { runNumericWitness } from './atlas/witness-numeric.js';\nexport {\n OBSERVABLE_CARRIAGES,\n OBSERVABLE_TRANSLATIONS,\n carriageOf,\n runTranslationCheck,\n translationsOf,\n} from './atlas/translation-registry.js';\nexport type { ObservableCarriage, ObservableTranslation, PointCheck } from './atlas/translation.js';\nexport type { AtlasFamily } from './atlas/family.js';\nexport { collidingRegimeGroups, regimeHolds, regimeOverlap, uncoveredRegions } from './atlas/regime.js';\nexport { domainRegimeRegistrations } from './relations/regime-registration.js';\nexport type { RegimeCheck, RegimeOverlap, RegionSample } from './atlas/regime.js';\nexport { familyChangeBlocksHorizon, findPath, findAtlasPath, enumerateAtlasRoutes, boundPath, horizonOnRoute, routeEntryModels } from './atlas/path-bound.js';\nexport { composeRelation } from './atlas/composition-table.js';\nexport type { PathBoundResult, PathBoundClaim, PathNoClaim, AppliedTransport } from './atlas/path-bound.js';\nexport type { AtlasBridge, RegimeInequality, Witness } from './atlas/types.js';\nexport { MissingLipschitzError } from './atlas/types.js';\nexport type { AtlasModel, ModelId } from './atlas/model.js';\n\n/**\n * Catalog formal reference for `upt atlas`.\n *\n * @internal\n */\nexport { catalogFormalRef } from './atlas/catalog-formal-ref.js';\n\n/**\n * Composition recovery scan for `upt recover`.\n *\n * @internal\n */\nexport { scanCompositionRecovery } from './composition/composition-recovery.js';\n\n/**\n * Exact metrics and geodesic integrators for `upt metric`.\n *\n * @internal\n */\nexport {\n curvatureReport,\n kerrEquatorialCircular,\n kerrGeodesic,\n kerrTurningPointOrbit,\n MetricMassError,\n MetricValueError,\n schwarzschildCircularOrbit,\n type MetricId,\n} from './numerical/spacetime-metrics.js';\n/** One split of a `name=value` token; a null is the command's own usage or value error. */\nexport { splitAssignment } from './core/assignment.js';\n\n/**\n * Binding readers for `upt eval`, `upt evaluate`, `upt regime`, and `upt path`.\n *\n * @internal\n */\nexport { readBinding, bindingInUnit, readNamedBinding, BindingNumberError, TemperatureBindingError } from './numerical/binding-value.js';\n/** GUM propagation through a closed-form evaluator, and the correlation-matrix check, for `upt evaluate --sigma/--corr`. */\nexport { propagateEvaluatorUncertainty, correlationIsPositiveSemidefinite } from './numerical/evaluator-uncertainty.js';\n/** One propagated output, and one input's share of it. */\nexport type { PropagatedOutput, UncertaintyContribution } from './numerical/evaluator-uncertainty.js';\n/** A stated constant checked against the registry; a disagreement is its own error. */\nexport { constantAgreement, ConstantDisagreementError } from './dimensional/symbolic-constants.js';\n/** Thrown when a formula string does not parse or names an unbound symbol. */\nexport { FormulaError, FormulaValueError } from './numerical/formula-contract.js';\n/** The quantity names a target is bound under, the near names of a miss, and the synonym fold. */\nexport { aliasesForTarget, nearQuantityNames, shareSynonyms } from './composition/aliases.js';\n/** Synonym agreement and expansion of a binding set. */\nexport { assertSynonymAgreement, expandSynonymValues } from './dimensional/formula-names.js';\n/** A dimensionless group a canonical equation multiplies (sound-speed's gamma): an input, not a graph node. */\nexport { CANONICAL_GROUP_PREFACTORS } from './composition/canonical-prefactors.js';\n/** The one number formatter of explain text. */\nexport { formatQuantity, formatExact } from './composition/explain.js';\n/** A fraction printed as a percentage (fixed decimals, or significant digits for a statistic). */\nexport { formatPercent } from './core/format.js';\n/** A monomial odd in both carrier charge and mobility with opposite signs. */\nexport { CarrierSignError } from './bridges/carrier-sign.js';\n/** The constant values a natural-unit mode overrides. */\nexport { naturalConstantOverrides } from './dimensional/natural-units.js';\n/** The constant-value mode a formula is evaluated in: SI, natural, or geometrized. */\nexport type { UnitMode } from './dimensional/natural-units.js';\n/** Kebab catalog names rewritten to one symbol each before a formula is parsed. */\nexport { escapeRegExp, rewriteCatalogHyphens } from './dimensional/hyphen-names.js';\n/** The ledger id of an orphan-connector pair, when both names are slugs. */\nexport { candidateIdIfSlug } from './composition/adjudication.js';\n/** The catalog or parameter name a spelling means. The commands call this, not a second table. */\nexport { resolveQuantityName } from './index.js';\n/** The edge and the closed-form evaluator for an id. An evaluator with no edge is not unknown. */\nexport { evaluateResolved, resolveEvaluable } from './composition/evaluate-relation.js';\n/** The SI unit of a dimension, in the form `parseUnit` reads back. The CLI's derived label reads it. */\nexport { siUnitOf } from './dimensional/algebra.js';\n/** The required inputs of an evaluator that no relation source reads. They do not change the value. */\nexport { unusedInputKeys } from './bridges/evaluators.js';\n/** Two spellings of one quantity were given different numbers. The formula is not run. */\nexport { SynonymDisagreementError } from './dimensional/formula-names.js';\n/** `upt retrieve`: the canonical corpus, the optional Ollama embedder, and the atlas-accepted hybrid search. */\nexport { canonicalRetrievalCorpus, ollamaEmbedder, retrieveHybrid } from './atlas/benchmark/hybrid-retrieval.js';\n\n/**\n * Builtin dimension checker for `upt eval`.\n *\n * @internal\n */\nexport { builtinFormulaDimensionChecker } from './numerical/formula-dimension.js';\n\n/**\n * Missing-evaluator message for `upt evaluate`.\n *\n * @internal\n */\nexport { missingEvaluatorMessage } from './bridges/evaluators.js';\n\n/** The caveats printed beside a relation's value: its own notice and the notes of the constants it names. */\nexport { relationNotices } from './bridges/notices.js';\n/** The notes of the registered constants a formula names. */\nexport { constantNotes } from './dimensional/symbolic-constants.js';\n\n/** Quantity-graph edge type for `upt map`. @internal */\nexport type { BridgeEdge } from './composition/edge.js';\n\n/** Visual map types for `upt map`. @internal */\nexport type { VizJunction, VizModel } from './composition/graph-viz.js';\n\n/** Relation vocabulary types for `upt map`. @internal */\nexport type { EvidenceTag, RelationType } from './atlas/types.js';\n\n/** User-equation analysis type for `upt map`. @internal */\nexport type { EquationAnalysis } from './composition/user-equation.js';\n"]}
@@ -84,14 +84,14 @@ export declare const CANONICAL_CONSTANTS: Readonly<Record<string, ConstantDef>>;
84
84
  * Project canonical equations into composition-graph edges (defaults to the
85
85
  * full registry). See the module docstring for the modelling decisions.
86
86
  *
87
- * @internal
87
+ * @public
88
88
  */
89
89
  export declare function canonicalToEdges(equations?: readonly CanonicalEquation[]): BridgeEdge[];
90
90
  /**
91
91
  * The standard-physics composition graph: every canonical equation as an
92
92
  * `established` `law` edge. The bridge-free counterpart to `CATALOG_GRAPH`.
93
93
  *
94
- * @internal
94
+ * @public
95
95
  */
96
96
  export declare const CANONICAL_GRAPH: readonly BridgeEdge[];
97
97
  //# sourceMappingURL=canonical-graph.d.ts.map
@@ -537,7 +537,7 @@ function toEdge(eq) {
537
537
  * Project canonical equations into composition-graph edges (defaults to the
538
538
  * full registry). See the module docstring for the modelling decisions.
539
539
  *
540
- * @internal
540
+ * @public
541
541
  */
542
542
  export function canonicalToEdges(equations = CANONICAL_EQUATIONS) {
543
543
  return equations.map(toEdge);
@@ -546,7 +546,7 @@ export function canonicalToEdges(equations = CANONICAL_EQUATIONS) {
546
546
  * The standard-physics composition graph: every canonical equation as an
547
547
  * `established` `law` edge. The bridge-free counterpart to `CATALOG_GRAPH`.
548
548
  *
549
- * @internal
549
+ * @public
550
550
  */
551
551
  export const CANONICAL_GRAPH = canonicalToEdges();
552
552
  //# sourceMappingURL=canonical-graph.js.map