@gmickel/gno 1.40.0 → 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.
Files changed (46) hide show
  1. package/README.md +1 -0
  2. package/assets/skill/SKILL.md +17 -0
  3. package/assets/skill/cli-reference.md +48 -0
  4. package/assets/skill/mcp-reference.md +24 -0
  5. package/browser-extension/artifacts/{gno-browser-clipper-v1.40.0.zip → gno-browser-clipper-v1.41.0.zip} +0 -0
  6. package/browser-extension/artifacts/gno-browser-clipper-v1.41.0.zip.sha256 +1 -0
  7. package/browser-extension/dist/manifest.json +1 -1
  8. package/package.json +1 -1
  9. package/spec/cli.md +146 -7
  10. package/spec/db/schema.sql +17 -0
  11. package/spec/mcp.md +194 -0
  12. package/spec/output-schemas/memory-recall.schema.json +159 -0
  13. package/spec/output-schemas/memory-remember.schema.json +164 -0
  14. package/spec/output-schemas/status.schema.json +269 -54
  15. package/src/cli/commands/memory.ts +491 -0
  16. package/src/cli/commands/status.ts +23 -4
  17. package/src/cli/options.ts +4 -0
  18. package/src/cli/program.ts +127 -0
  19. package/src/config/types.ts +7 -0
  20. package/src/core/audit-provenance.ts +91 -0
  21. package/src/core/audit-workspace.ts +17 -0
  22. package/src/core/memory-diagnostics.ts +144 -0
  23. package/src/core/memory-fence.ts +239 -0
  24. package/src/core/memory-recall.ts +269 -0
  25. package/src/core/memory-record.ts +435 -0
  26. package/src/core/memory-remember.ts +425 -0
  27. package/src/core/memory-types.ts +211 -0
  28. package/src/core/memory.ts +87 -0
  29. package/src/ingestion/sync.ts +17 -0
  30. package/src/mcp/http-egress.ts +2 -0
  31. package/src/mcp/tools/index.ts +43 -0
  32. package/src/mcp/tools/memory-recall.ts +122 -0
  33. package/src/mcp/tools/memory-remember.ts +177 -0
  34. package/src/mcp/tools/memory-shared.ts +80 -0
  35. package/src/pipeline/search.ts +2 -0
  36. package/src/pipeline/types.ts +8 -0
  37. package/src/sdk/client.ts +94 -1
  38. package/src/sdk/index.ts +13 -0
  39. package/src/sdk/types.ts +28 -0
  40. package/src/serve/routes/api.ts +167 -0
  41. package/src/serve/server.ts +26 -0
  42. package/src/store/migrations/027-memory-scopes.ts +37 -0
  43. package/src/store/migrations/index.ts +2 -0
  44. package/src/store/sqlite/adapter.ts +127 -3
  45. package/src/store/types.ts +54 -0
  46. package/browser-extension/artifacts/gno-browser-clipper-v1.40.0.zip.sha256 +0 -1
@@ -153,8 +153,15 @@
153
153
  "additionalProperties": false,
154
154
  "required": ["id", "searchBoost"],
155
155
  "properties": {
156
- "id": { "type": "string", "minLength": 1 },
157
- "searchBoost": { "type": "number", "minimum": 0.5, "maximum": 2 }
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": { "const": "1.0" },
176
- "usable": { "type": "boolean" },
177
- "healthy": { "type": "boolean" },
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": { "type": "string" },
193
- "ready": { "type": "boolean" },
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": { "const": "vector_unavailable" }
242
+ "code": {
243
+ "const": "vector_unavailable"
244
+ }
226
245
  },
227
246
  "required": ["code"]
228
247
  },
229
248
  "then": {
230
- "properties": { "status": { "const": "skipped" } }
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": { "status": { "const": "pending" } }
270
+ "properties": {
271
+ "status": {
272
+ "const": "pending"
273
+ }
274
+ }
248
275
  }
249
276
  }
250
277
  ],
251
278
  "properties": {
252
- "status": { "enum": ["pending", "skipped"] },
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": { "type": "string" }
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": { "type": "string" },
276
- "message": { "type": "string" }
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": { "type": "string" },
291
- "target": { "type": "string" },
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": { "type": ["string", "null"] }
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": { "type": ["string", "null"], "format": "date-time" },
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": { "type": ["integer", "null"], "minimum": 0 },
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": { "type": "string" }
554
+ "items": {
555
+ "type": "string"
556
+ }
508
557
  },
509
558
  "activeCollections": {
510
559
  "type": "array",
511
- "items": { "type": "string" }
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": { "type": "string" },
520
- "reason": { "type": "string" }
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": { "type": "string" }
581
+ "items": {
582
+ "type": "string"
583
+ }
527
584
  },
528
585
  "syncingCollections": {
529
586
  "type": "array",
530
- "items": { "type": "string" }
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": { "type": "boolean" },
612
+ "available": {
613
+ "type": "boolean"
614
+ },
554
615
  "pendingDocCount": {
555
616
  "type": "integer",
556
617
  "minimum": 0
557
618
  },
558
- "running": { "type": "boolean" },
559
- "nextRunAt": { "type": ["integer", "null"] },
560
- "lastRunAt": { "type": ["integer", "null"] },
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": { "type": "string", "enum": ["bun"] },
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": { "type": "string" },
616
- "requiredVersion": { "type": "string" },
617
- "ready": { "type": "boolean" },
618
- "managedByApp": { "type": "boolean" },
619
- "summary": { "type": "string" },
620
- "detail": { "type": "string" }
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": { "type": "boolean" },
628
- "allowDownload": { "type": "boolean" },
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": { "type": "string" }
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": { "type": "string" },
646
- "totalSizeBytes": { "type": "integer", "minimum": 0 },
647
- "totalSizeLabel": { "type": "string" }
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": { "type": "string" },
664
- "activePresetName": { "type": "string" },
665
- "estimatedFootprint": { "type": ["string", "null"] },
666
- "downloading": { "type": "boolean" },
667
- "cachedCount": { "type": "integer", "minimum": 0 },
668
- "totalCount": { "type": "integer", "minimum": 0 },
669
- "summary": { "type": "string" },
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": { "type": "string" },
688
- "cached": { "type": "boolean" },
689
- "path": { "type": ["string", "null"] },
690
- "sizeBytes": { "type": ["integer", "null"], "minimum": 0 },
691
- "statusLabel": { "type": "string" }
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
  }