Skip to content

Commit 7f3d3f3

Browse files
authored
chore: add package repository metadata (#32)
## What is this? This PR fills in missing npm package metadata for the published agent-cdp packages. Package consumers now get consistent GitHub repository, issue tracker, README, and license metadata across the CLI, SDK, and shared protocol packages. ## How does it work? The CLI package keeps its existing GitHub repository metadata and now declares its monorepo package directory. The `@agent-cdp/sdk` and `@agent-cdp/protocol` manifests now declare the canonical GitHub repository, package-specific directories, shared issue tracker, package README homepages, and MIT license metadata. Backward compatibility: this only adds package metadata. Existing commands, flags, exports, files, build output, daemon behavior, and runtime workflows remain unchanged. ## Why is this useful? Reviewers and package consumers can navigate from each published package to the right source directory, issues, README, and license without guessing how the monorepo is laid out. Risks: the change is low risk because it does not affect runtime code or package entry points. The main compatibility assumption is that `callstackincubator/agent-cdp` and the `master` branch remain the canonical GitHub locations for these packages. Manual testing: from a clean checkout on `chore/package-github-metadata`, run `node -e "for (const file of ['packages/agent-cdp/package.json','packages/sdk/package.json','packages/protocol/package.json']) JSON.parse(require('fs').readFileSync(file, 'utf8')); console.log('package manifests are valid JSON')"` and `CI=true pnpm build`. Verify the manifests parse successfully and all package builds complete.
1 parent facfd24 commit 7f3d3f3

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

packages/agent-cdp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "module",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/callstackincubator/agent-cdp.git"
8+
"url": "git+https://github.com/callstackincubator/agent-cdp.git",
9+
"directory": "packages/agent-cdp"
910
},
1011
"bugs": {
1112
"url": "https://github.com/callstackincubator/agent-cdp/issues"

packages/protocol/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"version": "1.6.0",
44
"description": "Shared protocol types for agent-cdp daemon, CLI, and SDK integrations.",
55
"type": "module",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/callstackincubator/agent-cdp.git",
9+
"directory": "packages/protocol"
10+
},
11+
"bugs": {
12+
"url": "https://github.com/callstackincubator/agent-cdp/issues"
13+
},
14+
"homepage": "https://github.com/callstackincubator/agent-cdp/tree/master/packages/protocol#readme",
15+
"license": "MIT",
616
"types": "./src/index.ts",
717
"react-native": "./src/index.ts",
818
"exports": {

packages/sdk/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"version": "1.6.0",
44
"description": "Programmatic SDK for agent-cdp runtime integrations.",
55
"type": "module",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/callstackincubator/agent-cdp.git",
9+
"directory": "packages/sdk"
10+
},
11+
"bugs": {
12+
"url": "https://github.com/callstackincubator/agent-cdp/issues"
13+
},
14+
"homepage": "https://github.com/callstackincubator/agent-cdp/tree/master/packages/sdk#readme",
15+
"license": "MIT",
616
"types": "./src/index.ts",
717
"react-native": "./src/index.ts",
818
"exports": {

0 commit comments

Comments
 (0)