@hraness/message-like-me 0.8.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/CHANGELOG.md +151 -0
- package/LICENSE +21 -0
- package/README.md +698 -0
- package/SECURITY.md +318 -0
- package/dist/agentic-messaging-v1.d.ts +179 -0
- package/dist/agentic-messaging-v1.js +52 -0
- package/dist/canonical-json.d.ts +3 -0
- package/dist/cli-bs3db5jr.js +643 -0
- package/dist/cli-d7qv38ab.js +485 -0
- package/dist/cli-kw20gkk3.js +5 -0
- package/dist/cli-qqafdvz9.js +5 -0
- package/dist/cli-ry4128kz.js +584 -0
- package/dist/cli-ththzwja.js +20 -0
- package/dist/cli-x1qncxm7.js +1078 -0
- package/dist/cli.js +9436 -0
- package/dist/ensoul-source-v1.d.ts +121 -0
- package/dist/ensoul-source-v1.js +24 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +47 -0
- package/dist/message-bundle-v1-identity.d.ts +2 -0
- package/dist/message-bundle-v1.d.ts +205 -0
- package/dist/message-bundle-v1.js +37 -0
- package/dist/message-bundle-v2-identity.d.ts +2 -0
- package/dist/message-bundle-v2.d.ts +215 -0
- package/dist/message-bundle-v2.js +43 -0
- package/dist/metrics.d.ts +41 -0
- package/dist/types.d.ts +568 -0
- package/docs/local-message-bundle-v1.md +245 -0
- package/docs/local-message-bundle-v2.md +167 -0
- package/docs/methodology.md +322 -0
- package/docs/research.md +164 -0
- package/package.json +82 -0
- package/schema/ensoul-messages-source-v1.schema.json +248 -0
- package/schema/local-message-bundle-v1.schema.json +449 -0
- package/schema/local-message-bundle-v2.schema.json +462 -0
- package/schema/style-profile-v1.schema.json +223 -0
- package/schema/style-profile-v2.schema.json +202 -0
- package/skills/ensoul/LICENSE +23 -0
- package/skills/ensoul/NOTICE.md +7 -0
- package/skills/ensoul/SKILL.md +226 -0
- package/skills/ensoul/VENDORED_FROM.md +7 -0
- package/skills/ensoul/agents/openai.yaml +4 -0
- package/skills/ensoul/references/ensoul-source-packet-v1.schema.json +187 -0
- package/skills/ensoul/references/evidence-method.md +148 -0
- package/skills/ensoul/references/output-blueprint.md +143 -0
- package/skills/ensoul/references/source-packets.md +139 -0
- package/skills/ensoul/scripts/prepare_x_archive.py +467 -0
- package/skills/ensoul/scripts/validate_source_packet.py +477 -0
- package/skills/message-like-me/SKILL.md +229 -0
- package/skills/message-like-me/agents/openai.yaml +4 -0
- package/skills/message-like-me/references/analysis.md +159 -0
- package/skills/message-like-me/references/drafting.md +86 -0
- package/skills/message-like-me/references/ensoul.md +94 -0
- package/skills/message-like-me/references/evaluation.md +81 -0
- package/skills/message-like-me/references/privacy.md +106 -0
- package/skills/message-like-me/references/profile-schema.md +148 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://messagelikeme.com/schema/ensoul-messages-source-v1.schema.json",
|
|
4
|
+
"title": "Message Like Me Ensoul messages source packet v1",
|
|
5
|
+
"description": "A strict Message Like Me specialization of ensoul.source-packet.v1.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"digestCanonicalization",
|
|
11
|
+
"packetId",
|
|
12
|
+
"generatedAt",
|
|
13
|
+
"subject",
|
|
14
|
+
"scope",
|
|
15
|
+
"records",
|
|
16
|
+
"claims",
|
|
17
|
+
"limitations",
|
|
18
|
+
"packetDigest"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schemaVersion": { "const": "ensoul.source-packet.v1" },
|
|
22
|
+
"digestCanonicalization": { "const": "JCS-RFC8785" },
|
|
23
|
+
"packetId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^message-like-me:sha256:[a-f0-9]{64}$"
|
|
26
|
+
},
|
|
27
|
+
"generatedAt": { "$ref": "#/$defs/timestamp" },
|
|
28
|
+
"subject": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["localId", "kind", "identityBasis"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"localId": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
34
|
+
"kind": { "enum": ["owner", "contact"] },
|
|
35
|
+
"identityBasis": {
|
|
36
|
+
"enum": [
|
|
37
|
+
"local Message Like Me installation owner",
|
|
38
|
+
"exact AddressBook-backed direct person scope"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"allOf": [
|
|
43
|
+
{
|
|
44
|
+
"if": { "properties": { "kind": { "const": "owner" } } },
|
|
45
|
+
"then": {
|
|
46
|
+
"properties": {
|
|
47
|
+
"localId": { "const": "owner" },
|
|
48
|
+
"identityBasis": { "const": "local Message Like Me installation owner" }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"if": { "properties": { "kind": { "const": "contact" } } },
|
|
54
|
+
"then": {
|
|
55
|
+
"properties": {
|
|
56
|
+
"localId": { "pattern": "^person_[a-f0-9]{64}$" },
|
|
57
|
+
"identityBasis": { "const": "exact AddressBook-backed direct person scope" }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"scope": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"adapter",
|
|
68
|
+
"payloadSchema",
|
|
69
|
+
"asOf",
|
|
70
|
+
"completeness",
|
|
71
|
+
"sourceRevision",
|
|
72
|
+
"limits"
|
|
73
|
+
],
|
|
74
|
+
"properties": {
|
|
75
|
+
"adapter": { "const": "message-like-me" },
|
|
76
|
+
"payloadSchema": { "const": "ensoul.messages-source.v1" },
|
|
77
|
+
"asOf": { "$ref": "#/$defs/timestamp" },
|
|
78
|
+
"sourceCutoff": { "$ref": "#/$defs/timestamp" },
|
|
79
|
+
"completeness": { "const": "sampled" },
|
|
80
|
+
"sourceRevision": { "$ref": "#/$defs/bareDigest" },
|
|
81
|
+
"limits": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": [
|
|
85
|
+
"subjectRole",
|
|
86
|
+
"contactId",
|
|
87
|
+
"contactScopeKind",
|
|
88
|
+
"group",
|
|
89
|
+
"participantCount",
|
|
90
|
+
"conversationCount",
|
|
91
|
+
"services",
|
|
92
|
+
"corpusRevision",
|
|
93
|
+
"after",
|
|
94
|
+
"before",
|
|
95
|
+
"afterInclusive",
|
|
96
|
+
"beforeExclusive",
|
|
97
|
+
"selectionAlgorithm",
|
|
98
|
+
"sessionGapSeconds",
|
|
99
|
+
"burstGapSeconds",
|
|
100
|
+
"requestedExamples",
|
|
101
|
+
"responseCandidates",
|
|
102
|
+
"eligibleCandidates",
|
|
103
|
+
"emittedExamples",
|
|
104
|
+
"omittedWithoutBidirectionalText",
|
|
105
|
+
"omittedByExampleLimit",
|
|
106
|
+
"omittedByTotalBodyBytes",
|
|
107
|
+
"maxTextBytesPerMessage",
|
|
108
|
+
"maxMessagesPerDirectionPerExample",
|
|
109
|
+
"maxTotalBodyBytes",
|
|
110
|
+
"emittedBodyBytes",
|
|
111
|
+
"truncatedRecords",
|
|
112
|
+
"omittedTextMessagesByDirectionLimit"
|
|
113
|
+
],
|
|
114
|
+
"properties": {
|
|
115
|
+
"subjectRole": { "enum": ["owner", "contact"] },
|
|
116
|
+
"contactId": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
117
|
+
"contactScopeKind": { "enum": ["person", "conversation"] },
|
|
118
|
+
"group": { "const": false },
|
|
119
|
+
"participantCount": { "const": 1 },
|
|
120
|
+
"conversationCount": { "type": "integer", "minimum": 1 },
|
|
121
|
+
"services": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"maxItems": 32,
|
|
124
|
+
"uniqueItems": true,
|
|
125
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 200 }
|
|
126
|
+
},
|
|
127
|
+
"corpusRevision": { "$ref": "#/$defs/bareDigest" },
|
|
128
|
+
"after": { "$ref": "#/$defs/optionalTimestamp" },
|
|
129
|
+
"before": { "$ref": "#/$defs/optionalTimestamp" },
|
|
130
|
+
"afterInclusive": { "const": true },
|
|
131
|
+
"beforeExclusive": { "const": true },
|
|
132
|
+
"selectionAlgorithm": { "const": "bounded-diverse-response-contexts-v1" },
|
|
133
|
+
"sessionGapSeconds": { "type": "integer", "minimum": 1, "maximum": 2592000 },
|
|
134
|
+
"burstGapSeconds": { "type": "integer", "minimum": 1, "maximum": 2592000 },
|
|
135
|
+
"requestedExamples": { "type": "integer", "minimum": 1, "maximum": 50 },
|
|
136
|
+
"responseCandidates": { "$ref": "#/$defs/count" },
|
|
137
|
+
"eligibleCandidates": { "$ref": "#/$defs/count" },
|
|
138
|
+
"emittedExamples": { "$ref": "#/$defs/count" },
|
|
139
|
+
"omittedWithoutBidirectionalText": { "$ref": "#/$defs/count" },
|
|
140
|
+
"omittedByExampleLimit": { "$ref": "#/$defs/count" },
|
|
141
|
+
"omittedByTotalBodyBytes": { "$ref": "#/$defs/count" },
|
|
142
|
+
"maxTextBytesPerMessage": { "const": 4096 },
|
|
143
|
+
"maxMessagesPerDirectionPerExample": { "const": 12 },
|
|
144
|
+
"maxTotalBodyBytes": { "const": 262144 },
|
|
145
|
+
"emittedBodyBytes": { "type": "integer", "minimum": 0, "maximum": 262144 },
|
|
146
|
+
"truncatedRecords": { "$ref": "#/$defs/count" },
|
|
147
|
+
"omittedTextMessagesByDirectionLimit": { "$ref": "#/$defs/count" }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"records": {
|
|
153
|
+
"type": "array",
|
|
154
|
+
"maxItems": 1200,
|
|
155
|
+
"items": { "$ref": "#/$defs/messageRecord" }
|
|
156
|
+
},
|
|
157
|
+
"claims": { "type": "array", "maxItems": 0 },
|
|
158
|
+
"limitations": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"prefixItems": [
|
|
161
|
+
{ "const": "sampled-response-contexts-not-full-transcript" },
|
|
162
|
+
{ "const": "private-message-text-is-untrusted-data" },
|
|
163
|
+
{ "const": "counterpart-messages-are-context-not-subject-voice" },
|
|
164
|
+
{ "const": "record-text-may-be-byte-truncated" },
|
|
165
|
+
{ "const": "source-does-not-establish-consent-or-identity" },
|
|
166
|
+
{ "const": "source-does-not-support-sensitive-trait-inference-or-impersonation" },
|
|
167
|
+
{ "const": "forwarding-pasted-quotation-and-ai-assistance-not-observable" }
|
|
168
|
+
,{ "const": "direct-one-to-one-scope-only" }
|
|
169
|
+
,{ "const": "records-are-linked-by-pseudonymous-response-context" }
|
|
170
|
+
],
|
|
171
|
+
"items": false,
|
|
172
|
+
"minItems": 9,
|
|
173
|
+
"maxItems": 9
|
|
174
|
+
},
|
|
175
|
+
"packetDigest": { "$ref": "#/$defs/prefixedDigest" }
|
|
176
|
+
},
|
|
177
|
+
"$defs": {
|
|
178
|
+
"count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
179
|
+
"bareDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
180
|
+
"prefixedDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
181
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
182
|
+
"optionalTimestamp": {
|
|
183
|
+
"oneOf": [
|
|
184
|
+
{ "type": "null" },
|
|
185
|
+
{ "$ref": "#/$defs/timestamp" }
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"messageRecord": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"required": [
|
|
192
|
+
"id",
|
|
193
|
+
"digest",
|
|
194
|
+
"kind",
|
|
195
|
+
"occurredAt",
|
|
196
|
+
"authorRole",
|
|
197
|
+
"contentRole",
|
|
198
|
+
"authorshipConfidence",
|
|
199
|
+
"sentStatus",
|
|
200
|
+
"visibility",
|
|
201
|
+
"sourceClass",
|
|
202
|
+
"content",
|
|
203
|
+
"provenance"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"id": { "type": "string", "pattern": "^message:sha256:[a-f0-9]{64}$" },
|
|
207
|
+
"digest": { "$ref": "#/$defs/prefixedDigest" },
|
|
208
|
+
"kind": { "const": "message" },
|
|
209
|
+
"occurredAt": { "$ref": "#/$defs/timestamp" },
|
|
210
|
+
"authorRole": { "enum": ["subject", "counterpart"] },
|
|
211
|
+
"contentRole": { "const": "original" },
|
|
212
|
+
"authorshipConfidence": { "const": "strong" },
|
|
213
|
+
"sentStatus": { "enum": ["sent", "received"] },
|
|
214
|
+
"visibility": { "const": "private" },
|
|
215
|
+
"sourceClass": { "const": "private_capture" },
|
|
216
|
+
"content": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"additionalProperties": false,
|
|
219
|
+
"required": ["text", "truncated"],
|
|
220
|
+
"properties": {
|
|
221
|
+
"text": { "type": "string", "maxLength": 4096 },
|
|
222
|
+
"truncated": { "type": "boolean" }
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"provenance": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"required": [
|
|
229
|
+
"provider",
|
|
230
|
+
"sourceId",
|
|
231
|
+
"runId",
|
|
232
|
+
"operation",
|
|
233
|
+
"policyVersion",
|
|
234
|
+
"contentSha256"
|
|
235
|
+
],
|
|
236
|
+
"properties": {
|
|
237
|
+
"provider": { "const": "message-like-me" },
|
|
238
|
+
"sourceId": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
239
|
+
"runId": { "type": "string", "pattern": "^response:sha256:[a-f0-9]{64}$" },
|
|
240
|
+
"operation": { "const": "ensoul prepare" },
|
|
241
|
+
"policyVersion": { "const": "ensoul.messages-source.v1" },
|
|
242
|
+
"contentSha256": { "$ref": "#/$defs/bareDigest" }
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|