drafted 1.11.24 → 1.11.25
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 +12 -0
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -1138,6 +1138,18 @@ async function requireBoundOrgForProjectlessMutation(explicitOrg) {
|
|
|
1138
1138
|
const sess = getSessionState();
|
|
1139
1139
|
if (sess.boundOrgId) return; // bound via project open / get_org switch
|
|
1140
1140
|
if (getState().projectId) return; // an active project implies its org
|
|
1141
|
+
// Remote/web sessions are isolated per connection: each one gets its OWN
|
|
1142
|
+
// server-side session row with its own org_id set on connect, so the session
|
|
1143
|
+
// org IS this session's binding — there's no shared, long-lived session to
|
|
1144
|
+
// confuse here the way stdio has. Adopt that org automatically instead of
|
|
1145
|
+
// forcing the agent to call get_org switch / project open before a project-less
|
|
1146
|
+
// wiki or skill write. The DRAFT-36 Phase 4 "refuse to guess" guard below
|
|
1147
|
+
// therefore applies to stdio only.
|
|
1148
|
+
if (isRemote) {
|
|
1149
|
+
const ctx = await getCurrentOrgContext();
|
|
1150
|
+
if (ctx?.id) sess.boundOrgId = ctx.id;
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1141
1153
|
let count = sess.cachedOrgCount;
|
|
1142
1154
|
if (count == null) {
|
|
1143
1155
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.25",
|
|
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": [
|