[tasks.fmt] description = "Format clipboard extension" depends = ["//:install"] run = ["biome check --write .", "rumdl fmt .", "taplo format mise.toml"] [tasks.lint] description = "Lint clipboard extension" depends = ["//:install"] run = [ "biome ci --config-path ../.. .", "rumdl check --config ../../.rumdl.toml .", "taplo format --check --config ../../.taplo.toml mise.toml", ] [tasks.test] description = "Test clipboard extension" depends = ["//:install"] run = [{ task = "//:test", args = ["extensions/clipboard"] }] [tasks.check] description = "Check clipboard extension" depends = ["//:install"] run = [ { task = "//:build", args = ["clipboard"] }, { task = "//:build-ext", args = ["clipboard"] }, ] [tasks.context] description = "Measure clipboard context overhead with a scripted provider (no live calls)" depends = ["//:install"] run = "node --no-warnings __bench__/context.ts" [tasks.live] description = "LIVE Linux Pi TUI verification with GLM-5.3 and an isolated clipboard (uses configured provider credentials)" depends = ["//extensions/clipboard:check"] raw = true env = { PI_CLIPBOARD_DEBUG = "0", PI_OFFLINE = "1" } usage = ''' arg "" help="Absolute OS-temp directory for test session evidence" arg "[model]" default="zai/glm-5.3" ''' run = [ '''node --input-type=module -e " import { existsSync, realpathSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { dirname, isAbsolute, relative, resolve, sep } from 'node:path'; const target = process.argv[1]; const inside = (root, path) => { const rel = relative(root, path); return rel !== '..' && !rel.startsWith('..' + sep) && !isAbsolute(rel); }; if (process.platform !== 'linux' || !isAbsolute(target) || resolve(target) === resolve(tmpdir()) || !inside(resolve(tmpdir()), resolve(target))) throw new Error('Live verification requires Linux and a dedicated absolute OS-temp session directory.'); let ancestor = resolve(target); while (!existsSync(ancestor)) ancestor = dirname(ancestor); if (!inside(realpathSync(tmpdir()), realpathSync(ancestor))) throw new Error('Session directory resolves outside OS temp.'); " "{{ usage.sessions }}"''', 'pi --offline --no-context-files --no-extensions --no-mcp --no-skills --no-prompt-templates --no-themes -e builtin:codemode -e ../../dist/clipboard -e demo/fixture.ts --tools +codemode --exclude-tools read,bash,powershell,edit,write,grep,find,ls --model "{{ usage.model }}" --thinking low --session-dir "{{ usage.sessions }}"', ] [tasks.demo-check] description = "Verify fixture-load failure stops clipboard execution, then exercise the isolated round trip" tools."aqua:neovim/neovim" = "latest" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["clipboard"] }, "node ../../scripts/demo/verify-clipboard.ts", ] [tasks.verify-package] description = "Verify relocated clipboard package" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["clipboard"] }, { task = "//:verify-packages", args = ["clipboard"] }, ]