@agentplat/mesh-protocol 0.3.0-alpha.4 → 0.3.0-beta.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.
Files changed (48) hide show
  1. package/README.md +10 -3
  2. package/dist/contracts.d.ts +26 -9
  3. package/dist/contracts.d.ts.map +1 -1
  4. package/dist/contracts.js +9 -2
  5. package/dist/contracts.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/validation.d.ts +9 -1
  11. package/dist/validation.d.ts.map +1 -1
  12. package/dist/validation.js +88 -12
  13. package/dist/validation.js.map +1 -1
  14. package/fixtures/v0/README.md +5 -0
  15. package/fixtures/v0/manifest.json +384 -0
  16. package/fixtures/v1/README.md +16 -0
  17. package/fixtures/v1/capability-advertise.json +47 -0
  18. package/fixtures/v1/capability-withdraw.json +32 -0
  19. package/fixtures/v1/evidence-attest.json +40 -0
  20. package/fixtures/v1/evidence-challenge.json +46 -0
  21. package/fixtures/v1/evidence-claim.json +48 -0
  22. package/fixtures/v1/evidence-retract.json +39 -0
  23. package/fixtures/v1/lease-certificate.json +38 -0
  24. package/fixtures/v1/lease-renew.json +47 -0
  25. package/fixtures/v1/lease-takeover-proposal.json +52 -0
  26. package/fixtures/v1/lease-vote.json +34 -0
  27. package/fixtures/v1/manifest.json +477 -0
  28. package/fixtures/v1/objective-announce.json +59 -0
  29. package/fixtures/v1/objective-cancel.json +34 -0
  30. package/fixtures/v1/objective-revise.json +58 -0
  31. package/fixtures/v1/peer-card.json +44 -0
  32. package/fixtures/v1/peer-goodbye.json +32 -0
  33. package/fixtures/v1/peer-hello.json +30 -0
  34. package/fixtures/v1/peer-ping-ack.json +29 -0
  35. package/fixtures/v1/peer-ping.json +28 -0
  36. package/fixtures/v1/public-key.raw.json +6 -0
  37. package/fixtures/v1/trust-observation.json +54 -0
  38. package/fixtures/v1/work-accept.json +44 -0
  39. package/fixtures/v1/work-award.json +52 -0
  40. package/fixtures/v1/work-bid.json +54 -0
  41. package/fixtures/v1/work-cancel.json +46 -0
  42. package/fixtures/v1/work-checkpoint.json +48 -0
  43. package/fixtures/v1/work-decline.json +44 -0
  44. package/fixtures/v1/work-offer.json +51 -0
  45. package/fixtures/v1/work-progress.json +47 -0
  46. package/fixtures/v1/work-release.json +47 -0
  47. package/fixtures/v1/work-result.json +48 -0
  48. package/package.json +2 -2
