@normful/picadillo 5.0.0 → 5.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,8 +1,17 @@
1
- ## [5.0.0] - 2026-02-17
1
+ ## [5.1.1] - 2026-02-17
2
+
3
+ ### 🐛 Bug Fixes
4
+
5
+ - Update handleBeforeAgentStart to include userPrompt in content
6
+ ## [5.1.0] - 2026-02-17
2
7
 
3
8
  ### 🚀 Features
4
9
 
5
10
  - *(overstory)* Ensure extension runs only in an Overstory git repository
11
+
12
+ ### ⚙️ Miscellaneous Tasks
13
+
14
+ - Release 5.1.0
6
15
  ## [4.0.0] - 2026-02-17
7
16
 
8
17
  ### 🚀 Features
@@ -127,11 +127,14 @@ export async function handleSessionStart(
127
127
  );
128
128
  }
129
129
 
130
- export function handleBeforeAgentStart(mailText: string) {
130
+ export function handleBeforeAgentStart(userPrompt: string, mailText: string) {
131
+ const hasMail = Boolean(mailText);
131
132
  return {
132
133
  message: {
133
134
  customType: OVERSTORY_MESSAGE_TYPE,
134
- content: mailText,
135
+ content: hasMail
136
+ ? `${userPrompt}\n\n---\n\n INCOMING MAIL JUST RECEIVED\n\n${mailText}`
137
+ : "",
135
138
  display: true,
136
139
  },
137
140
  };
@@ -186,7 +189,10 @@ export async function isOverstoryRepo(
186
189
  const gitRoot = gitRootResult.stdout.trim();
187
190
 
188
191
  // Check if .overstory directory exists in the git repo root
189
- const overstoryDirResult = await execFn("ls", ["-d", `${gitRoot}/.overstory`]);
192
+ const overstoryDirResult = await execFn("ls", [
193
+ "-d",
194
+ `${gitRoot}/.overstory`,
195
+ ]);
190
196
  if (overstoryDirResult.code !== 0) {
191
197
  return false; // No .overstory directory
192
198
  }
@@ -205,9 +211,9 @@ export default async function (pi: ExtensionAPI) {
205
211
  await handleSessionStart(pi.exec, pi.sendMessage);
206
212
  });
207
213
 
208
- pi.on("before_agent_start", async (_event, _ctx) => {
214
+ pi.on("before_agent_start", async (event, _ctx) => {
209
215
  const mailText = await overstoryMailCheck(pi.exec);
210
- return handleBeforeAgentStart(mailText);
216
+ return handleBeforeAgentStart(event.prompt, mailText);
211
217
  });
212
218
 
213
219
  pi.on("tool_execution_end", async (event, _ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@normful/picadillo",
3
- "version": "5.0.0",
3
+ "version": "5.1.1",
4
4
  "private": false,
5
5
  "description": "pi agent skills & extensions: run-in-tmux, parrot, mulch, overstory",
6
6
  "keywords": [