superbee 0.4.0-pre.1 → 0.4.0-pre.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superbee",
3
- "version": "0.4.0-pre.1",
3
+ "version": "0.4.0-pre.2",
4
4
  "type": "module",
5
5
  "description": "Agent-facing Superbee CLI for reading and writing local OKF knowledge bundles: context notes, docs, cross-links, and live bundle Views.",
6
6
  "keywords": [
@@ -43,7 +43,7 @@ client below wraps all of them.
43
43
  | request | ask | answer |
44
44
  | --- | --- | --- |
45
45
  | `hello` | who is hosting me | `{ bundle: { root, name }, mode, protocol, grant, host: { kind, capabilities, limits } }` |
46
- | `query` | `{ type?, prefix?, field?, open?, limit? }` | `{ rows: [{ id, version, frontmatter }], count }` |
46
+ | `query` | `{ type?, prefix?, field?, open?, limit?, order? }` | `{ rows: [{ id, version, frontmatter }], count }` |
47
47
  | `read` | `docId` | `{ id, frontmatter, body }` |
48
48
  | `read-versioned` | `docId` | `{ doc, version }` |
49
49
  | `render-document` | `docId` | `{ document: { id, version }, html, bounded }` |
@@ -56,7 +56,13 @@ client below wraps all of them.
56
56
  `hello.result.grant` is `"read"` for `bundle-read` and `"propose"` for `bundle-propose`. Read
57
57
  `hello.result.host.capabilities` to learn what this host honors (for example `query.field-or`,
58
58
  `query.open`, `edges`, `graph`, `subscribe-deltas`) instead of assuming; every host refuses what it
59
- does not offer with a `FORBIDDEN` error, never silently.
59
+ does not offer with an error (`FORBIDDEN` for request types, `USAGE` for query params), never
60
+ silently.
61
+
62
+ Query rows come in canonical id order. On a host that declares `query.newest`, pass
63
+ `order: "newest"` to get CLI `list` order instead (newest `generated.at` or `timestamp` first, rows
64
+ without a usable time last); the cap then keeps the most recently changed rows. A host without
65
+ `query.newest` answers `order` with `USAGE`, so check the capability first and fall back.
60
66
 
61
67
  Use `render-document` for canonical Markdown presentation: the returned `html` is inert markup
62
68
  whose internal links carry `data-aslite-doc-id`. Style it inside the View and insert it unmodified;
@@ -43,7 +43,7 @@ client below wraps all of them.
43
43
  | request | ask | answer |
44
44
  | --- | --- | --- |
45
45
  | `hello` | who is hosting me | `{ bundle: { root, name }, mode, protocol, grant, host: { kind, capabilities, limits } }` |
46
- | `query` | `{ type?, prefix?, field?, open?, limit? }` | `{ rows: [{ id, version, frontmatter }], count }` |
46
+ | `query` | `{ type?, prefix?, field?, open?, limit?, order? }` | `{ rows: [{ id, version, frontmatter }], count }` |
47
47
  | `read` | `docId` | `{ id, frontmatter, body }` |
48
48
  | `read-versioned` | `docId` | `{ doc, version }` |
49
49
  | `render-document` | `docId` | `{ document: { id, version }, html, bounded }` |
@@ -56,7 +56,13 @@ client below wraps all of them.
56
56
  `hello.result.grant` is `"read"` for `bundle-read` and `"propose"` for `bundle-propose`. Read
57
57
  `hello.result.host.capabilities` to learn what this host honors (for example `query.field-or`,
58
58
  `query.open`, `edges`, `graph`, `subscribe-deltas`) instead of assuming; every host refuses what it
59
- does not offer with a `FORBIDDEN` error, never silently.
59
+ does not offer with an error (`FORBIDDEN` for request types, `USAGE` for query params), never
60
+ silently.
61
+
62
+ Query rows come in canonical id order. On a host that declares `query.newest`, pass
63
+ `order: "newest"` to get CLI `list` order instead (newest `generated.at` or `timestamp` first, rows
64
+ without a usable time last); the cap then keeps the most recently changed rows. A host without
65
+ `query.newest` answers `order` with `USAGE`, so check the capability first and fall back.
60
66
 
61
67
  Use `render-document` for canonical Markdown presentation: the returned `html` is inert markup
62
68
  whose internal links carry `data-aslite-doc-id`. Style it inside the View and insert it unmodified;