@slatesvideo/shared 0.4.0 → 0.4.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.
@@ -74,7 +74,7 @@ export declare const createCharacter: Operation<{
74
74
  projectId: string;
75
75
  name: string;
76
76
  description?: string;
77
- style?: 'realistic' | 'anime' | 'pixar' | 'comic-book';
77
+ style?: string;
78
78
  }>;
79
79
  export declare const setCharacterTurnaround: Operation<{
80
80
  characterId: string;
@@ -91,7 +91,7 @@ export declare const createEnvironment: Operation<{
91
91
  projectId: string;
92
92
  name: string;
93
93
  description?: string;
94
- style?: 'realistic' | 'anime' | 'pixar' | 'comic-book';
94
+ style?: string;
95
95
  }>;
96
96
  export declare const listStoryboards: Operation<{
97
97
  projectId: string;
@@ -256,7 +256,7 @@ export declare const updateCharacter: Operation<{
256
256
  characterId: string;
257
257
  name?: string;
258
258
  description?: string;
259
- style?: 'realistic' | 'anime' | 'pixar' | 'comic-book';
259
+ style?: string;
260
260
  }>;
261
261
  export declare const deleteCharacter: Operation<{
262
262
  characterId: string;
@@ -265,7 +265,7 @@ export declare const updateEnvironment: Operation<{
265
265
  environmentId: string;
266
266
  name?: string;
267
267
  description?: string;
268
- style?: 'realistic' | 'anime' | 'pixar' | 'comic-book';
268
+ style?: string;
269
269
  gridAssetId?: string | null;
270
270
  }>;
271
271
  export declare const deleteEnvironment: Operation<{
@@ -316,7 +316,7 @@ export const createCharacter = {
316
316
  projectId: z.string().uuid(),
317
317
  name: z.string().min(1).max(120),
318
318
  description: z.string().optional(),
319
- style: z.enum(['realistic', 'anime', 'pixar', 'comic-book']).optional(),
319
+ style: z.string().max(200).optional().describe("Art style. Omit to inherit the reference's style (the default). Canonical styles: photoreal, anime, painterly, 3d-render, comic. Or pass any free-text instruction, e.g. 'turn this into a real person'."),
320
320
  }),
321
321
  async run(input, ctx) {
322
322
  return ok(await ctx.desktop().post('/agent/characters', input));
@@ -366,7 +366,7 @@ export const createEnvironment = {
366
366
  projectId: z.string().uuid(),
367
367
  name: z.string().min(1).max(120),
368
368
  description: z.string().optional(),
369
- style: z.enum(['realistic', 'anime', 'pixar', 'comic-book']).optional(),
369
+ style: z.string().max(200).optional().describe("Art style. Omit to inherit the reference's style (the default). Canonical styles: photoreal, anime, painterly, 3d-render, comic. Or pass any free-text instruction, e.g. 'turn this into a real person'."),
370
370
  }),
371
371
  async run(input, ctx) {
372
372
  return ok(await ctx.desktop().post('/agent/environments', input));
@@ -1627,7 +1627,7 @@ export const updateCharacter = {
1627
1627
  characterId: z.string().uuid(),
1628
1628
  name: z.string().min(1).max(120).optional(),
1629
1629
  description: z.string().optional(),
1630
- style: z.enum(['realistic', 'anime', 'pixar', 'comic-book']).optional(),
1630
+ style: z.string().max(200).optional().describe("Art style. Omit to inherit the reference's style (the default). Canonical styles: photoreal, anime, painterly, 3d-render, comic. Or pass any free-text instruction, e.g. 'turn this into a real person'."),
1631
1631
  }),
1632
1632
  async run(input, ctx) {
1633
1633
  return ok(await ctx.desktop().post('/agent/characters/update', {
@@ -1651,7 +1651,7 @@ export const updateEnvironment = {
1651
1651
  environmentId: z.string().uuid(),
1652
1652
  name: z.string().min(1).max(120).optional(),
1653
1653
  description: z.string().optional(),
1654
- style: z.enum(['realistic', 'anime', 'pixar', 'comic-book']).optional(),
1654
+ style: z.string().max(200).optional().describe("Art style. Omit to inherit the reference's style (the default). Canonical styles: photoreal, anime, painterly, 3d-render, comic. Or pass any free-text instruction, e.g. 'turn this into a real person'."),
1655
1655
  gridAssetId: z.string().uuid().nullable().optional(),
1656
1656
  }),
1657
1657
  async run(input, ctx) {
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@slatesvideo/shared",
3
- "version": "0.4.0",
4
- "description": "Shared operations layer for the Slates MCP server and CLI: auth, cloud/desktop clients, and the single tool surface both consume. Most users want @slatesvideo/mcp-server or @slatesvideo/cli instead.",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
13
- },
14
- "./auth": "./dist/auth.js",
15
- "./clients/cloud": "./dist/clients/cloud.js",
16
- "./clients/desktop": "./dist/clients/desktop.js",
17
- "./operations": "./dist/operations/index.js",
18
- "./prompts": {
19
- "import": "./dist/prompts/index.js",
20
- "types": "./dist/prompts/index.d.ts"
21
- }
22
- },
23
- "files": ["dist", "!dist/**/*.map", "skills", "README.md"],
24
- "scripts": {
25
- "build": "node scripts/embed-skills.mjs && tsc",
26
- "typecheck": "node scripts/embed-skills.mjs && tsc --noEmit",
27
- "prepublishOnly": "npm run build"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/EricDisero/slates-mcp.git",
32
- "directory": "packages/shared"
33
- },
34
- "homepage": "https://slates.video",
35
- "bugs": {
36
- "url": "https://github.com/EricDisero/slates-mcp/issues"
37
- },
38
- "keywords": [
39
- "slates",
40
- "mcp",
41
- "model-context-protocol",
42
- "ai-video",
43
- "video-generation",
44
- "image-generation",
45
- "claude",
46
- "veo",
47
- "kling",
48
- "seedance"
49
- ],
50
- "engines": {
51
- "node": ">=18"
52
- },
53
- "dependencies": {
54
- "zod": "^3.23.0"
55
- },
56
- "devDependencies": {
57
- "typescript": "^5.7.0"
58
- }
59
- }
1
+ {
2
+ "name": "@slatesvideo/shared",
3
+ "version": "0.4.1",
4
+ "description": "Shared operations layer for the Slates MCP server and CLI: auth, cloud/desktop clients, and the single tool surface both consume. Most users want @slatesvideo/mcp-server or @slatesvideo/cli instead.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./auth": "./dist/auth.js",
15
+ "./clients/cloud": "./dist/clients/cloud.js",
16
+ "./clients/desktop": "./dist/clients/desktop.js",
17
+ "./operations": "./dist/operations/index.js",
18
+ "./prompts": {
19
+ "import": "./dist/prompts/index.js",
20
+ "types": "./dist/prompts/index.d.ts"
21
+ }
22
+ },
23
+ "files": ["dist", "!dist/**/*.map", "skills", "README.md"],
24
+ "scripts": {
25
+ "build": "node scripts/embed-skills.mjs && tsc",
26
+ "typecheck": "node scripts/embed-skills.mjs && tsc --noEmit",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/EricDisero/slates-mcp.git",
32
+ "directory": "packages/shared"
33
+ },
34
+ "homepage": "https://slates.video",
35
+ "bugs": {
36
+ "url": "https://github.com/EricDisero/slates-mcp/issues"
37
+ },
38
+ "keywords": [
39
+ "slates",
40
+ "mcp",
41
+ "model-context-protocol",
42
+ "ai-video",
43
+ "video-generation",
44
+ "image-generation",
45
+ "claude",
46
+ "veo",
47
+ "kling",
48
+ "seedance"
49
+ ],
50
+ "engines": {
51
+ "node": ">=18"
52
+ },
53
+ "dependencies": {
54
+ "zod": "^3.23.0"
55
+ },
56
+ "devDependencies": {
57
+ "typescript": "^5.7.0"
58
+ }
59
+ }