repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by admin
extensions/lsp/mise.toml
Raw[tasks.registry-refresh]
description = "Refresh reviewed LSP registry from explicitly pinned Helix data"
depends = ["//:install"]
run = "node scripts/registry.ts"
[tasks.fmt]
description = "Format lsp extension"
depends = ["//:install"]
run = ["biome check --write --config-path ../.. .", "rumdl fmt --config ../../.rumdl.toml .", "taplo format mise.toml"]
[tasks.lint]
description = "Lint lsp 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 lsp extension"
depends = ["//:install"]
run = [{ task = "//:test", args = ["extensions/lsp"] }]
[tasks.check]
description = "Check lsp extension"
depends = ["//:install"]
run = [{ task = "//:build", args = ["lsp"] }, { task = "//:build-ext", args = ["lsp"] }]
[tasks.verify-package]
description = "Build lsp and verify relocated package"
depends = ["//:install"]
run = [{ task = "//:build-ext", args = ["lsp"] }, { task = "//:verify-packages", args = ["lsp"] }]
[tasks.profile-evidence]
description = "Profile bounded LSP evidence workloads; retain raw timings in OS temp"
depends = ["//:install"]
usage = '''
arg "<evidence>" help="Dedicated absolute OS-temp evidence directory"
flag "--entry <entry>" default="__bench__/evidence.ts" help="Benchmark entrypoint; select a retained entrypoint for baseline comparisons"
'''
run = [
'''node --input-type=module -e "import { mkdirSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { isAbsolute, relative, resolve, sep } from 'node:path'; const p = process.argv[1]; const r = relative(tmpdir(), resolve(p)); if (!isAbsolute(p) || !r || r === '..' || r.startsWith('..' + sep) || isAbsolute(r)) throw new Error('Dedicated OS-temp evidence directory required'); mkdirSync(p, { recursive: true });" "{{ usage.evidence }}"''',
'node ../../node_modules/rolldown/bin/cli.mjs "{{ usage.entry }}" --file "{{ usage.evidence }}/evidence.mjs" --platform node --format esm',
'node --expose-gc --cpu-prof --cpu-prof-dir="{{ usage.evidence }}" "{{ usage.evidence }}/evidence.mjs" "{{ usage.evidence }}"',
]
[tasks.live]
description = "Exercise built native Pi lsp tool with installed Go, TypeScript and C++ servers"
depends = ["//:install"]
run = [{ task = "//:build-ext", args = ["lsp"] }, "node --no-warnings __serial__/verify.ts"]