@vm0/cli 9.262.3 → 9.263.1

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.
Files changed (103) hide show
  1. package/{agent-6YV2KHEN.js → agent-A37X5XHI.js} +6 -6
  2. package/{banking-4RFSN7CU.js → banking-UO5BT4LV.js} +4 -4
  3. package/{browser-2EZLEC4G.js → browser-4QRQVLDA.js} +4 -4
  4. package/{chat-HDAHO5SL.js → chat-QB6VZHUD.js} +5 -5
  5. package/{chunk-ZCVAOPA4.js → chunk-3XRJTKOC.js} +2 -2
  6. package/{chunk-RWLO4HVQ.js → chunk-42RDOHNK.js} +2 -2
  7. package/{chunk-ONG2SHUO.js → chunk-7QZTAAET.js} +4 -4
  8. package/{chunk-SJI7XYIA.js → chunk-INWHTFKO.js} +2 -2
  9. package/{chunk-ADIWUWBQ.js → chunk-MM2THXZU.js} +38 -204
  10. package/chunk-MM2THXZU.js.map +1 -0
  11. package/{chunk-KAONOQXS.js → chunk-R5PFPDVD.js} +2 -2
  12. package/{chunk-KPMRZD4D.js → chunk-RM3CRZ3V.js} +2 -2
  13. package/{chunk-HO2L7BC4.js → chunk-SZFRTXBU.js} +2 -2
  14. package/{chunk-22KOLNFD.js → chunk-WFGOVUAO.js} +9 -8
  15. package/chunk-WFGOVUAO.js.map +1 -0
  16. package/{chunk-MFUEQNVE.js → chunk-WNXAEDU7.js} +3 -3
  17. package/{chunk-MFUEQNVE.js.map → chunk-WNXAEDU7.js.map} +1 -1
  18. package/{computer-use-7EOACOT7.js → computer-use-4G526LVW.js} +4 -4
  19. package/{connector-ORHZIJPG.js → connector-OSF6NAZ3.js} +7 -7
  20. package/{credit-OPVI2HG2.js → credit-ILE37NVC.js} +5 -5
  21. package/{developer-support-HCQMXBWE.js → developer-support-CS4NUQKS.js} +4 -4
  22. package/{doctor-2YCC3YGR.js → doctor-FDGQRZX4.js} +5 -5
  23. package/{feishu-PPDNSVIF.js → feishu-IZNLUXA6.js} +4 -4
  24. package/{finance-47LQYYME.js → finance-MI4RQTGE.js} +4 -4
  25. package/{generate-NQ7KWLMB.js → generate-TBMH5BJW.js} +5 -5
  26. package/{github-4WYN64MV.js → github-NC36DPAV.js} +4 -4
  27. package/{goal-CNUBTBHN.js → goal-E3O4CE6U.js} +4 -4
  28. package/{host-NVLWUYWR.js → host-SEROEJ3X.js} +4 -4
  29. package/{logs-HMGQGQ2G.js → logs-FX6QR3NW.js} +6 -6
  30. package/{mail-EJKL3S2H.js → mail-OJG76J7H.js} +6 -6
  31. package/{maps-KAY7LZ3E.js → maps-WQN5C55Q.js} +4 -4
  32. package/{model-2PUFZ4AJ.js → model-TRIO5V3B.js} +5 -5
  33. package/{model-provider-6RI5M6EK.js → model-provider-F7IDCMER.js} +5 -5
  34. package/{org-BFE2PKGI.js → org-L2H5G7UT.js} +4 -4
  35. package/package.json +1 -1
  36. package/{people-search-L74XCGPJ.js → people-search-C543ABM2.js} +4 -4
  37. package/{phone-N2I6P7UL.js → phone-LIC3TOX5.js} +4 -4
  38. package/{preference-TRQCSDC3.js → preference-F2WEDROK.js} +4 -4
  39. package/{resource-6HTSQDGM.js → resource-L3FONGQH.js} +4 -4
  40. package/{scrape-DRU54LLU.js → scrape-YTZCRV4O.js} +4 -4
  41. package/{search-T7MG63IW.js → search-5CMFCJEU.js} +6 -6
  42. package/{secret-IGAULGIU.js → secret-TOACFEGT.js} +4 -4
  43. package/{slack-V55XT5BC.js → slack-24WMW2IR.js} +4 -4
  44. package/{teams-WDUZFJ3Z.js → teams-4JCSRJHR.js} +4 -4
  45. package/{telegram-DVO2FR3E.js → telegram-N6CYEREV.js} +4 -4
  46. package/{upgrade-XMPBHUM2.js → upgrade-26SROMUW.js} +3 -3
  47. package/{variable-ER3T3AAX.js → variable-4D7HYG5Z.js} +4 -4
  48. package/{video-RW5QRRGR.js → video-Y2W66YOG.js} +3 -3
  49. package/{weather-ZPZTJG36.js → weather-QCUKUCSB.js} +4 -4
  50. package/{web-UL3FTPH5.js → web-K7ZZLS6C.js} +4 -4
  51. package/{web-search-QYCBILB2.js → web-search-CTSJQ6KG.js} +4 -4
  52. package/{whoami-NKUC62VN.js → whoami-XQRDEJ4Y.js} +6 -6
  53. package/{workflow-J7EGXQJT.js → workflow-3OEX2DBN.js} +88 -16
  54. package/workflow-3OEX2DBN.js.map +1 -0
  55. package/zero.js +43 -43
  56. package/chunk-22KOLNFD.js.map +0 -1
  57. package/chunk-ADIWUWBQ.js.map +0 -1
  58. package/workflow-J7EGXQJT.js.map +0 -1
  59. /package/{agent-6YV2KHEN.js.map → agent-A37X5XHI.js.map} +0 -0
  60. /package/{banking-4RFSN7CU.js.map → banking-UO5BT4LV.js.map} +0 -0
  61. /package/{browser-2EZLEC4G.js.map → browser-4QRQVLDA.js.map} +0 -0
  62. /package/{chat-HDAHO5SL.js.map → chat-QB6VZHUD.js.map} +0 -0
  63. /package/{chunk-ZCVAOPA4.js.map → chunk-3XRJTKOC.js.map} +0 -0
  64. /package/{chunk-RWLO4HVQ.js.map → chunk-42RDOHNK.js.map} +0 -0
  65. /package/{chunk-ONG2SHUO.js.map → chunk-7QZTAAET.js.map} +0 -0
  66. /package/{chunk-SJI7XYIA.js.map → chunk-INWHTFKO.js.map} +0 -0
  67. /package/{chunk-KAONOQXS.js.map → chunk-R5PFPDVD.js.map} +0 -0
  68. /package/{chunk-KPMRZD4D.js.map → chunk-RM3CRZ3V.js.map} +0 -0
  69. /package/{chunk-HO2L7BC4.js.map → chunk-SZFRTXBU.js.map} +0 -0
  70. /package/{computer-use-7EOACOT7.js.map → computer-use-4G526LVW.js.map} +0 -0
  71. /package/{connector-ORHZIJPG.js.map → connector-OSF6NAZ3.js.map} +0 -0
  72. /package/{credit-OPVI2HG2.js.map → credit-ILE37NVC.js.map} +0 -0
  73. /package/{developer-support-HCQMXBWE.js.map → developer-support-CS4NUQKS.js.map} +0 -0
  74. /package/{doctor-2YCC3YGR.js.map → doctor-FDGQRZX4.js.map} +0 -0
  75. /package/{feishu-PPDNSVIF.js.map → feishu-IZNLUXA6.js.map} +0 -0
  76. /package/{finance-47LQYYME.js.map → finance-MI4RQTGE.js.map} +0 -0
  77. /package/{generate-NQ7KWLMB.js.map → generate-TBMH5BJW.js.map} +0 -0
  78. /package/{github-4WYN64MV.js.map → github-NC36DPAV.js.map} +0 -0
  79. /package/{goal-CNUBTBHN.js.map → goal-E3O4CE6U.js.map} +0 -0
  80. /package/{host-NVLWUYWR.js.map → host-SEROEJ3X.js.map} +0 -0
  81. /package/{logs-HMGQGQ2G.js.map → logs-FX6QR3NW.js.map} +0 -0
  82. /package/{mail-EJKL3S2H.js.map → mail-OJG76J7H.js.map} +0 -0
  83. /package/{maps-KAY7LZ3E.js.map → maps-WQN5C55Q.js.map} +0 -0
  84. /package/{model-2PUFZ4AJ.js.map → model-TRIO5V3B.js.map} +0 -0
  85. /package/{model-provider-6RI5M6EK.js.map → model-provider-F7IDCMER.js.map} +0 -0
  86. /package/{org-BFE2PKGI.js.map → org-L2H5G7UT.js.map} +0 -0
  87. /package/{people-search-L74XCGPJ.js.map → people-search-C543ABM2.js.map} +0 -0
  88. /package/{phone-N2I6P7UL.js.map → phone-LIC3TOX5.js.map} +0 -0
  89. /package/{preference-TRQCSDC3.js.map → preference-F2WEDROK.js.map} +0 -0
  90. /package/{resource-6HTSQDGM.js.map → resource-L3FONGQH.js.map} +0 -0
  91. /package/{scrape-DRU54LLU.js.map → scrape-YTZCRV4O.js.map} +0 -0
  92. /package/{search-T7MG63IW.js.map → search-5CMFCJEU.js.map} +0 -0
  93. /package/{secret-IGAULGIU.js.map → secret-TOACFEGT.js.map} +0 -0
  94. /package/{slack-V55XT5BC.js.map → slack-24WMW2IR.js.map} +0 -0
  95. /package/{teams-WDUZFJ3Z.js.map → teams-4JCSRJHR.js.map} +0 -0
  96. /package/{telegram-DVO2FR3E.js.map → telegram-N6CYEREV.js.map} +0 -0
  97. /package/{upgrade-XMPBHUM2.js.map → upgrade-26SROMUW.js.map} +0 -0
  98. /package/{variable-ER3T3AAX.js.map → variable-4D7HYG5Z.js.map} +0 -0
  99. /package/{video-RW5QRRGR.js.map → video-Y2W66YOG.js.map} +0 -0
  100. /package/{weather-ZPZTJG36.js.map → weather-QCUKUCSB.js.map} +0 -0
  101. /package/{web-UL3FTPH5.js.map → web-K7ZZLS6C.js.map} +0 -0
  102. /package/{web-search-QYCBILB2.js.map → web-search-CTSJQ6KG.js.map} +0 -0
  103. /package/{whoami-NKUC62VN.js.map → whoami-XQRDEJ4Y.js.map} +0 -0
