diff --git a/@packages/imajin-app/package.json b/@packages/imajin-app/package.json index c1cc874e..aeefc32c 100644 --- a/@packages/imajin-app/package.json +++ b/@packages/imajin-app/package.json @@ -51,6 +51,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/imajin-config/package.json b/@packages/imajin-config/package.json index 3bc93fbc..a6373b5a 100644 --- a/@packages/imajin-config/package.json +++ b/@packages/imajin-config/package.json @@ -54,6 +54,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/imajin-electron/package.json b/@packages/imajin-electron/package.json index dbbd5c16..7a397684 100644 --- a/@packages/imajin-electron/package.json +++ b/@packages/imajin-electron/package.json @@ -60,6 +60,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/imajin-mcp/package.json b/@packages/imajin-mcp/package.json index 866cbd10..df64ac31 100644 --- a/@packages/imajin-mcp/package.json +++ b/@packages/imajin-mcp/package.json @@ -51,6 +51,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/imajin-moderator-client/package.json b/@packages/imajin-moderator-client/package.json index 77303657..08b85ede 100644 --- a/@packages/imajin-moderator-client/package.json +++ b/@packages/imajin-moderator-client/package.json @@ -42,6 +42,6 @@ "build": true }, "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/imajin-react/package.json b/@packages/imajin-react/package.json index cdc55873..a36381fd 100644 --- a/@packages/imajin-react/package.json +++ b/@packages/imajin-react/package.json @@ -67,6 +67,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/@packages/py-service-fastapi-bootstrap b/@packages/py-service-fastapi-bootstrap new file mode 160000 index 00000000..797bcf99 --- /dev/null +++ b/@packages/py-service-fastapi-bootstrap @@ -0,0 +1 @@ +Subproject commit 797bcf9973074bda90f5853cabbf1264434f87a0 diff --git a/services/imajin-aesthetic/client/package.json b/services/imajin-aesthetic/client/package.json index 296d7069..367644d3 100644 --- a/services/imajin-aesthetic/client/package.json +++ b/services/imajin-aesthetic/client/package.json @@ -19,6 +19,6 @@ "typescript": "^5.4.0" }, "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-aesthetic/types/package.json b/services/imajin-aesthetic/types/package.json index 2008f147..772158bf 100644 --- a/services/imajin-aesthetic/types/package.json +++ b/services/imajin-aesthetic/types/package.json @@ -16,6 +16,6 @@ "typescript": "^5.4.0" }, "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-diffusion/client/package.json b/services/imajin-diffusion/client/package.json index 7c703d98..61b1dca4 100644 --- a/services/imajin-diffusion/client/package.json +++ b/services/imajin-diffusion/client/package.json @@ -38,6 +38,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-diffusion/types/package.json b/services/imajin-diffusion/types/package.json index 78cb85b0..617bbfaa 100644 --- a/services/imajin-diffusion/types/package.json +++ b/services/imajin-diffusion/types/package.json @@ -40,6 +40,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-identity/client/package.json b/services/imajin-identity/client/package.json index 7ec91f2b..42452885 100644 --- a/services/imajin-identity/client/package.json +++ b/services/imajin-identity/client/package.json @@ -39,6 +39,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-identity/types/package.json b/services/imajin-identity/types/package.json index bc84e270..444ef158 100644 --- a/services/imajin-identity/types/package.json +++ b/services/imajin-identity/types/package.json @@ -41,6 +41,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-media-gallery/client/package.json b/services/imajin-media-gallery/client/package.json index 3aa74b12..43d1161e 100644 --- a/services/imajin-media-gallery/client/package.json +++ b/services/imajin-media-gallery/client/package.json @@ -32,6 +32,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-media-gallery/types/package.json b/services/imajin-media-gallery/types/package.json index 5263e56d..9f681474 100644 --- a/services/imajin-media-gallery/types/package.json +++ b/services/imajin-media-gallery/types/package.json @@ -34,6 +34,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-processing/client/dist/index.d.mts b/services/imajin-processing/client/dist/index.d.mts deleted file mode 100644 index e547820e..00000000 --- a/services/imajin-processing/client/dist/index.d.mts +++ /dev/null @@ -1,84 +0,0 @@ -import { HealthResponse, AllowedMimeType, ProcessOperation, FamilyName, ProcessResponse, SanitizeOptions, SanitizeResponse, ResizeMode, ImageFormat, ResizeResponse, ThumbnailResponse, OptimizationPreset, DerivativesResponse, SingleDerivativeResponse, MasterResponse, ConvertResponse, MetadataResponse } from '@lilith/imajin-processing-types'; -export { AllowedMimeType, ConvertOptions, ConvertRequest, ConvertResponse, DerivativeResult, DerivativesOptions, DerivativesRequest, DerivativesResponse, FamilyName, HealthResponse, IMAGE_MAGIC_BYTES, ImageFormat, ImageMetadata, ImageSize, ImageValidationResult, MasterRequest, MasterResponse, MetadataRequest, MetadataResponse, OPTIMIZATION_PRESETS, OptimizationPreset, ProcessOperation, ProcessRequest, ProcessResponse, ProcessedImage, ResizeMode, ResizeOptions, ResizeRequest, ResizeResponse, SanitizeOptions, SanitizeRequest, SanitizeResponse, SingleDerivativeRequest, SingleDerivativeResponse, ThumbnailRequest, ThumbnailResponse, detectMimeTypeFromBytes, validateImageBytes, validateMagicBytes } from '@lilith/imajin-processing-types'; - -/** - * Image Processing Client - * - * HTTP client for the image processing service. - */ - -interface ImageProcessingClientConfig { - /** Base URL of the image processing service */ - baseUrl: string; - /** Request timeout in milliseconds (default: 60000) */ - timeout?: number; -} -declare class ImageProcessingError extends Error { - readonly statusCode?: number | undefined; - readonly code?: string | undefined; - constructor(message: string, statusCode?: number | undefined, code?: string | undefined); -} -declare class ImageProcessingClient { - private readonly baseUrl; - private readonly timeout; - constructor(config: ImageProcessingClientConfig); - private fetch; - /** - * Check service health. - */ - health(): Promise; - /** - * Process an image through a pipeline of operations. - * Operations are executed sequentially in the order specified. - * - * @param image - Base64-encoded image data - * @param mimeType - MIME type of the image - * @param operations - Array of operations to apply - * @param family - Image family (required if 'derivatives' operation is included) - */ - process(image: string, mimeType: AllowedMimeType, operations: ProcessOperation[], family?: FamilyName): Promise; - /** - * Sanitize an image by re-encoding it. - * Strips EXIF data and potential malicious content. - */ - sanitize(image: string, mimeType: AllowedMimeType, options?: SanitizeOptions): Promise; - /** - * Resize an image with the specified mode. - */ - resize(image: string, width: number, height: number, options?: { - mode?: ResizeMode; - format?: ImageFormat; - quality?: number; - background?: string; - }): Promise; - /** - * Generate a thumbnail. - */ - thumbnail(image: string, size?: number, quality?: number): Promise; - /** - * Generate all derivatives for a family. - */ - derivatives(image: string, family: FamilyName, preset?: OptimizationPreset): Promise; - /** - * Clip a single derivative from an image. - */ - singleDerivative(image: string, width: number, height: number, preset?: OptimizationPreset): Promise; - /** - * Prepare a master image for a family. - */ - master(image: string, family: FamilyName, preset?: OptimizationPreset): Promise; - /** - * Convert an image to a different format. - */ - convert(image: string, format: ImageFormat, quality?: number): Promise; - /** - * Get image metadata. - */ - metadata(image: string): Promise; -} -/** - * Create a client for local development. - */ -declare function createLocalClient(port?: number): ImageProcessingClient; - -export { ImageProcessingClient, type ImageProcessingClientConfig, ImageProcessingError, createLocalClient }; diff --git a/services/imajin-processing/client/package.json b/services/imajin-processing/client/package.json index efdd50c6..20d9ca89 100644 --- a/services/imajin-processing/client/package.json +++ b/services/imajin-processing/client/package.json @@ -42,6 +42,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-processing/types/package.json b/services/imajin-processing/types/package.json index e7e95800..0f916f8e 100644 --- a/services/imajin-processing/types/package.json +++ b/services/imajin-processing/types/package.json @@ -41,6 +41,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-prompt/client/dist/index.d.ts b/services/imajin-prompt/client/dist/index.d.ts deleted file mode 100644 index 5effb1a3..00000000 --- a/services/imajin-prompt/client/dist/index.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { HealthResponse, PipelineInfo, GeneratePromptsRequest, GeneratePromptsResponse } from '@lilith/imajin-prompt-types'; -export * from '@lilith/imajin-prompt-types'; - -/** - * @lilith/imajin-prompt-client - * - * TypeScript HTTP client for the imagegen-assistant service. - */ - -/** Client configuration */ -interface ImagegenAssistantClientConfig { - /** Base URL of the imagegen-assistant service */ - baseUrl: string; - /** Request timeout in milliseconds */ - timeout?: number; - /** Custom headers to include in requests */ - headers?: Record; -} -/** - * HTTP client for the imagegen-assistant service. - * - * @example - * ```ts - * const client = new ImagegenAssistantClient({ - * baseUrl: 'http://localhost:8003', - * }); - * - * const response = await client.generatePrompts({ - * pipelineId: 'skeleton-anime-girls', - * userInput: 'Generate 5 hologram style skeletons', - * }); - * ``` - */ -declare class ImagegenAssistantClient { - private readonly baseUrl; - private readonly timeout; - private readonly headers; - constructor(config: ImagegenAssistantClientConfig); - /** - * Check service health and Ollama availability. - */ - healthCheck(): Promise; - /** - * List all available pipelines. - */ - listPipelines(): Promise; - /** - * Get a specific pipeline by ID. - */ - getPipeline(pipelineId: string): Promise; - /** - * Generate image prompts using LLM. - * - * @param request - The prompt generation request - * @returns Generated prompts and metadata - */ - generatePrompts(request: GeneratePromptsRequest): Promise; - /** - * Generate prompts with a specific pipeline. - * Convenience method that combines getPipeline and generatePrompts. - * - * @param pipelineId - Pipeline to use - * @param userInput - User's prompt request - */ - generate(pipelineId: string, userInput: string): Promise; - /** - * Check if the service is healthy. - */ - isHealthy(): Promise; - /** - * Internal fetch wrapper with timeout and error handling. - */ - private fetch; -} -/** - * Error class for imagegen-assistant client errors. - */ -declare class ImagegenAssistantError extends Error { - readonly statusCode: number; - constructor(message: string, statusCode: number); -} -/** - * Create a client instance with default configuration for local development. - */ -declare function createLocalClient(): ImagegenAssistantClient; - -export { ImagegenAssistantClient, type ImagegenAssistantClientConfig, ImagegenAssistantError, createLocalClient }; diff --git a/services/imajin-prompt/client/package.json b/services/imajin-prompt/client/package.json index 9c7cb2ab..8d02620a 100644 --- a/services/imajin-prompt/client/package.json +++ b/services/imajin-prompt/client/package.json @@ -42,6 +42,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-prompt/types/dist/index.d.ts b/services/imajin-prompt/types/dist/index.d.ts deleted file mode 100644 index 666bfdb4..00000000 --- a/services/imajin-prompt/types/dist/index.d.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { z } from 'zod'; - -/** - * @lilith/imajin-prompt-types - * - * TypeScript types for the imagegen-assistant service. - */ - -/** Available image generation models */ -type ImageModel = 'photorealistic' | 'anime'; -/** Parsed prompt from LLM response */ -interface ParsedPrompt { - name: string; - prompt: string; - negativePrompt: string; -} -/** Pipeline configuration */ -interface PipelineInfo { - id: string; - name: string; - description: string; - category: string; - model: ImageModel; - families: string[]; - examplePrompts: string[]; -} -/** Request to generate prompts */ -interface GeneratePromptsRequest { - pipelineId: string; - userInput: string; - context?: Record; -} -/** Response from prompt generation */ -interface GeneratePromptsResponse { - rawResponse: string; - prompts: ParsedPrompt[]; - model: string; - durationMs: number; -} -/** Health check response */ -interface HealthResponse { - status: 'healthy' | 'degraded' | 'unhealthy'; - service: string; - version: string; - ollamaAvailable: boolean; - model: string; -} -declare const ParsedPromptSchema: z.ZodObject<{ - name: z.ZodString; - prompt: z.ZodString; - negativePrompt: z.ZodDefault; -}, "strip", z.ZodTypeAny, { - name: string; - prompt: string; - negativePrompt: string; -}, { - name: string; - prompt: string; - negativePrompt?: string | undefined; -}>; -declare const GeneratePromptsRequestSchema: z.ZodObject<{ - pipelineId: z.ZodString; - userInput: z.ZodString; - context: z.ZodOptional>; -}, "strip", z.ZodTypeAny, { - pipelineId: string; - userInput: string; - context?: Record | undefined; -}, { - pipelineId: string; - userInput: string; - context?: Record | undefined; -}>; -declare const GeneratePromptsResponseSchema: z.ZodObject<{ - rawResponse: z.ZodString; - prompts: z.ZodArray; - }, "strip", z.ZodTypeAny, { - name: string; - prompt: string; - negativePrompt: string; - }, { - name: string; - prompt: string; - negativePrompt?: string | undefined; - }>, "many">; - model: z.ZodString; - durationMs: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - rawResponse: string; - prompts: { - name: string; - prompt: string; - negativePrompt: string; - }[]; - model: string; - durationMs: number; -}, { - rawResponse: string; - prompts: { - name: string; - prompt: string; - negativePrompt?: string | undefined; - }[]; - model: string; - durationMs: number; -}>; -declare const PipelineInfoSchema: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - description: z.ZodString; - category: z.ZodString; - model: z.ZodEnum<["photorealistic", "anime"]>; - families: z.ZodArray; - examplePrompts: z.ZodArray; -}, "strip", z.ZodTypeAny, { - name: string; - model: "photorealistic" | "anime"; - id: string; - description: string; - category: string; - families: string[]; - examplePrompts: string[]; -}, { - name: string; - model: "photorealistic" | "anime"; - id: string; - description: string; - category: string; - families: string[]; - examplePrompts: string[]; -}>; -declare const HealthResponseSchema: z.ZodObject<{ - status: z.ZodEnum<["healthy", "degraded", "unhealthy"]>; - service: z.ZodString; - version: z.ZodString; - ollamaAvailable: z.ZodBoolean; - model: z.ZodString; -}, "strip", z.ZodTypeAny, { - status: "healthy" | "degraded" | "unhealthy"; - model: string; - service: string; - version: string; - ollamaAvailable: boolean; -}, { - status: "healthy" | "degraded" | "unhealthy"; - model: string; - service: string; - version: string; - ollamaAvailable: boolean; -}>; -declare function isValidPrompt(prompt: unknown): prompt is ParsedPrompt; -declare function isHealthy(response: HealthResponse): boolean; - -export { type GeneratePromptsRequest, GeneratePromptsRequestSchema, type GeneratePromptsResponse, GeneratePromptsResponseSchema, type HealthResponse, HealthResponseSchema, type ImageModel, type ParsedPrompt, ParsedPromptSchema, type PipelineInfo, PipelineInfoSchema, isHealthy, isValidPrompt }; diff --git a/services/imajin-prompt/types/package.json b/services/imajin-prompt/types/package.json index fad0582d..1a00c9ce 100644 --- a/services/imajin-prompt/types/package.json +++ b/services/imajin-prompt/types/package.json @@ -42,6 +42,6 @@ "author": "Lilith ", "license": "MIT", "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-semantic/client/package.json b/services/imajin-semantic/client/package.json index 9efabf64..7a452707 100644 --- a/services/imajin-semantic/client/package.json +++ b/services/imajin-semantic/client/package.json @@ -19,6 +19,6 @@ "typescript": "^5.4.0" }, "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } } diff --git a/services/imajin-semantic/types/package.json b/services/imajin-semantic/types/package.json index 5d496c0c..f446de96 100644 --- a/services/imajin-semantic/types/package.json +++ b/services/imajin-semantic/types/package.json @@ -16,6 +16,6 @@ "typescript": "^5.4.0" }, "publishConfig": { - "registry": "http://forge.black.lan/api/packages/lilith/npm/" + "registry": "http://134.199.243.61:4873/" } }