@hraness/kb 0.17.2 → 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 +70 -38
- package/package.json +1 -1
- package/skills/kb/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -3,31 +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
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.
|
|
8
11
|
|
|
9
|
-
##
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Bun 1.3.14 or newer is required.
|
|
10
15
|
|
|
11
16
|
```sh
|
|
12
|
-
bun add --global @hraness/kb@0.17.
|
|
17
|
+
bun add --global @hraness/kb@0.17.3
|
|
13
18
|
```
|
|
14
19
|
|
|
15
|
-
##
|
|
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
|
+
```
|
|
16
41
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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.
|
|
20
45
|
|
|
21
|
-
|
|
22
|
-
backlinks and typed relations. Inspect Git provenance. Search an explicitly
|
|
23
|
-
authorized portfolio of vaults without merging their Markdown or comparing
|
|
24
|
-
their local QMD scores.
|
|
46
|
+
<!-- hraness:kb-landing:end -->
|
|
25
47
|
|
|
26
|
-
|
|
48
|
+
## Links
|
|
27
49
|
|
|
28
|
-
|
|
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)
|
|
29
53
|
|
|
30
|
-
##
|
|
54
|
+
## Use
|
|
31
55
|
|
|
32
56
|
```sh
|
|
33
57
|
kb init kb
|
|
@@ -43,13 +67,6 @@ kb portfolio search "parser-v2" --registry kb-portfolio.json \
|
|
|
43
67
|
kb history search packages/parser --root . --repo .. --json
|
|
44
68
|
```
|
|
45
69
|
|
|
46
|
-
## links
|
|
47
|
-
|
|
48
|
-
[npm](https://www.npmjs.com/package/@hraness/kb) ·
|
|
49
|
-
[github](https://github.com/hraness/kb) ·
|
|
50
|
-
[overview](https://hraness.com/kb)
|
|
51
|
-
<!-- hraness:kb-landing:end -->
|
|
52
|
-
|
|
53
70
|
## A knowledge base for your coding agents
|
|
54
71
|
|
|
55
72
|
> Give coding agents durable, searchable memory beside the repository with plain Markdown, Git history, and replaceable local search.
|
|
@@ -113,7 +130,15 @@ kb history search packages/parser/src/index.ts --root kb --repo . --json
|
|
|
113
130
|
|
|
114
131
|
### Preserve evidence and plans as working records
|
|
115
132
|
|
|
116
|
-
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.
|
|
117
142
|
|
|
118
143
|
**Capture a web source or local PDF**
|
|
119
144
|
|
|
@@ -168,6 +193,12 @@ Start with a short inherited `AGENTS.md` path for rules whose omission would mak
|
|
|
168
193
|
|
|
169
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.
|
|
170
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
|
+
|
|
171
202
|
## Upgrade to v0.17.2
|
|
172
203
|
|
|
173
204
|
Version 0.17.2 improves package discovery through focused npm keywords, a more
|
|
@@ -207,7 +238,7 @@ Existing Markdown is not rewritten automatically. Add IDs to maintained legacy
|
|
|
207
238
|
notes only through reviewed edits, and keep every QMD, graph, portfolio, and
|
|
208
239
|
audit projection disposable.
|
|
209
240
|
|
|
210
|
-
##
|
|
241
|
+
## Installation reference
|
|
211
242
|
|
|
212
243
|
[Bun](https://bun.sh/docs/installation) is the required runtime.
|
|
213
244
|
|
|
@@ -216,34 +247,35 @@ audit projection disposable.
|
|
|
216
247
|
Copy this prompt into Codex, Claude Code, or another coding agent:
|
|
217
248
|
|
|
218
249
|
```text
|
|
219
|
-
Install the `kb` Agent Skill from hraness/kb with the standard skills
|
|
220
|
-
the skill's runtime instructions to install the exact
|
|
221
|
-
registry release only when the command is missing. Verify it
|
|
222
|
-
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.
|
|
223
255
|
```
|
|
224
256
|
|
|
225
257
|
Install the single public skill with either runner:
|
|
226
258
|
|
|
227
259
|
```sh
|
|
228
|
-
npx skills add hraness/kb
|
|
229
|
-
bunx skills add hraness/kb
|
|
260
|
+
npx skills add hraness/kb#v0.17.3
|
|
261
|
+
bunx skills add hraness/kb#v0.17.3
|
|
230
262
|
```
|
|
231
263
|
|
|
232
264
|
Both commands discover the same `kb` skill and install it into the selected
|
|
233
265
|
agent runner. Skill installation is inert: it does not initialize a vault,
|
|
234
266
|
refresh a catalog, or edit Markdown. When invoked, the skill uses an existing
|
|
235
267
|
`kb` command or, when the command is missing, checks for Bun and installs the
|
|
236
|
-
CLI from the immutable `@hraness/kb@0.17.
|
|
268
|
+
CLI from the immutable `@hraness/kb@0.17.3` npm version.
|
|
237
269
|
|
|
238
270
|
The public skills CLI reads `skills/kb/` from the repository. The immutable
|
|
239
|
-
`0.17.
|
|
271
|
+
`0.17.3` npm package includes the same tree under
|
|
240
272
|
`node_modules/@hraness/kb/skills/kb/`, and the package check verifies that the
|
|
241
273
|
installed skill is byte-identical to the repository source.
|
|
242
274
|
|
|
243
275
|
Install the two global commands with Bun:
|
|
244
276
|
|
|
245
277
|
```sh
|
|
246
|
-
bun add --global @hraness/kb@0.17.
|
|
278
|
+
bun add --global @hraness/kb@0.17.3
|
|
247
279
|
kb --help
|
|
248
280
|
kb-evaluation-builder --help
|
|
249
281
|
```
|
|
@@ -251,7 +283,7 @@ kb-evaluation-builder --help
|
|
|
251
283
|
The same registry package can be installed with npm:
|
|
252
284
|
|
|
253
285
|
```sh
|
|
254
|
-
npm install --global --ignore-scripts @hraness/kb@0.17.
|
|
286
|
+
npm install --global --ignore-scripts @hraness/kb@0.17.3
|
|
255
287
|
kb --help
|
|
256
288
|
```
|
|
257
289
|
|
|
@@ -264,7 +296,7 @@ reviewed and enabled; run `kb doctor` to inspect the resulting capabilities.
|
|
|
264
296
|
For programmatic use, add the exact npm version to a Bun project:
|
|
265
297
|
|
|
266
298
|
```sh
|
|
267
|
-
bun add --exact @hraness/kb@0.17.
|
|
299
|
+
bun add --exact @hraness/kb@0.17.3
|
|
268
300
|
```
|
|
269
301
|
|
|
270
302
|
The resulting dependency should remain exact:
|
|
@@ -272,12 +304,12 @@ The resulting dependency should remain exact:
|
|
|
272
304
|
```json
|
|
273
305
|
{
|
|
274
306
|
"dependencies": {
|
|
275
|
-
"@hraness/kb": "0.17.
|
|
307
|
+
"@hraness/kb": "0.17.3"
|
|
276
308
|
}
|
|
277
309
|
}
|
|
278
310
|
```
|
|
279
311
|
|
|
280
|
-
Version 0.17.
|
|
312
|
+
Version 0.17.3 retains two public GitHub dependencies:
|
|
281
313
|
`@steipete/sweet-cookie` at Hraness release `v0.4.2` for the cookie-scope safety
|
|
282
314
|
fork, and `@tobilu/qmd` at commit
|
|
283
315
|
`aa993dceb3ef8cfb71d470554ca437570f5a2b3c` for store-local model behavior. A
|
|
@@ -540,9 +572,9 @@ a vault. The package smoke test keeps future tagged packages byte-identical to
|
|
|
540
572
|
that source tree.
|
|
541
573
|
|
|
542
574
|
```sh
|
|
543
|
-
npx skills add hraness/kb
|
|
575
|
+
npx skills add hraness/kb#v0.17.3
|
|
544
576
|
# or
|
|
545
|
-
bunx skills add hraness/kb
|
|
577
|
+
bunx skills add hraness/kb#v0.17.3
|
|
546
578
|
```
|
|
547
579
|
|
|
548
580
|
The skill invokes the installed `kb` command without depending on a repository
|
package/package.json
CHANGED