@marlinjai/studio-mcp 0.13.0 → 0.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/dist/index.d.ts CHANGED
@@ -1206,6 +1206,38 @@ interface CampaignContents {
1206
1206
  imagesKept: number;
1207
1207
  shotsRendering: number;
1208
1208
  }
1209
+ /** One `@` mention of a saved prompt: `id` is the cast member's slug. */
1210
+ interface SavedPromptMention {
1211
+ kind: 'character' | 'product' | 'location';
1212
+ id: string;
1213
+ name: string;
1214
+ rowId?: string;
1215
+ }
1216
+ /** The generation settings a saved prompt carries. */
1217
+ interface SavedPromptSettings {
1218
+ model?: string;
1219
+ aspectRatio?: string;
1220
+ imageSize?: string;
1221
+ candidateCount?: number;
1222
+ thinkingLevel?: 'none' | 'minimal' | 'high';
1223
+ temperature?: number;
1224
+ seed?: number;
1225
+ }
1226
+ /** A saved prompt of the company library (`/api/v1/prompts`). */
1227
+ interface SavedPrompt {
1228
+ id: string;
1229
+ title: string;
1230
+ prompt: string;
1231
+ mentions: SavedPromptMention[];
1232
+ settings: SavedPromptSettings;
1233
+ sourceAssetId: string | null;
1234
+ savedBy: string;
1235
+ savedByMe: boolean;
1236
+ usageCount: number;
1237
+ lastUsedAt: string | null;
1238
+ createdAt: string;
1239
+ updatedAt: string;
1240
+ }
1209
1241
  type JobStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | (string & {});
1210
1242
  /** `GET /api/brands/[slug]/kit` (file URLs are Studio-relative and not used by the tools). */
1211
1243
  interface BrandKitResponse {
@@ -1326,6 +1358,25 @@ interface GenerateImageResponse {
1326
1358
  candidates?: CandidatePlan;
1327
1359
  notice?: string;
1328
1360
  }
1361
+ /** One @ mention of a prompt: a character, product or location of the company, by slug. */
1362
+ interface PromptMention {
1363
+ kind: 'character' | 'product' | 'location';
1364
+ /** The slug, as the prompt's token `@[kind:slug]` carries it. */
1365
+ id: string;
1366
+ name?: string;
1367
+ }
1368
+ interface EnhancePromptRequest {
1369
+ prompt: string;
1370
+ target: 'image' | 'video';
1371
+ mentions?: PromptMention[];
1372
+ model?: string;
1373
+ brandSlug?: string;
1374
+ brandMode?: string;
1375
+ }
1376
+ interface EnhancePromptResponse {
1377
+ prompt: string;
1378
+ mentions: Array<Required<PromptMention>>;
1379
+ }
1329
1380
  interface CharacterSummary {
1330
1381
  /** Unique within the key's company, not across companies. */
1331
1382
  slug: string;
@@ -1674,6 +1725,31 @@ declare class StudioClient {
1674
1725
  id: string;
1675
1726
  shotsDeleted: number;
1676
1727
  }>;
1728
+ listSavedPrompts(opts?: {
1729
+ sort?: 'newest' | 'most-used';
1730
+ limit?: number;
1731
+ offset?: number;
1732
+ }): Promise<{
1733
+ prompts: SavedPrompt[];
1734
+ nextOffset: number | null;
1735
+ }>;
1736
+ getSavedPrompt(promptId: string): Promise<{
1737
+ prompt: SavedPrompt;
1738
+ }>;
1739
+ /** 201 saved; 200 with `alreadySaved: true` when the company already saved the same recipe. */
1740
+ savePrompt(body: {
1741
+ prompt?: string;
1742
+ mentions?: SavedPromptMention[];
1743
+ settings?: SavedPromptSettings;
1744
+ title?: string;
1745
+ assetId?: string;
1746
+ }): Promise<{
1747
+ prompt: SavedPrompt;
1748
+ alreadySaved?: boolean;
1749
+ }>;
1750
+ deleteSavedPrompt(promptId: string): Promise<{
1751
+ deleted: string;
1752
+ }>;
1677
1753
  /**
1678
1754
  * One image job. `brandSlug` is optional: without it the image is generated
1679
1755
  * with no brand. A `brandSlug` or `characterSlug` the key's company cannot
@@ -1725,6 +1801,12 @@ declare class StudioClient {
1725
1801
  [k: string]: unknown;
1726
1802
  };
1727
1803
  }>;
1804
+ /**
1805
+ * Enhance: the prompt rewritten into a richer one for an image or video
1806
+ * model, every mention token (`@[character:<slug>]`) kept exactly once.
1807
+ * Free for the company, limited per key (429 with the wait in `error`).
1808
+ */
1809
+ enhancePrompt(body: EnhancePromptRequest): Promise<EnhancePromptResponse>;
1728
1810
  createCharacter(body: {
1729
1811
  name: string;
1730
1812
  slug: string;
@@ -2086,7 +2168,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
2086
2168
  */
2087
2169
 
2088
2170
  declare const SERVER_NAME = "lumitra-studio";
2089
- declare const SERVER_VERSION = "0.13.0";
2171
+ declare const SERVER_VERSION = "0.15.0";
2090
2172
  interface CreateServerOptions {
2091
2173
  config?: StudioConfig;
2092
2174
  env?: NodeJS.ProcessEnv;
@@ -3454,4 +3536,4 @@ declare function parseArgs(argv: string[]): CliArgs;
3454
3536
  declare function createHttpHandler(): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
3455
3537
  declare function main(argv?: string[]): Promise<void>;
3456
3538
 
3457
- export { type AllTenantsUsageResponse, type AssetReference, type AssetUsage, type Binding, type BrandKitResponse, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, type CompositionRecord, type CompositionSummary, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectAsset, type ProjectContents, type ProjectSummary, type Projection, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedWorkflowListing, type SocialProjectSummary, type SocialSendView, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };
3539
+ export { type AllTenantsUsageResponse, type AssetReference, type AssetUsage, type Binding, type BrandKitResponse, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, type CompositionRecord, type CompositionSummary, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type EnhancePromptRequest, type EnhancePromptResponse, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectAsset, type ProjectContents, type ProjectSummary, type Projection, type PromptMention, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedPrompt, type SavedPromptMention, type SavedPromptSettings, type SavedWorkflowListing, type SocialProjectSummary, type SocialSendView, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };