@schoolai/shipyard-mcp 0.1.3-next.451 → 0.1.3-next.452

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1027,16 +1027,14 @@ async function waitForApprovalHandler(planId, _reviewRequestIdParam, ctx) {
1027
1027
  if (!reviewedBy) {
1028
1028
  throw new Error(`Invalid session state transition: missing reviewedBy for changes_requested`);
1029
1029
  }
1030
- if (!syncedFields) {
1031
- throw new Error(
1032
- `Invalid session state transition: changes_requested requires synced fields (contentHash, sessionToken)`
1033
- );
1034
- }
1035
1030
  const deliverables = extraData.deliverables || (isSessionStateApproved(session) || isSessionStateReviewed(session) || isSessionStateApprovedAwaitingToken(session) ? session.deliverables : []);
1031
+ const webUrl = webConfig.SHIPYARD_WEB_URL;
1036
1032
  setSessionState(sessionId, {
1037
1033
  lifecycle: "reviewed",
1038
1034
  ...baseState,
1039
- ...syncedFields,
1035
+ contentHash: syncedFields?.contentHash ?? "",
1036
+ sessionToken: syncedFields?.sessionToken ?? "",
1037
+ url: syncedFields?.url ?? `${webUrl}/plan/${baseState.planId}`,
1040
1038
  deliverables,
1041
1039
  reviewComment: reviewComment || "",
1042
1040
  reviewedBy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schoolai/shipyard-mcp",
3
- "version": "0.1.3-next.451",
3
+ "version": "0.1.3-next.452",
4
4
  "description": "Shipyard MCP server and CLI tools for distributed planning with CRDTs",
5
5
  "type": "module",
6
6
  "bin": {