@hraness/kb 0.17.1 → 0.17.3
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 +77 -36
- package/package.json +5 -4
- package/skills/kb/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -3,30 +3,55 @@
|
|
|
3
3
|
|
|
4
4
|
[](https://skills.sh/hraness/kb)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
A knowledge base for coding agents, built from Markdown, backlinks, semantic
|
|
7
|
+
search, and Git context.
|
|
8
|
+
It turns sources, plans, and decisions into inspectable context that agents can
|
|
9
|
+
recover across sessions without coupling application code to the knowledge
|
|
10
|
+
system.
|
|
7
11
|
|
|
8
|
-
##
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Bun 1.3.14 or newer is required.
|
|
9
15
|
|
|
10
16
|
```sh
|
|
11
|
-
bun add --global @hraness/kb@0.17.
|
|
17
|
+
bun add --global @hraness/kb@0.17.3
|
|
12
18
|
```
|
|
13
19
|
|
|
14
|
-
##
|
|
20
|
+
## Why kb
|
|
21
|
+
|
|
22
|
+
- **Inspect what agents recover.** Markdown and Git stay authoritative,
|
|
23
|
+
retrieval signals stay distinct, and indexes, embeddings, and graph views
|
|
24
|
+
remain replaceable.
|
|
25
|
+
- **Keep the application independent.** Application code imports neither the
|
|
26
|
+
vault nor a hosted knowledge service. Capture and semantic adapters declare
|
|
27
|
+
their network, browser, native-tool, and model-download effects.
|
|
28
|
+
|
|
29
|
+
## Create one durable note
|
|
30
|
+
|
|
31
|
+
From a directory without an existing `kb/` path, this local task creates a
|
|
32
|
+
vault, writes one typed note, and finds it without a network request or
|
|
33
|
+
embedding model:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
kb init kb
|
|
37
|
+
kb note create notes/parser-contract \
|
|
38
|
+
--title "Parser contract" --type concept --tag architecture --root kb
|
|
39
|
+
kb search "parser contract" --root kb --mode exact
|
|
40
|
+
```
|
|
15
41
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
42
|
+
The note is stored at `kb/notes/parser-contract.md`. Exact search reads the
|
|
43
|
+
current Markdown and returns that record. Commit the vault when it should
|
|
44
|
+
travel with the repository.
|
|
19
45
|
|
|
20
|
-
|
|
21
|
-
backlinks and typed relations. Inspect Git provenance. Search an explicitly
|
|
22
|
-
authorized portfolio of vaults without merging their Markdown or comparing
|
|
23
|
-
their local QMD scores.
|
|
46
|
+
<!-- hraness:kb-landing:end -->
|
|
24
47
|
|
|
25
|
-
|
|
48
|
+
## Links
|
|
26
49
|
|
|
27
|
-
|
|
50
|
+
[Install `@hraness/kb` from npm](https://www.npmjs.com/package/@hraness/kb) ·
|
|
51
|
+
[KB source on GitHub](https://github.com/hraness/kb) ·
|
|
52
|
+
[KB overview](https://hraness.com/kb)
|
|
28
53
|
|
|
29
|
-
##
|
|
54
|
+
## Use
|
|
30
55
|
|
|
31
56
|
```sh
|
|
32
57
|
kb init kb
|
|
@@ -42,11 +67,6 @@ kb portfolio search "parser-v2" --registry kb-portfolio.json \
|
|
|
42
67
|
kb history search packages/parser --root . --repo .. --json
|
|
43
68
|
```
|
|
44
69
|
|
|
45
|
-
## links
|
|
46
|
-
|
|
47
|
-
[github](https://github.com/hraness/kb)
|
|
48
|
-
<!-- hraness:kb-landing:end -->
|
|
49
|
-
|
|
50
70
|
## A knowledge base for your coding agents
|
|
51
71
|
|
|
52
72
|
> Give coding agents durable, searchable memory beside the repository with plain Markdown, Git history, and replaceable local search.
|
|
@@ -110,7 +130,15 @@ kb history search packages/parser/src/index.ts --root kb --repo . --json
|
|
|
110
130
|
|
|
111
131
|
### Preserve evidence and plans as working records
|
|
112
132
|
|
|
113
|
-
Durable reasoning needs inspectable evidence. `kb clip` can read a public URL,
|
|
133
|
+
Durable reasoning needs inspectable evidence. `kb clip` can read a public URL,
|
|
134
|
+
saved HTML, rendered page, a page already open in an authenticated browser, or
|
|
135
|
+
an existing exact Archive.today snapshot after the direct routes fail. Archive
|
|
136
|
+
fallback is read-only and always partial. The
|
|
137
|
+
[capture documentation](docs/capture.md) defines the supported routes. A capture
|
|
138
|
+
writes readable Markdown beside localized assets and `capture.json`, whose
|
|
139
|
+
manifest records where the material came from, how it was extracted, what was
|
|
140
|
+
saved, and any warnings. “Complete” describes the selected page surface, not
|
|
141
|
+
every hidden branch or future version of the site.
|
|
114
142
|
|
|
115
143
|
**Capture a web source or local PDF**
|
|
116
144
|
|
|
@@ -165,6 +193,18 @@ Start with a short inherited `AGENTS.md` path for rules whose omission would mak
|
|
|
165
193
|
|
|
166
194
|
Treat the knowledge base as repository-adjacent durable memory. Authored Markdown and Git are the record; catalogs, indexes, embeddings, and graph views are replaceable ways to find and inspect it. Checks can validate structure, captures can preserve a selected surface, and similarity can suggest candidates. None of those mechanisms proves that a source is trustworthy or an explanation is still true. People and agents must revise the knowledge as the repository changes.
|
|
167
195
|
|
|
196
|
+
## Upgrade to v0.17.3
|
|
197
|
+
|
|
198
|
+
Version 0.17.3 restructures the README around an inspectable first task,
|
|
199
|
+
explicit operating boundaries, and a shorter path from installation to useful
|
|
200
|
+
output. Runtime APIs and package behavior are unchanged.
|
|
201
|
+
|
|
202
|
+
## Upgrade to v0.17.2
|
|
203
|
+
|
|
204
|
+
Version 0.17.2 improves package discovery through focused npm keywords, a more
|
|
205
|
+
specific README opening, and direct links between npm, GitHub, and the project
|
|
206
|
+
overview. Runtime APIs and package behavior are unchanged.
|
|
207
|
+
|
|
168
208
|
## Upgrade to v0.17.1
|
|
169
209
|
|
|
170
210
|
Version 0.17.1 adds the public `@hraness/kb` npm installation path without
|
|
@@ -198,7 +238,7 @@ Existing Markdown is not rewritten automatically. Add IDs to maintained legacy
|
|
|
198
238
|
notes only through reviewed edits, and keep every QMD, graph, portfolio, and
|
|
199
239
|
audit projection disposable.
|
|
200
240
|
|
|
201
|
-
##
|
|
241
|
+
## Installation reference
|
|
202
242
|
|
|
203
243
|
[Bun](https://bun.sh/docs/installation) is the required runtime.
|
|
204
244
|
|
|
@@ -207,34 +247,35 @@ audit projection disposable.
|
|
|
207
247
|
Copy this prompt into Codex, Claude Code, or another coding agent:
|
|
208
248
|
|
|
209
249
|
```text
|
|
210
|
-
Install the `kb` Agent Skill from hraness/kb with the standard skills
|
|
211
|
-
the skill's runtime instructions to install the exact
|
|
212
|
-
registry release only when the command is missing. Verify it
|
|
213
|
-
and `kb --help`, but do not initialize or modify a vault until
|
|
250
|
+
Install the `kb` Agent Skill from `hraness/kb#v0.17.3` with the standard skills
|
|
251
|
+
CLI. Use the skill's runtime instructions to install the exact
|
|
252
|
+
`@hraness/kb@0.17.3` registry release only when the command is missing. Verify it
|
|
253
|
+
with `kb doctor` and `kb --help`, but do not initialize or modify a vault until
|
|
254
|
+
I ask.
|
|
214
255
|
```
|
|
215
256
|
|
|
216
257
|
Install the single public skill with either runner:
|
|
217
258
|
|
|
218
259
|
```sh
|
|
219
|
-
npx skills add hraness/kb
|
|
220
|
-
bunx skills add hraness/kb
|
|
260
|
+
npx skills add hraness/kb#v0.17.3
|
|
261
|
+
bunx skills add hraness/kb#v0.17.3
|
|
221
262
|
```
|
|
222
263
|
|
|
223
264
|
Both commands discover the same `kb` skill and install it into the selected
|
|
224
265
|
agent runner. Skill installation is inert: it does not initialize a vault,
|
|
225
266
|
refresh a catalog, or edit Markdown. When invoked, the skill uses an existing
|
|
226
267
|
`kb` command or, when the command is missing, checks for Bun and installs the
|
|
227
|
-
CLI from the immutable `@hraness/kb@0.17.
|
|
268
|
+
CLI from the immutable `@hraness/kb@0.17.3` npm version.
|
|
228
269
|
|
|
229
270
|
The public skills CLI reads `skills/kb/` from the repository. The immutable
|
|
230
|
-
`0.17.
|
|
271
|
+
`0.17.3` npm package includes the same tree under
|
|
231
272
|
`node_modules/@hraness/kb/skills/kb/`, and the package check verifies that the
|
|
232
273
|
installed skill is byte-identical to the repository source.
|
|
233
274
|
|
|
234
275
|
Install the two global commands with Bun:
|
|
235
276
|
|
|
236
277
|
```sh
|
|
237
|
-
bun add --global @hraness/kb@0.17.
|
|
278
|
+
bun add --global @hraness/kb@0.17.3
|
|
238
279
|
kb --help
|
|
239
280
|
kb-evaluation-builder --help
|
|
240
281
|
```
|
|
@@ -242,7 +283,7 @@ kb-evaluation-builder --help
|
|
|
242
283
|
The same registry package can be installed with npm:
|
|
243
284
|
|
|
244
285
|
```sh
|
|
245
|
-
npm install --global --ignore-scripts @hraness/kb@0.17.
|
|
286
|
+
npm install --global --ignore-scripts @hraness/kb@0.17.3
|
|
246
287
|
kb --help
|
|
247
288
|
```
|
|
248
289
|
|
|
@@ -255,7 +296,7 @@ reviewed and enabled; run `kb doctor` to inspect the resulting capabilities.
|
|
|
255
296
|
For programmatic use, add the exact npm version to a Bun project:
|
|
256
297
|
|
|
257
298
|
```sh
|
|
258
|
-
bun add --exact @hraness/kb@0.17.
|
|
299
|
+
bun add --exact @hraness/kb@0.17.3
|
|
259
300
|
```
|
|
260
301
|
|
|
261
302
|
The resulting dependency should remain exact:
|
|
@@ -263,12 +304,12 @@ The resulting dependency should remain exact:
|
|
|
263
304
|
```json
|
|
264
305
|
{
|
|
265
306
|
"dependencies": {
|
|
266
|
-
"@hraness/kb": "0.17.
|
|
307
|
+
"@hraness/kb": "0.17.3"
|
|
267
308
|
}
|
|
268
309
|
}
|
|
269
310
|
```
|
|
270
311
|
|
|
271
|
-
Version 0.17.
|
|
312
|
+
Version 0.17.3 retains two public GitHub dependencies:
|
|
272
313
|
`@steipete/sweet-cookie` at Hraness release `v0.4.2` for the cookie-scope safety
|
|
273
314
|
fork, and `@tobilu/qmd` at commit
|
|
274
315
|
`aa993dceb3ef8cfb71d470554ca437570f5a2b3c` for store-local model behavior. A
|
|
@@ -531,9 +572,9 @@ a vault. The package smoke test keeps future tagged packages byte-identical to
|
|
|
531
572
|
that source tree.
|
|
532
573
|
|
|
533
574
|
```sh
|
|
534
|
-
npx skills add hraness/kb
|
|
575
|
+
npx skills add hraness/kb#v0.17.3
|
|
535
576
|
# or
|
|
536
|
-
bunx skills add hraness/kb
|
|
577
|
+
bunx skills add hraness/kb#v0.17.3
|
|
537
578
|
```
|
|
538
579
|
|
|
539
580
|
The skill invokes the installed `kb` command without depending on a repository
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hraness/kb",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"description": "A knowledge base for coding agents, built from Markdown, backlinks, semantic search, and Git context.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contentPolicy": {
|
|
@@ -72,15 +72,16 @@
|
|
|
72
72
|
},
|
|
73
73
|
"keywords": [
|
|
74
74
|
"knowledge-base",
|
|
75
|
+
"coding-agents",
|
|
76
|
+
"agent-memory",
|
|
77
|
+
"repository-context",
|
|
75
78
|
"markdown",
|
|
76
79
|
"obsidian",
|
|
80
|
+
"agents-md",
|
|
77
81
|
"web-clipper",
|
|
78
82
|
"backlinks",
|
|
79
83
|
"knowledge-graph",
|
|
80
84
|
"semantic-search",
|
|
81
|
-
"agent-memory",
|
|
82
|
-
"agents-md",
|
|
83
|
-
"context-engineering",
|
|
84
85
|
"local-first"
|
|
85
86
|
],
|
|
86
87
|
"exports": {
|