@akanjs/cli 3.0.0-alpha.60 → 3.0.0-alpha.62
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/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d6bf8d5dde2b2ae1de7b48fd33e2631928f688849e22150658c732e283b86011
|
|
@@ -412,6 +412,16 @@ workflow changes.
|
|
|
412
412
|
could not survive the query string at all — `String(value)` sends `[object Object]`. Args are parsed by the type
|
|
413
413
|
the filter declared, a missing required one is refused, and args past the declared ones are dropped
|
|
414
414
|
(`resolveFilterQuery`, `pkgs/akanjs/document/filterMeta.ts`). It is an admin API: `root:` is always `Admin`.
|
|
415
|
+
- **Give an id filter arg a `ref` and the admin panel stops asking for hex.** `filter().arg("ownerId", ID, { ref:
|
|
416
|
+
"user" })` names the model the id points at; the arg then renders a picker that runs the same query maker against
|
|
417
|
+
that model's own filters, so a ref of a ref keeps nesting. The picker holds its rows in local state rather than the
|
|
418
|
+
ref model's store — that store is a singleton, and loading into it would overwrite whatever listing of the same
|
|
419
|
+
model is already on screen. `ref` is the only UI hint a filter arg carries; there is no render callback, because a
|
|
420
|
+
function cannot cross to the client.
|
|
421
|
+
- **A picker row is labelled by `labelOf`, which reads `Light<Model>.label()` first.** Then the field carrying
|
|
422
|
+
`text: "title"`, then `title` / `name`, with the id as the floor. Write the method on the Light class — that is
|
|
423
|
+
where display logic belongs, and the same label is what `Load.Units` and the in-page agent's screen scope show.
|
|
424
|
+
A model with none renders ids and says so in the picker.
|
|
415
425
|
- A slice's `exec` returns a `QueryOf` (an opaque query descriptor, `pkgs/akanjs/constant/types.ts`); you **cannot** chain `.sort()`/`.limit()` on it.
|
|
416
426
|
- Apply ordering/paging via the store `init` fetch option instead: `initX(..., { sort, page, limit })` (`pkgs/akanjs/fetch/fetchType/sliceFetch.type.ts`).
|
|
417
427
|
- Generated list accessors like `listBy(...)` return `Promise<Doc[]>`. For a chainable builder (`.sort().skip().limit().select()`) use the model facade's `findMany`/`findOne` (`FindManyChain`, `pkgs/akanjs/document/into.ts`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.62",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@langchain/openai": "^1.4.6",
|
|
35
35
|
"@tailwindcss/node": "^4.3.0",
|
|
36
36
|
"@trapezedev/project": "^7.1.4",
|
|
37
|
-
"akanjs": "3.0.0-alpha.
|
|
37
|
+
"akanjs": "3.0.0-alpha.62",
|
|
38
38
|
"chalk": "^5.6.2",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"dayjs": "^1.11.20",
|