drafted 1.11.1 → 1.11.2
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 +7 -6
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -567,12 +567,13 @@ function reportMcpToolError(tool, error) {
|
|
|
567
567
|
|
|
568
568
|
function wikiPageUrl(path = '', org = '') {
|
|
569
569
|
const normalized = normalizeWikiPath(path || '');
|
|
570
|
-
//
|
|
571
|
-
//
|
|
572
|
-
// route resolves
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
570
|
+
// Canonical org-scoped URL: /o/<org>/wiki/<path>. Portable across the viewer's
|
|
571
|
+
// orgs (wiki paths collide across orgs). `org` is the org id; the
|
|
572
|
+
// /o/<org>/wiki route resolves it id-first then slug. Falls back to bare /wiki
|
|
573
|
+
// (which 302s to the canonical form) when org is unknown.
|
|
574
|
+
const base = org ? `${getServerUrl()}/o/${encodeURIComponent(org)}/wiki` : `${getServerUrl()}/wiki`;
|
|
575
|
+
if (!normalized) return base;
|
|
576
|
+
return `${base}/${normalized.split('/').map(encodeURIComponent).join('/')}`;
|
|
576
577
|
}
|
|
577
578
|
|
|
578
579
|
function getBootstrapSessionId() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
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": [
|