@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 CHANGED
@@ -3,30 +3,55 @@
3
3
 
4
4
  [![skills.sh](https://skills.sh/b/hraness/kb)](https://skills.sh/hraness/kb)
5
5
 
6
- a knowledge base for coding agents.
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
- ## install
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.1
17
+ bun add --global @hraness/kb@0.17.3
12
18
  ```
13
19
 
14
- ## about
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
- Turn research, plans, and decisions into reusable context for coding agents.
17
- Keep sources and repository context beside your code in Markdown and Git. Your
18
- application stays independent.
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
- Search identifiers and metadata. Find meaning locally with QMD. Follow
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
- Capture signed-in pages and PDFs. Use the TypeScript SDK and bounded workflows.
48
+ ## Links
26
49
 
27
- Markdown and Git stay authoritative. Indexes and graph views are replaceable.
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
- ## use
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, saved HTML, rendered page, a page already open in an authenticated browser, or an existing exact Archive.today snapshot after the direct routes fail. Archive fallback is read-only and always partial. The [capture documentation](<https://github.com/hraness/kb/blob/main/docs/capture.md>) defines the supported routes. A capture writes readable Markdown beside localized assets and `capture.json`, whose manifest records where the material came from, how it was extracted, what was saved, and any warnings. “Complete” describes the selected page surface, not every hidden branch or future version of the site.
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
- ## Install
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 CLI. Use
211
- the skill's runtime instructions to install the exact `@hraness/kb@0.17.1`
212
- registry release only when the command is missing. Verify it with `kb doctor`
213
- and `kb --help`, but do not initialize or modify a vault until I ask.
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.1` npm version.
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.1` npm package includes the same tree under
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.1
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.1
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.1
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.1"
307
+ "@hraness/kb": "0.17.3"
267
308
  }
268
309
  }
269
310
  ```
270
311
 
271
- Version 0.17.1 intentionally retains two public GitHub dependencies:
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.1",
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": {
@@ -31,7 +31,7 @@ missing:
31
31
  ```sh
32
32
  command -v kb >/dev/null 2>&1 || {
33
33
  command -v bun >/dev/null 2>&1 || exit 1
34
- bun add --global @hraness/kb@0.17.1
34
+ bun add --global @hraness/kb@0.17.3
35
35
  }
36
36
  kb --help
37
37
  ```