@@ -7,15 +7,15 @@ import {
7
7
  initSlackFileUpload,
8
8
  materializeSlackFileUpload,
9
9
  sendSlackMessage
10
- } from "./chunk-ADIWUWBQ.js";
10
+ } from "./chunk-MM2THXZU.js";
11
11
  import {
12
12
  inferWebUploadContentType
13
- } from "./chunk-HO2L7BC4.js";
13
+ } from "./chunk-SZFRTXBU.js";
14
14
  import "./chunk-MA22KQYU.js";
15
15
  import {
16
16
  source_default,
17
17
  withErrorHandler
18
- } from "./chunk-KPMRZD4D.js";
18
+ } from "./chunk-RM3CRZ3V.js";
19
19
  import "./chunk-MD3YWUKO.js";
20
20
  import {
21
21
  Command
@@ -346,4 +346,4 @@ Examples:
346
346
  export {
347
347
  zeroSlackCommand
348
348
  };
349
- //# sourceMappingURL=slack-V55XT5BC.js.map
349
+ //# sourceMappingURL=slack-24WMW2IR.js.map
@@ -6,13 +6,13 @@ import {
6
6
  downloadTeamsFile,
7
7
  initTeamsFileUpload,
8
8
  sendTeamsMessage
9
- } from "./chunk-ADIWUWBQ.js";
10
- import "./chunk-HO2L7BC4.js";
9
+ } from "./chunk-MM2THXZU.js";
10
+ import "./chunk-SZFRTXBU.js";
11
11
  import "./chunk-MA22KQYU.js";
