Skip to content

feat(co-build): new CoBuild package - #419

Merged
Hanssen0 merged 1 commit into
ckb-devrel:next-majorfrom
Hanssen0:feat/co-build
Jul 3, 2026
Merged

Hanssen0 merged 1 commit into
ckb-devrel:next-majorfrom
Hanssen0:feat/co-build

Conversation

@Hanssen0

@Hanssen0 Hanssen0 commented Jul 1, 2026

Copy link
Copy Markdown
Member

@changeset-bot

changeset-bot Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 81ca371

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@ckb-ccc/core Patch
@ckb-ccc/co-build Minor
@ckb-ccc/did-ckb Patch
@ckb-ccc/eip6963 Patch
@ckb-ccc/joy-id Patch
@ckb-ccc/lumos-patches Patch
@ckb-ccc/nip07 Patch
@ckb-ccc/okx Patch
@ckb-ccc/rei Patch
@ckb-ccc/shell Patch
@ckb-ccc/spore Patch
@ckb-ccc/ssri Patch
@ckb-ccc/type-id Patch
@ckb-ccc/udt Patch
@ckb-ccc/uni-sat Patch
@ckb-ccc/utxo-global Patch
@ckb-ccc/xverse Patch
@ckb-ccc/ccc Patch
ckb-ccc Patch
@ckb-ccc/connector Patch
@ckb-ccc/connector-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Hanssen0
Hanssen0 marked this pull request as ready for review July 1, 2026 00:57
Copilot AI review requested due to automatic review settings July 1, 2026 00:57
@netlify

netlify Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for liveccc ready!

Name Link
🔨 Latest commit 81ca371
🔍 Latest deploy log https://app.netlify.com/projects/liveccc/deploys/6a477acf3306d80008ef1787
😎 Deploy Preview https://deploy-preview-419--liveccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 39 (🟢 up 1 from production)
Accessibility: 88 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for apiccc ready!

Name Link
🔨 Latest commit 81ca371
🔍 Latest deploy log https://app.netlify.com/projects/apiccc/deploys/6a477acf2ff1d000080ec2e2
😎 Deploy Preview https://deploy-preview-419--apiccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 95 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsccc ready!

Name Link
🔨 Latest commit 81ca371
🔍 Latest deploy log https://app.netlify.com/projects/docsccc/deploys/6a477ad09028d5000896fd19
😎 Deploy Preview https://deploy-preview-419--docsccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🔴 down 13 from production)
Accessibility: 95 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 75 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for appccc ready!

Name Link
🔨 Latest commit 81ca371
🔍 Latest deploy log https://app.netlify.com/projects/appccc/deploys/6a477ad07218a80008adb3b9
😎 Deploy Preview https://deploy-preview-419--appccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 66 (🔴 down 16 from production)
Accessibility: 89 (🟢 up 1 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new @ckb-ccc/co-build workspace package implementing CoBuild protocol helpers/codecs, and wires it into the monorepo (tests and @ckb-ccc/shell exports).

Changes:

  • Added the new packages/co-build package (codecs, CoBuild helpers, build/lint/docs config, and tests).
  • Exposed coBuild via @ckb-ccc/shell and added the workspace dependency.
  • Registered the package in the root Vitest multi-project config and updated the lockfile accordingly.

Reviewed changes

Copilot reviewed 21 out of 23 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
vitest.config.mts Adds packages/co-build to the Vitest projects list.
pnpm-lock.yaml Adds the new workspace importer and updates dependency snapshots.
packages/shell/src/barrel.ts Re-exports coBuild from the new package.
packages/shell/package.json Adds @ckb-ccc/co-build as a workspace dependency.
packages/co-build/package.json Defines package metadata, exports, scripts, deps.
packages/co-build/README.md Documents the new package and usage example.
packages/co-build/src/index.ts Package entrypoint export(s).
packages/co-build/src/barrel.ts Barrel re-exports of public APIs.
packages/co-build/src/coBuild.ts Core CoBuild helpers: parse/manipulate/append/find + CoBuild class.
packages/co-build/src/coBuild.test.ts Adds tests for CoBuild behavior.
packages/co-build/src/codec/index.ts Codec entrypoint exports.
packages/co-build/src/codec/buildingPacket.ts CoBuild Molecule codecs for actions/messages/script info.
packages/co-build/src/codec/witnessLayout.ts Witness layout codec and SighashAll representation.
packages/co-build/tsdown.config.mts Build configuration for ESM/CJS outputs and DTS.
packages/co-build/tsconfig.json TypeScript configuration for the new package.
packages/co-build/eslint.config.mjs Package-local ESLint configuration.
packages/co-build/prettier.config.cjs Package-local Prettier configuration.
packages/co-build/.prettierignore Prettier ignore rules for build artifacts/config.
packages/co-build/.npmignore NPM publish ignore rules.
packages/co-build/typedoc.json Typedoc config for the new package.
packages/co-build/misc/basedirs/dist/package.json Sets ESM type for dist output.
packages/co-build/misc/basedirs/dist.commonjs/package.json Sets CJS type for commonjs dist output.
.changeset/odd-experts-win.md Changeset announcing the new package (minor bump).
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/co-build/src/index.ts
Comment thread packages/co-build/package.json
Comment thread packages/co-build/src/coBuild.ts
Comment thread packages/co-build/src/coBuild.ts Outdated
Comment thread packages/co-build/src/coBuild.ts
@Hanssen0
Hanssen0 force-pushed the feat/co-build branch 2 times, most recently from 08704cd to e48172e Compare July 1, 2026 01:09
@Hanssen0
Hanssen0 requested a review from Copilot July 1, 2026 01:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 25 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/co-build/package.json
Comment thread packages/co-build/package.json Outdated
Comment thread packages/co-build/README.md
Comment thread packages/co-build/src/coBuild.ts Outdated
@Hanssen0
Hanssen0 force-pushed the feat/co-build branch 2 times, most recently from 93203b5 to 698d3e5 Compare July 1, 2026 02:06
@Hanssen0
Hanssen0 requested a review from Copilot July 1, 2026 02:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 25 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/core/src/ckb/transaction.ts Outdated
Comment thread packages/co-build/typedoc.json
Comment thread packages/core/src/ckb/transaction.ts Outdated
@Hanssen0
Hanssen0 force-pushed the feat/co-build branch 2 times, most recently from bfc1b42 to 21f23d9 Compare July 1, 2026 03:43
@Hanssen0
Hanssen0 requested a review from Copilot July 1, 2026 03:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/co-build/src/coBuild.ts
Comment thread packages/co-build/src/coBuild.ts
Comment thread packages/co-build/README.md
Comment thread packages/co-build/typedoc.json
@Hanssen0
Hanssen0 changed the base branch from dev to next-major July 3, 2026 06:42
@Hanssen0
Hanssen0 force-pushed the feat/co-build branch 2 times, most recently from a648388 to 8e68462 Compare July 3, 2026 08:56
@Hanssen0
Hanssen0 requested a review from Copilot July 3, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/co-build/src/codec/buildingPacket.ts
Comment thread packages/co-build/src/codec/witnessLayout.ts
Comment thread packages/co-build/typedoc.json
@Hanssen0
Hanssen0 merged commit 1fb30be into ckb-devrel:next-major Jul 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants