You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 24, 2026. It is now read-only.
Canonical examples for the CommandLayer SDK repo. These examples keep the Commons v1.1.0 story receipt-first: `receipt` is signed, `runtime_metadata` is optional and unsigned, and the `x402` object is protocol metadata rather than a commercial SDK surface.
3
+
Canonical examples for the CommandLayer SDK repo. These examples keep the Commons v1.1.0 story aligned with the active request and receipt contracts: requests are flat top-level protocol objects, `receipt` is signed, `runtime_metadata` is optional and unsigned, and the `x402` object only appears inside receipts as protocol metadata.
4
4
5
5
All examples in this file target:
6
6
- Protocol-Commons v1.1.0,
7
+
- flat request payloads shaped exactly like `schemas/v1.1.0/commons/<verb>/<verb>.request.schema.json`,
7
8
- canonical signed receipts returned as `response.receipt`, and
8
9
- optional execution context returned as `response.runtime_metadata`.
content: "CommandLayer makes agent execution verifiable.",
38
-
style: "bullet_points"
37
+
input: "CommandLayer makes agent execution verifiable.",
38
+
mode: "brief"
39
39
});
40
40
41
41
console.log(response.receipt.result?.summary);
@@ -55,7 +55,22 @@ response = client.summarize(
55
55
print(response["receipt"]["result"]["summary"])
56
56
```
57
57
58
-
## 3. Inspect the response
58
+
## 3. Inspect the request contract
59
+
60
+
Protocol-Commons v1.1.0 Commons requests are flat top-level objects:
61
+
62
+
```json
63
+
{
64
+
"verb": "summarize",
65
+
"version": "1.1.0",
66
+
"input": "CommandLayer makes agent execution verifiable.",
67
+
"mode": "brief"
68
+
}
69
+
```
70
+
71
+
Do not send nested `input` objects, `limits`, actor wrappers, or `x402` request metadata for Commons verbs.
72
+
73
+
## 4. Inspect the response
59
74
60
75
Both SDKs return the same shape:
61
76
@@ -83,9 +98,9 @@ Both SDKs return the same shape:
83
98
}
84
99
```
85
100
86
-
Use `response.receipt` as the durable protocol artifact. `runtime_metadata` is optional execution context. The retained `x402` object carries Commons verb metadata and is not a commercial feature signal.
101
+
Use `response.receipt` as the durable protocol artifact. `runtime_metadata` is optional execution context. The retained `x402` object carries Commons verb metadata in receipts and is not a request wrapper or commercial feature signal.
87
102
88
-
## 4. Verify the receipt
103
+
## 5. Verify the receipt
89
104
90
105
### TypeScript
91
106
@@ -118,12 +133,12 @@ Use the same signer-discovery model in both SDKs:
118
133
- signer ENS TXT: `cl.sig.pub`
119
134
- signer ENS TXT: `cl.sig.kid`
120
135
121
-
## 5. Try the CLI
136
+
## 6. Try the CLI
122
137
123
138
```bash
124
139
commandlayer summarize \
125
-
--content"CommandLayer makes agent execution verifiable." \
126
-
--style bullet_points \
140
+
--input"CommandLayer makes agent execution verifiable." \
0 commit comments