pi-skill-shiori 0.6.17 → 0.6.18
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/CHANGELOG.md +6 -0
- package/README.md +4 -4
- package/package.json +1 -1
- package/src/index.ts +3 -3
- package/src/load-skills.ts +5 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ For maintenance priorities and the phased plan, see [`ROADMAP.md`](ROADMAP.md).
|
|
|
19
19
|
|
|
20
20
|
Pi Skill Shiori is a [Pi](https://pi.dev/) package for vaults or projects with many Agent Skills where the default catalog becomes noisy and expensive. It hides the normal skill catalog when safe, recommends triggerable skills with compact summaries, and loads full `SKILL.md` bodies on demand.
|
|
21
21
|
|
|
22
|
-
`0.6.
|
|
22
|
+
`0.6.18` is the current working release. Prompt-boundary suppression is intentionally conservative: if Shiori cannot safely recognize a catalog boundary, it leaves the prompt untouched and warns instead of deleting too much.
|
|
23
23
|
|
|
24
24
|
## Features
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ Pi Skill Shiori is a [Pi](https://pi.dev/) package for vaults or projects with m
|
|
|
38
38
|
### Global install from npm
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pi install npm:pi-skill-shiori@0.6.
|
|
41
|
+
pi install npm:pi-skill-shiori@0.6.18
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Without a version pin:
|
|
@@ -50,7 +50,7 @@ pi install npm:pi-skill-shiori
|
|
|
50
50
|
### Project-local install from npm
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
pi install -l npm:pi-skill-shiori@0.6.
|
|
53
|
+
pi install -l npm:pi-skill-shiori@0.6.18
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
Without a version pin:
|
|
@@ -62,7 +62,7 @@ pi install -l npm:pi-skill-shiori
|
|
|
62
62
|
### Install from GitHub
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
pi install git:github.com/eiei114/pi-skill-shiori@v0.6.
|
|
65
|
+
pi install git:github.com/eiei114/pi-skill-shiori@v0.6.18
|
|
66
66
|
pi install -l git:github.com/eiei114/pi-skill-shiori
|
|
67
67
|
```
|
|
68
68
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { Text } from "@earendil-works/pi-tui";
|
|
3
3
|
import { Type } from "typebox";
|
|
4
|
-
import {
|
|
4
|
+
import { writeFile } from "node:fs/promises";
|
|
5
5
|
import { evaluateAlwaysVisible, formatAlwaysVisibleDiagnostics } from "./always-visible.js";
|
|
6
6
|
import { findDuplicates, formatInventoryRoots, isAutoRefreshEnabled, isInventoryStale, refreshSkillInventory } from "./inventory.js";
|
|
7
7
|
import type { SkillIndex } from "./indexer.js";
|
|
8
|
-
import { loadRecommendedSkills } from "./load-skills.js";
|
|
8
|
+
import { loadRecommendedSkills, loadSkillContent } from "./load-skills.js";
|
|
9
9
|
import { formatPlanningKickoffMessage, isPlanningIntent } from "./planning-kickoff.js";
|
|
10
10
|
import { createStats, formatTimingSummary, measureTiming } from "./metrics.js";
|
|
11
11
|
import { createRecommendationFeedback } from "./recommendation-feedback.js";
|
|
@@ -237,7 +237,7 @@ export default function piSkillShiori(pi: ExtensionAPI) {
|
|
|
237
237
|
const current = await ensureIndex(ctx.cwd);
|
|
238
238
|
const record = findSkill(params.skill, current.skills);
|
|
239
239
|
if (!record) throw new Error(`Skill not found: ${params.skill}`);
|
|
240
|
-
const content = await
|
|
240
|
+
const content = await loadSkillContent(record.path);
|
|
241
241
|
stats.loadedSkillCount += 1;
|
|
242
242
|
recommendationFeedback.recordSkillLoaded(record.name);
|
|
243
243
|
const details: ShioriLoadDetails = {
|
package/src/load-skills.ts
CHANGED
|
@@ -6,10 +6,14 @@ export interface LoadedSkill {
|
|
|
6
6
|
content: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
export function loadSkillContent(path: string): Promise<string> {
|
|
10
|
+
return readFile(path, "utf8");
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
export async function loadRecommendedSkills(candidates: SkillCandidate[]): Promise<LoadedSkill[]> {
|
|
10
14
|
const loaded: LoadedSkill[] = [];
|
|
11
15
|
for (const candidate of candidates) {
|
|
12
|
-
const content = await
|
|
16
|
+
const content = await loadSkillContent(candidate.skill.path);
|
|
13
17
|
loaded.push({ candidate, content });
|
|
14
18
|
}
|
|
15
19
|
return loaded;
|