pi-note 0.16.0 → 0.16.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.
Files changed (3) hide show
  1. package/README.md +10 -3
  2. package/index.ts +3 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -132,9 +132,16 @@ Configure `~/.pi/agent/pi-note.json` (or the agent directory set by
132
132
 
133
133
  `taskOfferPolicy` controls the agent's task-offer guidance:
134
134
 
135
- - `always` (default): offer a task when given work with no task selected.
136
- - `github-remote`: first verify with Git that the repository has an HTTPS or SSH
137
- remote hosted on `github.com`; otherwise do not offer. Local paths and other
135
+ With no selected task, suggest a note only when implementation is expected to
136
+ span multiple turns. Skip questions, investigation, recon, and small edits (such
137
+ as changing a few configuration lines). If investigation develops into substantial
138
+ implementation, suggest then. No plan is required: a short title identifies the
139
+ work. Explicit user requests to create a task remain allowed under every policy.
140
+
141
+ - `always` (default): offer for qualifying implementation in any repository.
142
+ - `github-remote`: for qualifying implementation, first verify with Git that the
143
+ repository has an HTTPS or SSH remote hosted on `github.com`; otherwise do not
144
+ offer. Local paths and other
138
145
  hosts do not qualify. This is agent guidance, not a network or PR-access check.
139
146
  - `never`: do not offer tasks; explicit requests to create one remain allowed.
140
147
 
package/index.ts CHANGED
@@ -14,9 +14,10 @@ import { createPreviewBridge } from "./preview-bridge.ts";
14
14
  import { renderSuggestion, renderSelectedTask } from "./task-suggestion.ts";
15
15
 
16
16
  const handoffGuidance = "Keep agent notes to at most three short bullets total: outcome, blocker, next action, only when relevant. Replace stale notes; omit narration, repeated task text, and routine test logs. Keep a GitHub pull request in the PR field. Read pinote_fields to learn the user's globally configured footer field names and presentation. Populate those fields with meaningful task values when relevant using pinote_update_current; fields without values stay hidden. Footer fields and widths are chosen by the user's pi-note.json config. Set configured fields with Markdown values; links are clickable. When footer.fields is unset, Bar selects labels, one per line. Do not list PR in Bar. Remove a field to hide it. Do not modify config without user approval.";
17
+ const implementationOfferGuidance = "When no pinote task is selected, suggest one only when implementation is expected to span multiple turns. Skip suggestions for questions, investigation, recon, and small edits such as changing a few configuration lines. If investigation develops into substantial implementation, suggest then. No plan is required; use a short title describing the work. Explicit user requests to create one remain allowed.";
17
18
  const offerGuidance = {
18
- always: "When the user gives work and no pinote task is selected, use pinote_propose to show one suggested `[tag] task` in the bottom bar instead of asking in chat. In noninteractive modes, ask before creating it.",
19
- "github-remote": "When the user gives work and no pinote task is selected, first verify with Git that the current repository has a remote whose URL host is github.com (HTTPS or SSH). Only then use pinote_propose to show one suggested `[tag] task` in the bottom bar instead of asking in chat. In noninteractive modes, ask before creating it. Local paths, other hosts, and GitHub-looking URL paths do not qualify. If no GitHub remote is verified, do not offer a task; explicit user requests to create one remain allowed.",
19
+ always: `${implementationOfferGuidance} For eligible work, use pinote_propose to show one suggested \`[tag] task\` in the bottom bar instead of asking in chat. In noninteractive modes, ask before creating it.`,
20
+ "github-remote": `${implementationOfferGuidance} For eligible work, first verify with Git that the current repository has a remote whose URL host is github.com (HTTPS or SSH). Only then use pinote_propose to show one suggested \`[tag] task\` in the bottom bar instead of asking in chat. In noninteractive modes, ask before creating it. Local paths, other hosts, and GitHub-looking URL paths do not qualify. If no GitHub remote is verified, do not offer a task.`,
20
21
  never: "Do not offer to create a pinote task. Create one only when the user explicitly requests it.",
21
22
  };
22
23
  const consentGuidance = "The suggestion bar's plus creates, starts and selects the note; its cross dismisses it. Continue the requested work while the suggestion is pending; do not ask again in chat or create a note yourself. On a chat no, continue without a note; on a chat yes, call pinote_add with select true. Never add or select without consent. If a task is already selected, do not replace it unless the user asks to switch.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-note",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Persistent pinote tasks, Markdown handoffs, and task status for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",