fix: add missing .describe() annotations and subpath exports for cloud/qa/identity/shared#687
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…d, qa, identity, shared modules Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR completes the build infrastructure and documentation for the @objectstack/spec package by adding missing tsup entry points, package.json subpath exports, and Zod .describe() annotations.
Changes:
- Added 4 missing tsup entry points (cloud, qa, identity, shared) to enable proper module bundling
- Added 4 corresponding package.json subpath exports to enable imports like
@objectstack/spec/cloud - Added
.describe()annotations to 8 previously undocumented Zod schema fields for JSON Schema generation
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/spec/tsup.config.ts | Added entry points for cloud, qa, identity, and shared modules to complete the build configuration |
| packages/spec/package.json | Added subpath exports for cloud, qa, identity, and shared to enable modular imports |
| packages/spec/src/data/field.zod.ts | Added .describe() annotations to 3 summaryOperations fields (object, field, function) for documentation |
| packages/spec/src/data/object.zod.ts | Added .describe() annotations to 5 ObjectExtensionSchema fields (label, pluralLabel, description, validations, indexes) for documentation |
Copilot
AI
changed the title
[WIP] Send a patch to improve functionality
fix: add missing .describe() annotations and subpath exports for cloud/qa/identity/shared
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eight Zod fields lacked
.describe()annotations, and four modules exported from root were missing build entry points and subpath exports.Missing
.describe()annotationsfield.zod.ts—summaryOperations.object,.field,.functionobject.zod.ts—ObjectExtensionSchema.label,.pluralLabel,.description,.validations,.indexesMissing subpath exports
cloud,qa,identity,sharedwere namespace-exported fromsrc/index.tsbut absent fromtsup.config.tsentry points andpackage.jsonexports map. This meant they were bundled into the root chunk only — no standalone subpath import was possible.All 5,376 tests pass. Build produces correct output for all 16 entry points.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.