@inflexa-ai/harness 0.45.1 → 0.46.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.
- package/README.md +6 -3
- package/dist/agents/conversation-agent.d.ts +9 -3
- package/dist/agents/conversation-agent.js +34 -33
- package/dist/agents/report-session-agent.d.ts +15 -15
- package/dist/agents/report-session-agent.js +23 -15
- package/dist/agents/sandbox/index.d.ts +1 -1
- package/dist/agents/sandbox/index.js +1 -1
- package/dist/agents/sandbox/shared.d.ts +12 -14
- package/dist/agents/sandbox/shared.js +18 -12
- package/dist/agents/sandbox/types.d.ts +4 -4
- package/dist/agents/sandbox/validate-skills.d.ts +2 -2
- package/dist/agents/sandbox/validate-skills.js +3 -1
- package/dist/agents/sandbox-catalog.d.ts +2 -2
- package/dist/agents/sandbox-catalog.js +3 -3
- package/dist/agents/system-prompt.d.ts +2 -2
- package/dist/app/chat-turn-workflow.d.ts +114 -0
- package/dist/app/chat-turn-workflow.js +307 -0
- package/dist/app/chat-turn.d.ts +85 -57
- package/dist/app/chat-turn.js +123 -100
- package/dist/app/data-profile-orientation.js +10 -8
- package/dist/app/data-profile-view.d.ts +4 -4
- package/dist/app/data-profile-view.js +9 -8
- package/dist/app/in-process-turn.d.ts +42 -0
- package/dist/app/in-process-turn.js +139 -0
- package/dist/app/message-assembly.d.ts +10 -4
- package/dist/app/message-assembly.js +13 -8
- package/dist/app/report-session-runtime.d.ts +4 -4
- package/dist/app/report-session-runtime.js +36 -21
- package/dist/app/spawn-report-session.d.ts +33 -28
- package/dist/app/spawn-report-session.js +25 -40
- package/dist/app/synthesize-run.d.ts +22 -16
- package/dist/app/synthesize-run.js +41 -35
- package/dist/app/work.d.ts +96 -0
- package/dist/app/work.js +147 -0
- package/dist/auth/local-auth-context.d.ts +1 -3
- package/dist/auth/local-auth-context.js +1 -3
- package/dist/auth/local-run-authorizer.d.ts +1 -1
- package/dist/auth/local-run-authorizer.js +5 -3
- package/dist/auth/types.d.ts +26 -26
- package/dist/billing/cached-resolver.d.ts +4 -4
- package/dist/billing/run-charge.d.ts +5 -8
- package/dist/billing/run-charge.js +2 -2
- package/dist/billing/usage-recorder.d.ts +9 -9
- package/dist/citations/aggregate.js +1 -1
- package/dist/citations/clients/arxiv.d.ts +2 -2
- package/dist/citations/clients/arxiv.js +12 -4
- package/dist/citations/clients/common.js +4 -2
- package/dist/citations/clients/crossref.d.ts +2 -2
- package/dist/citations/clients/crossref.js +37 -37
- package/dist/citations/clients/doi-registry.js +15 -16
- package/dist/citations/clients/pubmed.d.ts +2 -2
- package/dist/citations/clients/pubmed.js +20 -13
- package/dist/citations/clients/semantic-scholar.d.ts +2 -2
- package/dist/citations/clients/semantic-scholar.js +9 -9
- package/dist/citations/compare.js +2 -2
- package/dist/citations/match.d.ts +2 -2
- package/dist/citations/match.js +12 -7
- package/dist/citations/normalize.js +35 -26
- package/dist/citations/plan.js +6 -2
- package/dist/citations/resolve.d.ts +6 -6
- package/dist/citations/resolve.js +34 -25
- package/dist/citations/types.d.ts +77 -77
- package/dist/config/environment-stores.d.ts +6 -6
- package/dist/config/resource-limits.js +1 -3
- package/dist/contracts/analogy-report.d.ts +7 -7
- package/dist/contracts/analogy-report.js +2 -2
- package/dist/contracts/chat-events.d.ts +38 -24
- package/dist/contracts/chat-frame.d.ts +15 -5
- package/dist/contracts/chat-frame.js +64 -41
- package/dist/contracts/chat-parts.d.ts +130 -67
- package/dist/contracts/chat-parts.js +1 -0
- package/dist/contracts/content-url.js +16 -2
- package/dist/contracts/data-profile.d.ts +38 -38
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +1 -1
- package/dist/contracts/message.d.ts +6 -6
- package/dist/contracts/organ-system.d.ts +11 -11
- package/dist/contracts/part-registry.d.ts +5 -4
- package/dist/contracts/part-registry.js +5 -0
- package/dist/contracts/profile-vocabulary.d.ts +11 -10
- package/dist/contracts/profile-vocabulary.js +10 -3
- package/dist/contracts/report-blocks.d.ts +329 -329
- package/dist/contracts/report-reference.d.ts +105 -81
- package/dist/contracts/report-reference.js +30 -13
- package/dist/contracts/schemas/chat-events.d.ts +30 -16
- package/dist/contracts/schemas/chat-events.js +15 -6
- package/dist/contracts/schemas/chat-parts.d.ts +175 -102
- package/dist/contracts/schemas/chat-parts.js +33 -7
- package/dist/contracts/severity.d.ts +1 -1
- package/dist/contracts/structure-source.d.ts +3 -3
- package/dist/contracts/structure-source.js +6 -2
- package/dist/contracts/subagent-activity.d.ts +2 -2
- package/dist/contracts/subagent-activity.js +5 -3
- package/dist/contracts/usage.d.ts +2 -2
- package/dist/data/safety-panel-schema.d.ts +25 -25
- package/dist/data/safety-panel-schema.js +13 -4
- package/dist/execution/artifact-metadata.d.ts +23 -15
- package/dist/execution/artifact-metadata.js +33 -10
- package/dist/execution/artifact-record.d.ts +2 -2
- package/dist/execution/artifact-registration.d.ts +5 -5
- package/dist/execution/artifact-registry.d.ts +8 -8
- package/dist/execution/dbos-run-launcher.d.ts +24 -4
- package/dist/execution/dbos-run-launcher.js +58 -4
- package/dist/execution/dbos-workflow-purger.d.ts +5 -6
- package/dist/execution/dbos-workflow-purger.js +8 -7
- package/dist/execution/input-signature.d.ts +2 -2
- package/dist/execution/post-step-pipeline.d.ts +9 -9
- package/dist/execution/post-step-pipeline.js +1 -1
- package/dist/execution/post-step.js +2 -2
- package/dist/execution/reconcile-manifest.d.ts +4 -4
- package/dist/execution/reconcile-manifest.js +3 -2
- package/dist/execution/run-authorizer.d.ts +46 -37
- package/dist/execution/run-authorizer.js +8 -8
- package/dist/execution/run-canceler.d.ts +7 -7
- package/dist/execution/run-canceler.js +14 -7
- package/dist/execution/run-end-record.d.ts +2 -3
- package/dist/execution/run-event-parts.d.ts +0 -8
- package/dist/execution/run-event-parts.js +29 -24
- package/dist/execution/run-event-stream.d.ts +8 -8
- package/dist/execution/run-event-stream.js +3 -4
- package/dist/execution/run-launcher.d.ts +4 -4
- package/dist/execution/run-synthesis.d.ts +49 -48
- package/dist/execution/run-synthesis.js +96 -255
- package/dist/execution/staged-input.d.ts +2 -2
- package/dist/execution/step-summary.d.ts +6 -6
- package/dist/execution/step-summary.js +4 -8
- package/dist/execution/topo-sort.js +4 -3
- package/dist/execution/workflow-purger.d.ts +2 -2
- package/dist/index.d.ts +17 -20
- package/dist/index.js +25 -36
- package/dist/input-sanitization.js +9 -2
- package/dist/input-scan/clustering.d.ts +6 -6
- package/dist/input-scan/clustering.js +11 -5
- package/dist/input-scan/companions.js +3 -2
- package/dist/input-scan/detect-sets.d.ts +2 -2
- package/dist/input-scan/detect-sets.js +25 -21
- package/dist/input-scan/enrich.d.ts +6 -6
- package/dist/input-scan/enrich.js +29 -12
- package/dist/input-scan/formats.d.ts +2 -2
- package/dist/input-scan/formats.js +8 -2
- package/dist/input-scan/markers.d.ts +2 -2
- package/dist/input-scan/markers.js +14 -5
- package/dist/input-scan/menu.d.ts +10 -10
- package/dist/input-scan/menu.js +0 -0
- package/dist/input-scan/quarantine.d.ts +2 -2
- package/dist/input-scan/quarantine.js +23 -18
- package/dist/input-scan/readout-budget.d.ts +2 -2
- package/dist/input-scan/readout-budget.js +1 -1
- package/dist/input-scan/readout.d.ts +2 -2
- package/dist/input-scan/readout.js +47 -34
- package/dist/input-scan/scan.d.ts +2 -2
- package/dist/input-scan/scan.js +7 -5
- package/dist/input-scan/set-types.d.ts +28 -28
- package/dist/input-scan/shapes.d.ts +4 -4
- package/dist/input-scan/shapes.js +0 -0
- package/dist/input-scan/templates.d.ts +10 -10
- package/dist/input-scan/templates.js +30 -22
- package/dist/input-scan/tokens.d.ts +6 -4
- package/dist/input-scan/tokens.js +100 -38
- package/dist/input-scan/types.d.ts +22 -22
- package/dist/lib/async-utils.d.ts +3 -7
- package/dist/lib/async-utils.js +5 -9
- package/dist/lib/cache.js +1 -1
- package/dist/lib/chrome.d.ts +46 -6
- package/dist/lib/console-logger.js +2 -2
- package/dist/lib/db-result.d.ts +22 -6
- package/dist/lib/db-result.js +9 -13
- package/dist/lib/eyes.d.ts +4 -4
- package/dist/lib/eyes.js +1 -1
- package/dist/lib/fs-helpers.js +18 -6
- package/dist/lib/fs-result.d.ts +1 -0
- package/dist/lib/fs-result.js +5 -6
- package/dist/lib/hooks.d.ts +23 -7
- package/dist/lib/hooks.js +17 -3
- package/dist/lib/host-concurrency.js +3 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/logger.js +2 -1
- package/dist/lib/metrics.d.ts +1 -1
- package/dist/lib/null-proto.d.ts +6 -0
- package/dist/lib/null-proto.js +17 -0
- package/dist/lib/otel-spans.d.ts +1 -1
- package/dist/lib/otel-spans.js +9 -5
- package/dist/lib/otel.d.ts +4 -2
- package/dist/lib/otel.js +10 -2
- package/dist/lib/page-capture.d.ts +8 -8
- package/dist/lib/page-capture.js +9 -4
- package/dist/lib/parse-json.d.ts +5 -0
- package/dist/lib/parse-json.js +12 -0
- package/dist/lib/present.d.ts +12 -0
- package/dist/lib/present.js +39 -0
- package/dist/lib/rate-limit.d.ts +4 -4
- package/dist/lib/rate-limit.js +12 -13
- package/dist/lib/regulatory-corpus/fetch-fda-guidance.d.ts +4 -4
- package/dist/lib/regulatory-corpus/fetch-fda-guidance.js +4 -10
- package/dist/lib/regulatory-corpus/fetch-ich.d.ts +4 -4
- package/dist/lib/regulatory-corpus/fetch-ich.js +18 -14
- package/dist/lib/regulatory-corpus/normalize-whitespace.d.ts +6 -0
- package/dist/lib/regulatory-corpus/normalize-whitespace.js +41 -0
- package/dist/lib/regulatory-corpus.d.ts +10 -10
- package/dist/lib/regulatory-corpus.js +3 -1
- package/dist/lib/result.d.ts +10 -11
- package/dist/lib/result.js +15 -13
- package/dist/lib/storage.d.ts +2 -2
- package/dist/lib/test/async-iterable.d.ts +9 -0
- package/dist/lib/test/async-iterable.js +28 -0
- package/dist/lib/test/request-url.d.ts +5 -0
- package/dist/lib/test/request-url.js +7 -0
- package/dist/lib/test/result-assert.d.ts +12 -0
- package/dist/lib/test/result-assert.js +17 -0
- package/dist/lib/test/text-shapes.d.ts +24 -0
- package/dist/lib/test/text-shapes.js +63 -0
- package/dist/lib/text.d.ts +22 -0
- package/dist/lib/text.js +68 -0
- package/dist/lib/thrown.d.ts +18 -0
- package/dist/lib/thrown.js +30 -0
- package/dist/lib/unknown-array.d.ts +6 -0
- package/dist/lib/unknown-array.js +8 -0
- package/dist/lib/unknown-containers.d.ts +14 -0
- package/dist/lib/unknown-containers.js +17 -0
- package/dist/lib/unknown-text.d.ts +8 -0
- package/dist/lib/unknown-text.js +28 -0
- package/dist/lib/zod-issue-shape.d.ts +1 -1
- package/dist/lib/zod-issue-shape.js +31 -31
- package/dist/lib/zod-issues.d.ts +3 -3
- package/dist/lib/zod-issues.js +30 -17
- package/dist/literature/sources/arxiv.d.ts +6 -6
- package/dist/literature/sources/arxiv.js +92 -35
- package/dist/literature/sources/http.d.ts +2 -2
- package/dist/literature/sources/http.js +16 -15
- package/dist/literature/sources/pubmed.d.ts +16 -16
- package/dist/literature/sources/pubmed.js +96 -61
- package/dist/literature/sources/semantic-scholar.d.ts +8 -8
- package/dist/literature/sources/semantic-scholar.js +22 -13
- package/dist/loop/accounting.d.ts +63 -0
- package/dist/loop/accounting.js +141 -0
- package/dist/loop/call-policy.d.ts +73 -0
- package/dist/loop/call-policy.js +109 -0
- package/dist/loop/chat-stream.d.ts +62 -0
- package/dist/loop/chat-stream.js +237 -0
- package/dist/loop/compaction.d.ts +9 -9
- package/dist/loop/compaction.js +1 -1
- package/dist/loop/metrics.d.ts +12 -15
- package/dist/loop/metrics.js +14 -26
- package/dist/loop/run-loop.d.ts +233 -0
- package/dist/loop/run-loop.js +770 -0
- package/dist/loop/sub-agent.d.ts +61 -0
- package/dist/loop/sub-agent.js +161 -0
- package/dist/loop/tool-adapter.d.ts +98 -0
- package/dist/loop/tool-adapter.js +364 -0
- package/dist/loop/tool-detail.d.ts +1 -1
- package/dist/loop/tool-detail.js +6 -5
- package/dist/loop/tool-outcome.d.ts +1 -1
- package/dist/loop/tool-output.d.ts +4 -4
- package/dist/loop/tool-output.js +2 -2
- package/dist/loop/turn-credentials.d.ts +34 -0
- package/dist/loop/turn-credentials.js +73 -0
- package/dist/loop/types.d.ts +29 -38
- package/dist/loop/types.js +2 -7
- package/dist/memory/ai-sdk-message-storage.d.ts +5 -5
- package/dist/memory/ai-sdk-message-storage.js +13 -11
- package/dist/memory/card-builders.d.ts +14 -14
- package/dist/memory/card-builders.js +19 -15
- package/dist/memory/conversation-display-recorder.d.ts +22 -4
- package/dist/memory/conversation-display-recorder.js +43 -24
- package/dist/memory/conversation-display-replay.js +3 -2
- package/dist/memory/conversation-display-storage.d.ts +15 -7
- package/dist/memory/conversation-display-storage.js +141 -36
- package/dist/memory/conversation-view.d.ts +4 -4
- package/dist/memory/conversation-view.js +5 -4
- package/dist/memory/count-tokens.js +10 -8
- package/dist/memory/derive-thread-title.d.ts +0 -13
- package/dist/memory/derive-thread-title.js +2 -1
- package/dist/memory/message-backfill.d.ts +12 -5
- package/dist/memory/message-backfill.js +5 -3
- package/dist/memory/thread-history.d.ts +36 -21
- package/dist/memory/thread-history.js +78 -54
- package/dist/memory/thread-store.d.ts +26 -17
- package/dist/memory/thread-store.js +15 -9
- package/dist/memory/tool-call-integrity.d.ts +2 -2
- package/dist/memory/tool-call-integrity.js +4 -3
- package/dist/memory/working-memory.d.ts +16 -12
- package/dist/memory/working-memory.js +72 -61
- package/dist/prompts/briefing.d.ts +12 -12
- package/dist/prompts/briefing.js +1 -1
- package/dist/prompts/synthesis-agent.d.ts +1 -1
- package/dist/prompts/synthesis-agent.js +6 -14
- package/dist/provenance/collector.d.ts +6 -6
- package/dist/provenance/collector.js +15 -8
- package/dist/provenance/exec-frame.d.ts +2 -2
- package/dist/provenance/exec-frame.js +6 -1
- package/dist/provenance/seam.d.ts +1 -4
- package/dist/provenance/types.d.ts +6 -6
- package/dist/providers/ai-sdk.d.ts +113 -62
- package/dist/providers/ai-sdk.js +283 -518
- package/dist/providers/embedding.d.ts +2 -2
- package/dist/providers/embedding.js +1 -1
- package/dist/providers/errors.d.ts +22 -2
- package/dist/providers/errors.js +98 -50
- package/dist/providers/prompt-cache.d.ts +8 -8
- package/dist/providers/prompt-cache.js +13 -11
- package/dist/providers/reasoning.d.ts +2 -2
- package/dist/providers/reasoning.js +2 -2
- package/dist/providers/types.d.ts +55 -94
- package/dist/reference-data/catalog.d.ts +2 -15
- package/dist/reference-data/catalog.js +25 -8
- package/dist/reference-data/receipt.d.ts +2 -2
- package/dist/report-model/assert-rules.js +1 -1
- package/dist/report-model/authoring-grammar.d.ts +211 -233
- package/dist/report-model/block-walk.d.ts +10 -10
- package/dist/report-model/block-walk.js +2 -0
- package/dist/report-model/draft-finish.d.ts +8 -8
- package/dist/report-model/draft-finish.js +1 -1
- package/dist/report-model/draft-hash.js +8 -7
- package/dist/report-model/draft-operations.d.ts +22 -10
- package/dist/report-model/draft-operations.js +48 -30
- package/dist/report-model/draft-read.d.ts +19 -7
- package/dist/report-model/draft-read.js +16 -6
- package/dist/report-model/draft.d.ts +844 -2
- package/dist/report-model/draft.js +3 -1
- package/dist/report-model/fixture-resolver.js +39 -16
- package/dist/report-model/pin-snapshot.d.ts +2 -2
- package/dist/report-model/pin-snapshot.js +15 -15
- package/dist/report-model/production-resolver.d.ts +18 -18
- package/dist/report-model/production-resolver.js +50 -42
- package/dist/report-model/reference-resolver.d.ts +26 -10
- package/dist/report-model/reference-resolver.js +68 -5
- package/dist/report-model/reference-stamp.js +30 -38
- package/dist/report-model/structural-validation.js +12 -4
- package/dist/report-model/validate.d.ts +7 -7
- package/dist/report-model/validate.js +6 -6
- package/dist/report-render/assets.d.ts +2 -2
- package/dist/report-render/assets.js +27 -3
- package/dist/report-render/chart-export.d.ts +10 -2
- package/dist/report-render/chart-export.js +37 -11
- package/dist/report-render/chart-presets.d.ts +8 -8
- package/dist/report-render/chart-presets.js +3 -3
- package/dist/report-render/chart-renderers.d.ts +23 -16
- package/dist/report-render/chart-renderers.js +74 -53
- package/dist/report-render/chart-toolbox.d.ts +2 -2
- package/dist/report-render/chart-toolbox.js +7 -6
- package/dist/report-render/chart.d.ts +15 -16
- package/dist/report-render/chart.js +369 -252
- package/dist/report-render/design.d.ts +36 -297
- package/dist/report-render/design.js +0 -12
- package/dist/report-render/figures/common.d.ts +12 -12
- package/dist/report-render/figures/common.js +42 -31
- package/dist/report-render/figures/dendrogram.d.ts +3 -3
- package/dist/report-render/figures/dendrogram.js +10 -10
- package/dist/report-render/figures/dense.js +15 -8
- package/dist/report-render/figures/dotplot.js +46 -33
- package/dist/report-render/figures/embedding.js +52 -43
- package/dist/report-render/figures/equal-units.d.ts +10 -10
- package/dist/report-render/figures/equal-units.js +27 -27
- package/dist/report-render/figures/forest.js +9 -7
- package/dist/report-render/figures/gsea.js +21 -11
- package/dist/report-render/figures/heatmap.js +13 -9
- package/dist/report-render/figures/index.d.ts +10 -10
- package/dist/report-render/figures/index.js +4 -2
- package/dist/report-render/figures/km.js +10 -9
- package/dist/report-render/figures/label-room.d.ts +12 -12
- package/dist/report-render/figures/label-room.js +7 -2
- package/dist/report-render/figures/locuszoom.d.ts +2 -2
- package/dist/report-render/figures/locuszoom.js +59 -31
- package/dist/report-render/figures/lollipop.js +3 -2
- package/dist/report-render/figures/ma.js +8 -4
- package/dist/report-render/figures/manhattan.d.ts +1 -2
- package/dist/report-render/figures/manhattan.js +52 -34
- package/dist/report-render/figures/oncoprint.js +4 -5
- package/dist/report-render/figures/pca.js +25 -11
- package/dist/report-render/figures/qq.js +20 -9
- package/dist/report-render/figures/roc.js +1 -1
- package/dist/report-render/figures/sankey.d.ts +2 -2
- package/dist/report-render/figures/sankey.js +11 -10
- package/dist/report-render/figures/upset.d.ts +6 -6
- package/dist/report-render/figures/upset.js +7 -4
- package/dist/report-render/figures/volcano.js +12 -10
- package/dist/report-render/hybrid-svg.d.ts +4 -4
- package/dist/report-render/hybrid-svg.js +7 -5
- package/dist/report-render/number-format.d.ts +4 -4
- package/dist/report-render/number-format.js +62 -27
- package/dist/report-render/page.js +2 -1
- package/dist/report-render/provenance-data.d.ts +2 -2
- package/dist/report-render/references.d.ts +4 -4
- package/dist/report-render/render.d.ts +2 -2
- package/dist/report-render/render.js +10 -11
- package/dist/report-render/script-json.js +1 -1
- package/dist/report-render/table-data.d.ts +6 -6
- package/dist/report-render/test/options.d.ts +49 -0
- package/dist/report-render/test/options.js +143 -0
- package/dist/report-render/test/page-function.d.ts +19 -0
- package/dist/report-render/test/page-function.js +33 -0
- package/dist/report-render/types.d.ts +10 -10
- package/dist/report-render/value-bridge.d.ts +4 -4
- package/dist/report-render/value-bridge.js +27 -14
- package/dist/report-render/views/chart-view.d.ts +2 -2
- package/dist/report-render/views/chart-view.js +2 -2
- package/dist/report-render/views/lineage.d.ts +6 -6
- package/dist/report-render/views/lineage.js +2 -0
- package/dist/report-render/views/page-view.d.ts +2 -2
- package/dist/report-render/views/page-view.js +1 -0
- package/dist/report-render/views/prose.js +25 -8
- package/dist/report-render/views/references-view.js +12 -1
- package/dist/report-render/views/values.js +1 -1
- package/dist/runtime/assemble.d.ts +53 -26
- package/dist/runtime/assemble.js +103 -56
- package/dist/runtime/boot.d.ts +8 -7
- package/dist/runtime/boot.js +1 -1
- package/dist/runtime/connection-budget.d.ts +6 -6
- package/dist/runtime/connection-budget.js +1 -1
- package/dist/runtime/dbos.d.ts +29 -19
- package/dist/runtime/dbos.js +35 -20
- package/dist/runtime/result-serialization.js +18 -5
- package/dist/runtime/shutdown.d.ts +2 -2
- package/dist/sandbox/client.d.ts +7 -3
- package/dist/sandbox/cpu-files.d.ts +2 -2
- package/dist/sandbox/cpu-files.js +21 -4
- package/dist/sandbox/create-sandbox.d.ts +7 -8
- package/dist/sandbox/create-sandbox.js +6 -12
- package/dist/sandbox/docker-client.d.ts +48 -3
- package/dist/sandbox/docker-client.js +10 -6
- package/dist/sandbox/estimate-data-profile-resources.js +2 -7
- package/dist/sandbox/exec-outcome.d.ts +2 -2
- package/dist/sandbox/exec-outcome.js +1 -1
- package/dist/sandbox/exec.d.ts +10 -6
- package/dist/sandbox/exec.js +27 -12
- package/dist/sandbox/execution-id.js +14 -6
- package/dist/sandbox/farm.d.ts +2 -2
- package/dist/sandbox/farm.js +22 -27
- package/dist/sandbox/identity.d.ts +7 -0
- package/dist/sandbox/identity.js +14 -3
- package/dist/sandbox/image-packages.js +15 -27
- package/dist/sandbox/k8s-client.d.ts +35 -8
- package/dist/sandbox/k8s-client.js +6 -5
- package/dist/sandbox/labels.js +1 -0
- package/dist/sandbox/liveness.js +3 -1
- package/dist/sandbox/mount-plan.d.ts +10 -10
- package/dist/sandbox/mount-plan.js +13 -14
- package/dist/sandbox/notification-sweep.d.ts +4 -4
- package/dist/sandbox/notification-sweep.js +4 -7
- package/dist/sandbox/package-identity.d.ts +6 -13
- package/dist/sandbox/package-identity.js +46 -28
- package/dist/sandbox/reaper.d.ts +10 -10
- package/dist/sandbox/reaper.js +4 -6
- package/dist/sandbox/sandbox-error.d.ts +2 -9
- package/dist/sandbox/sandbox-error.js +21 -8
- package/dist/sandbox/sandbox-step-translate.d.ts +8 -5
- package/dist/sandbox/sandbox-step-translate.js +22 -8
- package/dist/sandbox/step-sandbox.d.ts +47 -0
- package/dist/sandbox/step-sandbox.js +53 -0
- package/dist/sandbox/types.d.ts +18 -19
- package/dist/sandbox/types.js +1 -1
- package/dist/schemas/artifact-manifest.d.ts +4 -4
- package/dist/schemas/data-profile-schemas.d.ts +343 -298
- package/dist/schemas/file-metadata.js +2 -4
- package/dist/schemas/plan-schemas.d.ts +31 -31
- package/dist/schemas/run-synthesis.d.ts +95 -26
- package/dist/schemas/run-synthesis.js +3 -1
- package/dist/schemas/validate-plan.d.ts +4 -4
- package/dist/schemas/validate-plan.js +17 -5
- package/dist/schemas/workflow-state.d.ts +19 -19
- package/dist/schemas/workflow-state.js +2 -2
- package/dist/state/active-turns.d.ts +36 -0
- package/dist/state/active-turns.js +67 -0
- package/dist/state/analyses-metrics.d.ts +8 -8
- package/dist/state/analyses-metrics.js +4 -4
- package/dist/state/analyses.d.ts +0 -14
- package/dist/state/analyses.js +0 -32
- package/dist/state/artifacts.d.ts +32 -19
- package/dist/state/artifacts.js +28 -5
- package/dist/state/data-profile.d.ts +2 -2
- package/dist/state/db.d.ts +12 -2
- package/dist/state/db.js +5 -0
- package/dist/state/edit-intents.d.ts +4 -0
- package/dist/state/edit-intents.js +71 -0
- package/dist/state/index.d.ts +4 -4
- package/dist/state/index.js +2 -2
- package/dist/state/init.d.ts +2 -1
- package/dist/state/init.js +5 -2
- package/dist/state/migrations/20260927120000_baseline.js +3 -1
- package/dist/state/migrations/20261026120000_add_the_edit_intents.d.ts +7 -0
- package/dist/state/migrations/20261026120000_add_the_edit_intents.js +21 -0
- package/dist/state/migrations/20261027120000_record_the_applied_memory_edits.d.ts +7 -0
- package/dist/state/migrations/20261027120000_record_the_applied_memory_edits.js +16 -0
- package/dist/state/migrations/20261027120100_store_the_authoring_results.d.ts +8 -0
- package/dist/state/migrations/20261027120100_store_the_authoring_results.js +20 -0
- package/dist/state/migrations/20261027120200_key_the_groups_of_a_turn.d.ts +7 -0
- package/dist/state/migrations/20261027120200_key_the_groups_of_a_turn.js +12 -0
- package/dist/state/migrations/20261027120300_mark_the_active_turn_of_a_thread.d.ts +7 -0
- package/dist/state/migrations/20261027120300_mark_the_active_turn_of_a_thread.js +11 -0
- package/dist/state/migrations/20261028120000_record_the_paused_work.d.ts +7 -0
- package/dist/state/migrations/20261028120000_record_the_paused_work.js +25 -0
- package/dist/state/migrations/20261028120100_end_the_suspended_runs.d.ts +8 -0
- package/dist/state/migrations/20261028120100_end_the_suspended_runs.js +13 -0
- package/dist/state/migrations/20261029120000_reference_the_run_mandate.d.ts +7 -0
- package/dist/state/migrations/20261029120000_reference_the_run_mandate.js +23 -0
- package/dist/state/migrations/20261029120100_record_the_run_session_of_a_pause.d.ts +7 -0
- package/dist/state/migrations/20261029120100_record_the_run_session_of_a_pause.js +11 -0
- package/dist/state/migrations/index.js +18 -0
- package/dist/state/paused-work.d.ts +52 -0
- package/dist/state/paused-work.js +105 -0
- package/dist/state/plans.d.ts +27 -8
- package/dist/state/plans.js +14 -11
- package/dist/state/purge-analysis.d.ts +6 -6
- package/dist/state/purge-analysis.js +10 -2
- package/dist/state/report-session-state.d.ts +43 -18
- package/dist/state/report-session-state.js +43 -4
- package/dist/state/report-versions.d.ts +16 -11
- package/dist/state/report-versions.js +5 -3
- package/dist/state/runs.d.ts +30 -19
- package/dist/state/runs.js +43 -51
- package/dist/state/schema.d.ts +18 -21
- package/dist/state/schema.js +4 -5
- package/dist/state/snapshot-parse.d.ts +2 -2
- package/dist/state/snapshot-parse.js +14 -8
- package/dist/state/step-executions.d.ts +20 -8
- package/dist/state/step-executions.js +6 -4
- package/dist/state/tool-outputs.d.ts +2 -2
- package/dist/state/tool-outputs.js +2 -1
- package/dist/state/vector-store.d.ts +16 -16
- package/dist/state/vector-store.js +11 -7
- package/dist/tasks/data-profile-absorb.d.ts +3 -3
- package/dist/tasks/data-profile-absorb.js +21 -16
- package/dist/tasks/data-profile-activity.d.ts +5 -5
- package/dist/tasks/data-profile-activity.js +5 -5
- package/dist/tasks/data-profile-index.d.ts +4 -4
- package/dist/tasks/data-profile-index.js +32 -17
- package/dist/tasks/data-profile-resolve.d.ts +8 -8
- package/dist/tasks/data-profile-resolve.js +88 -62
- package/dist/tasks/data-profile.d.ts +40 -31
- package/dist/tasks/data-profile.js +138 -95
- package/dist/tasks/extract-values.d.ts +26 -79
- package/dist/tasks/extract-values.js +48 -108
- package/dist/tasks/refresh-regulatory-corpus.d.ts +4 -20
- package/dist/tasks/refresh-regulatory-corpus.js +12 -8
- package/dist/tasks/regulatory-corpus-boot-refresh.d.ts +2 -2
- package/dist/tasks/regulatory-corpus-boot-refresh.js +12 -10
- package/dist/testing.d.ts +60 -0
- package/dist/testing.js +96 -0
- package/dist/tools/ad-hoc-router.d.ts +9 -9
- package/dist/tools/ad-hoc-router.js +65 -52
- package/dist/tools/analysis-invocation.d.ts +7 -0
- package/dist/tools/analysis-invocation.js +29 -5
- package/dist/tools/approval/contract.d.ts +8 -52
- package/dist/tools/approval/contract.js +7 -36
- package/dist/tools/approval/gateway.d.ts +27 -28
- package/dist/tools/approval/gateway.js +33 -130
- package/dist/tools/approval/queries.d.ts +6 -11
- package/dist/tools/approval/queries.js +43 -29
- package/dist/tools/approval/uuidv7.js +2 -2
- package/dist/tools/bio/chembl.d.ts +3 -3
- package/dist/tools/bio/chembl.js +10 -0
- package/dist/tools/bio/comptox.d.ts +25 -8
- package/dist/tools/bio/comptox.js +4 -2
- package/dist/tools/bio/drug-gene-interactions.d.ts +27 -17
- package/dist/tools/bio/drug-gene-interactions.js +11 -8
- package/dist/tools/bio/gene-disease-evidence.d.ts +61 -15
- package/dist/tools/bio/gene-disease-evidence.js +10 -6
- package/dist/tools/bio/gene-preclinical-profile.d.ts +11 -11
- package/dist/tools/bio/keys.d.ts +2 -2
- package/dist/tools/bio/keys.js +3 -3
- package/dist/tools/bio/lookup-annotation.d.ts +5 -5
- package/dist/tools/bio/lookup-annotation.js +3 -0
- package/dist/tools/bio/opentargets.d.ts +1 -1
- package/dist/tools/bio/opentargets.js +6 -0
- package/dist/tools/bio/pubchem.d.ts +2 -2
- package/dist/tools/bio/pubchem.js +6 -0
- package/dist/tools/bio/pubmed.d.ts +26 -16
- package/dist/tools/bio/pubmed.js +9 -3
- package/dist/tools/bio/search-clinical-trials.d.ts +4 -4
- package/dist/tools/bio/search-clinical-trials.js +5 -1
- package/dist/tools/bio/search-faers.d.ts +2 -2
- package/dist/tools/bio/search-faers.js +1 -1
- package/dist/tools/bio/search-gene.d.ts +2 -2
- package/dist/tools/bio/search-gene.js +1 -0
- package/dist/tools/bio/search-geo-datasets.d.ts +4 -4
- package/dist/tools/bio/search-geo-datasets.js +5 -5
- package/dist/tools/bio/search-interactions.d.ts +1 -1
- package/dist/tools/bio/search-patents.d.ts +28 -22
- package/dist/tools/bio/search-patents.js +20 -17
- package/dist/tools/bio/search-protein.d.ts +2 -2
- package/dist/tools/bio/search-protein.js +1 -1
- package/dist/tools/bio/search-regulatory-approvals.d.ts +64 -18
- package/dist/tools/bio/search-regulatory-approvals.js +21 -16
- package/dist/tools/bio/target-safety.d.ts +8 -8
- package/dist/tools/bio/target-safety.js +11 -6
- package/dist/tools/capability-data.d.ts +9 -5
- package/dist/tools/capability-data.js +2 -1
- package/dist/tools/define-tool.d.ts +55 -46
- package/dist/tools/define-tool.js +39 -27
- package/dist/tools/display/normalize-echart-spec.d.ts +2 -2
- package/dist/tools/display/normalize-echart-spec.js +51 -27
- package/dist/tools/display/show-user.d.ts +2 -2
- package/dist/tools/display/show-user.js +1 -1
- package/dist/tools/execute-analysis.d.ts +19 -10
- package/dist/tools/execute-analysis.js +83 -62
- package/dist/tools/knowledge/check.d.ts +166 -44
- package/dist/tools/knowledge/check.js +5 -3
- package/dist/tools/knowledge/client.d.ts +31 -62
- package/dist/tools/knowledge/client.js +44 -27
- package/dist/tools/knowledge/environment.d.ts +6 -6
- package/dist/tools/knowledge/environment.js +18 -7
- package/dist/tools/knowledge/index.d.ts +2 -2
- package/dist/tools/knowledge/index.js +9 -9
- package/dist/tools/knowledge/local-slots.d.ts +4 -4
- package/dist/tools/knowledge/local-slots.js +11 -4
- package/dist/tools/knowledge/pin.d.ts +2 -2
- package/dist/tools/knowledge/recommend.d.ts +20 -45
- package/dist/tools/knowledge/recommend.js +27 -19
- package/dist/tools/knowledge/situation.d.ts +40 -40
- package/dist/tools/knowledge/situation.js +2 -9
- package/dist/tools/knowledge/skeleton.d.ts +4 -4
- package/dist/tools/knowledge/skeleton.js +10 -11
- package/dist/tools/knowledge/template.d.ts +20 -18
- package/dist/tools/knowledge/template.js +38 -32
- package/dist/tools/lib/alphafold-client.js +2 -1
- package/dist/tools/lib/amass-client.d.ts +28 -28
- package/dist/tools/lib/amass-client.js +20 -10
- package/dist/tools/lib/api-utils.d.ts +13 -3
- package/dist/tools/lib/api-utils.js +17 -3
- package/dist/tools/lib/bgee-client.d.ts +6 -6
- package/dist/tools/lib/bgee-client.js +16 -10
- package/dist/tools/lib/cbioportal-client.d.ts +4 -4
- package/dist/tools/lib/cbioportal-client.js +9 -8
- package/dist/tools/lib/chembl-client.d.ts +14 -14
- package/dist/tools/lib/chembl-client.js +11 -4
- package/dist/tools/lib/clinical-benchmarks-client.d.ts +4 -4
- package/dist/tools/lib/clinical-benchmarks-client.js +4 -7
- package/dist/tools/lib/clinical-trials-client.d.ts +18 -18
- package/dist/tools/lib/clinical-trials-client.js +10 -10
- package/dist/tools/lib/clinvar-client.d.ts +2 -2
- package/dist/tools/lib/clinvar-client.js +6 -6
- package/dist/tools/lib/ctx-ops.d.ts +23 -23
- package/dist/tools/lib/ctx-ops.js +13 -10
- package/dist/tools/lib/dgidb-client.d.ts +6 -6
- package/dist/tools/lib/dgidb-client.js +10 -12
- package/dist/tools/lib/disgenet-client.d.ts +4 -4
- package/dist/tools/lib/ema-client.d.ts +2 -2
- package/dist/tools/lib/ensembl-client.d.ts +4 -4
- package/dist/tools/lib/ensembl-client.js +5 -4
- package/dist/tools/lib/gwas-catalog-client.d.ts +4 -4
- package/dist/tools/lib/gwas-catalog-client.js +17 -17
- package/dist/tools/lib/html-text.d.ts +6 -0
- package/dist/tools/lib/html-text.js +9 -0
- package/dist/tools/lib/identifier-resolver.d.ts +4 -4
- package/dist/tools/lib/identifier-resolver.js +7 -3
- package/dist/tools/lib/impc-client.d.ts +8 -8
- package/dist/tools/lib/impc-client.js +46 -35
- package/dist/tools/lib/iuphar-client.d.ts +2 -2
- package/dist/tools/lib/iuphar-client.js +7 -16
- package/dist/tools/lib/monarch-client.d.ts +4 -4
- package/dist/tools/lib/openfda-client.d.ts +22 -22
- package/dist/tools/lib/openfda-client.js +23 -22
- package/dist/tools/lib/opentargets-client.d.ts +12 -12
- package/dist/tools/lib/pathway-client.d.ts +4 -4
- package/dist/tools/lib/pathway-client.js +15 -19
- package/dist/tools/lib/pharmgkb-client.d.ts +2 -2
- package/dist/tools/lib/pharmgkb-client.js +1 -1
- package/dist/tools/lib/protein-family-modality.d.ts +2 -2
- package/dist/tools/lib/protein-family-modality.js +0 -2
- package/dist/tools/lib/protein-family-normalize.js +7 -0
- package/dist/tools/lib/pubchem-client.d.ts +2 -2
- package/dist/tools/lib/pubchem-client.js +1 -0
- package/dist/tools/lib/pubchem-ops.d.ts +4 -4
- package/dist/tools/lib/pubchem-ops.js +8 -0
- package/dist/tools/lib/pubmed-client.d.ts +9 -9
- package/dist/tools/lib/pubmed-client.js +1 -1
- package/dist/tools/lib/string-client.d.ts +6 -6
- package/dist/tools/lib/uniprot-client.d.ts +8 -8
- package/dist/tools/lib/uniprot-client.js +5 -1
- package/dist/tools/memory/update-working-memory.d.ts +16 -13
- package/dist/tools/memory/update-working-memory.js +21 -3
- package/dist/tools/read-tool-output.js +8 -2
- package/dist/tools/registry.d.ts +2 -2
- package/dist/tools/report-authoring/authoring-tools.d.ts +54 -23
- package/dist/tools/report-authoring/authoring-tools.js +128 -62
- package/dist/tools/report-session/derive-table.d.ts +19 -59
- package/dist/tools/report-session/derive-table.js +120 -122
- package/dist/tools/report-session/examine-page.d.ts +6 -6
- package/dist/tools/report-session/examine-page.js +14 -12
- package/dist/tools/report-session/list-artifacts.d.ts +6 -6
- package/dist/tools/report-session/list-artifacts.js +5 -5
- package/dist/tools/report-session/page-faults.d.ts +6 -6
- package/dist/tools/report-session/page-faults.js +3 -1
- package/dist/tools/report-session/preview-report.d.ts +4 -3
- package/dist/tools/report-session/preview-report.js +26 -7
- package/dist/tools/report-session/record-version.d.ts +9 -4
- package/dist/tools/report-session/record-version.js +16 -9
- package/dist/tools/report-session/session-page-publisher.d.ts +6 -6
- package/dist/tools/research/generate-analogy-report.d.ts +14 -7
- package/dist/tools/research/generate-analogy-report.js +80 -76
- package/dist/tools/research/generate-plan.d.ts +16 -16
- package/dist/tools/research/generate-plan.js +410 -374
- package/dist/tools/research/guarded-address.js +3 -2
- package/dist/tools/research/inspect-data-profile.d.ts +27 -20
- package/dist/tools/research/inspect-data-profile.js +26 -25
- package/dist/tools/research/inspect-run.d.ts +54 -27
- package/dist/tools/research/inspect-run.js +50 -40
- package/dist/tools/research/literature-reviewer.d.ts +8 -7
- package/dist/tools/research/literature-reviewer.js +29 -28
- package/dist/tools/research/search-arxiv.d.ts +1 -1
- package/dist/tools/research/search-arxiv.js +1 -1
- package/dist/tools/research/search-github-repos.d.ts +10 -7
- package/dist/tools/research/search-github-repos.js +25 -22
- package/dist/tools/research/search-semantic-scholar.js +1 -1
- package/dist/tools/research/searxng-engine.d.ts +2 -2
- package/dist/tools/research/searxng-engine.js +6 -4
- package/dist/tools/research/web-fetch.d.ts +24 -21
- package/dist/tools/research/web-fetch.js +65 -74
- package/dist/tools/research/web-search.d.ts +26 -17
- package/dist/tools/research/web-search.js +26 -21
- package/dist/tools/sandbox/link-packages.d.ts +11 -7
- package/dist/tools/sandbox/link-packages.js +11 -8
- package/dist/tools/sandbox/list-available-packages.d.ts +17 -8
- package/dist/tools/sandbox/list-available-packages.js +31 -25
- package/dist/tools/sandbox/list-available-refs.d.ts +17 -14
- package/dist/tools/sandbox/list-available-refs.js +61 -36
- package/dist/tools/sandbox/report-blocker.d.ts +30 -37
- package/dist/tools/sandbox/report-blocker.js +23 -73
- package/dist/tools/sandbox/skills.d.ts +16 -12
- package/dist/tools/sandbox/skills.js +16 -12
- package/dist/tools/sandbox/submit-file-metadata.d.ts +12 -9
- package/dist/tools/sandbox/submit-file-metadata.js +18 -21
- package/dist/tools/start-report-session.d.ts +13 -5
- package/dist/tools/start-report-session.js +35 -8
- package/dist/tools/terminal-text.d.ts +5 -2
- package/dist/tools/terminal-text.js +35 -3
- package/dist/tools/workspace/decision-record.d.ts +4 -4
- package/dist/tools/workspace/decision-record.js +23 -13
- package/dist/tools/workspace/edit-file.d.ts +59 -20
- package/dist/tools/workspace/edit-file.js +81 -16
- package/dist/tools/workspace/execute-command.d.ts +15 -13
- package/dist/tools/workspace/execute-command.js +11 -9
- package/dist/tools/workspace/file-stat.d.ts +6 -3
- package/dist/tools/workspace/grep.d.ts +10 -7
- package/dist/tools/workspace/grep.js +9 -3
- package/dist/tools/workspace/list-files.d.ts +6 -3
- package/dist/tools/workspace/mutator.d.ts +28 -15
- package/dist/tools/workspace/mutator.js +107 -53
- package/dist/tools/workspace/read-file.d.ts +8 -5
- package/dist/tools/workspace/result-bounds.d.ts +5 -5
- package/dist/tools/workspace/result-bounds.js +4 -2
- package/dist/tools/workspace/run-exec.d.ts +2 -2
- package/dist/tools/workspace/run-exec.js +3 -3
- package/dist/tools/workspace/scan-inputs.d.ts +8 -5
- package/dist/tools/workspace/scan-inputs.js +17 -5
- package/dist/tools/workspace/show-file.d.ts +1 -1
- package/dist/tools/workspace/show-file.js +2 -1
- package/dist/tools/workspace/show-plan.d.ts +8 -5
- package/dist/tools/workspace/show-plan.js +9 -8
- package/dist/tools/workspace/workspace-search.d.ts +41 -13
- package/dist/tools/workspace/workspace-search.js +27 -14
- package/dist/tools/workspace/write-file.d.ts +9 -7
- package/dist/workflows/execute-analysis-scheduler.d.ts +9 -9
- package/dist/workflows/execute-analysis-scheduler.js +6 -3
- package/dist/workflows/execute-analysis.d.ts +46 -62
- package/dist/workflows/execute-analysis.js +137 -219
- package/dist/workflows/pause.d.ts +71 -0
- package/dist/workflows/pause.js +173 -0
- package/dist/workflows/sandbox-step.d.ts +38 -61
- package/dist/workflows/sandbox-step.js +99 -106
- package/dist/workflows/test/sql-writes.d.ts +21 -0
- package/dist/workflows/test/sql-writes.js +36 -0
- package/dist/workspace/filesystem.d.ts +6 -6
- package/dist/workspace/filesystem.js +10 -8
- package/dist/workspace/paths.d.ts +1 -1
- package/dist/workspace/paths.js +15 -4
- package/dist/workspace/search-config.d.ts +2 -2
- package/dist/workspace/search-config.js +1 -1
- package/package.json +21 -22
- package/dist/loop/call-guard.d.ts +0 -50
- package/dist/loop/call-guard.js +0 -90
- package/dist/loop/continue-agent.d.ts +0 -40
- package/dist/loop/continue-agent.js +0 -38
- package/dist/loop/genai-spans.d.ts +0 -47
- package/dist/loop/genai-spans.js +0 -134
- package/dist/loop/run-agent.d.ts +0 -245
- package/dist/loop/run-agent.js +0 -1124
- package/dist/loop/run-step.d.ts +0 -29
- package/dist/loop/run-step.js +0 -34
- package/dist/loop/run-to-terminal.d.ts +0 -66
- package/dist/loop/run-to-terminal.js +0 -93
- package/dist/loop/tool-mask.d.ts +0 -23
- package/dist/loop/tool-mask.js +0 -46
- package/dist/providers/streaming-chat.d.ts +0 -32
- package/dist/providers/streaming-chat.js +0 -91
- package/dist/tasks/derive-table-exec.d.ts +0 -54
- package/dist/tasks/derive-table-exec.js +0 -86
- package/dist/workflows/suspension.d.ts +0 -32
- package/dist/workflows/suspension.js +0 -38
|
@@ -15,8 +15,13 @@ import { z } from "zod";
|
|
|
15
15
|
* thus it carries the value assert.
|
|
16
16
|
*/
|
|
17
17
|
export declare const ArtifactValueReferenceSchema: z.ZodObject<{
|
|
18
|
+
run: z.ZodOptional<z.ZodString>;
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
hash: z.ZodString;
|
|
21
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
18
22
|
unit: z.ZodOptional<z.ZodString>;
|
|
19
23
|
format: z.ZodOptional<z.ZodString>;
|
|
24
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
20
25
|
locator: z.ZodObject<{
|
|
21
26
|
column: z.ZodString;
|
|
22
27
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -30,11 +35,6 @@ export declare const ArtifactValueReferenceSchema: z.ZodObject<{
|
|
|
30
35
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
31
36
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
32
37
|
}, z.core.$strict>>;
|
|
33
|
-
run: z.ZodOptional<z.ZodString>;
|
|
34
|
-
path: z.ZodString;
|
|
35
|
-
hash: z.ZodString;
|
|
36
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
37
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
38
38
|
}, z.core.$strict>;
|
|
39
39
|
/**
|
|
40
40
|
* What one column of a table holds, as a closed set of five.
|
|
@@ -43,11 +43,11 @@ export declare const ArtifactValueReferenceSchema: z.ZodObject<{
|
|
|
43
43
|
* how each meaning reads on the page, thus no block carries a format field.
|
|
44
44
|
*/
|
|
45
45
|
export declare const ColumnMeaningSchema: z.ZodEnum<{
|
|
46
|
+
category: "category";
|
|
46
47
|
count: "count";
|
|
48
|
+
effect: "effect";
|
|
47
49
|
identifier: "identifier";
|
|
48
|
-
category: "category";
|
|
49
50
|
"p-value": "p-value";
|
|
50
|
-
effect: "effect";
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
53
|
* The row bound of a whole-table binding: the top rows by one column.
|
|
@@ -73,8 +73,13 @@ export declare const RowBoundSchema: z.ZodObject<{
|
|
|
73
73
|
* binding, thus one declaration serves the table block and the chart block alike.
|
|
74
74
|
*/
|
|
75
75
|
export declare const ArtifactTableReferenceSchema: z.ZodObject<{
|
|
76
|
+
run: z.ZodOptional<z.ZodString>;
|
|
77
|
+
path: z.ZodString;
|
|
78
|
+
hash: z.ZodString;
|
|
79
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
76
80
|
unit: z.ZodOptional<z.ZodString>;
|
|
77
81
|
format: z.ZodOptional<z.ZodString>;
|
|
82
|
+
kind: z.ZodLiteral<"artifact-table">;
|
|
78
83
|
rowBound: z.ZodOptional<z.ZodObject<{
|
|
79
84
|
column: z.ZodString;
|
|
80
85
|
count: z.ZodNumber;
|
|
@@ -85,18 +90,13 @@ export declare const ArtifactTableReferenceSchema: z.ZodObject<{
|
|
|
85
90
|
}, z.core.$strict>>;
|
|
86
91
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
92
|
columnMeanings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
93
|
+
category: "category";
|
|
88
94
|
count: "count";
|
|
95
|
+
effect: "effect";
|
|
89
96
|
identifier: "identifier";
|
|
90
|
-
category: "category";
|
|
91
97
|
"p-value": "p-value";
|
|
92
|
-
effect: "effect";
|
|
93
98
|
}>>>;
|
|
94
99
|
columnLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
|
-
run: z.ZodOptional<z.ZodString>;
|
|
96
|
-
path: z.ZodString;
|
|
97
|
-
hash: z.ZodString;
|
|
98
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
99
|
-
kind: z.ZodLiteral<"artifact-table">;
|
|
100
100
|
}, z.core.$strict>;
|
|
101
101
|
/**
|
|
102
102
|
* A reference to a whole artifact file, for example an image. It carries no locator and no columns,
|
|
@@ -104,12 +104,12 @@ export declare const ArtifactTableReferenceSchema: z.ZodObject<{
|
|
|
104
104
|
* same reason as a table reference.
|
|
105
105
|
*/
|
|
106
106
|
export declare const ArtifactFileReferenceSchema: z.ZodObject<{
|
|
107
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
108
|
-
format: z.ZodOptional<z.ZodString>;
|
|
109
107
|
run: z.ZodOptional<z.ZodString>;
|
|
110
108
|
path: z.ZodString;
|
|
111
109
|
hash: z.ZodString;
|
|
112
110
|
snapshot: z.ZodOptional<z.ZodString>;
|
|
111
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
112
|
+
format: z.ZodOptional<z.ZodString>;
|
|
113
113
|
kind: z.ZodLiteral<"artifact-file">;
|
|
114
114
|
}, z.core.$strict>;
|
|
115
115
|
/**
|
|
@@ -121,9 +121,9 @@ export declare const CitationReferenceSchema: z.ZodObject<{
|
|
|
121
121
|
format: z.ZodOptional<z.ZodString>;
|
|
122
122
|
kind: z.ZodLiteral<"citation">;
|
|
123
123
|
idKind: z.ZodEnum<{
|
|
124
|
+
arxiv: "arxiv";
|
|
124
125
|
doi: "doi";
|
|
125
126
|
pmid: "pmid";
|
|
126
|
-
arxiv: "arxiv";
|
|
127
127
|
}>;
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
raw: z.ZodString;
|
|
@@ -140,8 +140,13 @@ export declare const CitationReferenceSchema: z.ZodObject<{
|
|
|
140
140
|
* derivation is out of the set too, thus a derivation over a derivation stays unrepresentable.
|
|
141
141
|
*/
|
|
142
142
|
export declare const DerivationInputReferenceSchema: z.ZodObject<{
|
|
143
|
+
run: z.ZodOptional<z.ZodString>;
|
|
144
|
+
path: z.ZodString;
|
|
145
|
+
hash: z.ZodString;
|
|
146
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
143
147
|
unit: z.ZodOptional<z.ZodString>;
|
|
144
148
|
format: z.ZodOptional<z.ZodString>;
|
|
149
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
145
150
|
locator: z.ZodObject<{
|
|
146
151
|
column: z.ZodString;
|
|
147
152
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -155,11 +160,6 @@ export declare const DerivationInputReferenceSchema: z.ZodObject<{
|
|
|
155
160
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
156
161
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
157
162
|
}, z.core.$strict>>;
|
|
158
|
-
run: z.ZodOptional<z.ZodString>;
|
|
159
|
-
path: z.ZodString;
|
|
160
|
-
hash: z.ZodString;
|
|
161
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
162
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
163
163
|
}, z.core.$strict>;
|
|
164
164
|
/**
|
|
165
165
|
* A reference to a value computed from other references. Each of the three operations takes two inputs,
|
|
@@ -171,13 +171,18 @@ export declare const DerivationReferenceSchema: z.ZodObject<{
|
|
|
171
171
|
format: z.ZodOptional<z.ZodString>;
|
|
172
172
|
kind: z.ZodLiteral<"derivation">;
|
|
173
173
|
op: z.ZodEnum<{
|
|
174
|
-
ratio: "ratio";
|
|
175
174
|
delta: "delta";
|
|
176
175
|
pctChange: "pctChange";
|
|
176
|
+
ratio: "ratio";
|
|
177
177
|
}>;
|
|
178
178
|
inputs: z.ZodArray<z.ZodObject<{
|
|
179
|
+
run: z.ZodOptional<z.ZodString>;
|
|
180
|
+
path: z.ZodString;
|
|
181
|
+
hash: z.ZodString;
|
|
182
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
179
183
|
unit: z.ZodOptional<z.ZodString>;
|
|
180
184
|
format: z.ZodOptional<z.ZodString>;
|
|
185
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
181
186
|
locator: z.ZodObject<{
|
|
182
187
|
column: z.ZodString;
|
|
183
188
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -191,11 +196,6 @@ export declare const DerivationReferenceSchema: z.ZodObject<{
|
|
|
191
196
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
192
197
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
193
198
|
}, z.core.$strict>>;
|
|
194
|
-
run: z.ZodOptional<z.ZodString>;
|
|
195
|
-
path: z.ZodString;
|
|
196
|
-
hash: z.ZodString;
|
|
197
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
198
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
199
199
|
}, z.core.$strict>>;
|
|
200
200
|
assert: z.ZodOptional<z.ZodObject<{
|
|
201
201
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
@@ -204,8 +204,13 @@ export declare const DerivationReferenceSchema: z.ZodObject<{
|
|
|
204
204
|
}, z.core.$strict>;
|
|
205
205
|
/** The full reference union. A block binds to one of these. */
|
|
206
206
|
export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
207
|
+
run: z.ZodOptional<z.ZodString>;
|
|
208
|
+
path: z.ZodString;
|
|
209
|
+
hash: z.ZodString;
|
|
210
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
207
211
|
unit: z.ZodOptional<z.ZodString>;
|
|
208
212
|
format: z.ZodOptional<z.ZodString>;
|
|
213
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
209
214
|
locator: z.ZodObject<{
|
|
210
215
|
column: z.ZodString;
|
|
211
216
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -219,14 +224,14 @@ export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
219
224
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
220
225
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
221
226
|
}, z.core.$strict>>;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
222
228
|
run: z.ZodOptional<z.ZodString>;
|
|
223
229
|
path: z.ZodString;
|
|
224
230
|
hash: z.ZodString;
|
|
225
231
|
snapshot: z.ZodOptional<z.ZodString>;
|
|
226
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
227
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
228
232
|
unit: z.ZodOptional<z.ZodString>;
|
|
229
233
|
format: z.ZodOptional<z.ZodString>;
|
|
234
|
+
kind: z.ZodLiteral<"artifact-table">;
|
|
230
235
|
rowBound: z.ZodOptional<z.ZodObject<{
|
|
231
236
|
column: z.ZodString;
|
|
232
237
|
count: z.ZodNumber;
|
|
@@ -237,38 +242,38 @@ export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
237
242
|
}, z.core.$strict>>;
|
|
238
243
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
239
244
|
columnMeanings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
245
|
+
category: "category";
|
|
240
246
|
count: "count";
|
|
247
|
+
effect: "effect";
|
|
241
248
|
identifier: "identifier";
|
|
242
|
-
category: "category";
|
|
243
249
|
"p-value": "p-value";
|
|
244
|
-
effect: "effect";
|
|
245
250
|
}>>>;
|
|
246
251
|
columnLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
253
|
run: z.ZodOptional<z.ZodString>;
|
|
248
254
|
path: z.ZodString;
|
|
249
255
|
hash: z.ZodString;
|
|
250
256
|
snapshot: z.ZodOptional<z.ZodString>;
|
|
251
|
-
kind: z.ZodLiteral<"artifact-table">;
|
|
252
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
253
257
|
unit: z.ZodOptional<z.ZodString>;
|
|
254
258
|
format: z.ZodOptional<z.ZodString>;
|
|
255
|
-
run: z.ZodOptional<z.ZodString>;
|
|
256
|
-
path: z.ZodString;
|
|
257
|
-
hash: z.ZodString;
|
|
258
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
259
259
|
kind: z.ZodLiteral<"artifact-file">;
|
|
260
260
|
}, z.core.$strict>, z.ZodObject<{
|
|
261
261
|
unit: z.ZodOptional<z.ZodString>;
|
|
262
262
|
format: z.ZodOptional<z.ZodString>;
|
|
263
263
|
kind: z.ZodLiteral<"derivation">;
|
|
264
264
|
op: z.ZodEnum<{
|
|
265
|
-
ratio: "ratio";
|
|
266
265
|
delta: "delta";
|
|
267
266
|
pctChange: "pctChange";
|
|
267
|
+
ratio: "ratio";
|
|
268
268
|
}>;
|
|
269
269
|
inputs: z.ZodArray<z.ZodObject<{
|
|
270
|
+
run: z.ZodOptional<z.ZodString>;
|
|
271
|
+
path: z.ZodString;
|
|
272
|
+
hash: z.ZodString;
|
|
273
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
270
274
|
unit: z.ZodOptional<z.ZodString>;
|
|
271
275
|
format: z.ZodOptional<z.ZodString>;
|
|
276
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
272
277
|
locator: z.ZodObject<{
|
|
273
278
|
column: z.ZodString;
|
|
274
279
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -282,11 +287,6 @@ export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
282
287
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
283
288
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
284
289
|
}, z.core.$strict>>;
|
|
285
|
-
run: z.ZodOptional<z.ZodString>;
|
|
286
|
-
path: z.ZodString;
|
|
287
|
-
hash: z.ZodString;
|
|
288
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
289
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
290
290
|
}, z.core.$strict>>;
|
|
291
291
|
assert: z.ZodOptional<z.ZodObject<{
|
|
292
292
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
@@ -297,9 +297,9 @@ export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
297
297
|
format: z.ZodOptional<z.ZodString>;
|
|
298
298
|
kind: z.ZodLiteral<"citation">;
|
|
299
299
|
idKind: z.ZodEnum<{
|
|
300
|
+
arxiv: "arxiv";
|
|
300
301
|
doi: "doi";
|
|
301
302
|
pmid: "pmid";
|
|
302
|
-
arxiv: "arxiv";
|
|
303
303
|
}>;
|
|
304
304
|
id: z.ZodString;
|
|
305
305
|
raw: z.ZodString;
|
|
@@ -312,8 +312,13 @@ export declare const ReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
312
312
|
* numeric literal can sit in the slot: the type admits a reference only.
|
|
313
313
|
*/
|
|
314
314
|
export declare const ScalarReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
run: z.ZodOptional<z.ZodString>;
|
|
316
|
+
path: z.ZodString;
|
|
317
|
+
hash: z.ZodString;
|
|
318
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
315
319
|
unit: z.ZodOptional<z.ZodString>;
|
|
316
320
|
format: z.ZodOptional<z.ZodString>;
|
|
321
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
317
322
|
locator: z.ZodObject<{
|
|
318
323
|
column: z.ZodString;
|
|
319
324
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -327,23 +332,23 @@ export declare const ScalarReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
327
332
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
328
333
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
329
334
|
}, z.core.$strict>>;
|
|
330
|
-
run: z.ZodOptional<z.ZodString>;
|
|
331
|
-
path: z.ZodString;
|
|
332
|
-
hash: z.ZodString;
|
|
333
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
334
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
335
335
|
}, z.core.$strict>, z.ZodObject<{
|
|
336
336
|
unit: z.ZodOptional<z.ZodString>;
|
|
337
337
|
format: z.ZodOptional<z.ZodString>;
|
|
338
338
|
kind: z.ZodLiteral<"derivation">;
|
|
339
339
|
op: z.ZodEnum<{
|
|
340
|
-
ratio: "ratio";
|
|
341
340
|
delta: "delta";
|
|
342
341
|
pctChange: "pctChange";
|
|
342
|
+
ratio: "ratio";
|
|
343
343
|
}>;
|
|
344
344
|
inputs: z.ZodArray<z.ZodObject<{
|
|
345
|
+
run: z.ZodOptional<z.ZodString>;
|
|
346
|
+
path: z.ZodString;
|
|
347
|
+
hash: z.ZodString;
|
|
348
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
345
349
|
unit: z.ZodOptional<z.ZodString>;
|
|
346
350
|
format: z.ZodOptional<z.ZodString>;
|
|
351
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
347
352
|
locator: z.ZodObject<{
|
|
348
353
|
column: z.ZodString;
|
|
349
354
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -357,11 +362,6 @@ export declare const ScalarReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
357
362
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
358
363
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
359
364
|
}, z.core.$strict>>;
|
|
360
|
-
run: z.ZodOptional<z.ZodString>;
|
|
361
|
-
path: z.ZodString;
|
|
362
|
-
hash: z.ZodString;
|
|
363
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
364
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
365
365
|
}, z.core.$strict>>;
|
|
366
366
|
assert: z.ZodOptional<z.ZodObject<{
|
|
367
367
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
@@ -379,19 +379,40 @@ export declare const ScalarReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
379
379
|
* `extraction-unavailable` means that the value tier must use an extraction arm that is not wired.
|
|
380
380
|
*/
|
|
381
381
|
export declare const UnresolvedReasonSchema: z.ZodEnum<{
|
|
382
|
+
"ambiguous-match": "ambiguous-match";
|
|
382
383
|
"artifact-missing": "artifact-missing";
|
|
384
|
+
"assertion-failed": "assertion-failed";
|
|
385
|
+
"extraction-unavailable": "extraction-unavailable";
|
|
383
386
|
"hash-mismatch": "hash-mismatch";
|
|
384
387
|
"locator-out-of-range": "locator-out-of-range";
|
|
385
|
-
"ambiguous-match": "ambiguous-match";
|
|
386
|
-
"assertion-failed": "assertion-failed";
|
|
387
388
|
"unreadable-artifact": "unreadable-artifact";
|
|
388
|
-
"extraction-unavailable": "extraction-unavailable";
|
|
389
389
|
}>;
|
|
390
|
+
/**
|
|
391
|
+
* The reference of a refusal.
|
|
392
|
+
*
|
|
393
|
+
* The validate, finish, and resolver paths refuse a reference that parsed, so it rides as a `Reference`.
|
|
394
|
+
* The hash stamp runs before the parse, so its refusal carries the object as the author wrote it: a pinned
|
|
395
|
+
* kind and a path, with every other field unvalidated author text. One type carries both, and no consumer
|
|
396
|
+
* re-derives which arm a refusal holds.
|
|
397
|
+
*/
|
|
398
|
+
export declare const AuthoredPinRecordSchema: z.ZodObject<{
|
|
399
|
+
kind: z.ZodEnum<{
|
|
400
|
+
"artifact-file": "artifact-file";
|
|
401
|
+
"artifact-table": "artifact-table";
|
|
402
|
+
"artifact-value": "artifact-value";
|
|
403
|
+
}>;
|
|
404
|
+
path: z.ZodString;
|
|
405
|
+
}, z.core.$loose>;
|
|
390
406
|
/** A reference that resolution could not bind, with the reason and an optional detail. */
|
|
391
407
|
export declare const UnresolvedReferenceSchema: z.ZodObject<{
|
|
392
|
-
reference: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
408
|
+
reference: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
|
+
run: z.ZodOptional<z.ZodString>;
|
|
410
|
+
path: z.ZodString;
|
|
411
|
+
hash: z.ZodString;
|
|
412
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
393
413
|
unit: z.ZodOptional<z.ZodString>;
|
|
394
414
|
format: z.ZodOptional<z.ZodString>;
|
|
415
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
395
416
|
locator: z.ZodObject<{
|
|
396
417
|
column: z.ZodString;
|
|
397
418
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -405,14 +426,14 @@ export declare const UnresolvedReferenceSchema: z.ZodObject<{
|
|
|
405
426
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
406
427
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
407
428
|
}, z.core.$strict>>;
|
|
429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
408
430
|
run: z.ZodOptional<z.ZodString>;
|
|
409
431
|
path: z.ZodString;
|
|
410
432
|
hash: z.ZodString;
|
|
411
433
|
snapshot: z.ZodOptional<z.ZodString>;
|
|
412
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
413
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
414
434
|
unit: z.ZodOptional<z.ZodString>;
|
|
415
435
|
format: z.ZodOptional<z.ZodString>;
|
|
436
|
+
kind: z.ZodLiteral<"artifact-table">;
|
|
416
437
|
rowBound: z.ZodOptional<z.ZodObject<{
|
|
417
438
|
column: z.ZodString;
|
|
418
439
|
count: z.ZodNumber;
|
|
@@ -423,38 +444,38 @@ export declare const UnresolvedReferenceSchema: z.ZodObject<{
|
|
|
423
444
|
}, z.core.$strict>>;
|
|
424
445
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
425
446
|
columnMeanings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
447
|
+
category: "category";
|
|
426
448
|
count: "count";
|
|
449
|
+
effect: "effect";
|
|
427
450
|
identifier: "identifier";
|
|
428
|
-
category: "category";
|
|
429
451
|
"p-value": "p-value";
|
|
430
|
-
effect: "effect";
|
|
431
452
|
}>>>;
|
|
432
453
|
columnLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
454
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
433
455
|
run: z.ZodOptional<z.ZodString>;
|
|
434
456
|
path: z.ZodString;
|
|
435
457
|
hash: z.ZodString;
|
|
436
458
|
snapshot: z.ZodOptional<z.ZodString>;
|
|
437
|
-
kind: z.ZodLiteral<"artifact-table">;
|
|
438
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
439
459
|
unit: z.ZodOptional<z.ZodString>;
|
|
440
460
|
format: z.ZodOptional<z.ZodString>;
|
|
441
|
-
run: z.ZodOptional<z.ZodString>;
|
|
442
|
-
path: z.ZodString;
|
|
443
|
-
hash: z.ZodString;
|
|
444
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
445
461
|
kind: z.ZodLiteral<"artifact-file">;
|
|
446
462
|
}, z.core.$strict>, z.ZodObject<{
|
|
447
463
|
unit: z.ZodOptional<z.ZodString>;
|
|
448
464
|
format: z.ZodOptional<z.ZodString>;
|
|
449
465
|
kind: z.ZodLiteral<"derivation">;
|
|
450
466
|
op: z.ZodEnum<{
|
|
451
|
-
ratio: "ratio";
|
|
452
467
|
delta: "delta";
|
|
453
468
|
pctChange: "pctChange";
|
|
469
|
+
ratio: "ratio";
|
|
454
470
|
}>;
|
|
455
471
|
inputs: z.ZodArray<z.ZodObject<{
|
|
472
|
+
run: z.ZodOptional<z.ZodString>;
|
|
473
|
+
path: z.ZodString;
|
|
474
|
+
hash: z.ZodString;
|
|
475
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
456
476
|
unit: z.ZodOptional<z.ZodString>;
|
|
457
477
|
format: z.ZodOptional<z.ZodString>;
|
|
478
|
+
kind: z.ZodLiteral<"artifact-value">;
|
|
458
479
|
locator: z.ZodObject<{
|
|
459
480
|
column: z.ZodString;
|
|
460
481
|
rowFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -468,11 +489,6 @@ export declare const UnresolvedReferenceSchema: z.ZodObject<{
|
|
|
468
489
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
469
490
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
470
491
|
}, z.core.$strict>>;
|
|
471
|
-
run: z.ZodOptional<z.ZodString>;
|
|
472
|
-
path: z.ZodString;
|
|
473
|
-
hash: z.ZodString;
|
|
474
|
-
snapshot: z.ZodOptional<z.ZodString>;
|
|
475
|
-
kind: z.ZodLiteral<"artifact-value">;
|
|
476
492
|
}, z.core.$strict>>;
|
|
477
493
|
assert: z.ZodOptional<z.ZodObject<{
|
|
478
494
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
@@ -483,24 +499,31 @@ export declare const UnresolvedReferenceSchema: z.ZodObject<{
|
|
|
483
499
|
format: z.ZodOptional<z.ZodString>;
|
|
484
500
|
kind: z.ZodLiteral<"citation">;
|
|
485
501
|
idKind: z.ZodEnum<{
|
|
502
|
+
arxiv: "arxiv";
|
|
486
503
|
doi: "doi";
|
|
487
504
|
pmid: "pmid";
|
|
488
|
-
arxiv: "arxiv";
|
|
489
505
|
}>;
|
|
490
506
|
id: z.ZodString;
|
|
491
507
|
raw: z.ZodString;
|
|
492
508
|
assert: z.ZodOptional<z.ZodObject<{
|
|
493
509
|
value: z.ZodString;
|
|
494
510
|
}, z.core.$strict>>;
|
|
495
|
-
}, z.core.$strict>], "kind"
|
|
511
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
512
|
+
kind: z.ZodEnum<{
|
|
513
|
+
"artifact-file": "artifact-file";
|
|
514
|
+
"artifact-table": "artifact-table";
|
|
515
|
+
"artifact-value": "artifact-value";
|
|
516
|
+
}>;
|
|
517
|
+
path: z.ZodString;
|
|
518
|
+
}, z.core.$loose>]>;
|
|
496
519
|
reason: z.ZodEnum<{
|
|
520
|
+
"ambiguous-match": "ambiguous-match";
|
|
497
521
|
"artifact-missing": "artifact-missing";
|
|
522
|
+
"assertion-failed": "assertion-failed";
|
|
523
|
+
"extraction-unavailable": "extraction-unavailable";
|
|
498
524
|
"hash-mismatch": "hash-mismatch";
|
|
499
525
|
"locator-out-of-range": "locator-out-of-range";
|
|
500
|
-
"ambiguous-match": "ambiguous-match";
|
|
501
|
-
"assertion-failed": "assertion-failed";
|
|
502
526
|
"unreadable-artifact": "unreadable-artifact";
|
|
503
|
-
"extraction-unavailable": "extraction-unavailable";
|
|
504
527
|
}>;
|
|
505
528
|
detail: z.ZodOptional<z.ZodString>;
|
|
506
529
|
}, z.core.$strict>;
|
|
@@ -515,6 +538,7 @@ export type DerivationReference = z.infer<typeof DerivationReferenceSchema>;
|
|
|
515
538
|
export type Reference = z.infer<typeof ReferenceSchema>;
|
|
516
539
|
export type ScalarReference = z.infer<typeof ScalarReferenceSchema>;
|
|
517
540
|
export type UnresolvedReason = z.infer<typeof UnresolvedReasonSchema>;
|
|
541
|
+
export type AuthoredPinRecord = z.infer<typeof AuthoredPinRecordSchema>;
|
|
518
542
|
export type UnresolvedReference = z.infer<typeof UnresolvedReferenceSchema>;
|
|
519
543
|
/**
|
|
520
544
|
* The declaration that a binding holds for one column, or `undefined` when it holds none.
|
|
@@ -16,6 +16,7 @@ import { z } from "zod";
|
|
|
16
16
|
* lowercase only. Thus the pattern rejects an uppercase hex digit, which would pass a case-insensitive
|
|
17
17
|
* match here but never resolve against the lowercase producer.
|
|
18
18
|
*/
|
|
19
|
+
// oxlint-disable-next-line eslint-js/no-restricted-syntax -- the hash shape is algorithm:hex with lowercase hex only; the case rule is what makes the exact equality comparison resolve.
|
|
19
20
|
const HASH_PATTERN = /^[a-z0-9]+:[0-9a-f]+$/;
|
|
20
21
|
/**
|
|
21
22
|
* The pin that ties an artifact reference to one immutable file. It names the analysis-relative path and
|
|
@@ -222,9 +223,21 @@ export const UnresolvedReasonSchema = z.enum([
|
|
|
222
223
|
"unreadable-artifact",
|
|
223
224
|
"extraction-unavailable",
|
|
224
225
|
]);
|
|
226
|
+
/**
|
|
227
|
+
* The reference of a refusal.
|
|
228
|
+
*
|
|
229
|
+
* The validate, finish, and resolver paths refuse a reference that parsed, so it rides as a `Reference`.
|
|
230
|
+
* The hash stamp runs before the parse, so its refusal carries the object as the author wrote it: a pinned
|
|
231
|
+
* kind and a path, with every other field unvalidated author text. One type carries both, and no consumer
|
|
232
|
+
* re-derives which arm a refusal holds.
|
|
233
|
+
*/
|
|
234
|
+
export const AuthoredPinRecordSchema = z.looseObject({
|
|
235
|
+
kind: z.enum(["artifact-value", "artifact-table", "artifact-file"]),
|
|
236
|
+
path: z.string(),
|
|
237
|
+
});
|
|
225
238
|
/** A reference that resolution could not bind, with the reason and an optional detail. */
|
|
226
239
|
export const UnresolvedReferenceSchema = z.strictObject({
|
|
227
|
-
reference: ReferenceSchema,
|
|
240
|
+
reference: z.union([ReferenceSchema, AuthoredPinRecordSchema]),
|
|
228
241
|
reason: UnresolvedReasonSchema,
|
|
229
242
|
detail: z.string().optional(),
|
|
230
243
|
});
|
|
@@ -249,7 +262,10 @@ const REFERENCE_URI_PREFIX = "inflexa-ref:v1:";
|
|
|
249
262
|
* Thus a corrupt payload would otherwise decode to mojibake and report as malformed JSON, which names
|
|
250
263
|
* the wrong failure.
|
|
251
264
|
*/
|
|
265
|
+
// oxlint-disable-next-line eslint-js/no-restricted-syntax -- the base64url alphabet check; Buffer.from never throws, so this explicit shape check is the only malformed-payload guard.
|
|
252
266
|
const BASE64URL_PATTERN = /^[A-Za-z0-9_-]+$/;
|
|
267
|
+
/** The module imports no value from outside `contracts/`, so the generic record schema lives here. */
|
|
268
|
+
const UnknownRecordSchema = z.record(z.string(), z.unknown());
|
|
253
269
|
/**
|
|
254
270
|
* Sort the keys of every object so that serialization is deterministic. An array keeps its order,
|
|
255
271
|
* because the order of a derivation's inputs carries meaning.
|
|
@@ -258,14 +274,15 @@ function sortKeysDeep(value) {
|
|
|
258
274
|
if (Array.isArray(value)) {
|
|
259
275
|
return value.map(sortKeysDeep);
|
|
260
276
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
const parsedRecord = UnknownRecordSchema.safeParse(value);
|
|
278
|
+
if (!parsedRecord.success)
|
|
279
|
+
return value;
|
|
280
|
+
const record = parsedRecord.data;
|
|
281
|
+
const sorted = {};
|
|
282
|
+
for (const key of Object.keys(record).sort()) {
|
|
283
|
+
sorted[key] = sortKeysDeep(record[key]);
|
|
267
284
|
}
|
|
268
|
-
return
|
|
285
|
+
return sorted;
|
|
269
286
|
}
|
|
270
287
|
/**
|
|
271
288
|
* Serialize a reference to a canonical URI.
|
|
@@ -294,14 +311,14 @@ export function parseReference(uri) {
|
|
|
294
311
|
return err({ kind: "invalid-payload" });
|
|
295
312
|
}
|
|
296
313
|
const json = Buffer.from(payload, "base64url").toString("utf8");
|
|
297
|
-
let
|
|
314
|
+
let decoded;
|
|
298
315
|
try {
|
|
299
|
-
|
|
316
|
+
// oxlint-disable-next-line eslint-js/no-restricted-syntax -- contracts/ imports no value from lib/, and ReferenceSchema checks the result on the next line.
|
|
317
|
+
decoded = JSON.parse(json);
|
|
300
318
|
}
|
|
301
319
|
catch {
|
|
302
|
-
// `JSON.parse` throws on malformed input. The boundary turns the throw into an `Err`.
|
|
303
320
|
return err({ kind: "invalid-json" });
|
|
304
321
|
}
|
|
305
|
-
const
|
|
306
|
-
return
|
|
322
|
+
const parsed = ReferenceSchema.safeParse(decoded);
|
|
323
|
+
return parsed.success ? ok(parsed.data) : err({ kind: "schema-mismatch" });
|
|
307
324
|
}
|
|
@@ -26,16 +26,16 @@ export declare const IterationEventSchema: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
/** Mirrors the `ToolOutcome` union — three states, never a boolean. */
|
|
28
28
|
export declare const ToolOutcomeSchema: z.ZodEnum<{
|
|
29
|
+
denied: "denied";
|
|
29
30
|
error: "error";
|
|
30
31
|
ok: "ok";
|
|
31
|
-
denied: "denied";
|
|
32
32
|
}>;
|
|
33
33
|
/** Mirrors `ToolCallOutcome` — the live three plus the record-only `incomplete`. */
|
|
34
34
|
export declare const ToolCallOutcomeSchema: z.ZodEnum<{
|
|
35
|
-
error: "error";
|
|
36
|
-
ok: "ok";
|
|
37
35
|
denied: "denied";
|
|
36
|
+
error: "error";
|
|
38
37
|
incomplete: "incomplete";
|
|
38
|
+
ok: "ok";
|
|
39
39
|
}>;
|
|
40
40
|
export declare const ToolStartedEventSchema: z.ZodObject<{
|
|
41
41
|
type: z.ZodLiteral<"tool-started">;
|
|
@@ -53,9 +53,9 @@ export declare const ToolFinishedEventSchema: z.ZodObject<{
|
|
|
53
53
|
toolUseId: z.ZodString;
|
|
54
54
|
name: z.ZodString;
|
|
55
55
|
outcome: z.ZodEnum<{
|
|
56
|
+
denied: "denied";
|
|
56
57
|
error: "error";
|
|
57
58
|
ok: "ok";
|
|
58
|
-
denied: "denied";
|
|
59
59
|
}>;
|
|
60
60
|
detail: z.ZodOptional<z.ZodString>;
|
|
61
61
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -97,19 +97,26 @@ export declare const ChatErrorEventSchema: z.ZodObject<{
|
|
|
97
97
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
98
98
|
}, z.core.$strip>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
|
-
export declare const MessageStartEventSchema: z.ZodObject<{
|
|
100
|
+
export declare const MessageStartEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
101
|
type: z.ZodLiteral<"message-start">;
|
|
102
102
|
messageId: z.ZodUUID;
|
|
103
|
-
role: z.
|
|
104
|
-
|
|
105
|
-
user: "user";
|
|
106
|
-
}>;
|
|
103
|
+
role: z.ZodLiteral<"user">;
|
|
104
|
+
text: z.ZodString;
|
|
107
105
|
source: z.ZodObject<{
|
|
108
106
|
agentId: z.ZodString;
|
|
109
107
|
callPath: z.ZodArray<z.ZodString>;
|
|
110
108
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
111
109
|
}, z.core.$strip>;
|
|
112
|
-
}, z.core.$strip
|
|
110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
+
type: z.ZodLiteral<"message-start">;
|
|
112
|
+
messageId: z.ZodUUID;
|
|
113
|
+
role: z.ZodLiteral<"assistant">;
|
|
114
|
+
source: z.ZodObject<{
|
|
115
|
+
agentId: z.ZodString;
|
|
116
|
+
callPath: z.ZodArray<z.ZodString>;
|
|
117
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
}, z.core.$strip>], "role">;
|
|
113
120
|
export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
121
|
type: z.ZodLiteral<"text-delta">;
|
|
115
122
|
text: z.ZodString;
|
|
@@ -140,9 +147,9 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
140
147
|
toolUseId: z.ZodString;
|
|
141
148
|
name: z.ZodString;
|
|
142
149
|
outcome: z.ZodEnum<{
|
|
150
|
+
denied: "denied";
|
|
143
151
|
error: "error";
|
|
144
152
|
ok: "ok";
|
|
145
|
-
denied: "denied";
|
|
146
153
|
}>;
|
|
147
154
|
detail: z.ZodOptional<z.ZodString>;
|
|
148
155
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -181,16 +188,23 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
181
188
|
callPath: z.ZodArray<z.ZodString>;
|
|
182
189
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
183
190
|
}, z.core.$strip>;
|
|
191
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
type: z.ZodLiteral<"message-start">;
|
|
193
|
+
messageId: z.ZodUUID;
|
|
194
|
+
role: z.ZodLiteral<"user">;
|
|
195
|
+
text: z.ZodString;
|
|
196
|
+
source: z.ZodObject<{
|
|
197
|
+
agentId: z.ZodString;
|
|
198
|
+
callPath: z.ZodArray<z.ZodString>;
|
|
199
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>;
|
|
184
201
|
}, z.core.$strip>, z.ZodObject<{
|
|
185
202
|
type: z.ZodLiteral<"message-start">;
|
|
186
203
|
messageId: z.ZodUUID;
|
|
187
|
-
role: z.
|
|
188
|
-
assistant: "assistant";
|
|
189
|
-
user: "user";
|
|
190
|
-
}>;
|
|
204
|
+
role: z.ZodLiteral<"assistant">;
|
|
191
205
|
source: z.ZodObject<{
|
|
192
206
|
agentId: z.ZodString;
|
|
193
207
|
callPath: z.ZodArray<z.ZodString>;
|
|
194
208
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
195
209
|
}, z.core.$strip>;
|
|
196
|
-
}, z.core.$strip>], "type">;
|
|
210
|
+
}, z.core.$strip>], "role">], "type">;
|