@lapis-notes/api 0.1.3 → 0.2.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/CHANGELOG.md +304 -13
- package/README.md +19 -0
- package/dist/__tests__/fixtures/indexed-mutations.json +6862 -0
- package/dist/__tests__/fixtures/memory-storage.json +309 -0
- package/dist/__tests__/fixtures/native-facade-contract.json +3224 -0
- package/dist/__tests__/fixtures/projection-query.json +195 -0
- package/dist/__tests__/fixtures/projection-values.json +60 -0
- package/dist/__tests__/fixtures/search-preparation.json +1513 -0
- package/dist/__tests__/fixtures/search-retrieval.json +15409 -0
- package/dist/__tests__/fixtures/search-semantic-model.json +3691 -0
- package/dist/__tests__/fixtures/search-semantic-retrieval.json +6603 -0
- package/dist/__tests__/fixtures/search-storage.json +409 -0
- package/dist/__tests__/fixtures/task-projection.json +428 -0
- package/dist/__tests__/indexed-mutation-support.js +262 -0
- package/dist/__tests__/projection-query-support.js +40 -0
- package/dist/__tests__/search-retrieval-support.js +47 -0
- package/dist/app-database-host.d.ts +1 -0
- package/dist/app-shell-plugin-persistence.d.ts +3 -2
- package/dist/app-shell-plugin-persistence.js +37 -3
- package/dist/cache.svelte.d.ts +8 -1
- package/dist/cache.svelte.js +103 -5
- package/dist/command.svelte.js +29 -2
- package/dist/components/editor/editor.css +4 -0
- package/dist/components/editor/editor.svelte +24 -11
- package/dist/components/editor/embedded-editor-surface.js +3 -1
- package/dist/components/editor/inline-title-alignment.d.ts +3 -0
- package/dist/components/editor/inline-title-alignment.js +57 -0
- package/dist/configuration.svelte.d.ts +270 -206
- package/dist/configuration.svelte.js +161 -86
- package/dist/context.svelte.d.ts +23 -3
- package/dist/context.svelte.js +68 -30
- package/dist/diagnostics.d.ts +8 -0
- package/dist/diagnostics.js +6 -0
- package/dist/editor-save-context.d.ts +35 -0
- package/dist/editor-save-context.js +132 -0
- package/dist/editor-view-registry.d.ts +10 -0
- package/dist/editor-view-registry.js +44 -4
- package/dist/editor.svelte.d.ts +19 -1
- package/dist/editor.svelte.js +528 -55
- package/dist/embed-registry.d.ts +10 -0
- package/dist/embed-registry.js +15 -0
- package/dist/file-editing-failures.d.ts +2 -0
- package/dist/file-editing-failures.js +29 -0
- package/dist/file-editing-native-issues.d.ts +19 -0
- package/dist/file-editing-native-issues.js +65 -0
- package/dist/file-editing-sessions.d.ts +76 -0
- package/dist/file-editing-sessions.js +367 -0
- package/dist/file-manager.d.ts +9 -1
- package/dist/file-manager.js +45 -3
- package/dist/file-state-store.d.ts +5 -0
- package/dist/file-state-store.js +34 -0
- package/dist/file-text-conflicts.d.ts +25 -0
- package/dist/file-text-conflicts.js +35 -0
- package/dist/file-text-mutation.d.ts +13 -0
- package/dist/file-text-mutation.js +100 -0
- package/dist/file-text-persistence.d.ts +36 -0
- package/dist/file-text-persistence.js +234 -0
- package/dist/file-text-state-writer.d.ts +34 -0
- package/dist/file-text-state-writer.js +183 -0
- package/dist/files-configuration.d.ts +20 -0
- package/dist/files-configuration.js +47 -0
- package/dist/generated/plugin-host-modules.schema.generated.d.ts +114 -34
- package/dist/generated/plugin-host-modules.schema.generated.js +132 -34
- package/dist/glob.d.ts +3 -0
- package/dist/glob.js +2 -1
- package/dist/icons/changes.d.ts +3 -0
- package/dist/icons/changes.js +16 -0
- package/dist/icons/index.d.ts +5 -1
- package/dist/icons/index.js +44 -3
- package/dist/icons/registry.d.ts +35 -0
- package/dist/icons/registry.js +154 -0
- package/dist/icons/safe-svg.d.ts +2 -0
- package/dist/icons/safe-svg.js +44 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +4 -1
- package/dist/lapis-extension.d.ts +6 -2
- package/dist/lapis-extension.js +2 -0
- package/dist/metadata-store.d.ts +23 -0
- package/dist/metadata-store.js +1 -0
- package/dist/metadata.svelte.js +45 -2
- package/dist/native-background-indexing.d.ts +48 -0
- package/dist/native-background-indexing.js +208 -0
- package/dist/native-database-protocol.d.ts +29 -0
- package/dist/native-database-protocol.js +1 -0
- package/dist/native-editing-intent-lease.d.ts +17 -0
- package/dist/native-editing-intent-lease.js +188 -0
- package/dist/native-editing-intents-protocol.d.ts +70 -0
- package/dist/native-editing-intents-protocol.js +1 -0
- package/dist/native-editing-intents.d.ts +8 -0
- package/dist/native-editing-intents.js +1 -0
- package/dist/native-editing-problems.d.ts +3 -0
- package/dist/native-editing-problems.js +180 -0
- package/dist/native-editing-recovery.d.ts +24 -0
- package/dist/native-editing-recovery.js +198 -0
- package/dist/native-editing-session.d.ts +51 -0
- package/dist/native-editing-session.js +251 -0
- package/dist/native-history-index-protocol.d.ts +80 -0
- package/dist/native-history-index-protocol.js +1 -0
- package/dist/native-history-index.d.ts +6 -0
- package/dist/native-history-index.js +1 -0
- package/dist/native-indexing-protocol.d.ts +63 -0
- package/dist/native-indexing-protocol.js +1 -0
- package/dist/native-participant-protocol.d.ts +67 -0
- package/dist/native-participant-protocol.js +3 -0
- package/dist/native-queue-protocol.d.ts +73 -0
- package/dist/native-queue-protocol.js +3 -0
- package/dist/native-tasks-protocol.d.ts +264 -0
- package/dist/native-tasks-protocol.js +1 -0
- package/dist/native-tasks.d.ts +35 -0
- package/dist/native-tasks.js +79 -0
- package/dist/native-turn-protocol.d.ts +81 -0
- package/dist/native-turn-protocol.js +1 -0
- package/dist/native-turns.d.ts +29 -0
- package/dist/native-turns.js +2 -0
- package/dist/plugin-asset-server.js +3 -2
- package/dist/plugin-dependency-resolver.d.ts +1 -1
- package/dist/plugin-distribution/compatibility.d.ts +1 -1
- package/dist/plugin-distribution/compatibility.js +10 -5
- package/dist/plugin-distribution/installed-plugin-state.js +2 -1
- package/dist/plugin-distribution/installer.d.ts +6 -0
- package/dist/plugin-distribution/installer.js +90 -37
- package/dist/plugin-distribution/manager.d.ts +4 -1
- package/dist/plugin-distribution/manager.js +12 -5
- package/dist/plugin-distribution/registry-cache.js +2 -1
- package/dist/plugin-distribution/registry-source-state.js +2 -1
- package/dist/plugin-distribution/schemas.d.ts +26 -8
- package/dist/plugin-distribution/schemas.js +2 -1
- package/dist/plugin-distribution/types.d.ts +4 -0
- package/dist/plugin-manager.d.ts +21 -5
- package/dist/plugin-manager.js +228 -64
- package/dist/plugin-runtime-entry.d.ts +1 -1
- package/dist/plugin-runtime-entry.js +16 -0
- package/dist/plugin.d.ts +19 -3
- package/dist/plugin.js +110 -44
- package/dist/registry-schema/catalog-v1.d.ts +60 -9
- package/dist/registry-schema/catalog-v1.js +2 -1
- package/dist/registry-schema/catalog-v2.d.ts +60 -9
- package/dist/registry-schema/catalog-v2.js +1 -1
- package/dist/search-result-provider.d.ts +95 -0
- package/dist/search-result-provider.js +42 -0
- package/dist/status-bar.svelte.d.ts +26 -20
- package/dist/status-bar.svelte.js +1 -0
- package/dist/storage/app-database.d.ts +9 -23
- package/dist/storage/app-database.js +41 -34
- package/dist/storage/desktop-native.d.ts +5 -3
- package/dist/storage/desktop-native.js +59 -6
- package/dist/storage/directory-watcher.d.ts +27 -0
- package/dist/storage/directory-watcher.js +201 -0
- package/dist/storage/fs.d.ts +14 -27
- package/dist/storage/fs.js +2 -168
- package/dist/storage/index-projection.js +33 -15
- package/dist/storage/memory-vault-adapter.d.ts +2 -0
- package/dist/storage/memory-vault-adapter.js +14 -1
- package/dist/storage/path.d.ts +6 -2
- package/dist/storage/path.js +8 -2
- package/dist/storage/projection-query-candidates.d.ts +3 -0
- package/dist/storage/projection-query-candidates.js +69 -0
- package/dist/storage/remote-app-database.d.ts +2 -2
- package/dist/storage/remote-app-database.js +1 -1
- package/dist/storage/runtime.d.ts +3 -0
- package/dist/storage/runtime.js +3 -0
- package/dist/storage/search-embedding-record.d.ts +3 -0
- package/dist/storage/search-embedding-record.js +18 -0
- package/dist/storage/turso-app-database.d.ts +2 -0
- package/dist/storage/turso-app-database.js +67 -30
- package/dist/storage/vault-listing.d.ts +3 -0
- package/dist/storage/vault-listing.js +36 -0
- package/dist/storage/vault-reconciliation.d.ts +19 -0
- package/dist/storage/vault-reconciliation.js +137 -0
- package/dist/storage/vault-session.d.ts +8 -0
- package/dist/storage/vault-session.js +10 -2
- package/dist/storage/vault.svelte.d.ts +53 -4
- package/dist/storage/vault.svelte.js +223 -87
- package/dist/sync-editor-flush.d.ts +6 -0
- package/dist/sync-editor-flush.js +22 -0
- package/dist/sync-host-local.d.ts +15 -0
- package/dist/sync-host-local.js +228 -0
- package/dist/sync-host-security.d.ts +24 -9
- package/dist/sync-host-security.js +47 -14
- package/dist/sync-host.d.ts +33 -4
- package/dist/sync-host.js +160 -10
- package/dist/sync-repository.d.ts +106 -0
- package/dist/sync-repository.js +18 -0
- package/dist/vault-change-views.d.ts +4 -0
- package/dist/vault-change-views.js +43 -0
- package/dist/vault-changes.d.ts +37 -0
- package/dist/vault-changes.js +228 -0
- package/dist/view.svelte.d.ts +182 -149
- package/dist/view.svelte.js +39 -21
- package/dist/workspace-close-guard.d.ts +3 -0
- package/dist/workspace-close-guard.js +35 -0
- package/dist/workspace-host-internal.js +10 -2
- package/dist/workspace-layout-normalizer.d.ts +4 -2
- package/dist/workspace-layout-normalizer.js +5 -5
- package/dist/workspace-view-document.d.ts +3 -0
- package/dist/workspace-view-document.js +12 -0
- package/dist/workspace.svelte.d.ts +13 -2
- package/dist/workspace.svelte.js +371 -82
- package/package.json +61 -8
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectionId": "books/book",
|
|
3
|
+
"rows": [
|
|
4
|
+
{
|
|
5
|
+
"id": "a",
|
|
6
|
+
"title": "Zeta",
|
|
7
|
+
"rank": 2,
|
|
8
|
+
"optional": null,
|
|
9
|
+
"literal.key": "flat",
|
|
10
|
+
"literal": {
|
|
11
|
+
"key": "nested"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "b",
|
|
16
|
+
"title": "alpha",
|
|
17
|
+
"rank": 1
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "c",
|
|
21
|
+
"title": "Écho",
|
|
22
|
+
"rank": 3,
|
|
23
|
+
"optional": "value"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "d",
|
|
27
|
+
"title": "beta",
|
|
28
|
+
"rank": null,
|
|
29
|
+
"optional": "other"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "e",
|
|
33
|
+
"title": "Beta",
|
|
34
|
+
"rank": 4,
|
|
35
|
+
"optional": "bound"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"cases": [
|
|
39
|
+
{
|
|
40
|
+
"name": "null membership includes null and missing fields",
|
|
41
|
+
"query": {
|
|
42
|
+
"where": {
|
|
43
|
+
"op": "in",
|
|
44
|
+
"field": "optional",
|
|
45
|
+
"values": [null]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"ids": ["a", "b"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "fields are direct own properties",
|
|
52
|
+
"query": {
|
|
53
|
+
"where": {
|
|
54
|
+
"op": "compare",
|
|
55
|
+
"field": "literal.key",
|
|
56
|
+
"comparison": "eq",
|
|
57
|
+
"value": "flat"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"ids": ["a"]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "nested logical operations retain missing-field semantics",
|
|
64
|
+
"query": {
|
|
65
|
+
"where": {
|
|
66
|
+
"op": "and",
|
|
67
|
+
"operands": [
|
|
68
|
+
{
|
|
69
|
+
"op": "not",
|
|
70
|
+
"operand": {
|
|
71
|
+
"op": "exists",
|
|
72
|
+
"field": "optional"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"op": "or",
|
|
77
|
+
"operands": [
|
|
78
|
+
{
|
|
79
|
+
"op": "compare",
|
|
80
|
+
"field": "rank",
|
|
81
|
+
"comparison": "gte",
|
|
82
|
+
"value": 2
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"op": "compare",
|
|
86
|
+
"field": "id",
|
|
87
|
+
"comparison": "eq",
|
|
88
|
+
"value": "b"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"ids": ["a", "b"]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "Unicode text uses the retained locale comparison",
|
|
99
|
+
"query": {
|
|
100
|
+
"orderBy": [
|
|
101
|
+
{
|
|
102
|
+
"field": "title",
|
|
103
|
+
"direction": "asc"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"ids": ["b", "d", "e", "c", "a"]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "numeric ordering keeps nulls last",
|
|
111
|
+
"query": {
|
|
112
|
+
"orderBy": [
|
|
113
|
+
{
|
|
114
|
+
"field": "rank",
|
|
115
|
+
"direction": "asc",
|
|
116
|
+
"nulls": "last"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"ids": ["b", "a", "c", "e", "d"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "text ordering precedes the page cut",
|
|
124
|
+
"query": {
|
|
125
|
+
"orderBy": [
|
|
126
|
+
{
|
|
127
|
+
"field": "title",
|
|
128
|
+
"direction": "asc"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"limit": 2
|
|
132
|
+
},
|
|
133
|
+
"ids": ["b", "d"]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "mixed scalar comparisons retain evaluator semantics",
|
|
137
|
+
"query": {
|
|
138
|
+
"where": {
|
|
139
|
+
"op": "compare",
|
|
140
|
+
"field": "rank",
|
|
141
|
+
"comparison": "eq",
|
|
142
|
+
"value": "1"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"ids": ["b"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "negation preserves missing values",
|
|
149
|
+
"query": {
|
|
150
|
+
"where": {
|
|
151
|
+
"op": "not",
|
|
152
|
+
"operand": {
|
|
153
|
+
"op": "compare",
|
|
154
|
+
"field": "optional",
|
|
155
|
+
"comparison": "eq",
|
|
156
|
+
"value": "value"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"ids": ["a", "b", "d", "e"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "empty conjunction is true",
|
|
164
|
+
"query": {
|
|
165
|
+
"where": {
|
|
166
|
+
"op": "and",
|
|
167
|
+
"operands": []
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"ids": ["a", "b", "c", "d", "e"]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "empty disjunction is false",
|
|
174
|
+
"query": {
|
|
175
|
+
"where": {
|
|
176
|
+
"op": "or",
|
|
177
|
+
"operands": []
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"ids": []
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "descending default retains null ordering",
|
|
184
|
+
"query": {
|
|
185
|
+
"orderBy": [
|
|
186
|
+
{
|
|
187
|
+
"field": "rank",
|
|
188
|
+
"direction": "desc"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"ids": ["d", "e", "c", "a", "b"]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"numberBoolean": { "type": "number", "indexed": true },
|
|
4
|
+
"numberString": { "type": "number", "indexed": true },
|
|
5
|
+
"numberInvalid": { "type": "number", "indexed": true },
|
|
6
|
+
"numberUnicode": { "type": "number", "indexed": true },
|
|
7
|
+
"boolean": { "type": "boolean", "indexed": true, "cardinality": "many" },
|
|
8
|
+
"text": { "type": "string", "sortable": true, "cardinality": "many" },
|
|
9
|
+
"date": { "type": "date", "indexed": true },
|
|
10
|
+
"datetime": { "type": "datetime", "indexed": true },
|
|
11
|
+
"missing": { "type": "path", "indexed": true },
|
|
12
|
+
"empty": { "type": "json", "indexed": true, "cardinality": "many" },
|
|
13
|
+
"unindexed": { "type": "string" }
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"numberBoolean": true,
|
|
17
|
+
"numberString": "0x10",
|
|
18
|
+
"numberInvalid": "true",
|
|
19
|
+
"numberUnicode": "\u00851\u0085",
|
|
20
|
+
"boolean": [false, true, 0, 1, "", "false", [], {}, null],
|
|
21
|
+
"text": [
|
|
22
|
+
[1, null, ["a", true]],
|
|
23
|
+
{ "nested": true },
|
|
24
|
+
[],
|
|
25
|
+
true,
|
|
26
|
+
1.0,
|
|
27
|
+
1e-7,
|
|
28
|
+
1e21
|
|
29
|
+
],
|
|
30
|
+
"date": "2026-10-24",
|
|
31
|
+
"datetime": " 12.5 ",
|
|
32
|
+
"empty": [],
|
|
33
|
+
"unindexed": "omit"
|
|
34
|
+
},
|
|
35
|
+
"expected": [
|
|
36
|
+
["numberBoolean", 0, "number", null, 1, null, null, null],
|
|
37
|
+
["numberString", 0, "number", null, 16, null, null, null],
|
|
38
|
+
["numberInvalid", 0, "number", null, null, null, null, null],
|
|
39
|
+
["numberUnicode", 0, "number", null, null, null, null, null],
|
|
40
|
+
["boolean", 0, "boolean", null, null, false, null, null],
|
|
41
|
+
["boolean", 1, "boolean", null, null, true, null, null],
|
|
42
|
+
["boolean", 2, "boolean", null, null, false, null, null],
|
|
43
|
+
["boolean", 3, "boolean", null, null, true, null, null],
|
|
44
|
+
["boolean", 4, "boolean", null, null, false, null, null],
|
|
45
|
+
["boolean", 5, "boolean", null, null, true, null, null],
|
|
46
|
+
["boolean", 6, "boolean", null, null, false, null, null],
|
|
47
|
+
["boolean", 7, "boolean", null, null, true, null, null],
|
|
48
|
+
["boolean", 8, "boolean", null, null, null, null, null],
|
|
49
|
+
["text", 0, "string", "1,,a,true", null, null, null, null],
|
|
50
|
+
["text", 1, "string", "[object Object]", null, null, null, null],
|
|
51
|
+
["text", 2, "string", "", null, null, null, null],
|
|
52
|
+
["text", 3, "string", "true", null, null, null, null],
|
|
53
|
+
["text", 4, "string", "1", null, null, null, null],
|
|
54
|
+
["text", 5, "string", "1e-7", null, null, null, null],
|
|
55
|
+
["text", 6, "string", "1e+21", null, null, null, null],
|
|
56
|
+
["date", 0, "date", null, null, null, "2026-10-24", null],
|
|
57
|
+
["datetime", 0, "datetime", null, null, null, null, 12.5],
|
|
58
|
+
["missing", 0, "path", null, null, null, null, null]
|
|
59
|
+
]
|
|
60
|
+
}
|