@vicoa/cli 1.4.2-win32-x64 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/README.md +82 -0
  2. package/bin/vicoa.js +38 -0
  3. package/package.json +29 -10
  4. package/bin/_internal/81d243bd2c585b0f4821__mypyc.cp312-win_amd64.pyd +0 -0
  5. package/bin/_internal/VCRUNTIME140.dll +0 -0
  6. package/bin/_internal/VCRUNTIME140_1.dll +0 -0
  7. package/bin/_internal/_asyncio.pyd +0 -0
  8. package/bin/_internal/_bz2.pyd +0 -0
  9. package/bin/_internal/_cffi_backend.cp312-win_amd64.pyd +0 -0
  10. package/bin/_internal/_ctypes.pyd +0 -0
  11. package/bin/_internal/_decimal.pyd +0 -0
  12. package/bin/_internal/_hashlib.pyd +0 -0
  13. package/bin/_internal/_lzma.pyd +0 -0
  14. package/bin/_internal/_multiprocessing.pyd +0 -0
  15. package/bin/_internal/_overlapped.pyd +0 -0
  16. package/bin/_internal/_queue.pyd +0 -0
  17. package/bin/_internal/_socket.pyd +0 -0
  18. package/bin/_internal/_ssl.pyd +0 -0
  19. package/bin/_internal/_uuid.pyd +0 -0
  20. package/bin/_internal/_wmi.pyd +0 -0
  21. package/bin/_internal/_zoneinfo.pyd +0 -0
  22. package/bin/_internal/aiofile-3.11.1.dist-info/INSTALLER +0 -1
  23. package/bin/_internal/aiofile-3.11.1.dist-info/METADATA +0 -511
  24. package/bin/_internal/aiofile-3.11.1.dist-info/RECORD +0 -15
  25. package/bin/_internal/aiofile-3.11.1.dist-info/WHEEL +0 -4
  26. package/bin/_internal/aiofile-3.11.1.dist-info/licenses/LICENCE +0 -195
  27. package/bin/_internal/aiofile-3.11.1.dist-info/licenses/LICENCE.md +0 -195
  28. package/bin/_internal/aiohttp/_http_parser.cp312-win_amd64.pyd +0 -0
  29. package/bin/_internal/aiohttp/_http_writer.cp312-win_amd64.pyd +0 -0
  30. package/bin/_internal/aiohttp/_websocket/mask.cp312-win_amd64.pyd +0 -0
  31. package/bin/_internal/aiohttp/_websocket/reader_c.cp312-win_amd64.pyd +0 -0
  32. package/bin/_internal/api-ms-win-core-console-l1-1-0.dll +0 -0
  33. package/bin/_internal/api-ms-win-core-datetime-l1-1-0.dll +0 -0
  34. package/bin/_internal/api-ms-win-core-debug-l1-1-0.dll +0 -0
  35. package/bin/_internal/api-ms-win-core-errorhandling-l1-1-0.dll +0 -0
  36. package/bin/_internal/api-ms-win-core-fibers-l1-1-0.dll +0 -0
  37. package/bin/_internal/api-ms-win-core-fibers-l1-1-1.dll +0 -0
  38. package/bin/_internal/api-ms-win-core-file-l1-1-0.dll +0 -0
  39. package/bin/_internal/api-ms-win-core-file-l1-2-0.dll +0 -0
  40. package/bin/_internal/api-ms-win-core-file-l2-1-0.dll +0 -0
  41. package/bin/_internal/api-ms-win-core-handle-l1-1-0.dll +0 -0
  42. package/bin/_internal/api-ms-win-core-heap-l1-1-0.dll +0 -0
  43. package/bin/_internal/api-ms-win-core-interlocked-l1-1-0.dll +0 -0
  44. package/bin/_internal/api-ms-win-core-kernel32-legacy-l1-1-1.dll +0 -0
  45. package/bin/_internal/api-ms-win-core-libraryloader-l1-1-0.dll +0 -0
  46. package/bin/_internal/api-ms-win-core-localization-l1-2-0.dll +0 -0
  47. package/bin/_internal/api-ms-win-core-memory-l1-1-0.dll +0 -0
  48. package/bin/_internal/api-ms-win-core-namedpipe-l1-1-0.dll +0 -0
  49. package/bin/_internal/api-ms-win-core-processenvironment-l1-1-0.dll +0 -0
  50. package/bin/_internal/api-ms-win-core-processthreads-l1-1-0.dll +0 -0
  51. package/bin/_internal/api-ms-win-core-processthreads-l1-1-1.dll +0 -0
  52. package/bin/_internal/api-ms-win-core-profile-l1-1-0.dll +0 -0
  53. package/bin/_internal/api-ms-win-core-rtlsupport-l1-1-0.dll +0 -0
  54. package/bin/_internal/api-ms-win-core-string-l1-1-0.dll +0 -0
  55. package/bin/_internal/api-ms-win-core-synch-l1-1-0.dll +0 -0
  56. package/bin/_internal/api-ms-win-core-synch-l1-2-0.dll +0 -0
  57. package/bin/_internal/api-ms-win-core-sysinfo-l1-1-0.dll +0 -0
  58. package/bin/_internal/api-ms-win-core-sysinfo-l1-2-0.dll +0 -0
  59. package/bin/_internal/api-ms-win-core-timezone-l1-1-0.dll +0 -0
  60. package/bin/_internal/api-ms-win-core-util-l1-1-0.dll +0 -0
  61. package/bin/_internal/api-ms-win-crt-conio-l1-1-0.dll +0 -0
  62. package/bin/_internal/api-ms-win-crt-convert-l1-1-0.dll +0 -0
  63. package/bin/_internal/api-ms-win-crt-environment-l1-1-0.dll +0 -0
  64. package/bin/_internal/api-ms-win-crt-filesystem-l1-1-0.dll +0 -0
  65. package/bin/_internal/api-ms-win-crt-heap-l1-1-0.dll +0 -0
  66. package/bin/_internal/api-ms-win-crt-locale-l1-1-0.dll +0 -0
  67. package/bin/_internal/api-ms-win-crt-math-l1-1-0.dll +0 -0
  68. package/bin/_internal/api-ms-win-crt-process-l1-1-0.dll +0 -0
  69. package/bin/_internal/api-ms-win-crt-runtime-l1-1-0.dll +0 -0
  70. package/bin/_internal/api-ms-win-crt-stdio-l1-1-0.dll +0 -0
  71. package/bin/_internal/api-ms-win-crt-string-l1-1-0.dll +0 -0
  72. package/bin/_internal/api-ms-win-crt-time-l1-1-0.dll +0 -0
  73. package/bin/_internal/api-ms-win-crt-utility-l1-1-0.dll +0 -0
  74. package/bin/_internal/attrs-26.1.0.dist-info/INSTALLER +0 -1
  75. package/bin/_internal/attrs-26.1.0.dist-info/METADATA +0 -199
  76. package/bin/_internal/attrs-26.1.0.dist-info/RECORD +0 -55
  77. package/bin/_internal/attrs-26.1.0.dist-info/WHEEL +0 -4
  78. package/bin/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +0 -21
  79. package/bin/_internal/base_library.zip +0 -0
  80. package/bin/_internal/certifi/cacert.pem +0 -3933
  81. package/bin/_internal/certifi/py.typed +0 -0
  82. package/bin/_internal/charset_normalizer/cd.cp312-win_amd64.pyd +0 -0
  83. package/bin/_internal/charset_normalizer/md.cp312-win_amd64.pyd +0 -0
  84. package/bin/_internal/click-8.3.3.dist-info/INSTALLER +0 -1
  85. package/bin/_internal/click-8.3.3.dist-info/METADATA +0 -84
  86. package/bin/_internal/click-8.3.3.dist-info/RECORD +0 -40
  87. package/bin/_internal/click-8.3.3.dist-info/WHEEL +0 -4
  88. package/bin/_internal/click-8.3.3.dist-info/licenses/LICENSE.txt +0 -28
  89. package/bin/_internal/cryptography/hazmat/bindings/_rust.pyd +0 -0
  90. package/bin/_internal/cryptography-48.0.0.dist-info/INSTALLER +0 -1
  91. package/bin/_internal/cryptography-48.0.0.dist-info/METADATA +0 -110
  92. package/bin/_internal/cryptography-48.0.0.dist-info/RECORD +0 -195
  93. package/bin/_internal/cryptography-48.0.0.dist-info/WHEEL +0 -4
  94. package/bin/_internal/cryptography-48.0.0.dist-info/licenses/LICENSE +0 -3
  95. package/bin/_internal/cryptography-48.0.0.dist-info/licenses/LICENSE.APACHE +0 -202
  96. package/bin/_internal/cryptography-48.0.0.dist-info/licenses/LICENSE.BSD +0 -27
  97. package/bin/_internal/cryptography-48.0.0.dist-info/sboms/cryptography-rust.cyclonedx.json +0 -1362
  98. package/bin/_internal/cryptography-48.0.0.dist-info/sboms/sbom.json +0 -43
  99. package/bin/_internal/email_validator-2.3.0.dist-info/INSTALLER +0 -1
  100. package/bin/_internal/email_validator-2.3.0.dist-info/METADATA +0 -466
  101. package/bin/_internal/email_validator-2.3.0.dist-info/RECORD +0 -27
  102. package/bin/_internal/email_validator-2.3.0.dist-info/WHEEL +0 -5
  103. package/bin/_internal/email_validator-2.3.0.dist-info/entry_points.txt +0 -2
  104. package/bin/_internal/email_validator-2.3.0.dist-info/licenses/LICENSE +0 -27
  105. package/bin/_internal/email_validator-2.3.0.dist-info/top_level.txt +0 -1
  106. package/bin/_internal/fastmcp-3.3.1.dist-info/INSTALLER +0 -1
  107. package/bin/_internal/fastmcp-3.3.1.dist-info/METADATA +0 -157
  108. package/bin/_internal/fastmcp-3.3.1.dist-info/RECORD +0 -5
  109. package/bin/_internal/fastmcp-3.3.1.dist-info/WHEEL +0 -4
  110. package/bin/_internal/fastmcp-3.3.1.dist-info/licenses/LICENSE +0 -201
  111. package/bin/_internal/frozenlist/_frozenlist.cp312-win_amd64.pyd +0 -0
  112. package/bin/_internal/integrations/cli_wrappers/IMPORTANT_USE_CASES.md +0 -33
  113. package/bin/_internal/integrations/github/claude-code-action/CLAUDE.md +0 -136
  114. package/bin/_internal/integrations/github/claude-code-action/CODE_OF_CONDUCT.md +0 -128
  115. package/bin/_internal/integrations/github/claude-code-action/CONTRIBUTING.md +0 -116
  116. package/bin/_internal/integrations/github/claude-code-action/LICENSE +0 -21
  117. package/bin/_internal/integrations/github/claude-code-action/README.md +0 -53
  118. package/bin/_internal/integrations/github/claude-code-action/ROADMAP.md +0 -20
  119. package/bin/_internal/integrations/github/claude-code-action/SECURITY.md +0 -15
  120. package/bin/_internal/integrations/github/claude-code-action/action.yml +0 -294
  121. package/bin/_internal/integrations/github/claude-code-action/base-action/CLAUDE.md +0 -60
  122. package/bin/_internal/integrations/github/claude-code-action/base-action/CODE_OF_CONDUCT.md +0 -128
  123. package/bin/_internal/integrations/github/claude-code-action/base-action/CONTRIBUTING.md +0 -136
  124. package/bin/_internal/integrations/github/claude-code-action/base-action/LICENSE +0 -21
  125. package/bin/_internal/integrations/github/claude-code-action/base-action/MIRROR_DISCLAIMER.md +0 -11
  126. package/bin/_internal/integrations/github/claude-code-action/base-action/README.md +0 -521
  127. package/bin/_internal/integrations/github/claude-code-action/base-action/action.yml +0 -149
  128. package/bin/_internal/integrations/github/claude-code-action/base-action/bun.lock +0 -54
  129. package/bin/_internal/integrations/github/claude-code-action/base-action/examples/issue-triage.yml +0 -108
  130. package/bin/_internal/integrations/github/claude-code-action/base-action/package.json +0 -23
  131. package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/install-hooks.sh +0 -13
  132. package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/pre-push +0 -46
  133. package/bin/_internal/integrations/github/claude-code-action/base-action/src/index.ts +0 -82
  134. package/bin/_internal/integrations/github/claude-code-action/base-action/src/prepare-prompt.ts +0 -82
  135. package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-claude.ts +0 -257
  136. package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-vicoa.ts +0 -301
  137. package/bin/_internal/integrations/github/claude-code-action/base-action/src/setup-claude-code-settings.ts +0 -68
  138. package/bin/_internal/integrations/github/claude-code-action/base-action/src/validate-env.ts +0 -54
  139. package/bin/_internal/integrations/github/claude-code-action/base-action/test-local.sh +0 -12
  140. package/bin/_internal/integrations/github/claude-code-action/base-action/test-mcp-local.sh +0 -18
  141. package/bin/_internal/integrations/github/claude-code-action/base-action/tsconfig.json +0 -30
  142. package/bin/_internal/integrations/github/claude-code-action/bun.lock +0 -384
  143. package/bin/_internal/integrations/github/claude-code-action/docs/capabilities-and-limitations.md +0 -33
  144. package/bin/_internal/integrations/github/claude-code-action/docs/cloud-providers.md +0 -99
  145. package/bin/_internal/integrations/github/claude-code-action/docs/configuration.md +0 -345
  146. package/bin/_internal/integrations/github/claude-code-action/docs/custom-automations.md +0 -113
  147. package/bin/_internal/integrations/github/claude-code-action/docs/experimental.md +0 -128
  148. package/bin/_internal/integrations/github/claude-code-action/docs/faq.md +0 -205
  149. package/bin/_internal/integrations/github/claude-code-action/docs/migration-guide.md +0 -261
  150. package/bin/_internal/integrations/github/claude-code-action/docs/security.md +0 -38
  151. package/bin/_internal/integrations/github/claude-code-action/docs/setup.md +0 -146
  152. package/bin/_internal/integrations/github/claude-code-action/docs/usage.md +0 -213
  153. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/auto-fix-ci.yml +0 -97
  154. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/commands/fix-ci.md +0 -127
  155. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/auto-fix-ci-signed.yml +0 -97
  156. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/commands/fix-ci-signed.md +0 -148
  157. package/bin/_internal/integrations/github/claude-code-action/examples/issue-deduplication.yml +0 -63
  158. package/bin/_internal/integrations/github/claude-code-action/examples/issue-triage.yml +0 -75
  159. package/bin/_internal/integrations/github/claude-code-action/examples/vicoa.yml +0 -75
  160. package/bin/_internal/integrations/github/claude-code-action/package.json +0 -31
  161. package/bin/_internal/integrations/github/claude-code-action/scripts/install-hooks.sh +0 -13
  162. package/bin/_internal/integrations/github/claude-code-action/scripts/pre-commit +0 -46
  163. package/bin/_internal/integrations/github/claude-code-action/scripts/setup-network-restrictions.sh +0 -123
  164. package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/index.ts +0 -799
  165. package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/types.ts +0 -102
  166. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/collect-inputs.ts +0 -58
  167. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/format-turns.ts +0 -465
  168. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/prepare.ts +0 -98
  169. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/update-comment-link.ts +0 -245
  170. package/bin/_internal/integrations/github/claude-code-action/src/github/api/client.ts +0 -23
  171. package/bin/_internal/integrations/github/claude-code-action/src/github/api/config.ts +0 -4
  172. package/bin/_internal/integrations/github/claude-code-action/src/github/api/queries/github.ts +0 -117
  173. package/bin/_internal/integrations/github/claude-code-action/src/github/context.ts +0 -277
  174. package/bin/_internal/integrations/github/claude-code-action/src/github/data/fetcher.ts +0 -233
  175. package/bin/_internal/integrations/github/claude-code-action/src/github/data/formatter.ts +0 -144
  176. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch-cleanup.ts +0 -132
  177. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch.ts +0 -163
  178. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comment-logic.ts +0 -203
  179. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/common.ts +0 -33
  180. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/create-initial.ts +0 -111
  181. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-claude-comment.ts +0 -70
  182. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-with-branch.ts +0 -57
  183. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/git-config.ts +0 -62
  184. package/bin/_internal/integrations/github/claude-code-action/src/github/token.ts +0 -108
  185. package/bin/_internal/integrations/github/claude-code-action/src/github/types.ts +0 -98
  186. package/bin/_internal/integrations/github/claude-code-action/src/github/utils/image-downloader.ts +0 -246
  187. package/bin/_internal/integrations/github/claude-code-action/src/github/utils/sanitizer.ts +0 -100
  188. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/actor.ts +0 -64
  189. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/permissions.ts +0 -47
  190. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/trigger.ts +0 -148
  191. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-actions-server.ts +0 -279
  192. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-comment-server.ts +0 -101
  193. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-file-ops-server.ts +0 -677
  194. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-inline-comment-server.ts +0 -184
  195. package/bin/_internal/integrations/github/claude-code-action/src/mcp/install-mcp-server.ts +0 -201
  196. package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/index.ts +0 -152
  197. package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/parse-tools.ts +0 -22
  198. package/bin/_internal/integrations/github/claude-code-action/src/modes/detector.ts +0 -66
  199. package/bin/_internal/integrations/github/claude-code-action/src/modes/registry.ts +0 -54
  200. package/bin/_internal/integrations/github/claude-code-action/src/modes/tag/index.ts +0 -187
  201. package/bin/_internal/integrations/github/claude-code-action/src/modes/types.ts +0 -100
  202. package/bin/_internal/integrations/github/claude-code-action/src/prepare/index.ts +0 -20
  203. package/bin/_internal/integrations/github/claude-code-action/src/prepare/types.ts +0 -20
  204. package/bin/_internal/integrations/github/claude-code-action/src/utils/retry.ts +0 -40
  205. package/bin/_internal/integrations/github/claude-code-action/tsconfig.json +0 -30
  206. package/bin/_internal/integrations/headless/tests/README.md +0 -58
  207. package/bin/_internal/integrations/n8n/LICENSE +0 -21
  208. package/bin/_internal/integrations/n8n/README.md +0 -298
  209. package/bin/_internal/integrations/n8n/package-lock.json +0 -2989
  210. package/bin/_internal/integrations/n8n/package.json +0 -68
  211. package/bin/_internal/integrations/n8n/src/credentials/OmnaraApi.credentials.ts +0 -52
  212. package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.json +0 -35
  213. package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.ts +0 -304
  214. package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/index.ts +0 -37
  215. package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/send.operation.ts +0 -151
  216. package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/sendAndWait.operation.ts +0 -252
  217. package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/end.operation.ts +0 -56
  218. package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/index.ts +0 -29
  219. package/bin/_internal/integrations/n8n/src/nodes/Omnara/vicoa.png +0 -0
  220. package/bin/_internal/integrations/n8n/src/utils/GenericFunctions.ts +0 -93
  221. package/bin/_internal/integrations/n8n/src/utils/sendAndWait/configureWaitTillDate.ts +0 -42
  222. package/bin/_internal/integrations/n8n/src/utils/sendAndWait/descriptions.ts +0 -20
  223. package/bin/_internal/integrations/n8n/src/utils/sendAndWaitWebhook.ts +0 -72
  224. package/bin/_internal/integrations/n8n/tsconfig.json +0 -20
  225. package/bin/_internal/jiter/jiter.cp312-win_amd64.pyd +0 -0
  226. package/bin/_internal/jsonschema/benchmarks/issue232/issue.json +0 -2653
  227. package/bin/_internal/jsonschema-4.26.0.dist-info/INSTALLER +0 -1
  228. package/bin/_internal/jsonschema-4.26.0.dist-info/METADATA +0 -170
  229. package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +0 -82
  230. package/bin/_internal/jsonschema-4.26.0.dist-info/WHEEL +0 -4
  231. package/bin/_internal/jsonschema-4.26.0.dist-info/entry_points.txt +0 -2
  232. package/bin/_internal/jsonschema-4.26.0.dist-info/licenses/COPYING +0 -19
  233. package/bin/_internal/jsonschema_specifications/schemas/draft201909/metaschema.json +0 -42
  234. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +0 -56
  235. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/content +0 -17
  236. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/core +0 -57
  237. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/format +0 -14
  238. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +0 -37
  239. package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/validation +0 -98
  240. package/bin/_internal/jsonschema_specifications/schemas/draft202012/metaschema.json +0 -58
  241. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +0 -48
  242. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/content +0 -17
  243. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/core +0 -51
  244. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +0 -14
  245. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +0 -14
  246. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +0 -37
  247. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +0 -15
  248. package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/validation +0 -98
  249. package/bin/_internal/jsonschema_specifications/schemas/draft3/metaschema.json +0 -172
  250. package/bin/_internal/jsonschema_specifications/schemas/draft4/metaschema.json +0 -149
  251. package/bin/_internal/jsonschema_specifications/schemas/draft6/metaschema.json +0 -153
  252. package/bin/_internal/jsonschema_specifications/schemas/draft7/metaschema.json +0 -166
  253. package/bin/_internal/libcrypto-3.dll +0 -0
  254. package/bin/_internal/libffi-8.dll +0 -0
  255. package/bin/_internal/libssl-3.dll +0 -0
  256. package/bin/_internal/mcp-1.27.1.dist-info/INSTALLER +0 -1
  257. package/bin/_internal/mcp-1.27.1.dist-info/METADATA +0 -230
  258. package/bin/_internal/mcp-1.27.1.dist-info/RECORD +0 -226
  259. package/bin/_internal/mcp-1.27.1.dist-info/WHEEL +0 -4
  260. package/bin/_internal/mcp-1.27.1.dist-info/entry_points.txt +0 -2
  261. package/bin/_internal/mcp-1.27.1.dist-info/licenses/LICENSE +0 -21
  262. package/bin/_internal/multidict/_multidict.cp312-win_amd64.pyd +0 -0
  263. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/INSTALLER +0 -1
  264. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/METADATA +0 -43
  265. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/RECORD +0 -81
  266. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/WHEEL +0 -4
  267. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/entry_points.txt +0 -15
  268. package/bin/_internal/opentelemetry_api-1.42.0.dist-info/licenses/LICENSE +0 -201
  269. package/bin/_internal/propcache/_helpers_c.cp312-win_amd64.pyd +0 -0
  270. package/bin/_internal/pydantic-2.13.4.dist-info/INSTALLER +0 -1
  271. package/bin/_internal/pydantic-2.13.4.dist-info/METADATA +0 -1294
  272. package/bin/_internal/pydantic-2.13.4.dist-info/RECORD +0 -217
  273. package/bin/_internal/pydantic-2.13.4.dist-info/WHEEL +0 -4
  274. package/bin/_internal/pydantic-2.13.4.dist-info/licenses/LICENSE +0 -21
  275. package/bin/_internal/pydantic_core/_pydantic_core.cp312-win_amd64.pyd +0 -0
  276. package/bin/_internal/pyexpat.pyd +0 -0
  277. package/bin/_internal/python3.dll +0 -0
  278. package/bin/_internal/python312.dll +0 -0
  279. package/bin/_internal/pywin32_system32/pythoncom312.dll +0 -0
  280. package/bin/_internal/pywin32_system32/pywintypes312.dll +0 -0
  281. package/bin/_internal/rpds/rpds.cp312-win_amd64.pyd +0 -0
  282. package/bin/_internal/select.pyd +0 -0
  283. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/INSTALLER +0 -1
  284. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA +0 -133
  285. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/RECORD +0 -21
  286. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/REQUESTED +0 -0
  287. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/WHEEL +0 -5
  288. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +0 -73
  289. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/top_level.txt +0 -1
  290. package/bin/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +0 -2
  291. package/bin/_internal/ucrtbase.dll +0 -0
  292. package/bin/_internal/unicodedata.pyd +0 -0
  293. package/bin/_internal/vicoa/_bin/README.md +0 -28
  294. package/bin/_internal/vicoa-1.4.2.dist-info/INSTALLER +0 -1
  295. package/bin/_internal/vicoa-1.4.2.dist-info/METADATA +0 -312
  296. package/bin/_internal/vicoa-1.4.2.dist-info/RECORD +0 -11
  297. package/bin/_internal/vicoa-1.4.2.dist-info/REQUESTED +0 -0
  298. package/bin/_internal/vicoa-1.4.2.dist-info/WHEEL +0 -5
  299. package/bin/_internal/vicoa-1.4.2.dist-info/direct_url.json +0 -1
  300. package/bin/_internal/vicoa-1.4.2.dist-info/entry_points.txt +0 -2
  301. package/bin/_internal/vicoa-1.4.2.dist-info/licenses/LICENSE +0 -201
  302. package/bin/_internal/vicoa-1.4.2.dist-info/top_level.txt +0 -3
  303. package/bin/_internal/watchfiles/_rust_notify.cp312-win_amd64.pyd +0 -0
  304. package/bin/_internal/websockets/speedups.cp312-win_amd64.pyd +0 -0
  305. package/bin/_internal/websockets-16.0.dist-info/INSTALLER +0 -1
  306. package/bin/_internal/websockets-16.0.dist-info/METADATA +0 -179
  307. package/bin/_internal/websockets-16.0.dist-info/RECORD +0 -108
  308. package/bin/_internal/websockets-16.0.dist-info/WHEEL +0 -5
  309. package/bin/_internal/websockets-16.0.dist-info/entry_points.txt +0 -2
  310. package/bin/_internal/websockets-16.0.dist-info/licenses/LICENSE +0 -24
  311. package/bin/_internal/websockets-16.0.dist-info/top_level.txt +0 -1
  312. package/bin/_internal/win32/_win32sysloader.pyd +0 -0
  313. package/bin/_internal/win32/win32api.pyd +0 -0
  314. package/bin/_internal/win32/win32evtlog.pyd +0 -0
  315. package/bin/_internal/win32/win32job.pyd +0 -0
  316. package/bin/_internal/yaml/_yaml.cp312-win_amd64.pyd +0 -0
  317. package/bin/_internal/yarl/_quoting_c.cp312-win_amd64.pyd +0 -0
  318. package/bin/vicoa.exe +0 -0
