@mjasnikovs/pi-task 0.38.12 → 0.38.13

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  [![npm](https://img.shields.io/npm/v/@mjasnikovs/pi-task?color=cb3837&logo=npm)](https://www.npmjs.com/package/@mjasnikovs/pi-task)
10
10
  [![license](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](./LICENSE)
11
11
  [![pi extension](https://img.shields.io/badge/pi-extension-7c3aed)](https://www.npmjs.com/package/@earendil-works/pi-coding-agent)
12
- [![tests](https://img.shields.io/badge/tests-3797%20passing-3fb950)](#development)
12
+ [![tests](https://img.shields.io/badge/tests-3771%20passing-3fb950)](#development)
13
13
  [![types](https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white)](./tsconfig.json)
14
14
 
15
15
  </div>
@@ -72,7 +72,7 @@ A whole plan — `/task-auto` splits it into an ordered task list and runs each
72
72
  | `/task-auto <feature>` | Plan a feature into a task list and run each title through `/task` in order (resumable). |
73
73
  | `/task-auto-resume [--unattended]` | Resume the active `/task-auto` run at the next unfinished task. `--unattended` is the boot-hook form: in-flight runs only. |
74
74
  | `/task-auto-cancel` | Stop the `/task-auto` loop after the current task (still resumable). |
75
- | `/task-config` | Toggle pi-task settings in an editor dialog: remote control, compress thinking, auto-commit, verify work, enforce guidelines, project tour, parallel research, research cache, search engine, command timeout, stuck reply retry, yolo mode, debug logs, one `watch:` toggle per live tool, and one `ext:` toggle per installed host extension. |
75
+ | `/task-config` | Toggle pi-task settings in an editor dialog: remote control, auto-commit, verify work, enforce guidelines, project tour, parallel research, research cache, search engine, command timeout, stuck reply retry, yolo mode, debug logs, one `watch:` toggle per live tool, and one `ext:` toggle per installed host extension. |
76
76
  | `/remote` | Show the QR code & URLs for the web view (`/remote stop` to stop). Answer grill questions, start tasks, and watch progress from your phone. |
77
77
 
78
78
  ## The pipeline
@@ -204,7 +204,6 @@ Run `/task-config` to toggle pi-task's behavior in an editor dialog. Settings pe
204
204
  | Setting | Default | What it does |
205
205
  | --- | --- | --- |
206
206
  | **remote control** | on | The remote UI server (QR code, phone access). Turn off to never start it. |
207
- | **compress thinking** | on | After each message, compresses the model's `<think>` blocks down to the decisions/constraints/facts that matter later — keeping long local-model runs from drowning their own context in self-talk. |
208
207
  | **auto-commit** | on | Snapshots the working tree into one git commit per `/task-auto` sub-task (see above). |
209
208
  | **verify work** | on | After each `/task` (and `/task-auto` task) implements — but **before** it's checked off or committed — actually **runs** the spec's own `VERIFY` block in the real workspace. pi-task otherwise only _authors_ a VERIFY block and never executes it, so a task that doesn't build is indistinguishable from one that works. A fresh `read` + `bash` child of the same local model runs the declared check, observes the real output, and reports **PASS/FAIL** (a legitimately no-op VERIFY is a PASS). On FAIL the run doesn't dead-stop: you get a boxed picker — **Autofix** (re-run the implementation turn against the failure, then re-verify; no attempt cap) or **Accept** (override a misjudged artifact) — and dismissing it pauses the run, resumable. A genuine clean pass is also the behavioral signal that lets **enforce guidelines** fix in place (see below). |
210
209
  | **enforce guidelines** | on | After each `/task` (and `/task-auto` task) is committed, re-checks that commit's work against the project's `AGENTS.md` / `CLAUDE.md` (in the working directory). A bare fix-in-place pass trashes working code (A/B-proven), so enforcement is gated on the **verify work** signal. **With** a genuine verify pass: a fresh `read` + `edit` child of the same local model reads the **last commit's** diff and fixes violations in place; its fixes are committed **separately** as an `ENFORCE GUIDELINES` commit, then the verify signal is re-run against the enforced tree — a regression **reverts** the enforce commit and keeps the verified work. **Without** that signal (verify off, no spec, or an accept-override): the pass runs read-only and only **reports** violations, never rewrites logic. Either way a violation it can't clear (or a pass that can't run) only **warns** — the task commit already landed, so the run continues. Skipped when nothing was committed for the task. |
@@ -243,7 +242,7 @@ them checked in.
243
242
 
244
243
  ```sh
245
244
  bun install
246
- bun run test # 3800 tests across 214 files
245
+ bun run test # 3772 tests across 212 files
247
246
  bun run lint # prettier + eslint + tsc --noEmit
248
247
  bun run build # tsc → dist/
249
248
  ```
@@ -1,7 +1,6 @@
1
1
  import { type SearchProvider } from '../workers/search-types.js';
2
2
  export interface PiTaskConfig {
3
3
  remote: boolean;
4
- compressReasoning: boolean;
5
4
  autoCommit: boolean;
6
5
  orientation: boolean;
7
6
  enforceGuidelines: boolean;
@@ -87,7 +87,6 @@ export function sanitizeStreamInactivityMs(value) {
87
87
  */
88
88
  export const DEFAULT_CONFIG = {
89
89
  remote: true,
90
- compressReasoning: true,
91
90
  autoCommit: true,
92
91
  orientation: true,
93
92
  enforceGuidelines: true,
@@ -94,8 +94,6 @@ function booleanItem(id, label, description) {
94
94
  export const ITEMS = [
95
95
  booleanItem('remote', 'remote control', 'Serve the task UI on your local network so you can follow and steer a run from '
96
96
  + 'your phone. Prints a QR code to scan when it starts'),
97
- booleanItem('compressReasoning', 'compress thinking', "Shrink the model's thinking blocks once it has moved on, so a long run keeps more "
98
- + 'room for the work itself'),
99
97
  booleanItem('autoCommit', 'auto-commit', 'Make a git commit before and after every sub-task, so each step is a checkpoint '
100
98
  + 'you can read back or roll back to'),
101
99
  booleanItem('verifyWork', 'verify work', 'When a task says it is done, actually run the checks its spec asks for and report '
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ import { registerTaskAuto } from './task/auto-orchestrator.js';
4
4
  import { registerTaskPlan } from './task/plan-orchestrator.js';
5
5
  import { registerWorkers } from './workers/index.js';
6
6
  import { registerRemote } from './remote/register.js';
7
- import { registerThinkingCompression } from './thinking/compress.js';
8
7
  import { registerCommandWatchdog } from './task/command-watchdog.js';
9
8
  import { registerStreamWatchdog } from './task/stream-watchdog.js';
10
9
  export default function (pi) {
@@ -14,7 +13,6 @@ export default function (pi) {
14
13
  registerTaskPlan(pi);
15
14
  registerWorkers(pi);
16
15
  registerRemote(pi);
17
- registerThinkingCompression(pi);
18
16
  registerCommandWatchdog(pi);
19
17
  registerStreamWatchdog(pi);
20
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjasnikovs/pi-task",
3
- "version": "0.38.12",
3
+ "version": "0.38.13",
4
4
  "description": "Deterministic task planning and spec-orchestration for local models — crash-safe /task pipelines with verify/enforce gates, a real-time remote web view, and web/docs/fetch/worker subagent tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",