Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/memory/mise.toml

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

[tasks.verify-package]
description = "Build memory and load the generated package relocated outside the checkout"
depends = ["//:install"]
run = [
  { task = "//:build-ext", args = ["memory"] },
  { task = "//:verify-packages", args = ["memory"] },
]

[tasks.eval-agent-api]
description = "Run bounded manual live agent API evaluation against isolated temporary memory databases"
depends = ["//:install"]
usage = '''
arg "[args]" var=#true help="Required: --model provider/id; optional: --mode native|codemode|both"
'''
run = '''
node __live__/agent-api.ts{% for arg in usage.args %} "{{ arg }}"{% endfor %}
'''

[tasks.live]
description = "Open generated memory extension in real Pi (set PI_MEMORY_DATABASE_PATH to an isolated test database)"
raw = true
depends = ["//:install"]
env = { PI_TELEMETRY = "0" }
usage = 'arg "[args]" var=#true help="Additional Pi CLI options"'
run = '''
pi --no-extensions -e ../../dist/memory --no-skills --no-prompt-templates --no-context-files --no-themes --use-theme dark --no-approve --no-session --tools memory,read,ls,grep --offline{% for arg in usage.args %} "{{ arg }}"{% endfor %}
'''

[tasks.preview]
description = "Preview the memory viewer in real Pi with realistic seeded data; never opens the user database"
raw = true
usage = 'arg "[args]" var=#true help="Additional Pi CLI options"'
run = [
  { task = "//:build-ext", args = ["memory"] },
  'node __live__/viewer.ts{% for arg in usage.args %} "{{ arg }}"{% endfor %}',
]

[tasks.check]
description = "Check memory extension"
depends = ["//:install"]
run = [
  { task = "//:build", args = ["memory"] },
  { task = "//:build-ext", args = ["memory"] },
]