pi-spark 0.6.3 → 0.7.0
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 +10 -4
- package/assets/screenshot.png +0 -0
- package/package.json +1 -1
- package/extensions/trust-all/index.ts +0 -19
package/README.md
CHANGED
|
@@ -13,7 +13,6 @@ A small, opinionated collection of [pi](https://pi.dev/) extensions.
|
|
|
13
13
|
- **Name:** exposes a `name` tool so the agent can give the current session a concise, recognizable name in the session selector.
|
|
14
14
|
- **Presets:** switches named model presets with `/preset`, `--preset`, and quick cycle shortcuts.
|
|
15
15
|
- **Recap:** generates a short idle-session recap and exposes a `/recap` command for manual generation, inspired by [Claude Code's session recap](https://code.claude.com/docs/en/interactive-mode#session-recap).
|
|
16
|
-
- **Trust all:** bypasses pi's project trust dialog, added in 0.79.0, and removes saved trust decisions so startup stays minimal.
|
|
17
16
|
|
|
18
17
|

|
|
19
18
|
|
|
@@ -101,7 +100,14 @@ Use presets in these ways:
|
|
|
101
100
|
- pi-spark can generate a short recap after the session has been idle or when you run `/recap` manually.
|
|
102
101
|
- The `recap.idle` value is in milliseconds and must be at least `5000`. The recap model can be customized with `provider`, `model`, and `thinkingLevel`.
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
## Recommended pi settings
|
|
105
104
|
|
|
106
|
-
- pi-
|
|
107
|
-
|
|
105
|
+
[Pi 0.79.0](https://pi.dev/news/releases/0.79.0) added a project trust dialog that asks before loading project-local resources ([earendil-works/pi#5514](https://github.com/earendil-works/pi/issues/5514)), and [pi 0.79.1](https://pi.dev/news/releases/0.79.1) made the default behavior configurable via `defaultProjectTrust`. To keep startup minimal, set it to `"always"` in `~/.pi/agent/settings.json` (or change it with `/settings`):
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"defaultProjectTrust": "always"
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Project trust is an [input-loading guard](https://pi.dev/docs/latest/security#project-trust), so use `"always"` only if you trust the projects you open.
|
package/assets/screenshot.png
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { rmSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
4
|
-
|
|
5
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Keep the experience minimal after the project trust dialog added in pi 0.79.0.
|
|
9
|
-
*
|
|
10
|
-
* Follow [earendil-works/pi#5514](https://github.com/earendil-works/pi/issues/5514) for discussion.
|
|
11
|
-
* If pi ships a better default experience in the future, this extension may be deleted.
|
|
12
|
-
*/
|
|
13
|
-
export default function (pi: ExtensionAPI) {
|
|
14
|
-
rmSync(join(getAgentDir(), "trust.json"), { force: true });
|
|
15
|
-
|
|
16
|
-
pi.on("project_trust", () => {
|
|
17
|
-
return { trusted: "yes" };
|
|
18
|
-
});
|
|
19
|
-
}
|