@pixeldojo/mcp 0.11.0 → 0.12.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/README.md +1 -2
- package/dist/cli.cjs +2 -52
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -52
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -51
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2041,7 +2041,7 @@ var init_library = __esm({
|
|
|
2041
2041
|
};
|
|
2042
2042
|
librarySkill = {
|
|
2043
2043
|
name: "pixeldojo_library",
|
|
2044
|
-
description: "Search your media library: saved My Media items (permanent) and recent API/MCP generations (
|
|
2044
|
+
description: "Search your media library: saved My Media items (permanent) and recent API/MCP generations (deleted 1 hour after they finish), newest first. Returns asset URLs to reuse as reference inputs.",
|
|
2045
2045
|
inputZod: InputSchema14,
|
|
2046
2046
|
inputJsonSchema: InputJsonSchema14,
|
|
2047
2047
|
allowedModels: [],
|
|
@@ -2050,52 +2050,6 @@ var init_library = __esm({
|
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
|
-
async function run15(input, ctx) {
|
|
2054
|
-
const res = await ctx.client.saveMedia({
|
|
2055
|
-
url: input.url,
|
|
2056
|
-
prompt: input.prompt,
|
|
2057
|
-
tool_name: input.tool_name,
|
|
2058
|
-
modality: input.modality,
|
|
2059
|
-
job_id: input.job_id
|
|
2060
|
-
});
|
|
2061
|
-
return {
|
|
2062
|
-
kind: "text",
|
|
2063
|
-
text: `Saved to My Media (permanent): ${res.url}
|
|
2064
|
-
It will appear at https://pixeldojo.ai/my-images and in pixeldojo_library searches.`
|
|
2065
|
-
};
|
|
2066
|
-
}
|
|
2067
|
-
var InputSchema15, InputJsonSchema15, saveSkill;
|
|
2068
|
-
var init_save = __esm({
|
|
2069
|
-
"src/skills/save.ts"() {
|
|
2070
|
-
InputSchema15 = z.object({
|
|
2071
|
-
url: z.string().url().describe("The asset URL to save (image or video)."),
|
|
2072
|
-
prompt: z.string().optional().describe("The prompt that produced it \u2014 makes it findable in the library later."),
|
|
2073
|
-
tool_name: z.string().optional().describe("Tool/model slug that produced it."),
|
|
2074
|
-
modality: z.enum(["image", "video", "audio"]).optional(),
|
|
2075
|
-
job_id: z.string().optional().describe("The jobId that produced this asset, when known.")
|
|
2076
|
-
});
|
|
2077
|
-
InputJsonSchema15 = {
|
|
2078
|
-
type: "object",
|
|
2079
|
-
properties: {
|
|
2080
|
-
url: { type: "string", format: "uri" },
|
|
2081
|
-
prompt: { type: "string" },
|
|
2082
|
-
tool_name: { type: "string" },
|
|
2083
|
-
modality: { type: "string", enum: ["image", "video", "audio"] },
|
|
2084
|
-
job_id: { type: "string" }
|
|
2085
|
-
},
|
|
2086
|
-
required: ["url"]
|
|
2087
|
-
};
|
|
2088
|
-
saveSkill = {
|
|
2089
|
-
name: "pixeldojo_save",
|
|
2090
|
-
description: "Save a generated image or video into the user's My Media library permanently. Generation outputs otherwise expire after 24 hours \u2014 call this when the user wants to keep a result.",
|
|
2091
|
-
inputZod: InputSchema15,
|
|
2092
|
-
inputJsonSchema: InputJsonSchema15,
|
|
2093
|
-
allowedModels: [],
|
|
2094
|
-
defaultModel: "",
|
|
2095
|
-
run: run15
|
|
2096
|
-
};
|
|
2097
|
-
}
|
|
2098
|
-
});
|
|
2099
2053
|
function substitutePlaceholders(args, inputs, prevUrl) {
|
|
2100
2054
|
const missing = [];
|
|
2101
2055
|
const fill = (value) => {
|
|
@@ -2317,7 +2271,6 @@ __export(skills_exports, {
|
|
|
2317
2271
|
librarySkill: () => librarySkill,
|
|
2318
2272
|
listWorkflowsSkill: () => listWorkflowsSkill,
|
|
2319
2273
|
runWorkflowSkill: () => runWorkflowSkill,
|
|
2320
|
-
saveSkill: () => saveSkill,
|
|
2321
2274
|
saveWorkflowSkill: () => saveWorkflowSkill,
|
|
2322
2275
|
statusSkill: () => statusSkill,
|
|
2323
2276
|
storyboardSkill: () => storyboardSkill,
|
|
@@ -2345,7 +2298,6 @@ var init_skills = __esm({
|
|
|
2345
2298
|
init_upload();
|
|
2346
2299
|
init_audio();
|
|
2347
2300
|
init_library();
|
|
2348
|
-
init_save();
|
|
2349
2301
|
init_workflows();
|
|
2350
2302
|
ALL_SKILLS = [
|
|
2351
2303
|
generateSkill,
|
|
@@ -2355,7 +2307,6 @@ var init_skills = __esm({
|
|
|
2355
2307
|
upscaleSkill,
|
|
2356
2308
|
audioSkill,
|
|
2357
2309
|
librarySkill,
|
|
2358
|
-
saveSkill,
|
|
2359
2310
|
saveWorkflowSkill,
|
|
2360
2311
|
runWorkflowSkill,
|
|
2361
2312
|
listWorkflowsSkill,
|
|
@@ -2420,7 +2371,7 @@ function makeRedactedLogger(target = console) {
|
|
|
2420
2371
|
}
|
|
2421
2372
|
|
|
2422
2373
|
// src/server.ts
|
|
2423
|
-
var PACKAGE_VERSION = "0.
|
|
2374
|
+
var PACKAGE_VERSION = "0.12.0" ;
|
|
2424
2375
|
function buildServer(options) {
|
|
2425
2376
|
if (!options.apiKey) {
|
|
2426
2377
|
throw new Error(
|