mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
6d5465acd3
This PR: - activates the descriptor-seam rule group: `commands/command-introspection.ts` becomes the only module allowed to import `CommandDescriptor`/`Usage` from `@effect/cli` — the redesign seam the Effect CLI v4 migration will reimplement - routes root command assembly, preflight parsing, help routing, and value-option collection through the seam helpers instead of descriptor walks - replaces the Zod-backed tool-input adapter with an internal `@composio/json-schema-to-effect-schema` compiler backed by the eval-free `@cfworker/json-schema` interpreter - normalizes the OpenAPI and Composio extensions accepted by the previous validator, while preserving typed `ToolInputValidationError` failures, field paths, multi-error reporting, and typo suggestions - extends the descriptor and Zod boundaries to reject static imports, dynamic `import()`, and `require()` bypasses - adds compiler parity tests plus CLI regression coverage for multiple simultaneous field and unknown-key failures - introspection tests pin that the helpers yield identical descriptors and usage strings --- **Stack** (re-slice of https://github.com/ComposioHQ/composio/pull/3859; each PR targets its parent and auto-retargets to `next` as parents merge): 1. https://github.com/ComposioHQ/composio/pull/3877 — guidelines + inert rule groups 2. https://github.com/ComposioHQ/composio/pull/3878 — `new Function()` eval security fix 3. https://github.com/ComposioHQ/composio/pull/3879 — behavioral fix pack 4. https://github.com/ComposioHQ/composio/pull/3880 — platform-imports rule + migration 5. https://github.com/ComposioHQ/composio/pull/3881 — terminal-streams rule + TerminalUI boundary 6. https://github.com/ComposioHQ/composio/pull/3882 — descriptor seam + Zod→Schema ← **this PR** 7. https://github.com/ComposioHQ/composio/pull/3883 — test-tree lint + deterministic suites 8. https://github.com/ComposioHQ/composio/pull/3884 — typed error boundaries + v4 seams 9. https://github.com/ComposioHQ/composio/pull/3885 — try/catch+env ban + boundary ratchet On stacked bases CI runs lint/build and the CLI Docker e2e job; unit tests and typecheck are verified locally per PR and re-verified by full CI when each PR is retargeted to `next`.
113 lines
4.4 KiB
JSON
113 lines
4.4 KiB
JSON
{
|
|
"name": "composio",
|
|
"version": "0.10.0-alpha.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"packageManager": "pnpm@11.8.0",
|
|
"description": "",
|
|
"workspaces": [
|
|
"ts/packages/core",
|
|
"ts/packages/experimental",
|
|
"ts/packages/slim",
|
|
"ts/packages/json-schema-to-effect-schema",
|
|
"ts/packages/json-schema-to-zod",
|
|
"ts/packages/cli",
|
|
"ts/packages/cli-keyring",
|
|
"ts/packages/cli-local-tools",
|
|
"ts/packages/ts-builders",
|
|
"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 && pnpm run test:release-workflow && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples",
|
|
"test:install-sh": "bash test/install-sh-release-resolution.test.sh",
|
|
"test:release-workflow": "bun run test/release-workflow.test.ts",
|
|
"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/**",
|
|
"typecheck:examples": "turbo typecheck --filter='./ts/examples/*'",
|
|
"lint:examples": "turbo lint --filter='./ts/examples/*'",
|
|
"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",
|
|
"validate:agent-skills": "node ts/scripts/validate-agent-skills.mjs",
|
|
"validate:changesets": "node ts/scripts/validate-changesets.mjs",
|
|
"validate:skill-routing": "node ts/scripts/test-skill-routing.mjs",
|
|
"prepublish": "pnpm run build:packages",
|
|
"changeset": "changeset",
|
|
"changeset:version": "changeset version",
|
|
"changeset:release": "bash ts/scripts/changeset-release.sh",
|
|
"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"
|
|
},
|
|
"devEngines": {
|
|
"runtime": {
|
|
"name": "node",
|
|
"version": ">=24.17.0 <25",
|
|
"onFail": "warn"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "catalog:",
|
|
"@changesets/cli": "^2.31.0",
|
|
"@changesets/read": "^0.6.7",
|
|
"@composio/anthropic": "workspace:*",
|
|
"@composio/cli-local-tools": "workspace:*",
|
|
"@composio/core": "workspace:*",
|
|
"@composio/openai": "workspace:*",
|
|
"@types/bun": "catalog:",
|
|
"@types/node": "^26.1.0",
|
|
"@typescript/native-preview": "catalog:",
|
|
"@vitest/ui": "catalog:",
|
|
"eslint": "^9.39.4",
|
|
"globals": "^17.7.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^17.0.8",
|
|
"prettier": "^3.9.4",
|
|
"publint": "catalog:",
|
|
"semver": "^7.8.5",
|
|
"tsdown": "catalog:",
|
|
"tsx": "catalog:",
|
|
"turbo": "^2.10.4",
|
|
"typescript": "catalog:",
|
|
"typescript-eslint": "^8.63.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"
|
|
]
|
|
}
|
|
}
|