@sharedcontext/sdk 0.0.0-stage → 0.2.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/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/NOTICE +8 -0
- package/README.md +84 -2
- package/dist/canonical.d.ts +47 -0
- package/dist/canonical.js +257 -0
- package/dist/client.d.ts +96 -0
- package/dist/client.js +205 -0
- package/dist/constants.d.ts +19 -0
- package/dist/constants.js +21 -0
- package/dist/event.d.ts +104 -0
- package/dist/event.js +173 -0
- package/dist/generated/content.d.ts +588 -0
- package/dist/generated/content.js +3 -0
- package/dist/generated/schemas.d.ts +5 -0
- package/dist/generated/schemas.js +15 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/reasons.d.ts +14 -0
- package/dist/reasons.js +142 -0
- package/dist/schema.d.ts +29 -0
- package/dist/schema.js +265 -0
- package/dist/types.d.ts +230 -0
- package/dist/types.js +3 -0
- package/package.json +44 -4
- package/schemas/sharedcontext-1/changes.schema.json +128 -0
- package/schemas/sharedcontext-1/content.schema.json +2076 -0
- package/schemas/sharedcontext-1/context.schema.json +218 -0
- package/schemas/sharedcontext-1/event.schema.json +55 -0
- package/schemas/sharedcontext-1/execution.schema.json +342 -0
- package/schemas/sharedcontext-1/history/content-1.0.schema.json +1915 -0
- package/schemas/sharedcontext-1/lineage.schema.json +753 -0
- package/schemas/sharedcontext-1/mcp-tools.schema.json +1357 -0
- package/schemas/sharedcontext-1/stored-event.schema.json +14 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "sharedcontext/1 stored event",
|
|
4
|
+
"description": "An event as the log stores and serves it: the signed event plus the server-side fields, which are never hashed or signed. seq is the one fold order; received_at (unix seconds) is the lease clock; policy_version is the hash of the policy version the log checked the event against. One line of the fixture log after its header.",
|
|
5
|
+
"$comment": "Source: crates/sharedcontext/src/signed/event.rs struct StoredEvent {seq, received_at, policy_version (optional: absent only for events stored before the log recorded policy versions), event}; fixture line format {seq, received_at, policy_version, event} (crates/sharedcontext/fixtures/README.md).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["seq", "received_at", "event"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"seq": { "type": "integer", "minimum": 1 },
|
|
10
|
+
"received_at": { "type": "integer", "minimum": 0 },
|
|
11
|
+
"policy_version": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "$comment": "crates/sharedcontext/src/work/org.rs policy_version" },
|
|
12
|
+
"event": { "$ref": "event.schema.json" }
|
|
13
|
+
}
|
|
14
|
+
}
|