@vicoa/cli 0.1.4-darwin-arm64 → 0.1.4
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 +57 -0
- package/bin/vicoa.js +38 -0
- package/package.json +17 -10
- package/bin/_internal/81d243bd2c585b0f4821__mypyc.cpython-312-darwin.so +0 -0
- package/bin/_internal/_cffi_backend.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_http_parser.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_http_writer.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_websocket/mask.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_websocket/reader_c.cpython-312-darwin.so +0 -0
- package/bin/_internal/asyncpg/protocol/protocol.cpython-312-darwin.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/certifi/cacert.pem +0 -4494
- package/bin/_internal/certifi/py.typed +0 -0
- package/bin/_internal/charset_normalizer/cd.cpython-312-darwin.so +0 -0
- package/bin/_internal/charset_normalizer/md.cpython-312-darwin.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 -4
- 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.1.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/email_validator-2.1.0.dist-info/LICENSE +0 -121
- package/bin/_internal/email_validator-2.1.0.dist-info/METADATA +0 -482
- package/bin/_internal/email_validator-2.1.0.dist-info/RECORD +0 -26
- package/bin/_internal/email_validator-2.1.0.dist-info/REQUESTED +0 -0
- package/bin/_internal/email_validator-2.1.0.dist-info/WHEEL +0 -5
- package/bin/_internal/email_validator-2.1.0.dist-info/entry_points.txt +0 -2
- package/bin/_internal/email_validator-2.1.0.dist-info/top_level.txt +0 -1
- package/bin/_internal/fastmcp-2.9.2.dist-info/INSTALLER +0 -1
- package/bin/_internal/fastmcp-2.9.2.dist-info/METADATA +0 -465
- package/bin/_internal/fastmcp-2.9.2.dist-info/RECORD +0 -150
- package/bin/_internal/fastmcp-2.9.2.dist-info/REQUESTED +0 -0
- package/bin/_internal/fastmcp-2.9.2.dist-info/WHEEL +0 -4
- package/bin/_internal/fastmcp-2.9.2.dist-info/entry_points.txt +0 -2
- package/bin/_internal/fastmcp-2.9.2.dist-info/licenses/LICENSE +0 -201
- package/bin/_internal/frozenlist/_frozenlist.cpython-312-darwin.so +0 -0
- package/bin/_internal/h2-4.3.0.dist-info/INSTALLER +0 -1
- package/bin/_internal/h2-4.3.0.dist-info/METADATA +0 -129
- package/bin/_internal/h2-4.3.0.dist-info/RECORD +0 -29
- package/bin/_internal/h2-4.3.0.dist-info/WHEEL +0 -5
- package/bin/_internal/h2-4.3.0.dist-info/licenses/LICENSE +0 -21
- package/bin/_internal/h2-4.3.0.dist-info/top_level.txt +0 -1
- package/bin/_internal/httptools/parser/parser.cpython-312-darwin.so +0 -0
- package/bin/_internal/httptools/parser/url_parser.cpython-312-darwin.so +0 -0
- package/bin/_internal/integrations/cli_wrappers/IMPORTANT_USE_CASES.md +0 -33
- package/bin/_internal/integrations/github/claude-code-action/.prettierignore +0 -2
- package/bin/_internal/integrations/github/claude-code-action/.prettierrc +0 -1
- 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/.prettierrc +0 -1
- 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/.prettierrc +0 -10
- 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/jiter/jiter.cpython-312-darwin.so +0 -0
- package/bin/_internal/libbz2.dylib +0 -0
- package/bin/_internal/libcom_err.3.0.dylib +0 -0
- package/bin/_internal/libcrypto.3.dylib +0 -0
- package/bin/_internal/libexpat.1.dylib +0 -0
- package/bin/_internal/libffi.8.dylib +0 -0
- package/bin/_internal/libgssapi_krb5.2.2.dylib +0 -0
- package/bin/_internal/libintl.8.dylib +0 -0
- package/bin/_internal/libk5crypto.3.1.dylib +0 -0
- package/bin/_internal/libkrb5.3.3.dylib +0 -0
- package/bin/_internal/libkrb5support.1.1.dylib +0 -0
- package/bin/_internal/liblzma.5.dylib +0 -0
- package/bin/_internal/libncursesw.6.dylib +0 -0
- package/bin/_internal/libpq.5.dylib +0 -0
- package/bin/_internal/libpython3.12.dylib +0 -0
- package/bin/_internal/libreadline.8.dylib +0 -0
- package/bin/_internal/libsqlite3.dylib +0 -0
- package/bin/_internal/libssl.3.dylib +0 -0
- package/bin/_internal/libtinfow.6.dylib +0 -0
- package/bin/_internal/libz.1.dylib +0 -0
- package/bin/_internal/mcp-1.9.4.dist-info/INSTALLER +0 -1
- package/bin/_internal/mcp-1.9.4.dist-info/METADATA +0 -939
- package/bin/_internal/mcp-1.9.4.dist-info/RECORD +0 -154
- package/bin/_internal/mcp-1.9.4.dist-info/WHEEL +0 -4
- package/bin/_internal/mcp-1.9.4.dist-info/entry_points.txt +0 -2
- package/bin/_internal/mcp-1.9.4.dist-info/licenses/LICENSE +0 -21
- package/bin/_internal/multidict/_multidict.cpython-312-darwin.so +0 -0
- package/bin/_internal/propcache/_helpers_c.cpython-312-darwin.so +0 -0
- package/bin/_internal/psycopg2/.dylibs/libcom_err.3.0.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libcrypto.3.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libgssapi_krb5.2.2.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libintl.8.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libk5crypto.3.1.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libkrb5.3.3.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libkrb5support.1.1.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libpq.5.dylib +0 -0
- package/bin/_internal/psycopg2/.dylibs/libssl.3.dylib +0 -0
- package/bin/_internal/psycopg2/_psycopg.cpython-312-darwin.so +0 -0
- package/bin/_internal/pydantic_core/_pydantic_core.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bisect.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_blake2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bz2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_csv.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_heapq.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_md5.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_queue.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_random.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha1.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha3.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sqlite3.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_statistics.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_uuid.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_zoneinfo.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/binascii.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/fcntl.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/grp.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/mmap.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/resource.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/select.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/syslog.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/INSTALLER +0 -1
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA +0 -133
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/RECORD +0 -21
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/REQUESTED +0 -0
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/WHEEL +0 -5
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +0 -73
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/top_level.txt +0 -1
- package/bin/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +0 -2
- package/bin/_internal/sqlalchemy/cyextension/collections.cpython-312-darwin.so +0 -0
- package/bin/_internal/sqlalchemy/cyextension/immutabledict.cpython-312-darwin.so +0 -0
- package/bin/_internal/sqlalchemy/cyextension/processors.cpython-312-darwin.so +0 -0
- package/bin/_internal/sqlalchemy/cyextension/resultproxy.cpython-312-darwin.so +0 -0
- package/bin/_internal/sqlalchemy/cyextension/util.cpython-312-darwin.so +0 -0
- package/bin/_internal/uvloop/loop.cpython-312-darwin.so +0 -0
- package/bin/_internal/vicoa/_bin/README.md +0 -28
- package/bin/_internal/vicoa-1.3.9.dist-info/INSTALLER +0 -1
- package/bin/_internal/vicoa-1.3.9.dist-info/METADATA +0 -311
- package/bin/_internal/vicoa-1.3.9.dist-info/RECORD +0 -11
- package/bin/_internal/vicoa-1.3.9.dist-info/REQUESTED +0 -0
- package/bin/_internal/vicoa-1.3.9.dist-info/WHEEL +0 -5
- package/bin/_internal/vicoa-1.3.9.dist-info/direct_url.json +0 -1
- package/bin/_internal/vicoa-1.3.9.dist-info/entry_points.txt +0 -2
- package/bin/_internal/vicoa-1.3.9.dist-info/licenses/LICENSE +0 -201
- package/bin/_internal/vicoa-1.3.9.dist-info/top_level.txt +0 -3
- package/bin/_internal/watchfiles/_rust_notify.cpython-312-darwin.so +0 -0
- package/bin/_internal/websockets/speedups.cpython-312-darwin.so +0 -0
- package/bin/_internal/websockets-14.2.dist-info/INSTALLER +0 -1
- package/bin/_internal/websockets-14.2.dist-info/LICENSE +0 -24
- package/bin/_internal/websockets-14.2.dist-info/METADATA +0 -178
- package/bin/_internal/websockets-14.2.dist-info/RECORD +0 -98
- package/bin/_internal/websockets-14.2.dist-info/WHEEL +0 -5
- package/bin/_internal/websockets-14.2.dist-info/top_level.txt +0 -1
- package/bin/_internal/yaml/_yaml.cpython-312-darwin.so +0 -0
- package/bin/_internal/yarl/_quoting_c.cpython-312-darwin.so +0 -0
- package/bin/_internal/zstandard/_cffi.cpython-312-darwin.so +0 -0
- package/bin/_internal/zstandard/backend_c.cpython-312-darwin.so +0 -0
- package/bin/vicoa +0 -0
package/bin/_internal/integrations/github/claude-code-action/examples/issue-deduplication.yml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
name: Issue Deduplication
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
issues:
|
|
5
|
-
types: [opened]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
deduplicate:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
timeout-minutes: 10
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
issues: write
|
|
14
|
-
id-token: write
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
- name: Checkout repository
|
|
18
|
-
uses: actions/checkout@v4
|
|
19
|
-
with:
|
|
20
|
-
fetch-depth: 1
|
|
21
|
-
|
|
22
|
-
- name: Check for duplicate issues
|
|
23
|
-
uses: anthropics/claude-code-action@v1-dev
|
|
24
|
-
with:
|
|
25
|
-
prompt: |
|
|
26
|
-
Analyze this new issue and check if it's a duplicate of existing issues in the repository.
|
|
27
|
-
|
|
28
|
-
Issue: #${{ github.event.issue.number }}
|
|
29
|
-
Repository: ${{ github.repository }}
|
|
30
|
-
|
|
31
|
-
Your task:
|
|
32
|
-
1. Use mcp__github__get_issue to get details of the current issue (#${{ github.event.issue.number }})
|
|
33
|
-
2. Search for similar existing issues using mcp__github__search_issues with relevant keywords from the issue title and body
|
|
34
|
-
3. Compare the new issue with existing ones to identify potential duplicates
|
|
35
|
-
|
|
36
|
-
Criteria for duplicates:
|
|
37
|
-
- Same bug or error being reported
|
|
38
|
-
- Same feature request (even if worded differently)
|
|
39
|
-
- Same question being asked
|
|
40
|
-
- Issues describing the same root problem
|
|
41
|
-
|
|
42
|
-
If you find duplicates:
|
|
43
|
-
- Add a comment on the new issue linking to the original issue(s)
|
|
44
|
-
- Apply a "duplicate" label to the new issue
|
|
45
|
-
- Be polite and explain why it's a duplicate
|
|
46
|
-
- Suggest the user follow the original issue for updates
|
|
47
|
-
|
|
48
|
-
If it's NOT a duplicate:
|
|
49
|
-
- Don't add any comments
|
|
50
|
-
- You may apply appropriate topic labels based on the issue content
|
|
51
|
-
|
|
52
|
-
Use these tools:
|
|
53
|
-
- mcp__github__get_issue: Get issue details
|
|
54
|
-
- mcp__github__search_issues: Search for similar issues
|
|
55
|
-
- mcp__github__list_issues: List recent issues if needed
|
|
56
|
-
- mcp__github__create_issue_comment: Add a comment if duplicate found
|
|
57
|
-
- mcp__github__update_issue: Add labels
|
|
58
|
-
|
|
59
|
-
Be thorough but efficient. Focus on finding true duplicates, not just similar issues.
|
|
60
|
-
|
|
61
|
-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
62
|
-
claude_args: |
|
|
63
|
-
--allowedTools "mcp__github__get_issue,mcp__github__search_issues,mcp__github__list_issues,mcp__github__create_issue_comment,mcp__github__update_issue,mcp__github__get_issue_comments"
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
name: Issue Triage
|
|
2
|
-
on:
|
|
3
|
-
issues:
|
|
4
|
-
types: [opened]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
triage-issue:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
timeout-minutes: 10
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
issues: write
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
with:
|
|
18
|
-
fetch-depth: 0
|
|
19
|
-
|
|
20
|
-
- name: Triage issue with Claude
|
|
21
|
-
uses: anthropics/claude-code-action@v1-dev
|
|
22
|
-
with:
|
|
23
|
-
prompt: |
|
|
24
|
-
You're an issue triage assistant for GitHub issues. Your task is to analyze the issue and select appropriate labels from the provided list.
|
|
25
|
-
|
|
26
|
-
IMPORTANT: Don't post any comments or messages to the issue. Your only action should be to apply labels.
|
|
27
|
-
|
|
28
|
-
Issue Information:
|
|
29
|
-
- REPO: ${{ github.repository }}
|
|
30
|
-
- ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
31
|
-
|
|
32
|
-
TASK OVERVIEW:
|
|
33
|
-
|
|
34
|
-
1. First, fetch the list of labels available in this repository by running: `gh label list`. Run exactly this command with nothing else.
|
|
35
|
-
|
|
36
|
-
2. Next, use the GitHub tools to get context about the issue:
|
|
37
|
-
- You have access to these tools:
|
|
38
|
-
- mcp__github__get_issue: Use this to retrieve the current issue's details including title, description, and existing labels
|
|
39
|
-
- mcp__github__get_issue_comments: Use this to read any discussion or additional context provided in the comments
|
|
40
|
-
- mcp__github__update_issue: Use this to apply labels to the issue (do not use this for commenting)
|
|
41
|
-
- mcp__github__search_issues: Use this to find similar issues that might provide context for proper categorization and to identify potential duplicate issues
|
|
42
|
-
- mcp__github__list_issues: Use this to understand patterns in how other issues are labeled
|
|
43
|
-
- Start by using mcp__github__get_issue to get the issue details
|
|
44
|
-
|
|
45
|
-
3. Analyze the issue content, considering:
|
|
46
|
-
- The issue title and description
|
|
47
|
-
- The type of issue (bug report, feature request, question, etc.)
|
|
48
|
-
- Technical areas mentioned
|
|
49
|
-
- Severity or priority indicators
|
|
50
|
-
- User impact
|
|
51
|
-
- Components affected
|
|
52
|
-
|
|
53
|
-
4. Select appropriate labels from the available labels list provided above:
|
|
54
|
-
- Choose labels that accurately reflect the issue's nature
|
|
55
|
-
- Be specific but comprehensive
|
|
56
|
-
- Select priority labels if you can determine urgency (high-priority, med-priority, or low-priority)
|
|
57
|
-
- Consider platform labels (android, ios) if applicable
|
|
58
|
-
- If you find similar issues using mcp__github__search_issues, consider using a "duplicate" label if appropriate. Only do so if the issue is a duplicate of another OPEN issue.
|
|
59
|
-
|
|
60
|
-
5. Apply the selected labels:
|
|
61
|
-
- Use mcp__github__update_issue to apply your selected labels
|
|
62
|
-
- DO NOT post any comments explaining your decision
|
|
63
|
-
- DO NOT communicate directly with users
|
|
64
|
-
- If no labels are clearly applicable, do not apply any labels
|
|
65
|
-
|
|
66
|
-
IMPORTANT GUIDELINES:
|
|
67
|
-
- Be thorough in your analysis
|
|
68
|
-
- Only select labels from the provided list above
|
|
69
|
-
- DO NOT post any comments to the issue
|
|
70
|
-
- Your ONLY action should be to apply labels using mcp__github__update_issue
|
|
71
|
-
- It's okay to not add any labels if none are clearly applicable
|
|
72
|
-
|
|
73
|
-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
74
|
-
claude_args: |
|
|
75
|
-
--allowedTools "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues"
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
name: Vicoa AI Assistant
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
# Trigger via repository_dispatch (from Vicoa dashboard)
|
|
5
|
-
repository_dispatch:
|
|
6
|
-
types: [vicoa-trigger]
|
|
7
|
-
|
|
8
|
-
# Direct triggers from GitHub events (for @vicoa mentions)
|
|
9
|
-
issue_comment:
|
|
10
|
-
types: [created]
|
|
11
|
-
pull_request_review_comment:
|
|
12
|
-
types: [created]
|
|
13
|
-
|
|
14
|
-
permissions:
|
|
15
|
-
contents: write
|
|
16
|
-
issues: write
|
|
17
|
-
pull-requests: write
|
|
18
|
-
actions: write
|
|
19
|
-
id-token: write # Required for OIDC
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
vicoa-assistant:
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- name: Checkout repository
|
|
27
|
-
uses: actions/checkout@v4
|
|
28
|
-
with:
|
|
29
|
-
fetch-depth: 0 # Fetch all history for all branches
|
|
30
|
-
|
|
31
|
-
- name: Setup branch from payload
|
|
32
|
-
if: github.event.client_payload.branch_name
|
|
33
|
-
run: |
|
|
34
|
-
BRANCH_NAME="${{ github.event.client_payload.branch_name }}"
|
|
35
|
-
echo "Branch requested: $BRANCH_NAME"
|
|
36
|
-
|
|
37
|
-
# Check if branch exists remotely
|
|
38
|
-
if git ls-remote --heads origin "$BRANCH_NAME" | grep -q "$BRANCH_NAME"; then
|
|
39
|
-
echo "Branch exists, checking it out..."
|
|
40
|
-
git checkout "$BRANCH_NAME"
|
|
41
|
-
else
|
|
42
|
-
echo "Branch doesn't exist, creating new branch from main..."
|
|
43
|
-
# Fetch main branch first
|
|
44
|
-
git checkout main || git checkout master || git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
|
|
45
|
-
git pull origin $(git branch --show-current)
|
|
46
|
-
# Create and checkout new branch
|
|
47
|
-
git checkout -b "$BRANCH_NAME"
|
|
48
|
-
echo "Created new branch: $BRANCH_NAME"
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
- name: Run Vicoa Claude Code Action
|
|
52
|
-
uses: vicoa-ai/vicoa/src/integrations/github/claude-code-action@main
|
|
53
|
-
with:
|
|
54
|
-
# The prompt will come from repository_dispatch payload
|
|
55
|
-
# For @vicoa mentions, the action auto-detects from comments
|
|
56
|
-
prompt: ${{ github.event.client_payload.prompt }}
|
|
57
|
-
|
|
58
|
-
# Claude configuration using new v1.0 claude_args format
|
|
59
|
-
claude_args: |
|
|
60
|
-
--max-turns 30
|
|
61
|
-
--model claude-3-5-sonnet-latest
|
|
62
|
-
|
|
63
|
-
# Override trigger phrase to use @vicoa instead of @claude
|
|
64
|
-
trigger_phrase: "@vicoa"
|
|
65
|
-
|
|
66
|
-
# Authentication for Claude
|
|
67
|
-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
68
|
-
|
|
69
|
-
env:
|
|
70
|
-
# Vicoa configuration - automatically activates Vicoa when:
|
|
71
|
-
# 1. VICOA_API_KEY is present AND
|
|
72
|
-
# 2. Either triggered by repository_dispatch OR @vicoa mention
|
|
73
|
-
VICOA_API_KEY: ${{ github.event.client_payload.vicoa_api_key || secrets.VICOA_API_KEY }}
|
|
74
|
-
VICOA_AGENT_INSTANCE_ID: ${{ github.event.client_payload.agent_instance_id || format('vicoa-{0}', github.run_id) }}
|
|
75
|
-
VICOA_AGENT_TYPE: ${{ github.event.client_payload.agent_type || 'Claude Code' }}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@anthropic-ai/claude-code-action",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"format": "prettier --write .",
|
|
7
|
-
"format:check": "prettier --check .",
|
|
8
|
-
"install-hooks": "bun run scripts/install-hooks.sh",
|
|
9
|
-
"test": "bun test",
|
|
10
|
-
"typecheck": "tsc --noEmit"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@actions/core": "^1.10.1",
|
|
14
|
-
"@actions/github": "^6.0.1",
|
|
15
|
-
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
16
|
-
"@octokit/graphql": "^8.2.2",
|
|
17
|
-
"@octokit/rest": "^21.1.1",
|
|
18
|
-
"@octokit/webhooks-types": "^7.6.1",
|
|
19
|
-
"node-fetch": "^3.3.2",
|
|
20
|
-
"shell-quote": "^1.8.3",
|
|
21
|
-
"zod": "^3.24.4"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/bun": "1.2.11",
|
|
25
|
-
"@types/node": "^20.0.0",
|
|
26
|
-
"@types/node-fetch": "^2.6.12",
|
|
27
|
-
"@types/shell-quote": "^1.7.5",
|
|
28
|
-
"prettier": "3.5.3",
|
|
29
|
-
"typescript": "^5.8.3"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
# Install git hooks
|
|
4
|
-
echo "Installing git hooks..."
|
|
5
|
-
|
|
6
|
-
# Make sure hooks directory exists
|
|
7
|
-
mkdir -p .git/hooks
|
|
8
|
-
|
|
9
|
-
# Install pre-commit hook
|
|
10
|
-
cp scripts/pre-commit .git/hooks/pre-commit
|
|
11
|
-
chmod +x .git/hooks/pre-commit
|
|
12
|
-
|
|
13
|
-
echo "Git hooks installed successfully!"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
# Check if files need formatting before push
|
|
4
|
-
echo "Checking code formatting..."
|
|
5
|
-
|
|
6
|
-
# First check if any files need formatting
|
|
7
|
-
if ! bun run format:check; then
|
|
8
|
-
echo "Code formatting errors found. Running formatter..."
|
|
9
|
-
bun run format
|
|
10
|
-
|
|
11
|
-
# Check if there are any staged changes after formatting
|
|
12
|
-
if git diff --name-only --exit-code; then
|
|
13
|
-
echo "All files are now properly formatted."
|
|
14
|
-
else
|
|
15
|
-
echo ""
|
|
16
|
-
echo "ERROR: Code has been formatted but changes need to be committed!"
|
|
17
|
-
echo "Please commit the formatted files and try again."
|
|
18
|
-
echo ""
|
|
19
|
-
echo "The following files were modified:"
|
|
20
|
-
git diff --name-only
|
|
21
|
-
echo ""
|
|
22
|
-
exit 1
|
|
23
|
-
fi
|
|
24
|
-
else
|
|
25
|
-
echo "Code formatting is already correct."
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
# Run type checking
|
|
29
|
-
echo "Running type checking..."
|
|
30
|
-
if ! bun run typecheck; then
|
|
31
|
-
echo "Type checking failed. Please fix the type errors and try again."
|
|
32
|
-
exit 1
|
|
33
|
-
else
|
|
34
|
-
echo "Type checking passed."
|
|
35
|
-
fi
|
|
36
|
-
|
|
37
|
-
# Run tests
|
|
38
|
-
echo "Running tests..."
|
|
39
|
-
if ! bun run test; then
|
|
40
|
-
echo "Tests failed. Please fix the failing tests and try again."
|
|
41
|
-
exit 1
|
|
42
|
-
else
|
|
43
|
-
echo "All tests passed."
|
|
44
|
-
fi
|
|
45
|
-
|
|
46
|
-
exit 0
|
package/bin/_internal/integrations/github/claude-code-action/scripts/setup-network-restrictions.sh
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Setup Network Restrictions with Squid Proxy
|
|
4
|
-
# This script sets up a Squid proxy to restrict network access to whitelisted domains only.
|
|
5
|
-
|
|
6
|
-
set -e
|
|
7
|
-
|
|
8
|
-
# Check if experimental_allowed_domains is provided
|
|
9
|
-
if [ -z "$EXPERIMENTAL_ALLOWED_DOMAINS" ]; then
|
|
10
|
-
echo "ERROR: EXPERIMENTAL_ALLOWED_DOMAINS environment variable is required"
|
|
11
|
-
exit 1
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
# Check required environment variables
|
|
15
|
-
if [ -z "$RUNNER_TEMP" ]; then
|
|
16
|
-
echo "ERROR: RUNNER_TEMP environment variable is required"
|
|
17
|
-
exit 1
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
if [ -z "$GITHUB_ENV" ]; then
|
|
21
|
-
echo "ERROR: GITHUB_ENV environment variable is required"
|
|
22
|
-
exit 1
|
|
23
|
-
fi
|
|
24
|
-
|
|
25
|
-
echo "Setting up network restrictions with Squid proxy..."
|
|
26
|
-
|
|
27
|
-
SQUID_START_TIME=$(date +%s.%N)
|
|
28
|
-
|
|
29
|
-
# Create whitelist file
|
|
30
|
-
echo "$EXPERIMENTAL_ALLOWED_DOMAINS" > $RUNNER_TEMP/whitelist.txt
|
|
31
|
-
|
|
32
|
-
# Ensure each domain has proper format
|
|
33
|
-
# If domain doesn't start with a dot and isn't an IP, add the dot for subdomain matching
|
|
34
|
-
mv $RUNNER_TEMP/whitelist.txt $RUNNER_TEMP/whitelist.txt.orig
|
|
35
|
-
while IFS= read -r domain; do
|
|
36
|
-
if [ -n "$domain" ]; then
|
|
37
|
-
# Trim whitespace
|
|
38
|
-
domain=$(echo "$domain" | xargs)
|
|
39
|
-
# If it's not empty and doesn't start with a dot, add one
|
|
40
|
-
if [[ "$domain" != .* ]] && [[ ! "$domain" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
41
|
-
echo ".$domain" >> $RUNNER_TEMP/whitelist.txt
|
|
42
|
-
else
|
|
43
|
-
echo "$domain" >> $RUNNER_TEMP/whitelist.txt
|
|
44
|
-
fi
|
|
45
|
-
fi
|
|
46
|
-
done < $RUNNER_TEMP/whitelist.txt.orig
|
|
47
|
-
|
|
48
|
-
# Create Squid config with whitelist
|
|
49
|
-
echo "http_port 3128" > $RUNNER_TEMP/squid.conf
|
|
50
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
51
|
-
echo "# Define ACLs" >> $RUNNER_TEMP/squid.conf
|
|
52
|
-
echo "acl whitelist dstdomain \"/etc/squid/whitelist.txt\"" >> $RUNNER_TEMP/squid.conf
|
|
53
|
-
echo "acl localnet src 127.0.0.1/32" >> $RUNNER_TEMP/squid.conf
|
|
54
|
-
echo "acl localnet src 172.17.0.0/16" >> $RUNNER_TEMP/squid.conf
|
|
55
|
-
echo "acl SSL_ports port 443" >> $RUNNER_TEMP/squid.conf
|
|
56
|
-
echo "acl Safe_ports port 80" >> $RUNNER_TEMP/squid.conf
|
|
57
|
-
echo "acl Safe_ports port 443" >> $RUNNER_TEMP/squid.conf
|
|
58
|
-
echo "acl CONNECT method CONNECT" >> $RUNNER_TEMP/squid.conf
|
|
59
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
60
|
-
echo "# Deny requests to certain unsafe ports" >> $RUNNER_TEMP/squid.conf
|
|
61
|
-
echo "http_access deny !Safe_ports" >> $RUNNER_TEMP/squid.conf
|
|
62
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
63
|
-
echo "# Only allow CONNECT to SSL ports" >> $RUNNER_TEMP/squid.conf
|
|
64
|
-
echo "http_access deny CONNECT !SSL_ports" >> $RUNNER_TEMP/squid.conf
|
|
65
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
66
|
-
echo "# Allow localhost" >> $RUNNER_TEMP/squid.conf
|
|
67
|
-
echo "http_access allow localhost" >> $RUNNER_TEMP/squid.conf
|
|
68
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
69
|
-
echo "# Allow localnet access to whitelisted domains" >> $RUNNER_TEMP/squid.conf
|
|
70
|
-
echo "http_access allow localnet whitelist" >> $RUNNER_TEMP/squid.conf
|
|
71
|
-
echo "" >> $RUNNER_TEMP/squid.conf
|
|
72
|
-
echo "# Deny everything else" >> $RUNNER_TEMP/squid.conf
|
|
73
|
-
echo "http_access deny all" >> $RUNNER_TEMP/squid.conf
|
|
74
|
-
|
|
75
|
-
echo "Starting Squid proxy..."
|
|
76
|
-
# First, remove any existing container
|
|
77
|
-
sudo docker rm -f squid-proxy 2>/dev/null || true
|
|
78
|
-
|
|
79
|
-
# Ensure whitelist file is not empty (Squid fails with empty files)
|
|
80
|
-
if [ ! -s "$RUNNER_TEMP/whitelist.txt" ]; then
|
|
81
|
-
echo "WARNING: Whitelist file is empty, adding a dummy entry"
|
|
82
|
-
echo ".example.com" >> $RUNNER_TEMP/whitelist.txt
|
|
83
|
-
fi
|
|
84
|
-
|
|
85
|
-
# Use sudo to prevent Claude from stopping the container
|
|
86
|
-
CONTAINER_ID=$(sudo docker run -d \
|
|
87
|
-
--name squid-proxy \
|
|
88
|
-
-p 127.0.0.1:3128:3128 \
|
|
89
|
-
-v $RUNNER_TEMP/squid.conf:/etc/squid/squid.conf:ro \
|
|
90
|
-
-v $RUNNER_TEMP/whitelist.txt:/etc/squid/whitelist.txt:ro \
|
|
91
|
-
ubuntu/squid:latest 2>&1) || {
|
|
92
|
-
echo "ERROR: Failed to start Squid container"
|
|
93
|
-
exit 1
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
# Wait for proxy to be ready (usually < 1 second)
|
|
97
|
-
READY=false
|
|
98
|
-
for i in {1..30}; do
|
|
99
|
-
if nc -z 127.0.0.1 3128 2>/dev/null; then
|
|
100
|
-
TOTAL_TIME=$(echo "scale=3; $(date +%s.%N) - $SQUID_START_TIME" | bc)
|
|
101
|
-
echo "Squid proxy ready in ${TOTAL_TIME}s"
|
|
102
|
-
READY=true
|
|
103
|
-
break
|
|
104
|
-
fi
|
|
105
|
-
sleep 0.1
|
|
106
|
-
done
|
|
107
|
-
|
|
108
|
-
if [ "$READY" != "true" ]; then
|
|
109
|
-
echo "ERROR: Squid proxy failed to start within 3 seconds"
|
|
110
|
-
echo "Container logs:"
|
|
111
|
-
sudo docker logs squid-proxy 2>&1 || true
|
|
112
|
-
echo "Container status:"
|
|
113
|
-
sudo docker ps -a | grep squid-proxy || true
|
|
114
|
-
exit 1
|
|
115
|
-
fi
|
|
116
|
-
|
|
117
|
-
# Set proxy environment variables
|
|
118
|
-
echo "http_proxy=http://127.0.0.1:3128" >> $GITHUB_ENV
|
|
119
|
-
echo "https_proxy=http://127.0.0.1:3128" >> $GITHUB_ENV
|
|
120
|
-
echo "HTTP_PROXY=http://127.0.0.1:3128" >> $GITHUB_ENV
|
|
121
|
-
echo "HTTPS_PROXY=http://127.0.0.1:3128" >> $GITHUB_ENV
|
|
122
|
-
|
|
123
|
-
echo "Network restrictions setup completed successfully"
|