@keystrokehq/cli 1.0.13 → 1.0.15

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.mjs CHANGED
@@ -3667,6 +3667,14 @@ function createAgentsResource(http) {
3667
3667
  throw await toPlatformError(error);
3668
3668
  }
3669
3669
  },
3670
+ /** Deletes an agent-owned ephemeral trigger; throws if it is not deletable (404). */
3671
+ async deleteTrigger(projectId, agentSlug, triggerId) {
3672
+ try {
3673
+ await http.delete(`api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentSlug)}/triggers/${encodeURIComponent(triggerId)}`);
3674
+ } catch (error) {
3675
+ throw await toPlatformError(error);
3676
+ }
3677
+ },
3670
3678
  async listMemoryFiles(agentId) {
3671
3679
  try {
3672
3680
  const data = await http.get(`api/agents/${encodeURIComponent(agentId)}/memory/files`).json();