@@ -1,521 +0,0 @@
1
- # Claude Code Base Action
2
-
3
- This GitHub Action allows you to run [Claude Code](https://www.anthropic.com/claude-code) within your GitHub Actions workflows. You can use this to build any custom workflow on top of Claude Code.
4
-
5
- For simply tagging @claude in issues and PRs out of the box, [check out the Claude Code action and GitHub app](https://github.com/anthropics/claude-code-action).
6
-
7
- ## Usage
8
-
9
- Add the following to your workflow file:
10
-
11
- ```yaml
12
- # Using a direct prompt
13
- - name: Run Claude Code with direct prompt
14
- uses: anthropics/claude-code-base-action@beta
15
- with:
16
- prompt: "Your prompt here"
17
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
18
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
19
-
20
- # Or using a prompt from a file
21
- - name: Run Claude Code with prompt file
22
- uses: anthropics/claude-code-base-action@beta
23
- with:
24
- prompt_file: "/path/to/prompt.txt"
25
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
26
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
27
-
28
- # Or limiting the conversation turns
29
- - name: Run Claude Code with limited turns
30
- uses: anthropics/claude-code-base-action@beta
31
- with:
32
- prompt: "Your prompt here"
33
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
34
- max_turns: "5" # Limit conversation to 5 turns
35
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
36
-
37
- # Using custom system prompts
38
- - name: Run Claude Code with custom system prompt
39
- uses: anthropics/claude-code-base-action@beta
40
- with:
41
- prompt: "Build a REST API"
42
- system_prompt: "You are a senior backend engineer. Focus on security, performance, and maintainability."
43
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
44
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
45
-
46
- # Or appending to the default system prompt
47
- - name: Run Claude Code with appended system prompt
48
- uses: anthropics/claude-code-base-action@beta
49
- with:
50
- prompt: "Create a database schema"
51
- append_system_prompt: "After writing code, be sure to code review yourself."
52
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
53
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
54
-
55
- # Using custom environment variables
56
- - name: Run Claude Code with custom environment variables
57
- uses: anthropics/claude-code-base-action@beta
58
- with:
59
- prompt: "Deploy to staging environment"
60
- claude_env: |
61
- ENVIRONMENT: staging
62
- API_URL: https://api-staging.example.com
63
- DEBUG: true
64
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
65
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
66
-
67
- # Using fallback model for handling API errors
68
- - name: Run Claude Code with fallback model
69
- uses: anthropics/claude-code-base-action@beta
70
- with:
71
- prompt: "Review and fix TypeScript errors"
72
- model: "claude-opus-4-1-20250805"
73
- fallback_model: "claude-sonnet-4-20250514"
74
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
75
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
76
-
77
- # Using OAuth token instead of API key
78
- - name: Run Claude Code with OAuth token
79
- uses: anthropics/claude-code-base-action@beta
80
- with:
81
- prompt: "Update dependencies"
82
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
83
- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
84
- ```
85
-
86
- ## Inputs
87
-
88
- | Input | Description | Required | Default |
89
- | ------------------------- | ------------------------------------------------------------------------------------------------- | -------- | ---------------------------- |
90
- | `prompt` | The prompt to send to Claude Code | No\* | '' |
91
- | `prompt_file` | Path to a file containing the prompt to send to Claude Code | No\* | '' |
92
- | `allowed_tools` | Comma-separated list of allowed tools for Claude Code to use | No | '' |
93
- | `disallowed_tools` | Comma-separated list of disallowed tools that Claude Code cannot use | No | '' |
94
- | `max_turns` | Maximum number of conversation turns (default: no limit) | No | '' |
95
- | `mcp_config` | Path to the MCP configuration JSON file, or MCP configuration JSON string | No | '' |
96
- | `settings` | Path to Claude Code settings JSON file, or settings JSON string | No | '' |
97
- | `system_prompt` | Override system prompt | No | '' |
98
- | `append_system_prompt` | Append to system prompt | No | '' |
99
- | `claude_env` | Custom environment variables to pass to Claude Code execution (YAML multiline format) | No | '' |
100
- | `model` | Model to use (provider-specific format required for Bedrock/Vertex) | No | 'claude-4-0-sonnet-20250219' |
101
- | `anthropic_model` | DEPRECATED: Use 'model' instead | No | 'claude-4-0-sonnet-20250219' |
102
- | `fallback_model` | Enable automatic fallback to specified model when default model is overloaded | No | '' |
103
- | `anthropic_api_key` | Anthropic API key (required for direct Anthropic API) | No | '' |
104
- | `claude_code_oauth_token` | Claude Code OAuth token (alternative to anthropic_api_key) | No | '' |
105
- | `use_bedrock` | Use Amazon Bedrock with OIDC authentication instead of direct Anthropic API | No | 'false' |
106
- | `use_vertex` | Use Google Vertex AI with OIDC authentication instead of direct Anthropic API | No | 'false' |
107
- | `use_node_cache` | Whether to use Node.js dependency caching (set to true only for Node.js projects with lock files) | No | 'false' |
108
-
109
- \*Either `prompt` or `prompt_file` must be provided, but not both.
110
-
111
- ## Outputs
112
-
113
- | Output | Description |
114
- | ---------------- | ---------------------------------------------------------- |
115
- | `conclusion` | Execution status of Claude Code ('success' or 'failure') |
116
- | `execution_file` | Path to the JSON file containing Claude Code execution log |
117
-
118
- ## Environment Variables
119
-
120
- The following environment variables can be used to configure the action:
121
-
122
- | Variable | Description | Default |
123
- | -------------- | ----------------------------------------------------- | ------- |
124
- | `NODE_VERSION` | Node.js version to use (e.g., '18.x', '20.x', '22.x') | '18.x' |
125
-
126
- Example usage:
127
-
128
- ```yaml
129
- - name: Run Claude Code with Node.js 20
130
- uses: anthropics/claude-code-base-action@beta
131
- env:
132
- NODE_VERSION: "20.x"
133
- with:
134
- prompt: "Your prompt here"
135
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
136
- ```
137
-
138
- ## Custom Environment Variables
139
-
140
- You can pass custom environment variables to Claude Code execution using the `claude_env` input. This allows Claude to access environment-specific configuration during its execution.
141
-
142
- The `claude_env` input accepts YAML multiline format with key-value pairs:
143
-
144
- ```yaml
145
- - name: Deploy with custom environment
146
- uses: anthropics/claude-code-base-action@beta
147
- with:
148
- prompt: "Deploy the application to the staging environment"
149
- claude_env: |
150
- ENVIRONMENT: staging
151
- API_BASE_URL: https://api-staging.example.com
152
- DATABASE_URL: ${{ secrets.STAGING_DB_URL }}
153
- DEBUG: true
154
- LOG_LEVEL: debug
155
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
156
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
157
- ```
158
-
159
- ### Features:
160
-
161
- - **YAML Format**: Use standard YAML key-value syntax (`KEY: value`)
162
- - **Multiline Support**: Define multiple environment variables in a single input
163
- - **Comments**: Lines starting with `#` are ignored
164
- - **GitHub Secrets**: Can reference GitHub secrets using `${{ secrets.SECRET_NAME }}`
165
- - **Runtime Access**: Environment variables are available to Claude during execution
166
-
167
- ### Example Use Cases:
168
-
169
- ```yaml
170
- # Development configuration
171
- claude_env: |
172
- NODE_ENV: development
173
- API_URL: http://localhost:3000
174
- DEBUG: true
175
-
176
- # Production deployment
177
- claude_env: |
178
- NODE_ENV: production
179
- API_URL: https://api.example.com
180
- DATABASE_URL: ${{ secrets.PROD_DB_URL }}
181
- REDIS_URL: ${{ secrets.REDIS_URL }}
182
-
183
- # Feature flags and configuration
184
- claude_env: |
185
- FEATURE_NEW_UI: enabled
186
- MAX_RETRIES: 3
187
- TIMEOUT_MS: 5000
188
- ```
189
-
190
- ## Using Settings Configuration
191
-
192
- You can provide Claude Code settings configuration in two ways:
193
-
194
- ### Option 1: Settings Configuration File
195
-
196
- Provide a path to a JSON file containing Claude Code settings:
197
-
198
- ```yaml
199
- - name: Run Claude Code with settings file
200
- uses: anthropics/claude-code-base-action@beta
201
- with:
202
- prompt: "Your prompt here"
203
- settings: "path/to/settings.json"
204
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
205
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
206
- ```
207
-
208
- ### Option 2: Inline Settings Configuration
209
-
210
- Provide the settings configuration directly as a JSON string:
211
-
212
- ```yaml
213
- - name: Run Claude Code with inline settings
214
- uses: anthropics/claude-code-base-action@beta
215
- with:
216
- prompt: "Your prompt here"
217
- settings: |
218
- {
219
- "model": "claude-opus-4-1-20250805",
220
- "env": {
221
- "DEBUG": "true",
222
- "API_URL": "https://api.example.com"
223
- },
224
- "permissions": {
225
- "allow": ["Bash", "Read"],
226
- "deny": ["WebFetch"]
227
- },
228
- "hooks": {
229
- "PreToolUse": [{
230
- "matcher": "Bash",
231
- "hooks": [{
232
- "type": "command",
233
- "command": "echo Running bash command..."
234
- }]
235
- }]
236
- }
237
- }
238
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
239
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
240
- ```
241
-
242
- The settings file supports all Claude Code settings options including:
243
-
244
- - `model`: Override the default model
245
- - `env`: Environment variables for the session
246
- - `permissions`: Tool usage permissions
247
- - `hooks`: Pre/post tool execution hooks
248
- - `includeCoAuthoredBy`: Include co-authored-by in git commits
249
- - And more...
250
-
251
- **Note**: The `enableAllProjectMcpServers` setting is always set to `true` by this action to ensure MCP servers work correctly.
252
-
253
- ## Using MCP Config
254
-
255
- You can provide MCP configuration in two ways:
256
-
257
- ### Option 1: MCP Configuration File
258
-
259
- Provide a path to a JSON file containing MCP configuration:
260
-
261
- ```yaml
262
- - name: Run Claude Code with MCP config file
263
- uses: anthropics/claude-code-base-action@beta
264
- with:
265
- prompt: "Your prompt here"
266
- mcp_config: "path/to/mcp-config.json"
267
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
268
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
269
- ```
270
-
271
- ### Option 2: Inline MCP Configuration
272
-
273
- Provide the MCP configuration directly as a JSON string:
274
-
275
- ```yaml
276
- - name: Run Claude Code with inline MCP config
277
- uses: anthropics/claude-code-base-action@beta
278
- with:
279
- prompt: "Your prompt here"
280
- mcp_config: |
281
- {
282
- "mcpServers": {
283
- "server-name": {
284
- "command": "node",
285
- "args": ["./server.js"],
286
- "env": {
287
- "API_KEY": "your-api-key"
288
- }
289
- }
290
- }
291
- }
292
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
293
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
294
- ```
295
-
296
- The MCP config file should follow this format:
297
-
298
- ```json
299
- {
300
- "mcpServers": {
301
- "server-name": {
302
- "command": "node",
303
- "args": ["./server.js"],
304
- "env": {
305
- "API_KEY": "your-api-key"
306
- }
307
- }
308
- }
309
- }
310
- ```
311
-
312
- You can combine MCP config with other inputs like allowed tools:
313
-
314
- ```yaml
315
- # Using multiple inputs together
316
- - name: Run Claude Code with MCP and custom tools
317
- uses: anthropics/claude-code-base-action@beta
318
- with:
319
- prompt: "Access the custom MCP server and use its tools"
320
- mcp_config: "mcp-config.json"
321
- allowed_tools: "Bash(git:*),View,mcp__server-name__custom_tool"
322
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
323
- ```
324
-
325
- ## Example: PR Code Review
326
-
327
- ```yaml
328
- name: Claude Code Review
329
-
330
- on:
331
- pull_request:
332
- types: [opened, synchronize]
333
-
334
- jobs:
335
- code-review:
336
- runs-on: ubuntu-latest
337
- steps:
338
- - name: Checkout code
339
- uses: actions/checkout@v4
340
- with:
341
- fetch-depth: 0
342
-
343
- - name: Run Code Review with Claude
344
- id: code-review
345
- uses: anthropics/claude-code-base-action@beta
346
- with:
347
- prompt: "Review the PR changes. Focus on code quality, potential bugs, and performance issues. Suggest improvements where appropriate. Write your review as markdown text."
348
- allowed_tools: "Bash(git diff --name-only HEAD~1),Bash(git diff HEAD~1),View,GlobTool,GrepTool,Write"
349
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
350
-
351
- - name: Extract and Comment PR Review
352
- if: steps.code-review.outputs.conclusion == 'success'
353
- uses: actions/github-script@v7
354
- with:
355
- github-token: ${{ secrets.GITHUB_TOKEN }}
356
- script: |
357
- const fs = require('fs');
358
- const executionFile = '${{ steps.code-review.outputs.execution_file }}';
359
- const executionLog = JSON.parse(fs.readFileSync(executionFile, 'utf8'));
360
-
361
- // Extract the review content from the execution log
362
- // The execution log contains the full conversation including Claude's responses
363
- let review = '';
364
-
365
- // Find the last assistant message which should contain the review
366
- for (let i = executionLog.length - 1; i >= 0; i--) {
367
- if (executionLog[i].role === 'assistant') {
368
- review = executionLog[i].content;
369
- break;
370
- }
371
- }
372
-
373
- if (review) {
374
- github.rest.issues.createComment({
375
- issue_number: context.issue.number,
376
- owner: context.repo.owner,
377
- repo: context.repo.repo,
378
- body: "## Claude Code Review\n\n" + review + "\n\n*Generated by Claude Code*"
379
- });
380
- }
381
- ```
382
-
383
- Check out additional examples in [`./examples`](./examples).
384
-
385
- ## Using Cloud Providers
386
-
387
- You can authenticate with Claude using any of these methods:
388
-
389
- 1. Direct Anthropic API (default) - requires API key or OAuth token
390
- 2. Amazon Bedrock - requires OIDC authentication and automatically uses cross-region inference profiles
391
- 3. Google Vertex AI - requires OIDC authentication
392
-
393
- **Note**:
394
-
395
- - Bedrock and Vertex use OIDC authentication exclusively
396
- - AWS Bedrock automatically uses cross-region inference profiles for certain models
397
- - For cross-region inference profile models, you need to request and be granted access to the Claude models in all regions that the inference profile uses
398
- - The Bedrock API endpoint URL is automatically constructed using the AWS_REGION environment variable (e.g., `https://bedrock-runtime.us-west-2.amazonaws.com`)
399
- - You can override the Bedrock API endpoint URL by setting the `ANTHROPIC_BEDROCK_BASE_URL` environment variable
400
-
401
- ### Model Configuration
402
-
403
- Use provider-specific model names based on your chosen provider:
404
-
405
- ```yaml
406
- # For direct Anthropic API (default)
407
- - name: Run Claude Code with Anthropic API
408
- uses: anthropics/claude-code-base-action@beta
409
- with:
410
- prompt: "Your prompt here"
411
- model: "claude-3-7-sonnet-20250219"
412
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
413
-
414
- # For Amazon Bedrock (requires OIDC authentication)
415
- - name: Configure AWS Credentials (OIDC)
416
- uses: aws-actions/configure-aws-credentials@v4
417
- with:
418
- role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
419
- aws-region: us-west-2
420
-
421
- - name: Run Claude Code with Bedrock
422
- uses: anthropics/claude-code-base-action@beta
423
- with:
424
- prompt: "Your prompt here"
425
- model: "anthropic.claude-3-7-sonnet-20250219-v1:0"
426
- use_bedrock: "true"
427
-
428
- # For Google Vertex AI (requires OIDC authentication)
429
- - name: Authenticate to Google Cloud
430
- uses: google-github-actions/auth@v2
431
- with:
432
- workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
433
- service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
434
-
435
- - name: Run Claude Code with Vertex AI
436
- uses: anthropics/claude-code-base-action@beta
437
- with:
438
- prompt: "Your prompt here"
439
- model: "claude-3-7-sonnet@20250219"
440
- use_vertex: "true"
441
- ```
442
-
443
- ## Example: Using OIDC Authentication for AWS Bedrock
444
-
445
- This example shows how to use OIDC authentication with AWS Bedrock:
446
-
447
- ```yaml
448
- - name: Configure AWS Credentials (OIDC)
449
- uses: aws-actions/configure-aws-credentials@v4
450
- with:
451
- role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
452
- aws-region: us-west-2
453
-
454
- - name: Run Claude Code with AWS OIDC
455
- uses: anthropics/claude-code-base-action@beta
456
- with:
457
- prompt: "Your prompt here"
458
- use_bedrock: "true"
459
- model: "anthropic.claude-3-7-sonnet-20250219-v1:0"
460
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
461
- ```
462
-
463
- ## Example: Using OIDC Authentication for GCP Vertex AI
464
-
465
- This example shows how to use OIDC authentication with GCP Vertex AI:
466
-
467
- ```yaml
468
- - name: Authenticate to Google Cloud
469
- uses: google-github-actions/auth@v2
470
- with:
471
- workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
472
- service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
473
-
474
- - name: Run Claude Code with GCP OIDC
475
- uses: anthropics/claude-code-base-action@beta
476
- with:
477
- prompt: "Your prompt here"
478
- use_vertex: "true"
479
- model: "claude-3-7-sonnet@20250219"
480
- allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
481
- ```
482
-
483
- ## Security Best Practices
484
-
485
- **⚠️ IMPORTANT: Never commit API keys directly to your repository! Always use GitHub Actions secrets.**
486
-
487
- To securely use your Anthropic API key:
488
-
489
- 1. Add your API key as a repository secret:
490
-
491
- - Go to your repository's Settings
492
- - Navigate to "Secrets and variables" → "Actions"
493
- - Click "New repository secret"
494
- - Name it `ANTHROPIC_API_KEY`
495
- - Paste your API key as the value
496
-
497
- 2. Reference the secret in your workflow:
498
- ```yaml
499
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
500
- ```
501
-
502
- **Never do this:**
503
-
504
- ```yaml
505
- # ❌ WRONG - Exposes your API key
506
- anthropic_api_key: "sk-ant-..."
507
- ```
508
-
509
- **Always do this:**
510
-
511
- ```yaml
512
- # ✅ CORRECT - Uses GitHub secrets
513
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
514
- ```
515
-
516
- This applies to all sensitive values including API keys, access tokens, and credentials.
517
- We also recommend that you always use short-lived tokens when possible
518
-
519
- ## License
520
-
521
- This project is licensed under the MIT License—see the LICENSE file for details.
@@ -1,149 +0,0 @@
1
- name: "Claude Code Base Action"
2
- description: "Run Claude Code in GitHub Actions workflows"
3
- branding:
4
- icon: "code"
5
- color: "orange"
6
-
7
- inputs:
8
- # Claude Code arguments
9
- prompt:
10
- description: "The prompt to send to Claude Code (mutually exclusive with prompt_file)"
11
- required: false
12
- default: ""
13
- prompt_file:
14
- description: "Path to a file containing the prompt to send to Claude Code (mutually exclusive with prompt)"
15
- required: false
16
- default: ""
17
- settings:
18
- description: "Claude Code settings as JSON string or path to settings JSON file"
19
- required: false
20
- default: ""
21
-
22
- # Action settings
23
- claude_args:
24
- description: "Additional arguments to pass directly to Claude CLI (e.g., '--max-turns 3 --mcp-config /path/to/config.json')"
25
- required: false
26
- default: ""
27
-
28
- # Authentication settings
29
- anthropic_api_key:
30
- description: "Anthropic API key (required for direct Anthropic API)"
31
- required: false
32
- default: ""
33
- claude_code_oauth_token:
34
- description: "Claude Code OAuth token (alternative to anthropic_api_key)"
35
- required: false
36
- default: ""
37
- use_bedrock:
38
- description: "Use Amazon Bedrock with OIDC authentication instead of direct Anthropic API"
39
- required: false
40
- default: "false"
41
- use_vertex:
42
- description: "Use Google Vertex AI with OIDC authentication instead of direct Anthropic API"
43
- required: false
44
- default: "false"
45
-
46
- use_node_cache:
47
- description: "Whether to use Node.js dependency caching (set to true only for Node.js projects with lock files)"
48
- required: false
49
- default: "false"
50
- path_to_claude_code_executable:
51
- description: "Optional path to a custom Claude Code executable. If provided, skips automatic installation and uses this executable instead. WARNING: Using an older version may cause problems if the action begins taking advantage of new Claude Code features. This input is typically not needed unless you're debugging something specific or have unique needs in your environment."
52
- required: false
53
- default: ""
54
- path_to_bun_executable:
55
- description: "Optional path to a custom Bun executable. If provided, skips automatic Bun installation and uses this executable instead. WARNING: Using an incompatible version may cause problems if the action requires specific Bun features. This input is typically not needed unless you're debugging something specific or have unique needs in your environment."
56
- required: false
57
- default: ""
58
-
59
- outputs:
60
- conclusion:
61
- description: "Execution status of Claude Code ('success' or 'failure')"
62
- value: ${{ steps.run_claude.outputs.conclusion }}
63
- execution_file:
64
- description: "Path to the JSON file containing Claude Code execution log"
65
- value: ${{ steps.run_claude.outputs.execution_file }}
66
-
67
- runs:
68
- using: "composite"
69
- steps:
70
- - name: Setup Node.js
71
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # https://github.com/actions/setup-node/releases/tag/v4.4.0
72
- with:
73
- node-version: ${{ env.NODE_VERSION || '18.x' }}
74
- cache: ${{ inputs.use_node_cache == 'true' && 'npm' || '' }}
75
-
76
- - name: Install Bun
77
- if: inputs.path_to_bun_executable == ''
78
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # https://github.com/oven-sh/setup-bun/releases/tag/v2.0.2
79
- with:
80
- bun-version: 1.2.11
81
-
82
- - name: Setup Custom Bun Path
83
- if: inputs.path_to_bun_executable != ''
84
- shell: bash
85
- run: |
86
- echo "Using custom Bun executable: ${{ inputs.path_to_bun_executable }}"
87
- # Add the directory containing the custom executable to PATH
88
- BUN_DIR=$(dirname "${{ inputs.path_to_bun_executable }}")
89
- echo "$BUN_DIR" >> "$GITHUB_PATH"
90
-
91
- - name: Install Dependencies
92
- shell: bash
93
- run: |
94
- cd ${GITHUB_ACTION_PATH}
95
- bun install
96
-
97
- - name: Install Claude Code
98
- shell: bash
99
- run: |
100
- if [ -z "${{ inputs.path_to_claude_code_executable }}" ]; then
101
- echo "Installing Claude Code..."
102
- curl -fsSL https://claude.ai/install.sh | bash -s 1.0.93
103
- else
104
- echo "Using custom Claude Code executable: ${{ inputs.path_to_claude_code_executable }}"
105
- # Add the directory containing the custom executable to PATH
106
- CLAUDE_DIR=$(dirname "${{ inputs.path_to_claude_code_executable }}")
107
- echo "$CLAUDE_DIR" >> "$GITHUB_PATH"
108
- fi
109
-
110
- - name: Run Claude Code Action
111
- shell: bash
112
- id: run_claude
113
- run: |
114
- # Change to CLAUDE_WORKING_DIR if set (for running in custom directories)
115
- if [ -n "$CLAUDE_WORKING_DIR" ]; then
116
- echo "Changing directory to CLAUDE_WORKING_DIR: $CLAUDE_WORKING_DIR"
117
- cd "$CLAUDE_WORKING_DIR"
118
- fi
119
- bun run ${GITHUB_ACTION_PATH}/src/index.ts
120
- env:
121
- # Model configuration
122
- CLAUDE_CODE_ACTION: "1"
123
- INPUT_PROMPT: ${{ inputs.prompt }}
124
- INPUT_PROMPT_FILE: ${{ inputs.prompt_file }}
125
- INPUT_SETTINGS: ${{ inputs.settings }}
126
- INPUT_CLAUDE_ARGS: ${{ inputs.claude_args }}
127
- INPUT_PATH_TO_CLAUDE_CODE_EXECUTABLE: ${{ inputs.path_to_claude_code_executable }}
128
- INPUT_PATH_TO_BUN_EXECUTABLE: ${{ inputs.path_to_bun_executable }}
129
-
130
- # Provider configuration
131
- ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}
132
- CLAUDE_CODE_OAUTH_TOKEN: ${{ inputs.claude_code_oauth_token }}
133
- ANTHROPIC_BASE_URL: ${{ env.ANTHROPIC_BASE_URL }}
134
- # Only set provider flags if explicitly true, since any value (including "false") is truthy
135
- CLAUDE_CODE_USE_BEDROCK: ${{ inputs.use_bedrock == 'true' && '1' || '' }}
136
- CLAUDE_CODE_USE_VERTEX: ${{ inputs.use_vertex == 'true' && '1' || '' }}
137
-
138
- # AWS configuration
139
- AWS_REGION: ${{ env.AWS_REGION }}
140
- AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
141
- AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
142
- AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
143
- ANTHROPIC_BEDROCK_BASE_URL: ${{ env.ANTHROPIC_BEDROCK_BASE_URL || (env.AWS_REGION && format('https://bedrock-runtime.{0}.amazonaws.com', env.AWS_REGION)) }}
144
-
145
- # GCP configuration
146
- ANTHROPIC_VERTEX_PROJECT_ID: ${{ env.ANTHROPIC_VERTEX_PROJECT_ID }}
147
- CLOUD_ML_REGION: ${{ env.CLOUD_ML_REGION }}
148
- GOOGLE_APPLICATION_CREDENTIALS: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }}
149
- ANTHROPIC_VERTEX_BASE_URL: ${{ env.ANTHROPIC_VERTEX_BASE_URL }}