@@ -0,0 +1,51 @@
1
+ {
2
+ "protocol": "agentplat.mesh",
3
+ "wireVersion": 1,
4
+ "messageId": "WWWWWWWWWWWWWWWWWWWWWA",
5
+ "tenantId": "tenant-a",
6
+ "meshId": "mesh-a",
7
+ "objectiveId": "objective-a",
8
+ "type": "work.offer",
9
+ "sender": {
10
+ "peerId": "peer-a",
11
+ "instanceId": "instance-a"
12
+ },
13
+ "audience": {
14
+ "kind": "peer",
15
+ "peerId": "peer-b"
16
+ },
17
+ "sequence": 9,
18
+ "sentAt": "2026-07-30T00:00:00.000Z",
19
+ "expiresAt": "2026-07-30T00:01:00.000Z",
20
+ "payloadHash": "sha256:jD9n0UrdQC4M7UF7pSZyHVniGMUgJzJr8gIqB-dqlLQ",
21
+ "payload": {
22
+ "type": "work.offer",
23
+ "offerId": "offer-a",
24
+ "objectiveId": "objective-a",
25
+ "objectiveDocumentId": "objective-document-a",
26
+ "objectiveRevision": 1,
27
+ "workItemId": "work-item-a",
28
+ "workItemRevision": 1,
29
+ "ownerPeerId": "peer-a",
30
+ "ownerEpoch": 1,
31
+ "offerAttempt": 1,
32
+ "requiredCapabilityKeys": [
33
+ "summarize"
34
+ ],
35
+ "matchingAttributes": {
36
+ "language": "en"
37
+ },
38
+ "inputSummary": "Summarize the approved material.",
39
+ "completionCriteria": [
40
+ "Return a concise summary."
41
+ ],
42
+ "budgetReservationUnits": 100,
43
+ "bidDeadline": "2026-07-30T00:01:00.000Z",
44
+ "workDeadline": "2026-07-30T01:00:00.000Z"
45
+ },
46
+ "proof": {
47
+ "algorithm": "Ed25519",
48
+ "keyId": "fixture-key-v1",
49
+ "value": "uQtwhc_ethSxNayPVtW4l5hCl_4goJDDJS8Qh1VaKrPWkOrHQdPoYO0g9TiteoS80WLrmfAe0AslJp9e8jGfBA"
50
+ }
51
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "protocol": "agentplat.mesh",
3
+ "wireVersion": 1,
4
+ "messageId": "CCCCCCCCCCCCCCCCCCCCCA",
5
+ "tenantId": "tenant-a",
6
+ "meshId": "mesh-a",
7
+ "objectiveId": "objective-a",
8
+ "type": "work.progress",
9
+ "sender": {
10
+ "peerId": "peer-a",
11
+ "instanceId": "instance-a"
12
+ },
13
+ "audience": {
14
+ "kind": "peer",
15
+ "peerId": "peer-b"
16
+ },
17
+ "sequence": 14,
18
+ "sentAt": "2026-07-30T00:10:00.000Z",
19
+ "expiresAt": "2026-07-30T00:15:00.000Z",
20
+ "causationId": "AAAAAAAAAAAAAAAAAAAAAg",
21
+ "payloadHash": "sha256:nqqjQ-9DNjyn9x_2Km2zt69CMeYuYMGhYqlVyta1leQ",
22
+ "payload": {
23
+ "type": "work.progress",
24
+ "progressId": "progress-a",
25
+ "progressSequence": 1,
26
+ "objectiveId": "objective-a",
27
+ "objectiveDocumentId": "objective-document-a",
28
+ "objectiveRevision": 1,
29
+ "workItemId": "work-item-a",
30
+ "workItemRevision": 1,
31
+ "ownerPeerId": "peer-b",
32
+ "ownerEpoch": 1,
33
+ "assigneePeerId": "peer-a",
34
+ "awardId": "award-a",
35
+ "acceptanceId": "acceptance-a",
36
+ "assignmentEpoch": 1,
37
+ "assignmentAuthorityId": "award-a",
38
+ "fencingToken": "award-a",
39
+ "leaseExpiresAt": "2026-07-30T00:30:00.000Z",
40
+ "progressSummary": "The assigned peer has started the summary."
41
+ },
42
+ "proof": {
43
+ "algorithm": "Ed25519",
44
+ "keyId": "fixture-key-v1",
45
+ "value": "tcu-PIMbXhkqy0lm-U0M2TA2EmekYJDDNLvz7RFs8y6k7_5mW4p0aEcf5vVRLuhOvZC1Lc-woUM5vLT99541CQ"
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "protocol": "agentplat.mesh",
3
+ "wireVersion": 1,
4
+ "messageId": "FFFFFFFFFFFFFFFFFFFFFA",
5
+ "tenantId": "tenant-a",
6
+ "meshId": "mesh-a",
7
+ "objectiveId": "objective-a",
8
+ "type": "work.release",
9
+ "sender": {
10
+ "peerId": "peer-a",
11
+ "instanceId": "instance-a"
12
+ },
13
+ "audience": {
14
+ "kind": "peer",
15
+ "peerId": "peer-b"
16
+ },
17
+ "sequence": 17,
18
+ "sentAt": "2026-07-30T00:10:03.000Z",
19
+ "expiresAt": "2026-07-30T00:12:03.000Z",
20
+ "causationId": "AAAAAAAAAAAAAAAAAAAAAg",
21
+ "payloadHash": "sha256:gMfjN35IAUtAkjsednuuUIpIGwD878dZTts7XpU05v8",
22
+ "payload": {
23
+ "type": "work.release",
24
+ "releaseId": "release-a",
25
+ "releaseAuthority": "assignee",
26
+ "releaseDisposition": "reoffer",
27
+ "objectiveId": "objective-a",
28
+ "objectiveDocumentId": "objective-document-a",
29
+ "objectiveRevision": 1,
30
+ "workItemId": "work-item-a",
31
+ "workItemRevision": 1,
32
+ "ownerPeerId": "peer-b",
33
+ "ownerEpoch": 1,
34
+ "assigneePeerId": "peer-a",
35
+ "awardId": "award-a",
36
+ "assignmentEpoch": 1,
37
+ "assignmentAuthorityId": "award-a",
38
+ "fencingToken": "award-a",
39
+ "leaseExpiresAt": "2026-07-30T00:30:00.000Z",
40
+ "acceptanceId": "acceptance-a"
41
+ },
42
+ "proof": {
43
+ "algorithm": "Ed25519",
44
+ "keyId": "fixture-key-v1",
45
+ "value": "HWgOwnPtEt3V-fA_EYxde6nVn_QzdP7hXZnyu-NoPZwuRa9-V6G7BKIhUb9qQidIkPcSbSIA7nALTnFLSYb3DQ"
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "protocol": "agentplat.mesh",
3
+ "wireVersion": 1,
4
+ "messageId": "EEEEEEEEEEEEEEEEEEEEEA",
5
+ "tenantId": "tenant-a",
6
+ "meshId": "mesh-a",
7
+ "objectiveId": "objective-a",
8
+ "type": "work.result",
9
+ "sender": {
10
+ "peerId": "peer-a",
11
+ "instanceId": "instance-a"
12
+ },
13
+ "audience": {
14
+ "kind": "peer",
15
+ "peerId": "peer-b"
16
+ },
17
+ "sequence": 16,
18
+ "sentAt": "2026-07-30T00:10:02.000Z",
19
+ "expiresAt": "2026-07-30T00:15:02.000Z",
20
+ "causationId": "AAAAAAAAAAAAAAAAAAAAAg",
21
+ "payloadHash": "sha256:k0PpL3zbqYOZr5q7D0m-xhJkHDg7FqqxfpX9XFnvQNk",
22
+ "payload": {
23
+ "type": "work.result",
24
+ "resultId": "result-a",
25
+ "resultDigest": "sha256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
26
+ "objectiveId": "objective-a",
27
+ "objectiveDocumentId": "objective-document-a",
28
+ "objectiveRevision": 1,
29
+ "workItemId": "work-item-a",
30
+ "workItemRevision": 1,
31
+ "ownerPeerId": "peer-b",
32
+ "ownerEpoch": 1,
33
+ "assigneePeerId": "peer-a",
34
+ "awardId": "award-a",
35
+ "acceptanceId": "acceptance-a",
36
+ "assignmentEpoch": 1,
37
+ "assignmentAuthorityId": "award-a",
38
+ "fencingToken": "award-a",
39
+ "leaseExpiresAt": "2026-07-30T00:30:00.000Z",
40
+ "checkpointId": "checkpoint-a",
41
+ "resultSummary": "A concise summary was produced."
42
+ },
43
+ "proof": {
44
+ "algorithm": "Ed25519",
45
+ "keyId": "fixture-key-v1",
46
+ "value": "T0nTChCJANK3oHGbHL7wgD43kfMfwew18US1OBx5dRFKsEqmRMvwGy3rePBcaeG5rjLFLev0Q7Abvr7u0BGuCA"
47
+ }
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentplat/mesh-protocol",
3
- "version": "0.3.0-alpha.4",
3
+ "version": "0.3.0-beta.1",
4
4
  "description": "Bounded wire contracts for provider-neutral AgentPlat Mesh peers.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "directory": "packages/mesh-protocol"
31
31
  },
32
32
  "dependencies": {
33
- "@agentplat/trust": "^0.3.0-alpha.4"
33
+ "@agentplat/trust": "^0.3.0-beta.1"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsc -p tsconfig.json",