Files
composiohq__composio/package.json
T
Rahul Tarak 99324d5a0d fix(install): resolve latest CLI release from assets (#3411)
## Summary
- Resolve the default CLI install version from GitHub Releases instead
of git tags.
- Require the selected CLI release to include the current platform
archive asset and fall back to older stable CLI releases when the newest
release is missing that asset.
- Add a mocked install.sh regression test covering missing release
assets, ignored beta/provider releases, and tag-only versions with no
release.

## Tests
- `bash -n install.sh test/install-sh-release-resolution.test.sh`
- `pnpm run test:install-sh`
- `git diff --check`
- Parsed `.github/workflows/cli.test-installation.yml` with Ruby YAML
- Parsed `package.json` with Node JSON.parse
- Manual real install smoke test with temporary
HOME/COMPOSIO_INSTALL_DIR selected `@composio/cli@0.2.28`

## Notes
- This prevents the install health check from selecting tag-only
versions like `@composio/cli@0.2.29` when no GitHub release/asset exists
yet.
2026-05-12 13:36:41 -07:00

93 lines
3.7 KiB
JSON

{
"name": "composio",
"version": "0.10.0-alpha.1",
"private": true,
"description": "",
"workspaces": [
"ts/packages/core",
"ts/packages/json-schema-to-zod",
"ts/packages/cli",
"ts/packages/cli-keyring",
"ts/packages/cli-local-tools",
"ts/packages/providers/*"
],
"scripts": {
"build": "turbo build",
"build:binary": "turbo build:binary --filter=./ts/packages/cli",
"build:binary:all": "turbo build:binary:all --filter=./ts/packages/cli",
"build:binary:checksums": "turbo build:binary:checksums --filter=./ts/packages/cli",
"install:binary": "turbo install:binary --filter=./ts/packages/cli",
"build:packages": "turbo build --filter=./ts/packages/**",
"cli:record": "turbo run record --filter=./ts/packages/cli",
"record": "turbo run record",
"test": "pnpm run test:install-sh && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples",
"test:install-sh": "bash test/install-sh-release-resolution.test.sh",
"test:examples": "tsx ts/scripts/validate-examples.ts",
"test:e2e": "turbo test:e2e --filter='@e2e-tests/*'",
"test:e2e:node": "turbo test:e2e:node --filter='@e2e-tests/node-*'",
"test:e2e:deno": "turbo test:e2e:deno --filter='@e2e-tests/deno-*'",
"test:e2e:cli": "turbo test:e2e:cli --filter='@e2e-tests/cli-*'",
"test:e2e:cloudflare": "turbo test:e2e:cloudflare --filter='@e2e-tests/cf-*'",
"test:ui": "vitest --ui",
"typecheck": "turbo typecheck --filter=./ts/packages/**",
"typecheck:tsc": "turbo typecheck:tsc --filter=./ts/packages/**",
"lint": "eslint ts/packages --ext .ts,.tsx",
"lint:packages": "eslint ts/packages --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"lint:fix:packages": "eslint ts/packages --ext .ts,.tsx --fix",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"preinstall": "./ts/scripts/pre-install.sh",
"prepare": "husky",
"create:provider": "bash ts/scripts/create-provider.sh",
"create:example": "bash ts/scripts/create-example.sh",
"check:peer-deps": "tsx ts/scripts/check-peer-deps.ts",
"update:peer-deps": "tsx ts/scripts/update-peer-deps.ts",
"prepublish": "pnpm run build:packages",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:release": "pnpm run build:packages && changeset publish",
"changeset:pre-enter": "changeset pre enter",
"changeset:pre-exit": "changeset pre exit",
"clean": "git clean -xdf .turbo node_modules ts/packages/**/.turbo ts/packages/**/node_modules ts/packages/**/dist",
"clean:workspace": "pnpm turbo clean"
},
"packageManager": "pnpm@10.28.2",
"devDependencies": {
"@arethetypeswrong/cli": "catalog:",
"@changesets/cli": "^2.29.8",
"@composio/anthropic": "workspace:*",
"@composio/cli-local-tools": "workspace:*",
"@composio/core": "workspace:*",
"@composio/openai": "workspace:*",
"@types/bun": "^1.3.6",
"@types/node": "^22.15.18",
"@typescript/native-preview": "catalog:",
"@vitest/ui": "^3.1.4",
"eslint": "^9.25.1",
"globals": "^16.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.5.1",
"prettier": "^3.5.3",
"publint": "catalog:",
"semver": "^7.7.2",
"tsdown": "catalog:",
"tsx": "catalog:",
"turbo": "^2.8.11",
"typescript-eslint": "^8.31.0",
"vitest": "catalog:",
"zod": "catalog:"
},
"lint-staged": {
"ts/packages/**/*.{ts,tsx}": [
"eslint --fix"
],
"ts/packages/**/*.{ts,tsx,js,jsx,json,md}": [
"prettier --write"
],
"python/**/*.py": [
"ruff check --fix --config python/config/ruff.toml",
"ruff format --config python/config/ruff.toml"
]
}
}