pi-soly 1.9.0 → 1.9.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/index.ts +10 -10
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -128,6 +128,8 @@ export default function solyExtension(pi: ExtensionAPI) {
|
|
|
128
128
|
// Behavioral nudge state
|
|
129
129
|
let nudgeActiveForTask = false;
|
|
130
130
|
let editedFilesThisTurn = new Set<string>();
|
|
131
|
+
let lastEditedFiles: string[] = [];
|
|
132
|
+
let lastTurnApplicableRules: string[] = [];
|
|
131
133
|
let lastNudgePromptKey = "";
|
|
132
134
|
|
|
133
135
|
// Git context (cached, refreshed on hot reload + before_agent_start)
|
|
@@ -432,6 +434,9 @@ export default function solyExtension(pi: ExtensionAPI) {
|
|
|
432
434
|
nudgeActiveForTask = false;
|
|
433
435
|
lastNudgePromptKey = "";
|
|
434
436
|
sessionStats = { turns: 0, tokensEstimate: 0 };
|
|
437
|
+
editedFilesThisTurn = new Set();
|
|
438
|
+
lastEditedFiles = [];
|
|
439
|
+
lastTurnApplicableRules = [];
|
|
435
440
|
|
|
436
441
|
// Read git context (best-effort, silent on failure)
|
|
437
442
|
gitContext = await readGitContext(ctx.cwd);
|
|
@@ -715,19 +720,14 @@ export default function solyExtension(pi: ExtensionAPI) {
|
|
|
715
720
|
}
|
|
716
721
|
|
|
717
722
|
// Post-work rules check: surface applicable rules for files edited
|
|
718
|
-
// in this turn.
|
|
719
|
-
//
|
|
723
|
+
// in this turn. Tracking is kept silent (no chat notify — user feedback:
|
|
724
|
+
// "spammy") but data is preserved for /why to show last-turn rule context.
|
|
720
725
|
if (editedFilesThisTurn.size > 0) {
|
|
721
|
-
|
|
726
|
+
lastEditedFiles = [...editedFilesThisTurn];
|
|
727
|
+
lastTurnApplicableRules = rulesApplicableToFiles(
|
|
722
728
|
combinedRules(),
|
|
723
|
-
|
|
729
|
+
lastEditedFiles,
|
|
724
730
|
);
|
|
725
|
-
if (applicable.length > 0) {
|
|
726
|
-
ctx.ui.notify(
|
|
727
|
-
`📋 Rules check: edited ${editedFilesThisTurn.size} file(s), ${applicable.length} rule(s) applied:\n • ${applicable.join("\n • ")}`,
|
|
728
|
-
"info",
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
731
|
editedFilesThisTurn = new Set();
|
|
732
732
|
}
|
|
733
733
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-soly",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Project management framework for pi-coding-agent. Workflows, planning, multi-question picker, agent switcher, live task list — one npm install, zero config.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|