@mrclrchtr/supi-extras 7.1.1 → 7.2.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
CHANGED
|
@@ -57,10 +57,6 @@ If the stash file cannot be read or written, the feature degrades to in-memory u
|
|
|
57
57
|
|
|
58
58
|
## Passive behavior
|
|
59
59
|
|
|
60
|
-
### User path references
|
|
61
|
-
|
|
62
|
-
Treat `@<path>` in a user message as the path `<path>`: relative paths use PI's current working directory; absolute paths stay absolute. This fixes [pi#6487](https://github.com/earendil-works/pi/issues/6487).
|
|
63
|
-
|
|
64
60
|
### Tab-title spinner
|
|
65
61
|
|
|
66
62
|
While the agent is working, the package animates a spinner in the terminal tab title. When the turn finishes, it shows a done marker. If `ask_user` is active, the spinner pauses so the waiting-for-input title is not overwritten.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-extras",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Shortcuts, prompt stash, activity indicators, and small session helpers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"clipboardy": "^5.3.1",
|
|
36
|
-
"@mrclrchtr/supi-core": "7.
|
|
36
|
+
"@mrclrchtr/supi-core": "7.2.1"
|
|
37
37
|
},
|
|
38
38
|
"bundledDependencies": [
|
|
39
39
|
"@mrclrchtr/supi-core"
|
package/src/index.ts
CHANGED
|
@@ -6,16 +6,7 @@ import promptStash from "./prompt-stash.ts";
|
|
|
6
6
|
import supiFooter from "./supi-footer.ts";
|
|
7
7
|
import tabSpinner from "./tab-spinner.ts";
|
|
8
8
|
|
|
9
|
-
const PATH_RESOLUTION_GUIDANCE =
|
|
10
|
-
"Treat `@<path>` in a user message as the path `<path>`:" +
|
|
11
|
-
" resolve relative paths from the current working directory;" +
|
|
12
|
-
" absolute paths stay absolute.";
|
|
13
|
-
|
|
14
9
|
export default function (pi: Parameters<typeof tabSpinner>[0]) {
|
|
15
|
-
pi.on("before_agent_start", (event) => ({
|
|
16
|
-
systemPrompt: `${event.systemPrompt}\n\n${PATH_RESOLUTION_GUIDANCE}`,
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
10
|
tabSpinner(pi);
|
|
20
11
|
promptStash(pi);
|
|
21
12
|
copyPrompt(pi);
|