@qvac/harness 1.0.0-rc.0 → 1.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/CHANGELOG.md +2638 -397
- package/NOTICE.md +16 -0
- package/README.md +303 -471
- package/dist-lib/index.d.ts +151 -172
- package/dist-lib/index.js +573 -1513
- package/dist-lib/lib/addon-seal.bare.d.ts +1 -0
- package/dist-lib/lib/addon-seal.bare.js +3 -0
- package/dist-lib/lib/addon-seal.node.d.ts +1 -0
- package/dist-lib/lib/addon-seal.node.js +1 -0
- package/dist-lib/lib/agent/delegate.d.ts +84 -0
- package/dist-lib/lib/agent/delegate.js +263 -0
- package/dist-lib/lib/agent/follow.d.ts +37 -0
- package/dist-lib/lib/agent/follow.js +164 -0
- package/dist-lib/lib/agent/index.d.ts +37 -0
- package/dist-lib/lib/agent/index.js +42 -0
- package/dist-lib/lib/agent/plan.d.ts +6 -0
- package/dist-lib/lib/agent/plan.js +74 -0
- package/dist-lib/lib/agent/resolve.d.ts +3 -0
- package/dist-lib/lib/agent/resolve.js +83 -0
- package/dist-lib/lib/{capabilities → agent}/tool-names.d.ts +0 -1
- package/dist-lib/lib/{capabilities → agent}/tool-names.js +0 -1
- package/dist-lib/lib/{capabilities → agent}/tool-selection.d.ts +7 -8
- package/dist-lib/lib/{capabilities → agent}/tool-selection.js +14 -7
- package/dist-lib/lib/agent/tools.d.ts +15 -0
- package/dist-lib/lib/agent/tools.js +17 -0
- package/dist-lib/lib/agent/transfer.d.ts +7 -0
- package/dist-lib/lib/agent/transfer.js +26 -0
- package/dist-lib/lib/capabilities/agent-ports.d.ts +3 -0
- package/dist-lib/lib/capabilities/agent-ports.js +9 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/answering.d.ts +1 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/answering.js +25 -9
- package/dist-lib/lib/capabilities/completion-engine/actors/batching.d.ts +3 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/batching.js +91 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/direct-search.d.ts +2 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/direct-search.js +16 -5
- package/dist-lib/lib/capabilities/completion-engine/actors/execute.d.ts +5 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/execute.js +8 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/executing.d.ts +29 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/executing.js +160 -40
- package/dist-lib/lib/capabilities/completion-engine/actors/execution-plan.d.ts +11 -10
- package/dist-lib/lib/capabilities/completion-engine/actors/execution-plan.js +29 -22
- package/dist-lib/lib/capabilities/completion-engine/actors/finishing.js +2 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/inspect-prepare.d.ts +4 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/inspect-prepare.js +68 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/inspecting.d.ts +10 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/inspecting.js +59 -17
- package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.d.ts +7 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.js +40 -32
- package/dist-lib/lib/capabilities/completion-engine/actors/preparing.d.ts +3 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/preparing.js +170 -120
- package/dist-lib/lib/capabilities/completion-engine/actors/rejecting.d.ts +1 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/rejecting.js +30 -8
- package/dist-lib/lib/capabilities/completion-engine/actors/rejection.d.ts +4 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/rejection.js +8 -8
- package/dist-lib/lib/capabilities/completion-engine/actors/resolving.d.ts +1 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/resolving.js +129 -19
- package/dist-lib/lib/capabilities/completion-engine/actors/retrieving.d.ts +10 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/retrieving.js +65 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/run-prepare.d.ts +4 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/run-prepare.js +74 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/skill-step.d.ts +2 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/skill-step.js +95 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/stream.d.ts +9 -4
- package/dist-lib/lib/capabilities/completion-engine/actors/stream.js +55 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/streaming.d.ts +6 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/streaming.js +138 -35
- package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.d.ts +3 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.js +52 -17
- package/dist-lib/lib/capabilities/completion-engine/actors.d.ts +11 -0
- package/dist-lib/lib/capabilities/completion-engine/actors.js +216 -0
- package/dist-lib/lib/capabilities/completion-engine/driver.d.ts +12 -5
- package/dist-lib/lib/capabilities/completion-engine/driver.js +141 -37
- package/dist-lib/lib/capabilities/completion-engine/durable.d.ts +3 -1
- package/dist-lib/lib/capabilities/completion-engine/durable.js +11 -5
- package/dist-lib/lib/capabilities/completion-engine/engine.d.ts +68 -0
- package/dist-lib/lib/{machine → capabilities/completion-engine}/engine.js +80 -130
- package/dist-lib/lib/capabilities/completion-engine/index.d.ts +34 -0
- package/dist-lib/lib/capabilities/completion-engine/index.js +47 -0
- package/dist-lib/lib/capabilities/completion-engine/loop.d.ts +73 -0
- package/dist-lib/lib/capabilities/completion-engine/loop.js +69 -0
- package/dist-lib/lib/capabilities/completion-engine/metrics.d.ts +11 -0
- package/dist-lib/lib/capabilities/completion-engine/metrics.js +67 -0
- package/dist-lib/lib/capabilities/completion-engine/model-round.d.ts +60 -0
- package/dist-lib/lib/capabilities/completion-engine/model-round.js +97 -0
- package/dist-lib/lib/capabilities/completion-engine/operations.d.ts +5 -2
- package/dist-lib/lib/capabilities/completion-engine/operations.js +84 -15
- package/dist-lib/lib/capabilities/completion-engine/ports.d.ts +25 -2
- package/dist-lib/lib/capabilities/completion-engine/ports.js +26 -21
- package/dist-lib/lib/capabilities/completion-engine/prepare-step.d.ts +26 -0
- package/dist-lib/lib/{machine → capabilities/completion-engine}/replay-output.d.ts +1 -1
- package/dist-lib/lib/{machine → capabilities/completion-engine}/replay-output.js +1 -1
- package/dist-lib/lib/capabilities/completion-engine/round.d.ts +73 -0
- package/dist-lib/lib/capabilities/completion-engine/round.js +813 -0
- package/dist-lib/lib/capabilities/completion-engine/session.d.ts +28 -14
- package/dist-lib/lib/capabilities/completion-engine/session.js +40 -6
- package/dist-lib/lib/capabilities/completion-engine/splice.d.ts +2 -0
- package/dist-lib/lib/capabilities/completion-engine/splice.js +7 -0
- package/dist-lib/lib/capabilities/completion-engine/stages.d.ts +23 -0
- package/dist-lib/lib/capabilities/completion-engine/tool-caller.d.ts +10 -0
- package/dist-lib/lib/capabilities/completion-engine/tool-caller.js +152 -0
- package/dist-lib/lib/capabilities/completion-engine/tool-execution.d.ts +78 -0
- package/dist-lib/lib/capabilities/{completion-loop → completion-engine}/tool-execution.js +88 -34
- package/dist-lib/lib/capabilities/completion-engine/tool-sets.d.ts +24 -0
- package/dist-lib/lib/capabilities/completion-engine/tool-sets.js +15 -0
- package/dist-lib/lib/capabilities/completion-engine/turns.d.ts +32 -0
- package/dist-lib/lib/capabilities/completion-engine/turns.js +212 -0
- package/dist-lib/lib/capabilities/detect-language.d.ts +2 -1
- package/dist-lib/lib/capabilities/detect-language.js +14 -2
- package/dist-lib/lib/capabilities/download.d.ts +10 -8
- package/dist-lib/lib/capabilities/download.js +1 -1
- package/dist-lib/lib/capabilities/enhance.d.ts +2 -2
- package/dist-lib/lib/capabilities/enhance.js +23 -10
- package/dist-lib/lib/capabilities/invoke.d.ts +1 -1
- package/dist-lib/lib/capabilities/kv-cache.d.ts +1 -1
- package/dist-lib/lib/capabilities/preview-model-source.d.ts +8 -10
- package/dist-lib/lib/capabilities/preview-model-source.js +83 -21
- package/dist-lib/lib/capabilities/prompt-prefix.d.ts +1 -1
- package/dist-lib/lib/capabilities/sdk-tool.d.ts +19 -0
- package/dist-lib/lib/capabilities/sdk-tool.js +166 -0
- package/dist-lib/lib/capabilities/skill-entry.d.ts +8 -0
- package/dist-lib/lib/capabilities/skill-entry.js +14 -0
- package/dist-lib/lib/capabilities/tool-plan.d.ts +11 -6
- package/dist-lib/lib/capabilities/tool-plan.js +36 -15
- package/dist-lib/lib/capabilities/tool-prompt-log.d.ts +1 -1
- package/dist-lib/lib/capabilities/tool-prompt-log.js +3 -3
- package/dist-lib/lib/capabilities/tool-turns.d.ts +30 -5
- package/dist-lib/lib/capabilities/tool-turns.js +137 -18
- package/dist-lib/lib/capabilities/usage-breakdown.d.ts +1 -1
- package/dist-lib/lib/capabilities/usage-breakdown.js +4 -1
- package/dist-lib/lib/client/index.d.ts +19 -0
- package/dist-lib/lib/client/index.js +262 -0
- package/dist-lib/lib/connect.d.ts +21 -10
- package/dist-lib/lib/connect.js +290 -84
- package/dist-lib/lib/context-window.d.ts +5 -2
- package/dist-lib/lib/context-window.js +27 -16
- package/dist-lib/lib/contract/agent.d.ts +69 -0
- package/dist-lib/lib/{capabilities/types.d.ts → contract/completion.d.ts} +181 -46
- package/dist-lib/lib/contract/drive.d.ts +4 -0
- package/dist-lib/lib/contract/egress-proxy.d.ts +13 -0
- package/dist-lib/lib/contract/exec.d.ts +134 -0
- package/dist-lib/lib/contract/hooks.d.ts +124 -0
- package/dist-lib/lib/contract/hooks.js +1 -0
- package/dist-lib/lib/contract/index.d.ts +8 -0
- package/dist-lib/lib/contract/index.js +1 -0
- package/dist-lib/lib/contract/knowledge.d.ts +60 -0
- package/dist-lib/lib/contract/knowledge.js +1 -0
- package/dist-lib/lib/contract/managed-skills.d.ts +1 -0
- package/dist-lib/lib/contract/managed-skills.js +1 -0
- package/dist-lib/lib/contract/models.d.ts +58 -0
- package/dist-lib/lib/contract/models.js +1 -0
- package/dist-lib/lib/contract/policy.d.ts +75 -0
- package/dist-lib/lib/contract/policy.js +1 -0
- package/dist-lib/lib/contract/run.d.ts +156 -0
- package/dist-lib/lib/contract/run.js +1 -0
- package/dist-lib/lib/contract/sandbox.d.ts +31 -0
- package/dist-lib/lib/contract/sandbox.js +1 -0
- package/dist-lib/lib/contract/skill-readiness.d.ts +14 -0
- package/dist-lib/lib/contract/skill-readiness.js +1 -0
- package/dist-lib/lib/{capabilities/voice.d.ts → contract/speech.d.ts} +12 -17
- package/dist-lib/lib/contract/speech.js +1 -0
- package/dist-lib/lib/contract/translation.d.ts +20 -0
- package/dist-lib/lib/contract/translation.js +1 -0
- package/dist-lib/lib/contract-types.d.ts +82 -30
- package/dist-lib/lib/docx/index.d.ts +0 -1
- package/dist-lib/lib/docx/index.js +15 -24
- package/dist-lib/lib/embeddings/index.d.ts +69 -0
- package/dist-lib/lib/embeddings/index.js +288 -0
- package/dist-lib/lib/errors.d.ts +270 -0
- package/dist-lib/lib/errors.js +204 -0
- package/dist-lib/lib/fold/index.d.ts +74 -0
- package/dist-lib/lib/fold/index.js +189 -0
- package/dist-lib/lib/{tools/exec/adapters/python/guarded-fetch.d.ts → guarded-fetch.d.ts} +5 -12
- package/dist-lib/lib/{tools/exec/adapters/python/guarded-fetch.js → guarded-fetch.js} +23 -41
- package/dist-lib/lib/hardware/cpu-placement.d.ts +8 -0
- package/dist-lib/lib/hardware/cpu-placement.js +48 -0
- package/dist-lib/lib/hardware/gpu-probe.js +10 -1
- package/dist-lib/lib/helpers/completion-params.d.ts +7 -0
- package/dist-lib/lib/helpers/completion-params.js +21 -0
- package/dist-lib/lib/helpers/copy.d.ts +1 -0
- package/dist-lib/lib/helpers/copy.js +5 -0
- package/dist-lib/lib/helpers/drain.d.ts +5 -0
- package/dist-lib/lib/helpers/drain.js +19 -0
- package/dist-lib/lib/{machine/errors.d.ts → helpers/engine-error.d.ts} +8 -10
- package/dist-lib/lib/{machine/errors.js → helpers/engine-error.js} +20 -36
- package/dist-lib/lib/helpers/failure-result.d.ts +21 -0
- package/dist-lib/lib/helpers/failure-result.js +39 -0
- package/dist-lib/lib/helpers/goal-check.d.ts +6 -0
- package/dist-lib/lib/helpers/goal-check.js +99 -0
- package/dist-lib/lib/helpers/head-tail.d.ts +7 -0
- package/dist-lib/lib/helpers/head-tail.js +19 -0
- package/dist-lib/lib/helpers/image-settings.d.ts +2 -0
- package/dist-lib/lib/helpers/image-settings.js +19 -0
- package/dist-lib/lib/helpers/load-stall.d.ts +1 -1
- package/dist-lib/lib/helpers/load-stall.js +2 -2
- package/dist-lib/lib/helpers/markup-stream-filter.d.ts +4 -1
- package/dist-lib/lib/helpers/markup-stream-filter.js +20 -6
- package/dist-lib/lib/helpers/mcp-methods.d.ts +2 -0
- package/dist-lib/lib/helpers/mcp-methods.js +14 -0
- package/dist-lib/lib/helpers/race-abort.d.ts +1 -1
- package/dist-lib/lib/helpers/race-abort.js +1 -1
- package/dist-lib/lib/helpers/repeated-reply.d.ts +2 -0
- package/dist-lib/lib/helpers/repeated-reply.js +71 -0
- package/dist-lib/lib/helpers/require-peers.d.ts +3 -0
- package/dist-lib/lib/helpers/require-peers.js +23 -0
- package/dist-lib/lib/helpers/run-outcome.d.ts +5 -4
- package/dist-lib/lib/helpers/run-outcome.js +11 -9
- package/dist-lib/lib/{machine → helpers}/stable-stringify.js +1 -1
- package/dist-lib/lib/helpers/thinking.d.ts +3 -2
- package/dist-lib/lib/helpers/thinking.js +19 -0
- package/dist-lib/lib/helpers/tool-call-markup.d.ts +1 -0
- package/dist-lib/lib/helpers/tool-call-markup.js +9 -5
- package/dist-lib/lib/helpers/tool-label.d.ts +2 -2
- package/dist-lib/lib/helpers/tool-label.js +3 -3
- package/dist-lib/lib/hooks/built-in/arg-repair.d.ts +1 -1
- package/dist-lib/lib/hooks/built-in/arg-repair.js +114 -20
- package/dist-lib/lib/hooks/built-in/egress.d.ts +1 -1
- package/dist-lib/lib/hooks/built-in/egress.js +13 -21
- package/dist-lib/lib/hooks/built-in/policy-rules.d.ts +8 -0
- package/dist-lib/lib/hooks/built-in/policy-rules.js +192 -0
- package/dist-lib/lib/hooks/built-in/sandbox.d.ts +1 -1
- package/dist-lib/lib/hooks/built-in/sandbox.js +23 -5
- package/dist-lib/lib/hooks/built-in/skill-catalog.d.ts +1 -1
- package/dist-lib/lib/hooks/index.d.ts +51 -0
- package/dist-lib/lib/hooks/index.js +135 -0
- package/dist-lib/lib/hooks/run.d.ts +9 -6
- package/dist-lib/lib/hooks/run.js +115 -50
- package/dist-lib/lib/{completion-lifecycle.d.ts → lifecycle/completion-run.d.ts} +1 -1
- package/dist-lib/lib/{completion-lifecycle.js → lifecycle/completion-run.js} +1 -1
- package/dist-lib/lib/lifecycle/index.d.ts +83 -0
- package/dist-lib/lib/lifecycle/index.js +336 -0
- package/dist-lib/lib/{harness-lifecycle.js → lifecycle/machine.js} +3 -3
- package/dist-lib/lib/log.d.ts +26 -5
- package/dist-lib/lib/log.js +86 -23
- package/dist-lib/lib/machine/completion/actions/completion.d.ts +15 -4
- package/dist-lib/lib/machine/completion/actions/completion.js +189 -20
- package/dist-lib/lib/machine/completion/actions/prepare.d.ts +9 -0
- package/dist-lib/lib/machine/completion/actions/prepare.js +30 -0
- package/dist-lib/lib/machine/completion/actions/tools.d.ts +10 -1
- package/dist-lib/lib/machine/completion/actions/tools.js +137 -10
- package/dist-lib/lib/machine/completion/context.d.ts +7 -2
- package/dist-lib/lib/machine/completion/context.js +34 -5
- package/dist-lib/lib/machine/completion/guards/retry.d.ts +2 -0
- package/dist-lib/lib/machine/completion/guards/retry.js +13 -4
- package/dist-lib/lib/machine/completion/implementations.d.ts +46 -14
- package/dist-lib/lib/machine/completion/implementations.js +115 -32
- package/dist-lib/lib/machine/completion/machine.d.ts +162 -65
- package/dist-lib/lib/machine/completion/machine.js +225 -60
- package/dist-lib/lib/machine/completion/ports.d.ts +7 -55
- package/dist-lib/lib/machine/completion/ports.js +1 -224
- package/dist-lib/lib/machine/completion/rules.d.ts +35 -19
- package/dist-lib/lib/machine/completion/rules.js +115 -49
- package/dist-lib/lib/machine/completion/types.d.ts +155 -187
- package/dist-lib/lib/machine/completion/version.d.ts +1 -0
- package/dist-lib/lib/machine/completion/version.js +1 -0
- package/dist-lib/lib/machine/definition.d.ts +23 -0
- package/dist-lib/lib/machine/definition.js +76 -0
- package/dist-lib/lib/machine/index.d.ts +488 -20
- package/dist-lib/lib/machine/index.js +20 -11
- package/dist-lib/lib/models/context-choice.d.ts +15 -0
- package/dist-lib/lib/models/context-choice.js +55 -0
- package/dist-lib/lib/models/context.d.ts +1 -1
- package/dist-lib/lib/models/download-gate.d.ts +20 -0
- package/dist-lib/lib/models/download-gate.js +73 -0
- package/dist-lib/lib/models/gguf-header.d.ts +5 -0
- package/dist-lib/lib/models/gguf-header.js +165 -14
- package/dist-lib/lib/models/llm-presets.d.ts +7 -1
- package/dist-lib/lib/models/llm-presets.js +6 -5
- package/dist-lib/lib/models/memory-cap.d.ts +13 -0
- package/dist-lib/lib/models/memory-cap.js +21 -0
- package/dist-lib/lib/models/model-catalog-constants.d.ts +3 -1
- package/dist-lib/lib/models/model-catalog-constants.js +9 -1
- package/dist-lib/lib/models/model-catalog.d.ts +34 -5
- package/dist-lib/lib/models/model-catalog.js +104 -8
- package/dist-lib/lib/models/model-delete.d.ts +1 -1
- package/dist-lib/lib/models/model-fit.d.ts +55 -0
- package/dist-lib/lib/models/model-fit.js +101 -0
- package/dist-lib/lib/models/model-handle.d.ts +11 -1
- package/dist-lib/lib/models/model-handle.js +20 -2
- package/dist-lib/lib/models/model-list.d.ts +13 -2
- package/dist-lib/lib/models/model-list.js +23 -0
- package/dist-lib/lib/models/model-pool.d.ts +74 -15
- package/dist-lib/lib/models/model-pool.js +180 -50
- package/dist-lib/lib/models/model-source.d.ts +3 -2
- package/dist-lib/lib/models/model-source.js +23 -5
- package/dist-lib/lib/models/music-catalog.d.ts +1 -1
- package/dist-lib/lib/models/music-catalog.js +8 -1
- package/dist-lib/lib/models/opencl-cache.js +2 -2
- package/dist-lib/lib/models/sdk-faults.d.ts +3 -0
- package/dist-lib/lib/models/sdk-faults.js +27 -0
- package/dist-lib/lib/models/tool-dialect.d.ts +1 -1
- package/dist-lib/lib/models/tts-model-default.js +3 -3
- package/dist-lib/lib/no-redirect-fetch-bare.js +2 -1
- package/dist-lib/lib/no-redirect-fetch-impl.js +2 -1
- package/dist-lib/lib/office/engine/codes.d.ts +62 -0
- package/dist-lib/lib/office/engine/codes.js +61 -0
- package/dist-lib/lib/office/engine/docx/document.d.ts +216 -0
- package/dist-lib/lib/office/engine/docx/document.js +1152 -0
- package/dist-lib/lib/office/engine/docx/index.d.ts +7 -0
- package/dist-lib/lib/office/engine/docx/index.js +8 -0
- package/dist-lib/lib/office/engine/docx/styles.d.ts +31 -0
- package/dist-lib/lib/office/engine/docx/styles.js +173 -0
- package/dist-lib/lib/office/engine/docx/template.d.ts +18 -0
- package/dist-lib/lib/office/engine/docx/template.js +133 -0
- package/dist-lib/lib/office/engine/docx/text.d.ts +55 -0
- package/dist-lib/lib/office/engine/docx/text.js +538 -0
- package/dist-lib/lib/office/engine/drawingml/chart.d.ts +63 -0
- package/dist-lib/lib/office/engine/drawingml/chart.js +539 -0
- package/dist-lib/lib/office/engine/drawingml/text.d.ts +35 -0
- package/dist-lib/lib/office/engine/drawingml/text.js +352 -0
- package/dist-lib/lib/office/engine/errors.d.ts +6 -0
- package/dist-lib/lib/office/engine/errors.js +12 -0
- package/dist-lib/lib/office/engine/image.d.ts +8 -0
- package/dist-lib/lib/office/engine/image.js +48 -0
- package/dist-lib/lib/office/engine/index.d.ts +12 -0
- package/dist-lib/lib/office/engine/index.js +7 -0
- package/dist-lib/lib/office/engine/opc/content-types.d.ts +17 -0
- package/dist-lib/lib/office/engine/opc/content-types.js +74 -0
- package/dist-lib/lib/office/engine/opc/media.d.ts +13 -0
- package/dist-lib/lib/office/engine/opc/media.js +11 -0
- package/dist-lib/lib/office/engine/opc/package.d.ts +51 -0
- package/dist-lib/lib/office/engine/opc/package.js +324 -0
- package/dist-lib/lib/office/engine/opc/paths.d.ts +7 -0
- package/dist-lib/lib/office/engine/opc/paths.js +46 -0
- package/dist-lib/lib/office/engine/opc/properties.d.ts +7 -0
- package/dist-lib/lib/office/engine/opc/properties.js +75 -0
- package/dist-lib/lib/office/engine/opc/relationships.d.ts +23 -0
- package/dist-lib/lib/office/engine/opc/relationships.js +65 -0
- package/dist-lib/lib/office/engine/opc/zip.d.ts +15 -0
- package/dist-lib/lib/office/engine/opc/zip.js +264 -0
- package/dist-lib/lib/office/engine/pptx/fit.d.ts +12 -0
- package/dist-lib/lib/office/engine/pptx/fit.js +37 -0
- package/dist-lib/lib/office/engine/pptx/index.d.ts +8 -0
- package/dist-lib/lib/office/engine/pptx/index.js +8 -0
- package/dist-lib/lib/office/engine/pptx/inherit.d.ts +29 -0
- package/dist-lib/lib/office/engine/pptx/inherit.js +155 -0
- package/dist-lib/lib/office/engine/pptx/notes.d.ts +5 -0
- package/dist-lib/lib/office/engine/pptx/notes.js +85 -0
- package/dist-lib/lib/office/engine/pptx/picture-area.d.ts +23 -0
- package/dist-lib/lib/office/engine/pptx/picture-area.js +84 -0
- package/dist-lib/lib/office/engine/pptx/presentation.d.ts +56 -0
- package/dist-lib/lib/office/engine/pptx/presentation.js +787 -0
- package/dist-lib/lib/office/engine/pptx/read.d.ts +9 -0
- package/dist-lib/lib/office/engine/pptx/read.js +66 -0
- package/dist-lib/lib/office/engine/pptx/shapes.d.ts +52 -0
- package/dist-lib/lib/office/engine/pptx/shapes.js +276 -0
- package/dist-lib/lib/office/engine/pptx/slides.d.ts +27 -0
- package/dist-lib/lib/office/engine/pptx/slides.js +123 -0
- package/dist-lib/lib/office/engine/pptx/template.d.ts +20 -0
- package/dist-lib/lib/office/engine/pptx/template.js +391 -0
- package/dist-lib/lib/office/engine/pptx/types.d.ts +121 -0
- package/dist-lib/lib/office/engine/pptx/types.js +1 -0
- package/dist-lib/lib/office/engine/units.d.ts +3 -0
- package/dist-lib/lib/office/engine/units.js +12 -0
- package/dist-lib/lib/office/engine/utf8.d.ts +2 -0
- package/dist-lib/lib/office/engine/utf8.js +103 -0
- package/dist-lib/lib/office/engine/xlsx/formula.d.ts +49 -0
- package/dist-lib/lib/office/engine/xlsx/formula.js +381 -0
- package/dist-lib/lib/office/engine/xlsx/index.d.ts +8 -0
- package/dist-lib/lib/office/engine/xlsx/index.js +8 -0
- package/dist-lib/lib/office/engine/xlsx/refs.d.ts +22 -0
- package/dist-lib/lib/office/engine/xlsx/refs.js +82 -0
- package/dist-lib/lib/office/engine/xlsx/reshape.d.ts +21 -0
- package/dist-lib/lib/office/engine/xlsx/reshape.js +424 -0
- package/dist-lib/lib/office/engine/xlsx/sheet.d.ts +108 -0
- package/dist-lib/lib/office/engine/xlsx/sheet.js +662 -0
- package/dist-lib/lib/office/engine/xlsx/strings.d.ts +15 -0
- package/dist-lib/lib/office/engine/xlsx/strings.js +93 -0
- package/dist-lib/lib/office/engine/xlsx/styles.d.ts +38 -0
- package/dist-lib/lib/office/engine/xlsx/styles.js +369 -0
- package/dist-lib/lib/office/engine/xlsx/template.d.ts +7 -0
- package/dist-lib/lib/office/engine/xlsx/template.js +54 -0
- package/dist-lib/lib/office/engine/xlsx/workbook.d.ts +162 -0
- package/dist-lib/lib/office/engine/xlsx/workbook.js +881 -0
- package/dist-lib/lib/office/engine/xlsx/write.d.ts +2 -0
- package/dist-lib/lib/office/engine/xlsx/write.js +42 -0
- package/dist-lib/lib/office/engine/xml.d.ts +45 -0
- package/dist-lib/lib/office/engine/xml.js +258 -0
- package/dist-lib/lib/office/extract.d.ts +9 -0
- package/dist-lib/lib/office/extract.js +20 -0
- package/dist-lib/lib/office/index.d.ts +1 -1
- package/dist-lib/lib/office/index.js +77 -21
- package/dist-lib/lib/plugins/addons.d.ts +2 -0
- package/dist-lib/lib/plugins/addons.js +12 -0
- package/dist-lib/lib/plugins/context.d.ts +16 -0
- package/dist-lib/lib/plugins/context.js +48 -0
- package/dist-lib/lib/plugins/index.d.ts +3 -0
- package/dist-lib/lib/plugins/index.js +1 -0
- package/dist-lib/lib/plugins/registry.d.ts +121 -0
- package/dist-lib/lib/plugins/registry.js +518 -0
- package/dist-lib/lib/plugins/runtime.d.ts +27 -0
- package/dist-lib/lib/plugins/runtime.js +143 -0
- package/dist-lib/lib/plugins/scope.d.ts +17 -0
- package/dist-lib/lib/plugins/scope.js +55 -0
- package/dist-lib/lib/policy/index.d.ts +11 -0
- package/dist-lib/lib/policy/index.js +235 -0
- package/dist-lib/lib/prompt.d.ts +5 -6
- package/dist-lib/lib/prompt.js +26 -11
- package/dist-lib/lib/residency/completion-runtime.d.ts +61 -0
- package/dist-lib/lib/{capabilities → residency}/completion-runtime.js +55 -38
- package/dist-lib/lib/residency/index.d.ts +192 -0
- package/dist-lib/lib/residency/index.js +908 -0
- package/dist-lib/lib/resolution-detector.js +3 -3
- package/dist-lib/lib/round-host.d.ts +12 -0
- package/dist-lib/lib/round-host.js +57 -0
- package/dist-lib/lib/round-port.d.ts +24 -0
- package/dist-lib/lib/round-port.js +81 -0
- package/dist-lib/lib/rpc-session.js +2 -1
- package/dist-lib/lib/run-log/boundary.d.ts +17 -0
- package/dist-lib/lib/run-log/boundary.js +58 -0
- package/dist-lib/lib/run-log/history-codec.d.ts +7 -6
- package/dist-lib/lib/run-log/history-codec.js +175 -46
- package/dist-lib/lib/run-log/index.d.ts +46 -0
- package/dist-lib/lib/run-log/index.js +40 -0
- package/dist-lib/lib/run-log/inspect.d.ts +53 -0
- package/dist-lib/lib/{run-log-inspect.js → run-log/inspect.js} +196 -139
- package/dist-lib/lib/run-log/live.d.ts +37 -0
- package/dist-lib/lib/run-log/live.js +195 -0
- package/dist-lib/lib/run-log/persisted-actor.d.ts +1 -6
- package/dist-lib/lib/run-log/persisted-actor.js +4 -3
- package/dist-lib/lib/run-log/protocol-types.d.ts +37 -14
- package/dist-lib/lib/run-log/protocol.d.ts +1 -2
- package/dist-lib/lib/run-log/protocol.js +45 -40
- package/dist-lib/lib/{run-log-redact.d.ts → run-log/redact.d.ts} +3 -2
- package/dist-lib/lib/{run-log-redact.js → run-log/redact.js} +101 -16
- package/dist-lib/lib/run-log/replay.d.ts +3 -2
- package/dist-lib/lib/run-log/replay.js +7 -6
- package/dist-lib/lib/run-log/request-codec.d.ts +17 -0
- package/dist-lib/lib/run-log/request-codec.js +87 -0
- package/dist-lib/lib/run-log/run-journal.d.ts +14 -8
- package/dist-lib/lib/run-log/run-journal.js +100 -75
- package/dist-lib/lib/sdk-loader.d.ts +3 -8
- package/dist-lib/lib/sdk-loader.js +51 -28
- package/dist-lib/lib/sdk-storage.d.ts +1 -0
- package/dist-lib/lib/sdk-storage.js +20 -2
- package/dist-lib/lib/serve.js +277 -69
- package/dist-lib/lib/sidecar/index.d.ts +39 -0
- package/dist-lib/lib/sidecar/index.js +206 -0
- package/dist-lib/lib/sidecar/user-plugins.d.ts +9 -0
- package/dist-lib/lib/sidecar/user-plugins.js +119 -0
- package/dist-lib/lib/skills-host/index.d.ts +60 -0
- package/dist-lib/lib/skills-host/index.js +272 -0
- package/dist-lib/lib/spawn.d.ts +40 -7
- package/dist-lib/lib/spawn.js +24 -20
- package/dist-lib/lib/spill.d.ts +12 -0
- package/dist-lib/lib/spill.js +86 -0
- package/dist-lib/lib/tools/{exec/adapters/python → attachments}/output-policy.d.ts +2 -3
- package/dist-lib/lib/tools/{exec/adapters/python/attachments.d.ts → attachments/staging.d.ts} +2 -2
- package/dist-lib/lib/tools/{exec/adapters/python/attachments.js → attachments/staging.js} +9 -9
- package/dist-lib/lib/tools/catalog.d.ts +1 -1
- package/dist-lib/lib/tools/catalog.js +1 -1
- package/dist-lib/lib/tools/exec/adapters/shell/shell-adapter.d.ts +5 -7
- package/dist-lib/lib/tools/exec/adapters/shell/shell-adapter.js +3 -2
- package/dist-lib/lib/tools/exec/bare-runtime.js +2 -4
- package/dist-lib/lib/tools/exec/python-source.d.ts +6 -0
- package/dist-lib/lib/tools/exec/python-source.js +243 -0
- package/dist-lib/lib/tools/exec/runner.d.ts +24 -45
- package/dist-lib/lib/tools/exec/runner.js +70 -35
- package/dist-lib/lib/tools/exec/scope.d.ts +2 -1
- package/dist-lib/lib/tools/exec/scope.js +45 -105
- package/dist-lib/lib/tools/exec/shell-guidance.d.ts +11 -9
- package/dist-lib/lib/tools/exec/shell-guidance.js +30 -59
- package/dist-lib/lib/tools/exec/shell-line.d.ts +26 -0
- package/dist-lib/lib/tools/exec/shell-line.js +334 -0
- package/dist-lib/lib/tools/exec/video-tools.d.ts +0 -1
- package/dist-lib/lib/tools/exec/video-tools.js +0 -5
- package/dist-lib/lib/tools/exec.d.ts +10 -14
- package/dist-lib/lib/tools/exec.js +253 -468
- package/dist-lib/lib/tools/files/edit-file.d.ts +3 -0
- package/dist-lib/lib/tools/files/edit-file.js +74 -0
- package/dist-lib/lib/tools/files/glob.d.ts +3 -0
- package/dist-lib/lib/tools/files/glob.js +65 -0
- package/dist-lib/lib/tools/files/grep.d.ts +6 -0
- package/dist-lib/lib/tools/files/grep.js +212 -0
- package/dist-lib/lib/tools/files/index.d.ts +3 -0
- package/dist-lib/lib/tools/files/index.js +23 -0
- package/dist-lib/lib/tools/files/list-dir.d.ts +6 -0
- package/dist-lib/lib/tools/files/list-dir.js +136 -0
- package/dist-lib/lib/tools/files/make-dir.d.ts +3 -0
- package/dist-lib/lib/tools/files/make-dir.js +48 -0
- package/dist-lib/lib/tools/files/read-file.d.ts +3 -0
- package/dist-lib/lib/tools/files/read-file.js +105 -0
- package/dist-lib/lib/tools/files/transfer.d.ts +4 -0
- package/dist-lib/lib/tools/files/transfer.js +83 -0
- package/dist-lib/lib/tools/files/trash-file.d.ts +4 -0
- package/dist-lib/lib/tools/files/trash-file.js +62 -0
- package/dist-lib/lib/tools/files/write-file.d.ts +3 -0
- package/dist-lib/lib/tools/files/write-file.js +56 -0
- package/dist-lib/lib/tools/fs/document-text.d.ts +2 -0
- package/dist-lib/lib/tools/fs/document-text.js +38 -0
- package/dist-lib/lib/tools/fs/drive.d.ts +10 -14
- package/dist-lib/lib/tools/fs/drive.js +9 -1
- package/dist-lib/lib/tools/fs/edit-match.d.ts +11 -0
- package/dist-lib/lib/tools/fs/edit-match.js +153 -0
- package/dist-lib/lib/tools/fs/ignore.d.ts +13 -0
- package/dist-lib/lib/tools/fs/ignore.js +104 -0
- package/dist-lib/lib/tools/fs/local.js +28 -5
- package/dist-lib/lib/tools/fs/remote-protocol.d.ts +45 -3
- package/dist-lib/lib/tools/fs/remote-protocol.js +1 -1
- package/dist-lib/lib/tools/fs/remote.d.ts +3 -11
- package/dist-lib/lib/tools/fs/remote.js +24 -14
- package/dist-lib/lib/tools/fs/scope.d.ts +6 -1
- package/dist-lib/lib/tools/fs/scope.js +13 -5
- package/dist-lib/lib/tools/fs/search.d.ts +41 -0
- package/dist-lib/lib/tools/fs/search.js +383 -0
- package/dist-lib/lib/tools/fs/targets.d.ts +10 -0
- package/dist-lib/lib/tools/fs/targets.js +32 -0
- package/dist-lib/lib/tools/fs/tool-path.d.ts +27 -0
- package/dist-lib/lib/tools/fs/tool-path.js +70 -0
- package/dist-lib/lib/tools/fs/walk.d.ts +15 -3
- package/dist-lib/lib/tools/fs/walk.js +118 -24
- package/dist-lib/lib/tools/http-request.d.ts +1 -1
- package/dist-lib/lib/tools/http-request.js +14 -2
- package/dist-lib/lib/tools/index.d.ts +22 -0
- package/dist-lib/lib/tools/index.js +38 -0
- package/dist-lib/lib/tools/office/ops.d.ts +13 -0
- package/dist-lib/lib/tools/office/ops.js +100 -0
- package/dist-lib/lib/tools/office.d.ts +12 -0
- package/dist-lib/lib/tools/office.js +542 -0
- package/dist-lib/lib/tools/operations/compile.d.ts +3 -3
- package/dist-lib/lib/tools/operations/compile.js +2 -1
- package/dist-lib/lib/tools/operations/decoders.js +1 -1
- package/dist-lib/lib/tools/operations/manifest.d.ts +1 -1
- package/dist-lib/lib/tools/outbound-guard.d.ts +3 -1
- package/dist-lib/lib/tools/outbound-guard.js +4 -0
- package/dist-lib/lib/tools/pdf/build.d.ts +47 -0
- package/dist-lib/lib/tools/pdf/build.js +175 -0
- package/dist-lib/lib/tools/pdf/images.d.ts +7 -0
- package/dist-lib/lib/tools/pdf/images.js +82 -0
- package/dist-lib/lib/tools/pdf/request.d.ts +63 -0
- package/dist-lib/lib/tools/pdf/request.js +335 -0
- package/dist-lib/lib/tools/pdf.d.ts +6 -0
- package/dist-lib/lib/tools/pdf.js +318 -0
- package/dist-lib/lib/tools/skill.d.ts +2 -4
- package/dist-lib/lib/tools/skill.js +29 -28
- package/dist-lib/lib/tools/skills/auth-resolver.d.ts +1 -1
- package/dist-lib/lib/tools/skills/bundled-dir.js +4 -4
- package/dist-lib/lib/tools/skills/catalog.d.ts +11 -2
- package/dist-lib/lib/tools/skills/catalog.js +13 -9
- package/dist-lib/lib/tools/skills/cli-argv.js +25 -5
- package/dist-lib/lib/tools/skills/cli-schema-check.d.ts +1 -0
- package/dist-lib/lib/tools/skills/cli-schema-check.js +3 -0
- package/dist-lib/lib/tools/skills/cli-schema-load.js +10 -0
- package/dist-lib/lib/tools/skills/cli-schema-types.d.ts +2 -0
- package/dist-lib/lib/tools/skills/cli-schema.js +7 -4
- package/dist-lib/lib/tools/skills/credential-health.js +3 -3
- package/dist-lib/lib/tools/skills/frontmatter-parser.d.ts +4 -0
- package/dist-lib/lib/tools/skills/frontmatter-parser.js +6 -0
- package/dist-lib/lib/tools/skills/manifest-parse.d.ts +1 -0
- package/dist-lib/lib/tools/skills/manifest-parse.js +12 -0
- package/dist-lib/lib/tools/skills/mention-name.d.ts +6 -0
- package/dist-lib/lib/tools/skills/mention-name.js +6 -0
- package/dist-lib/lib/tools/skills/mention.d.ts +3 -4
- package/dist-lib/lib/tools/skills/mention.js +11 -7
- package/dist-lib/lib/tools/skills/overlay-crud.js +3 -2
- package/dist-lib/lib/tools/skills/scope-key.d.ts +2 -1
- package/dist-lib/lib/tools/skills/scope-key.js +2 -3
- package/dist-lib/lib/tools/skills/skill-state-constants.d.ts +1 -0
- package/dist-lib/lib/tools/skills/skill-state-constants.js +4 -0
- package/dist-lib/lib/tools/skills/skill-state.d.ts +2 -2
- package/dist-lib/lib/tools/skills/skill-state.js +11 -28
- package/dist-lib/lib/tools/toolsets.d.ts +3 -7
- package/dist-lib/lib/tools/toolsets.js +5 -9
- package/dist-lib/lib/tools/url-guard.d.ts +6 -1
- package/dist-lib/lib/tools/url-guard.js +8 -2
- package/dist-lib/lib/tools/web-fetch.d.ts +1 -1
- package/dist-lib/lib/tools/web-fetch.js +52 -10
- package/dist-lib/lib/web-fetch/embedded-state.js +1 -1
- package/dist-lib/lib/web-fetch/extract.js +1 -1
- package/dist-lib/lib/web-fetch/images.js +1 -1
- package/dist-lib/lib/web-fetch/video.js +1 -1
- package/dist-lib/lib/wire.d.ts +21 -0
- package/dist-lib/lib/wire.js +161 -5
- package/dist-lib/plugins/code-mode/index.d.ts +16 -0
- package/dist-lib/plugins/code-mode/index.js +43 -0
- package/dist-lib/plugins/coding/index.d.ts +15 -0
- package/dist-lib/plugins/coding/index.js +40 -0
- package/dist-lib/plugins/coding/jobs.d.ts +24 -0
- package/dist-lib/plugins/coding/jobs.js +144 -0
- package/dist-lib/plugins/coding/read-only.d.ts +1 -0
- package/dist-lib/plugins/coding/read-only.js +264 -0
- package/dist-lib/plugins/coding/session.d.ts +53 -0
- package/dist-lib/plugins/coding/session.js +292 -0
- package/dist-lib/plugins/command-hooks/index.d.ts +88 -0
- package/dist-lib/plugins/command-hooks/index.js +340 -0
- package/dist-lib/plugins/egress-proxy/index.d.ts +53 -0
- package/dist-lib/plugins/egress-proxy/index.js +184 -0
- package/dist-lib/plugins/external-agents/acp.d.ts +27 -0
- package/dist-lib/plugins/external-agents/acp.js +264 -0
- package/dist-lib/plugins/external-agents/cli.d.ts +3 -0
- package/dist-lib/plugins/external-agents/cli.js +199 -0
- package/dist-lib/plugins/external-agents/index.d.ts +25 -0
- package/dist-lib/plugins/external-agents/index.js +54 -0
- package/dist-lib/plugins/external-agents/process.d.ts +19 -0
- package/dist-lib/plugins/external-agents/process.js +92 -0
- package/dist-lib/plugins/external-agents/targets.d.ts +32 -0
- package/dist-lib/plugins/external-agents/targets.js +66 -0
- package/dist-lib/{lib/tools → plugins/image}/edit-image.d.ts +3 -2
- package/dist-lib/{lib/tools → plugins/image}/edit-image.js +11 -5
- package/dist-lib/{lib/tools → plugins/image}/generate-image.d.ts +10 -15
- package/dist-lib/{lib/tools → plugins/image}/generate-image.js +15 -15
- package/dist-lib/plugins/image/index.d.ts +25 -0
- package/dist-lib/plugins/image/index.js +84 -0
- package/dist-lib/plugins/knowledge/index.d.ts +21 -0
- package/dist-lib/plugins/knowledge/index.js +47 -0
- package/dist-lib/plugins/knowledge/search-tool.d.ts +4 -0
- package/dist-lib/plugins/knowledge/search-tool.js +38 -0
- package/dist-lib/plugins/knowledge/store.d.ts +42 -0
- package/dist-lib/plugins/knowledge/store.js +332 -0
- package/dist-lib/plugins/language-hint/index.d.ts +15 -0
- package/dist-lib/plugins/language-hint/index.js +54 -0
- package/dist-lib/plugins/lsp/index.d.ts +32 -0
- package/dist-lib/plugins/lsp/index.js +77 -0
- package/dist-lib/plugins/lsp/pool.d.ts +24 -0
- package/dist-lib/plugins/lsp/pool.js +73 -0
- package/dist-lib/plugins/lsp/rpc.d.ts +37 -0
- package/dist-lib/plugins/lsp/rpc.js +145 -0
- package/dist-lib/plugins/lsp/server.d.ts +55 -0
- package/dist-lib/plugins/lsp/server.js +192 -0
- package/dist-lib/plugins/lsp/tool.d.ts +12 -0
- package/dist-lib/plugins/lsp/tool.js +366 -0
- package/dist-lib/plugins/mcp/call.d.ts +17 -0
- package/dist-lib/{lib/tools/mcp-call.js → plugins/mcp/call.js} +92 -84
- package/dist-lib/plugins/mcp/index.d.ts +21 -0
- package/dist-lib/plugins/mcp/index.js +88 -0
- package/dist-lib/{lib/tools → plugins}/mcp/protocol.d.ts +9 -16
- package/dist-lib/{lib/tools → plugins}/mcp/protocol.js +3 -16
- package/dist-lib/plugins/mcp/server.d.ts +23 -0
- package/dist-lib/plugins/mcp/server.js +108 -0
- package/dist-lib/{lib/tools → plugins/music}/generate-music.d.ts +10 -17
- package/dist-lib/{lib/tools → plugins/music}/generate-music.js +12 -10
- package/dist-lib/plugins/music/index.d.ts +24 -0
- package/dist-lib/plugins/music/index.js +55 -0
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli-process.d.ts +2 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli-process.js +2 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli.d.ts +1 -1
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli.js +7 -7
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/command.js +2 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/guidance.d.ts +0 -1
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/guidance.js +0 -7
- package/dist-lib/plugins/obsidian/index.d.ts +26 -0
- package/dist-lib/plugins/obsidian/index.js +138 -0
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/note-name.js +2 -1
- package/dist-lib/{lib/tools/skills/obsidian-readiness.d.ts → plugins/obsidian/readiness.d.ts} +1 -0
- package/dist-lib/{lib/tools/skills/obsidian-readiness.js → plugins/obsidian/readiness.js} +7 -0
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/safe-path.js +5 -4
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-create.js +3 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-fs.js +2 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-paths.js +3 -2
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-read.js +20 -18
- package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-write.js +13 -12
- package/dist-lib/plugins/python/guarded-fetch.d.ts +14 -0
- package/dist-lib/plugins/python/guarded-fetch.js +36 -0
- package/dist-lib/plugins/python/index.d.ts +18 -0
- package/dist-lib/plugins/python/index.js +20 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/interrupt-timer.js +3 -3
- package/dist-lib/plugins/python/language.d.ts +8 -0
- package/dist-lib/plugins/python/language.js +377 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/loader.d.ts +2 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/loader.js +84 -4
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/memfs.js +4 -4
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/module-distributions.js +0 -3
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/pyodide.d.ts +1 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/pyodide.js +12 -11
- package/dist-lib/plugins/python/python-adapter.d.ts +41 -0
- package/dist-lib/plugins/python/python-adapter.js +517 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/run-session.d.ts +2 -2
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/run-session.js +28 -106
- package/dist-lib/plugins/python/shell-redirect.d.ts +8 -0
- package/dist-lib/plugins/python/shell-redirect.js +25 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/wheels.js +11 -7
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/active.js +2 -2
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/client.d.ts +1 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/client.js +14 -10
- package/dist-lib/plugins/python/worker/entry.d.ts +1 -0
- package/dist-lib/plugins/python/worker/entry.js +9 -0
- package/dist-lib/plugins/python/worker/interrupt-deadline.d.ts +1 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/interrupt-deadline.js +1 -1
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/protocol.d.ts +2 -0
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/serve.js +24 -5
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/spawn.d.ts +3 -1
- package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/spawn.js +9 -1
- package/dist-lib/plugins/quickjs/index.d.ts +20 -0
- package/dist-lib/plugins/quickjs/index.js +29 -0
- package/dist-lib/plugins/quickjs/language.d.ts +3 -0
- package/dist-lib/plugins/quickjs/language.js +59 -0
- package/dist-lib/plugins/quickjs/runtime.d.ts +38 -0
- package/dist-lib/plugins/quickjs/runtime.js +426 -0
- package/dist-lib/plugins/quickjs/text-decoder.d.ts +1 -0
- package/dist-lib/plugins/quickjs/text-decoder.js +15 -0
- package/dist-lib/plugins/run-report/brand.d.ts +1 -0
- package/dist-lib/plugins/run-report/brand.js +1 -0
- package/dist-lib/plugins/run-report/chain.d.ts +2 -0
- package/dist-lib/plugins/run-report/chain.js +73 -0
- package/dist-lib/plugins/run-report/flow-view.d.ts +6 -0
- package/dist-lib/plugins/run-report/flow-view.js +54 -0
- package/dist-lib/plugins/run-report/flow.d.ts +33 -0
- package/dist-lib/plugins/run-report/flow.js +253 -0
- package/dist-lib/plugins/run-report/index.d.ts +38 -0
- package/dist-lib/plugins/run-report/index.js +46 -0
- package/dist-lib/plugins/run-report/layout.d.ts +39 -0
- package/dist-lib/plugins/run-report/layout.js +175 -0
- package/dist-lib/plugins/run-report/meaning.d.ts +6 -0
- package/dist-lib/plugins/run-report/meaning.js +43 -0
- package/dist-lib/plugins/run-report/model.d.ts +95 -0
- package/dist-lib/plugins/run-report/model.js +393 -0
- package/dist-lib/plugins/run-report/page.d.ts +22 -0
- package/dist-lib/plugins/run-report/page.js +274 -0
- package/dist-lib/plugins/run-report/script.d.ts +1 -0
- package/dist-lib/plugins/run-report/script.js +935 -0
- package/dist-lib/plugins/run-report/story.d.ts +49 -0
- package/dist-lib/plugins/run-report/story.js +188 -0
- package/dist-lib/plugins/run-report/style.d.ts +1 -0
- package/dist-lib/plugins/run-report/style.js +536 -0
- package/dist-lib/plugins/run-report/why.d.ts +28 -0
- package/dist-lib/plugins/run-report/why.js +170 -0
- package/dist-lib/plugins/sandbox-linux/index.d.ts +62 -0
- package/dist-lib/plugins/sandbox-linux/index.js +354 -0
- package/dist-lib/plugins/sandbox-linux/seccomp.d.ts +2 -0
- package/dist-lib/plugins/sandbox-linux/seccomp.js +74 -0
- package/dist-lib/plugins/sandbox-macos/index.d.ts +62 -0
- package/dist-lib/plugins/sandbox-macos/index.js +370 -0
- package/dist-lib/plugins/sandbox-vm/index.d.ts +24 -0
- package/dist-lib/plugins/sandbox-vm/index.js +30 -0
- package/dist-lib/plugins/sandbox-vm/vm-shell.d.ts +48 -0
- package/dist-lib/plugins/sandbox-vm/vm-shell.js +111 -0
- package/dist-lib/plugins/sandbox-windows/helper/qvac-sandbox.c +554 -0
- package/dist-lib/plugins/sandbox-windows/index.d.ts +53 -0
- package/dist-lib/plugins/sandbox-windows/index.js +205 -0
- package/dist-lib/plugins/sandbox-windows/prebuilds/win32-arm64/qvac-sandbox.exe +0 -0
- package/dist-lib/plugins/sandbox-windows/prebuilds/win32-x64/qvac-sandbox.exe +0 -0
- package/dist-lib/{lib/capabilities → plugins/speech}/audio-resample.d.ts +1 -1
- package/dist-lib/{lib/capabilities → plugins/speech}/audio-resample.js +8 -8
- package/dist-lib/{lib → plugins/speech}/audio-transcode-bare.d.ts +1 -1
- package/dist-lib/{lib → plugins/speech}/audio-transcode-bare.js +24 -27
- package/dist-lib/{lib → plugins/speech}/audio-transcode-node.d.ts +1 -1
- package/dist-lib/{lib → plugins/speech}/audio-transcode-node.js +1 -3
- package/dist-lib/plugins/speech/index.d.ts +18 -0
- package/dist-lib/plugins/speech/index.js +31 -0
- package/dist-lib/plugins/speech/speech-engine.d.ts +23 -0
- package/dist-lib/plugins/speech/speech-engine.js +55 -0
- package/dist-lib/plugins/speech/speech-runtime.d.ts +22 -0
- package/dist-lib/plugins/speech/speech-runtime.js +212 -0
- package/dist-lib/{lib/capabilities → plugins/speech}/speech-text.d.ts +1 -0
- package/dist-lib/{lib/capabilities → plugins/speech}/speech-text.js +10 -3
- package/dist-lib/plugins/speech/voice-lane.d.ts +2 -0
- package/dist-lib/plugins/speech/voice-lane.js +9 -0
- package/dist-lib/plugins/speech/voice.d.ts +21 -0
- package/dist-lib/plugins/speech/voice.js +270 -0
- package/dist-lib/plugins/translation/index.d.ts +23 -0
- package/dist-lib/plugins/translation/index.js +74 -0
- package/dist-lib/{lib/models → plugins/translation}/nmt-catalog.d.ts +0 -1
- package/dist-lib/{lib/models → plugins/translation}/nmt-catalog.js +0 -3
- package/dist-lib/{lib/tools → plugins/translation}/translate.d.ts +23 -11
- package/dist-lib/{lib/tools → plugins/translation}/translate.js +81 -70
- package/dist-lib/plugins/walkie-talkie/crew.d.ts +27 -0
- package/dist-lib/plugins/walkie-talkie/crew.js +103 -0
- package/dist-lib/plugins/walkie-talkie/index.d.ts +127 -0
- package/dist-lib/plugins/walkie-talkie/index.js +348 -0
- package/dist-lib/plugins/walkie-talkie/wire.d.ts +72 -0
- package/dist-lib/plugins/walkie-talkie/wire.js +137 -0
- package/dist-lib/plugins/weather/geocode.d.ts +25 -0
- package/dist-lib/plugins/weather/geocode.js +102 -0
- package/dist-lib/plugins/weather/index.d.ts +15 -0
- package/dist-lib/plugins/weather/index.js +17 -0
- package/dist-lib/plugins/weather/lookup.d.ts +6 -0
- package/dist-lib/plugins/weather/lookup.js +170 -0
- package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/place.js +5 -1
- package/dist-lib/plugins/web-search/engine-registry.d.ts +44 -0
- package/dist-lib/plugins/web-search/engine-registry.js +17 -0
- package/dist-lib/{lib → plugins}/web-search/engines/aol.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/aol.js +5 -3
- package/dist-lib/{lib → plugins}/web-search/engines/bing.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/bing.js +11 -5
- package/dist-lib/{lib → plugins}/web-search/engines/brave.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/brave.js +5 -3
- package/dist-lib/{lib → plugins}/web-search/engines/duckduckgo.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/duckduckgo.js +5 -2
- package/dist-lib/{lib → plugins}/web-search/engines/google.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/google.js +8 -5
- package/dist-lib/{lib → plugins}/web-search/engines/wikipedia.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/wikipedia.js +5 -3
- package/dist-lib/{lib → plugins}/web-search/engines/yahoo.d.ts +1 -0
- package/dist-lib/{lib → plugins}/web-search/engines/yahoo.js +5 -3
- package/dist-lib/{lib → plugins}/web-search/fetch-html.d.ts +5 -5
- package/dist-lib/{lib → plugins}/web-search/fetch-html.js +13 -16
- package/dist-lib/plugins/web-search/index.d.ts +18 -0
- package/dist-lib/plugins/web-search/index.js +33 -0
- package/dist-lib/{lib → plugins}/web-search/orchestrator.d.ts +3 -1
- package/dist-lib/{lib → plugins}/web-search/orchestrator.js +5 -5
- package/dist-lib/plugins/web-search/tool.d.ts +3 -0
- package/dist-lib/{lib/tools/web-search.js → plugins/web-search/tool.js} +19 -14
- package/dist-lib/plugins/web-search/types.js +1 -0
- package/dist-lib/schema/generate.js +5 -2
- package/dist-lib/schema/harness.js +214 -10
- package/dist-lib/spec/bind.js +29 -4
- package/dist-lib/spec/calls.js +7 -0
- package/dist-lib/spec/hrpc/hrpc.json +91 -0
- package/dist-lib/spec/hrpc/index.js +87 -3
- package/dist-lib/spec/hrpc/messages.js +796 -55
- package/dist-lib/spec/hyperschema/index.js +796 -55
- package/dist-lib/spec/hyperschema/schema.json +601 -17
- package/dist-lib/spec/hyperschema/types.d.ts +137 -4
- package/package.json +442 -499
- package/patches/pyodide@314.0.2.patch +37 -8
- package/scripts/addon-externals.cjs +391 -0
- package/scripts/addon-externals.d.ts +30 -0
- package/wheels/manifest.json +1 -160
- package/worker/harness-sidecar.mjs +51 -166
- package/dist-lib/lib/capabilities/completion-engine/actors/inspect-preload.d.ts +0 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/inspect-preload.js +0 -75
- package/dist-lib/lib/capabilities/completion-engine/actors/preload-failure.d.ts +0 -9
- package/dist-lib/lib/capabilities/completion-engine/actors/preload-failure.js +0 -11
- package/dist-lib/lib/capabilities/completion-engine/actors/preloading.d.ts +0 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/preloading.js +0 -114
- package/dist-lib/lib/capabilities/completion-loop/index.d.ts +0 -80
- package/dist-lib/lib/capabilities/completion-loop/index.js +0 -158
- package/dist-lib/lib/capabilities/completion-loop/metrics.d.ts +0 -5
- package/dist-lib/lib/capabilities/completion-loop/metrics.js +0 -29
- package/dist-lib/lib/capabilities/completion-loop/round.d.ts +0 -33
- package/dist-lib/lib/capabilities/completion-loop/round.js +0 -353
- package/dist-lib/lib/capabilities/completion-loop/tool-execution.d.ts +0 -60
- package/dist-lib/lib/capabilities/completion-loop/turns.d.ts +0 -23
- package/dist-lib/lib/capabilities/completion-loop/turns.js +0 -112
- package/dist-lib/lib/capabilities/completion-runtime.d.ts +0 -46
- package/dist-lib/lib/capabilities/completion.d.ts +0 -18
- package/dist-lib/lib/capabilities/completion.js +0 -22
- package/dist-lib/lib/capabilities/voice.js +0 -199
- package/dist-lib/lib/helpers/recovery-required.d.ts +0 -1
- package/dist-lib/lib/helpers/recovery-required.js +0 -1
- package/dist-lib/lib/hooks/built-in/index.d.ts +0 -4
- package/dist-lib/lib/hooks/built-in/index.js +0 -4
- package/dist-lib/lib/hooks/pipeline.d.ts +0 -24
- package/dist-lib/lib/hooks/pipeline.js +0 -74
- package/dist-lib/lib/hooks/registry.d.ts +0 -2
- package/dist-lib/lib/hooks/registry.js +0 -7
- package/dist-lib/lib/hooks/types.d.ts +0 -69
- package/dist-lib/lib/machine/completion/actions/skills.d.ts +0 -9
- package/dist-lib/lib/machine/completion/actions/skills.js +0 -83
- package/dist-lib/lib/machine/engine.d.ts +0 -93
- package/dist-lib/lib/machine/guards.d.ts +0 -2
- package/dist-lib/lib/machine/guards.js +0 -6
- package/dist-lib/lib/office/pptx.d.ts +0 -1
- package/dist-lib/lib/office/pptx.js +0 -26
- package/dist-lib/lib/office/python.d.ts +0 -8
- package/dist-lib/lib/office/python.js +0 -32
- package/dist-lib/lib/office/xlsx.d.ts +0 -1
- package/dist-lib/lib/office/xlsx.js +0 -26
- package/dist-lib/lib/run-log-inspect.d.ts +0 -25
- package/dist-lib/lib/run-log-protocol.d.ts +0 -2
- package/dist-lib/lib/run-log-protocol.js +0 -1
- package/dist-lib/lib/tool-call-display.d.ts +0 -1
- package/dist-lib/lib/tools/create-documents.d.ts +0 -3
- package/dist-lib/lib/tools/create-documents.js +0 -95
- package/dist-lib/lib/tools/edit-documents.d.ts +0 -3
- package/dist-lib/lib/tools/edit-documents.js +0 -132
- package/dist-lib/lib/tools/exec/adapters/adapter.d.ts +0 -31
- package/dist-lib/lib/tools/exec/adapters/python/create-effect.d.ts +0 -7
- package/dist-lib/lib/tools/exec/adapters/python/create-effect.js +0 -318
- package/dist-lib/lib/tools/exec/adapters/python/python-adapter.d.ts +0 -89
- package/dist-lib/lib/tools/exec/adapters/python/python-adapter.js +0 -1371
- package/dist-lib/lib/tools/exec/adapters/python/worker/entry.js +0 -3
- package/dist-lib/lib/tools/exec/obsidian/route.d.ts +0 -17
- package/dist-lib/lib/tools/exec/obsidian/route.js +0 -91
- package/dist-lib/lib/tools/exec/shell-argv.d.ts +0 -2
- package/dist-lib/lib/tools/exec/shell-argv.js +0 -61
- package/dist-lib/lib/tools/file-glob.d.ts +0 -14
- package/dist-lib/lib/tools/file-glob.js +0 -117
- package/dist-lib/lib/tools/grep.d.ts +0 -5
- package/dist-lib/lib/tools/grep.js +0 -183
- package/dist-lib/lib/tools/mcp-call.d.ts +0 -14
- package/dist-lib/lib/tools/rag-search.d.ts +0 -2
- package/dist-lib/lib/tools/rag-search.js +0 -105
- package/dist-lib/lib/tools/read-files.d.ts +0 -5
- package/dist-lib/lib/tools/read-files.js +0 -156
- package/dist-lib/lib/tools/weather-lookup.d.ts +0 -8
- package/dist-lib/lib/tools/weather-lookup.js +0 -122
- package/dist-lib/lib/tools/web-search.d.ts +0 -6
- package/dist-lib/lib/web-search/engine-registry.d.ts +0 -7
- package/dist-lib/lib/web-search/engine-registry.js +0 -17
- package/patches/@qvac%2Finference@0.20.0.patch +0 -67
- package/patches/bare-stow@0.1.5.patch +0 -68
- package/patches/hypercore-blob-server@1.15.0.patch +0 -15
- package/wheels/cffi-2.0.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
- package/wheels/cryptography-47.0.0-cp314-abi3-pyemscripten_2026_0_wasm32.whl +0 -0
- package/wheels/defusedxml-0.7.1-py2.py3-none-any.whl +0 -0
- package/wheels/et_xmlfile-2.0.0-py3-none-any.whl +0 -0
- package/wheels/fonttools-4.62.1-py3-none-any.whl +0 -0
- package/wheels/fpdf2-2.8.8-py3-none-any.whl +0 -0
- package/wheels/lxml-6.0.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
- package/wheels/openpyxl-3.1.5-py2.py3-none-any.whl +0 -0
- package/wheels/pillow-12.2.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
- package/wheels/pycparser-3.0-py3-none-any.whl +0 -0
- package/wheels/pypdf-6.15.0-py3-none-any.whl +0 -0
- package/wheels/python_docx-1.2.0-py3-none-any.whl +0 -0
- package/wheels/python_pptx-1.0.2-py3-none-any.whl +0 -0
- package/wheels/six-1.17.0-py2.py3-none-any.whl +0 -0
- package/wheels/typing_extensions-4.15.0-py3-none-any.whl +0 -0
- package/wheels/xlsxwriter-3.2.9-py3-none-any.whl +0 -0
- /package/dist-lib/lib/{tools/skills → agent}/tool-grants.d.ts +0 -0
- /package/dist-lib/lib/{tools/skills → agent}/tool-grants.js +0 -0
- /package/dist-lib/lib/capabilities/{types.js → completion-engine/prepare-step.js} +0 -0
- /package/dist-lib/lib/{hooks/types.js → capabilities/completion-engine/stages.js} +0 -0
- /package/dist-lib/lib/{tool-call-display.js → contract/agent.js} +0 -0
- /package/dist-lib/lib/{tools/exec/adapters/adapter.js → contract/completion.js} +0 -0
- /package/dist-lib/lib/{tools/exec/adapters/python/worker/entry.d.ts → contract/drive.js} +0 -0
- /package/dist-lib/lib/{tools/exec/adapters/python/worker/interrupt-deadline.d.ts → contract/egress-proxy.js} +0 -0
- /package/dist-lib/lib/{web-search/types.js → contract/exec.js} +0 -0
- /package/dist-lib/lib/{capabilities/completion-engine → helpers}/abort-polyfill.d.ts +0 -0
- /package/dist-lib/lib/{capabilities/completion-engine → helpers}/abort-polyfill.js +0 -0
- /package/dist-lib/lib/{web-search → helpers}/html-helpers.d.ts +0 -0
- /package/dist-lib/lib/{web-search → helpers}/html-helpers.js +0 -0
- /package/dist-lib/lib/{tools → helpers}/model-args.d.ts +0 -0
- /package/dist-lib/lib/{tools → helpers}/model-args.js +0 -0
- /package/dist-lib/lib/{machine → helpers}/stable-stringify.d.ts +0 -0
- /package/dist-lib/lib/{web-search → helpers}/user-agents.d.ts +0 -0
- /package/dist-lib/lib/{web-search → helpers}/user-agents.js +0 -0
- /package/dist-lib/lib/{harness-lifecycle.d.ts → lifecycle/machine.d.ts} +0 -0
- /package/dist-lib/lib/tools/{exec/adapters/python → attachments}/output-policy.js +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/command.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/note-name.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/output.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/output.js +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/safe-path.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-create.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-fs.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-paths.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-read.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-write.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/deadline-state.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/deadline-state.js +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/distributions.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/distributions.js +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/interrupt-timer.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/memfs.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/module-distributions.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/named-hosts.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/named-hosts.js +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/net-shim.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/net-shim.js +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/wheels.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/active.d.ts +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/protocol.js +0 -0
- /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/serve.d.ts +0 -0
- /package/dist-lib/{lib/capabilities → plugins/speech}/speech-lexicon.d.ts +0 -0
- /package/dist-lib/{lib/capabilities → plugins/speech}/speech-lexicon.js +0 -0
- /package/dist-lib/{lib → plugins/speech}/wav-encode.d.ts +0 -0
- /package/dist-lib/{lib → plugins/speech}/wav-encode.js +0 -0
- /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/place.d.ts +0 -0
- /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/report.d.ts +0 -0
- /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/report.js +0 -0
- /package/dist-lib/{lib → plugins}/web-search/format-results.d.ts +0 -0
- /package/dist-lib/{lib → plugins}/web-search/format-results.js +0 -0
- /package/dist-lib/{lib → plugins}/web-search/merge-results.d.ts +0 -0
- /package/dist-lib/{lib → plugins}/web-search/merge-results.js +0 -0
- /package/dist-lib/{lib → plugins}/web-search/types.d.ts +0 -0
- /package/dist-lib/{lib → plugins}/web-search/url-helpers.d.ts +0 -0
- /package/dist-lib/{lib → plugins}/web-search/url-helpers.js +0 -0
- /package/dist-lib/{lib → plugins}/web-search/url-normalize.d.ts +0 -0
- /package/dist-lib/{lib → plugins}/web-search/url-normalize.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,183 +6,2092 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
While the major version is `0`, a breaking change bumps the minor version.
|
|
8
8
|
|
|
9
|
+
Each entry ends with the issue or pull request that made it. The examples call
|
|
10
|
+
a `Harness` named `harness` (or `spawnHarness` for a sidecar), in the shape the
|
|
11
|
+
API had in that release; a breaking change shows the call before and after.
|
|
12
|
+
|
|
9
13
|
## [Unreleased]
|
|
10
14
|
|
|
15
|
+
1.0 makes the harness a small core that plugins extend. Speech, translation,
|
|
16
|
+
image, music, weather, web search, Obsidian, Python and MCP are now plugins a
|
|
17
|
+
host composes as instances, and the harness builds `exec` from what they
|
|
18
|
+
declare. Runs gain handoffs, plans and goals, steering, deferred tools, a fold
|
|
19
|
+
for long chats and parallel decoding. [README.md](README.md) is the tour; every
|
|
20
|
+
breaking change is listed under Changed and Removed.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- The macOS and Linux sandboxes take `writable`: absolute folders every shell line may write on
|
|
25
|
+
top of the run's policy, for a toolchain cache outside the project such as Go's build cache.
|
|
26
|
+
The file tools never see them, they are made at setup if missing, and a denied root still wins.
|
|
27
|
+
`Policy.withWrites(policy, roots)` returns a compiled policy that may also write those roots.
|
|
28
|
+
- A call that fails three times in a row, such as a test command the model
|
|
29
|
+
keeps patching against, comes back with a note telling the model to step
|
|
30
|
+
back: re-read the output and the requirements, find what the failures share
|
|
31
|
+
and change approach. The note repeats every third failure and a success
|
|
32
|
+
clears the streak. `wording.toolFailing` replaces the text; `{count}` is the
|
|
33
|
+
streak length.
|
|
34
|
+
- `Tools.product` takes `files: false` to leave the file tools out, for a host
|
|
35
|
+
with no folder to share, such as a phone entry that composes its tools with
|
|
36
|
+
the mcp, web-search and weather plugins. `isDeviceSharedCredentialKey` from
|
|
37
|
+
`@qvac/harness/skill-state` names the first-party plugins' device-shared
|
|
38
|
+
credential keys for a client that has no skill readiness to read them from.
|
|
39
|
+
- `CompletionContext.modelRound` sends each `generating` and
|
|
40
|
+
`wrapping` model round to another device. It gets the request the local
|
|
41
|
+
round would send and streams `content` and `thinking` back through `emit`;
|
|
42
|
+
tools, the stop hook and `answering` stay on the run owner.
|
|
43
|
+
A run started with it pauses for it on resume. A paused or cancelled round,
|
|
44
|
+
local or remote, now ends at once even when the model sends nothing. See the
|
|
45
|
+
[decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
|
|
46
|
+
(#493)
|
|
47
|
+
- `ModelRoundIo.retake()` restarts a remote round when another host takes it:
|
|
48
|
+
the run emits `round-reset` for the round and the returned emitter carries
|
|
49
|
+
the new taker's chunks, while the earlier taker's late chunks are dropped.
|
|
50
|
+
The port resolves with the new taker's result. (#497)
|
|
51
|
+
- `harness.serveModelRound(request, io)` serves a model round on the model
|
|
52
|
+
host: it leases `request.modelId` and runs the same round a local
|
|
53
|
+
run does, with the context ladder and the forced-call fallback, and is
|
|
54
|
+
refused with `HARNESS_SUSPENDED` while suspended. Core sends it the
|
|
55
|
+
`ModelRoundRequest` whole. A remote round now answers an unclosed think from
|
|
56
|
+
the host's replay, and its request carries `unforced`. See the
|
|
57
|
+
[decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
|
|
58
|
+
(#541)
|
|
59
|
+
- A remote round crosses the wire on both sides. A `RemoteHarness` from
|
|
60
|
+
`spawnHarness`, `connectHarness` or `harnessChild` (the mobile worker) takes
|
|
61
|
+
`modelRound` and `roundCut` on the run owner, and serves
|
|
62
|
+
`serveModelRound(request, io)` on the model host, so neither device embeds a
|
|
63
|
+
second `Harness` beside its sidecar or worker. They ride the `completion`
|
|
64
|
+
stream as `model-round-*` and `round-cut` frames, and an abort crosses it as
|
|
65
|
+
the run's does. The `CAPABILITY_UNSUPPORTED` refusal from #542 is gone.
|
|
66
|
+
See the
|
|
67
|
+
[decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
|
|
68
|
+
(#542, #616)
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
const owner = spawnHarness(options)
|
|
72
|
+
owner.completion({ ...run, modelRound: (request, io) => host.serveModelRound(request, io) })
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- `ToolSets` names a round's tool set by hash, so a shared chat carries each
|
|
76
|
+
set's schemas once. A remote round's request now carries `toolSet`, the
|
|
77
|
+
`ToolSets.hash` of its `tools`, on every round that has tools. The run
|
|
78
|
+
owner writes the schemas only when its `ToolSets` cannot `resolve` the
|
|
79
|
+
hash, and a model host replays the chat into a `ToolSets` and resolves
|
|
80
|
+
each request's `toolSet` (#495).
|
|
81
|
+
|
|
82
|
+
```js
|
|
83
|
+
const tools = toolSets.resolve(request.toolSet)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- A turn's context is data the host can replay. A run reports what it added to
|
|
87
|
+
each user turn (its time, the knowledge it retrieved, a `promptSubmit` hook's
|
|
88
|
+
context) once, as a `context` event. A host stores it and sends it back as
|
|
89
|
+
that message's `context`, and the harness renders the turn byte for byte as
|
|
90
|
+
it was sent. With `replaysContext: true` such a run keeps its `cacheKey`. A
|
|
91
|
+
steer's or follow-up's `input` event now carries the words as typed (#494).
|
|
92
|
+
|
|
93
|
+
```js
|
|
94
|
+
{ role: 'user', content: 'How cold is it?', context: event.context }
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
- The `HarnessLog` class is the log's API, through statics:
|
|
98
|
+
`HarnessLog.warn('unload failed')`, `HarnessLog.setSink(sink)`,
|
|
99
|
+
`HarnessLog.setLevel('warn')`. The root names `hlog`, `harnessLog`,
|
|
100
|
+
`setHarnessLog`, `setHarnessLogLevel` and `setHarnessLogSink` stay and
|
|
101
|
+
call the statics; `hlog` logs at `info`. (#532)
|
|
102
|
+
- `LanguageHint` (`@qvac/harness/plugins/language-hint`): a prompt that is not
|
|
103
|
+
in English reaches the model with its language and its English, translated on
|
|
104
|
+
device, so a small model can route and call tools from it. It needs
|
|
105
|
+
`TranslationPlugin`, which now provides the `translation` service (#407).
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
new Harness({ plugins: [new TranslationPlugin(), new LanguageHint()] })
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
- An access policy: one optional `AccessPolicy` for files, network, Unix
|
|
112
|
+
sockets, exec, env and rules, with the presets `read-only`,
|
|
113
|
+
`workspace-write` and `full`. `HarnessOptions.policy` is the ceiling;
|
|
114
|
+
`AgentConfig.policy` (one `json` field on the wire) and
|
|
115
|
+
`CompletionContext.policy` (in-process only) only narrow it. The harness
|
|
116
|
+
compiles the three layers at run start; a grant outside the policy fails the
|
|
117
|
+
run before round 1. `files.write` bounds the write grants and grants
|
|
118
|
+
nothing itself. `Policy`, exported from `@qvac/harness`, narrows and
|
|
119
|
+
compiles one. (#388)
|
|
120
|
+
- Policy rules decide per call. A rule is
|
|
121
|
+
`{ decision, tool?, command?, paths?, hosts? }`: `command` is an argv
|
|
122
|
+
prefix matched against each simple command of a parsed shell line, `paths`
|
|
123
|
+
are globs and `hosts` are exact hosts or `*.example.com`. Any deny wins, a
|
|
124
|
+
line a rule cannot read asks, and a compound line is allowed only when
|
|
125
|
+
every part matches an `allow` rule. A tool with no rule for it is
|
|
126
|
+
unchanged. The built-in `PolicyRulesHook` evaluates them, appended after the
|
|
127
|
+
host's and the plugins' hooks of a run with rules; a tool exposes what it
|
|
128
|
+
matches through the new `ToolDefinition.command` and
|
|
129
|
+
`ToolDefinition.paths`. A malformed rule fails the run at start. (#390)
|
|
130
|
+
|
|
131
|
+
```js
|
|
132
|
+
const policy = {
|
|
133
|
+
rules: [
|
|
134
|
+
{ decision: 'allow', command: ['git', 'status'] },
|
|
135
|
+
{ decision: 'deny', command: ['rm'] },
|
|
136
|
+
{ decision: 'ask', tool: 'read_files', paths: ['/Users/u/.ssh/**'] }
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
harness.completion({ model, messages, agent: { ...agent, policy } })
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- `network.mode: 'hosts'` runs. `web_fetch`, `http_request`, a plugin tool's
|
|
143
|
+
fetch (MCP included) and Python reach only the hosts in `network.hosts`, on
|
|
144
|
+
every redirect hop; delegate's external targets need `mode: 'on'`. The new
|
|
145
|
+
`EgressProxy` plugin (`@qvac/harness/plugins/egress-proxy`) gives
|
|
146
|
+
`SeatbeltSandbox` a loopback proxy per call, and the profile allows no other
|
|
147
|
+
remote socket, so `SeatbeltSandbox` holds `hosts` while it is loaded and
|
|
148
|
+
names it in the refusal otherwise. The host shell refuses `hosts`.
|
|
149
|
+
`Policy.allowsHost` is the one matcher (exact or `*.example.com`) for rules
|
|
150
|
+
and `network.hosts`, and host lists narrow by coverage. A plugin may now
|
|
151
|
+
`wants` a service it uses only when present. (#389)
|
|
152
|
+
|
|
153
|
+
```js
|
|
154
|
+
const harness = new Harness({
|
|
155
|
+
exec: true,
|
|
156
|
+
policy: { network: { mode: 'hosts', hosts: ['pypi.org', '*.pythonhosted.org'] } },
|
|
157
|
+
plugins: [new SeatbeltSandbox(), new EgressProxy()]
|
|
158
|
+
})
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
- Plugins. `HarnessOptions.plugins` takes `HarnessPlugin` instances that add
|
|
162
|
+
tools, hooks, services, `exec` languages, routes and a shell, and tools only
|
|
163
|
+
`invoke` reaches (`PluginSetup.capabilities`). Setup gets `ctx.services`,
|
|
164
|
+
`ctx.onDispose`, `ctx.deniedRoots` and, for a tool that declares `egress`,
|
|
165
|
+
`ctx.fetch`; it may `need` the core's `models` service (`ModelHost`) and
|
|
166
|
+
return `unload()` and `unloadIdle()`. A plugin tool is a write unless the
|
|
167
|
+
host grants it in `read`.
|
|
168
|
+
`@qvac/harness/plugins` exports `PluginRegistry`. Every plugin but
|
|
169
|
+
`code-mode`, `lsp` and `python` has a `qvac-plugin-<name>` manifest to pack
|
|
170
|
+
on its own (none published yet); the export keys the plugins import are
|
|
171
|
+
internals, not a stable API. See [Plugins](README.md#plugins), the
|
|
172
|
+
[plugin framework](lib/plugins/README.md) and
|
|
173
|
+
[a custom plugin](examples/custom-plugin/README.md). (#171, #187, #284, #296,
|
|
174
|
+
#299)
|
|
175
|
+
- Agents that hand off. `CompletionContext.agents` holds the agents a run may
|
|
176
|
+
hand to; `transfer_to_agent` emits a `transfer` event (`TransferEvent`) and
|
|
177
|
+
the run goes on as the next agent's, each hop a run of its own, at most three
|
|
178
|
+
transfers. `AgentConfig.model` runs an agent on its own model, and `input`
|
|
179
|
+
reaches whichever hop is running. See
|
|
180
|
+
[Agents that hand off](README.md#agents-that-hand-off) and
|
|
181
|
+
[examples/handoffs](examples/handoffs/README.md). (#233, #247, #318)
|
|
182
|
+
- External agents on the user's own login. `login: 'user'` on an
|
|
183
|
+
`ExternalAgents` target runs a CLI the user signed in to, with no API key;
|
|
184
|
+
`'isolated'` stays the default. See
|
|
185
|
+
[Hand the hard parts to Claude Code](README.md#hand-the-hard-parts-to-claude-code)
|
|
186
|
+
and [plugins/external-agents](plugins/external-agents/README.md). (#319,
|
|
187
|
+
#328)
|
|
188
|
+
- MCP servers. `McpPlugin` from `@qvac/harness/plugins/mcp` adds each server's
|
|
189
|
+
tools as `<server>__<tool>`, each asking for approval; a server that fails or
|
|
190
|
+
does not answer in 10 s adds none. `auth: { tokenCredentialKey }` sends a
|
|
191
|
+
credential to that server only, and `generic: true` adds `mcp_call` and the
|
|
192
|
+
skill catalog's mcp operations. See [plugins/mcp](plugins/mcp/README.md).
|
|
193
|
+
(#277)
|
|
194
|
+
- Deferred tools. A `ToolDefinition` with `defer: true` (and an optional
|
|
195
|
+
`group`) is listed by name in `tool_search` until the model loads it, so the
|
|
196
|
+
prompt prefix stays cached as the tool list grows; `McpServerConfig.defer`
|
|
197
|
+
defers a whole server. See
|
|
198
|
+
[Large tool sets, on demand](README.md#large-tool-sets-on-demand). (#311)
|
|
199
|
+
- Coding on macOS. `CodingPlugin` adds `shell` (keeps cwd and exports between
|
|
200
|
+
calls) and `shell_jobs` (background jobs) in a `coding` toolset; file
|
|
201
|
+
writes come from the files toolset's `write_file`. They run in a `sandbox` service provider (`SandboxService`).
|
|
202
|
+
`SeatbeltSandbox` from `@qvac/harness/plugins/sandbox-macos` provides it, and
|
|
203
|
+
runs `exec`'s shell under `sandbox-exec` with a `read-only` or
|
|
204
|
+
`workspace-write` preset. It is not isolated, so every coding call asks. See
|
|
205
|
+
[Sandboxed code](README.md#sandboxed-code),
|
|
206
|
+
[plugins/coding](plugins/coding/README.md) and
|
|
207
|
+
[plugins/sandbox-macos](plugins/sandbox-macos/README.md). (#179, #254, #279,
|
|
208
|
+
#296, #320, #329)
|
|
209
|
+
- Exec confined on Windows. `AppContainerSandbox` runs `exec`'s shell lines in
|
|
210
|
+
an AppContainer through a small C helper, under the run's access policy:
|
|
211
|
+
writes only to the write roots, reads only what is granted, and the network
|
|
212
|
+
on or off. Loopback stays closed, and the helper's grants stay on the
|
|
213
|
+
granted folders. See [plugins/sandbox-windows](plugins/sandbox-windows/README.md).
|
|
214
|
+
(#386)
|
|
215
|
+
- Exec confined on Linux. `LinuxSandbox` runs `exec`'s shell lines under
|
|
216
|
+
bubblewrap, with mounts built from the run's access policy: writes only to
|
|
217
|
+
the write roots, reads only what a `files.read` list names, denied roots
|
|
218
|
+
masked, and with the network off a seccomp filter that closes every socket
|
|
219
|
+
connect. It provides the `sandbox` service `CodingPlugin` runs in. See
|
|
220
|
+
[plugins/sandbox-linux](plugins/sandbox-linux/README.md). (#385)
|
|
221
|
+
- More places to run code. `QuickJs` runs `exec` with `language: "javascript"`
|
|
222
|
+
in QuickJS WASM, with no files or network. `CodeMode` adds `run_code`, a
|
|
223
|
+
script that calls the run's other tools, for `mid` models and up
|
|
224
|
+
(`ToolDefinition.callsTools`, `minCapabilityProfile`). `VmShell` runs exec's
|
|
225
|
+
shell in a barevisor VM, and `Python` adds Pyodide. See
|
|
226
|
+
[plugins/quickjs](plugins/quickjs/README.md),
|
|
227
|
+
[plugins/code-mode](plugins/code-mode/README.md),
|
|
228
|
+
[plugins/sandbox-vm](plugins/sandbox-vm/README.md) and
|
|
229
|
+
[plugins/python](plugins/python/README.md). (#174, #178, #232, #237)
|
|
230
|
+
- Language servers. `LspPlugin` adds a read tool, `lsp` (`definition`,
|
|
231
|
+
`references`, `hover`, `symbols`, `diagnostics`), over the servers a host
|
|
232
|
+
configures. See [plugins/lsp](plugins/lsp/README.md). (#202)
|
|
233
|
+
- Knowledge. The `Knowledge` plugin keeps one index the host feeds through
|
|
234
|
+
`knowledgeUpsert`, `knowledgeRemove`, `knowledgeSearch` and
|
|
235
|
+
`knowledgeStatus`; `CompletionContext.knowledge = { scopes }` injects the hits
|
|
236
|
+
into the last user turn, and `tool: true` adds `knowledge_search`. See
|
|
237
|
+
[plugins/knowledge](plugins/knowledge/README.md). (#197)
|
|
238
|
+
- MOSS text-to-speech. `new Speech({ tts: 'moss' })` streams, clones a voice
|
|
239
|
+
from a 24 kHz `voice` wav, or speaks a `dialogue` of up to five speakers.
|
|
240
|
+
`Parakeet-TDT-1.1B-Q8_0` is a curated English-only transcription model; the
|
|
241
|
+
0.6B stays the default. A plugin that provides `speech` implements
|
|
242
|
+
`SpeechService.defaultModel(profile)`, which the core calls to pick the voice
|
|
243
|
+
model for a `speak` that names none. See
|
|
244
|
+
[plugins/speech](plugins/speech/README.md). (#312, #315)
|
|
245
|
+
- A `base` music choice runs the undistilled ACE-Step 1.5 base DiT, set as
|
|
246
|
+
`modelChoice` in the `generate_music` tool-config or `musicModel` when
|
|
247
|
+
spawning. It needs a GPU and is the slowest. See
|
|
248
|
+
[plugins/music](plugins/music/README.md). (#315)
|
|
249
|
+
- Plugin options for a spawned harness. `spawnHarness` and `harnessChild` take
|
|
250
|
+
`pluginOptions: { speech?, mcp?: { servers? } }` (`HarnessPluginOptions`), so
|
|
251
|
+
a sidecar host reaches MOSS and deferred MCP tools. See the
|
|
252
|
+
[decision record](docs/decisions/2026-10-07-a-spawned-harness-takes-plugin-options-in-one-slot.md).
|
|
253
|
+
(#322, #325)
|
|
254
|
+
- A spawned harness loads a third-party plugin. `@qvac/harness/sidecar`
|
|
255
|
+
exports `HarnessSidecar`, the sidecar's boot, and
|
|
256
|
+
`@qvac/harness/worker/harness-sidecar.mjs` exports `firstPartyPlugins`. A
|
|
257
|
+
host stows its own entry with both and its plugin, whose options travel
|
|
258
|
+
under its name in `pluginOptions`. See
|
|
259
|
+
[a custom plugin](examples/custom-plugin/README.md#a-spawned-harness). (#359)
|
|
260
|
+
|
|
261
|
+
```js
|
|
262
|
+
export default (ipc, ready) =>
|
|
263
|
+
HarnessSidecar.start(ipc, ready, (ctx) => {
|
|
264
|
+
const notes = ctx.pluginOptions.notes
|
|
265
|
+
return [...firstPartyPlugins(ctx), ...(notes ? [new Notes(notes)] : [])]
|
|
266
|
+
})
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
- Hooks reach further. New phases `promptSubmit`, `toolFailure`, `stop` and
|
|
270
|
+
`preFold`; `HarnessHook.matcher` and `timeoutMs`; results
|
|
271
|
+
`{ permission: 'allow' | 'deny' | 'ask' }`, `{ context }` and `{ halt }`
|
|
272
|
+
(a `HookHalt` failure). `CommandHooks` runs the command hooks of a Claude
|
|
273
|
+
Code `settings.json` as they are. See
|
|
274
|
+
[plugins/command-hooks](plugins/command-hooks/README.md). (#260, #261)
|
|
275
|
+
- Approval quote. `ToolDefinition.quote(args, ctx)` returns the confirmation a
|
|
276
|
+
person reads before an approvable call, such as its cost, and `ApproveFn`
|
|
277
|
+
receives it as `quote`. (#183)
|
|
278
|
+
- Plans and goals. The agent knob `plan` offers `update_plan`, a checklist kept
|
|
279
|
+
in the run; `planMode` refuses writes until a submitted plan is approved; and
|
|
280
|
+
`goal: { objective, rounds?, ms?, tokens? }` keeps a run going until every
|
|
281
|
+
step is done, emitting `goal` events whose `text` the host stores as a turn.
|
|
282
|
+
See [Plans and goals](README.md#plans-and-goals). (#234, #240)
|
|
283
|
+
- `RunGoal.checksProve`. A host whose `checks` prove the goal sets it, and the
|
|
284
|
+
goal is met once the plan is done and those checks pass, without asking the
|
|
285
|
+
model for a check of its own. Without `checks` it has no effect. (#599)
|
|
286
|
+
- Steering. `CompletionContext.input` sends `steer` and `follow-up` turns to a
|
|
287
|
+
running run, single or chained; each delivery emits an `input` event. See
|
|
288
|
+
[Steer a run while it works](README.md#steer-a-run-while-it-works). (#186,
|
|
289
|
+
#247)
|
|
290
|
+
- Fold. When the context runs short, older turns become one summary turn, and
|
|
291
|
+
`fold` `{ phase: 'done', summary, throughId, foldedTurns }` tells the host
|
|
292
|
+
what to store. It needs the new `ChatMessage.id`; a history without ids does
|
|
293
|
+
not fold; a host with a fold of its own, as qvac-core, turns it off. See the
|
|
294
|
+
[decision record](docs/decisions/2026-10-03-the-harness-decides-and-runs-the-fold.md).
|
|
295
|
+
(#241) A run also folds its own earlier rounds after the last user turn,
|
|
296
|
+
keeping the task, the latest plan, every `tool_search` and skill load and
|
|
297
|
+
the last two rounds. A round cut off at `length` forces a fold before the
|
|
298
|
+
next send, the wrap-up included. A fold of the run's own rounds emits no
|
|
299
|
+
`fold` event, and each one costs one cold prime of the folded history. The
|
|
300
|
+
wrap-up now carries `args.messages`, so in a multi-turn chat it can also fold
|
|
301
|
+
the host's turns (`foldChat`) and emit a host `fold` event (`start`, `done`),
|
|
302
|
+
at this new point in the run. See the
|
|
303
|
+
[decision record](docs/decisions/2026-10-13-a-run-folds-its-own-rounds.md).
|
|
304
|
+
(#446, #452)
|
|
305
|
+
- Exec output over `maxOutputChars` spills to a run-scoped file, and the marker
|
|
306
|
+
names it for `read_files`, when the run has `read_files`. `deniedRootsFor`
|
|
307
|
+
returns two roots, the storage root and the spill root. (#238)
|
|
308
|
+
- Run log. `RunLog.watch()` follows a run live as views or an inspector page,
|
|
309
|
+
and `RunLog.requests(core)` rebuilds every request the model saw. See
|
|
310
|
+
[examples/run-log](examples/run-log/README.md) and
|
|
311
|
+
[Resuming a completion](docs/resuming.md). (#235, #236)
|
|
312
|
+
- `bun run example run-log` is one CLI that opens a run from its run log file
|
|
313
|
+
or from the key of a run someone shares over Hyperswarm: `report` opens the
|
|
314
|
+
run report in the browser, `inspect` prints the raw log (`--html` for a
|
|
315
|
+
page, `--follow` to watch it grow), and `share` serves a run and prints its
|
|
316
|
+
key. It replaces `examples/run-log/report.ts`, `view.ts`, `live.ts` and
|
|
317
|
+
`inspect.ts`. (#408)
|
|
318
|
+
- `bun run example --report <file>` writes a run report page for each run an
|
|
319
|
+
example makes (its run log when the file ends in `.json`). `bun run example
|
|
320
|
+
--share` prints a key first, then streams every run to it as it goes, so
|
|
321
|
+
`run-log report <key>` or `run-log inspect <key> --follow` open it live.
|
|
322
|
+
`run-log report --live` serves a live run report on localhost that updates
|
|
323
|
+
in place, follows the newest step and run, and has a tab per run
|
|
324
|
+
(`RunReport.live`, `RunReport.parts`). Each example parses its own args, and
|
|
325
|
+
`bun run example <name> --help` lists them.
|
|
326
|
+
- Parallel. `ToolDefinition.concurrent` runs up to four opted-in reads of a
|
|
327
|
+
round together (`read_files`, `grep` and `file_glob` opt in). `slots` (or
|
|
328
|
+
`llm.slots` when spawned) lets one loaded model decode several completions at
|
|
329
|
+
once. See [Parallel](README.md#parallel) and
|
|
330
|
+
[examples/parallel](examples/parallel/README.md). (#193, #316, #333)
|
|
331
|
+
- `maxToolRounds` (default 10, in process and on the wire) sets a run's round
|
|
332
|
+
limit. `wording` (`toolContinuation`, `toolDenied`, `toolCutOff`,
|
|
333
|
+
`toolContextBoundary`, `toolRepeated`, `toolUnchanged`, `fileDelivered`,
|
|
334
|
+
`goalContinuation`) sets its model-facing text, in process only. A run that
|
|
335
|
+
wraps up after a delivered file ends with the `delivered` outcome. (#159,
|
|
336
|
+
#240, #317, #450, #453, #463)
|
|
337
|
+
- Speed. `metrics` adds `rounds[]`, `tools[]`, `modelMs` and `toolMs`. See
|
|
338
|
+
[Speed stats](docs/speed-stats.md). (#195) `metrics.outcome` names how the
|
|
339
|
+
run ended (its `RunOutcome`), and `rounds[].overflows` counts the prefills
|
|
340
|
+
the context overflowed before a round landed. (#442, #444)
|
|
341
|
+
`rounds[].contextBoundary` marks a round cut at the context window (#450),
|
|
342
|
+
and `rounds[].reasoningDeltas` counts its reasoning deltas, a cancelled round
|
|
343
|
+
included (#461, #484). A cancelled round carries `rawContentChars` and
|
|
344
|
+
`kind` (`streaming` or `wrap-up`). (#476, #480)
|
|
345
|
+
- `CompletionContext.budgetMs` sets one run's wall-clock budget, in process
|
|
346
|
+
only. A goal's `ms` wins, and a resume keeps the budget the run started
|
|
347
|
+
with. See the
|
|
348
|
+
[decision record](docs/decisions/2026-10-13-run-time-budget.md). (#442)
|
|
349
|
+
- `CompletionContext.roundCut` hands the host a `cut(note)`
|
|
350
|
+
that stops the tool round streaming now and keeps the run. The round's whole
|
|
351
|
+
calls run, a call it may have truncated is answered with
|
|
352
|
+
`wording.toolRoundCut`, and the note is the next user turn, acked by an
|
|
353
|
+
`input` event. The second cut in a row ends the run as `mute`. The bench
|
|
354
|
+
bridge cuts a round at its deadline instead of ending the run. See the
|
|
355
|
+
[decision record](docs/decisions/2026-10-15-a-host-cuts-a-round-and-the-run-goes-on.md).
|
|
356
|
+
(#462)
|
|
357
|
+
- `CompletionSdkResult.toolCallStream`, optional, streams a round's calls
|
|
358
|
+
before `final`. With it, a round that streams one call 3 times or 32 calls
|
|
359
|
+
is cancelled mid-stream. (#453)
|
|
360
|
+
- Model fit. `LoadedModel.fit` reports the engine's fit verdict, plan and bytes
|
|
361
|
+
in `diagnostics().models` and `model` events, and `list()` rows of curated
|
|
362
|
+
chat models not loaded carry `fit`, `fitBasis` and `fitEvidence`. A curated
|
|
363
|
+
chat model with no set context steps down to 32768, 16384 or 8192 when its
|
|
364
|
+
tier would not fit, and an embedding load that would not fit unloads idle
|
|
365
|
+
chat models. `llmLoad` passes llama.cpp load knobs. See
|
|
366
|
+
[Know how fast it is](README.md#know-how-fast-it-is) and
|
|
367
|
+
[examples/model-residency](examples/model-residency/README.md). (#194, #196,
|
|
368
|
+
#314)
|
|
369
|
+
- Tool replay. An assistant message may carry `toolCalls` and a `tool` message
|
|
370
|
+
`toolCallId` and `name`, so a follow-up is answered from an earlier turn's
|
|
371
|
+
results. Opt in; delete each chat's KV cache when it switches. See the
|
|
372
|
+
[decision record](docs/decisions/2026-10-02-a-host-replays-tool-turns-the-harness-renders-them.md).
|
|
373
|
+
(#169)
|
|
374
|
+
- Host building blocks. `Tools` from `@qvac/harness/tools` (`product`,
|
|
375
|
+
`deniedRoots`, `bundledSkillsDir`, `stageInputs`); `credentialSlots` from
|
|
376
|
+
`@qvac/harness/skill-manifest`; `@qvac/harness/addon-externals` with
|
|
377
|
+
`deferredAddonPackages`; and an `outbound` option on `CompletionEngine`. See
|
|
378
|
+
[Product tools and skills](docs/hosting.md#product-tools-and-skills) and
|
|
379
|
+
[Install](docs/hosting.md#install). (#166, #228, #273, #283, #317)
|
|
380
|
+
- `grep` runs on the host that holds a hyperdrive. A `grantedDrives` entry with
|
|
381
|
+
`search: true` gets a `search` op from `driveOp` and returns its hits inline,
|
|
382
|
+
so file bytes never cross to the harness. The host answers it with
|
|
383
|
+
`DriveSearch.answer(drive, request)`, where `drive` is the `Drive` its `list`
|
|
384
|
+
op already serves: a shallow list yields each subdirectory as
|
|
385
|
+
`{ key, dir: true }` and honours `skip`. Without the flag, `grep`
|
|
386
|
+
streams the drive as before; a failed search is the tool's error, never a
|
|
387
|
+
fallback. The host searches whole files, so results match streaming for
|
|
388
|
+
files under 8 MB; a line over 1 MB is searched in its first 1 MB on either
|
|
389
|
+
side. The regex runs in the host's process: a host that serves
|
|
390
|
+
untrusted regex calls the helper from a worker. On a sparse replica the
|
|
391
|
+
host still pulls the blocks from its peers. (#393)
|
|
392
|
+
|
|
393
|
+
```js
|
|
394
|
+
import { DriveSearch } from '@qvac/harness/lib/tools/fs/search.ts'
|
|
395
|
+
|
|
396
|
+
harness.completion({
|
|
397
|
+
grantedDrives: [{ key, writable: false, search: true }],
|
|
398
|
+
driveOp: (request) =>
|
|
399
|
+
request.op === 'search' ? DriveSearch.answer(drive, request) : other(request)
|
|
400
|
+
})
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
- A Node lane: `bun run test:node` runs the brittle suite under Node, and CI
|
|
404
|
+
runs it beside the Bare lane. (#535)
|
|
405
|
+
- The types a host needs to serve a granted drive and to manage skills are
|
|
406
|
+
exported from `@qvac/harness`: `GrantedDrive`, `DriveOpFn`, `DriveRequest`
|
|
407
|
+
and each request it unions, `DriveResponse`, `DriveEntry`, `DriveDir` and
|
|
408
|
+
`SearchHit`, and `ManagedSkill`, `SkillFileContent`, `CopyBaseResult` and
|
|
409
|
+
`DeleteOverlayResult`. The contract already takes or returns each of them,
|
|
410
|
+
but a host could only reach them through `./lib/tools/*`, which 1.0 no
|
|
411
|
+
longer exports. (#591)
|
|
412
|
+
|
|
413
|
+
```ts
|
|
414
|
+
import type { DriveOpFn, GrantedDrive, ManagedSkill } from '@qvac/harness'
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
- `grep` takes `output` (`content`, the default; `files`, the matching paths;
|
|
418
|
+
`count`, per file), and `limit` and `offset` to page past a cut-off answer.
|
|
419
|
+
A plain-text pattern can name alternatives as `a|b`, and a miss on a pattern
|
|
420
|
+
that looks like a regular expression says to set `regex: true`. (#628)
|
|
421
|
+
- `edit_file` answers a miss with the file's closest lines, numbered as
|
|
422
|
+
`read_file` shows them, so the next try can copy them; when the new text is
|
|
423
|
+
already in the file it says the edit looks done. Old text copied with
|
|
424
|
+
`read_file`'s line numbers matches without them. (#628)
|
|
425
|
+
- The coding plugin runs a shell line that only reads, such as `rg`, `grep`,
|
|
426
|
+
`sed -n` or `cat` with files inside the shared folder, without asking. Each
|
|
427
|
+
reader allows only flags known to shape output, and a run whose shell may
|
|
428
|
+
have moved (an earlier line other than a reader, or a `cwd`) asks again.
|
|
429
|
+
(#628)
|
|
430
|
+
- `generationParams.reasoning_rounds: 'plan'` thinks only where a plan is made
|
|
431
|
+
or remade: after the user speaks and after a round whose call failed. (#628)
|
|
432
|
+
- A host that runs the sidecar names a module in `QVAC_HARNESS_HOST_MODULE`,
|
|
433
|
+
an absolute path, whose `configureHarness(harness, log)` the sidecar calls
|
|
434
|
+
after the user plugins load; a module that fails stops the sidecar.
|
|
435
|
+
`QVAC_SDK_OPTIONS` names a JSON file of SDK options the sidecar adds to the
|
|
436
|
+
SDK config it writes. The `drive`, `remote`, `remote-protocol` and five skill
|
|
437
|
+
leaves under `@qvac/harness/lib/tools/` are exported for such a host. See the
|
|
438
|
+
[decision record](docs/decisions/2026-10-25-a-host-shapes-the-harness-through-a-named-module.md).
|
|
439
|
+
(#629)
|
|
440
|
+
|
|
441
|
+
### Changed
|
|
442
|
+
|
|
443
|
+
- A host reaches the drive protocol it serves, the skill catalog and the
|
|
444
|
+
user-plugin import map through named entries: `@qvac/harness/drive`
|
|
445
|
+
(`DriveRequest`, `DriveResponse`, `DriveEntry`, `GrantedDrive`, `DriveOpFn`,
|
|
446
|
+
`MAX_DRIVE_BYTES`), `@qvac/harness/skill-catalog` (`loadSkillCatalog`,
|
|
447
|
+
`availableSkills`) and `@qvac/harness/user-plugins` (`sharedImports`), and
|
|
448
|
+
`@qvac/harness/skill-manifest` adds `readSkillSetup`. `test/entry-weight.ts`
|
|
449
|
+
holds every named entry to a ceiling on the files importing it loads, so a
|
|
450
|
+
host that imports a constant never parses the engine. (#636)
|
|
451
|
+
|
|
452
|
+
- Every host that runs python, on Bare or Node, recopies
|
|
453
|
+
`patches/pyodide@314.0.2.patch` into its `patchedDependencies`. Guest Python
|
|
454
|
+
sees: `ctypes` calls to `emscripten_run_script*` do nothing and return 0, a
|
|
455
|
+
side module with `EM_JS` or `EM_ASM` is refused with `OSError`, `pyodide_js`
|
|
456
|
+
holds only the allowlisted members, and `loadPackage` takes lockfile names
|
|
457
|
+
only. A worker that boots an unpatched pyodide logs one line per process.
|
|
458
|
+
(#567, #586)
|
|
459
|
+
- **Breaking:** a plugin's dependencies are optional peer dependencies of
|
|
460
|
+
`@qvac/harness`, so installing the harness no longer installs any plugin's
|
|
461
|
+
native addons or libraries. A host installs the peers of the plugins it
|
|
462
|
+
imports; importing a plugin without them throws one error that names the
|
|
463
|
+
plugin and the packages. The shipped sidecar entry composes speech, image,
|
|
464
|
+
music, translation and python, so a host that spawns it installs their
|
|
465
|
+
peers; a host that wants fewer writes its own entry. See
|
|
466
|
+
[Plugin dependencies](docs/hosting.md#plugin-dependencies). (#626)
|
|
467
|
+
|
|
468
|
+
| Plugin | Peers |
|
|
469
|
+
| --------------- | ---------------------------------------------------------------------- |
|
|
470
|
+
| `speech` | `@qvac/asr-ggml`, `@qvac/tts-ggml`, `bare-ffmpeg` |
|
|
471
|
+
| `image` | `@qvac/diffusion-cpp`, `bare-image-resample`, `bare-media` |
|
|
472
|
+
| `music` | `@qvac/audiogen-ggml` |
|
|
473
|
+
| `translation` | `@qvac/translation-nmtcpp` |
|
|
474
|
+
| `python` | `pyodide` |
|
|
475
|
+
| `quickjs` | `@jitl/quickjs-singlefile-mjs-release-sync`, `quickjs-emscripten-core` |
|
|
476
|
+
| `egress-proxy` | `bare-net` |
|
|
477
|
+
| `run-report` | `elkjs` |
|
|
478
|
+
| `walkie-talkie` | `hyperswarm`, `hypercore-crypto` |
|
|
479
|
+
| `sandbox-vm` | `barevisor` |
|
|
480
|
+
|
|
481
|
+
```sh
|
|
482
|
+
# before: the harness installed every plugin's dependencies
|
|
483
|
+
npm i @qvac/harness
|
|
484
|
+
# after: a host spawning the shipped sidecar entry
|
|
485
|
+
npm i @qvac/harness @qvac/asr-ggml @qvac/tts-ggml bare-ffmpeg @qvac/diffusion-cpp \
|
|
486
|
+
bare-image-resample bare-media @qvac/audiogen-ggml @qvac/translation-nmtcpp pyodide
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
- **Breaking:** `@qvac/sdk` and the model addons are optional peer
|
|
490
|
+
dependencies of `@qvac/harness`, so installing the harness installs no model
|
|
491
|
+
engine. Each belongs to the capability that loads it: on Bare, completion
|
|
492
|
+
needs `@qvac/llm-llamacpp` and `@qvac/langdetect-text`, embeddings and the
|
|
493
|
+
`knowledge` plugin need `@qvac/embed-llamacpp`; on Node every capability
|
|
494
|
+
needs `@qvac/sdk`, which brings its own addons. A missing one throws where
|
|
495
|
+
the capability loads, naming the capability and the packages; the harness
|
|
496
|
+
entry imports without any of them. Speech and music add `@qvac/decoder-audio`
|
|
497
|
+
to their peers, and translation and `language-hint` add
|
|
498
|
+
`@qvac/langdetect-text`. The core and the plugins import the engine's
|
|
499
|
+
plugins and model catalog from `@qvac/inference`, a dependency, not through
|
|
500
|
+
`@qvac/sdk`. See [Model dependencies](docs/hosting.md#model-dependencies).
|
|
501
|
+
(#630)
|
|
502
|
+
|
|
503
|
+
```sh
|
|
504
|
+
# a desktop host on Node
|
|
505
|
+
npm i @qvac/harness @qvac/sdk @qvac/llm-llamacpp @qvac/embed-llamacpp @qvac/langdetect-text
|
|
506
|
+
# a phone app running completion on a Bare thread
|
|
507
|
+
npm i @qvac/harness @qvac/llm-llamacpp @qvac/langdetect-text
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
- **Breaking:** `harness.detectLanguage` returns a promise, since it loads the
|
|
511
|
+
detector on first use. (#630)
|
|
512
|
+
|
|
513
|
+
```js
|
|
514
|
+
// before
|
|
515
|
+
const [best] = harness.detectLanguage({ text })
|
|
516
|
+
// after
|
|
517
|
+
const [best] = await harness.detectLanguage({ text })
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
- `bare-worker` is pinned to 4.5.0 and `bare-module` is a dependency at
|
|
521
|
+
`~7.1.0`, so a host's install resolves a `bare-module` that runs on Bare
|
|
522
|
+
1.34: `bare-worker` 4.5.3 asks for `bare-module` 7.4, and npm gives it 7.5,
|
|
523
|
+
which needs Bare 1.35. (#630)
|
|
524
|
+
- The `sandbox-vm` plugin (`VmShell`, `./plugins/sandbox-vm`) is back, with
|
|
525
|
+
`barevisor` an optional peer instead of a dependency every host installed.
|
|
526
|
+
(#626)
|
|
527
|
+
- Every skill-gated tool (`docx`, `pptx`, `xlsx`, `pdf`, `generate_image`, …),
|
|
528
|
+
`http_request` and every MCP server's tools are deferred behind
|
|
529
|
+
`tool_search`. The sent tool set is fixed per chat, so a skill load no longer
|
|
530
|
+
re-primes the prompt cache: it appends the loads of the tools it grants. A
|
|
531
|
+
direct call to a deferred tool loads it and runs in the same round instead of
|
|
532
|
+
being refused. An MCP server sets `defer: false` to send its schemas whole.
|
|
533
|
+
`skill-eval` gains `--defer`. (#566)
|
|
534
|
+
- **Breaking:** `engines.node` is `^22.21.0 || >=24.9.0`. A Node host outside
|
|
535
|
+
that range crashed with `SIGSEGV` in `spawnHarness`; npm now warns at install.
|
|
536
|
+
See [On Node](docs/hosting.md#on-node). (#553)
|
|
537
|
+
- **Breaking** for guest Python that imports from `js`: the `js` module holds
|
|
538
|
+
only the names in `JS_GLOBALS`, and the python worker seals the `Function`,
|
|
539
|
+
`AsyncFunction` and generator constructors after boot. `pyodide_js` holds
|
|
540
|
+
only what pyodide's Python and micropip import, with no `FS` or
|
|
541
|
+
`mountNodeFS`, and the pyodide patch turns the `emscripten_run_script*` and
|
|
542
|
+
`EM_JS`/`EM_ASM` routes into no-ops or refusals. `pyodide.code.run_js` raises
|
|
543
|
+
in the guest. See
|
|
544
|
+
[the decision record](docs/decisions/2026-10-20-guest-python-sees-only-allowlisted-js-globals.md).
|
|
545
|
+
(#554, #567)
|
|
546
|
+
- **Breaking** for a TypeScript host that reads it: `inference-sent` no longer
|
|
547
|
+
carries `messages`. `@qvac/inference` 0.22 does not report the slice it
|
|
548
|
+
pushed, so the field was always empty; a prompt inspector reads the payload
|
|
549
|
+
from `inference-call` and the cached share from `tokens.cached`. (#557)
|
|
550
|
+
- **Breaking** for a host that injects an SDK through `HarnessOptions.sdkLoader`:
|
|
551
|
+
`CompletionSdkResult` carries `events`, an `AsyncIterable` of the SDK's own
|
|
552
|
+
`CompletionEvent`, in place of the deprecated `tokenStream`. The harness
|
|
553
|
+
reads its `contentDelta` events as the reply text. (#510)
|
|
554
|
+
- **Breaking** for a caller that matches a fetch refusal as a `TypeError`:
|
|
555
|
+
every plugin fetch refusal (the guarded fetch, the Python sandbox's, and the
|
|
556
|
+
network-off and no-fetch refusals) is a `HarnessError('FETCH_REFUSED')`.
|
|
557
|
+
Match with `instanceof` or the code. (#506)
|
|
558
|
+
- **Breaking:** `isHarnessError(err, name)`, `harnessErrorCode(name)` and
|
|
559
|
+
`harnessErrorCodes()` from `@qvac/harness/errors` are the `HarnessError`
|
|
560
|
+
statics `HarnessError.is`, `HarnessError.code` and `HarnessError.codes`.
|
|
561
|
+
(#512)
|
|
562
|
+
- **Breaking:** the message constants `CONTEXT_OVERFLOW_MESSAGE`,
|
|
563
|
+
`IMAGE_LOAD_STALL_ERROR`, `TRANSLATION_LOAD_STALL_ERROR` and
|
|
564
|
+
`NO_STORAGE_ROOT` are `HarnessError` statics. `@qvac/harness/errors`,
|
|
565
|
+
`@qvac/harness/plugins/image` and the fs scope module no longer export them.
|
|
566
|
+
The package root keeps `CONTEXT_OVERFLOW_MESSAGE`. The text is unchanged.
|
|
567
|
+
|
|
568
|
+
```js
|
|
569
|
+
// before
|
|
570
|
+
import { IMAGE_LOAD_STALL_ERROR } from '@qvac/harness/plugins/image'
|
|
571
|
+
if (result.error === IMAGE_LOAD_STALL_ERROR) retry()
|
|
572
|
+
|
|
573
|
+
// after
|
|
574
|
+
import { HarnessError } from '@qvac/harness/errors'
|
|
575
|
+
if (result.error === HarnessError.IMAGE_LOAD_STALL_ERROR) retry()
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
(#552)
|
|
579
|
+
|
|
580
|
+
- `SeatbeltSandbox.setup()` runs `/usr/bin/getconf DARWIN_USER_TEMP_DIR` and
|
|
581
|
+
throws when it fails. A copy of the user's xcrun cache into a scratch `TMPDIR`
|
|
582
|
+
that fails for any reason but a missing cache fails that exec call, or the
|
|
583
|
+
workspace `open`. See the
|
|
584
|
+
[decision record](docs/decisions/2026-10-14-seatbelt-seeds-tmpdir-with-a-copy-of-the-xcrun-cache.md).
|
|
585
|
+
(#467)
|
|
586
|
+
- Identical calls in one round run once, writes included: two `echo x >> f`
|
|
587
|
+
in one round append once. One tool turn worded by `wording.toolRepeated`
|
|
588
|
+
tells the model. A runaway round, 3 repeats of one call or 32 calls, is
|
|
589
|
+
cancelled on its calls. `<tool_call>` markup left in a round's content, as in
|
|
590
|
+
a wrap-up or a frame the SDK did not parse, counts toward the same limits.
|
|
591
|
+
See the
|
|
592
|
+
[decision record](docs/decisions/2026-10-13-a-round-runs-each-call-once.md).
|
|
593
|
+
(#453, #480)
|
|
594
|
+
- A response cut off by the length limit runs its complete calls; only the
|
|
595
|
+
call the cut truncated is answered, and a truncated call to a tool that is
|
|
596
|
+
not loaded is answered as cut. A cut at a `predict` cap gets
|
|
597
|
+
`wording.toolCutOff`; any other `length` cut gets
|
|
598
|
+
`wording.toolContextBoundary`, which says the context window filled before
|
|
599
|
+
the arguments were complete. (#155, #450, #454, #458)
|
|
600
|
+
- With tools on, a prose round cut at the context window is retried with the
|
|
601
|
+
history folded, or wrapped up, instead of answered with its fragment. A cut
|
|
602
|
+
at a `predict` cap (`contextBoundary: false`), or a round with
|
|
603
|
+
no tools, keeps the fragment. `round-reset` fires only when the round is
|
|
604
|
+
retried or wrapped. (#456, #483)
|
|
605
|
+
- The round sets `contextBoundary` on every `length` stop: `true` at the
|
|
606
|
+
context window, `false` at a `predict` cap. Every round, the wrap-up
|
|
607
|
+
included, reads a stop flagged `false` as the output cap and any other
|
|
608
|
+
`length` stop as the context window: a cut call gets
|
|
609
|
+
`wording.toolContextBoundary`, a cut prose round with tools on is retried
|
|
610
|
+
with a fold, a wrap-up answers with the fallback and emits `round-reset`, and
|
|
611
|
+
`RoundSpeed.contextBoundary` is `true`. A stop flagged as the cap no longer
|
|
612
|
+
makes the next round fold. (#450, #481, #485, #488, #647)
|
|
613
|
+
- A host that runs python on Node recopies `patches/pyodide@314.0.2.patch`
|
|
614
|
+
into its `patchedDependencies`. Pyodide now loads `child-process-stub.cjs`
|
|
615
|
+
by path, so guest `os.system` cannot spawn a process on Node either. A Bare
|
|
616
|
+
host needs nothing: the old patch already gave it the stub. #554 later closed
|
|
617
|
+
the `js` route to the host realm, and #567 changed the patch again for every
|
|
618
|
+
host. (#535)
|
|
619
|
+
- A call whose result is the same as its last result in the run is not
|
|
620
|
+
progress: its result carries `wording.toolUnchanged`, and 3 such calls send
|
|
621
|
+
the run to the wrap-up with the `exhausted` outcome. A round whose sent
|
|
622
|
+
history rewrote earlier turns (a fold, a ladder drop, a compaction) clears
|
|
623
|
+
what the run settled, so a re-read after it is new. The result digest is
|
|
624
|
+
keyed by the run key, so digests in run logs written before this change
|
|
625
|
+
differ. See the
|
|
626
|
+
[decision record](docs/decisions/2026-10-14-an-unchanged-result-is-not-progress.md).
|
|
627
|
+
(#463, #464, #465)
|
|
628
|
+
- One call that returns the same result 4 times in a row ends the run in the
|
|
629
|
+
wrap-up with the `exhausted` outcome, even when other calls progressed in
|
|
630
|
+
between. The unchanged note counts the runs: `wording.toolUnchanged` replaces
|
|
631
|
+
`{count}`. A goal run ends after this wrap-up with the new `GoalStatus`
|
|
632
|
+
`stalled`, instead of taking another goal turn. See the
|
|
633
|
+
[decision record](docs/decisions/2026-10-15-a-call-that-keeps-returning-the-same-result-ends-the-run.md).
|
|
634
|
+
(#499)
|
|
635
|
+
- A new result from any call restarts the unchanged count of every call, and a
|
|
636
|
+
result that prints nothing is never unchanged. An edit between two runs of one
|
|
637
|
+
check no longer counts toward the stop. (#508)
|
|
638
|
+
- A goal can name `checks`, the commands its result is judged by. The goal is
|
|
639
|
+
met only when the plan is done and the latest run of each check exited 0; a
|
|
640
|
+
run that names the check in a call's `command` with only `&&` after it counts.
|
|
641
|
+
Until then each goal turn names the checks not run yet and carries the output
|
|
642
|
+
tail of a failed one, and a run that spends its budget with a check failing
|
|
643
|
+
ends `rounds`, `time` or `tokens`, not `met`. The Terminal-Bench agent sends
|
|
644
|
+
the verify scripts and test runners its instruction names that the container
|
|
645
|
+
has, and returns `exitCode`, so a failing command is a failed call; its log
|
|
646
|
+
rows keep `return_code`, and the report adds `checkerRan` and
|
|
647
|
+
`checkerPassed`. (#530)
|
|
648
|
+
- A goal with no `checks` is no longer met on the model's word when the run
|
|
649
|
+
offers a tool that takes a `command`. Before its first turn, and on each goal
|
|
650
|
+
turn until it does, the model is asked to name the commands that prove the
|
|
651
|
+
task done under a `Checks:` line; the first turn that names them sets the
|
|
652
|
+
goal's checks, and the goal is met only once each ran and exited 0. A model
|
|
653
|
+
that names none runs the goal to its budget. The Terminal-Bench agent, when
|
|
654
|
+
its instruction names no check it can find, sends `test -s <path>` for each
|
|
655
|
+
absolute path the instruction asks it to write. A `goal` event names the
|
|
656
|
+
goal's checks in `checks` once it has some, the bench bridge's done frame
|
|
657
|
+
carries them in `goal.checks`, and the Terminal-Bench trial row keeps them as
|
|
658
|
+
`checks`. (#550)
|
|
659
|
+
- Breaking for hosts that send `checks`: passing host checks alone no longer
|
|
660
|
+
meet a checkable goal. The model must name a check of its own under a
|
|
661
|
+
`Checks:` line, and one that repeats a host check does not count. A host
|
|
662
|
+
whose checks do prove the task, such as qvac-core, sets
|
|
663
|
+
`goal.checksProve: true` (#599). (#595)
|
|
664
|
+
- A round of unchanged calls counts once toward the stop for runs with no new
|
|
665
|
+
result, not once per call. Three such rounds in a row end the run, so one
|
|
666
|
+
sweep of re-checks with nothing new no longer ends a goal run as `stalled`. (#509)
|
|
667
|
+
- A fold, a forced fold, a ladder drop or a compaction no longer restarts the
|
|
668
|
+
unchanged count. A call that returns the same result and folds every few rounds
|
|
669
|
+
now ends the run at its fourth identical run. The re-read after a fold carries
|
|
670
|
+
no unchanged note and no progress credit. (#507)
|
|
671
|
+
- A wrap-up cut off at the context window answers with the fallback instead of
|
|
672
|
+
its fragment and emits `round-reset` for what it streamed; a wrap-up
|
|
673
|
+
cut at its `predict` cap (`contextBoundary: false`) keeps its
|
|
674
|
+
text as the answer. The run's outcome does not
|
|
675
|
+
change. The wrap-up sends `predict` as `reasoning_budget + 4096`; a host
|
|
676
|
+
`predict` wins. (#452, #480)
|
|
677
|
+
- The bench bridge sends `thinkingDefault: 'enabled'`, so a model without a
|
|
678
|
+
preset gets the 8192 reasoning cap. (#461)
|
|
679
|
+
- A wrap-up's answer no longer overwrites why the run wrapped: `hook:runEnd`
|
|
680
|
+
and the persisted context keep `exhausted`, `time-capped` or `mute`. (#442)
|
|
681
|
+
- The default `goalContinuation` nudge says to mark a step done only once a
|
|
682
|
+
tool result shows it, and to make the last step a check of the whole result
|
|
683
|
+
with a tool. (#447)
|
|
684
|
+
- `exec` refuses an unterminated quote and `let`, `declare`, `typeset`,
|
|
685
|
+
`local`, `export`, `readonly`, `read`, `unset` or `printf -v` given `$` or a
|
|
686
|
+
backtick, whose subscript bash evaluates. With the network off it also
|
|
687
|
+
refuses a program name the shell still expands, such as `{curl,x}`. (#390)
|
|
688
|
+
|
|
689
|
+
- **Breaking:** a `driveOp` host answers the new `recursive` field of a `list`
|
|
690
|
+
request. With `recursive: false` it lists only the folder's direct children,
|
|
691
|
+
each subdirectory as `{ key, dir: true }` in `entries`, and `skip` names a
|
|
692
|
+
child to leave out. The walk behind `grep` and `file_glob` lists one
|
|
693
|
+
directory at a time this way, so it never lists an ignored tree. (#391)
|
|
694
|
+
|
|
695
|
+
```js
|
|
696
|
+
// before
|
|
697
|
+
{ op: 'list', driveKey, folder, skip, limit, cursor }
|
|
698
|
+
// after
|
|
699
|
+
{ op: 'list', driveKey, folder, skip, recursive: false, limit, cursor }
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
- `grep` and `file_glob` skip what `.gitignore` and `.ignore` files exclude,
|
|
703
|
+
and the `.hg`, `.svn`, `.venv`, `.cache` and `.next` directories, so an
|
|
704
|
+
ignored build tree no longer fills the walk's entry cap. `includeIgnored: true`
|
|
705
|
+
searches them too; `.git` and `node_modules` stay skipped. POSIX classes such
|
|
706
|
+
as `[[:alpha:]]`, `.git/info/exclude` and global excludes are not read. (#391)
|
|
707
|
+
- `grep` searches raw bytes and decodes only the line around a hit, runs its
|
|
708
|
+
queries as one regex, and reads up to 8 files at once; hits keep the walk's
|
|
709
|
+
order and the match cap stops at the same hit. A trailing newline no longer
|
|
710
|
+
adds an empty last line for `^$` or `.*` to match, a NUL in the first 1024
|
|
711
|
+
bytes marks a file binary before any hit counts, and case-insensitive
|
|
712
|
+
literals fold as the regex `i` flag does: ASCII as before, but the Kelvin
|
|
713
|
+
sign no longer matches `k`. (#392)
|
|
714
|
+
- **Breaking:** `network: { mode: 'off' }` in the agent's or the run's policy
|
|
715
|
+
replaces `sandboxMode`. It withholds the network toolsets and keeps exec,
|
|
716
|
+
python, plugin fetches and external delegate targets offline, as before.
|
|
717
|
+
A tool reads the compiled policy in `ctx.policy`, an exec shell in
|
|
718
|
+
`ExecutionContext.policy`, and a `preToolCall` hook reads `ctx.network`.
|
|
719
|
+
`agent-knobs.sandboxMode` stays on the wire, never read or written. (#388)
|
|
720
|
+
|
|
721
|
+
```js
|
|
722
|
+
// before
|
|
723
|
+
harness.completion({ model, messages, agent: { ...agent, sandboxMode: true } })
|
|
724
|
+
// after
|
|
725
|
+
harness.completion({ model, messages, agent: { ...agent, policy: { network: { mode: 'off' } } } })
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
- **Breaking:** `SeatbeltSandbox` takes only `{ sandboxExec }`. What a line may
|
|
729
|
+
touch comes from the run's compiled policy, per call and at
|
|
730
|
+
`SandboxService.open(dir, policy)`: the write grants (`files.write` only
|
|
731
|
+
bounds them), `files.deny`, the network, and with the network off the listed `sockets`,
|
|
732
|
+
`localhost` and `bind`; `env` drops names from the spawn allowlist. Its shell
|
|
733
|
+
is named `seatbelt`. A provider declares `enforces` on its `ExecShell` or
|
|
734
|
+
`SandboxService`, and the harness refuses a run whose policy one cannot hold
|
|
735
|
+
before round 1: Seatbelt refuses a `files.read` list, a `hosts` network
|
|
736
|
+
mode, and `localhost: false`, `bind: false` or `sockets` under `on`, and the host shell an `env` or `exec` list. `VmShell` holds any
|
|
737
|
+
policy. `ExecutionContext.writeRoots` and `deniedRoots` moved into
|
|
738
|
+
`ExecutionContext.policy`. (#388)
|
|
739
|
+
|
|
740
|
+
```js
|
|
741
|
+
// before
|
|
742
|
+
new Harness({
|
|
743
|
+
exec: true,
|
|
744
|
+
plugins: [new SeatbeltSandbox({ preset: 'workspace-write', network: false })]
|
|
745
|
+
})
|
|
746
|
+
// after
|
|
747
|
+
new Harness({
|
|
748
|
+
exec: true,
|
|
749
|
+
policy: { preset: 'workspace-write' },
|
|
750
|
+
plugins: [new SeatbeltSandbox()]
|
|
751
|
+
})
|
|
752
|
+
```
|
|
753
|
+
|
|
754
|
+
- **Breaking:** plugins are an array of instances, and the harness builds
|
|
755
|
+
`exec` from what they declare. `PluginEntry`, `{ plugin, config, read }` and
|
|
756
|
+
the `config` argument of `validate` and `setup` are gone: options and the
|
|
757
|
+
`read` grant go to the constructor. With `exec: true` and `sdkHome`, the
|
|
758
|
+
harness builds `exec` from each plugin's `PluginSetup.exec`; two shells, or a
|
|
759
|
+
host `exec` tool beside a contributing plugin, fail the start. (#269, #273)
|
|
760
|
+
|
|
761
|
+
```js
|
|
762
|
+
// before
|
|
763
|
+
new Harness({
|
|
764
|
+
tools: [createExecTool({ deniedRoots, skillsDir, languages, routes }), ...tools],
|
|
765
|
+
plugins: [
|
|
766
|
+
{ plugin: python.plugin },
|
|
767
|
+
{ plugin: weatherPlugin, read: ['weather_lookup'] },
|
|
768
|
+
{ plugin: imagePlugin, config: { model, clamps }, read: ['generate_image'] }
|
|
769
|
+
]
|
|
770
|
+
})
|
|
771
|
+
|
|
772
|
+
// after
|
|
773
|
+
new Harness({
|
|
774
|
+
tools,
|
|
775
|
+
exec: true, // or { spawn, killProcess, realpath, policyVersion }
|
|
776
|
+
skillsDir,
|
|
777
|
+
sdkHome: sdkStorage.home,
|
|
778
|
+
plugins: [
|
|
779
|
+
new Python(),
|
|
780
|
+
new ObsidianRoute({ credentialStore }),
|
|
781
|
+
new Weather({ read: ['weather_lookup'] }),
|
|
782
|
+
new Image({ model, clamps, read: ['generate_image'] })
|
|
783
|
+
]
|
|
784
|
+
})
|
|
785
|
+
```
|
|
786
|
+
|
|
787
|
+
`Speech`, `Weather`, `Image`, `Music` and `Knowledge` replace the
|
|
788
|
+
`speechPlugin`, `weatherPlugin`, `imagePlugin`, `musicPlugin` and
|
|
789
|
+
`knowledgePlugin` objects, and `Python` replaces `createPython()`.
|
|
790
|
+
`ObsidianRoute`, `VmShell`, `SeatbeltSandbox`, `QuickJs` and `CodeMode` have
|
|
791
|
+
no `.plugin` pair. `SeatbeltSandbox.name` is `sandbox-macos` (the label is
|
|
792
|
+
`.shell.name`), `CommandHooks` takes `(hooks, { cwd })`, and `LspPlugin` and
|
|
793
|
+
`ExternalAgents` take their options in the constructor.
|
|
794
|
+
|
|
795
|
+
- **Breaking:** these built-ins are now plugins. A host that builds `Harness`
|
|
796
|
+
itself composes them; the bundled sidecar passes them all, so a
|
|
797
|
+
`spawnHarness` host needs no change. See [Plugins](README.md#plugins).
|
|
798
|
+
- Speech: `new Speech()`. Without it `transcribe`, `speak`, `speakStream` and
|
|
799
|
+
a voice model load reject with `speech needs the speech plugin`. (#173)
|
|
800
|
+
- Translation: `new TranslationPlugin()`. Without it `invoke` of `translate`
|
|
801
|
+
errors. (#275)
|
|
802
|
+
- Image and music: `new Image({ model, clamps })` and
|
|
803
|
+
`new Music({ model: musicModelSet(choice), clamps })`. `HarnessOptions`
|
|
804
|
+
loses `imageModel`, `imageClamps`, `musicModel` and `musicClamps`, and the
|
|
805
|
+
tools sit in new `image` and `music` toolsets. (#175)
|
|
806
|
+
- Weather: `new Weather({ read: ['weather_lookup'] })`.
|
|
807
|
+
`createWeatherLookupTool` is gone, a refused fetch is a plain `{ error }`,
|
|
808
|
+
and the 400 KB body cap is dropped. (#176)
|
|
809
|
+
- Web search: `new WebSearchPlugin({ read: ['web_search'] })`;
|
|
810
|
+
`Tools.product` no longer includes it. Its engines fetch through
|
|
811
|
+
`ctx.fetch`, so a redirect to an undeclared host fails that call. (#276)
|
|
812
|
+
- Obsidian: `new ObsidianRoute({ credentialStore })` with `exec: true`.
|
|
813
|
+
`ExecToolOptions.credentialStore` is gone. (#223)
|
|
814
|
+
- Python: `new Python({ loadPyodide, network })`. `createExecTool()` without
|
|
815
|
+
`languages` runs shell lines only, and `disablePyodide`, `loadPyodide` and
|
|
816
|
+
`pythonNetwork` are gone. (#174)
|
|
817
|
+
- MCP: see Removed.
|
|
818
|
+
|
|
819
|
+
- **Breaking:** every module's entry exports one class and its types.
|
|
820
|
+
(#216 to #221, #229)
|
|
821
|
+
- `completion()` is `CompletionEngine.run(sdk, args, options)`, and the
|
|
822
|
+
`./lib/capabilities/completion.ts` subpath is gone; its helpers and types
|
|
823
|
+
are root exports, except `trustedSourcesFrom`.
|
|
824
|
+
- `defaultHooks()` is `HookPipeline.defaults()`; `EgressGuardHook` and
|
|
825
|
+
`SkillCatalogGuardHook` are statics of `HookPipeline`.
|
|
826
|
+
- The contract type `Agent` is `AgentConfig`. `./agent` exports the `Agent`
|
|
827
|
+
class: `resolveAgent` and `agentPolicy` are `Agent.resolve` and
|
|
828
|
+
`Agent.policy`, and the other functions and constants keep their names as
|
|
829
|
+
statics.
|
|
830
|
+
- `createPluginRegistry(entries, options)` is
|
|
831
|
+
`new PluginRegistry(plugins, options)`.
|
|
832
|
+
- `./run-log` and `./run-log-inspect` export `RunLog`: `RUN_LOG_VERSION`,
|
|
833
|
+
`RUN_LOG_PROTOCOL_VERSION`, `inspectRun` and `renderRunLogHtml` are
|
|
834
|
+
`RunLog.VERSION`, `RunLog.PROTOCOL_VERSION`, `RunLog.inspect` and
|
|
835
|
+
`RunLog.renderHtml`, and the engine-boot functions are statics.
|
|
836
|
+
`./run-log` no longer exports the `Operation` and `RunBudget` types.
|
|
837
|
+
- `./machine` exports `CompletionMachine` (`create`, `definition`,
|
|
838
|
+
`emptyContext`, `VERSION`) and no longer re-exports the run log, the error
|
|
839
|
+
classes, `tagError`, `rehydrateError`, the failure-result helpers or the
|
|
840
|
+
stage payload types. The shared run types are root exports, and the
|
|
841
|
+
`./lib/tool-call-display.ts` subpath is gone.
|
|
842
|
+
- **Breaking:** `@qvac/harness/plugins/speech` exports only `Speech` and its
|
|
843
|
+
option types. `buildWavBuffer`, `packSamples`, `speakOnce`,
|
|
844
|
+
`speakStreamOnce`, `transcribeStreaming`, `normalizeForSpeech`,
|
|
845
|
+
`SPEECH_LEXICON`, `needsResample`, `resampleForTranscription`, `wavFormat`
|
|
846
|
+
and `TARGET_SAMPLE_RATE` are internal; speak and transcribe through the
|
|
847
|
+
harness. (#217, #312)
|
|
848
|
+
- **Breaking:** the translation catalog is static on `TranslationPlugin`, and
|
|
849
|
+
the root no longer exports it: `NMT_TO_ENGLISH`, `NMT_FROM_ENGLISH`,
|
|
850
|
+
`EURONANO_LANGUAGES`, `SLM_LANGUAGE_CODES` and `SLM_LANGUAGE_NAMES` are
|
|
851
|
+
`TranslationPlugin.<name>`, and `translationPlanFor` is
|
|
852
|
+
`TranslationPlugin.planFor`. `TranslationPlan` and `TranslationRefusal` come
|
|
853
|
+
from `@qvac/harness/plugins/translation`. (#275)
|
|
854
|
+
- **Breaking:** a tool that reaches the network declares `egress(args)`.
|
|
855
|
+
`HookPipeline.EgressGuardHook` checks every tool that declares it and none
|
|
856
|
+
that does not, so a host tool named `http_request`, `web_fetch` or
|
|
857
|
+
`mcp_call` without it loses the pre-call check. The v0.7.3 guarded-fetch
|
|
858
|
+
exports have no public path; a plugin tool uses `ctx.fetch`. (#172, #224)
|
|
859
|
+
- **Breaking:** nothing a run does can load a new native addon: the sidecar
|
|
860
|
+
seals addon loading once the harness is ready. A plugin or tool that imports
|
|
861
|
+
a native addon lazily declares it in `HarnessPlugin.addons` or
|
|
862
|
+
`ToolDefinition.addons`. A `QVAC_PYODIDE_WORKER_ENTRY` must exit when
|
|
863
|
+
`workerData.preload` is true. See the
|
|
864
|
+
[decision record](docs/decisions/2026-10-02-the-sidecar-seals-addon-loading-after-boot.md).
|
|
865
|
+
(#177)
|
|
866
|
+
- **Breaking:** `SandboxWorkspace` gains `start(command, { cwd? })`, returning a
|
|
867
|
+
`SandboxJob`, which a custom `SandboxService` must implement.
|
|
868
|
+
`SeatbeltSandbox` declares `provides: ['sandbox']`, so it fails beside
|
|
869
|
+
another sandbox provider. (#320, #329)
|
|
870
|
+
- **Breaking:** the run log records every model request as a `request` record.
|
|
871
|
+
A host run-log codec that allows only known record types must accept
|
|
872
|
+
`request`; `EngineOperationPort` gains `recordRequest`. (#235)
|
|
873
|
+
- **Breaking:** `CompletionEvent` gains `input-rejected`, and `HookPhase` and
|
|
874
|
+
`HookRejection.phase` gain `promptSubmit`, `toolFailure`, `stop` and
|
|
875
|
+
`preFold`; exhaustive switches handle them. Every steer and follow-up passes
|
|
876
|
+
the `promptSubmit` hooks. (#260, #264)
|
|
877
|
+
- **Breaking:** `PreToolCallPayload.effect` and `.resource` are required; a
|
|
878
|
+
host that calls `HookPipeline#runPreToolFold` itself passes both. (#183)
|
|
879
|
+
- **Breaking:** a plugin can own a skill's readiness through
|
|
880
|
+
`PluginSetup.skills` (`SkillReadiness`), and the obsidian readiness moved
|
|
881
|
+
into `ObsidianRoute`. `SkillStateInputs.obsidianProbe` and the
|
|
882
|
+
`credentialStore` option of `createSkillTool` are gone, the core shares no
|
|
883
|
+
credential key by default, and `versionProbeSkills` takes
|
|
884
|
+
`{ installedTools, platform, readiness }`. (#227)
|
|
885
|
+
- **Breaking:** `Tools.stageInputs` and `ExecInput` come from
|
|
886
|
+
`@qvac/harness/tools`, no longer `./plugins/python`, and
|
|
887
|
+
`ExecLanguage.validate` takes an `ExecValidateScope`. (#317)
|
|
888
|
+
- **Breaking:** `MAX_TOOL_ROUNDS`, `TOOL_CONTINUATION_NUDGE`,
|
|
889
|
+
`TOOL_DENIED_MESSAGE` and `TOOL_CUT_OFF_MESSAGE` come from
|
|
890
|
+
`./lib/capabilities/tool-turns.ts`, not `lib/machine`, and
|
|
891
|
+
`CompletionMachine.emptyContext` requires a `policy`. (#159)
|
|
892
|
+
- **Breaking:** the completion graph has no skill states: a skill preload runs
|
|
893
|
+
as a generic prepare step. Context `skills` is `activated`, `skillPreload` is
|
|
894
|
+
`prepareStep`, `tools.loadingSkill` is gone, and `ToolExecutionSnapshot` has
|
|
895
|
+
`origin` in place of `kind: 'skill'` and `skillName`. (#170)
|
|
896
|
+
- **Breaking:** `resolveScriptRun` returns `{ args, trusted: false }` for a
|
|
897
|
+
call that is not a script run, and is no longer exported. (#163, #174)
|
|
898
|
+
- **Breaking:** `metrics.durationMs` and the `runEnd` hook's `stats.durationMs`
|
|
899
|
+
are the run's wall time, not decode time, and `promptTokensPerSecond` is
|
|
900
|
+
weighted over every round. (#195)
|
|
901
|
+
- **Breaking:** `CompletionMachine.VERSION` and `RunLog.VERSION` are 1 until
|
|
902
|
+
1.0.0 ships. A run saved with `1.0.0-rc.0` or `1.0.0-rc.1` does not resume,
|
|
903
|
+
and `./run-log-inspect` no longer reads v4 or rc logs. (#205)
|
|
904
|
+
- **Breaking:** a run paused before the upgrade does not resume when its
|
|
905
|
+
policy or hook identity changed: exec calls (#174, #178, #223), `delegate`
|
|
906
|
+
calls with external targets (#319, #328), `web_search` calls (#276), runs
|
|
907
|
+
past a pre-tool hook (#183) and runs under the obsidian hook (#227).
|
|
908
|
+
- **Breaking:** the contract types match `Harness`. (#353)
|
|
909
|
+
- `ChatMessage.attachments` was `{ path: string }[] | null` and is now
|
|
910
|
+
`{ path: string }[]`; omit it instead of sending `null`.
|
|
911
|
+
- A contract context's `signal` was a structural
|
|
912
|
+
`{ aborted?, addEventListener?, removeEventListener? }` and is now
|
|
913
|
+
`bare-abort-controller`'s `AbortSignal`. A host that passes a global
|
|
914
|
+
`AbortSignal` types its input as `HostContext<CompletionContext>` (the
|
|
915
|
+
signal alone is `HostSignal`); `RemoteHarness` and `HarnessClient` take a
|
|
916
|
+
`HostContext`.
|
|
917
|
+
- `HarnessContract.on`/`off` took `'model' | 'status'` with
|
|
918
|
+
`(...args: never[]) => void` and now take `'model'` with
|
|
919
|
+
`(state: ModelState) => void`; the `'status'` event is gone.
|
|
920
|
+
- `bare-process` moves to 4.5.1, which adds the native addon `bare-posix`.
|
|
921
|
+
(#178)
|
|
922
|
+
- The plugins' addons follow the SDK's peer ranges, and
|
|
923
|
+
`collectRuntimeClosure` follows the per-platform `@qvac/fabric-<os>-<cpu>`
|
|
924
|
+
packages. (#302)
|
|
925
|
+
- A chat with no system message no longer gets
|
|
926
|
+
`'You are a helpful assistant.'`; every completion modelId changes once.
|
|
927
|
+
(#194)
|
|
928
|
+
- Each chat's first turn after the upgrade misses the prefix cache once: tool
|
|
929
|
+
descriptions spell out nested fields (#157), the exec schema reorders with
|
|
930
|
+
Python (#174), and `web_search` and `mcp_call` move after `exec` (#276,
|
|
931
|
+
#277).
|
|
932
|
+
- `tools()` waits for `ready()`, and `toolNames` and `diagnostics()` list
|
|
933
|
+
plugin tools only after it. Plugin service registration rejects `undefined`
|
|
934
|
+
and names reserved by the context, and `HarnessPlugin` is the only plugin
|
|
935
|
+
shape. (#171)
|
|
936
|
+
- Long tool output keeps its first and last `maxOutputChars`, joined by a
|
|
937
|
+
marker counting what was dropped, instead of ending in `… [truncated]`.
|
|
938
|
+
(#180)
|
|
939
|
+
- `exec` refuses a `language` that no composed language claims, instead of
|
|
940
|
+
running it as a shell line. (#232)
|
|
941
|
+
- A translation pack is freed on the idle sweeps instead of staying resident.
|
|
942
|
+
(#275)
|
|
943
|
+
- Arg repair converts a string argument to the schema's scalar type when the
|
|
944
|
+
conversion is lossless, so a tool may receive `3` for `"3"`. (#156)
|
|
945
|
+
- The exec approval labels inline Python as `python[ · network: …]: …`, and
|
|
946
|
+
`command` with `script` is rejected. (#163)
|
|
947
|
+
- A round whose only tool calls were malformed gets one re-ask carrying each
|
|
948
|
+
error. (#190)
|
|
949
|
+
- The narrated and malformed-call re-asks force a call with
|
|
950
|
+
`tool_choice: 'required'`. `LlmGenerationParams.tool_choice` admits
|
|
951
|
+
`'required'`; do not set it for a whole run, or the wrap-up fails. Narrated
|
|
952
|
+
intent counts in the last two sentences of a reply's last paragraph. (#191,
|
|
953
|
+
#213, #455)
|
|
954
|
+
- Reasoning that is on is capped at 8192 tokens a round instead of running
|
|
955
|
+
unbounded: the presets and `agent.reasoning: 'enabled'` send that cap where
|
|
956
|
+
they sent `-1`. `LlmGenerationParams.reasoning_budget` takes `-1`, `0` or a
|
|
957
|
+
positive token cap, and a host's `generationParams` still wins, so `-1` lifts
|
|
958
|
+
the cap. `'inherit'` still sends nothing. (#440)
|
|
959
|
+
- The `pdf` tool declares `bare-pdfium` in its `addons`. (#317)
|
|
960
|
+
- **Breaking for hosts:** a skill named with `@` or in prose reaches the model
|
|
961
|
+
as it did in 0.8.7 (#374): the user's turn as typed, then a `skill` call
|
|
962
|
+
(`preload-<name>`), its body as the result and the continuation nudge, not
|
|
963
|
+
written into the user's message. The run stays on the chat's KV cache key, so
|
|
964
|
+
its rounds and the turn after it read the cached prefix, and the preload no
|
|
965
|
+
longer opts its run out of the cache. The host must replay each run's turns as
|
|
966
|
+
it sent them (`@qvac/core` does from 0.7.0, tetherto/qvac-core#338): a host
|
|
967
|
+
that collapses a run to its request and answer leaves the cache's message
|
|
968
|
+
count stale, and the next turn's whole history is appended to the cache
|
|
969
|
+
again. The load is reported on every mention, not once per chat, so a replay
|
|
970
|
+
holds the turns the run sent; an edit to the skill reaches the chat on its
|
|
971
|
+
next mention. A host that groups a run's events by `round` still puts the
|
|
972
|
+
preload with round 0's calls: the harness renders it as its own round first.
|
|
973
|
+
A skill that fails to load is noted in the user's turn, sends no call, and
|
|
974
|
+
that run is not cached. (#511)
|
|
975
|
+
|
|
976
|
+
### Removed
|
|
977
|
+
|
|
978
|
+
- The eight file exports 1.0.0-rc.7 added for hosts:
|
|
979
|
+
`./lib/tools/fs/drive.ts`, `remote.ts` and `remote-protocol.ts`, and
|
|
980
|
+
`./lib/tools/skills/skill-state.ts`, `credential-slots.ts`,
|
|
981
|
+
`manifest-parse.ts`, `overlay-crud.ts` and `scope-key.ts`. Import
|
|
982
|
+
`@qvac/harness/drive`, `@qvac/harness/skill-state` (`SKILL_STATE`,
|
|
983
|
+
`isDeviceSharedCredentialKey`), `@qvac/harness/skill-manifest`
|
|
984
|
+
(`credentialSlots`, `readSkillSetup`), and the `ManagedSkill` and
|
|
985
|
+
`SkillFileContent` types from `@qvac/harness`. (#636)
|
|
986
|
+
|
|
987
|
+
- **Breaking:** `harnessLogEnabled` from `./lib/log.ts`: use
|
|
988
|
+
`HarnessLog.enabled(level)` or `HarnessLog.level()`. (#471, #506, #532)
|
|
989
|
+
- **Breaking:** `./lib/log.ts` exports the `HarnessLog` class in place of the
|
|
990
|
+
free functions it had in 1.0.0-rc.2 and rc.3: `setHarnessLog`,
|
|
991
|
+
`setHarnessLogSink`, `hlog` and `hdiag` are `HarnessLog.enable`,
|
|
992
|
+
`HarnessLog.setSink`, `HarnessLog.info` and `HarnessLog.diag`. The root
|
|
993
|
+
names keep working. The `HarnessLog` type, an interface for the
|
|
994
|
+
`harnessLog` object since 0.8.10, now names the class: annotate a value with
|
|
995
|
+
`typeof HarnessLog`. (#532)
|
|
996
|
+
|
|
997
|
+
```js
|
|
998
|
+
// before
|
|
999
|
+
import { hlog, setHarnessLogSink } from '@qvac/harness/lib/log.ts'
|
|
1000
|
+
setHarnessLogSink(sink)
|
|
1001
|
+
hlog('open')
|
|
1002
|
+
// after
|
|
1003
|
+
import { HarnessLog } from '@qvac/harness/lib/log.ts'
|
|
1004
|
+
HarnessLog.setSink(sink)
|
|
1005
|
+
HarnessLog.info('open')
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
- **Breaking:** `Tools.product` no longer offers `mcp_call` or the skill
|
|
1009
|
+
catalog's mcp operations (`notion_create_page`, `notion_insert_content`).
|
|
1010
|
+
Use `new McpPlugin({ generic: true })` with the same `skillCatalog` and
|
|
1011
|
+
`credentialStore`, and `read: ['mcp_call']`. (#277)
|
|
1012
|
+
- **Breaking:** the `./lib/tools/*` wildcard export and the tool factories
|
|
1013
|
+
`createHttpRequestTool`, `createWebFetchTool`, `createSkillTool`,
|
|
1014
|
+
`createMcpCallTool` and `createWebSearchTool` are gone. Use `Tools.product`
|
|
1015
|
+
(with `skillsDir` for `skill`), `McpPlugin` and `WebSearchPlugin`.
|
|
1016
|
+
`credentialSlots` comes from `@qvac/harness/skill-manifest`,
|
|
1017
|
+
`ensureBundledSkillsDir` is `Tools.bundledSkillsDir()`, and
|
|
1018
|
+
`isDeviceSharedCredentialKey` comes from `@qvac/harness/skill-state` (a
|
|
1019
|
+
plugin declares its own in `SkillReadiness.deviceSharedKeys`). Only `./lib/tools/exec.ts`,
|
|
1020
|
+
`./lib/tools/toolsets.ts`, `./lib/tools/skills/index.ts`, `mention.ts` and
|
|
1021
|
+
`mention-name.ts` keep their keys. (#273, #283)
|
|
1022
|
+
- **Breaking:** `./plugins` no longer exports the contract types: import
|
|
1023
|
+
`AddonLoaders`, `ExecLanguage`, `ExecRoute` and `ExecShell` from the root.
|
|
1024
|
+
(#284)
|
|
1025
|
+
- **Breaking:** the `./docx` export is gone; read a `.docx` with
|
|
1026
|
+
`extractOfficeText` from `@qvac/harness/office`. (#269)
|
|
1027
|
+
- **Breaking:** `lib/team`, `Team`, `TeamConfig`, `TeamRequest`, `TeamHost` and
|
|
1028
|
+
`TeamEvent` are gone; pass `agents` to `harness.completion()`. (#233)
|
|
1029
|
+
- **Breaking:** `rag_search`, `ragSearch` (on `CompletionArgs`,
|
|
1030
|
+
`CompletionContext` and `ToolExecuteContext`), `RagSearchFn`,
|
|
1031
|
+
`RagSearchResult` and `./lib/tools/rag-search.ts` are gone; knowledge reaches
|
|
1032
|
+
the model by injection. (#162)
|
|
1033
|
+
- **Breaking:** the module-level `harnessHooks` array is gone; pass
|
|
1034
|
+
`new Harness({ hooks: [...HookPipeline.defaults(), mine] })`. (#158)
|
|
1035
|
+
- **Breaking:** `./lib/capabilities/tool-selection.ts` and `tool-names.ts` are
|
|
1036
|
+
`@qvac/harness/agent` (`Agent` statics). `isSelected`, `skillsAreSelected`,
|
|
1037
|
+
`MCP_CALL_TOOL_NAME`, `ToolGrant`, `ToolGrantSource`, `ToolGrants`,
|
|
1038
|
+
`SelectableTool` and `ToolGateInputs` are no longer exported. (#165, #206)
|
|
1039
|
+
- **Breaking:** `./lib/tools/model-args.ts` (`unquoteArg`) is gone, with no
|
|
1040
|
+
replacement. (#166)
|
|
1041
|
+
- The sidecar bundle no longer ships `@qvac/ocr-ggml`, and ships only the
|
|
1042
|
+
addons the bundle defers. (#226)
|
|
1043
|
+
- **Breaking:** `skillPreloadMessage` and `withoutSkillLoadTurns`
|
|
1044
|
+
(`lib/capabilities/tool-turns.ts`). Nothing writes a skill body into the
|
|
1045
|
+
user's message any more, so no earlier load turn is dropped to keep the two
|
|
1046
|
+
from contradicting each other. (#511)
|
|
1047
|
+
|
|
1048
|
+
### Fixed
|
|
1049
|
+
|
|
1050
|
+
- A user plugin loads from the published package: `sharedImports` resolved the harness's own
|
|
1051
|
+
files by their `.ts` names, which the compiled `dist-lib` does not ship, so every host that
|
|
1052
|
+
loads user plugins from npm failed with `MODULE_NOT_FOUND`. It now names them with its own
|
|
1053
|
+
extension, and a test keeps shipped code from resolving its files by a `.ts` name.
|
|
1054
|
+
- A host needs neither `@qvac/sdk` nor a patch of `@qvac/inference`. The
|
|
1055
|
+
published types import `@qvac/inference`, so a Bare host type-checks
|
|
1056
|
+
without the SDK or a `tsconfig` path, and the round tells a `length` stop at
|
|
1057
|
+
the context window from one at a `predict` cap from the `predict` it sent.
|
|
1058
|
+
A host drops its copy of `patches/@qvac%2Finference@0.22.0.patch`; one that
|
|
1059
|
+
keeps it sees the same behaviour. (#647)
|
|
1060
|
+
|
|
1061
|
+
- A message keeps the wire layout 0.8.13 shipped: `sentAt` is its fourth
|
|
1062
|
+
field again, ahead of `toolCalls`, `toolCallId`, `name`, `id` and `context`.
|
|
1063
|
+
Up to rc.6 a 1.0 harness could not decode a message from a 0.8.13 host that
|
|
1064
|
+
carried a send time. A host built against an earlier 1.0 rc must be rebuilt
|
|
1065
|
+
with this one, since those fields moved. (#623)
|
|
1066
|
+
- The wrap-up round a run ends on keeps the tool block in the prompt and
|
|
1067
|
+
forbids a call with `tool_choice: "none"`, instead of dropping the block.
|
|
1068
|
+
Under `@qvac/sdk` 0.22 the dropped block rewrote the chat's one cache file,
|
|
1069
|
+
so that round and the next turn each re-read the whole chat (19.6 s to first
|
|
1070
|
+
token on Qwen3.5-2B after a 12-turn chat). (#605)
|
|
1071
|
+
- A `skill` call that names a skill by its display name, in another case, or by
|
|
1072
|
+
the one tool it grants (`pptx`) loads that skill. (#528)
|
|
1073
|
+
- On Node, the Python plugin finds pyodide and the vendored wheels without
|
|
1074
|
+
`import.meta.asset`: it resolves both with `import.meta.resolve`. (#535)
|
|
1075
|
+
- A skill's tools are reselected on the turn the skill loads, so a run
|
|
1076
|
+
resumed after a skill load no longer fails with
|
|
1077
|
+
`Tools changed since this run paused`, and a resumed run hashes the system
|
|
1078
|
+
turn it sent. (#516)
|
|
1079
|
+
- On Linux and Windows, a `Harness` made in the host's own process no longer
|
|
1080
|
+
relaunches the host's entry with `--gpu-probe`, which ran the host program a
|
|
1081
|
+
second time and held each first model load for 5 seconds. Only an entry that
|
|
1082
|
+
imports the probe hook first, as the sidecar entries do, is relaunched; any
|
|
1083
|
+
other reads its memory budget from `nvidia-smi`, `rocm-smi`, sysfs or the
|
|
1084
|
+
registry. (#539)
|
|
1085
|
+
- An aborted run's metrics count the round the abort stopped: it is in
|
|
1086
|
+
`rounds[]` with `stopReason: 'cancelled'`, and the metrics event's
|
|
1087
|
+
`stopReason` is `cancelled`. See [Speed stats](docs/speed-stats.md). (#476,
|
|
1088
|
+
#479)
|
|
1089
|
+
- `serveHarness(ipc, new Harness(...))` compiles with no cast: a `Harness` is a
|
|
1090
|
+
`HarnessContract`. `ChatMessage.attachments` no longer takes `null`, and the
|
|
1091
|
+
contract's contexts take a bare `AbortSignal`; `RemoteHarness` and
|
|
1092
|
+
`HarnessClient` still take any host signal (`HostSignal`). (#353)
|
|
1093
|
+
- A reply that says it will act but asks the user something ends the turn,
|
|
1094
|
+
instead of a forced round making up the answer. (#252, #272, #292)
|
|
1095
|
+
- Under `SeatbeltSandbox`, a shell line can no longer read or write the app
|
|
1096
|
+
storage root, and `SeatbeltSandbox.profile` takes
|
|
1097
|
+
`(policy, { roots, denied, ancestors })`. (#293)
|
|
1098
|
+
- Under `SeatbeltSandbox`, the `/usr/bin` xcrun shims (`git`, `python3`) no
|
|
1099
|
+
longer run `xcodebuild` on every call when full Xcode is selected. Each call's
|
|
1100
|
+
and each workspace's `TMPDIR` starts with a copy of the user's xcrun cache, and
|
|
1101
|
+
a lookup that misses is saved to the copy only. (#467)
|
|
1102
|
+
- A call to a skill name the turn does not have is refused with the names of
|
|
1103
|
+
the skills shown that turn (`The skills are: weather, ...`), so a small model
|
|
1104
|
+
loads one by its exact name instead of guessing. With no skills list shown,
|
|
1105
|
+
the refusal is unchanged. (#473)
|
|
1106
|
+
- On Node, reaching the SDK no longer fails with `Bare is not defined`: the
|
|
1107
|
+
core and the speech, translation, image and music plugins leave SDK plugin
|
|
1108
|
+
registration to the SDK's own Bare worker. (#362)
|
|
1109
|
+
- On Node, exec's default shell no longer fails every command with
|
|
1110
|
+
`require.addon is not a function`. (#274)
|
|
1111
|
+
- On Node, a shell line under `SeatbeltSandbox` no longer fails with
|
|
1112
|
+
`require.addon is not a function`. (#281)
|
|
1113
|
+
- A completion event the hrpc schema cannot encode ends the run with an
|
|
1114
|
+
`error` event instead of killing the harness process. (#267)
|
|
1115
|
+
- `modelEvents`, `download`, `speakStream` and host `completion` frames that
|
|
1116
|
+
cannot encode report an error instead of killing the process. (#278)
|
|
1117
|
+
- `copyAddonExternals` ships a dependency nested under a package when the root
|
|
1118
|
+
copy is out of its range. (#228)
|
|
1119
|
+
- On the last tool round, an empty response wraps up instead of re-asking one
|
|
1120
|
+
round past `maxToolRounds`. (#167)
|
|
1121
|
+
- A `FAIL` sent while a run was finishing no longer runs the finishing step and
|
|
1122
|
+
its `runEnd` hook again. (#167)
|
|
1123
|
+
|
|
1124
|
+
## [0.8.12] - 2026-10-21
|
|
1125
|
+
|
|
1126
|
+
### Added
|
|
1127
|
+
|
|
1128
|
+
- A custom GGUF the catalog does not know is sized by the engine fitter from
|
|
1129
|
+
its header and tensor list, so its preview gives a fit verdict instead of
|
|
1130
|
+
"Fit unknown". Split models stay unknown. (#562)
|
|
1131
|
+
|
|
1132
|
+
### Changed
|
|
1133
|
+
|
|
1134
|
+
- `http_request`, `mcp_call` and every skill-gated tool (`docx`, `pptx`,
|
|
1135
|
+
`xlsx`, `pdf`, `generate_image`, `weather_lookup`, compiled skill operations,
|
|
1136
|
+
…) are deferred behind `tool_search`: their schemas stay out of the prompt
|
|
1137
|
+
until searched, called or loaded with their skill. The tool set is fixed per
|
|
1138
|
+
chat, so a skill load no longer re-primes the prompt cache. `skill-eval`
|
|
1139
|
+
gains `--defer`. (#566)
|
|
1140
|
+
- `@qvac/sdk` and `@qvac/inference` move to `^0.22.0`. Loads are sized on the
|
|
1141
|
+
fitter's `floorBytes`, so more models fit under a memory cap before one is
|
|
1142
|
+
unloaded. (#564)
|
|
1143
|
+
|
|
1144
|
+
### Fixed
|
|
1145
|
+
|
|
1146
|
+
- A model name that is not an exact catalog or registry name never resolves
|
|
1147
|
+
to a vision projector (`QVAC_MODEL=Qwen3.5-4B` loaded the `mmproj` file and
|
|
1148
|
+
failed to initialize). (#551)
|
|
1149
|
+
- The device `thinkingDefault` reaches the Qwen3.5 presets, so turning
|
|
1150
|
+
thinking off works for 2B and 4B when the agent inherits. (#548)
|
|
1151
|
+
- A GGUF header read that drops its connection, or gets a 408, 429 or 5xx, is
|
|
1152
|
+
retried up to 3 times, and each failure is logged with its host and cause.
|
|
1153
|
+
Add no longer fails after a good preview on a flaky CDN. (#561)
|
|
1154
|
+
- A GGUF that names no architecture is no longer offered as a chat model: in
|
|
1155
|
+
an `sd.cpp` repo it reads as image generation, otherwise it is refused as
|
|
1156
|
+
`not-a-model`. (#529)
|
|
1157
|
+
- Small models read an attached PDF with `pdf` instead of `web_fetch` on a
|
|
1158
|
+
made-up link, and a text-less page the host already rendered as an image is
|
|
1159
|
+
pointed at that image instead of "no OCR here". (#525)
|
|
1160
|
+
- A `pptx`, `docx` or `xlsx` call that builds a new file without `output` is
|
|
1161
|
+
saved and attached instead of refused. The file is named after
|
|
1162
|
+
`create.title` (`Climate Change` → `climate_change.docx`), or
|
|
1163
|
+
`presentation.pptx`, `document.docx` or `workbook.xlsx` without one, the way
|
|
1164
|
+
the `pdf` tool names a new PDF. A 2B model often left `output` off, and the
|
|
1165
|
+
refusal sent it guessing attachment ids until the turn ended with no file.
|
|
1166
|
+
A call whose ops only read (`read`, `sheets`, `paragraphStyles`, …) returns
|
|
1167
|
+
their results and saves nothing, so it never attaches a blank file.
|
|
1168
|
+
(QVAC-26944)
|
|
1169
|
+
- A new Word document takes two more of a small model's slips instead of
|
|
1170
|
+
refusing the whole call: a block position past the end of what the call has
|
|
1171
|
+
built so far lands at the end, and `appendParagraphs` with an `at` inserts
|
|
1172
|
+
the paragraphs there. An attached document keeps the strict checks. In any
|
|
1173
|
+
`pptx`, `docx` or `xlsx` call, an `{ "op": "output", … }` entry is dropped
|
|
1174
|
+
instead of refused, and a file name in it names the file unless `output` is
|
|
1175
|
+
already set. (QVAC-26944)
|
|
1176
|
+
- In Obsidian vault folder mode, "what's in my vault" lists the notes with
|
|
1177
|
+
`obsidian files` instead of passing the vault folder to `read` or guessing
|
|
1178
|
+
commands, and a `read` that still names a folder is told to list it with
|
|
1179
|
+
`obsidian files` instead of failing with a raw file system error.
|
|
1180
|
+
(QVAC-27069)
|
|
1181
|
+
|
|
1182
|
+
## [0.8.11] - 2026-10-16
|
|
1183
|
+
|
|
1184
|
+
### Fixed
|
|
1185
|
+
|
|
1186
|
+
- A skill CLI call the schema rejects names what the command accepts: an
|
|
1187
|
+
`unknown parameter`, `unknown flag` or `unexpected argument` error now ends
|
|
1188
|
+
with the node's parameters or subcommands, e.g.
|
|
1189
|
+
`unknown parameter "title"; create takes: name, path, …`. The message
|
|
1190
|
+
prefixes are unchanged. (#523)
|
|
1191
|
+
|
|
1192
|
+
## [0.8.10] - 2026-10-16
|
|
1193
|
+
|
|
1194
|
+
### Added
|
|
1195
|
+
|
|
1196
|
+
- Harness log lines carry a level, `error`, `warn`, `info` or `debug`, and run
|
|
1197
|
+
on `@qvac/logging`. A sink set with `setHarnessLogSink` receives the level as
|
|
1198
|
+
its second argument, `(line, level) => …`, and `harnessLog`,
|
|
1199
|
+
`setHarnessLogLevel` and the `HarnessLog` and `LogLevel` types are exported.
|
|
1200
|
+
`hlog` keeps working and logs at `info`. (#471)
|
|
1201
|
+
- `@qvac/harness/errors`: every runtime failure the harness detects throws a
|
|
1202
|
+
`HarnessError`, a `@qvac/error` error with a code in 102001–104000, and its
|
|
1203
|
+
message is unchanged. `isHarnessError(err, name)` matches the code, also once
|
|
1204
|
+
bare-rpc has turned it into a string, and `harnessErrorCode(name)` and
|
|
1205
|
+
`harnessErrorCodes()` give the numbers. A code reaches a host on a unary RPC
|
|
1206
|
+
call; completion, model and download events still carry only the message.
|
|
1207
|
+
(#472)
|
|
1208
|
+
|
|
1209
|
+
### Changed
|
|
1210
|
+
|
|
1211
|
+
- `QVAC_LOG_LEVEL` (the app's `--log-level`) now filters harness lines too. At
|
|
1212
|
+
`info`, round stats and `sdk tool definitions`, which are `debug`, leave
|
|
1213
|
+
`harness.log`. With it unset, an enabled log keeps every line, as before.
|
|
1214
|
+
(#471)
|
|
1215
|
+
- The `logger` a host passes to `spawnHarness` or `harnessChild` sets harness's
|
|
1216
|
+
log level, in the sidecar's `harness.log` as well as in the host's process,
|
|
1217
|
+
when it has `getLevel()`; `QVAC_LOG_LEVEL` still wins when set. The lines
|
|
1218
|
+
harness writes in the host's process go to that logger at their level, not to
|
|
1219
|
+
stdout, whose unread pipe can halt Bare on Windows. A sink set with
|
|
1220
|
+
`setHarnessLogSink` still takes them first. (#471)
|
|
1221
|
+
- **Breaking** for a caller that reads `.name`: `AbortedError`, `TimeoutError`,
|
|
1222
|
+
`AbortError`, `JsonParseError` and `DriveReadTruncatedError` now extend
|
|
1223
|
+
`HarnessError` and carry its registry name (`AbortedError` is `ABORTED`,
|
|
1224
|
+
`TimeoutError` is `FETCH_TIMED_OUT`), and the Python sandbox's
|
|
1225
|
+
`fetch refused: …` errors are no longer `TypeError`s. Match with `instanceof`
|
|
1226
|
+
or the code. (#472)
|
|
1227
|
+
- **Breaking** for a host that names file tools: with a folder grant, ten
|
|
1228
|
+
flat tools replace `read_files`, `file_glob`, `grep`, `create_documents` and
|
|
1229
|
+
`edit_documents`: `read_file`, `list_dir`, `glob`, `grep`, `write_file`,
|
|
1230
|
+
`edit_file`, `move_file`, `copy_file`, `make_dir` and `trash_file`. Each call
|
|
1231
|
+
names one file with plain string arguments, and `grep` takes one `pattern`
|
|
1232
|
+
instead of `queries[]`. A relative path resolves inside the shared folder,
|
|
1233
|
+
the first read grant or else the first write grant, and a write outside the
|
|
1234
|
+
write grant is refused. `read_file` numbers its lines, takes a range, caps a
|
|
1235
|
+
read at 20,000 characters and reads PDF, Word and PowerPoint as text.
|
|
1236
|
+
Creating a file, `copy_file` and `make_dir` run unprompted; overwriting,
|
|
1237
|
+
editing, moving and trashing ask first, and `trash_file` moves the file into
|
|
1238
|
+
the folder's own `.trash`. All ten belong to the `files` toolset. A host that
|
|
1239
|
+
labels, groups or describes tools by name needs the new names; old
|
|
1240
|
+
tool-activity records keep the old ones. A run without a folder grant sends
|
|
1241
|
+
the same prompt as before. (#490)
|
|
1242
|
+
- `@qvac/sdk` is `^0.21.0`, not `0.21.0`, so a host resolves the newest 0.21.x
|
|
1243
|
+
patch. (#520)
|
|
1244
|
+
|
|
1245
|
+
### Removed
|
|
1246
|
+
|
|
1247
|
+
- **Breaking:** the `lib/tools/read-files.ts`, `file-glob.ts`, `grep.ts`,
|
|
1248
|
+
`create-documents.ts` and `edit-documents.ts` subpaths, which `./lib/tools/*`
|
|
1249
|
+
exposed. Their tools left the sidecar in #490; the new ones are under
|
|
1250
|
+
`lib/tools/files/`. (#491)
|
|
1251
|
+
|
|
1252
|
+
## [0.8.9] - 2026-10-15
|
|
1253
|
+
|
|
1254
|
+
### Changed
|
|
1255
|
+
|
|
1256
|
+
- A skill with a `display_name` answers only to that handle; a skill without
|
|
1257
|
+
one still answers to its folder name. `@documents` resolves the word skill
|
|
1258
|
+
and `@word` no longer does, which replaces the 0.8.8 note that both resolve.
|
|
1259
|
+
Implicit preload skips a leading `@name`, so a handle that resolves to no
|
|
1260
|
+
skill loads nothing, while a plain "make an excel sheet" still preloads
|
|
1261
|
+
Spreadsheets. A paired device on an older app build still sends `@word` and
|
|
1262
|
+
`@excel`; once the skills package declares `display_name`, a host on this
|
|
1263
|
+
version answers those requests without the skill. (#505)
|
|
1264
|
+
- `@qvac/skills` 0.1.15: the Word and Excel skills declare `display_name`, so
|
|
1265
|
+
their handles are `@documents` and `@spreadsheets`. The browser skill hands a
|
|
1266
|
+
CAPTCHA, interstitial or login page to the user instead of clicking through
|
|
1267
|
+
or waiting, and keeps its Chrome cookies and logins across chats. (#513)
|
|
1268
|
+
|
|
1269
|
+
## [0.8.8] - 2026-10-15
|
|
1270
|
+
|
|
1271
|
+
### Added
|
|
1272
|
+
|
|
1273
|
+
- A skill's manifest may declare `display_name`, the `@` handle users see and
|
|
1274
|
+
type, as one word (letters, digits, `-` or `_`); a `display_name` that is
|
|
1275
|
+
not one word is ignored. The Word and Excel skills are shown as Documents
|
|
1276
|
+
and Spreadsheets, and their folder names are trademarks, so a host needs a
|
|
1277
|
+
handle other than the name. Once the word skill's manifest declares
|
|
1278
|
+
`display_name: Documents`, `@documents` resolves it, and `@word` still does,
|
|
1279
|
+
so an app that sends the folder name keeps working. The catalog entry and
|
|
1280
|
+
the `skills` wire carry `displayName`, a customized copy of a skill keeps
|
|
1281
|
+
the shipped one, and `skillMentionHandle` gives a host the same rule the
|
|
1282
|
+
harness matches on. The folder name stays the skill's key everywhere else.
|
|
1283
|
+
(#469)
|
|
1284
|
+
|
|
1285
|
+
### Fixed
|
|
1286
|
+
|
|
1287
|
+
- A replayed tool call keeps its markup when history is rendered from scratch.
|
|
1288
|
+
Every assistant turn lost its tool-call markup on the way in, so a retry,
|
|
1289
|
+
compaction, a dropped chat cache, an overflow candidate or another device
|
|
1290
|
+
showed the model an empty assistant turn followed by a result answering
|
|
1291
|
+
nothing. Only an assistant turn that no tool result follows is stripped now,
|
|
1292
|
+
which still keeps markup leaked into a final answer out of the prompt. (#402)
|
|
1293
|
+
- A web search the harness runs for "search the web" now ends on the same
|
|
1294
|
+
continuation nudge as a search the model makes. Without it, the round after
|
|
1295
|
+
the search often failed on Qwen3.5-9B with thinking on instead of answering.
|
|
1296
|
+
(#486)
|
|
1297
|
+
- An identical call to a read tool that already succeeded this turn is
|
|
1298
|
+
answered with a note pointing at the earlier result instead of running
|
|
1299
|
+
again, and counts as a strike. A small model could repeat the same call
|
|
1300
|
+
hundreds of times in one round until the context filled. Any other tool
|
|
1301
|
+
that runs clears the memo, and a round is cut to its first 16 calls. (#377)
|
|
1302
|
+
- Asking the `skill` tool for a file a loaded skill does not have returns
|
|
1303
|
+
guidance listing its real files instead of an error, so the app no longer
|
|
1304
|
+
shows a failed tool call for it. A file asked of an unknown skill returns
|
|
1305
|
+
`skill not found`. (#383)
|
|
1306
|
+
|
|
1307
|
+
## [0.8.7] - 2026-10-12
|
|
1308
|
+
|
|
1309
|
+
### Added
|
|
1310
|
+
|
|
1311
|
+
- A skill's manifest may declare `env`, the variables its `exec` commands run
|
|
1312
|
+
with. The child process env is an allowlist, so this is the only way a
|
|
1313
|
+
skill's binary sees a setting of its own. The value `${session}` expands to
|
|
1314
|
+
the chat the run belongs to, which lets a long-lived tool such as a browser
|
|
1315
|
+
daemon keep one instance per chat; a run with no session drops that variable.
|
|
1316
|
+
An overlay skill keeps the base skill's `env`, so an edit never widens what
|
|
1317
|
+
a command can reach. `completion()` takes an optional `session`, in process
|
|
1318
|
+
and over hrpc, and falls back to the first segment of `cacheKey`. (#341)
|
|
1319
|
+
|
|
1320
|
+
```yaml
|
|
1321
|
+
metadata:
|
|
1322
|
+
env:
|
|
1323
|
+
AGENT_BROWSER_SESSION: '${session}'
|
|
1324
|
+
AGENT_BROWSER_HEADED: '1'
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1327
|
+
- A verb in a skill's `cli.schema.json` may carry `x-max-output-chars`, the
|
|
1328
|
+
most output `exec` returns for that command. The ceiling wins over the
|
|
1329
|
+
model's own `maxOutputChars`, the truncation note says which limit applied,
|
|
1330
|
+
and a schema whose cap is not a positive integer fails to load. Page
|
|
1331
|
+
snapshots and other verbose read verbs stay inside the context this way.
|
|
1332
|
+
(#342)
|
|
1333
|
+
|
|
1334
|
+
- The `browser` skill ships with `@qvac/skills` 0.1.14: an agent drives a
|
|
1335
|
+
Chromium through the `agent-browser` CLI, scoped to `exec(agent-browser)`,
|
|
1336
|
+
with one browser session per chat. (#405)
|
|
1337
|
+
|
|
1338
|
+
- A chat model's context climbs as far as the device and the SDK allow when
|
|
1339
|
+
neither the agent nor the host sets one: 262,144, then 131,072, then 65,536,
|
|
1340
|
+
before the default. The device class caps the climb, the trained window from
|
|
1341
|
+
the weight's GGUF header bounds it, and each rung must pass `assessModelFit`
|
|
1342
|
+
with its own config. The choice is kept per pool key for the life of the
|
|
1343
|
+
process. See the
|
|
1344
|
+
[decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.7/docs/decisions/2026-10-08-the-device-class-sets-how-far-the-context-climbs.md).
|
|
1345
|
+
(#382)
|
|
1346
|
+
|
|
1347
|
+
### Changed
|
|
1348
|
+
|
|
1349
|
+
- **Breaking for hosts:** a skill named with `@` or in prose now reaches the
|
|
1350
|
+
model as a `skill` call, its result and the continuation nudge right after the
|
|
1351
|
+
request, exactly the round a load the model makes itself leaves, instead of
|
|
1352
|
+
being written into the user's message. The user's turn is sent as typed and
|
|
1353
|
+
the run stays on the chat's KV cache key, so its rounds and the turn after it
|
|
1354
|
+
read the cached prefix; the child key 0.8.6 ran these turns under (#305) and
|
|
1355
|
+
its delete are gone. The host must replay each run's turns as it sent them
|
|
1356
|
+
(`@qvac/core` does from 0.7.0, tetherto/qvac-core#338): a host that collapses
|
|
1357
|
+
a run to its request and answer leaves the cache's message count stale, and
|
|
1358
|
+
the next turn's whole history is appended to the cache again. Because the body
|
|
1359
|
+
is replayed as sent, an edit to the skill reaches such a chat on its next
|
|
1360
|
+
mention of the skill, not on the next turn.
|
|
1361
|
+
|
|
1362
|
+
- `bare-stow` 0.1.7, with the patches it made stale dropped. (#396)
|
|
1363
|
+
- `lunte` 1.8.6 and `lunte-plugin-qvac` 0.2.0. (#397)
|
|
1364
|
+
|
|
1365
|
+
### Fixed
|
|
1366
|
+
|
|
1367
|
+
- **Breaking:** a skill switched off on the agent can no longer be used. Naming
|
|
1368
|
+
it with `@` or in prose loads nothing and unlocks nothing, and a chat that
|
|
1369
|
+
loaded it earlier loses it as soon as it is switched off (QVAC-25357).
|
|
1370
|
+
`skillIsActive` reads the agent's `enabledSkills` alone, and
|
|
1371
|
+
`SkillActivation` drops its `mention` and `loadedSkills` fields. A host that
|
|
1372
|
+
relied on a mention to grant a skill must enable it on the agent first. (#338)
|
|
1373
|
+
- A round that says nothing and calls nothing is re-asked on a history that
|
|
1374
|
+
keeps that round's turn. The re-ask used to resend the history without it,
|
|
1375
|
+
which the SDK, having cached the turn, read as stale: it sent the whole
|
|
1376
|
+
history again and the addon appended it to the KV cache. (#403)
|
|
1377
|
+
- A model loaded by hand when nothing else is in memory is no longer refused,
|
|
1378
|
+
even when its estimate is above the memory cap. Beside another model a
|
|
1379
|
+
manual load is still refused, so it never piles a second model into memory.
|
|
1380
|
+
(#394)
|
|
1381
|
+
|
|
1382
|
+
- When llama.cpp overruns its grammar mid-round and a complete
|
|
1383
|
+
`<function=…></function>` call has already streamed, the round ends on that
|
|
1384
|
+
text and markup recovery runs the call, instead of the turn failing with
|
|
1385
|
+
"Unexpected empty grammar stack". The held-back prose is flushed before any
|
|
1386
|
+
rethrow, and the inference inspector reports the recovered round as
|
|
1387
|
+
`completed` with the grammar error as its `reason`. (#370)
|
|
1388
|
+
|
|
1389
|
+
- `@mention`s, the implicit skill preload and the explicit web-search check
|
|
1390
|
+
read the turn as the user typed it (`CompletionContext.said`, carried in the
|
|
1391
|
+
start frame's existing payload), so a host that rewrites the stored turn no
|
|
1392
|
+
longer hides a mention. Hosts that do not send `said` behave as before.
|
|
1393
|
+
(#372)
|
|
1394
|
+
|
|
1395
|
+
- Office files keep their pictures off the text: in a deck a picture fills an
|
|
1396
|
+
empty placeholder, sits below the text when there is room, and otherwise
|
|
1397
|
+
takes the right half; an op aimed at a slide a later `addSlide` creates is
|
|
1398
|
+
refused rather than moved. In a workbook `addImage` without a `cell` lands
|
|
1399
|
+
beside the data, as `addChart` does, and a second picture or chart stacks
|
|
1400
|
+
below the first. A nested op is named as its own entry in a tool error, and
|
|
1401
|
+
the tool result says when an attached image went unused. (#406)
|
|
1402
|
+
|
|
1403
|
+
### Removed
|
|
1404
|
+
|
|
1405
|
+
- **Breaking:** `skillPreloadMessage` (`lib/tools/skills/mention.ts`) and
|
|
1406
|
+
`withoutSkillLoadTurns` (`lib/capabilities/tool-turns.ts`). Nothing writes a
|
|
1407
|
+
skill body into the user's message any more, so no earlier load turn has to
|
|
1408
|
+
be dropped to keep the two from contradicting each other.
|
|
1409
|
+
- `CompletionSdk.deleteCache`. Nothing calls it now that the child key (#305)
|
|
1410
|
+
and the chat-cache drop after a model-loaded skill (#373, reverted in #400)
|
|
1411
|
+
are gone.
|
|
1412
|
+
|
|
1413
|
+
## [0.8.6] - 2026-10-08
|
|
1414
|
+
|
|
1415
|
+
### Added
|
|
1416
|
+
|
|
1417
|
+
- `setModelMemoryCap(percent)` keeps several models loaded side by side. Loaded
|
|
1418
|
+
models may fill that share of the device's memory budget, so chat models a
|
|
1419
|
+
request loaded stay loaded while they fit, and a chat switching between them
|
|
1420
|
+
loads neither again.
|
|
1421
|
+
|
|
1422
|
+
A load that would not fit unloads idle models one at a time, least recently
|
|
1423
|
+
used first within each group: image and music models first, then embedding,
|
|
1424
|
+
speech and transcription models, then chat models a request loaded, then
|
|
1425
|
+
those loaded by hand. A manual `loadModel` of any kind never unloads another
|
|
1426
|
+
model.
|
|
1427
|
+
|
|
1428
|
+
Each load is sized by `assessModelFit`. `list()` rows of loaded models carry
|
|
1429
|
+
the estimate as `memoryBytes`, and `memoryUsage()` answers their total. `0`,
|
|
1430
|
+
a mobile device, and a host that never sets a cap keep one chat model a
|
|
1431
|
+
request loaded, as before (QVAC-25735). See
|
|
1432
|
+
[Keeping several models in memory](https://github.com/tetherto/qvac-harness/blob/v0.8.6/README.md#keeping-several-models-in-memory)
|
|
1433
|
+
and the
|
|
1434
|
+
[decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.6/docs/decisions/2026-10-07-loaded-models-share-a-memory-budget.md).
|
|
1435
|
+
|
|
1436
|
+
```js
|
|
1437
|
+
await harness.setModelMemoryCap(85)
|
|
1438
|
+
|
|
1439
|
+
const { usedBytes } = await harness.memoryUsage()
|
|
1440
|
+
const loaded = (await harness.list({ cachedOnly: true })).filter((m) => m.isLoaded)
|
|
1441
|
+
// each loaded row carries memoryBytes, the estimate its load was sized by
|
|
1442
|
+
```
|
|
1443
|
+
|
|
1444
|
+
(#358)
|
|
1445
|
+
|
|
1446
|
+
- `setDownloadsAllowed({ allowed })`, in process and over hrpc, lets a host hold
|
|
1447
|
+
model downloads, for example while a phone is on cellular, so a request
|
|
1448
|
+
cannot pull several GB without asking. Downloads are allowed by default, and
|
|
1449
|
+
`download()` itself is never held: it is how the host fetches a held model
|
|
1450
|
+
once the user approves.
|
|
1451
|
+
|
|
1452
|
+
While downloads are not allowed, a load whose model is not on the device
|
|
1453
|
+
emits a `model` event with `status: 'held'`, the model's download name and
|
|
1454
|
+
its `addon`, then waits. It goes ahead once a `download()` puts the model on
|
|
1455
|
+
the device or downloads are allowed again. Aborting the caller's signal ends
|
|
1456
|
+
it with `AbortedError`, and a wait that ends without loading reports `error`
|
|
1457
|
+
with `message: 'aborted'`. This covers the image, music and translation
|
|
1458
|
+
runtimes and every pooled load (chat, embedding, speech, transcription).
|
|
1459
|
+
|
|
1460
|
+
Over hrpc, every model event frame now carries an `addon` field, which is
|
|
1461
|
+
`null` unless the event is `held` or the `error` that ends a held wait. See
|
|
1462
|
+
[Holding model downloads](https://github.com/tetherto/qvac-harness/blob/v0.8.6/README.md#holding-model-downloads)
|
|
1463
|
+
and the
|
|
1464
|
+
[decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.6/docs/decisions/2026-10-07-a-load-waits-for-a-download-the-host-holds.md).
|
|
1465
|
+
|
|
1466
|
+
```js
|
|
1467
|
+
await harness.setDownloadsAllowed({ allowed: false })
|
|
1468
|
+
|
|
1469
|
+
harness.on('model', (state) => {
|
|
1470
|
+
if (state.status === 'held') askToDownload(state.model, state.addon)
|
|
1471
|
+
})
|
|
1472
|
+
|
|
1473
|
+
// later, once the user agrees
|
|
1474
|
+
await harness.setDownloadsAllowed({ allowed: true })
|
|
1475
|
+
```
|
|
1476
|
+
|
|
1477
|
+
(#340)
|
|
1478
|
+
|
|
1479
|
+
- Ternary Bonsai 2 27B joins the curated catalog in two builds,
|
|
1480
|
+
`Ternary-Bonsai-2-27B-PQ2_0` (7.2 GB) and `Ternary-Bonsai-2-27B-PTQ1_0`
|
|
1481
|
+
(5.9 GB), each with its vision projection. Both sit in the `high` tier, by
|
|
1482
|
+
their memory footprint rather than their parameter count.
|
|
1483
|
+
|
|
1484
|
+
It is a Qwen3.8-27B fine-tune whose name the SDK's dialect router does not
|
|
1485
|
+
recognise, so it parses tool calls as `qwen35`; a catalog entry can now name
|
|
1486
|
+
its tool dialect.
|
|
1487
|
+
|
|
1488
|
+
```js
|
|
1489
|
+
import { BONSAI_2_27B_PTQ1 } from '@qvac/harness/model-catalog'
|
|
1490
|
+
|
|
1491
|
+
await harness.loadModel({ model: BONSAI_2_27B_PTQ1, agent: { ctxSize: 8192 } })
|
|
1492
|
+
```
|
|
1493
|
+
|
|
1494
|
+
(#303)
|
|
1495
|
+
|
|
1496
|
+
### Changed
|
|
1497
|
+
|
|
1498
|
+
- `@qvac/sdk` and `@qvac/inference` 0.21.0, with `@qvac/llm-llamacpp` 0.55.0.
|
|
1499
|
+
A host that packages the addons exempts `@qvac/fabric-<os>-<cpu>` from any
|
|
1500
|
+
install age gate: `@qvac/fabric` now ships its prebuilds as those
|
|
1501
|
+
per-platform packages. `@qvac/model-fit` leaves the native graph. The fit
|
|
1502
|
+
check passes the model's source to the SDK's new `loadModel`-shaped
|
|
1503
|
+
`assessModelFit` input. (#302)
|
|
1504
|
+
- Transcribing long audio no longer needs memory in proportion to its length.
|
|
1505
|
+
It streams the audio to the model in 300 s segments instead of decoding the
|
|
1506
|
+
whole clip first: a 3.8 h clip peaked at about 0.9 GB above baseline, down
|
|
1507
|
+
from 1.8 GB. Clips under 60 s are transcribed as before. (#291)
|
|
1508
|
+
|
|
1509
|
+
### Fixed
|
|
1510
|
+
|
|
1511
|
+
- A run that preloads a skill (`@skill`, or a skill named in prose) no longer
|
|
1512
|
+
prefills the whole prompt on every round of a tool loop. It caches its prompt
|
|
1513
|
+
under a child of the chat's key for the length of the run, and the child key
|
|
1514
|
+
is deleted when the run ends. (#305)
|
|
1515
|
+
|
|
1516
|
+
## [0.8.5] - 2026-10-06
|
|
1517
|
+
|
|
1518
|
+
### Added
|
|
1519
|
+
|
|
1520
|
+
- The model can now read, edit and create PowerPoint, Word and Excel files
|
|
1521
|
+
without Python, on Bare and Node: skill-gated `pptx`, `docx` and `xlsx`
|
|
1522
|
+
tools on the office engine. These are the tools the presentations, word and
|
|
1523
|
+
excel skills in `@qvac/skills` 0.1.12 call.
|
|
1524
|
+
|
|
1525
|
+
A call takes an `attachmentId` (or `create` options), `ops` that name engine
|
|
1526
|
+
methods with named arguments, and an `output` file name; with an
|
|
1527
|
+
`attachmentId` alone it returns the file's contents. The first failing op
|
|
1528
|
+
saves nothing and returns the engine's error.
|
|
1529
|
+
|
|
1530
|
+
An edit is never saved under the attached file's own name. Saving the same
|
|
1531
|
+
file again in one turn answers with the one already attached, and a changed
|
|
1532
|
+
file under that name is refused. The one-line answer comes back as `reply`.
|
|
1533
|
+
See the
|
|
1534
|
+
[office engine](https://github.com/tetherto/qvac-harness/blob/v0.8.5/lib/office/engine/README.md)
|
|
1535
|
+
for the methods an op can name.
|
|
1536
|
+
|
|
1537
|
+
```js
|
|
1538
|
+
// the arguments a model passes to the pptx tool
|
|
1539
|
+
{
|
|
1540
|
+
create: { title: 'Q3 review' },
|
|
1541
|
+
ops: [{ op: 'addSlide', title: 'Revenue', body: 'Up 12% on Q2' }],
|
|
1542
|
+
output: 'q3-review.pptx'
|
|
1543
|
+
}
|
|
1544
|
+
```
|
|
1545
|
+
|
|
1546
|
+
(#286)
|
|
1547
|
+
|
|
1548
|
+
### Changed
|
|
1549
|
+
|
|
1550
|
+
- **Breaking:** `@qvac/skills` is now 0.1.12, whose office and pdf skills run on
|
|
1551
|
+
the `pptx`, `docx`, `xlsx` and `pdf` tools instead of Python. A host that
|
|
1552
|
+
passes its own `skillsDir` needs 0.1.12 as well: older office skills import
|
|
1553
|
+
Python libraries this release no longer ships. A host on the bundled skills
|
|
1554
|
+
has nothing to do.
|
|
1555
|
+
|
|
1556
|
+
```sh
|
|
1557
|
+
# a host whose own skillsDir comes from @qvac/skills
|
|
1558
|
+
# before
|
|
1559
|
+
npm install @qvac/skills@0.1.11
|
|
1560
|
+
# after
|
|
1561
|
+
npm install @qvac/skills@0.1.12
|
|
1562
|
+
```
|
|
1563
|
+
|
|
1564
|
+
(#286)
|
|
1565
|
+
|
|
1566
|
+
- `extractOfficeText` and `extractDocxText` no longer start Pyodide: they read
|
|
1567
|
+
.docx, .xlsx and .pptx in process on the engine, and read at most 1M cells
|
|
1568
|
+
across a workbook. Extracted workbook booleans read `true`/`false` instead of
|
|
1569
|
+
`True`/`False`. `closeOfficeWorker` and `closeDocxWorker` remain as no-ops.
|
|
1570
|
+
(#286)
|
|
1571
|
+
- `exec` refuses Python that imports `pptx`, `docx` or `openpyxl`, or declares
|
|
1572
|
+
their packages, before it runs. The refusal names the tool (or the skill
|
|
1573
|
+
that grants it) to use instead, so the model moves to the office tools
|
|
1574
|
+
rather than trying to install the package. (#287)
|
|
1575
|
+
- **Breaking:** Python run through `exec` asks for approval like any other
|
|
1576
|
+
write, including a run that only builds a new PDF. Those runs used to
|
|
1577
|
+
skip `approve`; now the user is asked. The `pdf` tool, which builds PDFs now,
|
|
1578
|
+
counts as a read and does not ask.
|
|
1579
|
+
|
|
1580
|
+
```js
|
|
1581
|
+
// before: exec running Python that only built a new PDF skipped approve
|
|
1582
|
+
// after: it reaches approve as a write, like any other Python run
|
|
1583
|
+
const context = {
|
|
1584
|
+
model,
|
|
1585
|
+
agent,
|
|
1586
|
+
messages,
|
|
1587
|
+
approve: async ({ name, effect }) => (effect === 'write' ? askUser(name) : true)
|
|
1588
|
+
}
|
|
1589
|
+
```
|
|
1590
|
+
|
|
1591
|
+
(#289)
|
|
1592
|
+
|
|
1593
|
+
### Removed
|
|
1594
|
+
|
|
1595
|
+
- **Breaking:** the vendored Python wheels for python-pptx, python-docx,
|
|
1596
|
+
openpyxl, fpdf2 and pypdf, and their dependencies. Only micropip is still
|
|
1597
|
+
seeded; any other package installs from PyPI, which sandbox mode refuses.
|
|
1598
|
+
Use the office and `pdf` tools.
|
|
1599
|
+
|
|
1600
|
+
```js
|
|
1601
|
+
// before: exec built a PDF offline with the vendored fpdf2
|
|
1602
|
+
{ language: 'python', command: 'from fpdf import FPDF\n...', outputs: ['report.pdf'] }
|
|
1603
|
+
// after: the pdf tool builds it
|
|
1604
|
+
{ action: 'create', markdown: '# Report\n...', output: 'report.pdf' }
|
|
1605
|
+
```
|
|
1606
|
+
|
|
1607
|
+
(#286, #289)
|
|
1608
|
+
|
|
1609
|
+
- The `exec` guidance written for python-pptx, python-docx and fpdf2 code:
|
|
1610
|
+
their error hints and source checks, and the shrink-to-fit pass on saved
|
|
1611
|
+
decks. (#288, #289)
|
|
1612
|
+
|
|
1613
|
+
## [0.8.0] - 2026-10-05
|
|
1614
|
+
|
|
1615
|
+
### Added
|
|
1616
|
+
|
|
1617
|
+
- The model can read, create and change PDFs without Python: a skill-gated
|
|
1618
|
+
`pdf` tool on `bare-pdfium` 1.6.0. The pdf skill in the next `@qvac/skills`
|
|
1619
|
+
release uses it instead of Python. On Node it reports that the device cannot
|
|
1620
|
+
open PDFs.
|
|
1621
|
+
|
|
1622
|
+
With an `attachmentId` and no `action` it reads a PDF: the page count, each
|
|
1623
|
+
page's text and the form fields. With an `action` it saves a new file named
|
|
1624
|
+
`output` and attaches it: `create` from Markdown (chat images placed with
|
|
1625
|
+
``), `merge`, `split`, `rotate`, `watermark`, `fill`,
|
|
1626
|
+
`encrypt`, `decrypt` and `text`.
|
|
1627
|
+
|
|
1628
|
+
Errors name what exists, a locked PDF takes its password on any action, and
|
|
1629
|
+
the one-line answer comes back as `reply`.
|
|
1630
|
+
|
|
1631
|
+
```js
|
|
1632
|
+
// the arguments a model passes to the pdf tool
|
|
1633
|
+
{ attachmentId, action: 'rotate', degrees: 90, pages: [2], output: 'scan-rotated.pdf' }
|
|
1634
|
+
```
|
|
1635
|
+
|
|
1636
|
+
(#256)
|
|
1637
|
+
|
|
1638
|
+
- An office engine in `lib/office/engine/` reads, edits and creates `.pptx`,
|
|
1639
|
+
`.docx` and `.xlsx` files in TypeScript on Bare and Node, so office editing
|
|
1640
|
+
no longer needs Python and can run on mobile. It is internal in this release:
|
|
1641
|
+
the tools that drive it come in 0.8.5.
|
|
1642
|
+
|
|
1643
|
+
It keeps untouched parts byte for byte, fails with a `DocsError` whose code
|
|
1644
|
+
names the problem, and moves Excel references when rows and columns change.
|
|
1645
|
+
It adds `@xmldom/xmldom`, makes `bare-zlib` a direct dependency and maps
|
|
1646
|
+
`#zlib` to `bare-zlib` or `zlib`. See the
|
|
1647
|
+
[engine's README](https://github.com/tetherto/qvac-harness/blob/v0.8.0/lib/office/engine/README.md)
|
|
1648
|
+
and the
|
|
1649
|
+
[decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.0/docs/decisions/2026-09-28-office-files-are-edited-by-the-harness-engine.md).
|
|
1650
|
+
(#150)
|
|
1651
|
+
|
|
1652
|
+
### Fixed
|
|
1653
|
+
|
|
1654
|
+
- Qwen3.5-family models no longer stall several tool calls into a turn. A tool
|
|
1655
|
+
call that ran goes back into the chat history in the Qwen3.5 template's own
|
|
1656
|
+
format (`<tool_call>` wrapper, one line per tag, string values as written)
|
|
1657
|
+
instead of a compact `<function=…>` line.
|
|
1658
|
+
|
|
1659
|
+
A model several calls into a turn copied the compact form, the tool grammar
|
|
1660
|
+
rejected it, and the run ended in "This didn't finish". Models with another
|
|
1661
|
+
tool format (e.g. MedPsy) still get a format that is not their own, until
|
|
1662
|
+
the SDK accepts structured tool calls in history. (QVAC-23092, #146)
|
|
1663
|
+
|
|
1664
|
+
- A skill's gated tools now appear when the model first asks the skill for a
|
|
1665
|
+
file it does not have. Loaded with such a `file` before its instructions were
|
|
1666
|
+
loaded, the skill returns those instructions with a line naming the files it
|
|
1667
|
+
has, so it counts as loaded. Before, a one-file skill answered that the model
|
|
1668
|
+
already had its instructions, and its tools stayed hidden. (#257)
|
|
1669
|
+
- Small models no longer keep calling tools on their own output until the round
|
|
1670
|
+
cap. After a tool attaches a file, the loop tells the model the file is shown
|
|
1671
|
+
and to answer, allows one more tool round, then writes the answer in a
|
|
1672
|
+
tool-less round. (#258)
|
|
1673
|
+
- `exec`: text like `$1,299` in a shell command runs on the first try. A `$`
|
|
1674
|
+
before a digit, a space or punctuation is escaped instead of rejected. Real
|
|
1675
|
+
shell expansion is still refused, now with a hint to single-quote the text.
|
|
1676
|
+
(#208)
|
|
1677
|
+
|
|
1678
|
+
## [0.7.3] - 2026-10-01
|
|
1679
|
+
|
|
1680
|
+
### Added
|
|
1681
|
+
|
|
1682
|
+
- A tool can now end the turn with its own answer. A tool result may carry
|
|
1683
|
+
`answer: true` beside a non-empty `content`, and that content becomes the
|
|
1684
|
+
reply without another round through the model. The `tool-result` event still
|
|
1685
|
+
fires.
|
|
1686
|
+
|
|
1687
|
+
`weather_lookup` uses it for an ambiguous or unknown place: the question that
|
|
1688
|
+
lists the namesakes, or the not-found line, is the reply.
|
|
1689
|
+
|
|
1690
|
+
```js
|
|
1691
|
+
const harness = new Harness({
|
|
1692
|
+
tools: [
|
|
1693
|
+
{
|
|
1694
|
+
name: 'store_hours',
|
|
1695
|
+
description: 'Opening hours of the store',
|
|
1696
|
+
parameters: { type: 'object', properties: {} },
|
|
1697
|
+
toolset: null,
|
|
1698
|
+
effect: () => 'read',
|
|
1699
|
+
execute: async () => ({ content: 'Open 9 to 5, Monday to Saturday.', answer: true })
|
|
1700
|
+
}
|
|
1701
|
+
]
|
|
1702
|
+
})
|
|
1703
|
+
```
|
|
1704
|
+
|
|
1705
|
+
(#153)
|
|
1706
|
+
|
|
1707
|
+
### Fixed
|
|
1708
|
+
|
|
1709
|
+
- `weather_lookup` reports the place that was asked about: a bare "Nassau" now
|
|
1710
|
+
reports Nassau, Bahamas. It used to ask wttr.in by name, whose own geocoder
|
|
1711
|
+
put it in Westbury, New York.
|
|
1712
|
+
|
|
1713
|
+
It now finds the place before it asks for the weather. It looks the city up
|
|
1714
|
+
on Open-Meteo's geocoder, `geocoding-api.open-meteo.com`, a new outbound
|
|
1715
|
+
host, and asks wttr.in for the forecast at the coordinates of the place it
|
|
1716
|
+
picked, which leads the report. The resource label names both hosts.
|
|
1717
|
+
|
|
1718
|
+
A name that places of a similar size share, such as Springfield, gets a
|
|
1719
|
+
question listing up to four of them instead of a forecast: any namesake with
|
|
1720
|
+
a tenth of the largest one's population counts. A country or state in the
|
|
1721
|
+
request picks among them. When the geocoder is blocked, slow or failing, or
|
|
1722
|
+
knows no such place, the lookup asks wttr.in by name, as before. See the
|
|
1723
|
+
[decision record](https://github.com/tetherto/qvac-harness/blob/v0.7.3/docs/decisions/2026-09-16-a-lookup-reports-the-place-it-resolved.md).
|
|
1724
|
+
(#153)
|
|
1725
|
+
|
|
1726
|
+
## [0.7.2] - 2026-10-01
|
|
1727
|
+
|
|
1728
|
+
### Added
|
|
1729
|
+
|
|
1730
|
+
- A plain-text file `web_fetch` fetched (.txt, .csv, .json…) is now attached
|
|
1731
|
+
to the chat besides its text being returned, so the user can open or save
|
|
1732
|
+
it and `exec` can stage it to read past the returned text. The result
|
|
1733
|
+
carries its `attachmentId`, `fileName` and `byteLength`.
|
|
1734
|
+
|
|
1735
|
+
A body cut at the fetch cap is not attached, and a host that cannot store
|
|
1736
|
+
files gets the text alone, as with page images.
|
|
1737
|
+
|
|
1738
|
+
```js
|
|
1739
|
+
for await (const event of harness.completion(context)) {
|
|
1740
|
+
if (event.type === 'tool-result' && event.name === 'web_fetch') {
|
|
1741
|
+
const { attachmentId, fileName, byteLength } = event.result
|
|
1742
|
+
// attachmentId is undefined when nothing was attached
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
```
|
|
1746
|
+
|
|
1747
|
+
(#147, #148)
|
|
1748
|
+
|
|
1749
|
+
### Changed
|
|
1750
|
+
|
|
1751
|
+
- Speech sounds cleaner on desktops. Devices on the `mid` profile and up now
|
|
1752
|
+
speak with Supertonic 3 FP16 (`Supertonic3-FP16`, 207 MB) instead of Q8_0
|
|
1753
|
+
(127 MB), at 16 inference steps instead of 5, which removes the artifacts
|
|
1754
|
+
the 5-step output had.
|
|
1755
|
+
|
|
1756
|
+
Synthesis takes about 2.7× as long, still around 7× faster than real time on
|
|
1757
|
+
an M-series Mac. Phones (`low`) and `tiny` devices keep Q4_0 at 5 steps.
|
|
1758
|
+
|
|
1759
|
+
A host that prefetches `infraModelsFor` downloads the FP16 model once;
|
|
1760
|
+
`Supertonic3-Q8_0` stays in the catalog, and now also runs at 16 steps when a
|
|
1761
|
+
host asks for it by name.
|
|
1762
|
+
|
|
1763
|
+
```js
|
|
1764
|
+
import { defaultTtsModelName } from '@qvac/harness/model-defaults'
|
|
1765
|
+
|
|
1766
|
+
defaultTtsModelName('mid') // 'Supertonic3-FP16', was 'Supertonic3-Q8_0'
|
|
1767
|
+
```
|
|
1768
|
+
|
|
1769
|
+
(#149)
|
|
1770
|
+
|
|
11
1771
|
## [0.7.1] - 2026-09-30
|
|
12
1772
|
|
|
13
1773
|
### Added
|
|
14
1774
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1775
|
+
- A host can show a model as loading without counting loads itself. `list()`
|
|
1776
|
+
rows carry `isLoading`: true from the moment a load of that model starts,
|
|
1777
|
+
whoever asked for it (a request, `warmModel` or `loadModel`), until it is
|
|
1778
|
+
ready or the load fails. It is read off the pool.
|
|
1779
|
+
|
|
1780
|
+
A model loading again under other settings while a copy of it is resident
|
|
1781
|
+
reads `isLoaded` and `isLoading` both true. Chat models read it today. Image,
|
|
1782
|
+
music and translation models load for each generation, and speech,
|
|
1783
|
+
transcription and embedding pools key by source, so those rows read `false`
|
|
1784
|
+
for now. It is an optional field on the wire; a row from an older harness
|
|
1785
|
+
reads `false`. See
|
|
1786
|
+
[Load and unload a model](https://github.com/tetherto/qvac-harness/blob/v0.7.1/README.md#load-and-unload-a-model).
|
|
24
1787
|
|
|
25
1788
|
```js
|
|
26
1789
|
const loading = (await harness.list({ cachedOnly: true })).filter((row) => row.isLoading)
|
|
27
1790
|
```
|
|
28
1791
|
|
|
1792
|
+
(#143)
|
|
1793
|
+
|
|
29
1794
|
### Changed
|
|
30
1795
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1796
|
+
- A host that re-reads `list()` on `catalogChanged` sees a model turn loading,
|
|
1797
|
+
then loaded, with no bookkeeping of its own. The `model` event carries
|
|
1798
|
+
`catalogChanged` at every edge a re-read would show: the `loading` that
|
|
1799
|
+
starts a load and the `ready` or `error` that ends it, beside `unloaded`.
|
|
1800
|
+
Progress ticks still do not.
|
|
1801
|
+
|
|
1802
|
+
The served event stream never drops a frame that carries it, so two `ready`
|
|
1803
|
+
frames of one model under two keys both cross.
|
|
1804
|
+
|
|
1805
|
+
```js
|
|
1806
|
+
harness.on('model', async (state) => {
|
|
1807
|
+
if (state.catalogChanged) render(await harness.list({ cachedOnly: true }))
|
|
1808
|
+
})
|
|
1809
|
+
```
|
|
1810
|
+
|
|
1811
|
+
(#143)
|
|
1812
|
+
|
|
37
1813
|
- `ModelInfo` requires `isLoading`, and `listModels`, `customModelRows` and
|
|
38
1814
|
`mergeCustomRows` return `CatalogRow`, the row before the pools are asked. A
|
|
39
|
-
typed fake `list()` adds the field.
|
|
1815
|
+
typed fake `list()` adds the field.
|
|
1816
|
+
|
|
1817
|
+
```js
|
|
1818
|
+
// before
|
|
1819
|
+
list: async () => [{ ...row, isLoaded: false }]
|
|
1820
|
+
|
|
1821
|
+
// after
|
|
1822
|
+
list: async () => [{ ...row, isLoaded: false, isLoading: false }]
|
|
1823
|
+
```
|
|
1824
|
+
|
|
1825
|
+
(#143)
|
|
1826
|
+
|
|
40
1827
|
- A custom model's row reads `isLoaded` only once its load has landed; it used
|
|
41
1828
|
to read `true` from the first attempt. (#143)
|
|
42
1829
|
|
|
43
1830
|
### Fixed
|
|
44
1831
|
|
|
45
|
-
- A
|
|
46
|
-
the
|
|
47
|
-
|
|
48
|
-
`error` also refreshes the cached `isCached`, since a load may
|
|
49
|
-
the weights before it failed. (#143)
|
|
1832
|
+
- A host can tell a failed load from one still running. A load that ends
|
|
1833
|
+
without the model in memory emits `model` with `error` and the reason in
|
|
1834
|
+
`message`: it failed, or a suspend or close cancelled it. It used to end in
|
|
1835
|
+
silence. The `error` also refreshes the cached `isCached`, since a load may
|
|
1836
|
+
have downloaded the weights before it failed. (#143)
|
|
50
1837
|
|
|
51
1838
|
## [0.7.0] - 2026-09-29
|
|
52
1839
|
|
|
53
1840
|
### Added
|
|
54
1841
|
|
|
55
|
-
-
|
|
56
|
-
`
|
|
57
|
-
`
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1842
|
+
- A host can tell what each model is for without keeping its own table.
|
|
1843
|
+
`list()` rows carry `taskType`: `llm`, `embeddings`, `speech-to-text`,
|
|
1844
|
+
`text-to-speech`, `image-generation`, `audio-generation`, `translation`,
|
|
1845
|
+
`text-recognition` or `other`.
|
|
1846
|
+
|
|
1847
|
+
It is decided from the addon in one place, `lib/models/model-task.ts`, on
|
|
1848
|
+
each side of the wire rather than sent over it. `ModelTaskType` is exported,
|
|
1849
|
+
and grows the four new values a preview never returns.
|
|
61
1850
|
|
|
62
|
-
|
|
1851
|
+
```js
|
|
1852
|
+
const rows = await harness.list({ cachedOnly: true })
|
|
1853
|
+
const transcribers = rows.filter((row) => row.taskType === 'speech-to-text')
|
|
1854
|
+
```
|
|
1855
|
+
|
|
1856
|
+
(#140)
|
|
1857
|
+
|
|
1858
|
+
- `modelsForAgent(agent, host)` answers which models an agent runs on a device,
|
|
63
1859
|
each with its `use`: the chat model, clamped by `runnableModelName`, then the
|
|
64
1860
|
image and music models its skills need. A host deciding what to download, or
|
|
65
1861
|
which agents a model delete affects, asks this instead of working it out.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1862
|
+
|
|
1863
|
+
`runnableModelName(requested, host)` and `isMobilePlatform(platform)` move
|
|
1864
|
+
here from `@qvac/core`: on a phone, a pick above the device's profile runs as
|
|
1865
|
+
its recommended model. Whether the host is a phone is the required `mobile`
|
|
1866
|
+
on `HostCapability`, which `capability()` now reports, so its answer passes
|
|
1867
|
+
straight in; a host built by hand has to say. `runnableModelName` and
|
|
1868
|
+
`isMobilePlatform` are on the browser-safe `@qvac/harness/model-catalog`
|
|
1869
|
+
entry too.
|
|
72
1870
|
|
|
73
1871
|
```js
|
|
74
|
-
|
|
1872
|
+
import { modelsForAgent, QWEN_35_9B } from '@qvac/harness'
|
|
1873
|
+
|
|
1874
|
+
const agent = {
|
|
1875
|
+
modelName: QWEN_35_9B,
|
|
1876
|
+
installedSkills: ['image-generation'],
|
|
1877
|
+
skillsScope: 'all'
|
|
1878
|
+
}
|
|
1879
|
+
const models = modelsForAgent(agent, await harness.capability())
|
|
1880
|
+
// [{ name, addon: 'llm', use: 'chat' }, { name, addon, use: 'image' }]
|
|
75
1881
|
```
|
|
76
1882
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
a response from an older harness reads as `false`. (#141)
|
|
1883
|
+
```js
|
|
1884
|
+
import { runnableModelName, QWEN_35_4B, QWEN_35_9B } from '@qvac/harness/model-catalog'
|
|
80
1885
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1886
|
+
const host = { capabilityProfile: 'mid', recommendedModelName: QWEN_35_4B, mobile: true }
|
|
1887
|
+
runnableModelName(QWEN_35_9B, host) // QWEN_35_4B
|
|
1888
|
+
```
|
|
1889
|
+
|
|
1890
|
+
(#141)
|
|
1891
|
+
|
|
1892
|
+
- `capability()` answers `mobile`, whether the harness runs on a phone, read
|
|
1893
|
+
off the platform it probes. It rides `capability-response` as an optional
|
|
1894
|
+
field; a response from an older harness reads as `false`.
|
|
1895
|
+
|
|
1896
|
+
```js
|
|
1897
|
+
const { mobile } = await harness.capability()
|
|
1898
|
+
```
|
|
1899
|
+
|
|
1900
|
+
(#141)
|
|
1901
|
+
|
|
1902
|
+
- A host no longer needs to know what `modelChoice` means in an agent's
|
|
1903
|
+
`generate_music` tool settings. `musicModelChoiceFrom(settings)` reads the
|
|
1904
|
+
music model pick out of them, and `isMusicModelChoice` is exported beside it.
|
|
1905
|
+
|
|
1906
|
+
```js
|
|
1907
|
+
import { musicModelChoiceFrom } from '@qvac/harness/music-catalog'
|
|
1908
|
+
|
|
1909
|
+
musicModelChoiceFrom({ modelChoice: 'turbo-hq' }) // 'turbo-hq'
|
|
1910
|
+
musicModelChoiceFrom({}) // undefined
|
|
1911
|
+
```
|
|
1912
|
+
|
|
1913
|
+
(#141)
|
|
84
1914
|
|
|
85
1915
|
### Changed
|
|
86
1916
|
|
|
87
|
-
- **Breaking:** the package no longer publishes a prebuilt sidecar
|
|
1917
|
+
- **Breaking:** the package no longer publishes a prebuilt sidecar.
|
|
88
1918
|
`dist/harness.bundle`, `dist/harness.cjs`, `dist/prebuilds-manifest.json` and
|
|
89
1919
|
the `./dist/harness.cjs` export are gone. A host stows
|
|
90
1920
|
`worker/harness-sidecar.mjs` itself, as desktop and mobile already do, or
|
|
91
|
-
spawns `worker/stow-entry.mjs` straight from its install.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1921
|
+
spawns `worker/stow-entry.mjs` straight from its install. See
|
|
1922
|
+
[The published package](https://github.com/tetherto/qvac-harness/blob/v0.7.0/README.md#the-published-package)
|
|
1923
|
+
and [Spawning](https://github.com/tetherto/qvac-harness/blob/v0.7.0/README.md#spawning).
|
|
1924
|
+
|
|
1925
|
+
```js
|
|
1926
|
+
// before
|
|
1927
|
+
const harness = require('@qvac/harness/dist/harness.cjs')
|
|
1928
|
+
const { ipc, sidecar, exit } = await harness.start(args)
|
|
1929
|
+
|
|
1930
|
+
// after
|
|
1931
|
+
import { spawnHarness } from '@qvac/harness'
|
|
1932
|
+
|
|
1933
|
+
const harness = spawnHarness({
|
|
1934
|
+
entry: require.resolve('@qvac/harness/worker/stow-entry.mjs'),
|
|
1935
|
+
sdkStorage
|
|
1936
|
+
})
|
|
1937
|
+
```
|
|
1938
|
+
|
|
1939
|
+
(#127)
|
|
1940
|
+
|
|
1941
|
+
- **Breaking:** a stowed harness runs python in a worker rather than
|
|
1942
|
+
in-process. A host that stows the harness:
|
|
1943
|
+
|
|
1944
|
+
- stops deferring `pyodide`
|
|
1945
|
+
- keeps `QVAC_PYODIDE_CACHE_DIR` writable
|
|
1946
|
+
- no longer stages a separate worker bundle
|
|
1947
|
+
- ships what stow offloads beside the bundle, which now includes pyodide's
|
|
1948
|
+
wasm, stdlib and lock file and the vendored wheels
|
|
1949
|
+
|
|
1950
|
+
A target that embeds assets instead of offloading them cannot run python,
|
|
1951
|
+
since `fs` cannot read inside a bundle. See
|
|
1952
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.7.0/docs/decisions/2026-09-25-the-python-worker-runs-on-bare-worker.md).
|
|
1953
|
+
(#127)
|
|
1954
|
+
|
|
1955
|
+
- A bundle of the package root carries neither pyodide nor the vendored
|
|
1956
|
+
wheels. Only an entry that runs python pulls them in: the exec tool, or
|
|
1957
|
+
`@qvac/harness/docx` and `/office`. (#127)
|
|
102
1958
|
- `SandboxHook` no longer checks `packages`. The exec tool refuses an install
|
|
103
1959
|
the vendored wheels do not hold in full in sandbox mode, whether declared in
|
|
104
1960
|
`packages` or on a pip line, with the same message as before. (#127)
|
|
105
1961
|
- The vendored wheels are the `#pyodide-wheels` directory asset on Bare;
|
|
106
1962
|
`QVAC_PYTHON_WHEELS_DIR` still overrides it. (#127)
|
|
107
1963
|
- The python worker and the in-process deadline are spawned through
|
|
108
|
-
`worker_threads`, which the package maps to `bare-worker
|
|
1964
|
+
`worker_threads`, which the package maps to `bare-worker`.
|
|
109
1965
|
`#pyodide-worker-spawn` is gone. (#127)
|
|
110
|
-
- **Breaking:**
|
|
111
|
-
|
|
112
|
-
`bare-sidecar` to 0.5.7 (Bare 1.34.0) across the tree, `bare-supervisor`'s
|
|
113
|
-
included, with `bare-thread` at least 1.2.7 and `bare-module` 7.1.0 for
|
|
114
|
-
`bare-worker`'s copy. (#127)
|
|
1966
|
+
- **Breaking:** Bare refuses to load the package on runtimes older than 1.34.0:
|
|
1967
|
+
`engines.bare` is `>=1.34.0`. `bare-runtime` is pinned to 1.34.0 and
|
|
1968
|
+
`bare-sidecar` to 0.5.7 (Bare 1.34.0) across the tree, `bare-supervisor`'s
|
|
1969
|
+
copy included, with `bare-thread` at least 1.2.7 and `bare-module` 7.1.0 for
|
|
1970
|
+
`bare-worker`'s copy. A host upgrades its Bare to 1.34.0 or later. (#127)
|
|
115
1971
|
- `bare-module` is no longer a dependency or an override, and
|
|
116
|
-
`bare-module-traverse` is overridden to 2.5.8
|
|
1972
|
+
`bare-module-traverse` is overridden to `~2.5.8`: earlier versions drop the
|
|
117
1973
|
`asset` condition on `bare-sidecar`'s binary, and a stowed harness then fails
|
|
118
1974
|
to boot on Bare 1.33 and later. (#127)
|
|
119
1975
|
- `skillModelsForAgent` rows carry `use`, `image` or `music`, so a caller can
|
|
120
|
-
tell which skill a model is for without looking the name up in the catalogs.
|
|
121
|
-
|
|
122
|
-
|
|
1976
|
+
tell which skill a model is for without looking the name up in the catalogs.
|
|
1977
|
+
(#141)
|
|
1978
|
+
- `CapabilityInfo` has a required `mobile`. A `HarnessContract` whose
|
|
1979
|
+
`capability()` builds its own answer, a test stub included, returns it too.
|
|
1980
|
+
|
|
1981
|
+
```js
|
|
1982
|
+
// before
|
|
1983
|
+
capability: async () => ({ capabilityProfile: 'mid', recommendedModelName: QWEN_35_4B })
|
|
1984
|
+
|
|
1985
|
+
// after
|
|
1986
|
+
capability: async () => ({
|
|
1987
|
+
capabilityProfile: 'mid',
|
|
1988
|
+
recommendedModelName: QWEN_35_4B,
|
|
1989
|
+
mobile: false
|
|
1990
|
+
})
|
|
1991
|
+
```
|
|
1992
|
+
|
|
1993
|
+
(#141)
|
|
123
1994
|
|
|
124
1995
|
### Removed
|
|
125
1996
|
|
|
126
|
-
- **Breaking:** `bareRuntime` is no longer exported from `./lib/tools/exec.ts
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
1997
|
+
- **Breaking:** `bareRuntime` is no longer exported from `./lib/tools/exec.ts`,
|
|
1998
|
+
so the package root no longer loads the exec tool to reach it. It is at
|
|
1999
|
+
`./lib/tools/exec/bare-runtime.ts`.
|
|
2000
|
+
|
|
2001
|
+
```js
|
|
2002
|
+
// before
|
|
2003
|
+
import { bareRuntime } from '@qvac/harness/lib/tools/exec.ts'
|
|
2004
|
+
|
|
2005
|
+
// after
|
|
2006
|
+
import { bareRuntime } from '@qvac/harness/lib/tools/exec/bare-runtime.ts'
|
|
2007
|
+
```
|
|
2008
|
+
|
|
2009
|
+
(#127)
|
|
2010
|
+
|
|
2011
|
+
- **Breaking:** `QVAC_PYODIDE_TEST_LOADER` is gone. A test points
|
|
2012
|
+
`QVAC_PYODIDE_WORKER_ENTRY` at an entry that serves its fake interpreter.
|
|
2013
|
+
|
|
2014
|
+
```sh
|
|
2015
|
+
# before
|
|
2016
|
+
QVAC_PYODIDE_TEST_LOADER=/path/to/fake-loader.js
|
|
2017
|
+
# after
|
|
2018
|
+
QVAC_PYODIDE_WORKER_ENTRY=/path/to/fake-worker-entry.js
|
|
2019
|
+
```
|
|
2020
|
+
|
|
2021
|
+
(#127)
|
|
131
2022
|
|
|
132
2023
|
### Fixed
|
|
133
2024
|
|
|
134
|
-
- Python runs start on Bare 1.34,
|
|
135
|
-
|
|
136
|
-
which the package maps to `bare-worker` on Bare
|
|
137
|
-
module as `createPyodideModule`, and the files pyodide reads
|
|
138
|
-
assets, so a bundler carries them beside the bundle. (#127)
|
|
2025
|
+
- Python runs start on Bare 1.34, including in a stowed harness. Threads there
|
|
2026
|
+
cannot read a module off disk, so the worker is spawned through
|
|
2027
|
+
`worker_threads`, which the package maps to `bare-worker` on Bare. Pyodide is
|
|
2028
|
+
handed its asm module as `createPyodideModule`, and the files pyodide reads
|
|
2029
|
+
are named as assets, so a bundler carries them beside the bundle. (#127)
|
|
139
2030
|
|
|
140
2031
|
## [0.6.0] - 2026-09-28
|
|
141
2032
|
|
|
142
2033
|
### Added
|
|
143
2034
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
under
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
2035
|
+
- A host can load a model before anyone asks for it, and unload it on demand.
|
|
2036
|
+
`loadModel({ model, agent })` loads a downloaded chat, embedding, speech or
|
|
2037
|
+
transcription model under the key a request for it would load under, so the
|
|
2038
|
+
first request finds it loaded. Pass the agent a chat model will run for: its
|
|
2039
|
+
context size and KV cache types are part of that key.
|
|
2040
|
+
|
|
2041
|
+
`unloadModel({ model })` unloads every copy of a model once the requests
|
|
2042
|
+
holding it finish, and says whether it could. Image and music models load for
|
|
2043
|
+
each generation and are refused.
|
|
2044
|
+
|
|
2045
|
+
A load or an unload counts as a call in flight for `setModelIdleTimeout`, and
|
|
2046
|
+
one that lands during an idle unload waits for it. Both are on the wire as
|
|
2047
|
+
`load-model` and `unload-model`. See
|
|
2048
|
+
[Load and unload a model](https://github.com/tetherto/qvac-harness/blob/v0.6.0/README.md#load-and-unload-a-model).
|
|
152
2049
|
|
|
153
2050
|
```js
|
|
2051
|
+
import { QWEN_35_4B } from '@qvac/harness'
|
|
2052
|
+
|
|
154
2053
|
const { loaded } = await harness.loadModel({ model: QWEN_35_4B, agent: { ctxSize: 8192 } })
|
|
155
2054
|
const { unloaded } = await harness.unloadModel({ model: QWEN_35_4B })
|
|
156
2055
|
```
|
|
157
2056
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
2057
|
+
(#133)
|
|
2058
|
+
|
|
2059
|
+
- Several chat models can stay loaded at once. A chat model loaded with
|
|
2060
|
+
`loadModel` is pinned: it does not count against `completionModelCap`, and a
|
|
2061
|
+
request for another model leaves it in place.
|
|
2062
|
+
|
|
2063
|
+
A manual load never unloads another model to fit. It returns
|
|
2064
|
+
`{ loaded: false, reason: 'memory' }` when the SDK's `assessModelFit` says it
|
|
2065
|
+
would not fit beside what is loaded, so the host unloads one first. A request
|
|
2066
|
+
always gets its model: when it would not fit, pinned models no reply is using
|
|
2067
|
+
give way oldest first. A request or a manual load for a model under other
|
|
2068
|
+
settings replaces its idle copy. Image and music generation and an idle
|
|
2069
|
+
unload still clear every idle chat model, pinned or not. See
|
|
2070
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.6.0/docs/decisions/2026-09-25-a-model-loaded-ahead-of-use-lands-where-its-request-looks.md).
|
|
166
2071
|
|
|
167
2072
|
```js
|
|
2073
|
+
import { QWEN_35_9B } from '@qvac/harness'
|
|
2074
|
+
|
|
168
2075
|
const { loaded, reason } = await harness.loadModel({ model: QWEN_35_9B })
|
|
169
2076
|
if (reason === 'memory') showNotice('Unload a model first')
|
|
170
2077
|
```
|
|
171
2078
|
|
|
2079
|
+
(#134)
|
|
2080
|
+
|
|
172
2081
|
### Changed
|
|
173
2082
|
|
|
174
|
-
-
|
|
175
|
-
not only
|
|
176
|
-
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
2083
|
+
- `list()` reports a fresh `isLoaded` for embedding, speech and transcription
|
|
2084
|
+
models, not only chat models. A model loading or unloading in any pool now
|
|
2085
|
+
emits `model` with `catalogChanged`. (#133)
|
|
2086
|
+
- A speech, transcription or embedding model named once by its catalog name and
|
|
2087
|
+
once by its src is one copy in memory. Those requests key their pool entry by
|
|
2088
|
+
the model's registry src however the caller names it. (#133)
|
|
180
2089
|
|
|
181
2090
|
### Fixed
|
|
182
2091
|
|
|
183
2092
|
- A chat model loads when the host passes no `llmDevice`. 0.5.0 sent `device`,
|
|
184
2093
|
`gpu_layers`, `main-gpu` and `openclCacheDir` to the SDK as `undefined`,
|
|
185
|
-
which the SDK spreads over its defaults
|
|
2094
|
+
which the SDK spreads over its defaults. With no device the load failed with
|
|
186
2095
|
"must specify a device: 'gpu' or 'cpu'", and with a device but no
|
|
187
2096
|
`llmGpuLayers` the default of 99 GPU layers was lost. Unset fields are left
|
|
188
2097
|
out again. (#137)
|
|
@@ -191,25 +2100,39 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
191
2100
|
|
|
192
2101
|
### Added
|
|
193
2102
|
|
|
194
|
-
- `setModelIdleTimeout(ms)` frees memory
|
|
195
|
-
long
|
|
2103
|
+
- `setModelIdleTimeout(ms)` frees memory on a device that has sat idle that
|
|
2104
|
+
long. With no `completion`, `invoke`, `embed`, `transcribe`, `speak`,
|
|
196
2105
|
`speakStream` or `warmModel` call in flight, every idle resident model is
|
|
197
|
-
unloaded, including the image, music and translation runtimes
|
|
198
|
-
loads what it needs again.
|
|
199
|
-
|
|
200
|
-
|
|
2106
|
+
unloaded, including the image, music and translation runtimes, and the next
|
|
2107
|
+
call loads what it needs again.
|
|
2108
|
+
|
|
2109
|
+
The clock is device-wide: any call resets it, whichever model it uses. `0`,
|
|
2110
|
+
the default, is Never and arms no timer. A turn waiting on a tool or an
|
|
2111
|
+
approval between rounds counts as busy, so it keeps its model. The call is on
|
|
2112
|
+
an in-process `Harness`, on the `RemoteHarness` client, and on the wire as
|
|
2113
|
+
`set-model-idle-timeout`. See
|
|
2114
|
+
[Freeing memory when idle](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#freeing-memory-when-idle)
|
|
2115
|
+
and
|
|
2116
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.5.0/docs/decisions/2026-09-25-idle-unload-is-opt-in-and-device-wide.md).
|
|
201
2117
|
|
|
202
2118
|
```js
|
|
203
|
-
await harness.setModelIdleTimeout(30 * 60_000)
|
|
2119
|
+
await harness.setModelIdleTimeout(30 * 60_000) // 0 turns it off
|
|
204
2120
|
```
|
|
205
2121
|
|
|
2122
|
+
(#131)
|
|
2123
|
+
|
|
206
2124
|
- `setCustomModels` entries take an optional `label`, the name the user gave
|
|
207
|
-
the model, and `list()` rows carry it as `label`.
|
|
208
|
-
|
|
209
|
-
|
|
2125
|
+
the model, and `list()` rows carry it back as `label`.
|
|
2126
|
+
|
|
2127
|
+
The label also picks the tool-call format: the model family (Qwen, Gemma,
|
|
2128
|
+
LFM and so on) is matched against the label as well as the file name, with
|
|
2129
|
+
spaces read as hyphens, so a custom model registered under an opaque id
|
|
2130
|
+
still gets its family's format. (#124)
|
|
210
2131
|
|
|
211
2132
|
- `setCustomModels` entries take an optional `contextLength`, the model's
|
|
212
|
-
trained window
|
|
2133
|
+
trained window, which caps the context it loads with by default (see
|
|
2134
|
+
Changed). Pass the preview's `contextLength` straight through. See
|
|
2135
|
+
[Register the set](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#register-the-set).
|
|
213
2136
|
|
|
214
2137
|
```js
|
|
215
2138
|
await harness.setCustomModels([
|
|
@@ -220,23 +2143,39 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
220
2143
|
contextLength: preview.contextLength
|
|
221
2144
|
}
|
|
222
2145
|
])
|
|
2146
|
+
|
|
2147
|
+
const [row] = (await harness.list({ type: 'llm' })).filter(
|
|
2148
|
+
(model) => model.name === 'custom-7f3a'
|
|
2149
|
+
)
|
|
2150
|
+
row.label // 'Gemma 4 E4B'
|
|
223
2151
|
```
|
|
224
2152
|
|
|
2153
|
+
(#124)
|
|
2154
|
+
|
|
225
2155
|
### Changed
|
|
226
2156
|
|
|
227
2157
|
- A custom model loads with a context of the smaller of 51,200 tokens and its
|
|
228
|
-
trained `contextLength`,
|
|
2158
|
+
trained `contextLength`, where it always took 51,200 before. A model trained
|
|
2159
|
+
on 40,960 tokens now loads with 40,960. A context size the caller asks for
|
|
229
2160
|
still wins. (#124)
|
|
230
2161
|
|
|
231
2162
|
### Fixed
|
|
232
2163
|
|
|
233
2164
|
- `previewModelSource` takes a direct link to one shard of a split `.gguf` as
|
|
234
|
-
the whole set
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
2165
|
+
the whole set. `src` is the first part, which holds the metadata, and
|
|
2166
|
+
`sizeBytes` adds up every part, so `isCached` can match the finished
|
|
2167
|
+
download. Every part is checked with a `HEAD` request, and a missing part
|
|
2168
|
+
refuses with `not-found` or `unreachable`, naming the part. See
|
|
2169
|
+
[Preview a source before adding it](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#preview-a-source-before-adding-it).
|
|
2170
|
+
(#124)
|
|
2171
|
+
|
|
2172
|
+
- `isCached` reports a sharded custom download once every shard is on disk in
|
|
2173
|
+
the folder the SDK keeps them in; it always read false before. `deleteModel`
|
|
2174
|
+
removes all of its shards, where it left them behind. See
|
|
2175
|
+
[List them](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#list-them)
|
|
2176
|
+
and
|
|
2177
|
+
[Delete a download](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#delete-a-download).
|
|
2178
|
+
(#124)
|
|
240
2179
|
|
|
241
2180
|
## [0.4.0] - 2026-09-24
|
|
242
2181
|
|
|
@@ -245,27 +2184,48 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
245
2184
|
- `previewModelSource({ src, mmprojSrc })` checks a Hugging Face link, a direct
|
|
246
2185
|
`.gguf` link or a local path before a host adds it as a custom model. It
|
|
247
2186
|
reads the Hugging Face metadata and the file's GGUF header, never the whole
|
|
248
|
-
model.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
2187
|
+
model.
|
|
2188
|
+
|
|
2189
|
+
The answer is one of three:
|
|
2190
|
+
|
|
2191
|
+
- a file to register: `ok: true` with `src`, `sizeBytes`, `contextLength`,
|
|
2192
|
+
`architecture`, `sizeLabel`, `taskType`, `license`, `fit` and
|
|
2193
|
+
`fitReasons`;
|
|
2194
|
+
- a choice: `ok: true` with a list of `files` and no `src`, for a repo that
|
|
2195
|
+
holds several weights;
|
|
2196
|
+
- a refusal: `ok: false` with a `refusal` code and a `reason` to show.
|
|
2197
|
+
|
|
2198
|
+
It is served on the `RemoteHarness` client and on an in-process `Harness`,
|
|
2199
|
+
and its types (`ModelSourcePreview`, `ModelSourceFile`,
|
|
2200
|
+
`ModelSourceRefusal`, `ModelFitVerdict`, `PreviewModelSourceContext`) are
|
|
2201
|
+
exported from the package root. See
|
|
2202
|
+
[Preview a source before adding it](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#preview-a-source-before-adding-it)
|
|
2203
|
+
and
|
|
2204
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.4.0/docs/decisions/2026-09-22-a-model-source-is-previewed-before-it-is-added.md).
|
|
254
2205
|
|
|
255
2206
|
```js
|
|
256
2207
|
const preview = await harness.previewModelSource({ src: link })
|
|
257
2208
|
|
|
258
2209
|
if (!preview.ok) return showError(preview.reason)
|
|
259
|
-
if (!preview.src) return pickOneOf(preview.files) //
|
|
260
|
-
if (preview.taskType !== 'llm')
|
|
2210
|
+
if (!preview.src) return pickOneOf(preview.files) // preview the pick next
|
|
2211
|
+
if (preview.taskType !== 'llm') {
|
|
2212
|
+
return showError('Only an llm runs as a custom model')
|
|
2213
|
+
}
|
|
261
2214
|
```
|
|
262
2215
|
|
|
263
|
-
- `setCustomModels` entries take `taskType` and `expectedSize`, and `list()`
|
|
264
|
-
returns the registered custom models after the catalog rows, with
|
|
265
|
-
`registrySource: 'custom'`, `isLoaded`, and an `isCached` that is false
|
|
266
|
-
until every file is on disk and, when `expectedSize` is set, adds up to it.
|
|
267
2216
|
(#121)
|
|
268
2217
|
|
|
2218
|
+
- `setCustomModels` entries take `taskType` and `expectedSize`, and `list()`
|
|
2219
|
+
returns the registered custom models after the catalog rows, under the same
|
|
2220
|
+
`type` and `cachedOnly` filters.
|
|
2221
|
+
|
|
2222
|
+
A custom row has `registrySource: 'custom'` and `isLoaded`. Its `isCached`
|
|
2223
|
+
is false until every file is on disk and, when `expectedSize` is set, their
|
|
2224
|
+
sizes add up to it, so a partial download is not cached. See
|
|
2225
|
+
[Register the set](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#register-the-set)
|
|
2226
|
+
and
|
|
2227
|
+
[List them](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#list-them).
|
|
2228
|
+
|
|
269
2229
|
```js
|
|
270
2230
|
await harness.setCustomModels([
|
|
271
2231
|
{
|
|
@@ -281,56 +2241,90 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
281
2241
|
const custom = models.filter((model) => model.registrySource === 'custom')
|
|
282
2242
|
```
|
|
283
2243
|
|
|
2244
|
+
(#121)
|
|
2245
|
+
|
|
284
2246
|
- A `modelsDir` Harness option says where downloads live, so `list()` and
|
|
285
2247
|
`deleteModel` can find a custom model's files. The spawned sidecar sets it
|
|
286
|
-
from its SDK storage; an in-process `Harness` has to pass it.
|
|
2248
|
+
from its SDK storage; an in-process `Harness` has to pass it. See
|
|
2249
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.4.0/docs/decisions/2026-09-24-a-custom-download-is-found-at-the-sdk-cache-path.md).
|
|
287
2250
|
|
|
288
2251
|
```js
|
|
289
2252
|
const harness = new Harness({ modelsDir })
|
|
290
2253
|
```
|
|
291
2254
|
|
|
2255
|
+
(#121)
|
|
2256
|
+
|
|
292
2257
|
### Changed
|
|
293
2258
|
|
|
294
|
-
- `deleteModel(name)`
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
2259
|
+
- `deleteModel(name)` frees the disk a custom model's download took: it
|
|
2260
|
+
removes the weight and projection the model downloaded, where it used to
|
|
2261
|
+
remove nothing.
|
|
2262
|
+
|
|
2263
|
+
It never touches a local path the user pointed at, since those are the
|
|
2264
|
+
user's files. The model stays registered and lists as not cached, ready to
|
|
2265
|
+
download again. See
|
|
2266
|
+
[Delete a download](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#delete-a-download).
|
|
298
2267
|
|
|
299
2268
|
```js
|
|
300
2269
|
const { removed, freedBytes } = await harness.deleteModel('nanbeige-3b')
|
|
301
2270
|
```
|
|
302
2271
|
|
|
2272
|
+
(#121)
|
|
2273
|
+
|
|
303
2274
|
- A custom model name resolves only where an `llm` is loaded, never for
|
|
304
|
-
another task
|
|
305
|
-
|
|
306
|
-
|
|
2275
|
+
another task. A `setCustomModels` entry whose `taskType` is anything other
|
|
2276
|
+
than `llm` is not registered. An entry without `taskType` is an `llm`, as
|
|
2277
|
+
before, so a host that registers only text models changes nothing. (#121)
|
|
307
2278
|
|
|
308
2279
|
### Fixed
|
|
309
2280
|
|
|
310
|
-
- A
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
2281
|
+
- A chat no longer fails with a context overflow after turns that load a
|
|
2282
|
+
skill up front. A turn that preloads a skill with `@skill`, or names an
|
|
2283
|
+
active skill in its prompt, used to cache the inlined SKILL.md body under
|
|
2284
|
+
the chat's KV key. Each such turn left about 7k tokens stranded in the
|
|
2285
|
+
cache, until a later turn overflowed the context window and failed. (#120)
|
|
314
2286
|
|
|
315
2287
|
## [0.3.3] - 2026-09-24
|
|
316
2288
|
|
|
317
2289
|
### Changed
|
|
318
2290
|
|
|
319
|
-
- `@qvac/sdk` and `@qvac/inference` 0.20.0.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
and the
|
|
2291
|
+
- `@qvac/sdk` and `@qvac/inference` 0.20.0. A host that packages the addons
|
|
2292
|
+
has packaging work to do.
|
|
2293
|
+
|
|
2294
|
+
Some addons now ship their prebuilds as per-platform packages
|
|
2295
|
+
(`@qvac/<addon>-<os>-<cpu>`, for `asr-ggml` 0.5, `audiogen-ggml` 0.4 and
|
|
2296
|
+
`tts-ggml` 0.9), which the addon names in its `#host-addon` import map, and
|
|
2297
|
+
`@qvac/model-fit` and `@qvac/fabric` join the native graph as deferred
|
|
2298
|
+
addons. The harness no longer pins `@qvac/asr-ggml` and lets the SDK resolve
|
|
2299
|
+
it.
|
|
2300
|
+
|
|
2301
|
+
A host that packages the addons resolves prebuilds through that map, and
|
|
2302
|
+
exempts the new package names from any install age gate: bun skips a blocked
|
|
2303
|
+
optional dependency without a word, and the prebuild goes missing. See
|
|
2304
|
+
[The published package](https://github.com/tetherto/qvac-harness/blob/v0.3.3/README.md#the-published-package).
|
|
2305
|
+
|
|
2306
|
+
```toml
|
|
2307
|
+
# bunfig.toml, for each host the app ships to
|
|
2308
|
+
[install]
|
|
2309
|
+
minimumReleaseAgeExcludes = [
|
|
2310
|
+
"@qvac/model-fit",
|
|
2311
|
+
"@qvac/asr-ggml-darwin-arm64",
|
|
2312
|
+
"@qvac/audiogen-ggml-darwin-arm64",
|
|
2313
|
+
"@qvac/tts-ggml-darwin-arm64"
|
|
2314
|
+
]
|
|
2315
|
+
```
|
|
2316
|
+
|
|
2317
|
+
(#85)
|
|
2318
|
+
|
|
327
2319
|
- A user message with several images reaches the SDK as one turn again. The
|
|
328
2320
|
per-image split added for QVAC-24156 is gone, since SDK 0.20 carries the
|
|
329
2321
|
upstream fix (llama.cpp #27348) and equal-size still images no longer merge
|
|
330
|
-
as video frames and abort the encode.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
2322
|
+
as video frames and abort the encode.
|
|
2323
|
+
|
|
2324
|
+
This release must not be paired with SDK 0.19, where that crash comes back.
|
|
2325
|
+
`<key>-vision-history-v1` cache directories left by the split are no longer
|
|
2326
|
+
read, and clearing all caches removes them. (#116)
|
|
2327
|
+
|
|
334
2328
|
- `@qvac/skills` 0.1.9. The diagrams skill carries every recipe inline, so a 2B
|
|
335
2329
|
model no longer loops on loading a reference file it cannot name. The excel
|
|
336
2330
|
skill routes a chat image to create rather than edit, the Google OAuth routes
|
|
@@ -348,16 +2342,21 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
348
2342
|
|
|
349
2343
|
### Changed
|
|
350
2344
|
|
|
351
|
-
- A networked Python run
|
|
352
|
-
|
|
2345
|
+
- A person approving a networked Python run now sees where it will connect,
|
|
2346
|
+
and any other host is asked about as the run reaches it.
|
|
2347
|
+
|
|
2348
|
+
The approval label leads with the hosts the source names in a URL, as
|
|
2349
|
+
`python · network: www.youtube.com …`, or says
|
|
353
2350
|
`network: no host named in the code`. On an approved run those hosts, and
|
|
354
|
-
their `www.` form, are reached without asking; a subdomain is not.
|
|
355
|
-
|
|
356
|
-
|
|
2351
|
+
their `www.` form, are reached without asking; a subdomain is not.
|
|
2352
|
+
|
|
2353
|
+
Any other host, such as a CDN a library fans out to, a redirect or a URL
|
|
2354
|
+
built at runtime, pauses the run and is asked about through the completion's
|
|
357
2355
|
`askUser` before its name is looked up. A host allowed once stays allowed
|
|
358
2356
|
for that run, and silence past a minute counts as a no. A host that does not
|
|
359
2357
|
wire `askUser` refuses every unnamed host, and a skip-all run asks nothing.
|
|
360
|
-
|
|
2358
|
+
See
|
|
2359
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
|
|
361
2360
|
|
|
362
2361
|
```js
|
|
363
2362
|
for await (const event of harness.completion({
|
|
@@ -372,52 +2371,85 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
372
2371
|
}
|
|
373
2372
|
```
|
|
374
2373
|
|
|
2374
|
+
(#109)
|
|
2375
|
+
|
|
375
2376
|
### Fixed
|
|
376
2377
|
|
|
377
|
-
- A timed-out Python run
|
|
378
|
-
Pyodide
|
|
379
|
-
`QVAC_PYODIDE_WORKER_ENTRY`.
|
|
380
|
-
|
|
2378
|
+
- A timed-out Python run no longer spins at full CPU until the process is
|
|
2379
|
+
killed when Pyodide has no worker thread, as for a stowed bundle whose host
|
|
2380
|
+
does not set `QVAC_PYODIDE_WORKER_ENTRY`.
|
|
2381
|
+
|
|
2382
|
+
It is now interrupted at the deadline, rejects with
|
|
2383
|
+
`Command timed out after <ms>ms`, and the interpreter keeps its state. A
|
|
381
2384
|
blocking call such as a long `time.sleep` still sees the interrupt only once
|
|
382
|
-
it returns.
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
- A Python run
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
2385
|
+
it returns. See
|
|
2386
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-08-11-pyodide-worker-thread.md).
|
|
2387
|
+
(#104)
|
|
2388
|
+
|
|
2389
|
+
- A timed-out Python run on the worker thread keeps its interpreter state. It
|
|
2390
|
+
could miss its SIGINT, so the worker was killed after the grace window along
|
|
2391
|
+
with the interpreter's state. The interrupt is now resent every 100 ms until
|
|
2392
|
+
the run settles. (#112)
|
|
2393
|
+
|
|
2394
|
+
- A Python run that fails no longer attaches a broken file. A run that failed
|
|
2395
|
+
partway through a save attached the half-written file, and each failing
|
|
2396
|
+
retry attached another copy under the same name. A non-zero exit now
|
|
2397
|
+
attaches nothing and reports every declared output in `missingOutputs`, so
|
|
2398
|
+
the retry writes it again. (#110)
|
|
390
2399
|
|
|
391
2400
|
### Security
|
|
392
2401
|
|
|
393
2402
|
- Python in `exec` reached the network whenever the runtime allowed it,
|
|
394
2403
|
including a call that auto-ran as a read with no approval prompt, so a
|
|
395
2404
|
document build that loads an image from a URL could reach the web without
|
|
396
|
-
anyone seeing it.
|
|
397
|
-
|
|
2405
|
+
anyone seeing it.
|
|
2406
|
+
|
|
2407
|
+
The network now opens only to a call a person approved or that skip-all let
|
|
2408
|
+
through, and sandbox mode stays offline. 0.3.1 is affected; upgrade from it.
|
|
2409
|
+
See
|
|
2410
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
|
|
398
2411
|
(#108)
|
|
399
2412
|
|
|
400
2413
|
## [0.3.1] - 2026-09-23
|
|
401
2414
|
|
|
402
2415
|
### Added
|
|
403
2416
|
|
|
404
|
-
- Python in `exec` reaches the network on Bare
|
|
405
|
-
what is built on them, yt-dlp included, work unchanged, and `requests`
|
|
406
|
-
through urllib3's emscripten backend.
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
2417
|
+
- Python in `exec` reaches the network on Bare. `urllib`, `http.client` and
|
|
2418
|
+
what is built on them, yt-dlp included, work unchanged, and `requests`
|
|
2419
|
+
works through urllib3's emscripten backend.
|
|
2420
|
+
|
|
2421
|
+
Every request goes through the guarded fetch the web tools use: each hop is
|
|
2422
|
+
checked before it is sent, credentials do not follow a redirect to another
|
|
2423
|
+
origin, and a response is capped at 100 MB. Where the global `fetch` is not
|
|
2424
|
+
the guarded one, as on Node, Python stays offline, and `sandboxMode` keeps
|
|
2425
|
+
it offline everywhere. A Python run may now declare `.mp4`, `.webm`, `.m4a`
|
|
2426
|
+
and `.mp3` outputs, each checked by its file signature. See
|
|
2427
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
|
|
2428
|
+
(#94)
|
|
2429
|
+
|
|
2430
|
+
```js
|
|
2431
|
+
// exec arguments a model can now send on Bare
|
|
2432
|
+
{
|
|
2433
|
+
language: 'python',
|
|
2434
|
+
command:
|
|
2435
|
+
"import urllib.request\n" +
|
|
2436
|
+
"urllib.request.urlretrieve('https://example.com/talk.mp3', 'talk.mp3')",
|
|
2437
|
+
outputs: ['talk.mp3']
|
|
2438
|
+
}
|
|
2439
|
+
```
|
|
2440
|
+
|
|
2441
|
+
- A host can probe a fresh OAuth token before saving it.
|
|
2442
|
+
`SkillOAuthConfig.verify` is parsed from a skill manifest's
|
|
2443
|
+
`setup.routes[].oauth.verify` and carried over the wire;
|
|
2444
|
+
`SkillOAuthVerify` and `SkillOAuthVerifyRule` are exported. The harness
|
|
2445
|
+
only parses the probe; the host runs it.
|
|
2446
|
+
|
|
2447
|
+
A probe is an https `url` on the same site as the route's `tokenUrl`, an
|
|
2448
|
+
optional `GET` or `POST` `method` and JSON `body`, and `reject` rules. A
|
|
2449
|
+
rule matches a listed `status`, or a 2xx JSON body whose `field` is not
|
|
2450
|
+
`notEqual` (a rule with both needs both), and its `error` names the
|
|
2451
|
+
rejection. A probe that breaks these rules is dropped and the route kept.
|
|
2452
|
+
(#105)
|
|
421
2453
|
|
|
422
2454
|
```js
|
|
423
2455
|
const skills = await harness.skills()
|
|
@@ -432,63 +2464,95 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
432
2464
|
```
|
|
433
2465
|
|
|
434
2466
|
- A skill operation may name `response.decode` to turn a provider's JSON body
|
|
435
|
-
into a compact shape before the model sees it
|
|
436
|
-
`gmail-message`: the ids and labels, the From, To, Subject, Date,
|
|
437
|
-
and References headers, the snippet, and the body as text,
|
|
438
|
-
characters. A `gmail-get` request builder
|
|
439
|
-
|
|
440
|
-
|
|
2467
|
+
into a compact shape before the model sees it. The first decoder is
|
|
2468
|
+
`gmail-message`: the ids and labels, the From, To, Subject, Date,
|
|
2469
|
+
Message-ID and References headers, the snippet, and the body as text,
|
|
2470
|
+
capped at 4000 characters. A `gmail-get` request builder goes with it.
|
|
2471
|
+
|
|
2472
|
+
A manifest naming both `pick` and `decode`, or a builder or decoder this
|
|
2473
|
+
harness does not have, is rejected. See
|
|
2474
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-01-skill-operation-manifests.md).
|
|
2475
|
+
(#69)
|
|
2476
|
+
|
|
2477
|
+
```js
|
|
2478
|
+
// an operation in a skill's operations.json (gmail, @qvac/skills 0.1.7)
|
|
2479
|
+
{
|
|
2480
|
+
tool: 'gmail_get',
|
|
2481
|
+
request: {
|
|
2482
|
+
method: 'GET',
|
|
2483
|
+
url: 'https://gmail.googleapis.com/gmail/v1/users/me/messages/{id}',
|
|
2484
|
+
query: { metadataHeaders: 'Subject,From,To,Date,Message-ID,References' },
|
|
2485
|
+
builder: 'gmail-get'
|
|
2486
|
+
},
|
|
2487
|
+
response: { decode: 'gmail-message' }
|
|
2488
|
+
}
|
|
2489
|
+
```
|
|
441
2490
|
|
|
442
2491
|
### Changed
|
|
443
2492
|
|
|
444
|
-
- A compiled skill operation whose HTTP method is `GET`, `HEAD` or `OPTIONS`
|
|
445
|
-
|
|
446
|
-
`http_request`, and takes no `intent` argument. MCP operations and
|
|
447
|
-
method are still writes that ask. (#69)
|
|
448
|
-
- `@qvac/skills` 0.1.7, now pinned exactly
|
|
2493
|
+
- A compiled skill operation whose HTTP method is `GET`, `HEAD` or `OPTIONS`
|
|
2494
|
+
now runs without an approval prompt. It is a read, like the same request
|
|
2495
|
+
through `http_request`, and takes no `intent` argument. MCP operations and
|
|
2496
|
+
every other method are still writes that ask. (#69)
|
|
2497
|
+
- `@qvac/skills` 0.1.7, now pinned exactly. Gmail reads a message with
|
|
449
2498
|
`gmail_get` instead of telling the model to decode base64, which needs this
|
|
450
2499
|
release's decoder, and Asana rejects a non-MCP app at connect time through
|
|
451
2500
|
a `verify` probe. (#105)
|
|
452
2501
|
|
|
453
2502
|
### Fixed
|
|
454
2503
|
|
|
455
|
-
- A malformed `<tool_call>` left its JSON arguments in the reply. The whole
|
|
456
|
-
is now stripped, and an unclosed one is stripped to the end of the
|
|
457
|
-
(#100)
|
|
2504
|
+
- A malformed `<tool_call>` left its JSON arguments in the reply. The whole
|
|
2505
|
+
span is now stripped, and an unclosed one is stripped to the end of the
|
|
2506
|
+
text. (#100)
|
|
458
2507
|
- A misspelt, placeholder or repeated `skill` load returned an error the model
|
|
459
2508
|
retried until the turn ran out. A placeholder or the skill's own name now
|
|
460
|
-
reads the body, a near miss of one of its files loads that file, and a
|
|
461
|
-
is acknowledged without re-reading it. (#101)
|
|
2509
|
+
reads the body, a near miss of one of its files loads that file, and a
|
|
2510
|
+
repeat is acknowledged without re-reading it. (#101)
|
|
462
2511
|
- When the model reached for `pip` or a video tool on the shell path, it was
|
|
463
2512
|
only told what the path is not, and retried the same call. Each refusal now
|
|
464
2513
|
names the call that works, such as `packages: ["requests"]` with the pin a
|
|
465
|
-
vendored package installs offline under.
|
|
466
|
-
|
|
467
|
-
|
|
2514
|
+
vendored package installs offline under.
|
|
2515
|
+
|
|
2516
|
+
A missing import names the package that provides it, and `python -c`, a
|
|
2517
|
+
heredoc or bare Python source runs as Python instead of being sent back for
|
|
2518
|
+
a `language` argument. See
|
|
2519
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-21-exec-names-the-call-that-works.md).
|
|
2520
|
+
(#71)
|
|
468
2521
|
|
|
469
2522
|
## [0.3.0] - 2026-09-23
|
|
470
2523
|
|
|
471
2524
|
### Added
|
|
472
2525
|
|
|
473
|
-
- A `translate` capability for `invoke`:
|
|
474
|
-
LLM. The language pair picks the route before anything loads
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
2526
|
+
- A `translate` capability for `invoke`: text translation without loading an
|
|
2527
|
+
LLM. The language pair picks the route before anything loads:
|
|
2528
|
+
|
|
2529
|
+
- English and one of nine European languages go through the
|
|
2530
|
+
TranslatePsy-EuroNano packs.
|
|
2531
|
+
- The other 43 languages Bergamot serves go through their per-pair models,
|
|
2532
|
+
pivoting through English when neither side is English.
|
|
2533
|
+
- 16 languages Bergamot has no model for go through TranslatePsy-AfriSLM,
|
|
2534
|
+
named by ISO 639-1 or FLORES-200 code.
|
|
2535
|
+
|
|
2536
|
+
An omitted `from` is detected from the text, except for the AfriSLM
|
|
2537
|
+
languages, which need it named. The `tool-result` carries the text, the pair
|
|
2538
|
+
and the `engine` that answered (`nmt`, `slm`, or `none` when the text is
|
|
2539
|
+
already in the target language). A pair no route serves, or a source that
|
|
2540
|
+
cannot be detected, comes back as `result.error`. See
|
|
2541
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.0/docs/decisions/2026-09-21-translation-pivots-through-english.md).
|
|
2542
|
+
(#76)
|
|
482
2543
|
|
|
483
2544
|
```js
|
|
484
2545
|
for await (const event of harness.invoke({
|
|
485
2546
|
capability: 'translate',
|
|
486
2547
|
args: { text: 'The weather is nice today.', to: 'de' }
|
|
487
2548
|
})) {
|
|
488
|
-
if (event.type === 'tool-result')
|
|
2549
|
+
if (event.type === 'tool-result') {
|
|
2550
|
+
if (event.result.error) showError(event.result.error)
|
|
2551
|
+
else show(event.result.text)
|
|
2552
|
+
}
|
|
489
2553
|
if (event.type === 'error') showError(event.message)
|
|
490
2554
|
}
|
|
491
|
-
// result: { text, from, to: 'de', engine: 'nmt', pivoted: false }
|
|
2555
|
+
// result: { text, from: 'en', to: 'de', engine: 'nmt', pivoted: false }
|
|
492
2556
|
```
|
|
493
2557
|
|
|
494
2558
|
- `translationPlanFor`, `NMT_TO_ENGLISH`, `NMT_FROM_ENGLISH`,
|
|
@@ -505,18 +2569,23 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
505
2569
|
if ('error' in plan) showError(plan.error)
|
|
506
2570
|
```
|
|
507
2571
|
|
|
508
|
-
- `enhance: 'never' | 'auto'` on `invoke
|
|
509
|
-
rewritten by a model already resident on the
|
|
510
|
-
load: with nothing resident, or a rewrite that
|
|
2572
|
+
- `enhance: 'never' | 'auto'` on `invoke`, for the `image` capability. With
|
|
2573
|
+
`'auto'`, the prompt is rewritten by a model already resident on the
|
|
2574
|
+
device, and never triggers a load: with nothing resident, or a rewrite that
|
|
2575
|
+
fails, the run goes direct. Omitting `enhance` behaves as `'never'`, which
|
|
2576
|
+
passes the arguments through untouched.
|
|
2577
|
+
|
|
511
2578
|
`metrics` reports the `route` taken (`direct` or `enhanced`), the
|
|
512
|
-
`routeModel` used and the tokens the rewrite spent.
|
|
513
|
-
|
|
2579
|
+
`routeModel` used and the tokens the rewrite spent. See
|
|
2580
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.0/docs/decisions/2026-09-21-a-caller-states-constraints-not-mechanisms.md).
|
|
2581
|
+
(#77)
|
|
514
2582
|
|
|
515
2583
|
```js
|
|
516
2584
|
for await (const event of harness.invoke({
|
|
517
2585
|
capability: 'image',
|
|
518
2586
|
args: { prompt: 'funny meme' },
|
|
519
|
-
enhance: 'auto'
|
|
2587
|
+
enhance: 'auto',
|
|
2588
|
+
attach
|
|
520
2589
|
})) {
|
|
521
2590
|
if (event.type === 'metrics') log(event.route, event.routeModel)
|
|
522
2591
|
}
|
|
@@ -524,33 +2593,56 @@ While the major version is `0`, a breaking change bumps the minor version.
|
|
|
524
2593
|
|
|
525
2594
|
### Changed
|
|
526
2595
|
|
|
527
|
-
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
dependency of `@qvac/sdk
|
|
2596
|
+
- A host that assembles the native prebuilds beside the bundle now has to
|
|
2597
|
+
include `@qvac/translation-nmtcpp`. The bundle defers it like the other
|
|
2598
|
+
inference addons, so `prebuilds-manifest.json` names its prebuilds. It is
|
|
2599
|
+
already a dependency of `@qvac/sdk`, so it is in the host's
|
|
2600
|
+
`node_modules`. See
|
|
2601
|
+
[The published package](https://github.com/tetherto/qvac-harness/blob/v0.3.0/README.md#the-published-package).
|
|
2602
|
+
(#76)
|
|
531
2603
|
|
|
532
2604
|
## [0.2.12] - 2026-09-22
|
|
533
2605
|
|
|
2606
|
+
The first published release with the 0.2.11 changes (`invoke`,
|
|
2607
|
+
`detectLanguage`, `SkillOAuthConfig`), plus the fix below.
|
|
2608
|
+
|
|
534
2609
|
### Fixed
|
|
535
2610
|
|
|
536
|
-
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
2611
|
+
- The pdf, presentations, word and excel skills work again under
|
|
2612
|
+
`sandboxMode`. Sandbox mode refused every `exec` call that installs
|
|
2613
|
+
packages, including installs that never leave the device.
|
|
2614
|
+
|
|
2615
|
+
A request whose packages are all vendored, each pinned to the version the
|
|
2616
|
+
shipped wheels carry, now installs from those wheels. One unvendored
|
|
2617
|
+
package, an unpinned version, or a host that ships no wheels would fall
|
|
2618
|
+
back to PyPI, and is still refused. See
|
|
2619
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.12/docs/decisions/2026-09-21-sandbox-mode-no-network.md#consequences).
|
|
2620
|
+
(#91)
|
|
540
2621
|
|
|
541
2622
|
## [0.2.11] - 2026-09-22
|
|
542
2623
|
|
|
543
2624
|
Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
2625
|
+
Install 0.2.12 or later to get them.
|
|
544
2626
|
|
|
545
2627
|
### Added
|
|
546
2628
|
|
|
547
2629
|
- `invoke({ capability, args })` runs one capability on its own, with no
|
|
548
2630
|
model, no dispatch and no approval callback: the caller already decided.
|
|
549
|
-
`image` is the first capability
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
2631
|
+
`image` is the first capability, and `CAPABILITIES` and `isCapability` list
|
|
2632
|
+
and check the names.
|
|
2633
|
+
|
|
2634
|
+
It is a frame on the existing `completion` stream, so it takes the same
|
|
2635
|
+
`attach`, `progress` and abort signal, and emits the same `tool-call`,
|
|
2636
|
+
`tool-result`, `metrics`, `error` and `aborted` events. `metrics` reports
|
|
2637
|
+
`totalTokens: 0`. An optional `agent` supplies the image defaults (model,
|
|
2638
|
+
steps, size). A failure inside the tool, such as a missing `attach`, comes
|
|
2639
|
+
back as `result.error` on the `tool-result`; the `error` event is for a
|
|
2640
|
+
capability the device lacks or a tool that threw.
|
|
2641
|
+
|
|
2642
|
+
It is on `Harness` and `RemoteHarness` alike, and optional on
|
|
2643
|
+
`HarnessContract`. See
|
|
2644
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.11/docs/decisions/2026-09-21-a-run-that-loads-no-model.md).
|
|
2645
|
+
(#74)
|
|
554
2646
|
|
|
555
2647
|
```js
|
|
556
2648
|
for await (const event of harness.invoke({
|
|
@@ -560,14 +2652,20 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
560
2652
|
progress,
|
|
561
2653
|
signal
|
|
562
2654
|
})) {
|
|
563
|
-
if (event.type === 'tool-result')
|
|
2655
|
+
if (event.type === 'tool-result') {
|
|
2656
|
+
// { attachmentId, fileName, byteLength, width, height } or { error }
|
|
2657
|
+
if (event.result.error) showError(event.result.error)
|
|
2658
|
+
else showImage(event.result.attachmentId)
|
|
2659
|
+
}
|
|
564
2660
|
if (event.type === 'error') showError(event.message)
|
|
565
2661
|
}
|
|
566
2662
|
```
|
|
567
2663
|
|
|
568
|
-
- `detectLanguage({ text, topK })
|
|
569
|
-
on `
|
|
570
|
-
`
|
|
2664
|
+
- `detectLanguage({ text, topK })`: language detection with no model to load.
|
|
2665
|
+
It is on `Harness`, served over hrpc as `detect-language`, and on
|
|
2666
|
+
`RemoteHarness`.
|
|
2667
|
+
|
|
2668
|
+
Without `topK`, or with 1, it answers with the single best match and no
|
|
571
2669
|
probability. Above that it returns ranked candidates with their
|
|
572
2670
|
probabilities, best first, and may return fewer than asked. Text it cannot
|
|
573
2671
|
place answers `und`. (#75)
|
|
@@ -580,15 +2678,31 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
580
2678
|
// [{ code, language, probability }, ...]
|
|
581
2679
|
```
|
|
582
2680
|
|
|
583
|
-
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
2681
|
+
- A host can run a skill's OAuth setup from its manifest instead of its own
|
|
2682
|
+
provider table. `SkillSetupRoute.oauth` carries a `SkillOAuthConfig` parsed
|
|
2683
|
+
from `setup.routes[].oauth` and sent over the wire, and `SkillOAuthConfig`
|
|
2684
|
+
is exported.
|
|
2685
|
+
|
|
2686
|
+
`stateKey`, an https `authUrl` and `tokenUrl`, and `tokenAuth`
|
|
2687
|
+
(`pkce-only`, `secret-in-body` or `secret-in-basic`) are required; an
|
|
2688
|
+
`oauth` route without a valid config is dropped. `extraAuthParams` may not
|
|
2689
|
+
override the parameters the flow owns, such as `redirect_uri` or `state`.
|
|
2690
|
+
(#88)
|
|
2691
|
+
|
|
2692
|
+
```js
|
|
2693
|
+
const skills = await harness.skills()
|
|
2694
|
+
const route = skills
|
|
2695
|
+
.find((skill) => skill.name === 'spotify')
|
|
2696
|
+
?.setup?.routes?.find((r) => r.kind === 'oauth')
|
|
2697
|
+
|
|
2698
|
+
// { stateKey, authUrl, tokenUrl, scopes, tokenAuth,
|
|
2699
|
+
// extraAuthParams?, registrationEndpoint?, port?, sharedIosSession? }
|
|
2700
|
+
const oauth = route?.oauth
|
|
2701
|
+
```
|
|
588
2702
|
|
|
589
2703
|
### Changed
|
|
590
2704
|
|
|
591
|
-
- `@qvac/skills` 0.1.6
|
|
2705
|
+
- `@qvac/skills` `^0.1.6`: the eight OAuth skills declare their setup routes'
|
|
592
2706
|
OAuth config, the Spotify skill always makes the play call after a search,
|
|
593
2707
|
and the weather skill looks the place up with `weather_lookup`. (#88)
|
|
594
2708
|
|
|
@@ -605,11 +2719,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
605
2719
|
|
|
606
2720
|
### Added
|
|
607
2721
|
|
|
608
|
-
- `sandboxMode` agent option: an agent
|
|
609
|
-
|
|
610
|
-
|
|
2722
|
+
- `sandboxMode` agent option: an agent that cannot reach the network. Set it
|
|
2723
|
+
on the agent and every network tool is withheld before the model sees the
|
|
2724
|
+
catalog: the web search, HTTP request and MCP toolsets, including skill
|
|
2725
|
+
operations compiled over HTTP or MCP, not just web search.
|
|
2726
|
+
|
|
611
2727
|
`exec` stays, but refuses package installs and well-known network commands
|
|
612
|
-
such as `curl`, `git` and `npm`. That is a guard, not an OS-level
|
|
2728
|
+
such as `curl`, `git` and `npm`. That is a name-list guard, not an OS-level
|
|
2729
|
+
sandbox: another binary, or Python calling `pyfetch`, can still open a
|
|
2730
|
+
socket. The six toolset switches stay independent; this is the one knob
|
|
2731
|
+
that means "no network". See
|
|
2732
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.10/docs/decisions/2026-09-21-sandbox-mode-no-network.md).
|
|
613
2733
|
(#73)
|
|
614
2734
|
|
|
615
2735
|
```js
|
|
@@ -622,12 +2742,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
622
2742
|
}
|
|
623
2743
|
```
|
|
624
2744
|
|
|
625
|
-
- `@qvac/harness/office`: XLSX and PPTX text extraction for Knowledge beside
|
|
626
|
-
DOCX, through the same bundled Python worker.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
2745
|
+
- `@qvac/harness/office`: XLSX and PPTX text extraction for Knowledge, beside
|
|
2746
|
+
DOCX, through the same bundled Python worker. `extractOfficeText` picks the
|
|
2747
|
+
format from the file extension, with `mimeType` as the fallback.
|
|
2748
|
+
|
|
2749
|
+
XLSX keeps sheet names, column positions, cached formula values (formula
|
|
2750
|
+
text where there is no cached value). PPTX keeps slide text, grouped shapes
|
|
2751
|
+
and tables in slide order; speaker notes, images and charts are left out.
|
|
2752
|
+
Legacy XLS and PPT are not supported. `@qvac/harness/docx` is unchanged and
|
|
2753
|
+
shares the worker. See
|
|
2754
|
+
[Office extraction](https://github.com/tetherto/qvac-harness/blob/v0.2.10/README.md#office-extraction)
|
|
2755
|
+
for the cache and wheel paths a host sets. (#83)
|
|
631
2756
|
|
|
632
2757
|
```js
|
|
633
2758
|
import { extractOfficeText, closeOfficeWorker } from '@qvac/harness/office'
|
|
@@ -639,43 +2764,57 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
639
2764
|
|
|
640
2765
|
### Fixed
|
|
641
2766
|
|
|
642
|
-
- A small model
|
|
643
|
-
cap. A call that already failed this turn with the same arguments is
|
|
2767
|
+
- A small model no longer loops on the same failing tool call up to the round
|
|
2768
|
+
cap. A call that already failed this turn with the same arguments is
|
|
644
2769
|
answered from its first result without running again, until a later round
|
|
645
|
-
succeeds. Three such answers end the turn's tool rounds
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
the
|
|
652
|
-
|
|
653
|
-
|
|
2770
|
+
succeeds. Three such answers end the turn's tool rounds; the tool set is
|
|
2771
|
+
never changed, so the prompt cache is kept.
|
|
2772
|
+
|
|
2773
|
+
A failure that may pass on retry, such as a timeout, a 5xx, 408 or 429,
|
|
2774
|
+
still runs again, and the tools that can fail that way now say so in a
|
|
2775
|
+
`code` or `status` field on their result. See
|
|
2776
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.10/docs/decisions/2026-09-21-a-failed-call-is-answered-from-its-own-result.md).
|
|
2777
|
+
(#78)
|
|
2778
|
+
|
|
2779
|
+
- A guessed `auth.tokenCredentialKey` on `http_request` or `mcp_call` now
|
|
2780
|
+
works instead of failing with an error claiming the skill was not loaded.
|
|
2781
|
+
It resolves to the one connected credential allowed for that URL. When
|
|
2782
|
+
none is connected, the error says so and tells the user to connect it in
|
|
2783
|
+
Skills. (#72)
|
|
654
2784
|
|
|
655
2785
|
## [0.2.9] - 2026-09-22
|
|
656
2786
|
|
|
657
2787
|
### Added
|
|
658
2788
|
|
|
659
|
-
-
|
|
660
|
-
`
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
2789
|
+
- A host can record exactly what each inference round sent. Set
|
|
2790
|
+
`captureInferenceCalls` on a completion's context, and each round emits an
|
|
2791
|
+
`inference-call` event with the payload it is about to send: model,
|
|
2792
|
+
messages, tools, generation params, cache key and prompt prefix.
|
|
2793
|
+
|
|
2794
|
+
An `inference-sent` event follows once the round ends, with the tokens it
|
|
2795
|
+
spent, its `outcome` (`completed`, `overflowed` or `failed`) and, on the
|
|
2796
|
+
bundled patched SDK, the slice of `messages` the KV cache let through. An
|
|
2797
|
+
attempt the overflow ladder rejected is still recorded, with its
|
|
2798
|
+
`droppedTurns`. See
|
|
2799
|
+
[What actually gets sent](https://github.com/tetherto/qvac-harness/blob/v0.2.9/docs/kvcache-reference.md#what-actually-gets-sent).
|
|
2800
|
+
|
|
2801
|
+
Off unless asked for, since every record carries a whole prompt. The flag
|
|
2802
|
+
and both events are new on the hrpc wire, so the host and the spawned
|
|
2803
|
+
harness both need 0.2.9. (#51)
|
|
668
2804
|
|
|
669
2805
|
```js
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
if (event.type === 'inference-
|
|
2806
|
+
const context = { model, agent, messages, captureInferenceCalls: true }
|
|
2807
|
+
for await (const event of harness.completion(context)) {
|
|
2808
|
+
if (event.type === 'inference-call') record(event.call)
|
|
2809
|
+
if (event.type === 'inference-sent') settle(event.round, event.outcome)
|
|
673
2810
|
}
|
|
674
2811
|
```
|
|
675
2812
|
|
|
676
|
-
-
|
|
677
|
-
|
|
678
|
-
|
|
2813
|
+
- A host can tell a cut-off answer from a complete one. The `metrics` event
|
|
2814
|
+
carries the last round's `stopReason`, and leaves it out when the SDK
|
|
2815
|
+
reports none. A turn cut off by the context window ends cleanly with
|
|
2816
|
+
`stopReason: 'length'`. See
|
|
2817
|
+
[Compaction](https://github.com/tetherto/qvac-harness/blob/v0.2.9/docs/kvcache-reference.md#compaction).
|
|
679
2818
|
(#62)
|
|
680
2819
|
|
|
681
2820
|
```js
|
|
@@ -692,15 +2831,21 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
692
2831
|
### Added
|
|
693
2832
|
|
|
694
2833
|
- `weather_lookup`, a tool that looks weather up on wttr.in by `location` and
|
|
695
|
-
leads its report with the place the service actually resolved.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
2834
|
+
leads its report with the place the service actually resolved.
|
|
2835
|
+
|
|
2836
|
+
When that place disagrees with the country or state the user named, it
|
|
2837
|
+
refuses instead of reporting the weather of wherever the geocoder landed: a
|
|
2838
|
+
nonexistent town no longer gets a forecast, and a bare "Rome" the service
|
|
2839
|
+
places in Togo says so.
|
|
2840
|
+
|
|
2841
|
+
It is offered only once the weather skill is loaded, needs no approval, and
|
|
2842
|
+
the `http-request` toolset switch turns it off. The spawned sidecar registers
|
|
2843
|
+
it; an in-process host adds it to its tools. See
|
|
2844
|
+
[the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.8/docs/decisions/2026-09-16-a-lookup-reports-the-place-it-resolved.md).
|
|
2845
|
+
(#52)
|
|
702
2846
|
|
|
703
2847
|
```js
|
|
2848
|
+
import { Harness } from '@qvac/harness'
|
|
704
2849
|
import { createWeatherLookupTool } from '@qvac/harness/lib/tools/weather-lookup.ts'
|
|
705
2850
|
|
|
706
2851
|
const harness = new Harness({ tools: [...tools, createWeatherLookupTool()] })
|
|
@@ -715,20 +2860,25 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
715
2860
|
the version. (#55)
|
|
716
2861
|
|
|
717
2862
|
```js
|
|
718
|
-
//
|
|
2863
|
+
// before
|
|
2864
|
+
import { currentReleaseLine } from '@qvac/harness/schema/release-tags'
|
|
719
2865
|
const line = currentReleaseLine(root) // '0.2'
|
|
720
2866
|
|
|
721
|
-
//
|
|
2867
|
+
// after
|
|
2868
|
+
import { currentReleaseVersion } from '@qvac/harness/schema/release-tags'
|
|
722
2869
|
const version = currentReleaseVersion(root) // Version 0.2.8
|
|
723
2870
|
const line = `${version.major}.${version.minor}`
|
|
724
2871
|
```
|
|
725
2872
|
|
|
726
|
-
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
the package version are left out.
|
|
730
|
-
|
|
731
|
-
|
|
2873
|
+
- A schema change is now checked against the build users are running.
|
|
2874
|
+
`previousReleaseTags` from the same module counts the newest shipped tag on
|
|
2875
|
+
the line being built as a baseline, not only older lines; only tags newer
|
|
2876
|
+
than the package version are left out.
|
|
2877
|
+
|
|
2878
|
+
A host that regenerates its `spec/` against it re-derives hyperschema's
|
|
2879
|
+
version counters once, so expect one regeneration commit after upgrading.
|
|
2880
|
+
(#55, #58)
|
|
2881
|
+
|
|
732
2882
|
- `@qvac/skills` 0.1.4: the Apple Notes create-note operation no longer
|
|
733
2883
|
renames a note after creating it, which failed on iCloud accounts and left
|
|
734
2884
|
duplicate notes behind. (#48)
|
|
@@ -737,14 +2887,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
737
2887
|
|
|
738
2888
|
### Added
|
|
739
2889
|
|
|
740
|
-
- `@qvac/harness/docx`: `extractDocxText`
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
2890
|
+
- `@qvac/harness/docx`: `extractDocxText` gives Knowledge a DOCX file's text,
|
|
2891
|
+
pulled with the bundled Python runtime. Paragraphs and tables keep document
|
|
2892
|
+
order, one table row per line with cells joined by `' | '`.
|
|
2893
|
+
|
|
2894
|
+
It takes up to 20 MiB and only the shipped wheels, never a network install.
|
|
2895
|
+
Set `QVAC_PYODIDE_CACHE_DIR` to a writable directory first, so the worker
|
|
2896
|
+
seeds its cache from those wheels and works offline. A bundled host also
|
|
2897
|
+
sets `QVAC_PYODIDE_WORKER_ENTRY` and `QVAC_PYTHON_WHEELS_DIR` to its staged
|
|
2898
|
+
worker and wheels. See
|
|
2899
|
+
[DOCX extraction](https://github.com/tetherto/qvac-harness/blob/v0.2.7/README.md#docx-extraction).
|
|
2900
|
+
(#46)
|
|
748
2901
|
|
|
749
2902
|
```js
|
|
750
2903
|
import { extractDocxText, closeDocxWorker } from '@qvac/harness/docx'
|
|
@@ -776,36 +2929,45 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
776
2929
|
})
|
|
777
2930
|
```
|
|
778
2931
|
|
|
779
|
-
- `writeClient` and
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
2932
|
+
- A caller can declare which hrpc requests may be omitted. `writeClient` and
|
|
2933
|
+
`writeCapabilities` from `@qvac/harness/schema/generate` take an options
|
|
2934
|
+
argument whose `optionalRequests` names those request types: the generated
|
|
2935
|
+
client sends `{}` for them, and the generated capability types mark the input
|
|
2936
|
+
optional.
|
|
2937
|
+
|
|
2938
|
+
Left out, only `@assistant/empty` is optional, as before. A set you pass
|
|
2939
|
+
replaces that default, so include it if you still want it. `writeClient`
|
|
2940
|
+
still takes an export name as a string. (#44)
|
|
786
2941
|
|
|
787
2942
|
```js
|
|
788
2943
|
import { writeClient, writeCapabilities } from '@qvac/harness/schema/generate'
|
|
789
2944
|
|
|
790
2945
|
const optionalRequests = new Set(['@assistant/empty', '@assistant/mesh-scope'])
|
|
791
|
-
writeClient(builder, 'spec/calls.js', {
|
|
2946
|
+
writeClient(builder, 'spec/calls.js', {
|
|
2947
|
+
exportName: 'engineClient',
|
|
2948
|
+
optionalRequests
|
|
2949
|
+
})
|
|
792
2950
|
writeCapabilities(builder, 'spec/capabilities.d.ts', { optionalRequests })
|
|
793
2951
|
```
|
|
794
2952
|
|
|
795
2953
|
### Changed
|
|
796
2954
|
|
|
797
|
-
-
|
|
798
|
-
|
|
799
|
-
five minutes, and then loads anyway rather than failing.
|
|
800
|
-
|
|
2955
|
+
- Switching models no longer stacks a second one in memory beside a live run.
|
|
2956
|
+
A completion that needs a different model waits for that run to release its
|
|
2957
|
+
model, for up to five minutes, and then loads anyway rather than failing.
|
|
2958
|
+
|
|
2959
|
+
A `warmModel` call waits two seconds at most, and skips the warm if no room
|
|
2960
|
+
was made. (#41)
|
|
801
2961
|
|
|
802
2962
|
## [0.2.5] - 2026-09-14
|
|
803
2963
|
|
|
804
2964
|
### Added
|
|
805
2965
|
|
|
806
|
-
- A
|
|
807
|
-
|
|
808
|
-
own probe. Left out, the harness probes for itself.
|
|
2966
|
+
- A host that already has the GPU reading can hand it over: a `gpuStats`
|
|
2967
|
+
option on `spawnHarness`, `harnessChild` and `HarnessOptions`, and the
|
|
2968
|
+
harness skips its own probe. Left out, the harness probes for itself. It
|
|
2969
|
+
takes the `bare-gpu-info` shape: `memory.totalBytes` and `gpu.devices`, each
|
|
2970
|
+
with a `name` and `videoMemoryBytes`. (#36)
|
|
809
2971
|
|
|
810
2972
|
```js
|
|
811
2973
|
import { spawnHarness } from '@qvac/harness/lib/spawn.ts'
|
|
@@ -815,54 +2977,72 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
815
2977
|
sdkStorage,
|
|
816
2978
|
gpuStats: {
|
|
817
2979
|
memory: { totalBytes: os.totalmem() },
|
|
818
|
-
gpu: {
|
|
2980
|
+
gpu: {
|
|
2981
|
+
devices: [{ name: 'NVIDIA RTX 4070', videoMemoryBytes: 12884901888 }]
|
|
2982
|
+
}
|
|
819
2983
|
}
|
|
820
2984
|
})
|
|
821
2985
|
```
|
|
822
2986
|
|
|
823
2987
|
### Fixed
|
|
824
2988
|
|
|
825
|
-
-
|
|
826
|
-
supervisor respawned it in a loop: the boot-time capability probe
|
|
827
|
-
second GPU-info instance beside the SDK's own.
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
2989
|
+
- The harness stays up on a Linux snap. It exited about a second after `open`,
|
|
2990
|
+
and the supervisor respawned it in a loop: the boot-time capability probe
|
|
2991
|
+
created a second GPU-info instance beside the SDK's own.
|
|
2992
|
+
|
|
2993
|
+
On Linux and Windows under Bare, GPUs are now enumerated in a short-lived
|
|
2994
|
+
child process, which gives up after 5 seconds and reports no GPU. (#36)
|
|
2995
|
+
|
|
2996
|
+
- On Windows, asking for an image after a presentation no longer leaves the
|
|
2997
|
+
chat stuck on "Loading … into memory". Pyodide's boot opened the process
|
|
2998
|
+
streams from the Python worker thread, which blocked the image-model loader's
|
|
2999
|
+
progress. Boot now never touches them; a run's own output capture is
|
|
3000
|
+
unchanged. (#34)
|
|
834
3001
|
|
|
835
3002
|
## [0.2.4] - 2026-09-12
|
|
836
3003
|
|
|
837
3004
|
### Added
|
|
838
3005
|
|
|
839
|
-
- `@qvac/harness/worker/stow-entry.mjs`:
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
throwing: `@qvac/core` 0.1.2
|
|
845
|
-
for a host that relocates the
|
|
3006
|
+
- `@qvac/harness/worker/stow-entry.mjs`: a sidecar entry a host running from
|
|
3007
|
+
inside `node_modules` spawns directly, without the prebuilt bundle. Every
|
|
3008
|
+
native addon then resolves beside the JS that calls it, from one install.
|
|
3009
|
+
|
|
3010
|
+
With the bundle, the addons come from the host's own install, and a version
|
|
3011
|
+
skew there hangs the child on boot rather than throwing: `@qvac/core` 0.1.2
|
|
3012
|
+
shipped that way. The bundle stays published for a host that relocates the
|
|
3013
|
+
code out of `node_modules`. (#31)
|
|
846
3014
|
|
|
847
3015
|
```js
|
|
848
3016
|
import { harnessChild } from '@qvac/harness/lib/spawn.ts'
|
|
849
3017
|
|
|
850
3018
|
const entry = new URL(import.meta.resolve('@qvac/harness/worker/stow-entry.mjs')).pathname
|
|
851
|
-
const spec = harnessChild(entry, {
|
|
3019
|
+
const spec = harnessChild(entry, {
|
|
3020
|
+
runner,
|
|
3021
|
+
skillsDir,
|
|
3022
|
+
wheelsDir,
|
|
3023
|
+
sdkStorage: storage.sdk
|
|
3024
|
+
})
|
|
852
3025
|
```
|
|
853
3026
|
|
|
854
3027
|
## [0.2.3] - 2026-09-12
|
|
855
3028
|
|
|
856
3029
|
### Added
|
|
857
3030
|
|
|
858
|
-
-
|
|
859
|
-
|
|
3031
|
+
- A duplex handler's frames now type without a local widening:
|
|
3032
|
+
`schema/generate` emits `writeStream` on the generated `HandlerFrames`.
|
|
3033
|
+
(#29)
|
|
3034
|
+
|
|
3035
|
+
```js
|
|
3036
|
+
// in a generated spec, a duplex handler can watch its write side close
|
|
3037
|
+
frames.writeStream?.on('close', onClose)
|
|
3038
|
+
```
|
|
860
3039
|
|
|
861
3040
|
### Changed
|
|
862
3041
|
|
|
863
|
-
-
|
|
864
|
-
persistent root instead of the device HOME, which an app
|
|
865
|
-
Desktop and Snap are unchanged, and `overrides.models` still
|
|
3042
|
+
- Models download on Android and iOS. `resolveStorage` keeps them under the
|
|
3043
|
+
app's own persistent root there, instead of the device HOME, which an app
|
|
3044
|
+
cannot write. Desktop and Snap are unchanged, and `overrides.models` still
|
|
3045
|
+
wins. (#29)
|
|
866
3046
|
|
|
867
3047
|
```js
|
|
868
3048
|
import { resolveStorage } from '@qvac/harness/storage'
|
|
@@ -874,37 +3054,41 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
874
3054
|
|
|
875
3055
|
### Fixed
|
|
876
3056
|
|
|
877
|
-
- Every `./lib/tools/*` subpath is
|
|
878
|
-
|
|
879
|
-
`read-files`, `create-documents`, `edit-documents
|
|
880
|
-
`PACKAGE_PATH_NOT_EXPORTED`. 0.1.1 to 0.2.2 are
|
|
3057
|
+
- The mobile worklet's file tools load again. Every `./lib/tools/*` subpath is
|
|
3058
|
+
published now; the tarball listed only the ones `qvac-core` imports, so
|
|
3059
|
+
`file-glob`, `grep`, `read-files`, `create-documents`, `edit-documents` and
|
|
3060
|
+
`fs/scope` failed with `PACKAGE_PATH_NOT_EXPORTED`. 0.1.1 to 0.2.2 are
|
|
3061
|
+
affected. (#29)
|
|
881
3062
|
|
|
882
3063
|
## [0.2.2] - 2026-09-11
|
|
883
3064
|
|
|
884
3065
|
### Fixed
|
|
885
3066
|
|
|
886
|
-
-
|
|
887
|
-
|
|
888
|
-
|
|
3067
|
+
- The engine bundle runs on the patched `@qvac/inference` 0.19.0 the harness
|
|
3068
|
+
pins, and nothing else. A stale lockfile entry had given `@qvac/sdk` its own
|
|
3069
|
+
nested `@qvac/inference` 0.19.1 beside it. A packaging fix with no API
|
|
3070
|
+
change. (#27)
|
|
889
3071
|
|
|
890
3072
|
## [0.2.1] - 2026-09-11
|
|
891
3073
|
|
|
892
3074
|
### Fixed
|
|
893
3075
|
|
|
894
|
-
- The generated wire spec
|
|
895
|
-
on a download event and as a model
|
|
896
|
-
version 7, the version 0.1.2 already
|
|
897
|
-
|
|
3076
|
+
- The generated wire spec matches the schema it is built from again. 0.2.0
|
|
3077
|
+
stamped the fields it added (`downloaded` on a download event and as a model
|
|
3078
|
+
status, and `kvCacheKey`) with schema version 7, the version 0.1.2 already
|
|
3079
|
+
shipped. They are version 8 now. Only the generated spec changed; no API
|
|
3080
|
+
change. (#25)
|
|
898
3081
|
|
|
899
3082
|
## [0.2.0] - 2026-09-11
|
|
900
3083
|
|
|
901
3084
|
### Added
|
|
902
3085
|
|
|
903
|
-
- `deleteKvCache(kvCacheKey)` deletes one chat's KV cache
|
|
904
|
-
under that key
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
`
|
|
3086
|
+
- `deleteKvCache(kvCacheKey)` deletes one chat's KV cache: every file kept
|
|
3087
|
+
under that key. `clearKvCache()` still deletes them all.
|
|
3088
|
+
|
|
3089
|
+
It is safe on a key still in use: the next turn under it primes from scratch.
|
|
3090
|
+
It rides a new `delete-kv-cache` hrpc route, and resolves with `{ status }`
|
|
3091
|
+
like `clearKvCache`. (#22)
|
|
908
3092
|
|
|
909
3093
|
```js
|
|
910
3094
|
// the cacheKey the chat's completions ran under
|
|
@@ -912,11 +3096,13 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
912
3096
|
if (result.status !== 'success') log(result.error)
|
|
913
3097
|
```
|
|
914
3098
|
|
|
915
|
-
- A download
|
|
916
|
-
|
|
917
|
-
`
|
|
918
|
-
|
|
919
|
-
|
|
3099
|
+
- A host can tell a fresh download from a model already on disk. A download's
|
|
3100
|
+
`complete` event carries `downloaded`: `true` when bytes were fetched,
|
|
3101
|
+
`false` when the model was already there.
|
|
3102
|
+
|
|
3103
|
+
An image model's `model` events report `loading` rather than `downloading`
|
|
3104
|
+
when it is cached, and a new `downloaded` status once a fetched one has
|
|
3105
|
+
loaded, so a host that switches over `status` has one more case. (#22)
|
|
920
3106
|
|
|
921
3107
|
```js
|
|
922
3108
|
for await (const event of harness.download({ model })) {
|
|
@@ -928,28 +3114,63 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
928
3114
|
})
|
|
929
3115
|
```
|
|
930
3116
|
|
|
931
|
-
- `ToolDefinition.prompt
|
|
932
|
-
|
|
933
|
-
`exec` and `skill` ship one, so every
|
|
934
|
-
their schemas. (#22)
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
3117
|
+
- `ToolDefinition.prompt` lets a tool show the model a shorter schema: an
|
|
3118
|
+
optional compact `description` and `parameters` sent in place of the full
|
|
3119
|
+
ones, which still validate the call. `exec` and `skill` ship one, so every
|
|
3120
|
+
turn spends less of the prompt on their schemas. (#22)
|
|
3121
|
+
|
|
3122
|
+
```js
|
|
3123
|
+
const lookup = {
|
|
3124
|
+
name: 'lookup',
|
|
3125
|
+
description: 'Look a record up by its id, and return ...',
|
|
3126
|
+
parameters: {
|
|
3127
|
+
type: 'object',
|
|
3128
|
+
properties: { id: { type: 'string', description: 'The record id ...' } },
|
|
3129
|
+
required: ['id']
|
|
3130
|
+
},
|
|
3131
|
+
// what the model sees; the full schema above still validates the call
|
|
3132
|
+
prompt: {
|
|
3133
|
+
description: 'Look a record up by id.',
|
|
3134
|
+
parameters: {
|
|
3135
|
+
type: 'object',
|
|
3136
|
+
properties: { id: { type: 'string' } },
|
|
3137
|
+
required: ['id']
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
toolset: null,
|
|
3141
|
+
effect: () => 'read',
|
|
3142
|
+
execute: async ({ id }) => find(id)
|
|
3143
|
+
}
|
|
3144
|
+
```
|
|
3145
|
+
|
|
3146
|
+
- `CONTEXT_OVERFLOW_MESSAGE` is exported: the message a turn fails with when it
|
|
3147
|
+
does not fit the model's context window. A host can tell that failure apart
|
|
3148
|
+
and compact the chat. (#22)
|
|
938
3149
|
|
|
939
3150
|
```js
|
|
940
3151
|
import { CONTEXT_OVERFLOW_MESSAGE } from '@qvac/harness'
|
|
3152
|
+
|
|
3153
|
+
if (event.type === 'error' && event.message === CONTEXT_OVERFLOW_MESSAGE) {
|
|
3154
|
+
compact(chat)
|
|
3155
|
+
}
|
|
941
3156
|
```
|
|
942
3157
|
|
|
943
3158
|
- With `QVAC_HARNESS_LOG=1`, each turn logs `sdk tool definitions`: the tool
|
|
944
3159
|
schemas it sent, largest first, with each one's size and the skill that
|
|
945
3160
|
granted it. (#22)
|
|
946
3161
|
|
|
3162
|
+
```sh
|
|
3163
|
+
QVAC_HARNESS_LOG=1 bare host.js
|
|
3164
|
+
```
|
|
3165
|
+
|
|
947
3166
|
### Changed
|
|
948
3167
|
|
|
949
3168
|
- `@qvac/sdk` 0.19.0, pinned exactly. Under Bare the SDK is now served by
|
|
950
3169
|
`@qvac/inference` 0.19.0, through a new `#sdk` import alias.
|
|
951
|
-
|
|
952
|
-
|
|
3170
|
+
|
|
3171
|
+
`@qvac/audiogen-ggml` joins the deferred addons, so
|
|
3172
|
+
`prebuilds-manifest.json` names it and the host provides it too. (#22)
|
|
3173
|
+
|
|
953
3174
|
- Image and music generation schemas reach the model once their skill's
|
|
954
3175
|
instructions are loaded, not as soon as the skill is enabled. Loading the
|
|
955
3176
|
skill unlocks them within the same turn, at the cost of one cache re-prime
|
|
@@ -964,10 +3185,11 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
964
3185
|
|
|
965
3186
|
### Fixed
|
|
966
3187
|
|
|
967
|
-
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
3188
|
+
- `configureSdkStorage()` runs under Bare again.
|
|
3189
|
+
`@qvac/harness/sdk-storage` and `@qvac/harness/sdk-config-loader` failed to
|
|
3190
|
+
resolve there with `MODULE_NOT_FOUND`, because the tarball carried only the
|
|
3191
|
+
Node loader behind `#sdk-config-loader`. Both loaders ship now. 0.1.1 is
|
|
3192
|
+
affected. (#20)
|
|
971
3193
|
|
|
972
3194
|
```js
|
|
973
3195
|
// Bare: loads again, nothing else changes
|
|
@@ -978,13 +3200,15 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
978
3200
|
|
|
979
3201
|
### Added
|
|
980
3202
|
|
|
981
|
-
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
3203
|
+
- `@qvac/harness` and its subpaths now import from npm under plain Node or
|
|
3204
|
+
Bare, with no TypeScript source or type-stripping loader. The library surface
|
|
3205
|
+
ships compiled: `dist-lib/` carries JavaScript and a `.d.ts` for every
|
|
3206
|
+
export.
|
|
3207
|
+
|
|
3208
|
+
Export keys are unchanged, `.ts`-suffixed deep paths included, so a host that
|
|
3209
|
+
took the library from the repository switches to the package without editing
|
|
3210
|
+
a specifier. Of `./lib/tools/*`, only the paths `qvac-core` imports are
|
|
3211
|
+
published. (#18)
|
|
988
3212
|
|
|
989
3213
|
```js
|
|
990
3214
|
import { harnessChild, spawnHarness } from '@qvac/harness/lib/spawn.ts'
|
|
@@ -995,13 +3219,18 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
995
3219
|
|
|
996
3220
|
### Added
|
|
997
3221
|
|
|
998
|
-
- First release of the QVAC engine as `@qvac/harness`.
|
|
999
|
-
prebuilt `dist/harness.bundle
|
|
1000
|
-
generated `dist/harness.cjs`
|
|
1001
|
-
process.
|
|
3222
|
+
- First release of the QVAC engine as `@qvac/harness`. A host gets the
|
|
3223
|
+
prebuilt engine, `dist/harness.bundle` (one bundle for every platform), and
|
|
3224
|
+
the generated `dist/harness.cjs` it requires to spawn that bundle as a
|
|
3225
|
+
bare-sidecar process.
|
|
3226
|
+
|
|
3227
|
+
The package spawns; it does not import. Its export map points at library
|
|
1002
3228
|
source the tarball leaves out, so a host takes `spawnHarness`,
|
|
1003
3229
|
`harnessChild` and the transport from the repository until a compiled
|
|
1004
|
-
surface ships.
|
|
3230
|
+
surface ships. See
|
|
3231
|
+
[The npm artifact spawns; it does not import](https://github.com/tetherto/qvac-harness/blob/v0.1.0/README.md#the-npm-artifact-spawns-it-does-not-import)
|
|
3232
|
+
and [Spawning](https://github.com/tetherto/qvac-harness/blob/v0.1.0/README.md#spawning).
|
|
3233
|
+
(#13)
|
|
1005
3234
|
|
|
1006
3235
|
```js
|
|
1007
3236
|
const harness = require('@qvac/harness/dist/harness.cjs')
|
|
@@ -1009,17 +3238,29 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
|
|
|
1009
3238
|
const { ipc, sidecar, exit } = await harness.start(args)
|
|
1010
3239
|
```
|
|
1011
3240
|
|
|
1012
|
-
- `dist/prebuilds-manifest.json`
|
|
1013
|
-
bundle defers, keyed by its path
|
|
1014
|
-
|
|
1015
|
-
`@qvac` inference addons and `pyodide`
|
|
3241
|
+
- `dist/prebuilds-manifest.json` tells a host which native prebuilds to supply.
|
|
3242
|
+
It names every prebuild directory the bundle defers, keyed by its path
|
|
3243
|
+
relative to the bundle. The host assembles those beside the bundle from its
|
|
3244
|
+
own `node_modules`, and installs the `@qvac` inference addons and `pyodide`
|
|
3245
|
+
alongside. (#13)
|
|
1016
3246
|
- Skills come from `@qvac/skills` 0.1.2, a content-addressed bundle the
|
|
1017
3247
|
harness materializes at runtime. The Python wheels the tool runtime installs
|
|
1018
3248
|
ship in `wheels/`, each pinned by hash in `wheels/manifest.json`. (#13, #15)
|
|
1019
|
-
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
[Unreleased]: https://github.com/tetherto/qvac-harness/compare/v0.
|
|
3249
|
+
- Every dependency installs from the public npm registry: GPU stats are read
|
|
3250
|
+
through `bare-gpu-info`. (#12)
|
|
3251
|
+
|
|
3252
|
+
[Unreleased]: https://github.com/tetherto/qvac-harness/compare/v0.8.12...HEAD
|
|
3253
|
+
[0.8.12]: https://github.com/tetherto/qvac-harness/compare/v0.8.11...v0.8.12
|
|
3254
|
+
[0.8.11]: https://github.com/tetherto/qvac-harness/compare/v0.8.10...v0.8.11
|
|
3255
|
+
[0.8.10]: https://github.com/tetherto/qvac-harness/compare/v0.8.9...v0.8.10
|
|
3256
|
+
[0.8.9]: https://github.com/tetherto/qvac-harness/compare/v0.8.8...v0.8.9
|
|
3257
|
+
[0.8.8]: https://github.com/tetherto/qvac-harness/compare/v0.8.7...v0.8.8
|
|
3258
|
+
[0.8.7]: https://github.com/tetherto/qvac-harness/compare/v0.8.6...v0.8.7
|
|
3259
|
+
[0.8.6]: https://github.com/tetherto/qvac-harness/compare/v0.8.5...v0.8.6
|
|
3260
|
+
[0.8.5]: https://github.com/tetherto/qvac-harness/compare/v0.8.0...v0.8.5
|
|
3261
|
+
[0.8.0]: https://github.com/tetherto/qvac-harness/compare/v0.7.3...v0.8.0
|
|
3262
|
+
[0.7.3]: https://github.com/tetherto/qvac-harness/compare/v0.7.2...v0.7.3
|
|
3263
|
+
[0.7.2]: https://github.com/tetherto/qvac-harness/compare/v0.7.1...v0.7.2
|
|
1023
3264
|
[0.7.1]: https://github.com/tetherto/qvac-harness/compare/v0.7.0...v0.7.1
|
|
1024
3265
|
[0.7.0]: https://github.com/tetherto/qvac-harness/compare/v0.6.0...v0.7.0
|
|
1025
3266
|
[0.6.0]: https://github.com/tetherto/qvac-harness/compare/v0.5.0...v0.6.0
|