12
12
  import {
13
13
  source_default,
14
14
  withErrorHandler
15
- } from "./chunk-KPMRZD4D.js";
15
+ } from "./chunk-RM3CRZ3V.js";
16
16
  import "./chunk-MD3YWUKO.js";
17
17
  import {
18
18
  Command
@@ -280,4 +280,4 @@ Examples:
280
280
  export {
281
281
  zeroTeamsCommand
282
282
  };
283
- //# sourceMappingURL=teams-WDUZFJ3Z.js.map
283
+ //# sourceMappingURL=teams-4JCSRJHR.js.map
@@ -7,13 +7,13 @@ import {
7
7
  initTelegramFileUpload,
8
8
  listTelegramBots,
9
9
  sendTelegramMessage
10
- } from "./chunk-ADIWUWBQ.js";
11
- import "./chunk-HO2L7BC4.js";
10
+ } from "./chunk-MM2THXZU.js";
11
+ import "./chunk-SZFRTXBU.js";
12
12
  import "./chunk-MA22KQYU.js";
13
13
  import {
14
14
  source_default,
15
15
  withErrorHandler
16
- } from "./chunk-KPMRZD4D.js";
16
+ } from "./chunk-RM3CRZ3V.js";
17
17
  import "./chunk-MD3YWUKO.js";
