@stacknyu/pi-check 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # pi-check changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ - Run command helpers asynchronously so native Pi and Pi Web remain responsive; report failed, killed or truncated command results as warnings.
6
+ - Skip invisible status polling in print/JSON mode while retaining native/RPC status support and session-local shutdown behavior.
7
+ - Add isolated command and lifecycle compatibility regressions.
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  - First standalone public npm package, `@stacknyu/pi-check`, maintained in the Stack Pi Plugins monorepo. pi-flow is not installed as a dependency.
package/extension.ts CHANGED
@@ -45,7 +45,7 @@ export default function (pi: ExtensionAPI) {
45
45
  let timer: any;
46
46
  const watchStatus = (ctx: any) => {
47
47
  clearInterval(timer);
48
- if (!ctx?.hasUI && !ctx?.ui) return;
48
+ if (!ctx?.hasUI) return;
49
49
  timer = setInterval(async () => {
50
50
  try {
51
51
  const r = roots(ctx.cwd);
@@ -199,9 +199,8 @@ export default function (pi: ExtensionAPI) {
199
199
  return;
200
200
  }
201
201
  if (cmd === "init" || cmd === "log" || cmd === "projects") {
202
- const { spawnSync } = await import("node:child_process");
203
- const out = spawnSync(process.execPath, [CLI, cmd], { cwd, encoding: "utf8" });
204
- ctx.ui.notify(`${out.stdout}${out.stderr}`.trim() || "(no output)", "info");
202
+ const out = await pi.exec(process.execPath, [CLI, cmd], { cwd });
203
+ ctx.ui.notify(`${out.stdout}${out.stderr}`.trim() || "(no output)", out.code !== 0 || out.killed || out.truncated ? "warning" : "info");
205
204
  return;
206
205
  }
207
206
  ctx.ui.notify("Usage: /check [status] | run [all] | baseline | known [clear|remove <text>] | speculate [all] | cancel | reload | stop | restart | init | projects | log", "warning");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacknyu/pi-check",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "One shared, cached, speculative check runner per repo for every Pi session and worktree: Go, TypeScript/JavaScript and Python tests, type checks and linters run once per file content, pre-run while you edit, and throttled so parallel agents stop fighting for the CPU.",
5
5
  "type": "module",
6
6
  "license": "MIT",