A skill to stop your coding agent from burying the answer. ADHD-friendly output.
feat(pi): declare package resources explicitly
Ayoub G.1c90740becdd
diff --git a/.github/workflows/pi-load-check.yml b/.github/workflows/pi-load-check.ymlindex 6ccf6da..77c0e1e 100644--- a/.github/workflows/pi-load-check.yml+++ b/.github/workflows/pi-load-check.yml@@ -5,6 +5,7 @@ on:paths:- extensions/**- skills/**+ - package.json- scripts/check_pi_extension.py- .github/workflows/pi-load-check.ymlpush:diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..f3da071--- /dev/null+++ b/package.json@@ -0,0 +1,13 @@+{+ "name": "i-have-adhd",+ "version": "0.1.0",+ "description": "Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible.",+ "license": "MIT",+ "homepage": "https://github.com/ayghri/i-have-adhd",+ "private": true,+ "keywords": ["pi-package"],+ "pi": {+ "extensions": ["./extensions/i-have-adhd.ts"],+ "skills": ["./skills"]+ }+}diff --git a/scripts/check_pi_extension.py b/scripts/check_pi_extension.pyindex c217eb2..248d2b0 100644--- a/scripts/check_pi_extension.py+++ b/scripts/check_pi_extension.py@@ -15,6 +15,22 @@ from typing import AnyROOT = Path(__file__).resolve().parents[1]RPC_TIMEOUT_SECONDS = 30+SHARED_MANIFEST_FIELDS = ("name", "version", "description", "license", "homepage")+++def validate_package_manifest() -> None:+ package = json.loads((ROOT / "package.json").read_text(encoding="utf8"))+ kimi = json.loads((ROOT / "kimi.plugin.json").read_text(encoding="utf8"))++ for field in SHARED_MANIFEST_FIELDS:+ assert package.get(field) == kimi.get(field), (+ f"package.json and kimi.plugin.json disagree on {field}"+ )++ assert package.get("pi") == {+ "extensions": ["./extensions/i-have-adhd.ts"],+ "skills": ["./skills"],+ }class RpcClient:@@ -151,6 +167,8 @@ def latest_enabled(entries_response: dict[str, Any]) -> bool:def main() -> None:+ validate_package_manifest()+with tempfile.TemporaryDirectory(prefix="i-have-adhd-pi-") as agent_dir:env = build_isolated_env(agent_dir)subprocess.run(