18
18
  import {
19
19
  Command
@@ -334,4 +334,4 @@ Examples:
334
334
  export {
335
335
  zeroTelegramCommand
336
336
  };
337
- //# sourceMappingURL=telegram-DVO2FR3E.js.map
337
+ //# sourceMappingURL=telegram-N6CYEREV.js.map
@@ -6,12 +6,12 @@ import {
6
6
  } from "./chunk-2NW76WYJ.js";
7
7
  import {
8
8
  getPlatformOrigin
9
- } from "./chunk-ZCVAOPA4.js";
9
+ } from "./chunk-3XRJTKOC.js";
10
10
  import "./chunk-MA22KQYU.js";
11
11
  import {
12
12
  source_default,
13
13
  withErrorHandler
14
- } from "./chunk-KPMRZD4D.js";
14
+ } from "./chunk-RM3CRZ3V.js";
15
15
  import "./chunk-MD3YWUKO.js";
16
16
  import {
17
17
  Command,
@@ -47,4 +47,4 @@ Output:
47
47
  export {
48
48
  zeroUpgradeCommand
49
49
  };
50
- //# sourceMappingURL=upgrade-XMPBHUM2.js.map
50
+ //# sourceMappingURL=upgrade-26SROMUW.js.map
@@ -9,13 +9,13 @@ import {
9
9
  deleteZeroVariable,
10
10
  listZeroVariables,
11
11
  setZeroVariable
12
- } from "./chunk-ADIWUWBQ.js";
13
- import "./chunk-HO2L7BC4.js";
12
+ } from "./chunk-MM2THXZU.js";
13
+ import "./chunk-SZFRTXBU.js";
14
14
  import "./chunk-MA22KQYU.js";
15
15
  import {
16
16
  source_default,
17
17
  withErrorHandler
18
- } from "./chunk-KPMRZD4D.js";
18
+ } from "./chunk-RM3CRZ3V.js";
19
19
  import "./chunk-MD3YWUKO.js";
20
20
  import {
21
21
  Command
@@ -116,4 +116,4 @@ var zeroVariableCommand = new Command().name("variable").description("Read or wr
116
116
  export {
117
117
  zeroVariableCommand
118
118
  };
119
- //# sourceMappingURL=variable-ER3T3AAX.js.map
119
+ //# sourceMappingURL=variable-4D7HYG5Z.js.map
@@ -4,11 +4,11 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  downloadWebFile,
6
6
  transcribeAudio
7
- } from "./chunk-HO2L7BC4.js";
7
+ } from "./chunk-SZFRTXBU.js";
8
8
  import "./chunk-MA22KQYU.js";
9
9
  import {
10
10
  withErrorHandler
11
- } from "./chunk-KPMRZD4D.js";
11
+ } from "./chunk-RM3CRZ3V.js";
12
12
  import "./chunk-MD3YWUKO.js";
13
13
  import {
14
14
  Command
@@ -247,4 +247,4 @@ Tip (video understanding):
247
247
  export {
248
248
  zeroVideoCommand
249
249
  };
250
- //# sourceMappingURL=video-RW5QRRGR.js.map
250
+ //# sourceMappingURL=video-Y2W66YOG.js.map
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  callZeroWeather
6
- } from "./chunk-ADIWUWBQ.js";
7
- import "./chunk-HO2L7BC4.js";
6
+ } from "./chunk-MM2THXZU.js";
7
+ import "./chunk-SZFRTXBU.js";
8
8
  import "./chunk-MA22KQYU.js";
9
9
  import {
10
10
  source_default,
11
11
  withErrorHandler
12
- } from "./chunk-KPMRZD4D.js";
12
+ } from "./chunk-RM3CRZ3V.js";
13
13
  import "./chunk-MD3YWUKO.js";
14
14
  import {
15
15
  Command,
@@ -588,4 +588,4 @@ Notes:
588
588
  export {
589
589
  zeroWeatherCommand
590
590
  };
591
- //# sourceMappingURL=weather-ZPZTJG36.js.map
591
+ //# sourceMappingURL=weather-QCUKUCSB.js.map
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
- import "./chunk-ADIWUWBQ.js";
4
+ import "./chunk-MM2THXZU.js";
5
5
  import {
6
6
  downloadWebFile,
7
7
  uploadWebFile
8
- } from "./chunk-HO2L7BC4.js";
8
+ } from "./chunk-SZFRTXBU.js";
9
9
  import "./chunk-MA22KQYU.js";
10
10
  import {
11
11
  withErrorHandler
12
- } from "./chunk-KPMRZD4D.js";
12
+ } from "./chunk-RM3CRZ3V.js";
13
13
  import "./chunk-MD3YWUKO.js";
