@joe-broadhead/opencode-mem 0.7.1 → 0.8.1
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 +1275 -0
- package/README.md +52 -20
- package/docs/agent-protocol.md +166 -170
- package/package.json +135 -8
- package/skills/mem.usage/SKILL.md +516 -0
- package/src/backend/v3.js +20 -5
- package/src/bootstrap.js +10 -2
- package/src/call-shapes.js +31 -0
- package/src/config.js +39 -0
- package/src/credentials.js +7 -2
- package/src/curation.js +45 -9
- package/src/errors.js +86 -0
- package/src/index.js +9 -0
- package/src/permissions.js +67 -0
- package/src/protocol.js +12 -11
- package/src/recall.js +85 -24
- package/src/records-store.js +207 -0
- package/src/records.js +440 -0
- package/src/runtime.js +38 -2
- package/src/skills.js +11 -3
- package/src/spaces.js +41 -19
- package/src/tools/commitments.js +210 -0
- package/src/tools/index.js +9 -2
- package/src/tools/knowledge.js +19 -3
- package/src/tools/memory.js +131 -20
- package/src/tools/recall.js +5 -1
- package/src/tools/shared.js +4 -2
- package/src/tools/spaces.js +3 -3
- package/src/tools/status.js +1 -1
- package/src/tools/wiki.js +166 -30
- package/src/views/contracts.js +54 -1
- package/src/views/rpc.js +48 -2
- package/views/commitments.html +226 -0
- package/views/memory.html +79 -3
- package/skills/mem-usage/SKILL.md +0 -427
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joe-broadhead/opencode-mem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Durable private and shared-space memory for OpenCode agents",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"jelly": {
|
|
15
15
|
"title": "Memory",
|
|
16
|
-
"summary": "
|
|
16
|
+
"summary": "Your decisions, preferences and notes, across conversations and agents.",
|
|
17
17
|
"icon": "assets/icon.svg",
|
|
18
18
|
"tools": [
|
|
19
19
|
{
|
|
@@ -34,10 +34,16 @@
|
|
|
34
34
|
"effect": "allow",
|
|
35
35
|
"readOnly": false
|
|
36
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"name": "mem.commitments",
|
|
39
|
+
"permission": "mem_commitments",
|
|
40
|
+
"effect": "allow",
|
|
41
|
+
"readOnly": false
|
|
42
|
+
},
|
|
37
43
|
{
|
|
38
44
|
"name": "mem.forget",
|
|
39
45
|
"permission": "mem_forget",
|
|
40
|
-
"effect": "
|
|
46
|
+
"effect": "ask",
|
|
41
47
|
"readOnly": false
|
|
42
48
|
},
|
|
43
49
|
{
|
|
@@ -476,6 +482,104 @@
|
|
|
476
482
|
}
|
|
477
483
|
}
|
|
478
484
|
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "commitments.list",
|
|
488
|
+
"label": "list your commitments",
|
|
489
|
+
"permission": "mem_commitments",
|
|
490
|
+
"readOnly": true,
|
|
491
|
+
"input": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"additionalProperties": false,
|
|
494
|
+
"properties": {
|
|
495
|
+
"state": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"enum": [
|
|
498
|
+
"open",
|
|
499
|
+
"closed"
|
|
500
|
+
]
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"output": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"additionalProperties": false,
|
|
507
|
+
"required": [
|
|
508
|
+
"today",
|
|
509
|
+
"items",
|
|
510
|
+
"more"
|
|
511
|
+
],
|
|
512
|
+
"properties": {
|
|
513
|
+
"today": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"maxLength": 40
|
|
516
|
+
},
|
|
517
|
+
"items": {
|
|
518
|
+
"type": "array",
|
|
519
|
+
"maxItems": 100,
|
|
520
|
+
"items": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"additionalProperties": false,
|
|
523
|
+
"required": [
|
|
524
|
+
"id",
|
|
525
|
+
"what",
|
|
526
|
+
"owner",
|
|
527
|
+
"state",
|
|
528
|
+
"when",
|
|
529
|
+
"overdue",
|
|
530
|
+
"dueToday"
|
|
531
|
+
],
|
|
532
|
+
"properties": {
|
|
533
|
+
"id": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"maxLength": 200
|
|
536
|
+
},
|
|
537
|
+
"what": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"maxLength": 300
|
|
540
|
+
},
|
|
541
|
+
"owner": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"maxLength": 80
|
|
544
|
+
},
|
|
545
|
+
"state": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"enum": [
|
|
548
|
+
"open",
|
|
549
|
+
"done",
|
|
550
|
+
"cancelled"
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
"when": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"maxLength": 40
|
|
556
|
+
},
|
|
557
|
+
"overdue": {
|
|
558
|
+
"type": "boolean"
|
|
559
|
+
},
|
|
560
|
+
"dueToday": {
|
|
561
|
+
"type": "boolean"
|
|
562
|
+
},
|
|
563
|
+
"trigger": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"maxLength": 200
|
|
566
|
+
},
|
|
567
|
+
"project": {
|
|
568
|
+
"type": "string",
|
|
569
|
+
"maxLength": 80
|
|
570
|
+
},
|
|
571
|
+
"closed": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"maxLength": 40
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"more": {
|
|
579
|
+
"type": "boolean"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
479
583
|
}
|
|
480
584
|
],
|
|
481
585
|
"views": [
|
|
@@ -493,6 +597,21 @@
|
|
|
493
597
|
"memory.overview"
|
|
494
598
|
]
|
|
495
599
|
},
|
|
600
|
+
{
|
|
601
|
+
"v": 1,
|
|
602
|
+
"id": "commitments",
|
|
603
|
+
"place": "home-widget",
|
|
604
|
+
"title": "Commitments",
|
|
605
|
+
"size": "s",
|
|
606
|
+
"page": "views/commitments.html",
|
|
607
|
+
"grants": [
|
|
608
|
+
"rpc",
|
|
609
|
+
"open-agent"
|
|
610
|
+
],
|
|
611
|
+
"rpc": [
|
|
612
|
+
"commitments.list"
|
|
613
|
+
]
|
|
614
|
+
},
|
|
496
615
|
{
|
|
497
616
|
"v": 1,
|
|
498
617
|
"id": "memory",
|
|
@@ -510,7 +629,8 @@
|
|
|
510
629
|
"memories.recent",
|
|
511
630
|
"wiki.list",
|
|
512
631
|
"wiki.pages",
|
|
513
|
-
"wiki.read"
|
|
632
|
+
"wiki.read",
|
|
633
|
+
"commitments.list"
|
|
514
634
|
]
|
|
515
635
|
}
|
|
516
636
|
],
|
|
@@ -524,7 +644,7 @@
|
|
|
524
644
|
"key": "controlURL",
|
|
525
645
|
"label": "Memory address",
|
|
526
646
|
"type": "string",
|
|
527
|
-
"description": "The
|
|
647
|
+
"description": "The Memory server to use, such as https://mem.example.com. Leave it empty to use the one your Jelly account offers."
|
|
528
648
|
},
|
|
529
649
|
{
|
|
530
650
|
"key": "capture",
|
|
@@ -536,7 +656,7 @@
|
|
|
536
656
|
"key": "token",
|
|
537
657
|
"label": "Memory key",
|
|
538
658
|
"type": "secret",
|
|
539
|
-
"description": "Only needed when your Jelly account does not sign you in to
|
|
659
|
+
"description": "Only needed when your Jelly account does not sign you in to Memory: paste the key from Memory's /account page."
|
|
540
660
|
}
|
|
541
661
|
]
|
|
542
662
|
},
|
|
@@ -558,23 +678,28 @@
|
|
|
558
678
|
"assets/icon.svg",
|
|
559
679
|
"views/home.html",
|
|
560
680
|
"views/memory.html",
|
|
681
|
+
"views/commitments.html",
|
|
561
682
|
"docs/agent-protocol.md",
|
|
562
683
|
"!docs/README.md",
|
|
563
684
|
"README.md",
|
|
564
685
|
"LICENSE",
|
|
565
|
-
"SECURITY.md"
|
|
686
|
+
"SECURITY.md",
|
|
687
|
+
"CHANGELOG.md"
|
|
566
688
|
],
|
|
567
689
|
"publishConfig": {
|
|
568
690
|
"access": "public"
|
|
569
691
|
},
|
|
570
692
|
"scripts": {
|
|
571
|
-
"test": "node --test test/*.test.js",
|
|
693
|
+
"test": "node --experimental-strip-types --test test/*.test.js",
|
|
572
694
|
"test:load": "node --test test/load-harness.test.js test/load-gateway.test.js",
|
|
573
695
|
"test:ops": "node --test test/ops-control.test.js",
|
|
574
696
|
"test:eval": "node --test test/agent-eval.test.js",
|
|
697
|
+
"test:pack": "node --test test/package-contents.test.js",
|
|
575
698
|
"eval:agent": "node scripts/eval/agent-eval.mjs",
|
|
576
699
|
"eval:core": "node scripts/eval/agent-eval.mjs --suite core --runs 1 --timeout 120",
|
|
577
700
|
"eval:core:release": "node scripts/eval/agent-eval.mjs --suite core --runs 3 --timeout 120",
|
|
701
|
+
"eval:value": "node scripts/eval/agent-eval.mjs --suite value --runs 1 --timeout 120",
|
|
702
|
+
"eval:value:release": "node scripts/eval/agent-eval.mjs --suite value --runs 3 --timeout 120",
|
|
578
703
|
"eval:extended": "node scripts/eval/agent-eval.mjs --suite extended --runs 1",
|
|
579
704
|
"eval:public": "node scripts/eval/agent-eval.mjs --suite public --runs 1",
|
|
580
705
|
"eval:summary": "node scripts/eval/summarize.mjs",
|
|
@@ -608,6 +733,8 @@
|
|
|
608
733
|
"check:docs": "node scripts/check-docs.mjs",
|
|
609
734
|
"check:docker": "node scripts/check-docker-imports.mjs",
|
|
610
735
|
"check:compose": "node scripts/check-compose.mjs",
|
|
736
|
+
"check:copies": "node scripts/check-copies.mjs",
|
|
737
|
+
"check": "npm test && npm run check:syntax && npm run check:docs && npm run check:copies",
|
|
611
738
|
"check:jelly": "bun scripts/check-jelly-declaration.mjs",
|
|
612
739
|
"shots:views": "node scripts/view-shots.mjs"
|
|
613
740
|
},
|