@knolo/cli 5.2.1 → 5.2.2
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 +35 -29
- package/bin/registry/commands.mjs +587 -208
- package/bin/registry/http.mjs +65 -47
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -57,16 +57,23 @@ knolo login --token kno_…
|
|
|
57
57
|
# write requests use: Authorization: Bearer kno_…
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
`knolo publish` uploads bytes
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
`knolo publish` uploads bytes with `@vercel/blob` to the public store, waits
|
|
61
|
+
for verification, creates an attested draft, and releases it. Set
|
|
62
|
+
`PACKS_READ_WRITE_TOKEN` from the production `knolo-hub` Vercel environment
|
|
63
|
+
before publishing; do not substitute `BLOB_READ_WRITE_TOKEN`:
|
|
63
64
|
|
|
64
65
|
```bash
|
|
66
|
+
cd /path/to/knolo-hub
|
|
67
|
+
npx vercel env pull /tmp/knolo-env-prod --environment=production --yes
|
|
68
|
+
export PACKS_READ_WRITE_TOKEN="$(awk -F= '$1 == "PACKS_READ_WRITE_TOKEN" {sub(/^[^=]*=/, ""); gsub(/^\"|\"$/, ""); print; exit}' /tmp/knolo-env-prod)"
|
|
69
|
+
|
|
65
70
|
knolo publish ./dist/knowledge.knolo \
|
|
66
71
|
--slug refund-policy --version 1.2.0 --license Apache-2.0
|
|
67
72
|
knolo yank acme/refund-policy@1.2.0
|
|
68
73
|
```
|
|
69
74
|
|
|
75
|
+
The upload uses pathname `sha256/<64-lowercase-hex>.knolo`, public access,
|
|
76
|
+
`addRandomSuffix: false`, `application/octet-stream`, and a one-year cache.
|
|
70
77
|
Only public Blob URLs are accepted because Hub verification fetches the
|
|
71
78
|
artifact itself. The CLI never sends the `kno_…` token to Blob, in a query
|
|
72
79
|
string, cookie, or pack bytes. A 401 usually means the `Bearer` word is
|
|
@@ -99,7 +106,6 @@ Successful installs are cached by SHA-256 and recorded in
|
|
|
99
106
|
`knolo.lock.json`. A yanked version or an existing conflicting pin requires
|
|
100
107
|
`--force`; digest and artifact validation cannot be bypassed.
|
|
101
108
|
|
|
102
|
-
|
|
103
109
|
---
|
|
104
110
|
|
|
105
111
|
## 🚀 Commands
|
|
@@ -167,11 +173,11 @@ curl -sS "http://127.0.0.1:8787/search?q=billing&k=5"
|
|
|
167
173
|
|
|
168
174
|
These commands stay local-first:
|
|
169
175
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
- No hosted service
|
|
177
|
+
- No vector database
|
|
178
|
+
- Lexical retrieval by default
|
|
179
|
+
- Controller-only pack mutation; 2 MiB pack limit
|
|
180
|
+
- Pack state survives canister upgrades
|
|
175
181
|
|
|
176
182
|
---
|
|
177
183
|
|
|
@@ -192,8 +198,8 @@ knolo.config.ts
|
|
|
192
198
|
|
|
193
199
|
```ts
|
|
194
200
|
export default {
|
|
195
|
-
input:
|
|
196
|
-
output:
|
|
201
|
+
input: './knowledge',
|
|
202
|
+
output: './dist/knowledge.knolo',
|
|
197
203
|
};
|
|
198
204
|
```
|
|
199
205
|
|
|
@@ -201,12 +207,12 @@ export default {
|
|
|
201
207
|
|
|
202
208
|
## 🧱 What the CLI Does
|
|
203
209
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
+
- Parses structured documents
|
|
211
|
+
- Normalizes metadata
|
|
212
|
+
- Indexes namespaces
|
|
213
|
+
- Extracts agent routing profiles
|
|
214
|
+
- Validates agent registry
|
|
215
|
+
- Generates compact `.knolo` bundle
|
|
210
216
|
|
|
211
217
|
All builds are deterministic.
|
|
212
218
|
|
|
@@ -216,11 +222,11 @@ All builds are deterministic.
|
|
|
216
222
|
|
|
217
223
|
Current v4 features include:
|
|
218
224
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
- Routing profile extraction
|
|
226
|
+
- Tool policy validation
|
|
227
|
+
- Mount-time registry validation
|
|
228
|
+
- Deterministic selection logic
|
|
229
|
+
- Pack manifests, analyzer identities, retrieval plans, receipts, and evidence spans
|
|
224
230
|
|
|
225
231
|
---
|
|
226
232
|
|
|
@@ -228,16 +234,16 @@ Current v4 features include:
|
|
|
228
234
|
|
|
229
235
|
KnoLo intentionally avoids:
|
|
230
236
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
237
|
+
- Vector databases
|
|
238
|
+
- Similarity search
|
|
239
|
+
- External inference APIs
|
|
234
240
|
|
|
235
241
|
This ensures:
|
|
236
242
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
243
|
+
- Reproducibility
|
|
244
|
+
- Security
|
|
245
|
+
- Low memory usage
|
|
246
|
+
- Predictable results
|
|
241
247
|
|
|
242
248
|
---
|
|
243
249
|
|