Skip to content

Fix protocol method signatures in plugin-hono-server and plugin-msw - #413

Merged
hotlong merged 2 commits into
mainfrom
copilot/update-action-step-in-job
Jan 31, 2026
Merged

hotlong merged 2 commits into
mainfrom
copilot/update-action-step-in-job

Conversation

Copilot AI commented Jan 31, 2026 •

Copy link
Copy Markdown
Contributor

Protocol interface changed from individual parameters to structured request objects in recent refactor. Plugins were still using old signatures.

Changes

Updated protocol method calls to use object parameters:

Before:

await p.findData(object, query);
await p.getData(object, id);
await p.createData(object, data);
await p.getMetaItems(type);

After:

await p.findData({ object, query });
await p.getData({ object, id });
await p.createData({ object, data });
await p.getMetaItems({ type });

Affected Files

  • packages/plugins/plugin-hono-server/src/hono-plugin.ts - 16 method calls
  • packages/plugins/plugin-msw/src/msw-plugin.ts - 11 method calls

All changes follow the same pattern: individual parameters → destructured request object.

Original prompt

引用: https://github.com/objectstack-ai/spec/actions/runs/21535844440/job/62061283578#step:8:1


💡 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.

@vercel

vercel Bot commented Jan 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jan 31, 2026 1:12am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action step in job configuration Fix protocol method signatures in plugin-hono-server and plugin-msw Jan 31, 2026
Copilot AI requested a review from hotlong January 31, 2026 01:08
@hotlong
hotlong marked this pull request as ready for review January 31, 2026 01:08
Copilot AI review requested due to automatic review settings January 31, 2026 01:08
@hotlong
hotlong merged commit 5a4fc01 into main Jan 31, 2026
4 of 5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes protocol method signatures in two plugins (plugin-hono-server and plugin-msw) to align with a recent refactor that changed the protocol interface from individual parameters to structured request objects.

Changes:

  • Updated 16 protocol method calls in plugin-hono-server to use object parameters
  • Updated 11 protocol method calls in plugin-msw to use object parameters
  • Adjusted logging statements to correctly access nested properties in new response structures (e.g., result.records.length instead of result.length)
  • Added async keywords to handlers that now await protocol methods that may have become asynchronous
  • Removed unnecessary @ts-ignore comment that is no longer needed with correct typing

Reviewed changes

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

File Description
packages/plugins/plugin-hono-server/src/hono-plugin.ts Updated all 16 protocol method calls to use structured request objects (e.g., { object, query } instead of separate parameters) and corrected logging to access nested response properties
packages/plugins/plugin-msw/src/msw-plugin.ts Updated all 11 protocol method calls to use structured request objects and adjusted logging statements to match new response structure with records array

This branch was successfully deployed

1 active deployment
Preview — cc53ba6a Deployed Jan 31, 2026 by vercel[bot]
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.

3 participants