human-hindsight 1.7.0 → 1.8.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/README.md +37 -19
- package/dist/THIRD_PARTY_NOTICES.txt +872 -0
- package/dist/cli.js +13736 -6527
- package/package.json +7 -30
- package/npm-shrinkwrap.json +0 -2205
package/README.md
CHANGED
|
@@ -87,12 +87,28 @@ The second prompt was knowable at t=0. You just hadn't written it yet.
|
|
|
87
87
|
|
|
88
88
|
## Quickstart
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Start the guided terminal workflow:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npx human-hindsight@latest
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
After scanning, the CLI suggests **export** and asks whether to run it.
|
|
97
|
+
Type `y` to continue. Export offers **distill**, and a successful distillation
|
|
98
|
+
offers the browser library. Your library directory, source, project filter,
|
|
99
|
+
runner, and model stay selected through the handoffs.
|
|
100
|
+
|
|
101
|
+
Distillation still shows its model-call plan and asks for spending consent.
|
|
102
|
+
Follow-up offers default to No and appear only in an interactive terminal.
|
|
103
|
+
Use `--no-follow-up` for one command at a time; pipes, dry runs, and scripted
|
|
104
|
+
`--yes` invocations never start these follow-up commands automatically.
|
|
105
|
+
|
|
106
|
+
You can also start directly with distillation:
|
|
91
107
|
|
|
92
108
|
```bash
|
|
93
109
|
npx human-hindsight distill # offers to export first, then digest → cluster →
|
|
94
110
|
# author (asks before any runner call), then shows
|
|
95
|
-
#
|
|
111
|
+
# offers the finished library in your browser
|
|
96
112
|
```
|
|
97
113
|
|
|
98
114
|
Prefer to drive each stage yourself? The pipeline is just three verbs:
|
|
@@ -132,14 +148,20 @@ npx human-hindsight gui --port 3210 # choose a port (default: any availab
|
|
|
132
148
|
npx human-hindsight gui --home /path/to/library-home
|
|
133
149
|
```
|
|
134
150
|
|
|
135
|
-
Search
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
151
|
+
Search titles and text, filter by domain, sort, and copy prompts with one click.
|
|
152
|
+
**Preview** renders Markdown headings, lists, tables, links, blockquotes, task
|
|
153
|
+
lists, and code blocks. **Markdown** shows the original source. Copy always
|
|
154
|
+
uses that original Markdown, including when the preview is selected.
|
|
155
|
+
|
|
156
|
+
The viewer uses a minimal black-and-white palette and system monospace fonts.
|
|
157
|
+
Light and dark appearance follow your system setting. Local edits, ratings,
|
|
158
|
+
and session counts remain visible. Use **Refresh** after changing files and
|
|
159
|
+
press `/` to focus search.
|
|
140
160
|
|
|
141
161
|
The GUI uses Node's built-in HTTP server and bundled HTML/CSS/JavaScript:
|
|
142
|
-
no
|
|
162
|
+
no frontend framework, database, font download, or external assets.
|
|
163
|
+
Markdown parsing and sanitization ship inside the bundle. Raw HTML stays
|
|
164
|
+
inert and remote images are represented by their alt text, without fetching them.
|
|
143
165
|
It listens only on `127.0.0.1`, serves a read-only library API, and stops with
|
|
144
166
|
Ctrl+C. The GUI doesn't invoke an agent or modify your library.
|
|
145
167
|
|
|
@@ -294,17 +316,13 @@ product:
|
|
|
294
316
|
(`~/.human-hindsight`). No hosted service, accounts, or telemetry. The only network
|
|
295
317
|
traffic is through your chosen agent CLI during consented distillation or
|
|
296
318
|
preference consolidation.
|
|
297
|
-
- **
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
comes from Node itself; no database addon or native compilation is required. All five are
|
|
305
|
-
exact-pinned, and the entire transitive tree ships locked via
|
|
306
|
-
`npm-shrinkwrap.json`. The whole data path is small enough to audit in one
|
|
307
|
-
sitting.
|
|
319
|
+
- **One self-contained npm package.** JavaScript libraries are bundled into
|
|
320
|
+
the CLI; the published package has no npm dependencies or installation
|
|
321
|
+
scripts. SQLite comes from Node. Starting the app does not install compilers,
|
|
322
|
+
platform bindings, or build tools. The development dependency tree is pinned
|
|
323
|
+
in the repository's `package-lock.json`, which is not published. Bundled
|
|
324
|
+
libraries include citty, Zod, Clack, smol-toml, jsonc-parser, Marked, and
|
|
325
|
+
DOMPurify; their license texts ship in `dist/THIRD_PARTY_NOTICES.txt`.
|
|
308
326
|
- **Consent-gated LLM use.** `distill` states the exact invocation count and
|
|
309
327
|
waits for `[y/N]` before anything runs on your subscription/credits.
|
|
310
328
|
`--dry-run` shows the full plan for free. If you decline, it exits without
|