mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
b8b35b736c
Five packages publish to npm with no `license` field, so registry metadata and automated license scanners report them as **Unknown**: ``` @copilotkit/agentcore-runner published=1.68.1 license=<NONE> @copilotkit/core published=1.68.1 license=<NONE> @copilotkit/sqlite-runner published=1.68.1 license=<NONE> @copilotkit/voice published=1.68.1 license=<NONE> @copilotkit/web-inspector published=1.68.1 license=<NONE> ``` The repo is MIT (see `LICENSE`) and every other published `@copilotkit/*` package already declares it — these five were simply missed. This adds `"license": "MIT"` to each, positioned before `"repository"` to match the sibling packages. ## Why Reported downstream in #2860, where a corporate procurement scan refused packages whose license it could not resolve. That class of scanner reads the `license` field from registry metadata; a `LICENSE` file in the repo is not enough, and these packages ship no `LICENSE` file either. **Correcting the record on that issue while I am here:** the `@ag-ui/*` packages named in the original report are *not* affected. Every version the reporter’s scanner flagged already carries `"license": "MIT"`: ``` @ag-ui/client@0.0.42 MIT @ag-ui/core@0.0.37 MIT @ag-ui/core@0.0.42 MIT @ag-ui/encoder@0.0.42 MIT @ag-ui/langgraph@0.0.20 MIT @ag-ui/proto@0.0.42 MIT ``` `@ag-ui/core` has declared MIT since at least 0.0.35. An earlier triage note on #2860 attributed the failure to a missing SPDX field upstream; that was wrong, and why their scanner reported `Unknown` for `@ag-ui/*` is still unexplained. This PR fixes the part that is genuinely defective on our side. ## Testing Metadata-only; no source, build, or runtime change. - Confirmed the five missing fields against the live registry with `npm view <pkg> license` (output above), and confirmed the other published `@copilotkit/*` packages (`runtime`, `react-core`, `react-ui`, `shared`, `sdk-js`, `angular`, `channels`, `channels-core`) already report `MIT`. - Enumerated every non-private `packages/*/package.json` on `origin/main` to confirm these five are the complete set missing the field. - Each edited file re-parsed with `json.load` and reports `MIT`. - The `sync-lockfile` pre-commit hook resolved all 71 workspace projects against the edited manifests without error. Placement matches `packages/shared/package.json`, where `"license"` immediately precedes `"repository"`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"name": "@copilotkit/core",
|
|
"version": "1.69.3",
|
|
"description": "Core web utilities for CopilotKit2",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/CopilotKit/CopilotKit.git"
|
|
},
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.cts",
|
|
"unpkg": "./dist/index.umd.js",
|
|
"jsdelivr": "./dist/index.umd.js",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.cjs"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsdown",
|
|
"size": "size-limit",
|
|
"compat-check": "es-check es2022 --module 'dist/**/!(*.umd).{mjs,cjs,js}' && es-check es2018 'dist/**/*.umd.js'",
|
|
"dev": "tsdown --watch",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"publint": "publint .",
|
|
"attw": "attw --pack . --profile node16"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "0.0.57",
|
|
"@copilotkit/shared": "workspace:*",
|
|
"@tanstack/pacer": "^0.20.1",
|
|
"phoenix": "^1.8.4",
|
|
"rxjs": "7.8.1",
|
|
"zod-to-json-schema": "^3.24.6"
|
|
},
|
|
"devDependencies": {
|
|
"@copilotkit/typescript-config": "workspace:*",
|
|
"@types/node": "^22.15.3",
|
|
"@types/phoenix": "^1.6.6",
|
|
"@valibot/to-json-schema": "^1.5.0",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"arktype": "^2.1.29",
|
|
"cross-env": "^10.1.0",
|
|
"tsdown": "^0.20.3",
|
|
"typescript": "5.8.2",
|
|
"valibot": "^1.2.0",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.25.75"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|