@vicoa/cli 1.3.11-linux-x64 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -0
- package/bin/vicoa.js +38 -0
- package/package.json +29 -10
- package/bin/_internal/81d243bd2c585b0f4821__mypyc.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/_cffi_backend.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/aiofile-3.9.0.dist-info/LICENCE +0 -195
- package/bin/_internal/aiofile-3.9.0.dist-info/LICENCE.md +0 -195
- package/bin/_internal/aiofile-3.9.0.dist-info/METADATA +0 -492
- package/bin/_internal/aiofile-3.9.0.dist-info/RECORD +0 -15
- package/bin/_internal/aiofile-3.9.0.dist-info/WHEEL +0 -4
- package/bin/_internal/aiohttp/_http_parser.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/aiohttp/_http_writer.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/aiohttp/_websocket/mask.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/aiohttp/_websocket/reader_c.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/attrs-26.1.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/attrs-26.1.0.dist-info/METADATA +0 -199
- package/bin/_internal/attrs-26.1.0.dist-info/RECORD +0 -55
- package/bin/_internal/attrs-26.1.0.dist-info/WHEEL +0 -4
- package/bin/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +0 -21
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/caio/linux_aio.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/caio/thread_aio.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/certifi/cacert.pem +0 -4494
- package/bin/_internal/certifi/py.typed +0 -0
- package/bin/_internal/charset_normalizer/cd.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/charset_normalizer/md.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/click-8.3.2.dist-info/INSTALLER +0 -1
- package/bin/_internal/click-8.3.2.dist-info/METADATA +0 -84
- package/bin/_internal/click-8.3.2.dist-info/RECORD +0 -40
- package/bin/_internal/click-8.3.2.dist-info/WHEEL +0 -4
- package/bin/_internal/click-8.3.2.dist-info/licenses/LICENSE.txt +0 -28
- package/bin/_internal/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/INSTALLER +0 -1
- package/bin/_internal/cryptography-46.0.7.dist-info/METADATA +0 -139
- package/bin/_internal/cryptography-46.0.7.dist-info/RECORD +0 -180
- package/bin/_internal/cryptography-46.0.7.dist-info/WHEEL +0 -5
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE +0 -3
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.APACHE +0 -202
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.BSD +0 -27
- package/bin/_internal/email_validator-2.3.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/email_validator-2.3.0.dist-info/METADATA +0 -466
- package/bin/_internal/email_validator-2.3.0.dist-info/RECORD +0 -27
- package/bin/_internal/email_validator-2.3.0.dist-info/WHEEL +0 -5
- package/bin/_internal/email_validator-2.3.0.dist-info/entry_points.txt +0 -2
- package/bin/_internal/email_validator-2.3.0.dist-info/licenses/LICENSE +0 -27
- package/bin/_internal/email_validator-2.3.0.dist-info/top_level.txt +0 -1
- package/bin/_internal/frozenlist/_frozenlist.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/INSTALLER +0 -1
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/METADATA +0 -133
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/RECORD +0 -33
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/WHEEL +0 -5
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +0 -73
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/top_level.txt +0 -1
- package/bin/_internal/integrations/cli_wrappers/IMPORTANT_USE_CASES.md +0 -33
- package/bin/_internal/integrations/github/claude-code-action/CLAUDE.md +0 -136
- package/bin/_internal/integrations/github/claude-code-action/CODE_OF_CONDUCT.md +0 -128
- package/bin/_internal/integrations/github/claude-code-action/CONTRIBUTING.md +0 -116
- package/bin/_internal/integrations/github/claude-code-action/LICENSE +0 -21
- package/bin/_internal/integrations/github/claude-code-action/README.md +0 -53
- package/bin/_internal/integrations/github/claude-code-action/ROADMAP.md +0 -20
- package/bin/_internal/integrations/github/claude-code-action/SECURITY.md +0 -15
- package/bin/_internal/integrations/github/claude-code-action/action.yml +0 -294
- package/bin/_internal/integrations/github/claude-code-action/base-action/CLAUDE.md +0 -60
- package/bin/_internal/integrations/github/claude-code-action/base-action/CODE_OF_CONDUCT.md +0 -128
- package/bin/_internal/integrations/github/claude-code-action/base-action/CONTRIBUTING.md +0 -136
- package/bin/_internal/integrations/github/claude-code-action/base-action/LICENSE +0 -21
- package/bin/_internal/integrations/github/claude-code-action/base-action/MIRROR_DISCLAIMER.md +0 -11
- package/bin/_internal/integrations/github/claude-code-action/base-action/README.md +0 -521
- package/bin/_internal/integrations/github/claude-code-action/base-action/action.yml +0 -149
- package/bin/_internal/integrations/github/claude-code-action/base-action/bun.lock +0 -54
- package/bin/_internal/integrations/github/claude-code-action/base-action/examples/issue-triage.yml +0 -108
- package/bin/_internal/integrations/github/claude-code-action/base-action/package.json +0 -23
- package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/install-hooks.sh +0 -13
- package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/pre-push +0 -46
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/index.ts +0 -82
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/prepare-prompt.ts +0 -82
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-claude.ts +0 -257
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-vicoa.ts +0 -301
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/setup-claude-code-settings.ts +0 -68
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/validate-env.ts +0 -54
- package/bin/_internal/integrations/github/claude-code-action/base-action/test-local.sh +0 -12
- package/bin/_internal/integrations/github/claude-code-action/base-action/test-mcp-local.sh +0 -18
- package/bin/_internal/integrations/github/claude-code-action/base-action/tsconfig.json +0 -30
- package/bin/_internal/integrations/github/claude-code-action/bun.lock +0 -384
- package/bin/_internal/integrations/github/claude-code-action/docs/capabilities-and-limitations.md +0 -33
- package/bin/_internal/integrations/github/claude-code-action/docs/cloud-providers.md +0 -99
- package/bin/_internal/integrations/github/claude-code-action/docs/configuration.md +0 -345
- package/bin/_internal/integrations/github/claude-code-action/docs/custom-automations.md +0 -113
- package/bin/_internal/integrations/github/claude-code-action/docs/experimental.md +0 -128
- package/bin/_internal/integrations/github/claude-code-action/docs/faq.md +0 -205
- package/bin/_internal/integrations/github/claude-code-action/docs/migration-guide.md +0 -261
- package/bin/_internal/integrations/github/claude-code-action/docs/security.md +0 -38
- package/bin/_internal/integrations/github/claude-code-action/docs/setup.md +0 -146
- package/bin/_internal/integrations/github/claude-code-action/docs/usage.md +0 -213
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/auto-fix-ci.yml +0 -97
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/commands/fix-ci.md +0 -127
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/auto-fix-ci-signed.yml +0 -97
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/commands/fix-ci-signed.md +0 -148
- package/bin/_internal/integrations/github/claude-code-action/examples/issue-deduplication.yml +0 -63
- package/bin/_internal/integrations/github/claude-code-action/examples/issue-triage.yml +0 -75
- package/bin/_internal/integrations/github/claude-code-action/examples/vicoa.yml +0 -75
- package/bin/_internal/integrations/github/claude-code-action/package.json +0 -31
- package/bin/_internal/integrations/github/claude-code-action/scripts/install-hooks.sh +0 -13
- package/bin/_internal/integrations/github/claude-code-action/scripts/pre-commit +0 -46
- package/bin/_internal/integrations/github/claude-code-action/scripts/setup-network-restrictions.sh +0 -123
- package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/index.ts +0 -799
- package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/types.ts +0 -102
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/collect-inputs.ts +0 -58
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/format-turns.ts +0 -465
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/prepare.ts +0 -98
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/update-comment-link.ts +0 -245
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/client.ts +0 -23
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/config.ts +0 -4
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/queries/github.ts +0 -117
- package/bin/_internal/integrations/github/claude-code-action/src/github/context.ts +0 -277
- package/bin/_internal/integrations/github/claude-code-action/src/github/data/fetcher.ts +0 -233
- package/bin/_internal/integrations/github/claude-code-action/src/github/data/formatter.ts +0 -144
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch-cleanup.ts +0 -132
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch.ts +0 -163
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comment-logic.ts +0 -203
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/common.ts +0 -33
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/create-initial.ts +0 -111
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-claude-comment.ts +0 -70
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-with-branch.ts +0 -57
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/git-config.ts +0 -62
- package/bin/_internal/integrations/github/claude-code-action/src/github/token.ts +0 -108
- package/bin/_internal/integrations/github/claude-code-action/src/github/types.ts +0 -98
- package/bin/_internal/integrations/github/claude-code-action/src/github/utils/image-downloader.ts +0 -246
- package/bin/_internal/integrations/github/claude-code-action/src/github/utils/sanitizer.ts +0 -100
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/actor.ts +0 -64
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/permissions.ts +0 -47
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/trigger.ts +0 -148
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-actions-server.ts +0 -279
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-comment-server.ts +0 -101
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-file-ops-server.ts +0 -677
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-inline-comment-server.ts +0 -184
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/install-mcp-server.ts +0 -201
- package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/index.ts +0 -152
- package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/parse-tools.ts +0 -22
- package/bin/_internal/integrations/github/claude-code-action/src/modes/detector.ts +0 -66
- package/bin/_internal/integrations/github/claude-code-action/src/modes/registry.ts +0 -54
- package/bin/_internal/integrations/github/claude-code-action/src/modes/tag/index.ts +0 -187
- package/bin/_internal/integrations/github/claude-code-action/src/modes/types.ts +0 -100
- package/bin/_internal/integrations/github/claude-code-action/src/prepare/index.ts +0 -20
- package/bin/_internal/integrations/github/claude-code-action/src/prepare/types.ts +0 -20
- package/bin/_internal/integrations/github/claude-code-action/src/utils/retry.ts +0 -40
- package/bin/_internal/integrations/github/claude-code-action/tsconfig.json +0 -30
- package/bin/_internal/integrations/n8n/LICENSE +0 -21
- package/bin/_internal/integrations/n8n/README.md +0 -298
- package/bin/_internal/integrations/n8n/package-lock.json +0 -2989
- package/bin/_internal/integrations/n8n/package.json +0 -68
- package/bin/_internal/integrations/n8n/src/credentials/OmnaraApi.credentials.ts +0 -52
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.json +0 -35
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.ts +0 -304
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/index.ts +0 -37
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/send.operation.ts +0 -151
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/sendAndWait.operation.ts +0 -252
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/end.operation.ts +0 -56
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/index.ts +0 -29
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/vicoa.png +0 -0
- package/bin/_internal/integrations/n8n/src/utils/GenericFunctions.ts +0 -93
- package/bin/_internal/integrations/n8n/src/utils/sendAndWait/configureWaitTillDate.ts +0 -42
- package/bin/_internal/integrations/n8n/src/utils/sendAndWait/descriptions.ts +0 -20
- package/bin/_internal/integrations/n8n/src/utils/sendAndWaitWebhook.ts +0 -72
- package/bin/_internal/integrations/n8n/tsconfig.json +0 -20
- package/bin/_internal/jiter/jiter.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/jsonschema/benchmarks/issue232/issue.json +0 -2653
- package/bin/_internal/jsonschema-4.26.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/jsonschema-4.26.0.dist-info/METADATA +0 -170
- package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +0 -82
- package/bin/_internal/jsonschema-4.26.0.dist-info/WHEEL +0 -4
- package/bin/_internal/jsonschema-4.26.0.dist-info/entry_points.txt +0 -2
- package/bin/_internal/jsonschema-4.26.0.dist-info/licenses/COPYING +0 -19
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/metaschema.json +0 -42
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +0 -56
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/content +0 -17
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/core +0 -57
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/format +0 -14
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +0 -37
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/validation +0 -98
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/metaschema.json +0 -58
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +0 -48
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/content +0 -17
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/core +0 -51
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +0 -14
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +0 -14
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +0 -37
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +0 -15
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/validation +0 -98
- package/bin/_internal/jsonschema_specifications/schemas/draft3/metaschema.json +0 -172
- package/bin/_internal/jsonschema_specifications/schemas/draft4/metaschema.json +0 -149
- package/bin/_internal/jsonschema_specifications/schemas/draft6/metaschema.json +0 -153
- package/bin/_internal/jsonschema_specifications/schemas/draft7/metaschema.json +0 -166
- package/bin/_internal/libbz2.so.1.0 +0 -0
- package/bin/_internal/libcrypto.so.3 +0 -0
- package/bin/_internal/libffi.so.8 +0 -0
- package/bin/_internal/libgcc_s.so.1 +0 -0
- package/bin/_internal/liblzma.so.5 +0 -0
- package/bin/_internal/libpython3.12.so.1.0 +0 -0
- package/bin/_internal/libreadline.so.8 +0 -0
- package/bin/_internal/libssl.so.3 +0 -0
- package/bin/_internal/libstdc++.so.6 +0 -0
- package/bin/_internal/libtinfo.so.6 +0 -0
- package/bin/_internal/libuuid.so.1 +0 -0
- package/bin/_internal/libz.so.1 +0 -0
- package/bin/_internal/mcp-1.27.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/mcp-1.27.0.dist-info/METADATA +0 -230
- package/bin/_internal/mcp-1.27.0.dist-info/RECORD +0 -226
- package/bin/_internal/mcp-1.27.0.dist-info/WHEEL +0 -4
- package/bin/_internal/mcp-1.27.0.dist-info/entry_points.txt +0 -2
- package/bin/_internal/mcp-1.27.0.dist-info/licenses/LICENSE +0 -21
- package/bin/_internal/multidict/_multidict.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/METADATA +0 -45
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/RECORD +0 -81
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/WHEEL +0 -4
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/entry_points.txt +0 -15
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/licenses/LICENSE +0 -201
- package/bin/_internal/propcache/_helpers_c.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/INSTALLER +0 -1
- package/bin/_internal/pydantic-2.13.2.dist-info/METADATA +0 -1269
- package/bin/_internal/pydantic-2.13.2.dist-info/RECORD +0 -217
- package/bin/_internal/pydantic-2.13.2.dist-info/WHEEL +0 -4
- package/bin/_internal/pydantic-2.13.2.dist-info/licenses/LICENSE +0 -21
- package/bin/_internal/pydantic_core/_pydantic_core.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_asyncio.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bisect.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_blake2.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bz2.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_contextvars.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_csv.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ctypes.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_datetime.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_decimal.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_hashlib.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_heapq.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_json.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_lzma.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_md5.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_opcode.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_pickle.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_queue.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_random.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha1.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha2.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha3.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_socket.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ssl.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_statistics.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_struct.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_uuid.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_zoneinfo.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/array.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/binascii.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/fcntl.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/grp.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/math.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/mmap.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/pyexpat.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/readline.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/resource.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/select.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/syslog.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/termios.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/unicodedata.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/zlib.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/rpds/rpds.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +0 -2
- package/bin/_internal/vicoa/_bin/README.md +0 -28
- package/bin/_internal/vicoa-1.3.10.dist-info/INSTALLER +0 -1
- package/bin/_internal/vicoa-1.3.10.dist-info/METADATA +0 -311
- package/bin/_internal/vicoa-1.3.10.dist-info/RECORD +0 -11
- package/bin/_internal/vicoa-1.3.10.dist-info/REQUESTED +0 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/WHEEL +0 -5
- package/bin/_internal/vicoa-1.3.10.dist-info/direct_url.json +0 -1
- package/bin/_internal/vicoa-1.3.10.dist-info/entry_points.txt +0 -2
- package/bin/_internal/vicoa-1.3.10.dist-info/licenses/LICENSE +0 -201
- package/bin/_internal/vicoa-1.3.10.dist-info/top_level.txt +0 -3
- package/bin/_internal/watchfiles/_rust_notify.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/websockets/speedups.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/websockets-16.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/websockets-16.0.dist-info/METADATA +0 -179
- package/bin/_internal/websockets-16.0.dist-info/RECORD +0 -108
- package/bin/_internal/websockets-16.0.dist-info/WHEEL +0 -7
- package/bin/_internal/websockets-16.0.dist-info/entry_points.txt +0 -2
- package/bin/_internal/websockets-16.0.dist-info/licenses/LICENSE +0 -24
- package/bin/_internal/websockets-16.0.dist-info/top_level.txt +0 -1
- package/bin/_internal/yaml/_yaml.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/_internal/yarl/_quoting_c.cpython-312-x86_64-linux-gnu.so +0 -0
- package/bin/vicoa +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# Contributing to Claude Code Base Action
|
|
2
|
-
|
|
3
|
-
Thank you for your interest in contributing to Claude Code Base Action! This document provides guidelines and instructions for contributing to the project.
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
### Prerequisites
|
|
8
|
-
|
|
9
|
-
- [Bun](https://bun.sh/) runtime
|
|
10
|
-
- [Docker](https://www.docker.com/) (for running GitHub Actions locally)
|
|
11
|
-
- [act](https://github.com/nektos/act) (installed automatically by our test script)
|
|
12
|
-
- An Anthropic API key (for testing)
|
|
13
|
-
|
|
14
|
-
### Setup
|
|
15
|
-
|
|
16
|
-
1. Fork the repository on GitHub and clone your fork:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
git clone https://github.com/your-username/claude-code-base-action.git
|
|
20
|
-
cd claude-code-base-action
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
2. Install dependencies:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
bun install
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
3. Set up your Anthropic API key:
|
|
30
|
-
```bash
|
|
31
|
-
export ANTHROPIC_API_KEY="your-api-key-here"
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Development
|
|
35
|
-
|
|
36
|
-
### Available Scripts
|
|
37
|
-
|
|
38
|
-
- `bun test` - Run all tests
|
|
39
|
-
- `bun run typecheck` - Type check the code
|
|
40
|
-
- `bun run format` - Format code with Prettier
|
|
41
|
-
- `bun run format:check` - Check code formatting
|
|
42
|
-
|
|
43
|
-
## Testing
|
|
44
|
-
|
|
45
|
-
### Running Tests Locally
|
|
46
|
-
|
|
47
|
-
1. **Unit Tests**:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
bun test
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
2. **Integration Tests** (using GitHub Actions locally):
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
./test-local.sh
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
This script:
|
|
60
|
-
|
|
61
|
-
- Installs `act` if not present (requires Homebrew on macOS)
|
|
62
|
-
- Runs the GitHub Action workflow locally using Docker
|
|
63
|
-
- Requires your `ANTHROPIC_API_KEY` to be set
|
|
64
|
-
|
|
65
|
-
On Apple Silicon Macs, the script automatically adds the `--container-architecture linux/amd64` flag to avoid compatibility issues.
|
|
66
|
-
|
|
67
|
-
## Pull Request Process
|
|
68
|
-
|
|
69
|
-
1. Create a new branch from `main`:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
git checkout -b feature/your-feature-name
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
2. Make your changes and commit them:
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
git add .
|
|
79
|
-
git commit -m "feat: add new feature"
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
3. Run tests and formatting:
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
bun test
|
|
86
|
-
bun run typecheck
|
|
87
|
-
bun run format:check
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
4. Push your branch and create a Pull Request:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
git push origin feature/your-feature-name
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
5. Ensure all CI checks pass
|
|
97
|
-
|
|
98
|
-
6. Request review from maintainers
|
|
99
|
-
|
|
100
|
-
## Action Development
|
|
101
|
-
|
|
102
|
-
### Testing Your Changes
|
|
103
|
-
|
|
104
|
-
When modifying the action:
|
|
105
|
-
|
|
106
|
-
1. Test locally with the test script:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
./test-local.sh
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
2. Test in a real GitHub Actions workflow by:
|
|
113
|
-
- Creating a test repository
|
|
114
|
-
- Using your branch as the action source:
|
|
115
|
-
```yaml
|
|
116
|
-
uses: your-username/claude-code-base-action@your-branch
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### Debugging
|
|
120
|
-
|
|
121
|
-
- Use `console.log` for debugging in development
|
|
122
|
-
- Check GitHub Actions logs for runtime issues
|
|
123
|
-
- Use `act` with `-v` flag for verbose output:
|
|
124
|
-
```bash
|
|
125
|
-
act push -v --secret ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY"
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Common Issues
|
|
129
|
-
|
|
130
|
-
### Docker Issues
|
|
131
|
-
|
|
132
|
-
Make sure Docker is running before using `act`. You can check with:
|
|
133
|
-
|
|
134
|
-
```bash
|
|
135
|
-
docker ps
|
|
136
|
-
```
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Anthropic, PBC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/bin/_internal/integrations/github/claude-code-action/base-action/MIRROR_DISCLAIMER.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# ⚠️ This is a Mirror Repository
|
|
2
|
-
|
|
3
|
-
This repository is an automated mirror of the `base-action` directory from [anthropics/claude-code-action](https://github.com/anthropics/claude-code-action).
|
|
4
|
-
|
|
5
|
-
**Do not submit PRs or issues to this repository.** Instead, please contribute to the main repository:
|
|
6
|
-
|
|
7
|
-
- 🐛 [Report issues](https://github.com/anthropics/claude-code-action/issues)
|
|
8
|
-
- 🔧 [Submit pull requests](https://github.com/anthropics/claude-code-action/pulls)
|
|
9
|
-
- 📖 [View documentation](https://github.com/anthropics/claude-code-action#readme)
|
|
10
|
-
|
|
11
|
-
---
|
|
@@ -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.
|