@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.
package/dist/modules/presets.js
CHANGED
|
@@ -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
package/src/modules/presets.ts
CHANGED
|
@@ -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) {
|