@pinepaper.studio/mcp-server 1.4.3 → 1.5.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 +114 -0
- package/dist/__tests__/fixtures/mock-generators.d.ts +147 -0
- package/dist/__tests__/fixtures/mock-generators.d.ts.map +1 -1
- package/dist/__tests__/fixtures/mock-generators.js +85 -0
- package/dist/__tests__/fixtures/mock-generators.js.map +1 -1
- package/dist/agent/export-manager.d.ts +77 -0
- package/dist/agent/export-manager.d.ts.map +1 -0
- package/dist/agent/export-manager.js +455 -0
- package/dist/agent/export-manager.js.map +1 -0
- package/dist/agent/index.d.ts +9 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +12 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/session-manager.d.ts +109 -0
- package/dist/agent/session-manager.d.ts.map +1 -0
- package/dist/agent/session-manager.js +311 -0
- package/dist/agent/session-manager.js.map +1 -0
- package/dist/agent/types.d.ts +385 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +141 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/puppeteer-controller.d.ts +89 -5
- package/dist/browser/puppeteer-controller.d.ts.map +1 -1
- package/dist/browser/puppeteer-controller.js +412 -11
- package/dist/browser/puppeteer-controller.js.map +1 -1
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2717 -147
- package/dist/index.js.map +1 -1
- package/dist/prompts/index.d.ts +39 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +254 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/tools/compact-descriptions.d.ts +9 -0
- package/dist/tools/compact-descriptions.d.ts.map +1 -0
- package/dist/tools/compact-descriptions.js +260 -0
- package/dist/tools/compact-descriptions.js.map +1 -0
- package/dist/tools/definitions.d.ts +12 -0
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +4844 -1559
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/handlers.d.ts.map +1 -1
- package/dist/tools/handlers.js +915 -17
- package/dist/tools/handlers.js.map +1 -1
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/types/code-generator.d.ts +197 -1
- package/dist/types/code-generator.d.ts.map +1 -1
- package/dist/types/code-generator.js +2338 -26
- package/dist/types/code-generator.js.map +1 -1
- package/dist/types/schemas.d.ts +5294 -1134
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +886 -4
- package/dist/types/schemas.js.map +1 -1
- package/manifest.json +70 -2
- package/package.json +1 -1
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PinePaper Agent Flow Mode - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for job/session management, batch execution, smart exports,
|
|
5
|
+
* and platform presets for content automation pipelines.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Supported export platforms
|
|
10
|
+
*/
|
|
11
|
+
export type Platform = 'instagram' | 'instagram-story' | 'tiktok' | 'youtube' | 'youtube-thumbnail' | 'twitter' | 'linkedin' | 'web' | 'print-a4' | 'print-letter';
|
|
12
|
+
/**
|
|
13
|
+
* Export format types
|
|
14
|
+
*/
|
|
15
|
+
export type ExportFormat = 'svg' | 'png' | 'gif' | 'mp4' | 'webm' | 'pdf';
|
|
16
|
+
/**
|
|
17
|
+
* Platform preset configuration
|
|
18
|
+
*/
|
|
19
|
+
export interface PlatformPreset {
|
|
20
|
+
platform: Platform;
|
|
21
|
+
dimensions: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
formats: {
|
|
26
|
+
static: ExportFormat;
|
|
27
|
+
animated: ExportFormat;
|
|
28
|
+
};
|
|
29
|
+
quality: {
|
|
30
|
+
static: {
|
|
31
|
+
dpi: number;
|
|
32
|
+
compression: number;
|
|
33
|
+
};
|
|
34
|
+
animated: {
|
|
35
|
+
fps: number;
|
|
36
|
+
bitrate?: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
metadata: {
|
|
40
|
+
aspectRatio: string;
|
|
41
|
+
maxFileSize?: number;
|
|
42
|
+
colorProfile?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Platform presets for social media and other targets
|
|
47
|
+
*/
|
|
48
|
+
export declare const PLATFORM_PRESETS: Record<Platform, PlatformPreset>;
|
|
49
|
+
/**
|
|
50
|
+
* Screenshot policy for agent jobs
|
|
51
|
+
*/
|
|
52
|
+
export type ScreenshotPolicy = 'none' | 'on_error' | 'on_complete' | 'on_request';
|
|
53
|
+
/**
|
|
54
|
+
* Options for starting a new agent job
|
|
55
|
+
*/
|
|
56
|
+
export interface JobOptions {
|
|
57
|
+
/** Optional job name for tracking */
|
|
58
|
+
name?: string;
|
|
59
|
+
/** Run browser in headless mode (default: true for agent workflows) */
|
|
60
|
+
headless?: boolean;
|
|
61
|
+
/** When to take screenshots (default: on_complete) */
|
|
62
|
+
screenshotPolicy?: ScreenshotPolicy;
|
|
63
|
+
/** Optional canvas size preset to apply on start */
|
|
64
|
+
canvasPreset?: Platform;
|
|
65
|
+
/** Custom canvas dimensions */
|
|
66
|
+
canvasSize?: {
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
/** Background color to set */
|
|
71
|
+
backgroundColor?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Current job context
|
|
75
|
+
*/
|
|
76
|
+
export interface JobContext {
|
|
77
|
+
/** Unique job identifier */
|
|
78
|
+
jobId: string;
|
|
79
|
+
/** Optional job name */
|
|
80
|
+
name?: string;
|
|
81
|
+
/** Job start timestamp */
|
|
82
|
+
startTime: number;
|
|
83
|
+
/** Items created during this job */
|
|
84
|
+
itemsCreated: string[];
|
|
85
|
+
/** Relations added during this job */
|
|
86
|
+
relationsCreated: string[];
|
|
87
|
+
/** Code queued for batch execution */
|
|
88
|
+
codeQueue: string[];
|
|
89
|
+
/** Screenshot policy */
|
|
90
|
+
screenshotPolicy: ScreenshotPolicy;
|
|
91
|
+
/** Canvas preset if set */
|
|
92
|
+
canvasPreset?: Platform;
|
|
93
|
+
/** Whether agent mode is active */
|
|
94
|
+
agentMode: boolean;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Result returned when job ends
|
|
98
|
+
*/
|
|
99
|
+
export interface JobResult {
|
|
100
|
+
/** Job identifier */
|
|
101
|
+
jobId: string;
|
|
102
|
+
/** Job name if provided */
|
|
103
|
+
name?: string;
|
|
104
|
+
/** Total job duration in milliseconds */
|
|
105
|
+
duration: number;
|
|
106
|
+
/** Items created during job */
|
|
107
|
+
itemsCreated: string[];
|
|
108
|
+
/** Relations created during job */
|
|
109
|
+
relationsCreated: string[];
|
|
110
|
+
/** Final screenshot (base64) if taken */
|
|
111
|
+
screenshot?: string;
|
|
112
|
+
/** Export recommendations based on content */
|
|
113
|
+
exportRecommendations?: ExportRecommendation[];
|
|
114
|
+
/** Content analysis results */
|
|
115
|
+
contentAnalysis?: ContentAnalysis;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Batch operation types
|
|
119
|
+
*/
|
|
120
|
+
export type BatchOperationType = 'create' | 'modify' | 'delete' | 'animate' | 'relation' | 'canvas' | 'generator';
|
|
121
|
+
/**
|
|
122
|
+
* Single batch operation
|
|
123
|
+
*/
|
|
124
|
+
export interface BatchOperation {
|
|
125
|
+
/** Operation type */
|
|
126
|
+
type: BatchOperationType;
|
|
127
|
+
/** For create operations */
|
|
128
|
+
itemType?: string;
|
|
129
|
+
/** Operation parameters */
|
|
130
|
+
params: Record<string, unknown>;
|
|
131
|
+
/** Reference to previous items in batch ($0, $1, etc.) */
|
|
132
|
+
sourceRef?: string;
|
|
133
|
+
targetRef?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Result of batch execution
|
|
137
|
+
*/
|
|
138
|
+
export interface BatchExecuteResult {
|
|
139
|
+
success: boolean;
|
|
140
|
+
/** IDs of items created (in order) */
|
|
141
|
+
itemIds: string[];
|
|
142
|
+
/** Total execution time */
|
|
143
|
+
executionTime: number;
|
|
144
|
+
/** Per-operation results */
|
|
145
|
+
results: Array<{
|
|
146
|
+
index: number;
|
|
147
|
+
success: boolean;
|
|
148
|
+
itemId?: string;
|
|
149
|
+
error?: string;
|
|
150
|
+
}>;
|
|
151
|
+
/** Error if batch failed */
|
|
152
|
+
error?: string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Color complexity levels
|
|
156
|
+
*/
|
|
157
|
+
export type ColorComplexity = 'simple' | 'gradient' | 'complex';
|
|
158
|
+
/**
|
|
159
|
+
* Content analysis result
|
|
160
|
+
*/
|
|
161
|
+
export interface ContentAnalysis {
|
|
162
|
+
/** Whether the scene has animations */
|
|
163
|
+
hasAnimations: boolean;
|
|
164
|
+
/** Types of animations used */
|
|
165
|
+
animationTypes: string[];
|
|
166
|
+
/** Color complexity assessment */
|
|
167
|
+
colorComplexity: ColorComplexity;
|
|
168
|
+
/** Total number of items */
|
|
169
|
+
itemCount: number;
|
|
170
|
+
/** Canvas dimensions */
|
|
171
|
+
canvasSize: {
|
|
172
|
+
width: number;
|
|
173
|
+
height: number;
|
|
174
|
+
};
|
|
175
|
+
/** Whether scene has relations */
|
|
176
|
+
hasRelations: boolean;
|
|
177
|
+
/** Types of relations used */
|
|
178
|
+
relationTypes: string[];
|
|
179
|
+
/** Whether scene has gradients */
|
|
180
|
+
hasGradients: boolean;
|
|
181
|
+
/** Whether scene has shadows */
|
|
182
|
+
hasShadows: boolean;
|
|
183
|
+
/** Whether scene has text */
|
|
184
|
+
hasText: boolean;
|
|
185
|
+
/** Whether scene has images */
|
|
186
|
+
hasImages: boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Export recommendation
|
|
190
|
+
*/
|
|
191
|
+
export interface ExportRecommendation {
|
|
192
|
+
/** Recommended platform */
|
|
193
|
+
platform: Platform;
|
|
194
|
+
/** Recommended format */
|
|
195
|
+
format: ExportFormat;
|
|
196
|
+
/** Confidence score (0-1) */
|
|
197
|
+
confidence: number;
|
|
198
|
+
/** Reason for recommendation */
|
|
199
|
+
reason: string;
|
|
200
|
+
/** Warnings or notes */
|
|
201
|
+
warnings?: string[];
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Smart export options
|
|
205
|
+
*/
|
|
206
|
+
export interface SmartExportOptions {
|
|
207
|
+
/** Target platform (auto = detect best option) */
|
|
208
|
+
platform?: Platform | 'auto';
|
|
209
|
+
/** Export format (auto = select based on content) */
|
|
210
|
+
format?: ExportFormat | 'auto';
|
|
211
|
+
/** Export quality level */
|
|
212
|
+
quality?: 'draft' | 'standard' | 'high';
|
|
213
|
+
/** Include alternative format recommendations */
|
|
214
|
+
includeRecommendations?: boolean;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Smart export result
|
|
218
|
+
*/
|
|
219
|
+
export interface SmartExportResult {
|
|
220
|
+
/** Actual platform used */
|
|
221
|
+
platform: Platform;
|
|
222
|
+
/** Actual format used */
|
|
223
|
+
format: ExportFormat;
|
|
224
|
+
/** Export data (base64 or SVG string) */
|
|
225
|
+
data: string;
|
|
226
|
+
/** MIME type of export */
|
|
227
|
+
mimeType: string;
|
|
228
|
+
/** File size in bytes */
|
|
229
|
+
size: number;
|
|
230
|
+
/** Content analysis used for decisions */
|
|
231
|
+
analysis?: ContentAnalysis;
|
|
232
|
+
/** Alternative recommendations */
|
|
233
|
+
recommendations?: ExportRecommendation[];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Options for resetting canvas between jobs
|
|
237
|
+
*/
|
|
238
|
+
export interface ResetOptions {
|
|
239
|
+
/** Keep current canvas dimensions (default: true) */
|
|
240
|
+
preserveCanvasSize?: boolean;
|
|
241
|
+
/** Keep current background color (default: false) */
|
|
242
|
+
preserveBackground?: boolean;
|
|
243
|
+
/** New canvas preset to apply */
|
|
244
|
+
canvasPreset?: Platform;
|
|
245
|
+
/** New background color */
|
|
246
|
+
backgroundColor?: string;
|
|
247
|
+
}
|
|
248
|
+
export declare const PlatformSchema: z.ZodEnum<["instagram", "instagram-story", "tiktok", "youtube", "youtube-thumbnail", "twitter", "linkedin", "web", "print-a4", "print-letter"]>;
|
|
249
|
+
export declare const ExportFormatSchema: z.ZodEnum<["svg", "png", "gif", "mp4", "webm", "pdf"]>;
|
|
250
|
+
export declare const ScreenshotPolicySchema: z.ZodEnum<["none", "on_error", "on_complete", "on_request"]>;
|
|
251
|
+
export declare const JobOptionsSchema: z.ZodObject<{
|
|
252
|
+
name: z.ZodOptional<z.ZodString>;
|
|
253
|
+
headless: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
254
|
+
screenshotPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["none", "on_error", "on_complete", "on_request"]>>>;
|
|
255
|
+
canvasPreset: z.ZodOptional<z.ZodEnum<["instagram", "instagram-story", "tiktok", "youtube", "youtube-thumbnail", "twitter", "linkedin", "web", "print-a4", "print-letter"]>>;
|
|
256
|
+
canvasSize: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
width: z.ZodNumber;
|
|
258
|
+
height: z.ZodNumber;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
width: number;
|
|
261
|
+
height: number;
|
|
262
|
+
}, {
|
|
263
|
+
width: number;
|
|
264
|
+
height: number;
|
|
265
|
+
}>>;
|
|
266
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
headless: boolean;
|
|
269
|
+
screenshotPolicy: "none" | "on_complete" | "on_error" | "on_request";
|
|
270
|
+
name?: string | undefined;
|
|
271
|
+
backgroundColor?: string | undefined;
|
|
272
|
+
canvasPreset?: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | undefined;
|
|
273
|
+
canvasSize?: {
|
|
274
|
+
width: number;
|
|
275
|
+
height: number;
|
|
276
|
+
} | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
name?: string | undefined;
|
|
279
|
+
backgroundColor?: string | undefined;
|
|
280
|
+
headless?: boolean | undefined;
|
|
281
|
+
screenshotPolicy?: "none" | "on_complete" | "on_error" | "on_request" | undefined;
|
|
282
|
+
canvasPreset?: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | undefined;
|
|
283
|
+
canvasSize?: {
|
|
284
|
+
width: number;
|
|
285
|
+
height: number;
|
|
286
|
+
} | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
export declare const BatchOperationTypeSchema: z.ZodEnum<["create", "modify", "delete", "animate", "relation", "canvas", "generator"]>;
|
|
289
|
+
export declare const BatchOperationSchema: z.ZodObject<{
|
|
290
|
+
type: z.ZodEnum<["create", "modify", "delete", "animate", "relation", "canvas", "generator"]>;
|
|
291
|
+
itemType: z.ZodOptional<z.ZodString>;
|
|
292
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
293
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
294
|
+
targetRef: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
params: Record<string, unknown>;
|
|
297
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
298
|
+
itemType?: string | undefined;
|
|
299
|
+
sourceRef?: string | undefined;
|
|
300
|
+
targetRef?: string | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
params: Record<string, unknown>;
|
|
303
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
304
|
+
itemType?: string | undefined;
|
|
305
|
+
sourceRef?: string | undefined;
|
|
306
|
+
targetRef?: string | undefined;
|
|
307
|
+
}>;
|
|
308
|
+
export declare const BatchExecuteInputSchema: z.ZodObject<{
|
|
309
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
310
|
+
type: z.ZodEnum<["create", "modify", "delete", "animate", "relation", "canvas", "generator"]>;
|
|
311
|
+
itemType: z.ZodOptional<z.ZodString>;
|
|
312
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
313
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
314
|
+
targetRef: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
params: Record<string, unknown>;
|
|
317
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
318
|
+
itemType?: string | undefined;
|
|
319
|
+
sourceRef?: string | undefined;
|
|
320
|
+
targetRef?: string | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
params: Record<string, unknown>;
|
|
323
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
324
|
+
itemType?: string | undefined;
|
|
325
|
+
sourceRef?: string | undefined;
|
|
326
|
+
targetRef?: string | undefined;
|
|
327
|
+
}>, "many">;
|
|
328
|
+
atomic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
operations: {
|
|
331
|
+
params: Record<string, unknown>;
|
|
332
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
333
|
+
itemType?: string | undefined;
|
|
334
|
+
sourceRef?: string | undefined;
|
|
335
|
+
targetRef?: string | undefined;
|
|
336
|
+
}[];
|
|
337
|
+
atomic: boolean;
|
|
338
|
+
}, {
|
|
339
|
+
operations: {
|
|
340
|
+
params: Record<string, unknown>;
|
|
341
|
+
type: "animate" | "generator" | "create" | "modify" | "delete" | "relation" | "canvas";
|
|
342
|
+
itemType?: string | undefined;
|
|
343
|
+
sourceRef?: string | undefined;
|
|
344
|
+
targetRef?: string | undefined;
|
|
345
|
+
}[];
|
|
346
|
+
atomic?: boolean | undefined;
|
|
347
|
+
}>;
|
|
348
|
+
export declare const ResetOptionsSchema: z.ZodObject<{
|
|
349
|
+
preserveCanvasSize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
350
|
+
preserveBackground: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
351
|
+
canvasPreset: z.ZodOptional<z.ZodEnum<["instagram", "instagram-story", "tiktok", "youtube", "youtube-thumbnail", "twitter", "linkedin", "web", "print-a4", "print-letter"]>>;
|
|
352
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
preserveBackground: boolean;
|
|
355
|
+
preserveCanvasSize: boolean;
|
|
356
|
+
backgroundColor?: string | undefined;
|
|
357
|
+
canvasPreset?: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | undefined;
|
|
358
|
+
}, {
|
|
359
|
+
backgroundColor?: string | undefined;
|
|
360
|
+
canvasPreset?: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | undefined;
|
|
361
|
+
preserveBackground?: boolean | undefined;
|
|
362
|
+
preserveCanvasSize?: boolean | undefined;
|
|
363
|
+
}>;
|
|
364
|
+
export declare const SmartExportOptionsSchema: z.ZodObject<{
|
|
365
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["instagram", "instagram-story", "tiktok", "youtube", "youtube-thumbnail", "twitter", "linkedin", "web", "print-a4", "print-letter"]>, z.ZodLiteral<"auto">]>>>;
|
|
366
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["svg", "png", "gif", "mp4", "webm", "pdf"]>, z.ZodLiteral<"auto">]>>>;
|
|
367
|
+
quality: z.ZodDefault<z.ZodOptional<z.ZodEnum<["draft", "standard", "high"]>>>;
|
|
368
|
+
includeRecommendations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
quality: "standard" | "draft" | "high";
|
|
371
|
+
format: "svg" | "png" | "gif" | "mp4" | "webm" | "pdf" | "auto";
|
|
372
|
+
platform: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | "auto";
|
|
373
|
+
includeRecommendations: boolean;
|
|
374
|
+
}, {
|
|
375
|
+
quality?: "standard" | "draft" | "high" | undefined;
|
|
376
|
+
format?: "svg" | "png" | "gif" | "mp4" | "webm" | "pdf" | "auto" | undefined;
|
|
377
|
+
platform?: "instagram" | "instagram-story" | "tiktok" | "youtube" | "youtube-thumbnail" | "twitter" | "linkedin" | "web" | "print-a4" | "print-letter" | "auto" | undefined;
|
|
378
|
+
includeRecommendations?: boolean | undefined;
|
|
379
|
+
}>;
|
|
380
|
+
export type JobOptionsInput = z.infer<typeof JobOptionsSchema>;
|
|
381
|
+
export type BatchOperationInput = z.infer<typeof BatchOperationSchema>;
|
|
382
|
+
export type BatchExecuteInput = z.infer<typeof BatchExecuteInputSchema>;
|
|
383
|
+
export type ResetOptionsInput = z.infer<typeof ResetOptionsSchema>;
|
|
384
|
+
export type SmartExportOptionsInput = z.infer<typeof SmartExportOptionsSchema>;
|
|
385
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../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AAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PinePaper Agent Flow Mode - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for job/session management, batch execution, smart exports,
|
|
5
|
+
* and platform presets for content automation pipelines.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Platform presets for social media and other targets
|
|
10
|
+
*/
|
|
11
|
+
export const PLATFORM_PRESETS = {
|
|
12
|
+
'instagram': {
|
|
13
|
+
platform: 'instagram',
|
|
14
|
+
dimensions: { width: 1080, height: 1080 },
|
|
15
|
+
formats: { static: 'png', animated: 'mp4' },
|
|
16
|
+
quality: { static: { dpi: 72, compression: 0.9 }, animated: { fps: 30 } },
|
|
17
|
+
metadata: { aspectRatio: '1:1', maxFileSize: 30_000_000 },
|
|
18
|
+
},
|
|
19
|
+
'instagram-story': {
|
|
20
|
+
platform: 'instagram-story',
|
|
21
|
+
dimensions: { width: 1080, height: 1920 },
|
|
22
|
+
formats: { static: 'png', animated: 'mp4' },
|
|
23
|
+
quality: { static: { dpi: 72, compression: 0.9 }, animated: { fps: 30 } },
|
|
24
|
+
metadata: { aspectRatio: '9:16', maxFileSize: 30_000_000 },
|
|
25
|
+
},
|
|
26
|
+
'tiktok': {
|
|
27
|
+
platform: 'tiktok',
|
|
28
|
+
dimensions: { width: 1080, height: 1920 },
|
|
29
|
+
formats: { static: 'png', animated: 'mp4' },
|
|
30
|
+
quality: { static: { dpi: 72, compression: 0.85 }, animated: { fps: 60 } },
|
|
31
|
+
metadata: { aspectRatio: '9:16', maxFileSize: 287_000_000 },
|
|
32
|
+
},
|
|
33
|
+
'youtube': {
|
|
34
|
+
platform: 'youtube',
|
|
35
|
+
dimensions: { width: 1920, height: 1080 },
|
|
36
|
+
formats: { static: 'png', animated: 'mp4' },
|
|
37
|
+
quality: { static: { dpi: 72, compression: 0.95 }, animated: { fps: 60, bitrate: 8_000_000 } },
|
|
38
|
+
metadata: { aspectRatio: '16:9' },
|
|
39
|
+
},
|
|
40
|
+
'youtube-thumbnail': {
|
|
41
|
+
platform: 'youtube-thumbnail',
|
|
42
|
+
dimensions: { width: 1280, height: 720 },
|
|
43
|
+
formats: { static: 'png', animated: 'png' },
|
|
44
|
+
quality: { static: { dpi: 72, compression: 0.9 }, animated: { fps: 1 } },
|
|
45
|
+
metadata: { aspectRatio: '16:9', maxFileSize: 2_000_000 },
|
|
46
|
+
},
|
|
47
|
+
'twitter': {
|
|
48
|
+
platform: 'twitter',
|
|
49
|
+
dimensions: { width: 1200, height: 675 },
|
|
50
|
+
formats: { static: 'png', animated: 'gif' },
|
|
51
|
+
quality: { static: { dpi: 72, compression: 0.85 }, animated: { fps: 15 } },
|
|
52
|
+
metadata: { aspectRatio: '16:9', maxFileSize: 15_000_000 },
|
|
53
|
+
},
|
|
54
|
+
'linkedin': {
|
|
55
|
+
platform: 'linkedin',
|
|
56
|
+
dimensions: { width: 1200, height: 627 },
|
|
57
|
+
formats: { static: 'png', animated: 'gif' },
|
|
58
|
+
quality: { static: { dpi: 72, compression: 0.9 }, animated: { fps: 15 } },
|
|
59
|
+
metadata: { aspectRatio: '1.91:1', maxFileSize: 10_000_000 },
|
|
60
|
+
},
|
|
61
|
+
'web': {
|
|
62
|
+
platform: 'web',
|
|
63
|
+
dimensions: { width: 800, height: 600 },
|
|
64
|
+
formats: { static: 'svg', animated: 'svg' },
|
|
65
|
+
quality: { static: { dpi: 72, compression: 1 }, animated: { fps: 60 } },
|
|
66
|
+
metadata: { aspectRatio: '4:3' },
|
|
67
|
+
},
|
|
68
|
+
'print-a4': {
|
|
69
|
+
platform: 'print-a4',
|
|
70
|
+
dimensions: { width: 2480, height: 3508 },
|
|
71
|
+
formats: { static: 'pdf', animated: 'pdf' },
|
|
72
|
+
quality: { static: { dpi: 300, compression: 1 }, animated: { fps: 1 } },
|
|
73
|
+
metadata: { aspectRatio: '1:1.414', colorProfile: 'CMYK' },
|
|
74
|
+
},
|
|
75
|
+
'print-letter': {
|
|
76
|
+
platform: 'print-letter',
|
|
77
|
+
dimensions: { width: 2550, height: 3300 },
|
|
78
|
+
formats: { static: 'pdf', animated: 'pdf' },
|
|
79
|
+
quality: { static: { dpi: 300, compression: 1 }, animated: { fps: 1 } },
|
|
80
|
+
metadata: { aspectRatio: '8.5:11', colorProfile: 'CMYK' },
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
// =============================================================================
|
|
84
|
+
// ZOD SCHEMAS FOR VALIDATION
|
|
85
|
+
// =============================================================================
|
|
86
|
+
export const PlatformSchema = z.enum([
|
|
87
|
+
'instagram',
|
|
88
|
+
'instagram-story',
|
|
89
|
+
'tiktok',
|
|
90
|
+
'youtube',
|
|
91
|
+
'youtube-thumbnail',
|
|
92
|
+
'twitter',
|
|
93
|
+
'linkedin',
|
|
94
|
+
'web',
|
|
95
|
+
'print-a4',
|
|
96
|
+
'print-letter',
|
|
97
|
+
]).describe('Target platform for export');
|
|
98
|
+
export const ExportFormatSchema = z.enum([
|
|
99
|
+
'svg', 'png', 'gif', 'mp4', 'webm', 'pdf',
|
|
100
|
+
]).describe('Export file format');
|
|
101
|
+
export const ScreenshotPolicySchema = z.enum([
|
|
102
|
+
'none', 'on_error', 'on_complete', 'on_request',
|
|
103
|
+
]).describe('When to take screenshots during job');
|
|
104
|
+
export const JobOptionsSchema = z.object({
|
|
105
|
+
name: z.string().optional().describe('Optional job name for tracking'),
|
|
106
|
+
headless: z.boolean().optional().default(true).describe('Run browser in headless mode'),
|
|
107
|
+
screenshotPolicy: ScreenshotPolicySchema.optional().default('on_complete'),
|
|
108
|
+
canvasPreset: PlatformSchema.optional().describe('Canvas size preset'),
|
|
109
|
+
canvasSize: z.object({
|
|
110
|
+
width: z.number(),
|
|
111
|
+
height: z.number(),
|
|
112
|
+
}).optional().describe('Custom canvas dimensions'),
|
|
113
|
+
backgroundColor: z.string().optional().describe('Background color'),
|
|
114
|
+
}).describe('Options for starting an agent job');
|
|
115
|
+
export const BatchOperationTypeSchema = z.enum([
|
|
116
|
+
'create', 'modify', 'delete', 'animate', 'relation', 'canvas', 'generator',
|
|
117
|
+
]).describe('Type of batch operation');
|
|
118
|
+
export const BatchOperationSchema = z.object({
|
|
119
|
+
type: BatchOperationTypeSchema,
|
|
120
|
+
itemType: z.string().optional().describe('Item type for create operations'),
|
|
121
|
+
params: z.record(z.unknown()).describe('Operation parameters'),
|
|
122
|
+
sourceRef: z.string().optional().describe('Reference to source item ($0, $1, etc.)'),
|
|
123
|
+
targetRef: z.string().optional().describe('Reference to target item'),
|
|
124
|
+
}).describe('Single batch operation');
|
|
125
|
+
export const BatchExecuteInputSchema = z.object({
|
|
126
|
+
operations: z.array(BatchOperationSchema).describe('Array of operations to execute'),
|
|
127
|
+
atomic: z.boolean().optional().default(true).describe('Rollback all on any failure'),
|
|
128
|
+
}).describe('Batch execution input');
|
|
129
|
+
export const ResetOptionsSchema = z.object({
|
|
130
|
+
preserveCanvasSize: z.boolean().optional().default(true),
|
|
131
|
+
preserveBackground: z.boolean().optional().default(false),
|
|
132
|
+
canvasPreset: PlatformSchema.optional(),
|
|
133
|
+
backgroundColor: z.string().optional(),
|
|
134
|
+
}).describe('Reset options');
|
|
135
|
+
export const SmartExportOptionsSchema = z.object({
|
|
136
|
+
platform: z.union([PlatformSchema, z.literal('auto')]).optional().default('auto'),
|
|
137
|
+
format: z.union([ExportFormatSchema, z.literal('auto')]).optional().default('auto'),
|
|
138
|
+
quality: z.enum(['draft', 'standard', 'high']).optional().default('standard'),
|
|
139
|
+
includeRecommendations: z.boolean().optional().default(true),
|
|
140
|
+
}).describe('Smart export options');
|
|
141
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/agent/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;A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,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IACnF,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;IAC7E,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CAC7D,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Exports for browser-side usage of PinePaper MCP tools.
|
|
5
5
|
*/
|
|
6
6
|
export { PinePaperBridge, PinePaperStudioHandler, createBridge, createStudioHandler, type BridgeMessage, type BridgeConfig, } from './bridge.js';
|
|
7
|
-
export { PinePaperBrowserController, getBrowserController, resetBrowserController, type BrowserControllerConfig, type ExecuteResult, } from './puppeteer-controller.js';
|
|
7
|
+
export { PinePaperBrowserController, getBrowserController, resetBrowserController, resetBrowserControllerSync, type BrowserControllerConfig, type ExecuteResult, type AgentConnectOptions, type BatchExecuteResult, } from './puppeteer-controller.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,2BAA2B,CAAC"}
|
package/dist/browser/index.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Exports for browser-side usage of PinePaper MCP tools.
|
|
5
5
|
*/
|
|
6
6
|
export { PinePaperBridge, PinePaperStudioHandler, createBridge, createStudioHandler, } from './bridge.js';
|
|
7
|
-
export { PinePaperBrowserController, getBrowserController, resetBrowserController, } from './puppeteer-controller.js';
|
|
7
|
+
export { PinePaperBrowserController, getBrowserController, resetBrowserController, resetBrowserControllerSync, } from './puppeteer-controller.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,GAGpB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,GAGpB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,GAK3B,MAAM,2BAA2B,CAAC"}
|