@lebronj/pi-suite 0.1.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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +86 -0
  3. package/extensions/pet.ts +1033 -0
  4. package/extensions/prompt-url-widget.ts +158 -0
  5. package/extensions/redraws.ts +24 -0
  6. package/extensions/snake.ts +343 -0
  7. package/extensions/tps.ts +47 -0
  8. package/package.json +69 -0
  9. package/prompts/cl.md +54 -0
  10. package/prompts/is.md +25 -0
  11. package/prompts/pr.md +37 -0
  12. package/prompts/wr.md +35 -0
  13. package/scripts/bootstrap.sh +95 -0
  14. package/skills/add-llm-provider.md +57 -0
  15. package/skills/image-to-editable-ppt-slide/SKILL.md +113 -0
  16. package/skills/image-to-editable-ppt-slide/scripts/generate_spec_template.py +91 -0
  17. package/skills/image-to-editable-ppt-slide/scripts/pptx_rebuilder.py +181 -0
  18. package/skills/leetcode-array/SKILL.md +40 -0
  19. package/skills/leetcode-array/problems/best_time_to_buy_and_sell_stock.py +19 -0
  20. package/skills/leetcode-array/problems/product_of_array_except_self.py +22 -0
  21. package/skills/leetcode-array/problems/two_sum.py +19 -0
  22. package/skills/pi-skill/SKILL.md +154 -0
  23. package/skills/weather.md +49 -0
  24. package/vendor/pi-memory/LICENSE +21 -0
  25. package/vendor/pi-memory/README.md +223 -0
  26. package/vendor/pi-memory/index.ts +2367 -0
  27. package/vendor/pi-memory/package.json +68 -0
  28. package/vendor/pi-memory/scripts/postinstall.cjs +44 -0
  29. package/vendor/pi-memory/src/cli.ts +79 -0
  30. package/vendor/pi-memory/src/curator-core/audit.ts +45 -0
  31. package/vendor/pi-memory/src/curator-core/curate.ts +90 -0
  32. package/vendor/pi-memory/src/curator-core/metadata.ts +55 -0
  33. package/vendor/pi-memory/src/curator-core/patch.ts +24 -0
  34. package/vendor/pi-memory/src/curator-core/policy.ts +77 -0
  35. package/vendor/pi-memory/src/curator-store/file-store.ts +51 -0
  36. package/vendor/pi-memory/src/curator-store/types.ts +21 -0
  37. package/vendor/pi-memory/src/index.ts +35 -0
  38. package/vendor/pi-memory/src/learning/candidates.ts +205 -0
  39. package/vendor/pi-memory/src/learning/memory.ts +144 -0
  40. package/vendor/pi-memory/src/learning/skills.ts +200 -0
  41. package/vendor/pi-memory/src/service-controller.ts +248 -0
  42. package/vendor/pi-memory/test/curate.test.ts +68 -0
  43. package/vendor/pi-memory/test/learning-candidates.test.ts +107 -0
  44. package/vendor/pi-memory/test/memory-promotions.test.ts +44 -0
  45. package/vendor/pi-memory/test/metadata.test.ts +17 -0
  46. package/vendor/pi-memory/test/skill-drafts.test.ts +57 -0
  47. package/vendor/pi-memory/test/transition-handoff.test.ts +86 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JHP
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # @lebronj/pi-suite
2
+
3
+ JHP's Pi extension suite for team coding workflows.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g --ignore-scripts @earendil-works/pi-coding-agent
9
+ pi install npm:@lebronj/pi-suite
10
+ pi install npm:pi-web-access
11
+ pi install npm:pi-mcp-adapter
12
+ pi install npm:pi-subagents
13
+ ```
14
+
15
+ Or use the bootstrap script to install Pi, configure the team OpenAI-compatible endpoint, install this suite, and optionally set up qmd for memory search:
16
+
17
+ ```bash
18
+ bash scripts/bootstrap.sh
19
+ ```
20
+
21
+ ## What Is Included
22
+
23
+ - Local extensions: pet, prompt URL widget, TUI redraw stats, snake, TPS notifications.
24
+ - Prompts: changelog audit, issue analysis, PR review, wrap workflow.
25
+ - Skills: provider checklist, weather, LeetCode array practice, Pi capability reference, image-to-editable-PPT workflow.
26
+ - Vendored package: `@jhp/pi-memory`.
27
+
28
+ Install optional packages separately if needed:
29
+
30
+ ```bash
31
+ pi install npm:pi-web-access
32
+ pi install npm:pi-mcp-adapter
33
+ pi install npm:pi-subagents
34
+ ```
35
+
36
+ Debug-only extensions are intentionally excluded:
37
+
38
+ - `dump-system-prompt.ts`
39
+ - `zz-full-session-log.ts`
40
+ - `agentmemory`
41
+
42
+ ## Team Model Setup
43
+
44
+ The bootstrap script asks for an API key and writes:
45
+
46
+ - Provider: OpenAI-compatible `openai`
47
+ - Base URL: `https://claude-code.club/openai/v1`
48
+ - Default model: `gpt-5.5`
49
+
50
+ The API key is written to `~/.pi/agent/models.json` on the user's machine. Do not publish a shared key in this package.
51
+
52
+ ## Memory Search
53
+
54
+ `@jhp/pi-memory` works without qmd for core memory features:
55
+
56
+ - `memory_write`
57
+ - `memory_read`
58
+ - `memory_edit`
59
+ - `scratchpad`
60
+ - `memory_curate`
61
+
62
+ `memory_search` needs qmd. The bootstrap script installs and initializes qmd when Bun is available. If Bun is missing, install qmd later:
63
+
64
+ ```bash
65
+ bun install -g https://github.com/tobi/qmd
66
+ qmd collection add ~/.pi/agent/memory --name pi-memory
67
+ qmd embed
68
+ ```
69
+
70
+ ## Update
71
+
72
+ ```bash
73
+ pi update
74
+ ```
75
+
76
+ Only update Pi itself:
77
+
78
+ ```bash
79
+ pi update --self
80
+ ```
81
+
82
+ Only update installed Pi packages:
83
+
84
+ ```bash
85
+ pi update --extensions
86
+ ```