@brainervirus/workit-pi 8.26.0 → 8.27.0

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
@@ -3,7 +3,7 @@
3
3
  [![CI](https://github.com/BrainerVirus/workit/actions/workflows/ci.yml/badge.svg)](https://github.com/BrainerVirus/workit/actions/workflows/ci.yml)
4
4
  [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/BrainerVirus/workit/blob/main/LICENSE)
5
5
 
6
- [Workit](https://github.com/BrainerVirus/workit) for Pi (stock 0.85.1): a native extension with the
6
+ [Workit](https://github.com/BrainerVirus/workit) for Pi (stock 1.4.0): a native extension with the
7
7
  seven task families plus read-only `workit_context`, the eleven method
8
8
  skills, session and compaction continuity, and a coordinator that launches
9
9
  fresh reviewer/investigator processes and scoped implementers. Requires
package/dist/workit.js CHANGED
@@ -21641,7 +21641,6 @@ var ALLOWED = new Set(WORKIT_ALLOWED_VERBS);
21641
21641
  var isBypass = (word) => WORKIT_BYPASS_FLAGS.some((flag) => word === flag || word.startsWith(`${flag}=`));
21642
21642
  var isWorkitWord = (word) => /^(?:.*[\\/])?workit(?:-cli)?$/u.test(word);
21643
21643
  var bypassReason = (flag) => `Workit: \`${flag}\` overrides a Workit gate, so the user decides this call (no allow rule covers it).`;
21644
- var EXPANSION_REASON = "Workit: an expansion before `--` could become a bypass flag, so the user decides this call (no allow rule covers it).";
21645
21644
  var workitBypassFlag = (command, dialect = "posix") => {
21646
21645
  for (const segment of segmentsOf(command, dialect)) {
21647
21646
  if (segment.unanalyzable) {
@@ -21659,9 +21658,6 @@ var workitBypassFlag = (command, dialect = "posix") => {
21659
21658
  const flag = (end < 0 ? words : words.slice(0, end)).find(isBypass);
21660
21659
  if (flag)
21661
21660
  return bypassReason(flag.split("=")[0] ?? flag);
21662
- const limit = start + 1 + (end < 0 ? words.length : end);
21663
- if (segment.expands?.some((index) => index > start && index < limit))
21664
- return EXPANSION_REASON;
21665
21661
  }
21666
21662
  return null;
21667
21663
  };
@@ -24366,7 +24362,7 @@ if (false) {}
24366
24362
  var PI_DESCRIPTOR = {
24367
24363
  host: "pi",
24368
24364
  label: "Pi",
24369
- verifiedAgainst: "@earendil-works/pi-coding-agent 0.85.1",
24365
+ verifiedAgainst: "@earendil-works/pi-coding-agent 1.4.0",
24370
24366
  docs: ["https://github.com/earendil-works/pi-coding-agent"],
24371
24367
  transport: "in-process-plugin",
24372
24368
  events: {
@@ -25619,7 +25615,8 @@ function extension(pi) {
25619
25615
  handler: async (args) => {
25620
25616
  const extra = String(args ?? "").trim();
25621
25617
  pi.sendUserMessage(`/skill:${skill}${extra ? ` ${extra}` : ""}`, {
25622
- expandPromptTemplates: true
25618
+ expandPromptTemplates: true,
25619
+ deliverAs: "followUp"
25623
25620
  });
25624
25621
  }
25625
25622
  });
@@ -25635,6 +25632,8 @@ function extension(pi) {
25635
25632
  reconcileLostWorkers(ctx);
25636
25633
  });
25637
25634
  pi.on("before_agent_start", (event, ctx) => {
25635
+ if (event.messageType !== "user")
25636
+ return;
25638
25637
  const nudge = skillPromptNudge(event.prompt, ctx);
25639
25638
  const id = ctx.sessionManager.getSessionId();
25640
25639
  const trusted = ctx.isProjectTrusted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-pi",
3
- "version": "8.26.0",
3
+ "version": "8.27.0",
4
4
  "description": "Workit native extension for Pi — tools, method skills, and session continuity",
5
5
  "keywords": [
6
6
  "agentic-coding",
@@ -31,10 +31,10 @@
31
31
  "build": "bun scripts/build.ts"
32
32
  },
33
33
  "devDependencies": {
34
- "@earendil-works/pi-coding-agent": "0.85.1"
34
+ "@earendil-works/pi-coding-agent": "1.4.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@earendil-works/pi-coding-agent": "^0.85.1"
37
+ "@earendil-works/pi-coding-agent": "^1.4.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=24"