@lalalic/markcut 3.2.55 → 3.2.56
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/package.json +1 -1
- package/skills/markcut/SKILL.md +2 -1
- package/skills/markcut/docs/map-dynamic-camera.md +20 -0
- package/src/descriptive/compiler.ts +3 -0
- package/src/descriptive/dsl.ts +5 -0
- package/src/descriptive/markdown.ts +2 -1
- package/src/mcp/bridge.mjs +12 -6
- package/src/mcp/preview.mjs +5 -1
- package/src/mcp/remotion-app.bundle.js +394 -395
- package/src/mcp/server.mjs +11 -5
- package/src/player/pipeline.mjs +83 -76
- package/src/render/cli.mjs +13 -3
- package/src/render/google-map-health.mjs +10 -0
- package/src/schema/index.ts +5 -0
- package/src/types/Map.tsx +28 -37
- package/src/utils/route-legs.ts +47 -8
- package/tests/google-map-dsl-validity.test.ts +13 -0
- package/tests/map-route-animation-dsl.test.ts +9 -0
- package/tests/mcp-preview-bridge.test.ts +19 -2
- package/tests/mcp-preview.test.ts +6 -0
- package/tests/render-native-google-map.test.ts +39 -0
- package/tests/route-legs.test.ts +34 -0
package/src/mcp/server.mjs
CHANGED
|
@@ -49,17 +49,23 @@ registerAppTool(
|
|
|
49
49
|
{
|
|
50
50
|
description: "Compile and publish an immutable Markcut preview revision for this ChatGPT conversation. Review delivery defaults to ui/message, or submits an authorized caller-bound event when explicitly configured. Event-mode decisions bind the verified 40-character Git Commit SHA, not the compiled-media cache hash.",
|
|
51
51
|
inputSchema: z.object({
|
|
52
|
-
path: z.string().describe("Absolute .md path or NeoY HTTPS mounted file URL"),
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
path: z.string().describe("Absolute .md path or NeoY HTTPS mounted file URL; Neo Wrapper also accepts single local image/audio/video files"),
|
|
53
|
+
readonly: z.boolean().optional().describe("View-only preview: no review controls, Relay binding, Git checkpoint, or mobile review notification."),
|
|
54
|
+
review: z.object({delivery:z.enum(["text","event"]).optional(),commitSha:z.string().regex(/^[a-f0-9]{40}$/).optional(),eventTemplate:z.object({type:z.string(),source:z.string(),data:z.record(z.string(),z.unknown())}).optional(),
|
|
55
|
+
relay:z.object({jobId:z.string(),taskId:z.union([z.string(),z.number()]),executionId:z.string().optional()}).optional().describe("Optional managed review correlation; no Relay needed for standalone review."),
|
|
56
|
+
}).optional(),
|
|
55
57
|
}),
|
|
56
58
|
_meta: {
|
|
57
59
|
ui: { resourceUri: RESOURCE_URI },
|
|
58
60
|
},
|
|
59
61
|
},
|
|
60
|
-
async ({ path,
|
|
62
|
+
async ({ path, review, readonly }) => {
|
|
63
|
+
const relay=review?.relay;
|
|
61
64
|
try {
|
|
62
|
-
|
|
65
|
+
if (readonly && review !== undefined)
|
|
66
|
+
throw new Error("Read-only preview cannot request Relay or review delivery");
|
|
67
|
+
const config={...normalizeReviewConfig(review),...(readonly ? {readonly:true} : {})};
|
|
68
|
+
const operation=startCompileOperation(path,relay,config);
|
|
63
69
|
const payload={...operation,...(relay ? {relay} : {})};
|
|
64
70
|
return {
|
|
65
71
|
content: [{ type: "text", text: `Compilation started: ${operation.path}` }],
|