@diegopetrucci/pi-extensions 0.1.33 → 0.1.34
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
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A collection of [pi](https://github.com/earendil-works/pi-mono) agent extensions I made.
|
|
4
4
|
|
|
5
|
-
**License note:** This root collection package is mixed-licensed: most of it is MIT, while [`extensions/review`](./extensions/review) is Apache-2.0 and includes its own [LICENSE](./extensions/review/LICENSE).
|
|
6
|
-
|
|
7
5
|
- [`agent-workflow-audit`](./extensions/agent-workflow-audit): Adds `/agent-workflow-audit`, which runs an isolated repo workflow audit subagent and returns only the final distilled report to the main session.
|
|
8
6
|
- [`brrr`](./extensions/brrr): Sends brrr push notifications when pi finishes an agent turn and is ready for input, with optional macOS idle gating.
|
|
9
7
|
- [`confirm-destructive`](./extensions/confirm-destructive): Confirms before destructive session actions like clear, switch, and fork.
|
|
@@ -12,7 +10,7 @@ A collection of [pi](https://github.com/earendil-works/pi-mono) agent extensions
|
|
|
12
10
|
- [`dirty-repo-guard`](./extensions/dirty-repo-guard): Prompts before new sessions, session switches, or forks when the current git repo has uncommitted changes.
|
|
13
11
|
- [`gnosis`](./extensions/gnosis): Exposes the `gn` repo-local knowledge base CLI as an agent tool for searching and recording durable project decisions, constraints, and intent.
|
|
14
12
|
- [`inline-bash`](./extensions/inline-bash): Expands `!{command}` snippets in user prompts by running them through bash before the prompt reaches the agent.
|
|
15
|
-
- [`librarian`](./extensions/librarian): Adds a GitHub research scout with a local repo checkout cache enabled by default under the OS user cache directory, toggleable with `/librarian-cache`, with cached repos expiring after
|
|
13
|
+
- [`librarian`](./extensions/librarian): Adds a GitHub research scout with a local repo checkout cache enabled by default under the OS user cache directory, toggleable with `/librarian-cache`, with cached repos expiring after 7 days of non-use.
|
|
16
14
|
- [`minimal-footer`](./extensions/minimal-footer): Replaces pi's built-in footer with a minimal configurable two-line layout: branch/repo on the first line, context/model on the second, optional `DUMB ZONE`, plus OpenAI Codex 5-hour and 7-day usage when available.
|
|
17
15
|
- [`notify`](./extensions/notify): Sends configurable terminal, desktop, bell, and sound notifications when pi finishes and is ready for input.
|
|
18
16
|
- [`openai-fast`](./extensions/openai-fast): Adds `/fast` to enable OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4 and GPT-5.5 by injecting the priority service tier.
|
|
@@ -37,7 +37,7 @@ Then reload pi:
|
|
|
37
37
|
- Uses `gh` for GitHub search/API access
|
|
38
38
|
- Uses cached local checkouts by default
|
|
39
39
|
- Toggle cache behavior for future calls with `/librarian-cache on | off | toggle | status`
|
|
40
|
-
- Cached repos are removed lazily after
|
|
40
|
+
- Cached repos are removed lazily after 7 days without use
|
|
41
41
|
|
|
42
42
|
## Commands
|
|
43
43
|
|
|
@@ -21,7 +21,7 @@ const MAX_TURNS = 10;
|
|
|
21
21
|
const MAX_TOOL_CALLS_TO_KEEP = 80;
|
|
22
22
|
const DEFAULT_BASH_TIMEOUT_SECONDS = 60;
|
|
23
23
|
const MAX_RUN_MS = 10 * 60 * 1000;
|
|
24
|
-
const CACHE_TTL_DAYS =
|
|
24
|
+
const CACHE_TTL_DAYS = 7;
|
|
25
25
|
const CACHE_TTL_MS = CACHE_TTL_DAYS * 24 * 60 * 60 * 1000;
|
|
26
26
|
const CACHE_METADATA_FILE = ".pi-librarian-cache.json";
|
|
27
27
|
const CACHE_MARKER_FILE = ".pi-librarian-cache-used";
|
|
@@ -560,7 +560,7 @@ export default function librarianExtension(pi: ExtensionAPI) {
|
|
|
560
560
|
name: "librarian",
|
|
561
561
|
label: "Librarian",
|
|
562
562
|
description:
|
|
563
|
-
"GitHub research scout for coding and personal-assistant tasks. Use when the answer likely lives in GitHub repos, exact repo/path locations are unknown, or you'd otherwise do exploratory gh search/tree probes plus local rg/read inspection. Librarian uses an optional
|
|
563
|
+
"GitHub research scout for coding and personal-assistant tasks. Use when the answer likely lives in GitHub repos, exact repo/path locations are unknown, or you'd otherwise do exploratory gh search/tree probes plus local rg/read inspection. Librarian uses an optional 7-day local checkout cache by default; toggle it with /librarian-cache.",
|
|
564
564
|
promptSnippet:
|
|
565
565
|
"Research GitHub repositories with evidence-first path and line citations; local checkout cache is enabled by default and user-toggleable with /librarian-cache.",
|
|
566
566
|
promptGuidelines: [
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-librarian",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A pi GitHub research scout with a toggleable local repo checkout cache under the user's OS cache directory.",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package",
|
|
7
|
+
"pi",
|
|
8
|
+
"github",
|
|
9
|
+
"research",
|
|
10
|
+
"subagent",
|
|
11
|
+
"cache"
|
|
12
|
+
],
|
|
6
13
|
"license": "MIT",
|
|
7
14
|
"repository": {
|
|
8
15
|
"type": "git",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "A collection of pi extensions for context management, workflow audits, review-comment triage, notifications, brrr push alerts, safety guards, GitHub research, repo-local knowledge, todos, tool rendering, and model/provider helpers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -53,5 +53,13 @@
|
|
|
53
53
|
"./extensions/triage-comments/index.ts"
|
|
54
54
|
],
|
|
55
55
|
"image": "https://raw.githubusercontent.com/diegopetrucci/pi-extensions/main/assets/oracle-preview.svg"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@earendil-works/pi-ai": "^0.75.5",
|
|
59
|
+
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
60
|
+
"@earendil-works/pi-tui": "^0.75.5",
|
|
61
|
+
"@types/node": "^25.9.1",
|
|
62
|
+
"typebox": "^1.1.38",
|
|
63
|
+
"typescript": "^6.0.3"
|
|
56
64
|
}
|
|
57
65
|
}
|