drafted 1.19.40 → 1.19.42
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/mcp/server.mjs +9 -2
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -4007,9 +4007,16 @@ tool('fs', 'Navigate Drafted like a local filesystem. A FOLDER is the single con
|
|
|
4007
4007
|
// semantic /o/<org>/<project>/<path> form when the project context is
|
|
4008
4008
|
// available; /f/<uuid> is the always-works fallback.
|
|
4009
4009
|
if (result?.id) {
|
|
4010
|
+
// THE SERVER'S frameUrl WINS. It is built by buildFramePath, the one
|
|
4011
|
+
// place that knows a frame's canonical shape — including that a task
|
|
4012
|
+
// addresses as /o/<org>/tasks/<lane>/<file> and NOT through the system
|
|
4013
|
+
// project behind it. This used to compose /projects/<slug><path> here
|
|
4014
|
+
// and PREFER it, so a task read came back pointing at the project
|
|
4015
|
+
// canvas instead of the tasks view: the same URL defect, fixed on the
|
|
4016
|
+
// server, re-created by a second writer that outranked the first.
|
|
4010
4017
|
const proj = result.project;
|
|
4011
|
-
const
|
|
4012
|
-
return ok({ path: result.path, frameUrl:
|
|
4018
|
+
const local = proj?.orgSlug && proj?.slug ? `${getServerUrl()}/o/${proj.orgSlug}/projects/${proj.slug}${result.path}` : null;
|
|
4019
|
+
return ok({ path: result.path, frameUrl: result.frameUrl || local || `${getServerUrl()}/f/${result.id}`, content: result.content || '' });
|
|
4013
4020
|
}
|
|
4014
4021
|
return ok(result?.content || '');
|
|
4015
4022
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.42",
|
|
4
4
|
"description": "Drafted — visual thinking surface for humans and AI agents. Renders HTML, markdown, images, and code as frames on a zoomable canvas, with MCP tools for AI agents and real-time sync for humans.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|