14
14
  import {
15
15
  Command
@@ -107,4 +107,4 @@ Examples:
107
107
  export {
108
108
  zeroWebCommand
109
109
  };
110
- //# sourceMappingURL=web-UL3FTPH5.js.map
110
+ //# sourceMappingURL=web-K7ZZLS6C.js.map
@@ -9,13 +9,13 @@ import {
9
9
  zeroWebSearchDomainSchema,
10
10
  zeroWebSearchRecencySchema,
11
11
  zeroWebSearchRequestSchema
12
- } from "./chunk-ADIWUWBQ.js";
13
- import "./chunk-HO2L7BC4.js";
12
+ } from "./chunk-MM2THXZU.js";
13
+ import "./chunk-SZFRTXBU.js";
14
14
  import "./chunk-MA22KQYU.js";
15
15
  import {
16
16
  source_default,
17
17
  withErrorHandler
18
- } from "./chunk-KPMRZD4D.js";
18
+ } from "./chunk-RM3CRZ3V.js";
19
19
  import "./chunk-MD3YWUKO.js";
20
20
  import {
21
21
  Command,
@@ -148,4 +148,4 @@ Notes:
148
148
  export {
149
149
  zeroWebSearchCommand
150
150
  };
151
- //# sourceMappingURL=web-search-QYCBILB2.js.map
151
+ //# sourceMappingURL=web-search-CTSJQ6KG.js.map
@@ -4,16 +4,16 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  loadConnectorPermissionInfos,
6
6
  policyIcon
7
- } from "./chunk-ONG2SHUO.js";
7
+ } from "./chunk-7QZTAAET.js";
8
8
  import {
9
9
  permissionGrantsToFirewallPolicies
10
- } from "./chunk-SJI7XYIA.js";
10
+ } from "./chunk-INWHTFKO.js";
11
11
  import {
12
12
  getZeroAgentUserConnectors,
13
13
  listZeroConnectors,
14
14
  listZeroUserPermissionGrants
15
- } from "./chunk-ADIWUWBQ.js";
16
- import "./chunk-HO2L7BC4.js";
15
+ } from "./chunk-MM2THXZU.js";
16
+ import "./chunk-SZFRTXBU.js";
17
17
  import "./chunk-MA22KQYU.js";
18
18
  import {
19
19
  getActiveOrg,
@@ -21,7 +21,7 @@ import {
21
21
  getToken,
22
22
  source_default,
23
23
  withErrorHandler
24
- } from "./chunk-KPMRZD4D.js";
24
+ } from "./chunk-RM3CRZ3V.js";
25
25
  import {
26
26
  decodeZeroTokenPayload
27
27
  } from "./chunk-MD3YWUKO.js";
@@ -196,4 +196,4 @@ Notes:
196
196
  export {
197
197
  zeroWhoamiCommand
198
198
  };
199
- //# sourceMappingURL=whoami-NKUC62VN.js.map
199
+ //# sourceMappingURL=whoami-XQRDEJ4Y.js.map
@@ -19,16 +19,16 @@ import {
19
19
  listWorkflows,
20
20
  updateWorkflow,
21
21
  updateWorkflowAutomation
22
- } from "./chunk-ADIWUWBQ.js";
23
- import "./chunk-HO2L7BC4.js";
22
+ } from "./chunk-MM2THXZU.js";
23
+ import "./chunk-SZFRTXBU.js";
24
24
  import "./chunk-MA22KQYU.js";
25
25
  import {
26
26
  source_default,
27
27
  withErrorHandler
28
- } from "./chunk-KPMRZD4D.js";
28
+ } from "./chunk-RM3CRZ3V.js";
29
29
  import {
30
30
  isFeatureEnabled
31
- } from "./chunk-22KOLNFD.js";
31
+ } from "./chunk-WFGOVUAO.js";
32
32
  import {
33
33
  decodeZeroTokenPayload
34
34
  } from "./chunk-MD3YWUKO.js";
