@keystrokehq/replicate 0.1.3 → 0.1.5

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 (261) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/account-get.cjs +1 -0
  4. package/dist/actions/account-get.cjs.map +1 -1
  5. package/dist/actions/account-get.d.cts +3 -1
  6. package/dist/actions/account-get.d.cts.map +1 -1
  7. package/dist/actions/account-get.d.mts +3 -1
  8. package/dist/actions/account-get.d.mts.map +1 -1
  9. package/dist/actions/account-get.mjs +1 -0
  10. package/dist/actions/account-get.mjs.map +1 -1
  11. package/dist/actions/cancel-prediction.cjs +1 -0
  12. package/dist/actions/cancel-prediction.cjs.map +1 -1
  13. package/dist/actions/cancel-prediction.d.cts +3 -3
  14. package/dist/actions/cancel-prediction.d.cts.map +1 -1
  15. package/dist/actions/cancel-prediction.d.mts +3 -3
  16. package/dist/actions/cancel-prediction.d.mts.map +1 -1
  17. package/dist/actions/cancel-prediction.mjs +1 -0
  18. package/dist/actions/cancel-prediction.mjs.map +1 -1
  19. package/dist/actions/collections-get.cjs +1 -0
  20. package/dist/actions/collections-get.cjs.map +1 -1
  21. package/dist/actions/collections-get.d.cts +3 -3
  22. package/dist/actions/collections-get.d.cts.map +1 -1
  23. package/dist/actions/collections-get.d.mts +3 -3
  24. package/dist/actions/collections-get.d.mts.map +1 -1
  25. package/dist/actions/collections-get.mjs +1 -0
  26. package/dist/actions/collections-get.mjs.map +1 -1
  27. package/dist/actions/collections-list.cjs +1 -0
  28. package/dist/actions/collections-list.cjs.map +1 -1
  29. package/dist/actions/collections-list.d.cts +3 -3
  30. package/dist/actions/collections-list.d.cts.map +1 -1
  31. package/dist/actions/collections-list.d.mts +3 -3
  32. package/dist/actions/collections-list.d.mts.map +1 -1
  33. package/dist/actions/collections-list.mjs +1 -0
  34. package/dist/actions/collections-list.mjs.map +1 -1
  35. package/dist/actions/create-model.cjs +1 -0
  36. package/dist/actions/create-model.cjs.map +1 -1
  37. package/dist/actions/create-model.d.cts +3 -11
  38. package/dist/actions/create-model.d.cts.map +1 -1
  39. package/dist/actions/create-model.d.mts +3 -11
  40. package/dist/actions/create-model.d.mts.map +1 -1
  41. package/dist/actions/create-model.mjs +1 -0
  42. package/dist/actions/create-model.mjs.map +1 -1
  43. package/dist/actions/create-prediction.cjs +1 -0
  44. package/dist/actions/create-prediction.cjs.map +1 -1
  45. package/dist/actions/create-prediction.d.cts +4 -9
  46. package/dist/actions/create-prediction.d.cts.map +1 -1
  47. package/dist/actions/create-prediction.d.mts +4 -9
  48. package/dist/actions/create-prediction.d.mts.map +1 -1
  49. package/dist/actions/create-prediction.mjs +1 -0
  50. package/dist/actions/create-prediction.mjs.map +1 -1
  51. package/dist/actions/deployments-create.cjs +1 -0
  52. package/dist/actions/deployments-create.cjs.map +1 -1
  53. package/dist/actions/deployments-create.d.cts +3 -8
  54. package/dist/actions/deployments-create.d.cts.map +1 -1
  55. package/dist/actions/deployments-create.d.mts +3 -8
  56. package/dist/actions/deployments-create.d.mts.map +1 -1
  57. package/dist/actions/deployments-create.mjs +1 -0
  58. package/dist/actions/deployments-create.mjs.map +1 -1
  59. package/dist/actions/deployments-delete.cjs +1 -0
  60. package/dist/actions/deployments-delete.cjs.map +1 -1
  61. package/dist/actions/deployments-delete.d.cts +3 -4
  62. package/dist/actions/deployments-delete.d.cts.map +1 -1
  63. package/dist/actions/deployments-delete.d.mts +3 -4
  64. package/dist/actions/deployments-delete.d.mts.map +1 -1
  65. package/dist/actions/deployments-delete.mjs +1 -0
  66. package/dist/actions/deployments-delete.mjs.map +1 -1
  67. package/dist/actions/deployments-get.cjs +1 -0
  68. package/dist/actions/deployments-get.cjs.map +1 -1
  69. package/dist/actions/deployments-get.d.cts +3 -4
  70. package/dist/actions/deployments-get.d.cts.map +1 -1
  71. package/dist/actions/deployments-get.d.mts +3 -4
  72. package/dist/actions/deployments-get.d.mts.map +1 -1
  73. package/dist/actions/deployments-get.mjs +1 -0
  74. package/dist/actions/deployments-get.mjs.map +1 -1
  75. package/dist/actions/deployments-list.cjs +1 -0
  76. package/dist/actions/deployments-list.cjs.map +1 -1
  77. package/dist/actions/deployments-list.d.cts +3 -3
  78. package/dist/actions/deployments-list.d.cts.map +1 -1
  79. package/dist/actions/deployments-list.d.mts +3 -3
  80. package/dist/actions/deployments-list.d.mts.map +1 -1
  81. package/dist/actions/deployments-list.mjs +1 -0
  82. package/dist/actions/deployments-list.mjs.map +1 -1
  83. package/dist/actions/files-create.cjs +1 -0
  84. package/dist/actions/files-create.cjs.map +1 -1
  85. package/dist/actions/files-create.d.cts +3 -9
  86. package/dist/actions/files-create.d.cts.map +1 -1
  87. package/dist/actions/files-create.d.mts +3 -9
  88. package/dist/actions/files-create.d.mts.map +1 -1
  89. package/dist/actions/files-create.mjs +1 -0
  90. package/dist/actions/files-create.mjs.map +1 -1
  91. package/dist/actions/files-delete.cjs +1 -0
  92. package/dist/actions/files-delete.cjs.map +1 -1
  93. package/dist/actions/files-delete.d.cts +3 -3
  94. package/dist/actions/files-delete.d.cts.map +1 -1
  95. package/dist/actions/files-delete.d.mts +3 -3
  96. package/dist/actions/files-delete.d.mts.map +1 -1
  97. package/dist/actions/files-delete.mjs +1 -0
  98. package/dist/actions/files-delete.mjs.map +1 -1
  99. package/dist/actions/files-get.cjs +1 -0
  100. package/dist/actions/files-get.cjs.map +1 -1
  101. package/dist/actions/files-get.d.cts +3 -3
  102. package/dist/actions/files-get.d.cts.map +1 -1
  103. package/dist/actions/files-get.d.mts +3 -3
  104. package/dist/actions/files-get.d.mts.map +1 -1
  105. package/dist/actions/files-get.mjs +1 -0
  106. package/dist/actions/files-get.mjs.map +1 -1
  107. package/dist/actions/files-list.cjs +1 -0
  108. package/dist/actions/files-list.cjs.map +1 -1
  109. package/dist/actions/files-list.d.cts +3 -3
  110. package/dist/actions/files-list.d.cts.map +1 -1
  111. package/dist/actions/files-list.d.mts +3 -3
  112. package/dist/actions/files-list.d.mts.map +1 -1
  113. package/dist/actions/files-list.mjs +1 -0
  114. package/dist/actions/files-list.mjs.map +1 -1
  115. package/dist/actions/get-prediction.cjs +1 -0
  116. package/dist/actions/get-prediction.cjs.map +1 -1
  117. package/dist/actions/get-prediction.d.cts +3 -3
  118. package/dist/actions/get-prediction.d.cts.map +1 -1
  119. package/dist/actions/get-prediction.d.mts +3 -3
  120. package/dist/actions/get-prediction.d.mts.map +1 -1
  121. package/dist/actions/get-prediction.mjs +1 -0
  122. package/dist/actions/get-prediction.mjs.map +1 -1
  123. package/dist/actions/hardware-list.cjs +1 -0
  124. package/dist/actions/hardware-list.cjs.map +1 -1
  125. package/dist/actions/hardware-list.d.cts +3 -1
  126. package/dist/actions/hardware-list.d.cts.map +1 -1
  127. package/dist/actions/hardware-list.d.mts +3 -1
  128. package/dist/actions/hardware-list.d.mts.map +1 -1
  129. package/dist/actions/hardware-list.mjs +1 -0
  130. package/dist/actions/hardware-list.mjs.map +1 -1
  131. package/dist/actions/models-examples-list.cjs +1 -0
  132. package/dist/actions/models-examples-list.cjs.map +1 -1
  133. package/dist/actions/models-examples-list.d.cts +3 -5
  134. package/dist/actions/models-examples-list.d.cts.map +1 -1
  135. package/dist/actions/models-examples-list.d.mts +3 -5
  136. package/dist/actions/models-examples-list.d.mts.map +1 -1
  137. package/dist/actions/models-examples-list.mjs +1 -0
  138. package/dist/actions/models-examples-list.mjs.map +1 -1
  139. package/dist/actions/models-get.cjs +1 -0
  140. package/dist/actions/models-get.cjs.map +1 -1
  141. package/dist/actions/models-get.d.cts +3 -4
  142. package/dist/actions/models-get.d.cts.map +1 -1
  143. package/dist/actions/models-get.d.mts +3 -4
  144. package/dist/actions/models-get.d.mts.map +1 -1
  145. package/dist/actions/models-get.mjs +1 -0
  146. package/dist/actions/models-get.mjs.map +1 -1
  147. package/dist/actions/models-list.cjs +1 -0
  148. package/dist/actions/models-list.cjs.map +1 -1
  149. package/dist/actions/models-list.d.cts +3 -5
  150. package/dist/actions/models-list.d.cts.map +1 -1
  151. package/dist/actions/models-list.d.mts +3 -5
  152. package/dist/actions/models-list.d.mts.map +1 -1
  153. package/dist/actions/models-list.mjs +1 -0
  154. package/dist/actions/models-list.mjs.map +1 -1
  155. package/dist/actions/models-predictions-create.cjs +1 -0
  156. package/dist/actions/models-predictions-create.cjs.map +1 -1
  157. package/dist/actions/models-predictions-create.d.cts +4 -10
  158. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  159. package/dist/actions/models-predictions-create.d.mts +4 -10
  160. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  161. package/dist/actions/models-predictions-create.mjs +1 -0
  162. package/dist/actions/models-predictions-create.mjs.map +1 -1
  163. package/dist/actions/models-readme-get.cjs +1 -0
  164. package/dist/actions/models-readme-get.cjs.map +1 -1
  165. package/dist/actions/models-readme-get.d.cts +3 -4
  166. package/dist/actions/models-readme-get.d.cts.map +1 -1
  167. package/dist/actions/models-readme-get.d.mts +3 -4
  168. package/dist/actions/models-readme-get.d.mts.map +1 -1
  169. package/dist/actions/models-readme-get.mjs +1 -0
  170. package/dist/actions/models-readme-get.mjs.map +1 -1
  171. package/dist/actions/models-versions-get.cjs +1 -0
  172. package/dist/actions/models-versions-get.cjs.map +1 -1
  173. package/dist/actions/models-versions-get.d.cts +3 -5
  174. package/dist/actions/models-versions-get.d.cts.map +1 -1
  175. package/dist/actions/models-versions-get.d.mts +3 -5
  176. package/dist/actions/models-versions-get.d.mts.map +1 -1
  177. package/dist/actions/models-versions-get.mjs +1 -0
  178. package/dist/actions/models-versions-get.mjs.map +1 -1
  179. package/dist/actions/models-versions-list.cjs +1 -0
  180. package/dist/actions/models-versions-list.cjs.map +1 -1
  181. package/dist/actions/models-versions-list.d.cts +3 -5
  182. package/dist/actions/models-versions-list.d.cts.map +1 -1
  183. package/dist/actions/models-versions-list.d.mts +3 -5
  184. package/dist/actions/models-versions-list.d.mts.map +1 -1
  185. package/dist/actions/models-versions-list.mjs +1 -0
  186. package/dist/actions/models-versions-list.mjs.map +1 -1
  187. package/dist/actions/predictions-create.cjs +1 -0
  188. package/dist/actions/predictions-create.cjs.map +1 -1
  189. package/dist/actions/predictions-create.d.cts +4 -10
  190. package/dist/actions/predictions-create.d.cts.map +1 -1
  191. package/dist/actions/predictions-create.d.mts +4 -10
  192. package/dist/actions/predictions-create.d.mts.map +1 -1
  193. package/dist/actions/predictions-create.mjs +1 -0
  194. package/dist/actions/predictions-create.mjs.map +1 -1
  195. package/dist/actions/predictions-list.cjs +1 -0
  196. package/dist/actions/predictions-list.cjs.map +1 -1
  197. package/dist/actions/predictions-list.d.cts +3 -5
  198. package/dist/actions/predictions-list.d.cts.map +1 -1
  199. package/dist/actions/predictions-list.d.mts +3 -5
  200. package/dist/actions/predictions-list.d.mts.map +1 -1
  201. package/dist/actions/predictions-list.mjs +1 -0
  202. package/dist/actions/predictions-list.mjs.map +1 -1
  203. package/dist/actions/search.cjs +1 -0
  204. package/dist/actions/search.cjs.map +1 -1
  205. package/dist/actions/search.d.cts +3 -4
  206. package/dist/actions/search.d.cts.map +1 -1
  207. package/dist/actions/search.d.mts +3 -4
  208. package/dist/actions/search.d.mts.map +1 -1
  209. package/dist/actions/search.mjs +1 -0
  210. package/dist/actions/search.mjs.map +1 -1
  211. package/dist/actions/trainings-cancel.cjs +1 -0
  212. package/dist/actions/trainings-cancel.cjs.map +1 -1
  213. package/dist/actions/trainings-cancel.d.cts +3 -3
  214. package/dist/actions/trainings-cancel.d.cts.map +1 -1
  215. package/dist/actions/trainings-cancel.d.mts +3 -3
  216. package/dist/actions/trainings-cancel.d.mts.map +1 -1
  217. package/dist/actions/trainings-cancel.mjs +1 -0
  218. package/dist/actions/trainings-cancel.mjs.map +1 -1
  219. package/dist/actions/trainings-create.cjs +1 -0
  220. package/dist/actions/trainings-create.cjs.map +1 -1
  221. package/dist/actions/trainings-create.d.cts +4 -10
  222. package/dist/actions/trainings-create.d.cts.map +1 -1
  223. package/dist/actions/trainings-create.d.mts +4 -10
  224. package/dist/actions/trainings-create.d.mts.map +1 -1
  225. package/dist/actions/trainings-create.mjs +1 -0
  226. package/dist/actions/trainings-create.mjs.map +1 -1
  227. package/dist/actions/trainings-list.cjs +1 -0
  228. package/dist/actions/trainings-list.cjs.map +1 -1
  229. package/dist/actions/trainings-list.d.cts +3 -3
  230. package/dist/actions/trainings-list.d.cts.map +1 -1
  231. package/dist/actions/trainings-list.d.mts +3 -3
  232. package/dist/actions/trainings-list.d.mts.map +1 -1
  233. package/dist/actions/trainings-list.mjs +1 -0
  234. package/dist/actions/trainings-list.mjs.map +1 -1
  235. package/dist/actions/update-models.cjs +1 -0
  236. package/dist/actions/update-models.cjs.map +1 -1
  237. package/dist/actions/update-models.d.cts +3 -10
  238. package/dist/actions/update-models.d.cts.map +1 -1
  239. package/dist/actions/update-models.d.mts +3 -10
  240. package/dist/actions/update-models.d.mts.map +1 -1
  241. package/dist/actions/update-models.mjs +1 -0
  242. package/dist/actions/update-models.mjs.map +1 -1
  243. package/dist/actions/webhooks-secret-get.cjs +1 -0
  244. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  245. package/dist/actions/webhooks-secret-get.d.cts +3 -1
  246. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  247. package/dist/actions/webhooks-secret-get.d.mts +3 -1
  248. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  249. package/dist/actions/webhooks-secret-get.mjs +1 -0
  250. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  251. package/dist/app.cjs +5 -2
  252. package/dist/app.cjs.map +1 -1
  253. package/dist/app.d.cts +7 -1
  254. package/dist/app.d.cts.map +1 -1
  255. package/dist/app.d.mts +7 -1
  256. package/dist/app.d.mts.map +1 -1
  257. package/dist/app.mjs +3 -2
  258. package/dist/app.mjs.map +1 -1
  259. package/dist/index.d.cts +1 -1
  260. package/dist/index.d.mts +1 -1
  261. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["replicate","executeReplicateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["replicate","executeReplicateTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof replicate.credential> {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof replicate.credential> {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/account-get.ts
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAC3H,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet: AppAction<\n typeof ReplicateAccountGetInput,\n typeof ReplicateAccountGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAC3H,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/account-get.d.ts
@@ -8,7 +10,7 @@ declare const ReplicateAccountGetOutput: z.ZodObject<{
8
10
  username: z.ZodNullable<z.ZodString>;
9
11
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const replicateAccountGet: AppAction<typeof ReplicateAccountGetInput, typeof ReplicateAccountGetOutput, typeof replicate.credential>;
12
14
  //#endregion
13
15
  export { replicateAccountGet };
14
16
  //# sourceMappingURL=account-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/account-get.d.ts
@@ -8,7 +10,7 @@ declare const ReplicateAccountGetOutput: z.ZodObject<{
8
10
  username: z.ZodNullable<z.ZodString>;
9
11
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const replicateAccountGet: AppAction<typeof ReplicateAccountGetInput, typeof ReplicateAccountGetOutput, typeof replicate.credential>;
12
14
  //#endregion
13
15
  export { replicateAccountGet };
14
16
  //# sourceMappingURL=account-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const replicateAccountGet = action("REPLICATE_ACCOUNT_GET", {
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAYrD;CACP,QAZuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet: AppAction<\n typeof ReplicateAccountGetInput,\n typeof ReplicateAccountGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAcA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAgBrD;CACP,QAhBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/cancel-prediction.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OA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eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction: AppAction<\n typeof ReplicateCancelPredictionInput,\n typeof ReplicateCancelPredictionOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,O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S,sBAAsB;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,QAAQ,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,iDAAiD,SAAS;CAClE,SAAS,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-prediction.d.ts
@@ -41,9 +43,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
41
43
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
44
  data_removed: z.ZodNullable<z.ZodBoolean>;
43
45
  }, z.core.$loose>;
44
- declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- prediction_id: string;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const replicateCancelPrediction: AppAction<typeof ReplicateCancelPredictionInput, typeof ReplicateCancelPredictionOutput, typeof replicate.credential>;
47
47
  //#endregion
48
48
  export { replicateCancelPrediction };
49
49
  //# sourceMappingURL=cancel-prediction.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.d.cts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"cancel-prediction.d.cts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/cancel-prediction.d.ts
@@ -41,9 +43,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
41
43
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
44
  data_removed: z.ZodNullable<z.ZodBoolean>;
43
45
  }, z.core.$loose>;
44
- declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- prediction_id: string;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const replicateCancelPrediction: AppAction<typeof ReplicateCancelPredictionInput, typeof ReplicateCancelPredictionOutput, typeof replicate.credential>;
47
47
  //#endregion
48
48
  export { replicateCancelPrediction };
49
49
  //# sourceMappingURL=cancel-prediction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.d.mts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"cancel-prediction.d.mts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/cancel-prediction.ts
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kSAAkS;AAC5T,MAAM,mDAAmD,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAClH,MAAM,mDAAmD,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CA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CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction: AppAction<\n typeof ReplicateCancelPredictionInput,\n typeof ReplicateCancelPredictionOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: Replic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  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/collections-get.ts
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.cjs","names":["z","action"],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"collections-get.cjs","names":["z","action"],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet: AppAction<\n typeof ReplicateCollectionsGetInput,\n typeof ReplicateCollectionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+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AAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/collections-get.d.ts
@@ -24,9 +26,7 @@ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
24
26
  description: z.ZodNullable<z.ZodString>;
25
27
  full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  }, z.core.$loose>;
27
- declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- collection_slug: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const replicateCollectionsGet: AppAction<typeof ReplicateCollectionsGetInput, typeof ReplicateCollectionsGetOutput, typeof replicate.credential>;
30
30
  //#endregion
31
31
  export { replicateCollectionsGet };
32
32
  //# sourceMappingURL=collections-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.d.cts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"collections-get.d.cts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/collections-get.d.ts
@@ -24,9 +26,7 @@ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
24
26
  description: z.ZodNullable<z.ZodString>;
25
27
  full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  }, z.core.$loose>;
27
- declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- collection_slug: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const replicateCollectionsGet: AppAction<typeof ReplicateCollectionsGetInput, typeof ReplicateCollectionsGetOutput, typeof replicate.credential>;
30
30
  //#endregion
31
31
  export { replicateCollectionsGet };
32
32
  //# sourceMappingURL=collections-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.d.mts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"collections-get.d.mts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/collections-get.ts
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.mjs","names":[],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CA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SAAS,+EAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"collections-get.mjs","names":[],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet: AppAction<\n typeof ReplicateCollectionsGetInput,\n typeof ReplicateCollectionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAS1E,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/collections-list.ts
@@ -1 +1 @@
1
- {"version":3,"file":"collections-list.cjs","names":["z","action"],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"collections-list.cjs","names":["z","action"],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList: AppAction<\n typeof ReplicateCollectionsListInput,\n typeof ReplicateCollectionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/collections-list.d.ts
@@ -13,9 +15,7 @@ declare const ReplicateCollectionsListOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- cursor?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const replicateCollectionsList: AppAction<typeof ReplicateCollectionsListInput, typeof ReplicateCollectionsListOutput, typeof replicate.credential>;
19
19
  //#endregion
20
20
  export { replicateCollectionsList };
21
21
  //# sourceMappingURL=collections-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-list.d.cts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"collections-list.d.cts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/collections-list.d.ts
@@ -13,9 +15,7 @@ declare const ReplicateCollectionsListOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- cursor?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const replicateCollectionsList: AppAction<typeof ReplicateCollectionsListInput, typeof ReplicateCollectionsListOutput, typeof replicate.credential>;
19
19
  //#endregion
20
20
  export { replicateCollectionsList };
21
21
  //# sourceMappingURL=collections-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-list.d.mts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"collections-list.d.mts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/collections-list.ts
@@ -1 +1 @@
1
- {"version":3,"file":"collections-list.mjs","names":[],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAOjE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;EAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"collections-list.mjs","names":[],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList: AppAction<\n typeof ReplicateCollectionsListInput,\n typeof ReplicateCollectionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAOjE,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;EAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-model.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel: AppAction<\n typeof ReplicateCreateModelInput,\n typeof ReplicateCreateModelOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC5K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,E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AS,uCAAuC;AAEjE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-model.d.ts
@@ -29,17 +31,7 @@ declare const ReplicateCreateModelOutput: z.ZodObject<{
29
31
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
33
  }, z.core.$loose>;
32
- declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
33
- name: string;
34
- owner: string;
35
- hardware: string;
36
- visibility: string;
37
- paper_url?: string | undefined;
38
- github_url?: string | undefined;
39
- description?: string | undefined;
40
- license_url?: string | undefined;
41
- cover_image_url?: string | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ declare const replicateCreateModel: AppAction<typeof ReplicateCreateModelInput, typeof ReplicateCreateModelOutput, typeof replicate.credential>;
43
35
  //#endregion
44
36
  export { replicateCreateModel };
45
37
  //# sourceMappingURL=create-model.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { replicate } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-model.d.ts
@@ -29,17 +31,7 @@ declare const ReplicateCreateModelOutput: z.ZodObject<{
29
31
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
33
  }, z.core.$loose>;
32
- declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
33
- name: string;
34
- owner: string;
35
- hardware: string;
36
- visibility: string;
37
- paper_url?: string | undefined;
38
- github_url?: string | undefined;
39
- description?: string | undefined;
40
- license_url?: string | undefined;
41
- cover_image_url?: string | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ declare const replicateCreateModel: AppAction<typeof ReplicateCreateModelInput, typeof ReplicateCreateModelOutput, typeof replicate.credential>;
43
35
  //#endregion
44
36
  export { replicateCreateModel };
45
37
  //# sourceMappingURL=create-model.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const replicateCreateModel = action("REPLICATE_CREATE_MODEL", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;AAiCA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjCuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;EACpK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;EAC5K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,0CAuBH;CACP,QAvBwC,EAAE,OAA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SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel: AppAction<\n typeof ReplicateCreateModelInput,\n typeof ReplicateCreateModelOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;AAmCA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;EACpK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;EAC5K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,0CA2BH;CACP,QA3BwC,EAAE,OAAO;E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