@gmickel/gno 1.39.2 → 1.41.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 +1 -0
- package/assets/skill/SKILL.md +17 -0
- package/assets/skill/cli-reference.md +48 -0
- package/assets/skill/mcp-reference.md +24 -0
- package/assets/spa-production.json.gz +0 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v1.39.2.zip → gno-browser-clipper-v1.41.0.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.41.0.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/package.json +1 -1
- package/spec/cli.md +146 -7
- package/spec/db/schema.sql +17 -0
- package/spec/mcp.md +194 -0
- package/spec/output-schemas/memory-recall.schema.json +159 -0
- package/spec/output-schemas/memory-remember.schema.json +164 -0
- package/spec/output-schemas/status.schema.json +269 -54
- package/src/cli/commands/memory.ts +491 -0
- package/src/cli/commands/status.ts +23 -4
- package/src/cli/options.ts +4 -0
- package/src/cli/program.ts +127 -0
- package/src/config/types.ts +7 -0
- package/src/core/audit-provenance.ts +91 -0
- package/src/core/audit-workspace.ts +17 -0
- package/src/core/memory-diagnostics.ts +144 -0
- package/src/core/memory-fence.ts +239 -0
- package/src/core/memory-recall.ts +269 -0
- package/src/core/memory-record.ts +435 -0
- package/src/core/memory-remember.ts +425 -0
- package/src/core/memory-types.ts +211 -0
- package/src/core/memory.ts +87 -0
- package/src/core/network-boundary-inventory.ts +10 -0
- package/src/ingestion/sync.ts +17 -0
- package/src/mcp/http-egress.ts +2 -0
- package/src/mcp/tools/index.ts +43 -0
- package/src/mcp/tools/memory-recall.ts +122 -0
- package/src/mcp/tools/memory-remember.ts +177 -0
- package/src/mcp/tools/memory-shared.ts +80 -0
- package/src/pipeline/search.ts +2 -0
- package/src/pipeline/types.ts +8 -0
- package/src/sdk/client.ts +94 -1
- package/src/sdk/index.ts +13 -0
- package/src/sdk/types.ts +28 -0
- package/src/serve/CLAUDE.md +22 -2
- package/src/serve/clipper-security.ts +3 -17
- package/src/serve/public/components/pdf/PdfViewer.tsx +97 -19
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/public/globals.css +4 -0
- package/src/serve/public/hooks/use-pdf-document.ts +101 -37
- package/src/serve/public/hooks/use-pdf-pages.ts +324 -92
- package/src/serve/public/lib/pdf-transport.ts +13 -0
- package/src/serve/public/lib/pdf.ts +77 -10
- package/src/serve/public/lib/server-capabilities.ts +19 -0
- package/src/serve/public/pages/Ask.tsx +8 -9
- package/src/serve/public/pages/DocView.tsx +80 -18
- package/src/serve/public/pages/Search.tsx +8 -9
- package/src/serve/request-locality.ts +84 -0
- package/src/serve/routes/api.ts +255 -3
- package/src/serve/server.ts +189 -29
- package/src/store/migrations/027-memory-scopes.ts +37 -0
- package/src/store/migrations/index.ts +2 -0
- package/src/store/sqlite/adapter.ts +127 -3
- package/src/store/types.ts +54 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.39.2.zip.sha256 +0 -1
|
@@ -153,8 +153,15 @@
|
|
|
153
153
|
"additionalProperties": false,
|
|
154
154
|
"required": ["id", "searchBoost"],
|
|
155
155
|
"properties": {
|
|
156
|
-
"id": {
|
|
157
|
-
|
|
156
|
+
"id": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1
|
|
159
|
+
},
|
|
160
|
+
"searchBoost": {
|
|
161
|
+
"type": "number",
|
|
162
|
+
"minimum": 0.5,
|
|
163
|
+
"maximum": 2
|
|
164
|
+
}
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
167
|
}
|
|
@@ -172,9 +179,15 @@
|
|
|
172
179
|
"connectorProjection"
|
|
173
180
|
],
|
|
174
181
|
"properties": {
|
|
175
|
-
"schemaVersion": {
|
|
176
|
-
|
|
177
|
-
|
|
182
|
+
"schemaVersion": {
|
|
183
|
+
"const": "1.0"
|
|
184
|
+
},
|
|
185
|
+
"usable": {
|
|
186
|
+
"type": "boolean"
|
|
187
|
+
},
|
|
188
|
+
"healthy": {
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
},
|
|
178
191
|
"collections": {
|
|
179
192
|
"type": "array",
|
|
180
193
|
"items": {
|
|
@@ -189,8 +202,12 @@
|
|
|
189
202
|
"remediation"
|
|
190
203
|
],
|
|
191
204
|
"properties": {
|
|
192
|
-
"collection": {
|
|
193
|
-
|
|
205
|
+
"collection": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
"ready": {
|
|
209
|
+
"type": "boolean"
|
|
210
|
+
},
|
|
194
211
|
"generatedAt": {
|
|
195
212
|
"type": ["string", "null"],
|
|
196
213
|
"format": "date-time"
|
|
@@ -222,12 +239,18 @@
|
|
|
222
239
|
{
|
|
223
240
|
"if": {
|
|
224
241
|
"properties": {
|
|
225
|
-
"code": {
|
|
242
|
+
"code": {
|
|
243
|
+
"const": "vector_unavailable"
|
|
244
|
+
}
|
|
226
245
|
},
|
|
227
246
|
"required": ["code"]
|
|
228
247
|
},
|
|
229
248
|
"then": {
|
|
230
|
-
"properties": {
|
|
249
|
+
"properties": {
|
|
250
|
+
"status": {
|
|
251
|
+
"const": "skipped"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
231
254
|
}
|
|
232
255
|
},
|
|
233
256
|
{
|
|
@@ -244,12 +267,18 @@
|
|
|
244
267
|
"required": ["code"]
|
|
245
268
|
},
|
|
246
269
|
"then": {
|
|
247
|
-
"properties": {
|
|
270
|
+
"properties": {
|
|
271
|
+
"status": {
|
|
272
|
+
"const": "pending"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
248
275
|
}
|
|
249
276
|
}
|
|
250
277
|
],
|
|
251
278
|
"properties": {
|
|
252
|
-
"status": {
|
|
279
|
+
"status": {
|
|
280
|
+
"enum": ["pending", "skipped"]
|
|
281
|
+
},
|
|
253
282
|
"code": {
|
|
254
283
|
"enum": [
|
|
255
284
|
"models_missing",
|
|
@@ -258,7 +287,9 @@
|
|
|
258
287
|
"semantic_not_checked"
|
|
259
288
|
]
|
|
260
289
|
},
|
|
261
|
-
"command": {
|
|
290
|
+
"command": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
262
293
|
}
|
|
263
294
|
},
|
|
264
295
|
"remediation": {
|
|
@@ -272,8 +303,12 @@
|
|
|
272
303
|
"code": {
|
|
273
304
|
"$ref": "#/properties/activation/definitions/code"
|
|
274
305
|
},
|
|
275
|
-
"command": {
|
|
276
|
-
|
|
306
|
+
"command": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"message": {
|
|
310
|
+
"type": "string"
|
|
311
|
+
}
|
|
277
312
|
}
|
|
278
313
|
}
|
|
279
314
|
}
|
|
@@ -287,15 +322,21 @@
|
|
|
287
322
|
"additionalProperties": false,
|
|
288
323
|
"required": ["collection", "target", "status", "remediation"],
|
|
289
324
|
"properties": {
|
|
290
|
-
"collection": {
|
|
291
|
-
|
|
325
|
+
"collection": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
"target": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
292
331
|
"status": {
|
|
293
332
|
"enum": ["passed", "pending", "failed", "skipped"]
|
|
294
333
|
},
|
|
295
334
|
"code": {
|
|
296
335
|
"$ref": "#/properties/activation/definitions/code"
|
|
297
336
|
},
|
|
298
|
-
"remediation": {
|
|
337
|
+
"remediation": {
|
|
338
|
+
"type": ["string", "null"]
|
|
339
|
+
}
|
|
299
340
|
}
|
|
300
341
|
}
|
|
301
342
|
},
|
|
@@ -352,12 +393,18 @@
|
|
|
352
393
|
"status": {
|
|
353
394
|
"enum": ["passed", "pending", "failed", "skipped"]
|
|
354
395
|
},
|
|
355
|
-
"startedAt": {
|
|
396
|
+
"startedAt": {
|
|
397
|
+
"type": ["string", "null"],
|
|
398
|
+
"format": "date-time"
|
|
399
|
+
},
|
|
356
400
|
"completedAt": {
|
|
357
401
|
"type": ["string", "null"],
|
|
358
402
|
"format": "date-time"
|
|
359
403
|
},
|
|
360
|
-
"latencyMs": {
|
|
404
|
+
"latencyMs": {
|
|
405
|
+
"type": ["integer", "null"],
|
|
406
|
+
"minimum": 0
|
|
407
|
+
},
|
|
361
408
|
"code": {
|
|
362
409
|
"$ref": "#/properties/activation/definitions/code"
|
|
363
410
|
}
|
|
@@ -504,11 +551,15 @@
|
|
|
504
551
|
"properties": {
|
|
505
552
|
"expectedCollections": {
|
|
506
553
|
"type": "array",
|
|
507
|
-
"items": {
|
|
554
|
+
"items": {
|
|
555
|
+
"type": "string"
|
|
556
|
+
}
|
|
508
557
|
},
|
|
509
558
|
"activeCollections": {
|
|
510
559
|
"type": "array",
|
|
511
|
-
"items": {
|
|
560
|
+
"items": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
}
|
|
512
563
|
},
|
|
513
564
|
"failedCollections": {
|
|
514
565
|
"type": "array",
|
|
@@ -516,18 +567,26 @@
|
|
|
516
567
|
"type": "object",
|
|
517
568
|
"required": ["collection", "reason"],
|
|
518
569
|
"properties": {
|
|
519
|
-
"collection": {
|
|
520
|
-
|
|
570
|
+
"collection": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
},
|
|
573
|
+
"reason": {
|
|
574
|
+
"type": "string"
|
|
575
|
+
}
|
|
521
576
|
}
|
|
522
577
|
}
|
|
523
578
|
},
|
|
524
579
|
"queuedCollections": {
|
|
525
580
|
"type": "array",
|
|
526
|
-
"items": {
|
|
581
|
+
"items": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
}
|
|
527
584
|
},
|
|
528
585
|
"syncingCollections": {
|
|
529
586
|
"type": "array",
|
|
530
|
-
"items": {
|
|
587
|
+
"items": {
|
|
588
|
+
"type": "string"
|
|
589
|
+
}
|
|
531
590
|
},
|
|
532
591
|
"lastEventAt": {
|
|
533
592
|
"type": ["string", "null"],
|
|
@@ -550,14 +609,22 @@
|
|
|
550
609
|
"lastResult"
|
|
551
610
|
],
|
|
552
611
|
"properties": {
|
|
553
|
-
"available": {
|
|
612
|
+
"available": {
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
},
|
|
554
615
|
"pendingDocCount": {
|
|
555
616
|
"type": "integer",
|
|
556
617
|
"minimum": 0
|
|
557
618
|
},
|
|
558
|
-
"running": {
|
|
559
|
-
|
|
560
|
-
|
|
619
|
+
"running": {
|
|
620
|
+
"type": "boolean"
|
|
621
|
+
},
|
|
622
|
+
"nextRunAt": {
|
|
623
|
+
"type": ["integer", "null"]
|
|
624
|
+
},
|
|
625
|
+
"lastRunAt": {
|
|
626
|
+
"type": ["integer", "null"]
|
|
627
|
+
},
|
|
561
628
|
"lastResult": {
|
|
562
629
|
"type": ["object", "null"],
|
|
563
630
|
"required": ["embedded", "errors"],
|
|
@@ -607,25 +674,44 @@
|
|
|
607
674
|
"detail"
|
|
608
675
|
],
|
|
609
676
|
"properties": {
|
|
610
|
-
"kind": {
|
|
677
|
+
"kind": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"enum": ["bun"]
|
|
680
|
+
},
|
|
611
681
|
"strategy": {
|
|
612
682
|
"type": "string",
|
|
613
683
|
"enum": ["manual-install-beta"]
|
|
614
684
|
},
|
|
615
|
-
"currentVersion": {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
"
|
|
619
|
-
|
|
620
|
-
|
|
685
|
+
"currentVersion": {
|
|
686
|
+
"type": "string"
|
|
687
|
+
},
|
|
688
|
+
"requiredVersion": {
|
|
689
|
+
"type": "string"
|
|
690
|
+
},
|
|
691
|
+
"ready": {
|
|
692
|
+
"type": "boolean"
|
|
693
|
+
},
|
|
694
|
+
"managedByApp": {
|
|
695
|
+
"type": "boolean"
|
|
696
|
+
},
|
|
697
|
+
"summary": {
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
"detail": {
|
|
701
|
+
"type": "string"
|
|
702
|
+
}
|
|
621
703
|
}
|
|
622
704
|
},
|
|
623
705
|
"policy": {
|
|
624
706
|
"type": "object",
|
|
625
707
|
"required": ["offline", "allowDownload", "source", "summary"],
|
|
626
708
|
"properties": {
|
|
627
|
-
"offline": {
|
|
628
|
-
|
|
709
|
+
"offline": {
|
|
710
|
+
"type": "boolean"
|
|
711
|
+
},
|
|
712
|
+
"allowDownload": {
|
|
713
|
+
"type": "boolean"
|
|
714
|
+
},
|
|
629
715
|
"source": {
|
|
630
716
|
"type": "string",
|
|
631
717
|
"enum": [
|
|
@@ -635,16 +721,25 @@
|
|
|
635
721
|
"no-auto-download"
|
|
636
722
|
]
|
|
637
723
|
},
|
|
638
|
-
"summary": {
|
|
724
|
+
"summary": {
|
|
725
|
+
"type": "string"
|
|
726
|
+
}
|
|
639
727
|
}
|
|
640
728
|
},
|
|
641
729
|
"cache": {
|
|
642
730
|
"type": "object",
|
|
643
731
|
"required": ["path", "totalSizeBytes", "totalSizeLabel"],
|
|
644
732
|
"properties": {
|
|
645
|
-
"path": {
|
|
646
|
-
|
|
647
|
-
|
|
733
|
+
"path": {
|
|
734
|
+
"type": "string"
|
|
735
|
+
},
|
|
736
|
+
"totalSizeBytes": {
|
|
737
|
+
"type": "integer",
|
|
738
|
+
"minimum": 0
|
|
739
|
+
},
|
|
740
|
+
"totalSizeLabel": {
|
|
741
|
+
"type": "string"
|
|
742
|
+
}
|
|
648
743
|
}
|
|
649
744
|
},
|
|
650
745
|
"models": {
|
|
@@ -660,13 +755,29 @@
|
|
|
660
755
|
"entries"
|
|
661
756
|
],
|
|
662
757
|
"properties": {
|
|
663
|
-
"activePresetId": {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
"
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
"
|
|
758
|
+
"activePresetId": {
|
|
759
|
+
"type": "string"
|
|
760
|
+
},
|
|
761
|
+
"activePresetName": {
|
|
762
|
+
"type": "string"
|
|
763
|
+
},
|
|
764
|
+
"estimatedFootprint": {
|
|
765
|
+
"type": ["string", "null"]
|
|
766
|
+
},
|
|
767
|
+
"downloading": {
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
"cachedCount": {
|
|
771
|
+
"type": "integer",
|
|
772
|
+
"minimum": 0
|
|
773
|
+
},
|
|
774
|
+
"totalCount": {
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": 0
|
|
777
|
+
},
|
|
778
|
+
"summary": {
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
670
781
|
"entries": {
|
|
671
782
|
"type": "array",
|
|
672
783
|
"items": {
|
|
@@ -684,11 +795,115 @@
|
|
|
684
795
|
"type": "string",
|
|
685
796
|
"enum": ["embed", "rerank", "expand", "gen"]
|
|
686
797
|
},
|
|
687
|
-
"uri": {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
"
|
|
691
|
-
|
|
798
|
+
"uri": {
|
|
799
|
+
"type": "string"
|
|
800
|
+
},
|
|
801
|
+
"cached": {
|
|
802
|
+
"type": "boolean"
|
|
803
|
+
},
|
|
804
|
+
"path": {
|
|
805
|
+
"type": ["string", "null"]
|
|
806
|
+
},
|
|
807
|
+
"sizeBytes": {
|
|
808
|
+
"type": ["integer", "null"],
|
|
809
|
+
"minimum": 0
|
|
810
|
+
},
|
|
811
|
+
"statusLabel": {
|
|
812
|
+
"type": "string"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"memory": {
|
|
822
|
+
"type": "object",
|
|
823
|
+
"description": "Managed-memory diagnostics: record counts and malformed files excluded from recall",
|
|
824
|
+
"additionalProperties": false,
|
|
825
|
+
"required": ["managedCollections", "records", "malformed", "collections"],
|
|
826
|
+
"properties": {
|
|
827
|
+
"managedCollections": {
|
|
828
|
+
"type": "integer",
|
|
829
|
+
"minimum": 0
|
|
830
|
+
},
|
|
831
|
+
"records": {
|
|
832
|
+
"type": "integer",
|
|
833
|
+
"minimum": 0
|
|
834
|
+
},
|
|
835
|
+
"malformed": {
|
|
836
|
+
"type": "integer",
|
|
837
|
+
"minimum": 0
|
|
838
|
+
},
|
|
839
|
+
"collections": {
|
|
840
|
+
"type": "array",
|
|
841
|
+
"items": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"additionalProperties": false,
|
|
844
|
+
"required": [
|
|
845
|
+
"collection",
|
|
846
|
+
"documents",
|
|
847
|
+
"records",
|
|
848
|
+
"malformed",
|
|
849
|
+
"malformedRecords",
|
|
850
|
+
"truncated"
|
|
851
|
+
],
|
|
852
|
+
"properties": {
|
|
853
|
+
"collection": {
|
|
854
|
+
"type": "string"
|
|
855
|
+
},
|
|
856
|
+
"documents": {
|
|
857
|
+
"type": "integer",
|
|
858
|
+
"minimum": 0
|
|
859
|
+
},
|
|
860
|
+
"records": {
|
|
861
|
+
"type": "integer",
|
|
862
|
+
"minimum": 0
|
|
863
|
+
},
|
|
864
|
+
"malformed": {
|
|
865
|
+
"type": "integer",
|
|
866
|
+
"minimum": 0
|
|
867
|
+
},
|
|
868
|
+
"truncated": {
|
|
869
|
+
"type": "boolean"
|
|
870
|
+
},
|
|
871
|
+
"malformedRecords": {
|
|
872
|
+
"type": "array",
|
|
873
|
+
"items": {
|
|
874
|
+
"type": "object",
|
|
875
|
+
"additionalProperties": false,
|
|
876
|
+
"required": ["uri", "relPath", "codes", "diagnostics"],
|
|
877
|
+
"properties": {
|
|
878
|
+
"uri": {
|
|
879
|
+
"type": "string"
|
|
880
|
+
},
|
|
881
|
+
"relPath": {
|
|
882
|
+
"type": "string"
|
|
883
|
+
},
|
|
884
|
+
"codes": {
|
|
885
|
+
"type": "array",
|
|
886
|
+
"items": {
|
|
887
|
+
"type": "string"
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"diagnostics": {
|
|
891
|
+
"type": "array",
|
|
892
|
+
"items": {
|
|
893
|
+
"type": "object",
|
|
894
|
+
"additionalProperties": false,
|
|
895
|
+
"required": ["code", "message"],
|
|
896
|
+
"properties": {
|
|
897
|
+
"code": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
},
|
|
900
|
+
"message": {
|
|
901
|
+
"type": "string"
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
692
907
|
}
|
|
693
908
|
}
|
|
694
909
|
}
|