@zerox1/sdk 0.2.7 → 0.2.9

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/dist/index.js CHANGED
@@ -354,6 +354,9 @@ class Zerox1Agent {
354
354
  * Returns the assigned nonce and payload hash for tracking.
355
355
  */
356
356
  async send(params) {
357
+ if (!params.conversationId) {
358
+ throw new Error('conversationId is required. Generate one with agent.newConversationId().');
359
+ }
357
360
  const body = {
358
361
  msg_type: params.msgType,
359
362
  recipient: params.recipient ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerox1/sdk",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "0x01 mesh agent SDK — zero-config, binary bundled, works on every platform",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -14,10 +14,10 @@
14
14
  "ws": "^8.18.0"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@zerox1/sdk-darwin-arm64": "0.2.7",
18
- "@zerox1/sdk-darwin-x64": "0.2.7",
19
- "@zerox1/sdk-linux-x64": "0.2.7",
20
- "@zerox1/sdk-win32-x64": "0.2.7"
17
+ "@zerox1/sdk-darwin-arm64": "0.2.9",
18
+ "@zerox1/sdk-darwin-x64": "0.2.9",
19
+ "@zerox1/sdk-linux-x64": "0.2.9",
20
+ "@zerox1/sdk-win32-x64": "0.2.9"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerox1/sdk-darwin-arm64",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "zerox1-node binary for macOS ARM64 (Apple Silicon)",
5
5
  "os": [
6
6
  "darwin"
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerox1/sdk-darwin-x64",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "zerox1-node binary for macOS x64 (Intel)",
5
5
  "os": [
6
6
  "darwin"
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerox1/sdk-linux-x64",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "zerox1-node binary for Linux x64",
5
5
  "os": [
6
6
  "linux"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerox1/sdk-win32-x64",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "zerox1-node binary for Windows x64",
5
5
  "os": [
6
6
  "win32"
package/src/index.ts CHANGED
@@ -499,6 +499,11 @@ export class Zerox1Agent {
499
499
  * Returns the assigned nonce and payload hash for tracking.
500
500
  */
501
501
  async send(params: SendParams): Promise<SentConfirmation> {
502
+ if (!params.conversationId) {
503
+ throw new Error(
504
+ 'conversationId is required. Generate one with agent.newConversationId().'
505
+ )
506
+ }
502
507
  const body = {
503
508
  msg_type: params.msgType,
504
509
  recipient: params.recipient ?? null,