pi-note 0.4.0 → 0.4.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/README.md +6 -3
- package/index.ts +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,8 +55,11 @@ standalone `settings/pi/extensions/pinote.ts` entry if installed; load only one
|
|
|
55
55
|
|
|
56
56
|
## Use
|
|
57
57
|
|
|
58
|
-
`/pi-note` picks a task, starts it, and
|
|
59
|
-
|
|
58
|
+
`/pi-note` picks a task, starts it, and adds a short task-ID prompt to the editor:
|
|
59
|
+
“Read task #121 with pinote_get and work on it. Ask only if blocked. Save progress
|
|
60
|
+
with pinote_update.” The agent fetches current task text and saved handoff fields
|
|
61
|
+
when you submit; they are not copied into the draft. Existing drafts are preserved;
|
|
62
|
+
nothing is submitted automatically.
|
|
60
63
|
With a selected task it offers **Continue**, **Done**, and **Switch task**.
|
|
61
64
|
Type in the task picker to filter by text, ID, tag, or state (all words must match).
|
|
62
65
|
Use ↑/↓ and Enter to select, or Esc to cancel. Rows show **●** for in progress or
|
|
@@ -66,7 +69,7 @@ The footer omits the task ID and state and shows only the first line, truncated
|
|
|
66
69
|
The pin glyph is bundled in `icons/note.txt`; it uses the terminal's emoji font, not a Nerd Font or icon theme.
|
|
67
70
|
|
|
68
71
|
Selection is stored per canonical working directory in pinote's database. A new
|
|
69
|
-
Pi session shows that selection; use **Continue** to
|
|
72
|
+
Pi session shows that selection; use **Continue** to insert its task-ID prompt.
|
|
70
73
|
Completing, removing, or scheduling a task clears its selections. Switching does
|
|
71
74
|
not complete or reset the previous task. Task status refreshes at session start,
|
|
72
75
|
before/after agent activity, and after commands/tools.
|
package/index.ts
CHANGED
|
@@ -261,9 +261,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
261
261
|
const chosen = requiredTask(await run(["agent", "select", String(id), "--cwd", ctx.cwd], undefined, canAct), id);
|
|
262
262
|
if (!canAct()) return;
|
|
263
263
|
const draft = ctx.ui.getEditorText();
|
|
264
|
-
const handoff = `
|
|
265
|
-
"Use pinote_get to read current task data and pinote_update to save agent handoff fields.\n" +
|
|
266
|
-
handoffGuidance + "\n\n" + chosen.markdown;
|
|
264
|
+
const handoff = `Read task #${chosen.id} with pinote_get and work on it. Ask only if blocked. Save progress with pinote_update.`;
|
|
267
265
|
ctx.ui.setEditorText(draft ? `${draft}\n\n${handoff}` : handoff);
|
|
268
266
|
ctx.ui.notify(`Pinote #${chosen.id} is in progress. Task added to input.`, "info");
|
|
269
267
|
} catch (error) {
|