@agent-os-sdk/client 0.8.1 → 0.8.2

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.
@@ -90,7 +90,7 @@ export class PresetsModule {
90
90
  return null;
91
91
  }
92
92
  const graphSpec = generateGraphSpec(config);
93
- const { data: bundle, error: publishError } = await this._agents.publish(agent.id, graphSpec, { set_as_live: true });
93
+ const { data: bundle, error: publishError } = await this._agents.publish(agent.id, graphSpec, { set_as_live: true, idempotency_key: generateUUID() });
94
94
  if (publishError) {
95
95
  console.error("[AgentOS SDK] Failed to publish bundle:", publishError);
96
96
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-os-sdk/client",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Official TypeScript SDK for Agent OS platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -134,7 +134,7 @@ export class PresetsModule {
134
134
  const { data: bundle, error: publishError } = await this._agents.publish(
135
135
  agent.id,
136
136
  graphSpec,
137
- { set_as_live: true }
137
+ { set_as_live: true, idempotency_key: generateUUID() }
138
138
  );
139
139
 
140
140
  if (publishError) {