drafted 1.14.30 → 1.15.0
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 -5
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -2959,8 +2959,9 @@ tool('frame', 'Frame CRUD in the ACTIVE PROJECT. Dispatch by `action`: read (by
|
|
|
2959
2959
|
lineHash: z.string().describe('The full line anchor copied verbatim from read output — line number + 3-char hash, e.g. "182vix" (the token left of the "|"). NOT the bare hash "vix": that is rejected, since the same hash can recur on multiple lines.'),
|
|
2960
2960
|
newContent: z.string().optional().describe('New content (for replace, insertAfter, insertBefore)'),
|
|
2961
2961
|
})).optional().describe('[edit] hashline edit operations'),
|
|
2962
|
-
from: z.string().optional().describe('[mv] source path /{layer}/{lane}/{filename}'),
|
|
2963
|
-
to: z.string().optional().describe('[mv] destination path /{layer}/{lane}/{filename}'),
|
|
2962
|
+
from: z.string().optional().describe('[mv] source path: /{layer}/{lane}/{filename} for a frame, /{layer}/{lane} for a lane, /{layer} for a whole layer (lane/layer require toProjectId)'),
|
|
2963
|
+
to: z.string().optional().describe('[mv] destination path /{layer}/{lane}/{filename} — the layer segment is always required and explicit'),
|
|
2964
|
+
toProjectId: z.string().optional().describe('[mv] move ACROSS projects: destination project UUID/slug/name. Same-org only. Frame ids and version history follow; frame-scoped shares, public links, and lane share tokens are NOT carried into the destination project. Omit for the classic in-project rename/move.'),
|
|
2964
2965
|
dryRun: z.boolean().optional().describe('[mv] preview the move without applying it; returns the resolved frame and current path so you can confirm before retrying with dryRun=false.'),
|
|
2965
2966
|
anchored: z.boolean().optional().describe('[anchor] true to anchor, false to unanchor. Anchored frames MUST be read before writing/editing in the same layer.'),
|
|
2966
2967
|
query: z.string().optional().describe('[search] term to match against frame names'),
|
|
@@ -3320,7 +3321,7 @@ tool('frame', 'Frame CRUD in the ACTIVE PROJECT. Dispatch by `action`: read (by
|
|
|
3320
3321
|
});
|
|
3321
3322
|
}
|
|
3322
3323
|
case 'mv': {
|
|
3323
|
-
const { from, to, dryRun = false } = args;
|
|
3324
|
+
const { from, to, toProjectId, dryRun = false } = args;
|
|
3324
3325
|
if (!from || !to) throw new Error('from and to required for action=mv');
|
|
3325
3326
|
if (dryRun) {
|
|
3326
3327
|
// Resolve current frame at `from`. Don't apply the rename, just
|
|
@@ -3330,11 +3331,12 @@ tool('frame', 'Frame CRUD in the ACTIVE PROJECT. Dispatch by `action`: read (by
|
|
|
3330
3331
|
dryRun: true,
|
|
3331
3332
|
from,
|
|
3332
3333
|
to,
|
|
3334
|
+
toProjectId: toProjectId || undefined,
|
|
3333
3335
|
currentFrame: current?.frame || current,
|
|
3334
|
-
note: 'No changes applied. Re-call with dryRun=false (or omit) to perform the
|
|
3336
|
+
note: 'No changes applied. Re-call with dryRun=false (or omit) to perform the move.',
|
|
3335
3337
|
}));
|
|
3336
3338
|
}
|
|
3337
|
-
return ok(withProject(await api('POST', '/api/fs/mv', { from, to })));
|
|
3339
|
+
return ok(withProject(await api('POST', '/api/fs/mv', { from, to, ...(toProjectId ? { toProjectId } : {}) })));
|
|
3338
3340
|
}
|
|
3339
3341
|
case 'anchor': {
|
|
3340
3342
|
const { path, anchored } = args;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
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": [
|