Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/pipi/mise.toml

Raw
[tasks.fmt]
description = "Format pipi extension"
depends = ["//:install"]
run = [
  "biome check --write --config-path ../.. .",
  "rumdl fmt --config ../../.rumdl.toml .",
  "taplo format --config ../../.taplo.toml mise.toml",
]

[tasks.lint]
description = "Lint pipi 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 pipi extension"
depends = ["//:install"]
run = [{ task = "//:test", args = ["extensions/pipi"] }]

[tasks.e2e]
description = "Exercise built pipi through isolated real Pi CLI and terminal sessions"
depends = ["//:install", { task = "//:build-ext", args = ["pipi"] }]
run = "node --no-warnings __acceptance__/cli.ts"

[tasks.e2e-live]
description = "Exercise real-model pipi delegation with read-only credentials and isolated sessions"
depends = ["//:install", { task = "//:build-ext", args = ["pipi"] }]
usage = '''
arg "<auth>" help="Absolute auth.json path; read-only, never copied"
arg "[model]" default="openai-codex/gpt-6-luna"
flag "--interactive" help="Open isolated native Pi TUI with same read-only credentials"
flag "--keep" help="Retain safe session evidence in OS temp"
'''
run = '''node --no-warnings __acceptance__/live.ts "{{ usage.auth }}" "{{ usage.model }}"{% if usage.interactive %} --interactive{% endif %}{% if usage.keep %} --keep{% endif %}'''

[tasks.check]
description = "Check pipi extension"
depends = ["//:install"]
run = ["tsc -b tsconfig.json", { task = "//:build", args = ["pipi"] }, { task = "//:build-ext", args = ["pipi"] }]