@gmickel/gno 1.17.0 → 1.19.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/README.md +18 -4
- package/assets/skill/SKILL.md +44 -1
- package/assets/skill/mcp-reference.md +21 -0
- package/package.json +3 -2
- package/spec/AGENTS.md +83 -0
- package/spec/CLAUDE.md +83 -0
- package/spec/bench-fixture.schema.json +137 -0
- package/spec/cli.md +2894 -0
- package/spec/db/schema.sql +442 -0
- package/spec/evals-agentic.md +510 -0
- package/spec/evals.md +1106 -0
- package/spec/mcp.md +2229 -0
- package/spec/output-schemas/activation-verification.schema.json +515 -0
- package/spec/output-schemas/ask.schema.json +366 -0
- package/spec/output-schemas/backlinks.schema.json +131 -0
- package/spec/output-schemas/bench-result.schema.json +120 -0
- package/spec/output-schemas/capture-receipt.schema.json +143 -0
- package/spec/output-schemas/collection-list.schema.json +45 -0
- package/spec/output-schemas/context-capsule-v1.schema.json +691 -0
- package/spec/output-schemas/context-capsule-verification.schema.json +1338 -0
- package/spec/output-schemas/context-list.schema.json +21 -0
- package/spec/output-schemas/doctor.schema.json +313 -0
- package/spec/output-schemas/error.schema.json +30 -0
- package/spec/output-schemas/expansion.schema.json +37 -0
- package/spec/output-schemas/get.schema.json +140 -0
- package/spec/output-schemas/graph-query.schema.json +99 -0
- package/spec/output-schemas/graph.schema.json +371 -0
- package/spec/output-schemas/links-list.schema.json +186 -0
- package/spec/output-schemas/mcp-add-collection-result.schema.json +23 -0
- package/spec/output-schemas/mcp-capture-result.schema.json +152 -0
- package/spec/output-schemas/mcp-http-error.schema.json +30 -0
- package/spec/output-schemas/mcp-job-list.schema.json +58 -0
- package/spec/output-schemas/mcp-job-status.schema.json +224 -0
- package/spec/output-schemas/mcp-remove-result.schema.json +39 -0
- package/spec/output-schemas/mcp-sync-result.schema.json +41 -0
- package/spec/output-schemas/mcp-tag-result.schema.json +33 -0
- package/spec/output-schemas/models-list.schema.json +93 -0
- package/spec/output-schemas/multi-get.schema.json +103 -0
- package/spec/output-schemas/process-status.schema.json +119 -0
- package/spec/output-schemas/query-diagnose.schema.json +123 -0
- package/spec/output-schemas/resident-status.schema.json +154 -0
- package/spec/output-schemas/retrieval-trace-common.schema.json +492 -0
- package/spec/output-schemas/retrieval-trace-delete.schema.json +16 -0
- package/spec/output-schemas/retrieval-trace-export.schema.json +61 -0
- package/spec/output-schemas/retrieval-trace-filters.schema.json +139 -0
- package/spec/output-schemas/retrieval-trace-judgment.schema.json +15 -0
- package/spec/output-schemas/retrieval-trace-list.schema.json +18 -0
- package/spec/output-schemas/retrieval-trace-payloads.schema.json +178 -0
- package/spec/output-schemas/retrieval-trace-purge.schema.json +31 -0
- package/spec/output-schemas/retrieval-trace-qrels.schema.json +303 -0
- package/spec/output-schemas/retrieval-trace-replay.schema.json +286 -0
- package/spec/output-schemas/retrieval-trace-show.schema.json +69 -0
- package/spec/output-schemas/retrieval-trace-summary.schema.json +65 -0
- package/spec/output-schemas/search-result.schema.json +154 -0
- package/spec/output-schemas/search-results.schema.json +338 -0
- package/spec/output-schemas/similar.schema.json +84 -0
- package/spec/output-schemas/status.schema.json +676 -0
- package/spec/output-schemas/tags-list.schema.json +48 -0
- package/src/app/context-runtime-types.ts +3 -0
- package/src/app/context-runtime.ts +15 -1
- package/src/cli/commands/ask.ts +106 -36
- package/src/cli/commands/context-build.ts +56 -9
- package/src/cli/commands/daemon.ts +69 -2
- package/src/cli/commands/get.ts +64 -3
- package/src/cli/commands/models/pull.ts +13 -3
- package/src/cli/commands/query.ts +62 -23
- package/src/cli/commands/replay.ts +140 -0
- package/src/cli/commands/search.ts +48 -3
- package/src/cli/commands/shared.ts +3 -1
- package/src/cli/commands/status.ts +2 -0
- package/src/cli/commands/trace.ts +200 -0
- package/src/cli/commands/vsearch.ts +75 -53
- package/src/cli/detach.ts +37 -20
- package/src/cli/program.ts +329 -27
- package/src/config/index.ts +12 -0
- package/src/config/retrieval-traces.ts +56 -0
- package/src/config/types.ts +41 -0
- package/src/core/context-compiler.ts +11 -4
- package/src/core/job-manager.ts +19 -0
- package/src/core/mutation-generations.ts +33 -0
- package/src/core/retrieval-qrels.ts +405 -0
- package/src/core/retrieval-replay-candidate.ts +368 -0
- package/src/core/retrieval-replay-types.ts +109 -0
- package/src/core/retrieval-replay-validation.ts +89 -0
- package/src/core/retrieval-replay.ts +441 -0
- package/src/core/retrieval-trace-evidence-origin.ts +175 -0
- package/src/core/retrieval-trace-export.ts +113 -0
- package/src/core/retrieval-trace-filter-normalization.ts +27 -0
- package/src/core/retrieval-trace-filters.ts +19 -0
- package/src/core/retrieval-trace-management-helpers.ts +247 -0
- package/src/core/retrieval-trace-management-types.ts +132 -0
- package/src/core/retrieval-trace-management.ts +422 -0
- package/src/core/retrieval-trace-request.ts +141 -0
- package/src/core/retrieval-trace-session.ts +494 -0
- package/src/core/retrieval-trace.ts +472 -0
- package/src/llm/cache.ts +13 -3
- package/src/llm/nodeLlamaCpp/adapter.ts +10 -1
- package/src/llm/nodeLlamaCpp/lifecycle.ts +71 -0
- package/src/mcp/context.ts +161 -0
- package/src/mcp/http-security.ts +477 -0
- package/src/mcp/http-session.ts +272 -0
- package/src/mcp/http-transport.ts +370 -0
- package/src/mcp/resources/index.ts +141 -134
- package/src/mcp/server.ts +19 -79
- package/src/mcp/tools/add-collection.ts +3 -1
- package/src/mcp/tools/capture.ts +3 -0
- package/src/mcp/tools/clear-collection-embeddings.ts +2 -0
- package/src/mcp/tools/context.ts +68 -16
- package/src/mcp/tools/embed.ts +62 -52
- package/src/mcp/tools/get.ts +35 -1
- package/src/mcp/tools/index-cmd.ts +88 -74
- package/src/mcp/tools/index.ts +96 -2
- package/src/mcp/tools/query.ts +95 -64
- package/src/mcp/tools/remove-collection.ts +2 -0
- package/src/mcp/tools/search.ts +36 -13
- package/src/mcp/tools/status.ts +11 -0
- package/src/mcp/tools/sync.ts +16 -14
- package/src/mcp/tools/trace.ts +143 -0
- package/src/mcp/tools/vsearch.ts +71 -38
- package/src/mcp/tools/workspace-write.ts +7 -3
- package/src/pipeline/answer.ts +167 -26
- package/src/pipeline/graph-retrieval.ts +15 -1
- package/src/pipeline/hybrid.ts +151 -43
- package/src/pipeline/search.ts +36 -3
- package/src/pipeline/trace-metadata.ts +47 -0
- package/src/pipeline/types.ts +43 -0
- package/src/pipeline/vsearch.ts +101 -38
- package/src/sdk/client.ts +380 -71
- package/src/sdk/documents.ts +48 -1
- package/src/sdk/index.ts +17 -0
- package/src/sdk/types.ts +28 -0
- package/src/serve/background-runtime.ts +12 -212
- package/src/serve/context-capsule.ts +67 -8
- package/src/serve/embed-scheduler.ts +74 -43
- package/src/serve/index.ts +9 -0
- package/src/serve/jobs.ts +78 -80
- package/src/serve/public/app.tsx +12 -1
- package/src/serve/public/components/HealthCenter.tsx +74 -1
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/public/lib/workspace-tabs.ts +2 -0
- package/src/serve/public/pages/Dashboard.tsx +11 -0
- package/src/serve/public/pages/TraceHistory.tsx +478 -0
- package/src/serve/public/pages/trace-history-detail.tsx +224 -0
- package/src/serve/resident-admission.ts +159 -0
- package/src/serve/resident-background-work.ts +39 -0
- package/src/serve/resident-request.ts +55 -0
- package/src/serve/resident-runtime.ts +490 -0
- package/src/serve/resident-status.ts +96 -0
- package/src/serve/retrieval-trace.ts +28 -0
- package/src/serve/routes/api.ts +629 -239
- package/src/serve/routes/mcp.ts +69 -0
- package/src/serve/routes/traces.ts +156 -0
- package/src/serve/server.ts +276 -37
- package/src/serve/status-model.ts +51 -0
- package/src/serve/status.ts +5 -0
- package/src/store/index.ts +31 -0
- package/src/store/migrations/014-retrieval-traces.ts +303 -0
- package/src/store/migrations/index.ts +2 -0
- package/src/store/retrieval-trace-codec.ts +384 -0
- package/src/store/sqlite/adapter.ts +179 -10
- package/src/store/sqlite/retrieval-trace-management-store.ts +341 -0
- package/src/store/sqlite/retrieval-trace-retention.ts +349 -0
- package/src/store/sqlite/retrieval-trace-rows.ts +267 -0
- package/src/store/sqlite/retrieval-trace-store.ts +515 -0
- package/src/store/types.ts +297 -0
- package/src/store/vector/sqlite-vec.ts +76 -1
- package/src/store/vector/types.ts +1 -1
|
@@ -0,0 +1,676 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "gno://schemas/status@1.0",
|
|
4
|
+
"title": "GNO Status",
|
|
5
|
+
"description": "Index status and health information",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"indexName",
|
|
10
|
+
"collections",
|
|
11
|
+
"totalDocuments",
|
|
12
|
+
"totalChunks",
|
|
13
|
+
"embeddingBacklog",
|
|
14
|
+
"healthy",
|
|
15
|
+
"recentErrors",
|
|
16
|
+
"activePreset",
|
|
17
|
+
"capabilities",
|
|
18
|
+
"activation",
|
|
19
|
+
"onboarding",
|
|
20
|
+
"health",
|
|
21
|
+
"background",
|
|
22
|
+
"bootstrap",
|
|
23
|
+
"resident"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"resident": {
|
|
27
|
+
"$ref": "gno://schemas/resident-status@1.0"
|
|
28
|
+
},
|
|
29
|
+
"indexName": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Name of the index"
|
|
32
|
+
},
|
|
33
|
+
"configPath": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Path to config file"
|
|
36
|
+
},
|
|
37
|
+
"dbPath": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Path to SQLite database"
|
|
40
|
+
},
|
|
41
|
+
"collections": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"description": "Collection statistics",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": [
|
|
47
|
+
"name",
|
|
48
|
+
"path",
|
|
49
|
+
"documentCount",
|
|
50
|
+
"chunkCount",
|
|
51
|
+
"embeddedCount"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"name": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Collection name"
|
|
57
|
+
},
|
|
58
|
+
"path": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Collection root path"
|
|
61
|
+
},
|
|
62
|
+
"documentCount": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"description": "Number of active documents",
|
|
65
|
+
"minimum": 0
|
|
66
|
+
},
|
|
67
|
+
"chunkCount": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"description": "Number of content chunks",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
},
|
|
72
|
+
"embeddedCount": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"description": "Number of chunks with embeddings",
|
|
75
|
+
"minimum": 0
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"totalDocuments": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"description": "Total documents across all collections",
|
|
83
|
+
"minimum": 0
|
|
84
|
+
},
|
|
85
|
+
"totalChunks": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"description": "Total chunks across all collections",
|
|
88
|
+
"minimum": 0
|
|
89
|
+
},
|
|
90
|
+
"embeddingBacklog": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"description": "Chunks awaiting embedding",
|
|
93
|
+
"minimum": 0
|
|
94
|
+
},
|
|
95
|
+
"recentErrors": {
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"description": "Recent ingest errors in the last 24 hours",
|
|
98
|
+
"minimum": 0
|
|
99
|
+
},
|
|
100
|
+
"lastUpdated": {
|
|
101
|
+
"type": ["string", "null"],
|
|
102
|
+
"description": "Last index update time as an RFC 3339 UTC timestamp",
|
|
103
|
+
"format": "date-time"
|
|
104
|
+
},
|
|
105
|
+
"healthy": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Overall health status"
|
|
108
|
+
},
|
|
109
|
+
"activePreset": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"required": ["id", "name"],
|
|
112
|
+
"properties": {
|
|
113
|
+
"id": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"name": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"capabilities": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"required": ["bm25", "vector", "hybrid", "answer"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"bm25": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"vector": {
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"hybrid": {
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
},
|
|
134
|
+
"answer": {
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"activation": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": [
|
|
143
|
+
"schemaVersion",
|
|
144
|
+
"usable",
|
|
145
|
+
"healthy",
|
|
146
|
+
"collections",
|
|
147
|
+
"connectors",
|
|
148
|
+
"connectorProjection"
|
|
149
|
+
],
|
|
150
|
+
"properties": {
|
|
151
|
+
"schemaVersion": { "const": "1.0" },
|
|
152
|
+
"usable": { "type": "boolean" },
|
|
153
|
+
"healthy": { "type": "boolean" },
|
|
154
|
+
"collections": {
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"required": [
|
|
160
|
+
"collection",
|
|
161
|
+
"ready",
|
|
162
|
+
"generatedAt",
|
|
163
|
+
"stages",
|
|
164
|
+
"semanticAvailability",
|
|
165
|
+
"remediation"
|
|
166
|
+
],
|
|
167
|
+
"properties": {
|
|
168
|
+
"collection": { "type": "string" },
|
|
169
|
+
"ready": { "type": "boolean" },
|
|
170
|
+
"generatedAt": {
|
|
171
|
+
"type": ["string", "null"],
|
|
172
|
+
"format": "date-time"
|
|
173
|
+
},
|
|
174
|
+
"stages": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["index", "lexical", "semantic", "connector"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"index": {
|
|
180
|
+
"$ref": "#/properties/activation/definitions/stage"
|
|
181
|
+
},
|
|
182
|
+
"lexical": {
|
|
183
|
+
"$ref": "#/properties/activation/definitions/stage"
|
|
184
|
+
},
|
|
185
|
+
"semantic": {
|
|
186
|
+
"$ref": "#/properties/activation/definitions/stage"
|
|
187
|
+
},
|
|
188
|
+
"connector": {
|
|
189
|
+
"$ref": "#/properties/activation/definitions/stage"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"semanticAvailability": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"additionalProperties": false,
|
|
196
|
+
"required": ["status", "code", "command"],
|
|
197
|
+
"allOf": [
|
|
198
|
+
{
|
|
199
|
+
"if": {
|
|
200
|
+
"properties": {
|
|
201
|
+
"code": { "const": "vector_unavailable" }
|
|
202
|
+
},
|
|
203
|
+
"required": ["code"]
|
|
204
|
+
},
|
|
205
|
+
"then": {
|
|
206
|
+
"properties": { "status": { "const": "skipped" } }
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"if": {
|
|
211
|
+
"properties": {
|
|
212
|
+
"code": {
|
|
213
|
+
"enum": [
|
|
214
|
+
"models_missing",
|
|
215
|
+
"embeddings_pending",
|
|
216
|
+
"semantic_not_checked"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": ["code"]
|
|
221
|
+
},
|
|
222
|
+
"then": {
|
|
223
|
+
"properties": { "status": { "const": "pending" } }
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"properties": {
|
|
228
|
+
"status": { "enum": ["pending", "skipped"] },
|
|
229
|
+
"code": {
|
|
230
|
+
"enum": [
|
|
231
|
+
"models_missing",
|
|
232
|
+
"embeddings_pending",
|
|
233
|
+
"vector_unavailable",
|
|
234
|
+
"semantic_not_checked"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"command": { "type": "string" }
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"remediation": {
|
|
241
|
+
"type": ["object", "null"],
|
|
242
|
+
"additionalProperties": false,
|
|
243
|
+
"required": ["stage", "code", "command", "message"],
|
|
244
|
+
"properties": {
|
|
245
|
+
"stage": {
|
|
246
|
+
"enum": ["index", "lexical", "semantic", "connector"]
|
|
247
|
+
},
|
|
248
|
+
"code": {
|
|
249
|
+
"$ref": "#/properties/activation/definitions/code"
|
|
250
|
+
},
|
|
251
|
+
"command": { "type": "string" },
|
|
252
|
+
"message": { "type": "string" }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"connectors": {
|
|
259
|
+
"type": "array",
|
|
260
|
+
"maxItems": 64,
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"additionalProperties": false,
|
|
264
|
+
"required": ["collection", "target", "status", "remediation"],
|
|
265
|
+
"properties": {
|
|
266
|
+
"collection": { "type": "string" },
|
|
267
|
+
"target": { "type": "string" },
|
|
268
|
+
"status": {
|
|
269
|
+
"enum": ["passed", "pending", "failed", "skipped"]
|
|
270
|
+
},
|
|
271
|
+
"code": {
|
|
272
|
+
"$ref": "#/properties/activation/definitions/code"
|
|
273
|
+
},
|
|
274
|
+
"remediation": { "type": ["string", "null"] }
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"connectorProjection": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"additionalProperties": false,
|
|
281
|
+
"required": ["total", "projected", "truncated"],
|
|
282
|
+
"properties": {
|
|
283
|
+
"total": {
|
|
284
|
+
"type": "integer",
|
|
285
|
+
"minimum": 0,
|
|
286
|
+
"description": "All configured collection and connector target pairs before projection bounds."
|
|
287
|
+
},
|
|
288
|
+
"projected": {
|
|
289
|
+
"type": "integer",
|
|
290
|
+
"minimum": 0,
|
|
291
|
+
"maximum": 64,
|
|
292
|
+
"description": "Pairs included in connectors; always equals connectors.length."
|
|
293
|
+
},
|
|
294
|
+
"truncated": {
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"description": "True exactly when total is greater than projected; omitted pairs have no claimed result."
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"definitions": {
|
|
302
|
+
"code": {
|
|
303
|
+
"enum": [
|
|
304
|
+
"no_documents",
|
|
305
|
+
"index_out_of_sync",
|
|
306
|
+
"no_probe_term",
|
|
307
|
+
"index_query_failed",
|
|
308
|
+
"retrieval_mismatch",
|
|
309
|
+
"semantic_not_checked",
|
|
310
|
+
"connector_not_requested",
|
|
311
|
+
"connector_not_configured",
|
|
312
|
+
"connector_probe_unavailable",
|
|
313
|
+
"connector_unsupported_config",
|
|
314
|
+
"connector_start_failed",
|
|
315
|
+
"connector_timeout",
|
|
316
|
+
"connector_missing_tools",
|
|
317
|
+
"connector_status_failed",
|
|
318
|
+
"connector_search_failed",
|
|
319
|
+
"connector_result_mismatch",
|
|
320
|
+
"target_runtime_unverifiable"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"stage": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"additionalProperties": false,
|
|
326
|
+
"required": ["status", "startedAt", "completedAt", "latencyMs"],
|
|
327
|
+
"properties": {
|
|
328
|
+
"status": {
|
|
329
|
+
"enum": ["passed", "pending", "failed", "skipped"]
|
|
330
|
+
},
|
|
331
|
+
"startedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
332
|
+
"completedAt": {
|
|
333
|
+
"type": ["string", "null"],
|
|
334
|
+
"format": "date-time"
|
|
335
|
+
},
|
|
336
|
+
"latencyMs": { "type": ["integer", "null"], "minimum": 0 },
|
|
337
|
+
"code": {
|
|
338
|
+
"$ref": "#/properties/activation/definitions/code"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"onboarding": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"required": [
|
|
347
|
+
"ready",
|
|
348
|
+
"stage",
|
|
349
|
+
"headline",
|
|
350
|
+
"detail",
|
|
351
|
+
"suggestedCollections",
|
|
352
|
+
"steps"
|
|
353
|
+
],
|
|
354
|
+
"properties": {
|
|
355
|
+
"ready": {
|
|
356
|
+
"type": "boolean"
|
|
357
|
+
},
|
|
358
|
+
"stage": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"enum": ["add-collection", "models", "indexing", "ready"]
|
|
361
|
+
},
|
|
362
|
+
"headline": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"detail": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"suggestedCollections": {
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"required": ["label", "path", "reason"],
|
|
373
|
+
"properties": {
|
|
374
|
+
"label": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"path": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"reason": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"steps": {
|
|
387
|
+
"type": "array",
|
|
388
|
+
"items": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"required": ["id", "title", "status", "detail"],
|
|
391
|
+
"properties": {
|
|
392
|
+
"id": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"title": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
},
|
|
398
|
+
"status": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"enum": ["complete", "current", "upcoming"]
|
|
401
|
+
},
|
|
402
|
+
"detail": {
|
|
403
|
+
"type": "string"
|
|
404
|
+
},
|
|
405
|
+
"action": {
|
|
406
|
+
"enum": ["add-collection", "download-models", "sync", "embed"]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"health": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"required": ["state", "summary", "checks"],
|
|
416
|
+
"properties": {
|
|
417
|
+
"state": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"enum": ["healthy", "needs-attention", "setup-required"]
|
|
420
|
+
},
|
|
421
|
+
"summary": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"checks": {
|
|
425
|
+
"type": "array",
|
|
426
|
+
"items": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"required": ["id", "title", "status", "summary", "detail"],
|
|
429
|
+
"properties": {
|
|
430
|
+
"id": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"title": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"status": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"enum": ["ok", "warn", "error"]
|
|
439
|
+
},
|
|
440
|
+
"summary": {
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"detail": {
|
|
444
|
+
"type": "string"
|
|
445
|
+
},
|
|
446
|
+
"actionLabel": {
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
"actionKind": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"add-collection",
|
|
453
|
+
"open-collections",
|
|
454
|
+
"sync",
|
|
455
|
+
"embed",
|
|
456
|
+
"download-models",
|
|
457
|
+
"free-space"
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"background": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"required": ["watcher", "embedding", "events"],
|
|
468
|
+
"properties": {
|
|
469
|
+
"watcher": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"required": [
|
|
472
|
+
"expectedCollections",
|
|
473
|
+
"activeCollections",
|
|
474
|
+
"failedCollections",
|
|
475
|
+
"queuedCollections",
|
|
476
|
+
"syncingCollections",
|
|
477
|
+
"lastEventAt",
|
|
478
|
+
"lastSyncAt"
|
|
479
|
+
],
|
|
480
|
+
"properties": {
|
|
481
|
+
"expectedCollections": {
|
|
482
|
+
"type": "array",
|
|
483
|
+
"items": { "type": "string" }
|
|
484
|
+
},
|
|
485
|
+
"activeCollections": {
|
|
486
|
+
"type": "array",
|
|
487
|
+
"items": { "type": "string" }
|
|
488
|
+
},
|
|
489
|
+
"failedCollections": {
|
|
490
|
+
"type": "array",
|
|
491
|
+
"items": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"required": ["collection", "reason"],
|
|
494
|
+
"properties": {
|
|
495
|
+
"collection": { "type": "string" },
|
|
496
|
+
"reason": { "type": "string" }
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"queuedCollections": {
|
|
501
|
+
"type": "array",
|
|
502
|
+
"items": { "type": "string" }
|
|
503
|
+
},
|
|
504
|
+
"syncingCollections": {
|
|
505
|
+
"type": "array",
|
|
506
|
+
"items": { "type": "string" }
|
|
507
|
+
},
|
|
508
|
+
"lastEventAt": {
|
|
509
|
+
"type": ["string", "null"],
|
|
510
|
+
"format": "date-time"
|
|
511
|
+
},
|
|
512
|
+
"lastSyncAt": {
|
|
513
|
+
"type": ["string", "null"],
|
|
514
|
+
"format": "date-time"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"embedding": {
|
|
519
|
+
"type": "object",
|
|
520
|
+
"required": [
|
|
521
|
+
"available",
|
|
522
|
+
"pendingDocCount",
|
|
523
|
+
"running",
|
|
524
|
+
"nextRunAt",
|
|
525
|
+
"lastRunAt",
|
|
526
|
+
"lastResult"
|
|
527
|
+
],
|
|
528
|
+
"properties": {
|
|
529
|
+
"available": { "type": "boolean" },
|
|
530
|
+
"pendingDocCount": {
|
|
531
|
+
"type": "integer",
|
|
532
|
+
"minimum": 0
|
|
533
|
+
},
|
|
534
|
+
"running": { "type": "boolean" },
|
|
535
|
+
"nextRunAt": { "type": ["integer", "null"] },
|
|
536
|
+
"lastRunAt": { "type": ["integer", "null"] },
|
|
537
|
+
"lastResult": {
|
|
538
|
+
"type": ["object", "null"],
|
|
539
|
+
"required": ["embedded", "errors"],
|
|
540
|
+
"properties": {
|
|
541
|
+
"embedded": {
|
|
542
|
+
"type": "integer",
|
|
543
|
+
"minimum": 0
|
|
544
|
+
},
|
|
545
|
+
"errors": {
|
|
546
|
+
"type": "integer",
|
|
547
|
+
"minimum": 0
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"events": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"required": ["connectedClients", "retryMs"],
|
|
556
|
+
"properties": {
|
|
557
|
+
"connectedClients": {
|
|
558
|
+
"type": "integer",
|
|
559
|
+
"minimum": 0
|
|
560
|
+
},
|
|
561
|
+
"retryMs": {
|
|
562
|
+
"type": "integer",
|
|
563
|
+
"minimum": 0
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"bootstrap": {
|
|
570
|
+
"type": "object",
|
|
571
|
+
"required": ["runtime", "policy", "cache", "models"],
|
|
572
|
+
"properties": {
|
|
573
|
+
"runtime": {
|
|
574
|
+
"type": "object",
|
|
575
|
+
"required": [
|
|
576
|
+
"kind",
|
|
577
|
+
"strategy",
|
|
578
|
+
"currentVersion",
|
|
579
|
+
"requiredVersion",
|
|
580
|
+
"ready",
|
|
581
|
+
"managedByApp",
|
|
582
|
+
"summary",
|
|
583
|
+
"detail"
|
|
584
|
+
],
|
|
585
|
+
"properties": {
|
|
586
|
+
"kind": { "type": "string", "enum": ["bun"] },
|
|
587
|
+
"strategy": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"enum": ["manual-install-beta"]
|
|
590
|
+
},
|
|
591
|
+
"currentVersion": { "type": "string" },
|
|
592
|
+
"requiredVersion": { "type": "string" },
|
|
593
|
+
"ready": { "type": "boolean" },
|
|
594
|
+
"managedByApp": { "type": "boolean" },
|
|
595
|
+
"summary": { "type": "string" },
|
|
596
|
+
"detail": { "type": "string" }
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"policy": {
|
|
600
|
+
"type": "object",
|
|
601
|
+
"required": ["offline", "allowDownload", "source", "summary"],
|
|
602
|
+
"properties": {
|
|
603
|
+
"offline": { "type": "boolean" },
|
|
604
|
+
"allowDownload": { "type": "boolean" },
|
|
605
|
+
"source": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"enum": [
|
|
608
|
+
"default",
|
|
609
|
+
"hf-hub-offline",
|
|
610
|
+
"gno-offline",
|
|
611
|
+
"no-auto-download"
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
"summary": { "type": "string" }
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"cache": {
|
|
618
|
+
"type": "object",
|
|
619
|
+
"required": ["path", "totalSizeBytes", "totalSizeLabel"],
|
|
620
|
+
"properties": {
|
|
621
|
+
"path": { "type": "string" },
|
|
622
|
+
"totalSizeBytes": { "type": "integer", "minimum": 0 },
|
|
623
|
+
"totalSizeLabel": { "type": "string" }
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"models": {
|
|
627
|
+
"type": "object",
|
|
628
|
+
"required": [
|
|
629
|
+
"activePresetId",
|
|
630
|
+
"activePresetName",
|
|
631
|
+
"estimatedFootprint",
|
|
632
|
+
"downloading",
|
|
633
|
+
"cachedCount",
|
|
634
|
+
"totalCount",
|
|
635
|
+
"summary",
|
|
636
|
+
"entries"
|
|
637
|
+
],
|
|
638
|
+
"properties": {
|
|
639
|
+
"activePresetId": { "type": "string" },
|
|
640
|
+
"activePresetName": { "type": "string" },
|
|
641
|
+
"estimatedFootprint": { "type": ["string", "null"] },
|
|
642
|
+
"downloading": { "type": "boolean" },
|
|
643
|
+
"cachedCount": { "type": "integer", "minimum": 0 },
|
|
644
|
+
"totalCount": { "type": "integer", "minimum": 0 },
|
|
645
|
+
"summary": { "type": "string" },
|
|
646
|
+
"entries": {
|
|
647
|
+
"type": "array",
|
|
648
|
+
"items": {
|
|
649
|
+
"type": "object",
|
|
650
|
+
"required": [
|
|
651
|
+
"role",
|
|
652
|
+
"uri",
|
|
653
|
+
"cached",
|
|
654
|
+
"path",
|
|
655
|
+
"sizeBytes",
|
|
656
|
+
"statusLabel"
|
|
657
|
+
],
|
|
658
|
+
"properties": {
|
|
659
|
+
"role": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"enum": ["embed", "rerank", "expand", "gen"]
|
|
662
|
+
},
|
|
663
|
+
"uri": { "type": "string" },
|
|
664
|
+
"cached": { "type": "boolean" },
|
|
665
|
+
"path": { "type": ["string", "null"] },
|
|
666
|
+
"sizeBytes": { "type": ["integer", "null"], "minimum": 0 },
|
|
667
|
+
"statusLabel": { "type": "string" }
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|