@qvac/harness 1.0.0-rc.3 → 1.0.0-rc.4
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 +2280 -1485
- package/README.md +44 -31
- package/dist-lib/index.d.ts +50 -6
- package/dist-lib/index.js +130 -28
- package/dist-lib/lib/agent/delegate.d.ts +3 -2
- package/dist-lib/lib/agent/delegate.js +6 -4
- package/dist-lib/lib/agent/follow.d.ts +5 -0
- package/dist-lib/lib/agent/follow.js +2 -0
- package/dist-lib/lib/agent/resolve.js +22 -17
- package/dist-lib/lib/agent/tool-selection.d.ts +4 -2
- package/dist-lib/lib/agent/tool-selection.js +5 -6
- package/dist-lib/lib/agent/tools.d.ts +1 -0
- package/dist-lib/lib/agent/tools.js +2 -1
- package/dist-lib/lib/capabilities/agent-ports.js +3 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/batching.js +1 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/direct-search.js +2 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/executing.js +60 -9
- package/dist-lib/lib/capabilities/completion-engine/actors/execution-plan.js +4 -4
- package/dist-lib/lib/capabilities/completion-engine/actors/inspect-prepare.js +3 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/inspecting.js +35 -6
- package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.d.ts +1 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.js +2 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/preparing.js +67 -27
- package/dist-lib/lib/capabilities/completion-engine/actors/rejecting.js +6 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/resolving.js +61 -16
- package/dist-lib/lib/capabilities/completion-engine/actors/retrieving.js +2 -2
- package/dist-lib/lib/capabilities/completion-engine/actors/skill-step.js +23 -13
- package/dist-lib/lib/capabilities/completion-engine/actors/stream.d.ts +8 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/stream.js +61 -3
- package/dist-lib/lib/capabilities/completion-engine/actors/streaming.d.ts +5 -1
- package/dist-lib/lib/capabilities/completion-engine/actors/streaming.js +47 -21
- package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.d.ts +1 -0
- package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.js +30 -5
- package/dist-lib/lib/capabilities/completion-engine/driver.js +27 -11
- package/dist-lib/lib/capabilities/completion-engine/durable.d.ts +1 -0
- package/dist-lib/lib/capabilities/completion-engine/durable.js +5 -1
- package/dist-lib/lib/capabilities/completion-engine/index.d.ts +2 -1
- package/dist-lib/lib/capabilities/completion-engine/index.js +2 -2
- package/dist-lib/lib/capabilities/completion-engine/loop.d.ts +15 -2
- package/dist-lib/lib/capabilities/completion-engine/loop.js +7 -0
- package/dist-lib/lib/capabilities/completion-engine/metrics.d.ts +9 -2
- package/dist-lib/lib/capabilities/completion-engine/metrics.js +28 -7
- package/dist-lib/lib/capabilities/completion-engine/model-round.d.ts +46 -0
- package/dist-lib/lib/capabilities/completion-engine/model-round.js +45 -0
- package/dist-lib/lib/capabilities/completion-engine/operations.js +1 -1
- package/dist-lib/lib/capabilities/completion-engine/ports.js +3 -7
- package/dist-lib/lib/capabilities/completion-engine/round.d.ts +23 -3
- package/dist-lib/lib/capabilities/completion-engine/round.js +323 -97
- package/dist-lib/lib/capabilities/completion-engine/session.d.ts +10 -3
- package/dist-lib/lib/capabilities/completion-engine/session.js +30 -2
- package/dist-lib/lib/capabilities/completion-engine/tool-caller.js +3 -2
- package/dist-lib/lib/capabilities/completion-engine/tool-execution.d.ts +4 -3
- package/dist-lib/lib/capabilities/completion-engine/tool-execution.js +15 -10
- package/dist-lib/lib/capabilities/completion-engine/turns.d.ts +11 -4
- package/dist-lib/lib/capabilities/completion-engine/turns.js +48 -65
- package/dist-lib/lib/capabilities/download.d.ts +9 -7
- package/dist-lib/lib/capabilities/download.js +1 -1
- package/dist-lib/lib/capabilities/enhance.d.ts +1 -1
- package/dist-lib/lib/capabilities/enhance.js +20 -8
- package/dist-lib/lib/capabilities/preview-model-source.d.ts +7 -0
- package/dist-lib/lib/capabilities/preview-model-source.js +83 -23
- package/dist-lib/lib/capabilities/sdk-tool.d.ts +1 -0
- package/dist-lib/lib/capabilities/sdk-tool.js +18 -1
- package/dist-lib/lib/capabilities/tool-plan.d.ts +1 -1
- package/dist-lib/lib/capabilities/tool-plan.js +5 -5
- package/dist-lib/lib/capabilities/tool-prompt-log.js +3 -3
- package/dist-lib/lib/capabilities/tool-turns.d.ts +7 -9
- package/dist-lib/lib/capabilities/tool-turns.js +25 -20
- 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 +13 -10
- package/dist-lib/lib/connect.js +62 -24
- package/dist-lib/lib/context-window.d.ts +1 -0
- package/dist-lib/lib/context-window.js +3 -3
- package/dist-lib/lib/contract/agent.d.ts +7 -3
- package/dist-lib/lib/contract/completion.d.ts +44 -29
- package/dist-lib/lib/contract/egress-proxy.d.ts +13 -0
- package/dist-lib/lib/contract/egress-proxy.js +1 -0
- package/dist-lib/lib/contract/exec.d.ts +3 -3
- package/dist-lib/lib/contract/hooks.d.ts +4 -1
- package/dist-lib/lib/contract/index.d.ts +1 -0
- package/dist-lib/lib/contract/models.d.ts +6 -4
- 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 +9 -3
- package/dist-lib/lib/contract/sandbox.d.ts +3 -1
- 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 +32 -14
- package/dist-lib/lib/embeddings/index.d.ts +7 -1
- package/dist-lib/lib/embeddings/index.js +26 -5
- package/dist-lib/lib/errors.d.ts +266 -0
- package/dist-lib/lib/errors.js +198 -0
- package/dist-lib/lib/fold/index.d.ts +25 -1
- package/dist-lib/lib/fold/index.js +75 -9
- package/dist-lib/lib/guarded-fetch.js +11 -7
- package/dist-lib/lib/hardware/gpu-probe.js +10 -1
- package/dist-lib/lib/helpers/completion-params.d.ts +6 -2
- package/dist-lib/lib/helpers/completion-params.js +10 -1
- package/dist-lib/lib/helpers/engine-error.d.ts +2 -1
- package/dist-lib/lib/helpers/engine-error.js +12 -12
- package/dist-lib/lib/helpers/goal-check.d.ts +4 -0
- package/dist-lib/lib/helpers/goal-check.js +81 -0
- package/dist-lib/lib/helpers/head-tail.js +1 -1
- 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/repeated-reply.js +24 -16
- package/dist-lib/lib/helpers/thinking.d.ts +3 -2
- package/dist-lib/lib/helpers/thinking.js +19 -0
- package/dist-lib/lib/hooks/built-in/arg-repair.js +6 -2
- 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.js +23 -5
- package/dist-lib/lib/hooks/index.d.ts +4 -1
- package/dist-lib/lib/hooks/index.js +9 -4
- package/dist-lib/lib/hooks/run.js +3 -3
- package/dist-lib/lib/lifecycle/index.js +15 -14
- package/dist-lib/lib/lifecycle/machine.js +2 -2
- 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 +4 -2
- package/dist-lib/lib/machine/completion/actions/completion.js +75 -10
- package/dist-lib/lib/machine/completion/actions/prepare.js +1 -1
- package/dist-lib/lib/machine/completion/actions/tools.js +48 -5
- package/dist-lib/lib/machine/completion/context.js +4 -1
- package/dist-lib/lib/machine/completion/guards/retry.d.ts +1 -0
- package/dist-lib/lib/machine/completion/guards/retry.js +8 -2
- package/dist-lib/lib/machine/completion/implementations.d.ts +10 -4
- package/dist-lib/lib/machine/completion/implementations.js +27 -6
- package/dist-lib/lib/machine/completion/machine.d.ts +21 -3
- package/dist-lib/lib/machine/completion/machine.js +33 -4
- package/dist-lib/lib/machine/completion/rules.d.ts +17 -2
- package/dist-lib/lib/machine/completion/rules.js +49 -3
- package/dist-lib/lib/machine/completion/types.d.ts +36 -0
- package/dist-lib/lib/machine/index.d.ts +27 -4
- package/dist-lib/lib/machine/index.js +6 -1
- 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/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 +5 -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.d.ts +2 -0
- package/dist-lib/lib/models/model-catalog.js +15 -0
- package/dist-lib/lib/models/model-fit.d.ts +1 -1
- package/dist-lib/lib/models/model-fit.js +5 -6
- package/dist-lib/lib/models/model-handle.d.ts +8 -2
- package/dist-lib/lib/models/model-handle.js +14 -3
- package/dist-lib/lib/models/model-list.d.ts +8 -1
- package/dist-lib/lib/models/model-list.js +23 -0
- package/dist-lib/lib/models/model-pool.d.ts +35 -5
- package/dist-lib/lib/models/model-pool.js +121 -43
- package/dist-lib/lib/models/model-source.d.ts +1 -0
- package/dist-lib/lib/models/model-source.js +23 -5
- package/dist-lib/lib/models/sdk-faults.d.ts +1 -0
- package/dist-lib/lib/models/sdk-faults.js +9 -0
- 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/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 +2 -0
- package/dist-lib/lib/office/engine/pptx/presentation.js +55 -17
- package/dist-lib/lib/office/engine/pptx/types.d.ts +1 -0
- package/dist-lib/lib/office/engine/xlsx/workbook.d.ts +1 -0
- package/dist-lib/lib/office/engine/xlsx/workbook.js +34 -3
- package/dist-lib/lib/office/extract.js +4 -3
- package/dist-lib/lib/office/index.js +2 -1
- package/dist-lib/lib/plugins/registry.d.ts +3 -0
- package/dist-lib/lib/plugins/registry.js +16 -7
- package/dist-lib/lib/policy/index.d.ts +10 -0
- package/dist-lib/lib/policy/index.js +229 -0
- package/dist-lib/lib/prompt.d.ts +1 -0
- package/dist-lib/lib/prompt.js +7 -1
- package/dist-lib/lib/residency/completion-runtime.d.ts +1 -0
- package/dist-lib/lib/residency/completion-runtime.js +11 -4
- package/dist-lib/lib/residency/index.d.ts +44 -4
- package/dist-lib/lib/residency/index.js +399 -35
- package/dist-lib/lib/resolution-detector.js +3 -3
- package/dist-lib/lib/rpc-session.js +2 -1
- package/dist-lib/lib/sdk-loader.js +17 -11
- package/dist-lib/lib/serve.js +76 -36
- package/dist-lib/lib/sidecar/index.d.ts +29 -0
- package/dist-lib/lib/sidecar/index.js +174 -0
- package/dist-lib/lib/sidecar/user-plugins.d.ts +8 -0
- package/dist-lib/lib/sidecar/user-plugins.js +117 -0
- package/dist-lib/lib/skills-host/index.d.ts +1 -0
- package/dist-lib/lib/skills-host/index.js +8 -4
- package/dist-lib/lib/spawn.d.ts +3 -4
- package/dist-lib/lib/spawn.js +17 -17
- package/dist-lib/lib/spill.d.ts +1 -0
- package/dist-lib/lib/spill.js +12 -8
- package/dist-lib/lib/tools/attachments/staging.js +8 -8
- package/dist-lib/lib/tools/exec/runner.js +2 -1
- package/dist-lib/lib/tools/exec/scope.d.ts +0 -1
- package/dist-lib/lib/tools/exec/scope.js +23 -114
- package/dist-lib/lib/tools/exec/shell-guidance.js +4 -4
- 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.d.ts +4 -1
- package/dist-lib/lib/tools/exec.js +87 -26
- 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 +114 -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 +14 -3
- 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 +85 -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 +23 -3
- package/dist-lib/lib/tools/fs/remote.d.ts +3 -4
- package/dist-lib/lib/tools/fs/remote.js +23 -13
- package/dist-lib/lib/tools/fs/scope.d.ts +5 -1
- package/dist-lib/lib/tools/fs/scope.js +5 -2
- package/dist-lib/lib/tools/fs/search.d.ts +41 -0
- package/dist-lib/lib/tools/fs/search.js +382 -0
- package/dist-lib/lib/tools/{file-glob.d.ts → fs/targets.d.ts} +1 -5
- 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.js +12 -2
- package/dist-lib/lib/tools/index.js +2 -10
- package/dist-lib/lib/tools/office/ops.js +1 -1
- package/dist-lib/lib/tools/office.js +77 -21
- package/dist-lib/lib/tools/pdf/build.d.ts +5 -1
- package/dist-lib/lib/tools/pdf/build.js +31 -6
- package/dist-lib/lib/tools/pdf.js +17 -2
- package/dist-lib/lib/tools/skill.js +10 -7
- package/dist-lib/lib/tools/skills/bundled-dir.js +4 -4
- package/dist-lib/lib/tools/skills/catalog.d.ts +2 -0
- package/dist-lib/lib/tools/skills/catalog.js +6 -2
- 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 +6 -3
- package/dist-lib/lib/tools/skills/credential-health.js +3 -3
- package/dist-lib/lib/tools/skills/frontmatter-parser.d.ts +2 -0
- package/dist-lib/lib/tools/skills/frontmatter-parser.js +4 -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 +2 -2
- package/dist-lib/lib/tools/skills/mention.js +11 -4
- package/dist-lib/lib/tools/skills/overlay-crud.js +3 -2
- 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.js +10 -4
- package/dist-lib/lib/wire.js +3 -5
- package/dist-lib/plugins/coding/index.d.ts +1 -1
- package/dist-lib/plugins/coding/index.js +2 -4
- package/dist-lib/plugins/coding/session.d.ts +3 -3
- package/dist-lib/plugins/coding/session.js +26 -14
- package/dist-lib/plugins/command-hooks/index.js +5 -3
- package/dist-lib/plugins/egress-proxy/index.d.ts +53 -0
- package/dist-lib/plugins/egress-proxy/index.js +182 -0
- package/dist-lib/plugins/image/edit-image.js +4 -3
- package/dist-lib/plugins/image/generate-image.d.ts +4 -3
- package/dist-lib/plugins/image/generate-image.js +10 -9
- package/dist-lib/plugins/image/index.d.ts +1 -1
- package/dist-lib/plugins/image/index.js +13 -10
- package/dist-lib/plugins/language-hint/index.d.ts +15 -0
- package/dist-lib/plugins/language-hint/index.js +51 -0
- package/dist-lib/plugins/lsp/tool.js +2 -2
- package/dist-lib/plugins/mcp/index.js +6 -3
- package/dist-lib/plugins/music/generate-music.d.ts +4 -2
- package/dist-lib/plugins/music/generate-music.js +7 -4
- package/dist-lib/plugins/music/index.js +12 -9
- package/dist-lib/plugins/obsidian/command.js +2 -2
- package/dist-lib/plugins/obsidian/note-name.js +2 -1
- package/dist-lib/plugins/obsidian/safe-path.js +5 -4
- package/dist-lib/plugins/obsidian/vault-create.js +3 -2
- package/dist-lib/plugins/obsidian/vault-fs.js +2 -2
- package/dist-lib/plugins/obsidian/vault-paths.js +3 -2
- package/dist-lib/plugins/obsidian/vault-read.js +6 -5
- package/dist-lib/plugins/obsidian/vault-write.js +13 -12
- package/dist-lib/plugins/python/guarded-fetch.d.ts +2 -1
- package/dist-lib/plugins/python/guarded-fetch.js +5 -1
- package/dist-lib/plugins/python/interrupt-timer.js +2 -2
- package/dist-lib/plugins/python/loader.js +68 -3
- package/dist-lib/plugins/python/memfs.js +2 -2
- package/dist-lib/plugins/python/pyodide.d.ts +1 -0
- package/dist-lib/plugins/python/pyodide.js +9 -8
- package/dist-lib/plugins/python/python-adapter.js +3 -1
- package/dist-lib/plugins/python/run-session.d.ts +1 -0
- package/dist-lib/plugins/python/run-session.js +19 -8
- package/dist-lib/plugins/python/wheels.js +8 -6
- package/dist-lib/plugins/python/worker/active.js +2 -2
- package/dist-lib/plugins/python/worker/client.js +9 -8
- package/dist-lib/plugins/python/worker/protocol.d.ts +2 -0
- package/dist-lib/plugins/python/worker/serve.js +23 -4
- package/dist-lib/plugins/python/worker/spawn.d.ts +2 -1
- package/dist-lib/plugins/python/worker/spawn.js +2 -1
- 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.js +2 -1
- package/dist-lib/plugins/run-report/flow.d.ts +1 -1
- package/dist-lib/plugins/run-report/flow.js +66 -14
- package/dist-lib/plugins/run-report/index.d.ts +23 -2
- package/dist-lib/plugins/run-report/index.js +27 -12
- package/dist-lib/plugins/run-report/model.d.ts +10 -1
- package/dist-lib/plugins/run-report/model.js +12 -6
- package/dist-lib/plugins/run-report/page.d.ts +9 -0
- package/dist-lib/plugins/run-report/page.js +55 -15
- package/dist-lib/plugins/run-report/script.js +317 -43
- package/dist-lib/plugins/run-report/story.d.ts +2 -1
- package/dist-lib/plugins/run-report/story.js +3 -3
- package/dist-lib/plugins/run-report/style.d.ts +1 -1
- package/dist-lib/plugins/run-report/style.js +126 -0
- package/dist-lib/plugins/run-report/why.js +1 -1
- package/dist-lib/plugins/sandbox-linux/index.d.ts +60 -0
- package/dist-lib/plugins/sandbox-linux/index.js +347 -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 +23 -11
- package/dist-lib/plugins/sandbox-macos/index.js +239 -49
- package/dist-lib/plugins/sandbox-vm/vm-shell.d.ts +4 -2
- package/dist-lib/plugins/sandbox-vm/vm-shell.js +9 -4
- 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/plugins/speech/audio-resample.d.ts +1 -1
- package/dist-lib/plugins/speech/audio-resample.js +7 -8
- package/dist-lib/plugins/speech/audio-transcode-bare.d.ts +1 -1
- package/dist-lib/plugins/speech/audio-transcode-bare.js +23 -26
- package/dist-lib/plugins/speech/audio-transcode-node.d.ts +1 -1
- package/dist-lib/plugins/speech/audio-transcode-node.js +1 -3
- package/dist-lib/plugins/speech/speech-runtime.js +37 -37
- package/dist-lib/plugins/speech/voice.d.ts +5 -1
- package/dist-lib/plugins/speech/voice.js +100 -31
- package/dist-lib/plugins/translation/index.d.ts +1 -0
- package/dist-lib/plugins/translation/index.js +16 -9
- package/dist-lib/plugins/translation/translate.d.ts +7 -3
- package/dist-lib/plugins/translation/translate.js +64 -58
- package/dist-lib/plugins/weather/geocode.js +2 -1
- package/dist-lib/plugins/weather/lookup.js +5 -4
- package/dist-lib/plugins/web-search/engines/bing.js +2 -1
- package/dist-lib/plugins/web-search/engines/google.js +2 -1
- package/dist-lib/plugins/web-search/fetch-html.d.ts +5 -5
- package/dist-lib/plugins/web-search/fetch-html.js +12 -15
- package/dist-lib/plugins/web-search/tool.js +1 -0
- package/dist-lib/schema/harness.js +48 -7
- package/dist-lib/spec/bind.js +9 -0
- package/dist-lib/spec/calls.js +3 -0
- package/dist-lib/spec/hrpc/hrpc.json +42 -3
- package/dist-lib/spec/hrpc/index.js +44 -8
- package/dist-lib/spec/hrpc/messages.js +297 -202
- package/dist-lib/spec/hyperschema/index.js +297 -202
- package/dist-lib/spec/hyperschema/schema.json +155 -84
- package/dist-lib/spec/hyperschema/types.d.ts +23 -3
- package/package.json +98 -26
- package/patches/@qvac%2Finference@0.22.0.patch +59 -0
- package/patches/pyodide@314.0.2.patch +37 -8
- package/scripts/addon-externals.cjs +10 -5
- package/worker/harness-sidecar.mjs +18 -154
- package/bench/README.md +0 -94
- package/bench/bfcl/checker.ts +0 -313
- package/bench/bfcl/data.ts +0 -93
- package/bench/bfcl/observe.ts +0 -93
- package/bench/bfcl/run.ts +0 -213
- package/bench/bfcl/tools.ts +0 -72
- package/bench/bridge/bridge.ts +0 -392
- package/bench/bridge/openai.ts +0 -150
- package/bench/bridge/python/qvac_bench/__init__.py +0 -3
- package/bench/bridge/python/qvac_bench/airline.py +0 -42
- package/bench/bridge/python/qvac_bench/approval.py +0 -26
- package/bench/bridge/python/qvac_bench/bfcl_multi_turn.py +0 -152
- package/bench/bridge/python/qvac_bench/client.py +0 -88
- package/bench/bridge/python/qvac_bench/harbor_agent.py +0 -85
- package/bench/bridge/python/qvac_bench/session.py +0 -107
- package/bench/bridge/python/qvac_bench/speed.py +0 -30
- package/bench/bridge/python/qvac_bench/tau2_agent.py +0 -106
- package/bench/bridge/python/qvac_bench/tools.py +0 -11
- package/bench/bridge/python/run_bfcl_multi_turn.py +0 -95
- package/bench/bridge/python/run_tau2.py +0 -150
- package/bench/bridge/python/smoke.py +0 -47
- package/bench/bridge/python/test_airline.py +0 -28
- package/bench/bridge/python/test_approval.py +0 -57
- package/bench/bridge/python/test_bfcl_multi_turn.py +0 -185
- package/bench/bridge/python/test_harbor_agent.py +0 -107
- package/bench/bridge/serve.ts +0 -52
- package/bench/bridge/transcript.ts +0 -52
- package/bench/bun-tsconfig.json +0 -15
- package/bench/cpu-main.mjs +0 -216
- package/bench/cpu.ts +0 -457
- package/bench/evidence/2026-09-28-review15.md +0 -225
- package/bench/evidence/redact-bun1.3.14.json +0 -92
- package/bench/evidence/redact-node24.11.json +0 -92
- package/bench/graph-metrics.ts +0 -43
- package/bench/harness.ts +0 -73
- package/bench/issue129-matrix.mjs +0 -722
- package/bench/redact-adversarial.ts +0 -256
- package/bench/repeat-cpu.mjs +0 -281
- package/bench/report.ts +0 -1075
- package/bench/skill-eval/harness.ts +0 -30
- package/bench/skill-eval/laws.ts +0 -37
- package/bench/skill-eval/mermaid/client.ts +0 -132
- package/bench/skill-eval/mermaid/validate.mjs +0 -115
- package/bench/skill-eval/pack.ts +0 -61
- package/bench/skill-eval/packs/diagrams/cases.ts +0 -281
- package/bench/skill-eval/packs/diagrams/index.ts +0 -50
- package/bench/skill-eval/packs/diagrams/score.ts +0 -74
- package/bench/skill-eval/packs/index.ts +0 -5
- package/bench/skill-eval/packs/weather/cases.ts +0 -279
- package/bench/skill-eval/packs/weather/fixtures/wttr.json +0 -566
- package/bench/skill-eval/packs/weather/fixtures.ts +0 -84
- package/bench/skill-eval/packs/weather/index.ts +0 -55
- package/bench/skill-eval/packs/weather/score.ts +0 -92
- package/bench/skill-eval/report.ts +0 -194
- package/bench/skill-eval/run.ts +0 -316
- package/bench/speed.ts +0 -80
- 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/shell-argv.d.ts +0 -2
- package/dist-lib/lib/tools/exec/shell-argv.js +0 -61
- package/dist-lib/lib/tools/file-glob.js +0 -118
- package/dist-lib/lib/tools/grep.d.ts +0 -5
- package/dist-lib/lib/tools/grep.js +0 -184
- package/dist-lib/lib/tools/read-files.d.ts +0 -5
- package/dist-lib/lib/tools/read-files.js +0 -160
- package/dist-lib/plugins/coding/write-file.d.ts +0 -3
- package/dist-lib/plugins/coding/write-file.js +0 -52
- package/patches/@qvac%2Finference@0.21.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
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { replyFailures } from '../../laws.ts'
|
|
2
|
-
import { openMermaidOracle } from '../../mermaid/client.ts'
|
|
3
|
-
import type { PackWorld, SkillPack } from '../../pack.ts'
|
|
4
|
-
import { CASES, LEAKED_TOOL, SKILL, TICKET_CASE, type Expect } from './cases.ts'
|
|
5
|
-
import { mermaidBlocks, structureFailures } from './score.ts'
|
|
6
|
-
|
|
7
|
-
// the skill grants no tools, so the only tool surface is the `skill` loader QVAC-24436 gets wrong
|
|
8
|
-
function world(): PackWorld<Expect> {
|
|
9
|
-
const oracle = openMermaidOracle()
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
tools: [],
|
|
13
|
-
reset() {},
|
|
14
|
-
async judge(evalCase, observed) {
|
|
15
|
-
const blocks = mermaidBlocks(observed.reply)
|
|
16
|
-
const verdicts = await Promise.all(blocks.map((block) => oracle.parse(block)))
|
|
17
|
-
const syntax = verdicts
|
|
18
|
-
.filter((verdict) => !verdict.ok)
|
|
19
|
-
.map((verdict) => `syntax: ${verdict.message}`)
|
|
20
|
-
|
|
21
|
-
const renders = blocks.length === 0 ? null : verdicts.every((verdict) => verdict.ok)
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
failures: [
|
|
25
|
-
...structureFailures(evalCase.expect, blocks),
|
|
26
|
-
...syntax,
|
|
27
|
-
...replyFailures(observed.reply, evalCase.expect.reply)
|
|
28
|
-
],
|
|
29
|
-
// nothing here is answered from a fixture, so a run can never be an eval defect
|
|
30
|
-
gap: false,
|
|
31
|
-
renders,
|
|
32
|
-
// what the user saw: a drawable diagram, or none when none was wanted, with no tool framing
|
|
33
|
-
outcome:
|
|
34
|
-
(evalCase.expect.type === '' ? blocks.length === 0 : renders === true) &&
|
|
35
|
-
!LEAKED_TOOL.test(observed.reply)
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
save() {},
|
|
39
|
-
close() {
|
|
40
|
-
oracle.close()
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const diagrams: SkillPack<Expect> = {
|
|
46
|
-
skill: SKILL,
|
|
47
|
-
focus: TICKET_CASE,
|
|
48
|
-
cases: CASES,
|
|
49
|
-
world
|
|
50
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { ToolCall } from '../../pack.ts'
|
|
2
|
-
import type { Expect } from './cases.ts'
|
|
3
|
-
|
|
4
|
-
// matches the renderers' case-sensitive language check, the same rule lib/diagram-repair.ts uses
|
|
5
|
-
const FENCE = /^[ \t]{0,3}(`{3,}|~{3,})[ \t]*mermaid[ \t]*\r?\n([\s\S]*?)^[ \t]{0,3}\1[ \t]*$/gm
|
|
6
|
-
|
|
7
|
-
// a label never spans lines: without \n here the scan runs on through the next transition
|
|
8
|
-
const LABEL = /[[({]"?([^"\]})\n]{1,200})"?[\])}]/g
|
|
9
|
-
const NODE_ID = /^\s*([A-Za-z]\w*)\s*[[({]/gm
|
|
10
|
-
|
|
11
|
-
export const LABEL_LIMIT = 40
|
|
12
|
-
|
|
13
|
-
export function mermaidBlocks(reply: string): string[] {
|
|
14
|
-
FENCE.lastIndex = 0
|
|
15
|
-
return [...reply.matchAll(FENCE)].map((match) => match[2] ?? '').filter((body) => body.trim())
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function diagramType(block: string): string {
|
|
19
|
-
const first = block.trim().split(/\r?\n/)[0]?.trim() ?? ''
|
|
20
|
-
// `flowchart TD` and `stateDiagram-v2` both key on the first word
|
|
21
|
-
return first.split(/\s+/)[0] ?? ''
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// mermaid accepts a reused id (the later label wins), so the oracle never sees it
|
|
25
|
-
export function duplicateIds(block: string): string[] {
|
|
26
|
-
NODE_ID.lastIndex = 0
|
|
27
|
-
const seen = new Set<string>()
|
|
28
|
-
const twice = new Set<string>()
|
|
29
|
-
for (const match of block.matchAll(NODE_ID)) {
|
|
30
|
-
const id = match[1]
|
|
31
|
-
if (seen.has(id)) {
|
|
32
|
-
twice.add(id)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
seen.add(id)
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return [...twice]
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function longLabels(block: string): string[] {
|
|
42
|
-
LABEL.lastIndex = 0
|
|
43
|
-
return [...block.matchAll(LABEL)]
|
|
44
|
-
.map((match) => match[1].trim())
|
|
45
|
-
.filter((label) => label.length > LABEL_LIMIT)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function structureFailures(expect: Expect, blocks: string[]): string[] {
|
|
49
|
-
const failures: string[] = []
|
|
50
|
-
const [low, high] = Array.isArray(expect.blocks) ? expect.blocks : [expect.blocks, expect.blocks]
|
|
51
|
-
if (blocks.length < low || blocks.length > high) {
|
|
52
|
-
failures.push(`blocks: ${blocks.length} not ${low === high ? low : `${low}-${high}`}`)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
for (const block of blocks) {
|
|
56
|
-
const type = diagramType(block)
|
|
57
|
-
if (expect.type && type !== expect.type) {
|
|
58
|
-
failures.push(`type: ${type || 'none'} not ${expect.type}`)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// a class member like `speak()` reads as a node id, and one per class is not a duplicate
|
|
62
|
-
if (type === 'flowchart') {
|
|
63
|
-
for (const id of duplicateIds(block)) {
|
|
64
|
-
failures.push(`duplicate id: ${id}`)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
for (const label of longLabels(block)) {
|
|
69
|
-
failures.push(`label over ${LABEL_LIMIT}: ${label.slice(0, 50)}`)
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return failures
|
|
74
|
-
}
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { skillLoadedTurn } from '../../../../lib/capabilities/tool-turns.ts'
|
|
2
|
-
import type { ReplyLaws } from '../../laws.ts'
|
|
3
|
-
import { assistant, user, type EvalCase as Case } from '../../pack.ts'
|
|
4
|
-
import type { Suffix } from './fixtures.ts'
|
|
5
|
-
|
|
6
|
-
export const CATEGORIES = [
|
|
7
|
-
'city-country',
|
|
8
|
-
'ambiguous',
|
|
9
|
-
'unambiguous',
|
|
10
|
-
'unknown',
|
|
11
|
-
'forecast',
|
|
12
|
-
'casual',
|
|
13
|
-
'no-location',
|
|
14
|
-
'follow-up'
|
|
15
|
-
] as const
|
|
16
|
-
|
|
17
|
-
export type Category = (typeof CATEGORIES)[number]
|
|
18
|
-
|
|
19
|
-
export interface Expect {
|
|
20
|
-
// http_request calls only; a skill load is never counted
|
|
21
|
-
readonly calls: number | readonly [number, number]
|
|
22
|
-
// normalised as wttrRequest() does; any listed form passes
|
|
23
|
-
readonly location?: ReadonlyArray<string> | undefined
|
|
24
|
-
readonly suffix?: ReadonlyArray<Suffix> | undefined
|
|
25
|
-
// the reply must state a temperature the fixture served, in °C or converted to °F
|
|
26
|
-
readonly echoes?: boolean | undefined
|
|
27
|
-
readonly reply?: ReplyLaws | undefined
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type EvalCase = Case<Expect>
|
|
31
|
-
|
|
32
|
-
export const SKILL = 'weather'
|
|
33
|
-
export const TICKET_CASE = 'nassau-bahamas'
|
|
34
|
-
|
|
35
|
-
export const TEMPERATURE =
|
|
36
|
-
/[+-]?\d{1,3}(?:\.\d)?\s?(?:°|º|˚|degrees?)(?:\s?(?:c|f|celsius|fahrenheit)\b)?/i
|
|
37
|
-
const QUESTION = /\?/
|
|
38
|
-
const WHICH =
|
|
39
|
-
/\b(?:which|do you mean|did you mean|clarify|specify|more than one|several|multiple)\b/i
|
|
40
|
-
const HEDGE = /\b(?:do you mean|did you mean|which (?:one|city|location|place))\b/i
|
|
41
|
-
const ASK_LOCATION = /\b(?:city|location|place|town|where)\b/i
|
|
42
|
-
const NOT_FOUND =
|
|
43
|
-
/\b(?:not|no|unable|cannot|can't|couldn't|unknown|invalid|unrecogni[sz]ed|failed?|error|500)\b|n't\b/i
|
|
44
|
-
|
|
45
|
-
interface Lookup {
|
|
46
|
-
readonly category: Category
|
|
47
|
-
readonly prompt: string
|
|
48
|
-
readonly location: ReadonlyArray<string>
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const current = (id: string, lookup: Lookup): EvalCase => ({
|
|
52
|
-
id,
|
|
53
|
-
category: lookup.category,
|
|
54
|
-
messages: [user(lookup.prompt)],
|
|
55
|
-
expect: {
|
|
56
|
-
calls: 1,
|
|
57
|
-
location: lookup.location,
|
|
58
|
-
suffix: ['format=3'],
|
|
59
|
-
echoes: true,
|
|
60
|
-
reply: { none: [HEDGE] }
|
|
61
|
-
}
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
interface Ask {
|
|
65
|
-
readonly category: Category
|
|
66
|
-
readonly prompt: string
|
|
67
|
-
readonly names: ReadonlyArray<string>
|
|
68
|
-
readonly asks: RegExp
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const asks = (id: string, ask: Ask): EvalCase => ({
|
|
72
|
-
id,
|
|
73
|
-
category: ask.category,
|
|
74
|
-
messages: [user(ask.prompt)],
|
|
75
|
-
expect: {
|
|
76
|
-
calls: 0,
|
|
77
|
-
reply: { laws: { has: ask.names }, all: [QUESTION, ask.asks], none: [TEMPERATURE] }
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
interface Ambiguous {
|
|
82
|
-
readonly prompt: string
|
|
83
|
-
readonly city: string
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const ambiguous = (id: string, ask: Ambiguous): EvalCase =>
|
|
87
|
-
asks(id, { category: 'ambiguous', prompt: ask.prompt, names: [ask.city], asks: WHICH })
|
|
88
|
-
|
|
89
|
-
interface UnknownPlace {
|
|
90
|
-
readonly prompt: string
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// declining to look up an obviously invented name is as good as asking wttr.in and relaying its miss
|
|
94
|
-
const unknown = (id: string, ask: UnknownPlace): EvalCase => ({
|
|
95
|
-
id,
|
|
96
|
-
category: 'unknown',
|
|
97
|
-
messages: [user(ask.prompt)],
|
|
98
|
-
expect: { calls: [0, 2], suffix: ['format=3'], reply: { all: [NOT_FOUND], none: [TEMPERATURE] } }
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
interface Forecast {
|
|
102
|
-
readonly prompt: string
|
|
103
|
-
readonly location: ReadonlyArray<string>
|
|
104
|
-
readonly suffix: ReadonlyArray<Suffix>
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const forecast = (id: string, ask: Forecast): EvalCase => ({
|
|
108
|
-
id,
|
|
109
|
-
category: 'forecast',
|
|
110
|
-
messages: [user(ask.prompt)],
|
|
111
|
-
expect: { calls: 1, location: ask.location, suffix: ask.suffix, reply: { none: [HEDGE] } }
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
export const CASES: ReadonlyArray<EvalCase> = [
|
|
115
|
-
current(TICKET_CASE, {
|
|
116
|
-
category: 'city-country',
|
|
117
|
-
prompt: 'Whats the weather like in Nassau, Bahamas?',
|
|
118
|
-
location: ['nassau bahamas', 'nassau the bahamas']
|
|
119
|
-
}),
|
|
120
|
-
current('paris-texas', {
|
|
121
|
-
category: 'city-country',
|
|
122
|
-
prompt: 'weather in Paris, Texas',
|
|
123
|
-
location: ['paris texas', 'paris tx']
|
|
124
|
-
}),
|
|
125
|
-
current('cambridge-uk', {
|
|
126
|
-
category: 'city-country',
|
|
127
|
-
prompt: 'is it raining in Cambridge, UK right now',
|
|
128
|
-
location: ['cambridge uk', 'cambridge united kingdom', 'cambridge england']
|
|
129
|
-
}),
|
|
130
|
-
current('san-jose-cr', {
|
|
131
|
-
category: 'city-country',
|
|
132
|
-
prompt: 'temperature in San Jose, Costa Rica',
|
|
133
|
-
location: ['san jose costa rica']
|
|
134
|
-
}),
|
|
135
|
-
current('portland-oregon', {
|
|
136
|
-
category: 'city-country',
|
|
137
|
-
prompt: 'Portland, Oregon weather please',
|
|
138
|
-
location: ['portland oregon', 'portland or']
|
|
139
|
-
}),
|
|
140
|
-
current('georgia-country', {
|
|
141
|
-
category: 'city-country',
|
|
142
|
-
prompt: 'How hot is it in Georgia, the country?',
|
|
143
|
-
location: ['tbilisi', 'tbilisi georgia']
|
|
144
|
-
}),
|
|
145
|
-
|
|
146
|
-
ambiguous('nassau-bare', { prompt: "what's the weather in Nassau", city: 'nassau' }),
|
|
147
|
-
ambiguous('springfield', { prompt: 'Springfield weather', city: 'springfield' }),
|
|
148
|
-
ambiguous('georgia', { prompt: "how's the weather in Georgia today", city: 'georgia' }),
|
|
149
|
-
ambiguous('portland', { prompt: 'Portland weather forecast for tomorrow', city: 'portland' }),
|
|
150
|
-
ambiguous('cambridge', { prompt: 'weather in Cambridge', city: 'cambridge' }),
|
|
151
|
-
|
|
152
|
-
current('london', {
|
|
153
|
-
category: 'unambiguous',
|
|
154
|
-
prompt: 'weather in London',
|
|
155
|
-
location: ['london', 'london uk', 'london united kingdom', 'london england']
|
|
156
|
-
}),
|
|
157
|
-
current('tokyo', {
|
|
158
|
-
category: 'unambiguous',
|
|
159
|
-
prompt: 'tokyo weather rn',
|
|
160
|
-
location: ['tokyo', 'tokyo japan']
|
|
161
|
-
}),
|
|
162
|
-
current('berlin', {
|
|
163
|
-
category: 'unambiguous',
|
|
164
|
-
prompt: 'is it cold in Berlin?',
|
|
165
|
-
location: ['berlin', 'berlin germany']
|
|
166
|
-
}),
|
|
167
|
-
current('reykjavik', {
|
|
168
|
-
category: 'unambiguous',
|
|
169
|
-
prompt: "how's the weather in Reykjavik",
|
|
170
|
-
location: ['reykjavik', 'reykjavik iceland']
|
|
171
|
-
}),
|
|
172
|
-
current('cairo', {
|
|
173
|
-
category: 'unambiguous',
|
|
174
|
-
prompt: 'hows the weather in Cairo',
|
|
175
|
-
location: ['cairo', 'cairo egypt']
|
|
176
|
-
}),
|
|
177
|
-
current('paris', {
|
|
178
|
-
category: 'unambiguous',
|
|
179
|
-
prompt: 'weather in Paris',
|
|
180
|
-
location: ['paris', 'paris france']
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
unknown('xyzzyqwerty', { prompt: 'weather in Xyzzyqwerty' }),
|
|
184
|
-
unknown('zzyzxville', { prompt: "what's the weather like in Zzyzxville" }),
|
|
185
|
-
unknown('qxzvtown', { prompt: 'how is the weather in Qxzvtown' }),
|
|
186
|
-
unknown('vrblxstan', { prompt: 'Vrblxstan weather today' }),
|
|
187
|
-
|
|
188
|
-
forecast('lisbon-weekend', {
|
|
189
|
-
prompt: 'will it rain in Lisbon, Portugal this weekend',
|
|
190
|
-
location: ['lisbon portugal'],
|
|
191
|
-
suffix: ['2T', 'T']
|
|
192
|
-
}),
|
|
193
|
-
forecast('rome-tomorrow', {
|
|
194
|
-
prompt: "what's the weather in Rome tomorrow?",
|
|
195
|
-
location: ['rome', 'rome italy'],
|
|
196
|
-
suffix: ['2T', 'T']
|
|
197
|
-
}),
|
|
198
|
-
forecast('oslo-today', {
|
|
199
|
-
prompt: "what's today's weather forecast for Oslo?",
|
|
200
|
-
location: ['oslo', 'oslo norway'],
|
|
201
|
-
suffix: ['1T', 'format=3']
|
|
202
|
-
}),
|
|
203
|
-
forecast('madrid-3-days', {
|
|
204
|
-
prompt: 'Madrid weather for the next 3 days',
|
|
205
|
-
location: ['madrid', 'madrid spain'],
|
|
206
|
-
suffix: ['2T', 'T']
|
|
207
|
-
}),
|
|
208
|
-
{
|
|
209
|
-
id: 'madrid-7-days',
|
|
210
|
-
category: 'forecast',
|
|
211
|
-
messages: [user('Madrid weather for the next 7 days')],
|
|
212
|
-
expect: {
|
|
213
|
-
calls: [0, 1],
|
|
214
|
-
location: ['madrid', 'madrid spain'],
|
|
215
|
-
suffix: ['2T', 'T'],
|
|
216
|
-
reply: { all: [/\b3\b|three/i] }
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
current('nyc', {
|
|
221
|
-
category: 'casual',
|
|
222
|
-
prompt: 'yo whats the weather like in nyc',
|
|
223
|
-
location: [
|
|
224
|
-
'nyc',
|
|
225
|
-
'new york',
|
|
226
|
-
'new york city',
|
|
227
|
-
'new york ny',
|
|
228
|
-
'new york usa',
|
|
229
|
-
'nyc usa',
|
|
230
|
-
'new york city usa'
|
|
231
|
-
]
|
|
232
|
-
}),
|
|
233
|
-
current('sao-paulo', {
|
|
234
|
-
category: 'casual',
|
|
235
|
-
prompt: 'temp in São Paulo?',
|
|
236
|
-
location: ['sao paulo', 'sao paulo brazil']
|
|
237
|
-
}),
|
|
238
|
-
current('rio', {
|
|
239
|
-
category: 'casual',
|
|
240
|
-
prompt: 'weather Rio de Janeiro, Brazil',
|
|
241
|
-
location: ['rio de janeiro brazil']
|
|
242
|
-
}),
|
|
243
|
-
current('zurich', {
|
|
244
|
-
category: 'casual',
|
|
245
|
-
prompt: 'Wetter in Zürich, Schweiz?',
|
|
246
|
-
location: ['zurich schweiz', 'zurich switzerland']
|
|
247
|
-
}),
|
|
248
|
-
|
|
249
|
-
asks('no-location', {
|
|
250
|
-
category: 'no-location',
|
|
251
|
-
prompt: "what's the weather like?",
|
|
252
|
-
names: [],
|
|
253
|
-
asks: ASK_LOCATION
|
|
254
|
-
}),
|
|
255
|
-
asks('rain-later', {
|
|
256
|
-
category: 'no-location',
|
|
257
|
-
prompt: 'is it going to rain later?',
|
|
258
|
-
names: [],
|
|
259
|
-
asks: ASK_LOCATION
|
|
260
|
-
}),
|
|
261
|
-
|
|
262
|
-
// the host replays an earlier load as a name-only stub, so the model must reload before calling
|
|
263
|
-
{
|
|
264
|
-
id: 'nassau-follow-up',
|
|
265
|
-
category: 'follow-up',
|
|
266
|
-
messages: [
|
|
267
|
-
user('weather in Nassau?'),
|
|
268
|
-
{ role: 'tool', content: skillLoadedTurn(SKILL) },
|
|
269
|
-
assistant('Which Nassau do you mean: the one in the Bahamas, or Nassau County in New York?'),
|
|
270
|
-
user('the one in the Bahamas')
|
|
271
|
-
],
|
|
272
|
-
expect: {
|
|
273
|
-
calls: 1,
|
|
274
|
-
location: ['nassau bahamas', 'nassau the bahamas'],
|
|
275
|
-
suffix: ['format=3'],
|
|
276
|
-
echoes: true
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
]
|