@schoolai/shipyard-mcp 0.1.3-next.457 → 0.1.3-next.460
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.
- package/apps/hook/dist/index.js +2 -1
- package/apps/server/dist/index.js +11 -8
- package/package.json +1 -1
package/apps/hook/dist/index.js
CHANGED
|
@@ -45704,8 +45704,9 @@ init_cjs_shims();
|
|
|
45704
45704
|
|
|
45705
45705
|
// src/config/env/web.ts
|
|
45706
45706
|
init_cjs_shims();
|
|
45707
|
+
var defaultWebUrl = process.env.NODE_ENV === "production" ? "https://schoolai.github.io/shipyard" : "http://localhost:5173";
|
|
45707
45708
|
var schema3 = external_exports.object({
|
|
45708
|
-
SHIPYARD_WEB_URL: external_exports.string().url().default(
|
|
45709
|
+
SHIPYARD_WEB_URL: external_exports.string().url().default(defaultWebUrl)
|
|
45709
45710
|
});
|
|
45710
45711
|
var webConfig = loadEnv(schema3);
|
|
45711
45712
|
|
|
@@ -558,8 +558,9 @@ import open from "open";
|
|
|
558
558
|
|
|
559
559
|
// src/config/env/web.ts
|
|
560
560
|
import { z as z2 } from "zod";
|
|
561
|
+
var defaultWebUrl = process.env.NODE_ENV === "production" ? "https://schoolai.github.io/shipyard" : "http://localhost:5173";
|
|
561
562
|
var schema2 = z2.object({
|
|
562
|
-
SHIPYARD_WEB_URL: z2.string().url().default(
|
|
563
|
+
SHIPYARD_WEB_URL: z2.string().url().default(defaultWebUrl)
|
|
563
564
|
});
|
|
564
565
|
var webConfig = loadEnv(schema2);
|
|
565
566
|
|
|
@@ -2265,7 +2266,8 @@ async function isRegistryRunning() {
|
|
|
2265
2266
|
// src/webrtc-provider.ts
|
|
2266
2267
|
import wrtc from "@roamhq/wrtc";
|
|
2267
2268
|
import { WebrtcProvider } from "y-webrtc";
|
|
2268
|
-
var
|
|
2269
|
+
var defaultSignaling = process.env.NODE_ENV === "production" ? "wss://shipyard-signaling.jacob-191.workers.dev" : "ws://localhost:4444";
|
|
2270
|
+
var SIGNALING_SERVER = process.env.SIGNALING_URL || defaultSignaling;
|
|
2269
2271
|
if (typeof globalThis.RTCPeerConnection === "undefined") {
|
|
2270
2272
|
globalThis.RTCPeerConnection = wrtc.RTCPeerConnection;
|
|
2271
2273
|
globalThis.RTCSessionDescription = wrtc.RTCSessionDescription;
|
|
@@ -2930,13 +2932,14 @@ Type: ${type}
|
|
|
2930
2932
|
Filename: ${filename}
|
|
2931
2933
|
URL: ${artifactUrl}${linkedText}
|
|
2932
2934
|
|
|
2933
|
-
\u{1F389} ALL DELIVERABLES COMPLETE! Task auto-completed
|
|
2935
|
+
\u{1F389} ALL DELIVERABLES COMPLETE! Task auto-completed.${prText}
|
|
2934
2936
|
|
|
2935
|
-
Snapshot URL
|
|
2936
|
-
|
|
2937
|
-
Embed this snapshot URL in your PR description as proof of completed work.`
|
|
2937
|
+
Snapshot URL generated. Access via result.snapshotUrl to embed in PR.`
|
|
2938
2938
|
}
|
|
2939
|
-
]
|
|
2939
|
+
],
|
|
2940
|
+
// Structured data for programmatic access (avoids token limit issues)
|
|
2941
|
+
snapshotUrl,
|
|
2942
|
+
allDeliverablesComplete: true
|
|
2940
2943
|
};
|
|
2941
2944
|
}
|
|
2942
2945
|
const statusText = statusChanged ? "\nStatus: draft \u2192 in_progress (auto-updated)" : "";
|
|
@@ -3611,7 +3614,7 @@ Bad deliverables (not provable):
|
|
|
3611
3614
|
deleted: false
|
|
3612
3615
|
});
|
|
3613
3616
|
logger.info({ planId }, "Plan index updated");
|
|
3614
|
-
const url =
|
|
3617
|
+
const url = `${webConfig.SHIPYARD_WEB_URL}/plan/${planId}`;
|
|
3615
3618
|
await openPlanInBrowser(planId, url);
|
|
3616
3619
|
const repoInfo = repo ? `Repo: ${repo}${!input.repo ? " (auto-detected)" : ""}` : "Repo: Not set (provide repo and prNumber for artifact uploads)";
|
|
3617
3620
|
return {
|