pi-soly 2.5.4 → 2.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-soly",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Workflow + project management for pi-coding-agent. Plans, state, MANDATORY rules, self-review, multi-question picker. One npm install, zero config. LLM drives the workflow inline via the soly_workflow tool — no external subagent plugin.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/visual/footer.ts CHANGED
@@ -74,7 +74,22 @@ export function buildFooterLine(data: ChromeData, fd: FooterData, width: number,
74
74
  if (data.quotaPercent !== null) {
75
75
  const quotaText = ascii ? `${data.quotaPercent}%` : `⬢ ${data.quotaPercent}%`;
76
76
  const label = data.quotaResetsLabel ? `${quotaText} · ${data.quotaResetsLabel}` : quotaText;
77
- left.push({ id: "quota", text: styler.fg("muted", label), priority: 6 });
77
+ left.push({ id: "quota", text: styler.fg("muted", label), priority: 8 });
78
+ // TEMP DEBUG
79
+ try {
80
+ const fs = require("node:fs");
81
+ const os = require("node:os");
82
+ const p = require("node:path");
83
+ fs.appendFileSync(p.join(os.tmpdir(), "pi-soly-quota-debug.log"), `[${new Date().toISOString()}] [footer] render: pushed quota segment pct=${data.quotaPercent}\n`);
84
+ } catch {}
85
+ } else {
86
+ // TEMP DEBUG
87
+ try {
88
+ const fs = require("node:fs");
89
+ const os = require("node:os");
90
+ const p = require("node:path");
91
+ fs.appendFileSync(p.join(os.tmpdir(), "pi-soly-quota-debug.log"), `[${new Date().toISOString()}] [footer] render: quotaPercent=null (segment skipped)\n`);
92
+ } catch {}
78
93
  }
79
94
 
80
95
  if (data.rulesActive > 0) {
@@ -79,9 +79,21 @@ function dropToFit(left: Segment[], right: Segment[], width: number, sep: string
79
79
  break;
80
80
  }
81
81
  }
82
+ const keptIds = [...l.map((s) => `${s.id}:${s.priority}`), ...r.map((s) => `${s.id}:${s.priority}`)].join(",");
83
+ dbgDrop(`width=${width} kept=[${keptIds}]`);
82
84
  return { left: l, right: r };
83
85
  }
84
86
 
87
+ // TEMP DEBUG — trace which segments survive dropToFit
88
+ function dbgDrop(msg: string): void {
89
+ try {
90
+ const fs = require("node:fs");
91
+ const os = require("node:os");
92
+ const p = require("node:path");
93
+ fs.appendFileSync(p.join(os.tmpdir(), "pi-soly-quota-debug.log"), `[${new Date().toISOString()}] [dropToFit] ${msg}\n`);
94
+ } catch {}
95
+ }
96
+
85
97
  /**
86
98
  * Compose a single full-width bar line. Drops by priority to fit, joins each
87
99
  * side with `sep`, and fills the middle gap with a styled rule. When the two