@@ -509,6 +509,11 @@ function isNotionDatabaseItemAutomation(automation) {
509
509
  function isNotionPageContentUpdatedAutomation(automation) {
510
510
  return automation.kind === "event" && automation.eventType === "notion-page-content-updated";
511
511
  }
512
+ function formatStrapiAutomation(automation) {
513
+ const contentType = automation.eventConfig.contentTypeUid ?? "any content type";
514
+ const locale = automation.eventConfig.locale ?? "any locale";
515
+ return `Strapi entry published: ${contentType}, ${locale}`;
516
+ }
512
517
  function isGoogleCalendarAutomation(automation) {
513
518
  return automation.kind === "event" && (automation.eventType === "google-calendar-event-created" || automation.eventType === "google-calendar-event-updated" || automation.eventType === "google-calendar-event-cancelled");
514
519
  }
@@ -648,6 +653,8 @@ function workflowAutomationKindLabel(automation) {
648
653
  return `New Notion database item: ${formatNotionDatabase(automation)}`;
649
654
  case "notion-page-content-updated":
650
655
  return `Notion page content updated: ${formatNotionContentUpdatedScope(automation)}`;
656
+ case "strapi-entry-published":
657
+ return formatStrapiAutomation(automation);
651
658
  case "webhook-received":
652
659
  return "Webhook";
653
660
  }
@@ -1137,6 +1144,7 @@ var GITHUB_WEBHOOK_EVENT_KINDS = [
1137
1144
  "github-deployment-status-created",
1138
1145
  "github-issue-comment-created"
1139
1146
  ];
1147
+ var STRAPI_EVENT_KINDS = ["strapi-entry-published"];
1140
1148
  function githubWebhookAutomationsEnabled() {
1141
1149
  const payload = decodeZeroTokenPayload();
1142
1150
  return isFeatureEnabled("githubWebhookAutomations" /* GithubWebhookAutomations */, {
@@ -1144,11 +1152,19 @@ function githubWebhookAutomationsEnabled() {
1144
1152
  orgId: payload?.orgId
1145
1153
  });
1146
1154
  }
1155
+ function strapiIntegrationEnabled() {
1156
+ const payload = decodeZeroTokenPayload();
1157
+ return isFeatureEnabled("strapiIntegration" /* StrapiIntegration */, {
1158
+ userId: payload?.userId,
1159
+ orgId: payload?.orgId
1160
+ });
1161
+ }
1147
1162
  function automationKinds() {
1148
1163
  return [
1149
1164
  ...SCHEDULE_KINDS,
1150
1165
  ...EVENT_KINDS,
1151
- ...githubWebhookAutomationsEnabled() ? GITHUB_WEBHOOK_EVENT_KINDS : []
1166
+ ...githubWebhookAutomationsEnabled() ? GITHUB_WEBHOOK_EVENT_KINDS : [],
1167
+ ...strapiIntegrationEnabled() ? STRAPI_EVENT_KINDS : []
1152
1168
  ];
1153
1169
  }
1154
1170
  function githubWebhookEventKind(kind) {
@@ -1437,8 +1453,11 @@ function hasCalendarAutomationOptions(options) {
1437
1453
  function hasNotionAutomationOptions(options) {
1438
1454
  return options.pageUrl !== void 0 || options.parentPageUrl !== void 0 || options.databaseUrl !== void 0;
1439
1455
  }
1456
+ function hasStrapiAutomationOptions(options) {
1457
+ return options.integrationId !== void 0 || options.contentTypeUid !== void 0 || options.locale !== void 0;
1458
+ }
1440
1459
  function hasEventAddOptions(options) {
1441
- return hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasNotionAutomationOptions(options);
1460
+ return hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasNotionAutomationOptions(options) || hasStrapiAutomationOptions(options);
1442
1461
  }
1443
1462
  function assertNoScheduleAddOptions(options) {
1444
1463
  if (hasScheduleAddOptions(options)) {
@@ -1466,6 +1485,13 @@ function assertNoNotionAutomationOptions(options) {
1466
1485
  );
1467
1486
  }
1468
1487
  }
1488
+ function assertNoStrapiAutomationOptions(options) {
1489
+ if (hasStrapiAutomationOptions(options)) {
1490
+ throw new Error(
1491
+ "Strapi automation flags only apply to Strapi event automations"
1492
+ );
1493
+ }
1494
+ }
1469
1495
  function scheduleUpdateFlagCount(options) {
1470
1496
  return [options.expr, options.at, options.every].filter((value) => {
1471
1497
  return value !== void 0;
@@ -1776,6 +1802,7 @@ function buildGmailNewMessageCreateRequest(options) {
1776
1802
  assertNoGithubAutomationOptions(options);
1777
1803
  assertNoCalendarAutomationOptions(options);
1778
1804
  assertNoNotionAutomationOptions(options);
1805
+ assertNoStrapiAutomationOptions(options);
1779
1806
  return {
1780
1807
  kind: "event",
1781
1808
  eventType: "gmail-new-message",
@@ -1792,6 +1819,7 @@ function buildGmailLabelAppliedCreateRequest(options) {
1792
1819
  assertNoGithubAutomationOptions(options);
1793
1820
  assertNoCalendarAutomationOptions(options);
1794
1821
  assertNoNotionAutomationOptions(options);
1822
+ assertNoStrapiAutomationOptions(options);
1795
1823
  return {
1796
1824
  kind: "event",
1797
1825
  eventType: "gmail-label-applied",
@@ -1807,6 +1835,7 @@ function buildGithubLabelAppliedCreateRequest(options) {
1807
1835
  }
1808
1836
  assertNoCalendarAutomationOptions(options);
1809
1837
  assertNoNotionAutomationOptions(options);
1838
+ assertNoStrapiAutomationOptions(options);
1810
1839
  if (hasGithubWorkflowRunSpecificOptions(options)) {
1811
1840
  throw new Error(
1812
1841
  "Workflow run filter flags only apply to github-workflow-run-completed automations"
@@ -1841,6 +1870,7 @@ function buildGithubWorkflowRunCompletedCreateRequest(options) {
1841
1870
  ]);
1842
1871
  assertNoCalendarAutomationOptions(options);
1843
1872
  assertNoNotionAutomationOptions(options);
1873
+ assertNoStrapiAutomationOptions(options);
1844
1874
  return {
1845
1875
  kind: "event",
1846
1876
  eventType: "github-workflow-run-completed",
@@ -1856,6 +1886,7 @@ function assertGithubWebhookCreateOptions(options, allowed) {
1856
1886
  }
1857
1887
  assertNoCalendarAutomationOptions(options);
1858
1888
  assertNoNotionAutomationOptions(options);
1889
+ assertNoStrapiAutomationOptions(options);
1859
1890
  assertOnlyGithubAutomationOptions(options, allowed);
1860
1891
  }
1861
1892
  function buildGithubWorkflowJobCompletedCreateRequest(options) {
@@ -1919,9 +1950,9 @@ function buildGithubIssueCommentCreatedCreateRequest(options) {
1919
1950
  }
1920
1951
  function buildGoogleCalendarEventCreateRequest(eventType, options) {
1921
1952
  assertNoScheduleAddOptions(options);
1922
- if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasNotionAutomationOptions(options)) {
1953
+ if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasNotionAutomationOptions(options) || hasStrapiAutomationOptions(options)) {
1923
1954
  throw new Error(
1924
- "Gmail, GitHub, and Notion automation flags only apply to their event automations"
1955
+ "Gmail, GitHub, Notion, and Strapi automation flags only apply to their event automations"
1925
1956
  );
1926
1957
  }
1927
1958
  const calendarId = options.calendarId?.trim() || "primary";
@@ -1959,9 +1990,9 @@ function buildGoogleCalendarEventCreateRequest(eventType, options) {
1959
1990
  }
1960
1991
  function buildNotionChildPageCreatedCreateRequest(options) {
1961
1992
  assertNoScheduleAddOptions(options);
1962
- if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options)) {
1993
+ if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasStrapiAutomationOptions(options)) {
1963
1994
  throw new Error(
1964
- "Gmail, GitHub, and Google Calendar automation flags only apply to their event automations"
1995
+ "Gmail, GitHub, Google Calendar, and Strapi automation flags only apply to their event automations"
1965
1996
  );
1966
1997
  }
1967
1998
  const parentPageUrl = options.parentPageUrl?.trim();
@@ -1987,9 +2018,9 @@ function buildNotionChildPageCreatedCreateRequest(options) {
1987
2018
  }
1988
2019
  function buildNotionDatabaseItemCreatedCreateRequest(options) {
1989
2020
  assertNoScheduleAddOptions(options);
1990
- if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options)) {
2021
+ if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasStrapiAutomationOptions(options)) {
1991
2022
  throw new Error(
1992
- "Gmail, GitHub, and Google Calendar automation flags only apply to their event automations"
2023
+ "Gmail, GitHub, Google Calendar, and Strapi automation flags only apply to their event automations"
1993
2024
  );
1994
2025
  }
1995
2026
  if (options.pageUrl !== void 0 || options.parentPageUrl !== void 0) {
@@ -2015,9 +2046,9 @@ function buildNotionDatabaseItemCreatedCreateRequest(options) {
2015
2046
  }
2016
2047
  function buildNotionPageContentUpdatedCreateRequest(options) {
2017
2048
  assertNoScheduleAddOptions(options);
2018
- if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options)) {
2049
+ if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasStrapiAutomationOptions(options)) {
2019
2050
  throw new Error(
2020
- "Gmail, GitHub, and Google Calendar automation flags only apply to their event automations"
2051
+ "Gmail, GitHub, Google Calendar, and Strapi automation flags only apply to their event automations"
2021
2052
  );
2022
2053
  }
2023
2054
  if (options.parentPageUrl !== void 0) {
@@ -2061,6 +2092,33 @@ function buildWebhookCreateRequest(options) {
2061
2092
  }
2062
2093
  };
2063
2094
  }
2095
+ function buildStrapiEntryPublishedCreateRequest(options) {
2096
+ assertNoScheduleAddOptions(options);
2097
+ if (hasGmailAutomationOptions(options) || hasGmailLabelOption(options) || hasGithubAutomationOptions(options) || hasCalendarAutomationOptions(options) || hasNotionAutomationOptions(options)) {
2098
+ throw new Error(
2099
+ "Only Strapi automation flags apply to strapi-entry-published automations"
2100
+ );
2101
+ }
2102
+ const integrationId = options.integrationId?.trim();
2103
+ if (!integrationId) {
2104
+ throw new Error(
2105
+ "strapi-entry-published automations require --integration-id <uuid>"
2106
+ );
2107
+ }
2108
+ const contentTypeUid = options.contentTypeUid?.trim();
2109
+ const locale = options.locale?.trim();
2110
+ return {
2111
+ kind: "event",
2112
+ eventType: "strapi-entry-published",
2113
+ eventConfig: {
2114
+ provider: "strapi",
2115
+ event: "entry_published",
2116
+ integrationId,
2117
+ ...contentTypeUid ? { contentTypeUid } : {},
2118
+ ...locale ? { locale } : {}
2119
+ }
2120
+ };
2121
+ }
2064
2122
  function buildScheduleCreateRequest(kind, options) {
2065
2123
  if (hasEventAddOptions(options)) {
2066
2124
  throw new Error("Event automation flags only apply to event automations");
@@ -2097,6 +2155,8 @@ function buildCreateRequest(kind, options) {
2097
2155
  return buildNotionDatabaseItemCreatedCreateRequest(options);
2098
2156
  case "notion-page-content-updated":
2099
2157
  return buildNotionPageContentUpdatedCreateRequest(options);
2158
+ case "strapi-entry-published":
2159
+ return buildStrapiEntryPublishedCreateRequest(options);
2100
2160
  case "webhook":
2101
2161
  return buildWebhookCreateRequest(options);
2102
2162
  default:
@@ -2346,7 +2406,13 @@ var addCommand = addGithubAutomationOptions(
2346
2406
  ).option(
2347
2407
  "--database-url <url>",
2348
2408
  "Notion database URL for notion-database-item-created or notion-page-content-updated automations"
2349
- ).option("--agent <id>", "Agent ID for resolving a workflow name").addHelpText(
2409
+ ).option(
2410
+ "--integration-id <uuid>",
2411
+ "Strapi integration ID for Strapi event automations"
2412
+ ).option(
2413
+ "--content-type-uid <uid>",
2414
+ "Optional Strapi content type UID, for example api::article.article"
2415
+ ).option("--locale <locale>", "Optional Strapi locale filter").option("--agent <id>", "Agent ID for resolving a workflow name").addHelpText(
2350
2416
  "after",
2351
2417
  `
2352
2418
  Examples:
@@ -2365,6 +2431,7 @@ Examples:
2365
2431
  zero workflow automation add research-notes --agent <agent-id> notion-database-item-created --database-url "https://www.notion.so/1234567890abcdef1234567890abcdef?v=abcdef1234567890abcdef1234567890"
2366
2432
  zero workflow automation add research-notes --agent <agent-id> notion-page-content-updated --page-url "https://www.notion.so/workspace/Page-title-1234567890abcdef1234567890abcdef"
2367
2433
  zero workflow automation add research-notes --agent <agent-id> notion-page-content-updated --database-url "https://www.notion.so/1234567890abcdef1234567890abcdef?v=abcdef1234567890abcdef1234567890"
2434
+ zero workflow automation add deploy-blog --agent <agent-id> strapi-entry-published --integration-id <uuid> --content-type-uid api::article.article
2368
2435
  zero workflow automation add triage --agent <agent-id> webhook
2369
2436
 
2370
2437
  Notes:
@@ -2382,6 +2449,11 @@ Notes:
2382
2449
  "GitHub webhook automations are not enabled for this workspace"
2383
2450
  );
2384
2451
  }
2452
+ if (kind === "strapi-entry-published" && !strapiIntegrationEnabled()) {
2453
+ throw new Error(
2454
+ "Strapi workflow automations are not enabled for this workspace"
2455
+ );
2456
+ }
2385
2457
  if (options.timezone && kind !== "cron" && kind !== "once" && kind !== "gmail-new-message") {
2386
2458
  throw new Error(
2387
2459
  "--timezone only applies to cron and once automations"
@@ -2504,4 +2576,4 @@ Examples:
2504
2576
  export {
2505
2577
  zeroWorkflowCommand
2506
2578
  };
2507
- //# sourceMappingURL=workflow-J7EGXQJT.js.map
2579
+ //# sourceMappingURL=workflow-3OEX2DBN.js.map