@thurstonsand/pi-librarian 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.
- package/AGENTS.md +21 -0
- package/CONTEXT.md +32 -0
- package/DEV.md +41 -0
- package/README.md +43 -0
- package/RELEASE.md +13 -0
- package/docs/designs/01-librarian.md +215 -0
- package/docs/designs/02-continuable-runs.md +101 -0
- package/docs/designs/03-librarian-research-tool-hardening.md +141 -0
- package/docs/release.md +22 -0
- package/extensions/librarian/attach.ts +41 -0
- package/extensions/librarian/checkout.ts +239 -0
- package/extensions/librarian/github.ts +364 -0
- package/extensions/librarian/grep-app.ts +237 -0
- package/extensions/librarian/model.ts +59 -0
- package/extensions/librarian/prompt.ts +54 -0
- package/extensions/librarian/results.ts +63 -0
- package/extensions/librarian/run.ts +248 -0
- package/extensions/librarian/settings.ts +119 -0
- package/extensions/librarian/tools/checkout-repo.ts +88 -0
- package/extensions/librarian/tools/names.ts +21 -0
- package/extensions/librarian/tools/provide-results.ts +60 -0
- package/extensions/librarian/tools/read-github-file.ts +122 -0
- package/extensions/librarian/tools/search-code.ts +99 -0
- package/extensions/librarian/tools/search-github-code.ts +125 -0
- package/extensions/librarian/tools/search-repos.ts +101 -0
- package/extensions/librarian/trace.ts +76 -0
- package/extensions/librarian/view.ts +307 -0
- package/extensions/librarian.ts +181 -0
- package/extensions/shared/typebox.ts +31 -0
- package/package.json +73 -0
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@thurstonsand/pi-librarian",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "GitHub research subagent for pi: deep-dive specific repos, discover across the ecosystem",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/thurstonsand/pi-librarian.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/thurstonsand/pi-librarian#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/thurstonsand/pi-librarian/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"pi-package"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=24 <26"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"extensions",
|
|
23
|
+
"README.md",
|
|
24
|
+
"RELEASE.md",
|
|
25
|
+
"CONTEXT.md",
|
|
26
|
+
"DEV.md",
|
|
27
|
+
"AGENTS.md",
|
|
28
|
+
"docs"
|
|
29
|
+
],
|
|
30
|
+
"pi": {
|
|
31
|
+
"extensions": [
|
|
32
|
+
"./extensions/librarian.ts"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"lint": "biome check .",
|
|
37
|
+
"format": "biome format --write .",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"check": "biome check . && tsc --noEmit && vitest run",
|
|
41
|
+
"prepare": "husky || true"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@biomejs/biome": "^2.4.14",
|
|
45
|
+
"@earendil-works/pi-agent-core": "^0.80.2",
|
|
46
|
+
"@earendil-works/pi-ai": "^0.80.2",
|
|
47
|
+
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
48
|
+
"@earendil-works/pi-tui": "^0.80.2",
|
|
49
|
+
"@types/node": "^25.6.2",
|
|
50
|
+
"husky": "^9.1.7",
|
|
51
|
+
"lint-staged": "^17.0.3",
|
|
52
|
+
"typebox": "^1.1.38",
|
|
53
|
+
"typescript": "^6.0.3",
|
|
54
|
+
"vitest": "^4.1.5"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@earendil-works/pi-agent-core": ">=0.80.2",
|
|
58
|
+
"@earendil-works/pi-ai": ">=0.80.2",
|
|
59
|
+
"@earendil-works/pi-coding-agent": ">=0.80.2",
|
|
60
|
+
"@earendil-works/pi-tui": ">=0.80.2",
|
|
61
|
+
"typebox": ">=1.1.24"
|
|
62
|
+
},
|
|
63
|
+
"lint-staged": {
|
|
64
|
+
"*.{js,cjs,mjs,jsx,ts,tsx,json,jsonc}": "biome check --write --no-errors-on-unmatched"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@octokit/request-error": "^7.1.0",
|
|
68
|
+
"@octokit/rest": "^22.0.1"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
}
|
|
73
|
+
}
|