omgbase 0.7.1 → 0.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/dist/build-info.json +2 -2
- package/dist/src/cmd/oqx.js +2 -2
- package/package.json +3 -3
package/dist/build-info.json
CHANGED
package/dist/src/cmd/oqx.js
CHANGED
|
@@ -68,9 +68,9 @@ async function runOqx(cli, args) {
|
|
|
68
68
|
cli.io.out(" query '$repo.docs count { where layer == \"canon\" }' # scalar; also $repo.<target> exists/none/first/single { … }");
|
|
69
69
|
cli.io.out(" query 'from docs where nodes none { where kind == \"md:task\" && !checked }' # none = zero rows (≡ !exists; \"every\" = none over the complement)");
|
|
70
70
|
cli.io.out(" query 'from docs where type == \"practitioner\" order by era desc limit 2 offset 1' # limit/offset bound the set (after order/distinct, before the consumer)");
|
|
71
|
-
cli.io.out(" query 'select fm: entries(frontmatter) collect { k: $key, v: $
|
|
71
|
+
cli.io.out(" query 'select fm: entries(frontmatter) collect { k: $key, v: $it } from docs where $path == \"x.md\"' # a record as a collection ($key/$it); also entries(attrs), entries(inline)");
|
|
72
72
|
cli.io.out(" query 'select $path values from docs where layer == \"canon\"' # `values`: bare values, no {id,path} hits (one item only)");
|
|
73
|
-
cli.io.out(" query 'select $path, tags: tags collect { $
|
|
73
|
+
cli.io.out(" query 'select $path, tags: tags collect { $it values where $it != \"draft\" } from docs' # $it = the current item (here: each tag)");
|
|
74
74
|
cli.io.out(" query '$repo.docs collect { from nodes where kind == \"md:task\" }' # `from E` re-projects the source (→ nodes)");
|
|
75
75
|
cli.io.out(" query 'from docs where text(\"philosophers stone\") && layer == \"canon\"' # full-text prune");
|
|
76
76
|
cli.io.out(" query 'select s: semantic(\"the great work\") from blocks where semantic(\"the great work\") > 0.6' # embedding score (needs a provider)");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omgbase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Open Markdown Graph Base — CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"omg": "./dist/src/main.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@omgbase/core": "^0.
|
|
48
|
+
"@omgbase/core": "^0.8.0",
|
|
49
49
|
"@omgbase/fs-adapter": "^0.2.0",
|
|
50
|
-
"@omgbase/sync": "^0.4.
|
|
50
|
+
"@omgbase/sync": "^0.4.7",
|
|
51
51
|
"yaml": "^2.9.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|