@joe-broadhead/opencode-mem 0.12.4 → 0.12.6
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 +81 -0
- package/README.md +1 -0
- package/package.json +147 -2
- package/src/actions.js +36 -1
- package/src/collector.js +176 -12
- package/src/plugins/source-contract/index.js +2 -2
- package/src/plugins/source-contract/vendor/PROVENANCE.json +9 -9
- package/src/plugins/source-contract/vendor/RELEASE-SHA256SUMS +3 -3
- package/src/plugins/source-contract/vendor/RELEASE.json +9 -9
- package/src/plugins/source-contract/vendor/SHA256SUMS +36 -29
- package/src/plugins/source-contract/vendor/broker-client.js +14 -14
- package/src/plugins/source-contract/vendor/chunks/{chunk-JUWIMDGF.js → chunk-6ZSJSJMV.js} +2 -2
- package/src/plugins/source-contract/vendor/chunks/{chunk-77MJETEE.js → chunk-A2KM6BYK.js} +13 -13
- package/src/plugins/source-contract/vendor/chunks/{chunk-HVBOAYBO.js → chunk-BEU3WWNO.js} +59 -6
- package/src/plugins/source-contract/vendor/chunks/{chunk-T4QM7B3S.js → chunk-CUITXC5J.js} +1 -1
- package/src/{vendor/source-contract/chunks/chunk-OZMX7VR7.js → plugins/source-contract/vendor/chunks/chunk-EOS4LD6F.js} +1 -1
- package/src/plugins/source-contract/vendor/chunks/{chunk-F4K2Y64D.js → chunk-EUDLXWG4.js} +1 -1
- package/src/plugins/source-contract/vendor/chunks/{chunk-BOUWB5UP.js → chunk-GDBKZBG7.js} +2 -2
- package/src/plugins/source-contract/vendor/chunks/{chunk-EHIOPXPL.js → chunk-HR22TL23.js} +14 -14
- package/src/plugins/source-contract/vendor/chunks/{chunk-X6XP7YK2.js → chunk-IGPRJ63D.js} +2 -2
- package/src/plugins/source-contract/vendor/chunks/{chunk-XVA6H6OO.js → chunk-IIUWLSGP.js} +2 -2
- package/src/plugins/source-contract/vendor/chunks/chunk-ITQZIF2U.js +191 -0
- package/src/plugins/source-contract/vendor/chunks/{chunk-IL565TRX.js → chunk-KXQYSM2Z.js} +1 -1
- package/src/plugins/source-contract/vendor/chunks/{chunk-YH323FAZ.js → chunk-LJL3EALP.js} +238 -12
- package/src/plugins/source-contract/vendor/chunks/{chunk-NUEROZNU.js → chunk-NUBUQFLH.js} +1 -1
- package/src/plugins/source-contract/vendor/cursor.js +3 -3
- package/src/plugins/source-contract/vendor/descriptor.js +11 -11
- package/src/plugins/source-contract/vendor/events.js +22 -4
- package/src/plugins/source-contract/vendor/hints.js +33 -0
- package/src/plugins/source-contract/vendor/index.js +3 -3
- package/src/plugins/source-contract/vendor/params.js +3 -3
- package/src/plugins/source-contract/vendor/permission.js +3 -3
- package/src/plugins/source-contract/vendor/pick.js +5 -5
- package/src/plugins/source-contract/vendor/read.js +14 -14
- package/src/plugins/source-contract/vendor/registry.js +4 -4
- package/src/plugins/source-contract/vendor/schema.js +14 -10
- package/src/plugins/source-contract/vendor/schemas/fact.commitment.json +57 -0
- package/src/plugins/source-contract/vendor/schemas/fact.meeting.attended.json +35 -0
- package/src/plugins/source-contract/vendor/schemas/fact.person.attribute.json +37 -0
- package/src/plugins/source-contract/vendor/schemas/hint.json +41 -0
- package/src/plugins/source-contract/vendor/schemas/routine.json +67 -0
- package/src/plugins/source-contract/vendor/schemas/sources.json +56 -0
- package/src/plugins/source-contract/vendor/schemas.js +16 -11
- package/src/plugins/source-contract/vendor/tools-rpc.js +4 -4
- package/src/records.js +5 -0
- package/src/vendor/source-contract/README.md +10 -8
- package/src/vendor/source-contract/VENDOR.json +48 -39
- package/src/vendor/source-contract/chunks/{chunk-JUWIMDGF.js → chunk-6ZSJSJMV.js} +2 -2
- package/src/vendor/source-contract/chunks/{chunk-T4QM7B3S.js → chunk-CUITXC5J.js} +1 -1
- package/src/{plugins/source-contract/vendor/chunks/chunk-OZMX7VR7.js → vendor/source-contract/chunks/chunk-EOS4LD6F.js} +1 -1
- package/src/vendor/source-contract/chunks/{chunk-BOUWB5UP.js → chunk-GDBKZBG7.js} +2 -2
- package/src/vendor/source-contract/chunks/{chunk-X6XP7YK2.js → chunk-IGPRJ63D.js} +2 -2
- package/src/vendor/source-contract/chunks/{chunk-YH323FAZ.js → chunk-LJL3EALP.js} +238 -12
- package/src/vendor/source-contract/chunks/{chunk-NUEROZNU.js → chunk-NUBUQFLH.js} +1 -1
- package/src/vendor/source-contract/cursor.js +3 -3
- package/src/vendor/source-contract/events.js +22 -4
- package/src/vendor/source-contract/registry.js +4 -4
- package/src/vendor/source-contract/tools-rpc.js +4 -4
- package/src/views/contracts.js +5 -1
- package/src/views/rpc.js +11 -0
- package/src/views/shape.js +11 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
|
+
FACT_SCHEMAS,
|
|
3
4
|
MAX_BYTES_DEFAULT,
|
|
4
5
|
MAX_BYTES_LIMIT,
|
|
5
|
-
SOURCES_SCHEMA
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
12
|
-
import "./chunks/chunk-
|
|
6
|
+
SOURCES_SCHEMA,
|
|
7
|
+
factSchema
|
|
8
|
+
} from "./chunks/chunk-BEU3WWNO.js";
|
|
9
|
+
import "./chunks/chunk-IGPRJ63D.js";
|
|
10
|
+
import "./chunks/chunk-6ZSJSJMV.js";
|
|
11
|
+
import "./chunks/chunk-LJL3EALP.js";
|
|
12
|
+
import "./chunks/chunk-NUBUQFLH.js";
|
|
13
|
+
import "./chunks/chunk-EOS4LD6F.js";
|
|
14
|
+
import "./chunks/chunk-CUITXC5J.js";
|
|
13
15
|
export {
|
|
16
|
+
FACT_SCHEMAS,
|
|
14
17
|
MAX_BYTES_DEFAULT,
|
|
15
18
|
MAX_BYTES_LIMIT,
|
|
16
|
-
SOURCES_SCHEMA
|
|
19
|
+
SOURCES_SCHEMA,
|
|
20
|
+
factSchema
|
|
17
21
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "commitment"
|
|
8
|
+
},
|
|
9
|
+
"key": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 200,
|
|
13
|
+
"description": "A stable id of this commitment within the source and account."
|
|
14
|
+
},
|
|
15
|
+
"title": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 300
|
|
19
|
+
},
|
|
20
|
+
"owner": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 320,
|
|
24
|
+
"description": "An actor id on the same event."
|
|
25
|
+
},
|
|
26
|
+
"counterparty": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 320,
|
|
30
|
+
"description": "An actor id on the same event."
|
|
31
|
+
},
|
|
32
|
+
"due": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
35
|
+
},
|
|
36
|
+
"state": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"open",
|
|
40
|
+
"done",
|
|
41
|
+
"cancelled"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"url": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"maxLength": 2048
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"type",
|
|
51
|
+
"key",
|
|
52
|
+
"title",
|
|
53
|
+
"owner",
|
|
54
|
+
"state"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "meeting.attended"
|
|
8
|
+
},
|
|
9
|
+
"actor": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 320,
|
|
13
|
+
"description": "An actor id on the same event."
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"accepted",
|
|
19
|
+
"declined",
|
|
20
|
+
"tentative",
|
|
21
|
+
"needs_action"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"organizer": {
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"type",
|
|
30
|
+
"actor",
|
|
31
|
+
"response",
|
|
32
|
+
"organizer"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "person.attribute"
|
|
8
|
+
},
|
|
9
|
+
"actor": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 320,
|
|
13
|
+
"description": "An actor id on the same event."
|
|
14
|
+
},
|
|
15
|
+
"org": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 120
|
|
19
|
+
},
|
|
20
|
+
"team": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 120
|
|
24
|
+
},
|
|
25
|
+
"role": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 120
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"type",
|
|
33
|
+
"actor"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "A person's attribute, from structured profile or directory data only: at least one of org, team or role."
|
|
37
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"source": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"maxLength": 64,
|
|
8
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$",
|
|
9
|
+
"description": "One of the plugin's own source ids."
|
|
10
|
+
},
|
|
11
|
+
"kinds": {
|
|
12
|
+
"minItems": 1,
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 64
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"produces": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"commitment",
|
|
26
|
+
"decision",
|
|
27
|
+
"fact",
|
|
28
|
+
"preference",
|
|
29
|
+
"constraint",
|
|
30
|
+
"person",
|
|
31
|
+
"project"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"source",
|
|
38
|
+
"kinds"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"maxLength": 64,
|
|
8
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
9
|
+
},
|
|
10
|
+
"title": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 200
|
|
14
|
+
},
|
|
15
|
+
"reads": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"sources": {
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"maxLength": 64,
|
|
24
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
|
|
25
|
+
},
|
|
26
|
+
"description": "The plugin's own sources only."
|
|
27
|
+
},
|
|
28
|
+
"kinds": {
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"maxLength": 64
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"sources",
|
|
39
|
+
"kinds"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"produces": {
|
|
44
|
+
"minItems": 1,
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"commitment",
|
|
50
|
+
"decision",
|
|
51
|
+
"fact",
|
|
52
|
+
"preference",
|
|
53
|
+
"constraint",
|
|
54
|
+
"person",
|
|
55
|
+
"project"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"id",
|
|
62
|
+
"title",
|
|
63
|
+
"reads",
|
|
64
|
+
"produces"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
}
|
|
@@ -395,6 +395,39 @@
|
|
|
395
395
|
"description": "One read of an event's detail: the tool, and the event fields its input comes from."
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
|
+
"facts": {
|
|
399
|
+
"description": "The fact types this source's events carry (#45 §3), each a core type. An event may carry a fact of a declared type and of no other; Memory stamps the installed package's version on each fact it files.",
|
|
400
|
+
"minItems": 1,
|
|
401
|
+
"type": "array",
|
|
402
|
+
"items": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"enum": [
|
|
405
|
+
"commitment",
|
|
406
|
+
"person.attribute",
|
|
407
|
+
"meeting.attended"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"hints": {
|
|
412
|
+
"description": "The hint files the package ships for this source (#45 §4): how to read one kind of item, at most 1,500 characters each.",
|
|
413
|
+
"minItems": 1,
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"maxLength": 200,
|
|
418
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*(?:\\/[a-z0-9][a-z0-9._-]*)*\\.md$"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"routines": {
|
|
422
|
+
"description": "The routine files the package ships for this source (#45 §5). Memory's first engine runs only its own core routines, so a plugin ships one only later.",
|
|
423
|
+
"minItems": 1,
|
|
424
|
+
"type": "array",
|
|
425
|
+
"items": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"maxLength": 200,
|
|
428
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*(?:\\/[a-z0-9][a-z0-9._-]*)*\\.md$"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
398
431
|
"permission": {
|
|
399
432
|
"type": "object",
|
|
400
433
|
"properties": {
|
|
@@ -846,6 +879,26 @@
|
|
|
846
879
|
"properties": {},
|
|
847
880
|
"additionalProperties": {}
|
|
848
881
|
},
|
|
882
|
+
"hints": {
|
|
883
|
+
"description": "The hint files the package ships for this source (#45 §4): how to read one kind of item, at most 1,500 characters each.",
|
|
884
|
+
"minItems": 1,
|
|
885
|
+
"type": "array",
|
|
886
|
+
"items": {
|
|
887
|
+
"type": "string",
|
|
888
|
+
"maxLength": 200,
|
|
889
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*(?:\\/[a-z0-9][a-z0-9._-]*)*\\.md$"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"routines": {
|
|
893
|
+
"description": "The routine files the package ships for this source (#45 §5). Memory's first engine runs only its own core routines, so a plugin ships one only later.",
|
|
894
|
+
"minItems": 1,
|
|
895
|
+
"type": "array",
|
|
896
|
+
"items": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"maxLength": 200,
|
|
899
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*(?:\\/[a-z0-9][a-z0-9._-]*)*\\.md$"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
849
902
|
"permission": {
|
|
850
903
|
"type": "object",
|
|
851
904
|
"properties": {
|
|
@@ -942,6 +995,9 @@
|
|
|
942
995
|
"minimum": 1,
|
|
943
996
|
"maximum": 9007199254740991
|
|
944
997
|
},
|
|
998
|
+
"facts": {
|
|
999
|
+
"not": {}
|
|
1000
|
+
},
|
|
945
1001
|
"reads": {
|
|
946
1002
|
"not": {}
|
|
947
1003
|
},
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
|
+
OUTPUTS
|
|
4
|
+
} from "./chunks/chunk-GDBKZBG7.js";
|
|
5
|
+
import {
|
|
6
|
+
FACT_SCHEMAS,
|
|
3
7
|
SOURCES_SCHEMA
|
|
4
|
-
} from "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-YH323FAZ.js";
|
|
7
|
-
import "./chunks/chunk-NUEROZNU.js";
|
|
8
|
-
import "./chunks/chunk-OZMX7VR7.js";
|
|
8
|
+
} from "./chunks/chunk-BEU3WWNO.js";
|
|
9
|
+
import "./chunks/chunk-IGPRJ63D.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import "./chunks/chunk-
|
|
11
|
+
HINT_SCHEMA,
|
|
12
|
+
ROUTINE_SCHEMA
|
|
13
|
+
} from "./chunks/chunk-ITQZIF2U.js";
|
|
14
|
+
import "./chunks/chunk-6ZSJSJMV.js";
|
|
15
|
+
import "./chunks/chunk-LJL3EALP.js";
|
|
16
|
+
import "./chunks/chunk-NUBUQFLH.js";
|
|
17
|
+
import "./chunks/chunk-EOS4LD6F.js";
|
|
18
|
+
import "./chunks/chunk-CUITXC5J.js";
|
|
14
19
|
|
|
15
20
|
// src/schemas.ts
|
|
16
|
-
var SCHEMAS = [SOURCES_SCHEMA, ...Object.values(OUTPUTS)];
|
|
21
|
+
var SCHEMAS = [SOURCES_SCHEMA, ...Object.values(OUTPUTS), ...Object.values(FACT_SCHEMAS), HINT_SCHEMA, ROUTINE_SCHEMA];
|
|
17
22
|
export {
|
|
18
23
|
SCHEMAS
|
|
19
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
3
|
CLASSES,
|
|
4
4
|
LOCATION_HEADER,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
toolsRpcId,
|
|
17
17
|
toolsRpcIdProblems,
|
|
18
18
|
upstreamText
|
|
19
|
-
} from "./chunks/chunk-
|
|
19
|
+
} from "./chunks/chunk-IGPRJ63D.js";
|
|
20
20
|
import {
|
|
21
21
|
evaluate
|
|
22
|
-
} from "./chunks/chunk-
|
|
23
|
-
import "./chunks/chunk-
|
|
22
|
+
} from "./chunks/chunk-EOS4LD6F.js";
|
|
23
|
+
import "./chunks/chunk-CUITXC5J.js";
|
|
24
24
|
export {
|
|
25
25
|
CLASSES,
|
|
26
26
|
LOCATION_HEADER,
|
package/src/records.js
CHANGED
|
@@ -109,6 +109,11 @@ export function itemOfRecord(record) {
|
|
|
109
109
|
link: fields.link,
|
|
110
110
|
created: fields.created_day ?? dayOf(record?.created),
|
|
111
111
|
updated: dayOf(record?.updated),
|
|
112
|
+
// The version a change must name, as the commitment acts take it (#97): a
|
|
113
|
+
// list answer carries it, so a control needs no second read of the item.
|
|
114
|
+
// A record stored before versions existed reads as version 1 here and in
|
|
115
|
+
// the store's `fromRow`, so the list and the act that checks it agree.
|
|
116
|
+
revision: Number.isSafeInteger(Number(record?.version)) && Number(record.version) > 0 ? Number(record.version) : 1,
|
|
112
117
|
closed: fields.closed_at ? dayOf(fields.closed_at) : undefined,
|
|
113
118
|
session: record?.source?.session,
|
|
114
119
|
legacy_id: fields.legacy_id,
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
# Vendored `@we-the-rebel-alliance/source-contract`
|
|
2
2
|
|
|
3
|
-
**The locked v0.
|
|
4
|
-
`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
**The locked v0.3.0 release.** This is the package's `dist/` at
|
|
4
|
+
`2fd55cdc` — `v0.2.0` plus #46 (an actor's `kind`, `identities` and `self`, an
|
|
5
|
+
event's `reply_to`, `audience`, `domains`, `sections`, `parts` and `facts`, the
|
|
6
|
+
descriptor's `facts`, `hints` and `routines`, the `hints` module and the kit's
|
|
7
|
+
new checks), `package.json` version `0.3.0`. The `v0.3.0` tag is annotated
|
|
8
|
+
(`6e5136e2`), and `VENDOR.json` names the commit and the SHA-256 of every file
|
|
8
9
|
here.
|
|
9
10
|
|
|
10
11
|
- **Runtime:** `tools-rpc.js`, `events.js`, `cursor.js` and `registry.js` are what
|
|
11
12
|
Memory's sources carry the protocol with, so the copy ships inside the plugin (the
|
|
12
13
|
plugin may not import npm packages).
|
|
13
|
-
- **Tests:** `conformance.js` and `schemas/` are the conformance kit
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
- **Tests:** `conformance.js`, `hints.js` and `schemas/` are the conformance kit,
|
|
15
|
+
the hint and routine file formats, and the declaration schema.
|
|
16
|
+
`test/sources-conformance.test.js` runs the kit over every source Memory
|
|
17
|
+
declares, and holds each `x-` output's `data` to its inline schema.
|
|
16
18
|
- **Replaced by the tag.** When the package publishes `vX.Y.Z`, delete this
|
|
17
19
|
directory, pin `github:we-the-rebel-alliance/source-contract#vX.Y.Z`, and bundle
|
|
18
20
|
what is imported.
|
|
@@ -1,67 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "2fd55cdc0c6c1067927fefc403a88bfd18c9a971",
|
|
3
3
|
"package": "@we-the-rebel-alliance/source-contract",
|
|
4
4
|
"repository": "https://github.com/we-the-rebel-alliance/source-contract",
|
|
5
|
-
"tag": "v0.
|
|
6
|
-
"tagObject": "
|
|
7
|
-
"release": "https://github.com/we-the-rebel-alliance/source-contract/releases/tag/v0.
|
|
8
|
-
"vendoredAt": "2026-11-
|
|
9
|
-
"version": "0.
|
|
10
|
-
"why": "v0.
|
|
5
|
+
"tag": "v0.3.0",
|
|
6
|
+
"tagObject": "6e5136e274b7071d326d09d4ae5812b135228afb",
|
|
7
|
+
"release": "https://github.com/we-the-rebel-alliance/source-contract/releases/tag/v0.3.0",
|
|
8
|
+
"vendoredAt": "2026-11-18",
|
|
9
|
+
"version": "0.3.0",
|
|
10
|
+
"why": "v0.3.0's tagged release (tag v0.3.0 on 2fd55cdc), copied from the release tarball's dist/ after verifying it against the release's SHA256SUMS. tools-rpc, events, cursor, registry and hints are what the sources' protocol uses at runtime; the kit and the schema are read by Memory's tests.",
|
|
11
11
|
"files": {
|
|
12
12
|
"THIRD-PARTY-NOTICES.md": "1a00d3f937d6c65cd6987bbd0f0da1591d6f423bd7751aedfdc8cdd152bfa04e",
|
|
13
13
|
"broker-client.d.ts": "cf65170b6e960ae4b3501f91913fb4ddbf95d600239ef6bdeac12f872c8b9801",
|
|
14
|
-
"broker-client.js": "
|
|
15
|
-
"chunks/chunk-
|
|
16
|
-
"chunks/chunk-
|
|
17
|
-
"chunks/chunk-
|
|
18
|
-
"chunks/chunk-
|
|
19
|
-
"chunks/chunk-
|
|
20
|
-
"chunks/chunk-
|
|
21
|
-
"chunks/chunk-
|
|
22
|
-
"chunks/chunk-
|
|
23
|
-
"chunks/chunk-
|
|
24
|
-
"chunks/chunk-
|
|
25
|
-
"chunks/chunk-
|
|
26
|
-
"chunks/chunk-
|
|
27
|
-
"chunks/chunk-
|
|
14
|
+
"broker-client.js": "7338322bbbcf2a9aa4970be52b49d64f8d9b29a4817225de817415fc5df38ce7",
|
|
15
|
+
"chunks/chunk-6ZSJSJMV.js": "f4dce407e43e69044733d1c777f8f675da019b35b61829f5427a7399c378d473",
|
|
16
|
+
"chunks/chunk-A2KM6BYK.js": "3b48f3dce57ce54db9cfd760b92b1e6785297a9624792e66d3a99c404f8fdbc1",
|
|
17
|
+
"chunks/chunk-BEU3WWNO.js": "1a84c77dea7873ca5454d1e141a7abf9fbc2088cdbd2521aab0985be37e15c4b",
|
|
18
|
+
"chunks/chunk-CUITXC5J.js": "7356ce701b8031c195cd80c607e42132327c70f5ce77d8d90136fdbf229391be",
|
|
19
|
+
"chunks/chunk-EOS4LD6F.js": "284e0921f6e59c8f25b5627587388628e0e58cf836ea58a067ba059b06c34cf3",
|
|
20
|
+
"chunks/chunk-EUDLXWG4.js": "94a7d607142cc65a444f5136115cdb52c19a8f8e6a3148d2b0f67d5757a53b3e",
|
|
21
|
+
"chunks/chunk-GDBKZBG7.js": "95bda4fd3eabc20c99415c099d3bf8f217d6875491ca9b95fd7a350480114364",
|
|
22
|
+
"chunks/chunk-HR22TL23.js": "686b9fb992371b09b2410c26e4ae1434cd5537093dff500f8408df0960a48393",
|
|
23
|
+
"chunks/chunk-IGPRJ63D.js": "d3760e44d7b51aeabf6a79ea6b36b8193746c91e2bdcf4af5b847e05213c1cda",
|
|
24
|
+
"chunks/chunk-IIUWLSGP.js": "5a77c6f0147828e322361180282b16ffa5ec532460047f67462dff7b3614653b",
|
|
25
|
+
"chunks/chunk-ITQZIF2U.js": "66c80befaab4e4a60030aff86536c8714c3689007eae952d9fe64e4c0bfc755d",
|
|
26
|
+
"chunks/chunk-KXQYSM2Z.js": "2db8791393a51144ad625a93c32ed7b513d62b32c1e8a5aa04ef5d9367128de5",
|
|
27
|
+
"chunks/chunk-LJL3EALP.js": "6e9f5bcb4ed13a1bce165a37f766d0cc6ff60f8103bcbe357061977cfb2669d8",
|
|
28
|
+
"chunks/chunk-NUBUQFLH.js": "7af09eece1414e0b0f9bb201427d662b96f29b650bb6115998362135dce303b6",
|
|
28
29
|
"conformance.d.ts": "e7bff576b2085cde07b9fc82244b1b41475175f28c6fd5d26eac383306ecb01e",
|
|
29
|
-
"conformance.js": "
|
|
30
|
+
"conformance.js": "79c27dccfa5792298d15e0c5772e02af88194f3696af5063aebf43b94e0b64f0",
|
|
30
31
|
"cursor.d.ts": "b6bd52b4f5267fba84fc6ac4c46f06aeddc8f77d216980929aaed8577f8caa32",
|
|
31
|
-
"cursor.js": "
|
|
32
|
+
"cursor.js": "e79fac955db3d8441c1e74e8e2c8197c6cce6046974528805771c87d46192acc",
|
|
32
33
|
"descriptor.d.ts": "da9eeaf84362a3954e53ad695d86ef37c0721f6ef61667054a81b5a5c968345d",
|
|
33
|
-
"descriptor.js": "
|
|
34
|
+
"descriptor.js": "024e4036fbe3a2de25253a222565901429fc05acc62babd7624aabd8763dc471",
|
|
34
35
|
"events.d.ts": "cee2042a1a8216ceabd1ea22a997f6fb1754516ce4d3fa241ab135904e5d33db",
|
|
35
|
-
"events.js": "
|
|
36
|
+
"events.js": "4371c957d5b8482410a1a4b3112eb6846de3fba672cc9862d129a77780cfd040",
|
|
37
|
+
"hints.d.ts": "a47860e1184688ccca2b73f41ccc30e70046658a9cce33ab5d408815a0039ac9",
|
|
38
|
+
"hints.js": "46cf305d3f0a6a56e6062d0f3af98acd84466ca04ed85ccbbc487962bd843e6b",
|
|
36
39
|
"index.d.ts": "04416e21fe8ff873f320ddc2e55b4c061760fc5c3a908d9636119135dc4272d2",
|
|
37
|
-
"index.js": "
|
|
40
|
+
"index.js": "66079527c7f5526d0b7629cce7882c1b07edcdfe0c3493a69f630c778f60c2d0",
|
|
38
41
|
"internal/checked.d.ts": "b139039477b76f14aa42683729f059607218a059180e638620c98c70ac4a8d09",
|
|
39
42
|
"internal/conformance/details.d.ts": "abc4d34f01b11ac668510030a10646d306919f176de72d245454a8fbe1c8061c",
|
|
40
|
-
"internal/conformance/kit.d.ts": "
|
|
43
|
+
"internal/conformance/kit.d.ts": "d7edb96bb675ced2eb27c51fca93ec2002c074af6e3ea2078465ad6b0a8f1bb1",
|
|
41
44
|
"internal/conformance/page.d.ts": "839e4b9768d60d5d0b89da9f40a1b33a91c5497059a3167f1123493962604773",
|
|
42
45
|
"internal/conformance/permission.d.ts": "e7b64e4de90c2a44982c73451bd5a04779433b2a9c45afc9c7910a2fa609d34c",
|
|
43
46
|
"internal/conformance/probe.d.ts": "76fca0d07bb8de25931c0520a4a928b0957e852679d410f044a1fe1e8e305c6a",
|
|
44
47
|
"internal/conformance/rules.d.ts": "b5566a7b8c68d67ad017114bb49b18d77b1720f6352aa2f5d2517e55a95802ca",
|
|
45
48
|
"internal/conformance/suggest.d.ts": "fc75a1f0a495afe4d2289aa597fcb3d862b9d9326060f897b085a4772744674a",
|
|
46
49
|
"internal/events-conformance.d.ts": "4ba72ddf14447b064f5e9e775b57bf182c8d504fd9076a1b8cd55a0a1d329c95",
|
|
47
|
-
"internal/events.d.ts": "
|
|
50
|
+
"internal/events.d.ts": "dc2b849b52f589ae1d355d299f04b0776e127e9da45d2164b5b4e57027aa40e1",
|
|
48
51
|
"internal/failure.d.ts": "8a97c06868c3004afce0c17ad3f34a456be7e263e4f6437c2ec5f463f988275b",
|
|
49
|
-
"internal/schema/
|
|
52
|
+
"internal/schema/facts.d.ts": "38c5e2cdc18ddd2daf7a1d25acd320a860af6e5d3c6e208af46e3f7a8eb10fe7",
|
|
53
|
+
"internal/schema/types.d.ts": "c485499c89221790ef410ee2794deb0824829b9e32306a800fa7301d7fe24f19",
|
|
50
54
|
"internal/secrets.d.ts": "8e294e3b5c0c84eedd90bc60af8476e2bbcfc5f9f775963f07a9ec180a5e3b13",
|
|
51
55
|
"params.d.ts": "454d5aa201c4f80be08502de442e835fa2619a923440f7b25969def6436676d3",
|
|
52
|
-
"params.js": "
|
|
56
|
+
"params.js": "3bfa29b240986be60c838c21c5f0ea16183dd965ee772987d56d28f82e03cdbb",
|
|
53
57
|
"permission.d.ts": "70c5a80e43971e8b81920ae053e0c7de36ecbfb09414cf91080e75ece09bdd96",
|
|
54
|
-
"permission.js": "
|
|
58
|
+
"permission.js": "c4102e605cadc767603a297f158375bbbe7d36c26fa5cedf367f8574be07d03f",
|
|
55
59
|
"pick.d.ts": "e41f48be4cbde48049ad1a34dbd844b532a0b0d37f6490b4de60e24252591d8a",
|
|
56
|
-
"pick.js": "
|
|
60
|
+
"pick.js": "2932b5e06b55546c53a49947cdaedcca35d4e9f67265e024feb0bd23e1cfcfb3",
|
|
57
61
|
"read.d.ts": "1cdc2123f9094c8aaaffd10dfbd7c89f58269b774f9e6e3cf4ab875a2f5bab08",
|
|
58
|
-
"read.js": "
|
|
62
|
+
"read.js": "2db6b59d39209acfe0cc1c6ebf7819d3c1e44fb0f57875769524550d7692978c",
|
|
59
63
|
"registry.d.ts": "d28922618fa5e6b6601ff5c1cf250545a86fe9cc342712115bd57716d0637760",
|
|
60
|
-
"registry.js": "
|
|
61
|
-
"schema.d.ts": "
|
|
62
|
-
"schema.js": "
|
|
64
|
+
"registry.js": "6d2b55b4fceacefd17d3fbac4d59fb270802ab55d4f99ed503f4a738f1dbf189",
|
|
65
|
+
"schema.d.ts": "a5e78ab6df089c6141c5e622541f5e5c201bfc512c01fe057b79a1af5c276cb9",
|
|
66
|
+
"schema.js": "702e50402f5c1223ddc2106d414b5af3b3758b4eeefe81276b416e8da7acc06e",
|
|
63
67
|
"schemas.d.ts": "5893b16f86f605ac68d37496e0a79c825fa412acb804977e28c3e44f2c90ede9",
|
|
64
|
-
"schemas.js": "
|
|
68
|
+
"schemas.js": "a88ec1bbf780363580e50c3ac034a7793888cdb93a7904c0e083eaa650bcc87e",
|
|
69
|
+
"schemas/fact.commitment.json": "6b28eb55681a16ec008f80ec50d1406ef5841b81d06142265e0d34592227294a",
|
|
70
|
+
"schemas/fact.meeting.attended.json": "57ae58c8631b9e430acd4ad93d2f605d6edb1111c50a0dd6ed9f28bae8187f44",
|
|
71
|
+
"schemas/fact.person.attribute.json": "d7c146d58ba5a4331c54211ecc007fa515a04208e1685b6b73a5a17c49c23a43",
|
|
72
|
+
"schemas/hint.json": "b6a74c4c70be553c84be2028186336ed8e20264a350aad60995b3ee612cb0f06",
|
|
65
73
|
"schemas/output.agenda.json": "afdcaa972b3294394883025d8c531ff51d4117cb8f5d2240b5f55319cf646b10",
|
|
66
74
|
"schemas/output.countdown.json": "2bb069201056c91056b3590417918970e3b79950df39f45f1537cc59eb3b9933",
|
|
67
75
|
"schemas/output.image.json": "b162cf16515ffb3eb324c4cc62d9898e6c894ba882d91af60025b60cf33129f9",
|
|
@@ -74,8 +82,9 @@
|
|
|
74
82
|
"schemas/output.record.json": "30fbb81a6f8df5d0601e428f2503eb726eca603cc350805852dc7c909a9b59a1",
|
|
75
83
|
"schemas/output.table.json": "3d9695004dbf803576efcca0ff5bcef94af2d9475131db2fc694f974bc217dae",
|
|
76
84
|
"schemas/output.thread.json": "ffaaaa5107a2a6b7b36230e2e458383591b687af77c1be2e1876194bdeb40f90",
|
|
77
|
-
"schemas/
|
|
85
|
+
"schemas/routine.json": "57e741ae3ff5b5685da7f267457d55459b66339e5aad6307eefc66e3c17921e0",
|
|
86
|
+
"schemas/sources.json": "94960ad9f02464e80cbfb27cf85ad1383f27a33e1b7760319d0a925c0ca68101",
|
|
78
87
|
"tools-rpc.d.ts": "f54924d710ff8f75fc9607bec13db2b74ae74753ff6d640dbfdd809d9aa13bbd",
|
|
79
|
-
"tools-rpc.js": "
|
|
88
|
+
"tools-rpc.js": "c29b83c40ccb62a519250ac077e8469428402b8eeec0615b11bf6ef2bd9718d3"
|
|
80
89
|
}
|
|
81
90
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
3
|
__export
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CUITXC5J.js";
|
|
5
5
|
|
|
6
6
|
// node_modules/zod/v4/classic/schemas.js
|
|
7
7
|
var schemas_exports2 = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __export = (target, all) => {
|
|
4
4
|
for (var name in all)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
3
|
_enum,
|
|
4
4
|
_null,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
string,
|
|
14
14
|
union,
|
|
15
15
|
validator
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ZSJSJMV.js";
|
|
17
17
|
|
|
18
18
|
// src/registry.ts
|
|
19
19
|
var text = (max) => string().max(max);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// @we-the-rebel-alliance/source-contract 0.
|
|
1
|
+
// @we-the-rebel-alliance/source-contract 0.3.0. Built by scripts/build.mjs; do not edit.
|
|
2
2
|
import {
|
|
3
3
|
ACCOUNT_PATTERN,
|
|
4
4
|
evaluate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EOS4LD6F.js";
|
|
6
6
|
|
|
7
7
|
// src/tools-rpc.ts
|
|
8
8
|
import { randomUUID } from "node:crypto";
|