@pixeldojo/mcp 0.9.0 → 0.9.1
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 +15 -15
- package/dist/cli.cjs +183 -83
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +183 -83
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +170 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +170 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ import { PixelDojoClient, PixelDojoClientOptions } from '@pixeldojo/sdk';
|
|
|
8
8
|
* Per CEO D9 + D14 + Eng E4:
|
|
9
9
|
* - Up to 30 seconds: poll the job synchronously, return assets when complete.
|
|
10
10
|
* - Beyond 30 seconds: hand off — return `{ jobId, statusUrl }` and let the
|
|
11
|
-
* calling LLM follow up via the `
|
|
11
|
+
* calling LLM follow up via the `pixeldojo_status` tool.
|
|
12
12
|
* - Backoff sequence: 1s → 2s → 4s → 8s → 8s → 8s ... capped at 8s.
|
|
13
13
|
* Halves load on /api/v1/jobs/{id} vs a flat 2s interval.
|
|
14
14
|
*
|
|
@@ -65,7 +65,7 @@ declare function pollJobUntilDoneOrHandoff(jobId: string, fetchJob: (id: string)
|
|
|
65
65
|
/**
|
|
66
66
|
* Shared types for MCP skill modules.
|
|
67
67
|
*
|
|
68
|
-
* Every named skill (
|
|
68
|
+
* Every named skill (pixeldojo_generate, :character, :storyboard, :upscale,
|
|
69
69
|
* :status) exports an object that satisfies `SkillModule`. The server
|
|
70
70
|
* registers them via `registerSkills` in `../server.ts`.
|
|
71
71
|
*/
|
|
@@ -111,7 +111,7 @@ type SkillResult = SkillResultText | SkillResultAssets | SkillResultHandoff;
|
|
|
111
111
|
* `inputSchema` (JSON Schema for `tools/list`) and dispatches via `run`.
|
|
112
112
|
*/
|
|
113
113
|
interface SkillModule<TInput = unknown> {
|
|
114
|
-
/** MCP tool name, e.g. `
|
|
114
|
+
/** MCP tool name, e.g. `pixeldojo_generate`. */
|
|
115
115
|
name: string;
|
|
116
116
|
/** One-line description shown in `tools/list` to the LLM host. */
|
|
117
117
|
description: string;
|
|
@@ -123,7 +123,7 @@ interface SkillModule<TInput = unknown> {
|
|
|
123
123
|
* Whitelist of `apiId`s this skill is allowed to dispatch to. Treated as
|
|
124
124
|
* a contract: a user-supplied `model` override must be in this list,
|
|
125
125
|
* otherwise the skill returns an `UnknownModelError` with the list.
|
|
126
|
-
* `null` means "any registered model" (used by `
|
|
126
|
+
* `null` means "any registered model" (used by `pixeldojo_generate`).
|
|
127
127
|
*/
|
|
128
128
|
allowedModels: string[] | null;
|
|
129
129
|
/** Default `apiId` if the user doesn't pass `model`. */
|
|
@@ -225,6 +225,14 @@ declare function makeAttributedClient(options: MakeClientOptions): PixelDojoClie
|
|
|
225
225
|
|
|
226
226
|
declare const ALL_SKILLS: ReadonlyArray<SkillModule<unknown>>;
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Skill names were `pixeldojo:<x>` until 2026-07-29. A colon is illegal in a
|
|
230
|
+
* tool name per Anthropic's `^[a-zA-Z0-9_-]{1,64}$`, so claude.ai's remote-MCP
|
|
231
|
+
* connector rejected the whole tools array and every tool call in the
|
|
232
|
+
* conversation failed (Claude Code silently sanitized, which hid it). Names are
|
|
233
|
+
* underscored now; the old form still resolves for callers that memorized it
|
|
234
|
+
* and for workflow steps saved under the colon names.
|
|
235
|
+
*/
|
|
228
236
|
declare function findSkill(name: string): SkillModule<unknown> | undefined;
|
|
229
237
|
|
|
230
238
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { PixelDojoClient, PixelDojoClientOptions } from '@pixeldojo/sdk';
|
|
|
8
8
|
* Per CEO D9 + D14 + Eng E4:
|
|
9
9
|
* - Up to 30 seconds: poll the job synchronously, return assets when complete.
|
|
10
10
|
* - Beyond 30 seconds: hand off — return `{ jobId, statusUrl }` and let the
|
|
11
|
-
* calling LLM follow up via the `
|
|
11
|
+
* calling LLM follow up via the `pixeldojo_status` tool.
|
|
12
12
|
* - Backoff sequence: 1s → 2s → 4s → 8s → 8s → 8s ... capped at 8s.
|
|
13
13
|
* Halves load on /api/v1/jobs/{id} vs a flat 2s interval.
|
|
14
14
|
*
|
|
@@ -65,7 +65,7 @@ declare function pollJobUntilDoneOrHandoff(jobId: string, fetchJob: (id: string)
|
|
|
65
65
|
/**
|
|
66
66
|
* Shared types for MCP skill modules.
|
|
67
67
|
*
|
|
68
|
-
* Every named skill (
|
|
68
|
+
* Every named skill (pixeldojo_generate, :character, :storyboard, :upscale,
|
|
69
69
|
* :status) exports an object that satisfies `SkillModule`. The server
|
|
70
70
|
* registers them via `registerSkills` in `../server.ts`.
|
|
71
71
|
*/
|
|
@@ -111,7 +111,7 @@ type SkillResult = SkillResultText | SkillResultAssets | SkillResultHandoff;
|
|
|
111
111
|
* `inputSchema` (JSON Schema for `tools/list`) and dispatches via `run`.
|
|
112
112
|
*/
|
|
113
113
|
interface SkillModule<TInput = unknown> {
|
|
114
|
-
/** MCP tool name, e.g. `
|
|
114
|
+
/** MCP tool name, e.g. `pixeldojo_generate`. */
|
|
115
115
|
name: string;
|
|
116
116
|
/** One-line description shown in `tools/list` to the LLM host. */
|
|
117
117
|
description: string;
|
|
@@ -123,7 +123,7 @@ interface SkillModule<TInput = unknown> {
|
|
|
123
123
|
* Whitelist of `apiId`s this skill is allowed to dispatch to. Treated as
|
|
124
124
|
* a contract: a user-supplied `model` override must be in this list,
|
|
125
125
|
* otherwise the skill returns an `UnknownModelError` with the list.
|
|
126
|
-
* `null` means "any registered model" (used by `
|
|
126
|
+
* `null` means "any registered model" (used by `pixeldojo_generate`).
|
|
127
127
|
*/
|
|
128
128
|
allowedModels: string[] | null;
|
|
129
129
|
/** Default `apiId` if the user doesn't pass `model`. */
|
|
@@ -225,6 +225,14 @@ declare function makeAttributedClient(options: MakeClientOptions): PixelDojoClie
|
|
|
225
225
|
|
|
226
226
|
declare const ALL_SKILLS: ReadonlyArray<SkillModule<unknown>>;
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Skill names were `pixeldojo:<x>` until 2026-07-29. A colon is illegal in a
|
|
230
|
+
* tool name per Anthropic's `^[a-zA-Z0-9_-]{1,64}$`, so claude.ai's remote-MCP
|
|
231
|
+
* connector rejected the whole tools array and every tool call in the
|
|
232
|
+
* conversation failed (Claude Code silently sanitized, which hid it). Names are
|
|
233
|
+
* underscored now; the old form still resolves for callers that memorized it
|
|
234
|
+
* and for workflow steps saved under the colon names.
|
|
235
|
+
*/
|
|
228
236
|
declare function findSkill(name: string): SkillModule<unknown> | undefined;
|
|
229
237
|
|
|
230
238
|
/**
|