Skip to content

Add comprehensive README documentation for all sub-packages#129

Merged
huangyiirene merged 3 commits intomainfrom
copilot/update-readme-with-subpackages
Jan 18, 2026
Merged

Add comprehensive README documentation for all sub-packages#129
huangyiirene merged 3 commits intomainfrom
copilot/update-readme-with-subpackages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 18, 2026

The monorepo lacked documentation coverage for the @objectql/platform-node package and the main README's architecture section needed reorganization to surface all 15 packages clearly.

Changes

Created missing package documentation:

  • Added comprehensive README for @objectql/platform-node covering file system metadata loading, plugin system, and module discovery

Restructured main README architecture section:

  • Organized packages into 4 architectural layers (Foundation, Driver, Runtime, Tools)
  • Added all 8 driver packages (previously only showed 4)
  • Added hyperlinks to each package's README
  • Updated package descriptions for accuracy

Coverage:

  • 15/15 packages now documented
  • Foundation: types, core, platform-node
  • Drivers: sql, mongo, memory, localstorage, fs, excel, redis, sdk
  • Runtime: server
  • Tools: cli, create, vscode-objectql

The architecture section now provides a complete navigable map of the monorepo structure.

Original prompt

更新 readme,包括每个子软件包


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 18, 2026 03:19
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates documentation across the ObjectQL monorepo by creating a comprehensive README for @objectql/platform-node and reorganizing the main README's architecture section with improved structure and navigation.

Changes:

  • Created a complete 501-line README for @objectql/platform-node with API documentation, examples, and best practices
  • Reorganized main README architecture into four logical layers (Foundation, Driver, Runtime, Tools) with hyperlinks to package READMEs
  • Expanded package listings from 8 to 15 packages with consistent descriptions

Reviewed changes

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

File Description
packages/foundation/platform-node/README.md New comprehensive documentation for Node.js platform utilities package
README.md Restructured architecture section with categorized layers and expanded package listings


- Match file names to object names: `user.object.yml` for object "user"
- Use singular names: `project`, not `projects`
- Use lowercase with underscores: `project_task`, not `ProjectTask`
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The naming convention guidance contradicts ObjectQL's standard practice. Based on the codebase context, ObjectQL object names should use snake_case (lowercase with underscores), which is correctly stated. However, the example should clarify that this applies to object names in YAML files, not TypeScript class names which typically use PascalCase.

Copilot generated this review using guidance from repository custom instructions.
Create custom handlers for specialized file types:

```typescript
import { LoaderPlugin } from '@objectql/types';
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

According to the architectural rules in the coding guidelines, @objectql/types should contain pure TypeScript interfaces, enums, and custom errors with zero dependencies. Verify that LoaderPlugin interface actually exists in @objectql/types. Based on the architecture, platform-specific types like LoaderPlugin might belong in @objectql/platform-node instead, as it's specific to the Node.js file system loading implementation.

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +450 to +455
import {
ObjectLoader,
LoaderPlugin,
LoaderHandlerContext,
loadPlugin
} from '@objectql/platform-node';
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

This import example shows LoaderPlugin and LoaderHandlerContext being imported from @objectql/platform-node, which contradicts line 258 that imports LoaderPlugin from @objectql/types. Ensure consistent import sources throughout the documentation. Based on the architecture guidelines, these platform-specific types should come from @objectql/platform-node.

Copilot generated this review using guidance from repository custom instructions.
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ No Changeset Found

This PR does not include a changeset file.
If this PR includes user-facing changes, please add a changeset by running:

pnpm changeset

Copilot AI changed the title [WIP] Update README to include subpackage information Add comprehensive README documentation for all sub-packages Jan 18, 2026
Copilot AI requested a review from huangyiirene January 18, 2026 03:22
@huangyiirene huangyiirene marked this pull request as ready for review January 18, 2026 03:39
@huangyiirene huangyiirene merged commit c4e2df1 into main Jan 18, 2026
8 checks passed
@huangyiirene huangyiirene deleted the copilot/update-readme-with-subpackages branch January 18, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants