mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Add comprehensive demo showing API changelog generation across two versions (v1.29.0 → v1.30.2): - Mock TypeScript definitions for both versions - Generated JSON snapshots showing structured API surface - Generated changelog with breaking changes, additions, and modifications - Detailed README explaining the system and benefits The demo showcases: ✨ Detection of breaking changes (queuePrompt → queuePromptAsync) ✨ Tracking of new additions (ExtensionMetadata interface, WorkflowId type) ✨ Identification of modifications (NodeDef enhancements, NodeStatus enum extensions) This demonstrates the automated system that will run on every release to document API changes for extension developers. Also exclude demo-snapshots directory from ESLint checking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
59 lines
1.0 KiB
TypeScript
59 lines
1.0 KiB
TypeScript
/**
|
|
* Mock TypeScript definitions representing v1.29.0 API surface
|
|
* This represents the public API as it existed in version 1.29.0
|
|
*/
|
|
|
|
export interface ComfyApi {
|
|
/**
|
|
* Get API URL for backend calls
|
|
*/
|
|
apiURL(path: string): string
|
|
|
|
/**
|
|
* Get file URL for static resources
|
|
*/
|
|
fileURL(path: string): string
|
|
|
|
/**
|
|
* Queue a prompt for execution
|
|
*/
|
|
queuePrompt(prompt: object): Promise<{ prompt_id: string }>
|
|
|
|
/**
|
|
* Interrupt current execution
|
|
*/
|
|
interrupt(): Promise<void>
|
|
}
|
|
|
|
export interface NodeDef {
|
|
name: string
|
|
category: string
|
|
display_name?: string
|
|
description?: string
|
|
python_module: string
|
|
}
|
|
|
|
export enum NodeStatus {
|
|
IDLE = 'idle',
|
|
QUEUED = 'queued',
|
|
RUNNING = 'running'
|
|
}
|
|
|
|
export interface WorkflowMetadata {
|
|
title?: string
|
|
description?: string
|
|
author?: string
|
|
version?: string
|
|
}
|
|
|
|
export class WorkflowManager {
|
|
workflows: Map<string, object>
|
|
|
|
constructor()
|
|
|
|
loadWorkflow(id: string): Promise<object>
|
|
saveWorkflow(id: string, data: object): Promise<void>
|
|
}
|
|
|
|
export type NodeId = string
|