pi-goal-list-loop-audit 0.27.3 → 0.27.4

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.
@@ -3529,10 +3529,21 @@ export default function (pi: ExtensionAPI): void {
3529
3529
  // /loop — the metric loop (draft|start|status|stop)
3530
3530
  // /glla — the settings UI (+ scriptable key=value)
3531
3531
  // v0.22.5: subcommand autocomplete for the /-menu.
3532
+ // v0.27.4: pi's applyCompletion does NOT add a trailing space for argument
3533
+ // completions (it does for the top-level /goal itself). Without a trailing
3534
+ // space the user has to press Space before typing — and if they forget
3535
+ // they end up with `/goal startasdahlasf` (goal.ts:3545 area). Items whose
3536
+ // value ends in `=` (key=value pairs — the user types the value right
3537
+ // after the `=`) get no space; everything else gets a single trailing
3538
+ // space. `label` stays clean for the picker display.
3532
3539
  const completions = (items: Array<[string, string]>) => (prefix: string) =>
3533
3540
  items
3534
3541
  .filter(([value]) => value.startsWith(prefix))
3535
- .map(([value, description]) => ({ value, label: value, description }));
3542
+ .map(([value, description]) => ({
3543
+ value: value.endsWith("=") ? value : value + " ",
3544
+ label: value,
3545
+ description,
3546
+ }));
3536
3547
 
3537
3548
  pi.registerCommand("goal", {
3538
3549
  description: "Set/draft a goal, or /goal status|pause|resume|cancel|tweak <text>|archive|start <objective>. Objectives without a 'Done when:' clause are grilled into a contract first; include the clause or use /goal start to skip the interview and activate instantly.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-goal-list-loop-audit",
3
- "version": "0.27.3",
3
+ "version": "0.27.4",
4
4
  "description": "Goal. Loop. Audit. Done. — a pi-coding-agent extension that supervises long-running work, with isolated auditor on each completion. Beat bamboozling by design: the auditor runs in a fresh session with no extensions, no skills, no editor — only the read tools needed to verify your goal.",
5
5
  "license": "MIT",
6
6
  "author": "dracon",