@markus-global/cli 0.8.3 → 0.8.4-rc.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.
Files changed (40) hide show
  1. package/dist/backend.d.ts +36 -0
  2. package/dist/backend.d.ts.map +1 -0
  3. package/dist/backend.js +40 -0
  4. package/dist/backend.js.map +1 -0
  5. package/dist/commands/doctor.d.ts +4 -0
  6. package/dist/commands/doctor.d.ts.map +1 -1
  7. package/dist/commands/doctor.js +1 -1
  8. package/dist/commands/doctor.js.map +1 -1
  9. package/dist/commands/init.js +2 -2
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/model.d.ts +7 -0
  12. package/dist/commands/model.d.ts.map +1 -1
  13. package/dist/commands/model.js +1 -1
  14. package/dist/commands/model.js.map +1 -1
  15. package/dist/commands/start.d.ts +27 -0
  16. package/dist/commands/start.d.ts.map +1 -1
  17. package/dist/commands/start.js +125 -34
  18. package/dist/commands/start.js.map +1 -1
  19. package/dist/commands/update.d.ts +3 -0
  20. package/dist/commands/update.d.ts.map +1 -0
  21. package/dist/commands/update.js +156 -0
  22. package/dist/commands/update.js.map +1 -0
  23. package/dist/connector-service.d.ts.map +1 -1
  24. package/dist/connector-service.js +2 -0
  25. package/dist/connector-service.js.map +1 -1
  26. package/dist/index.js +2 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/markus.mjs +4900 -2333
  29. package/dist/paths.d.ts.map +1 -1
  30. package/dist/paths.js +15 -3
  31. package/dist/paths.js.map +1 -1
  32. package/dist/web-ui/assets/index-C6BPIdny.css +1 -0
  33. package/dist/web-ui/assets/index-ugUvAZYb.js +724 -0
  34. package/dist/web-ui/index.html +2 -2
  35. package/package.json +5 -1
  36. package/dist/web-ui/assets/index-BTOJrMl9.js +0 -724
  37. package/dist/web-ui/assets/index-DVGYGLou.css +0 -1
  38. package/templates/skills/image-generation/SKILL.md +0 -183
  39. package/templates/skills/image-generation/server.mjs +0 -1269
  40. package/templates/skills/image-generation/skill.json +0 -26
@@ -1,183 +0,0 @@
1
- ---
2
- name: image-generation
3
- description: Generate images using AI models across multiple providers
4
- ---
5
-
6
- # Image Generation
7
-
8
- You have access to AI image generation tools (prefixed `image-generation__`) that can create
9
- images from text prompts using multiple providers and models.
10
-
11
- ## When to use these tools
12
-
13
- Use image generation tools when the user wants to:
14
- - Create, draw, or generate images from a text description
15
- - Create illustrations, diagrams, concept art, or any visual content
16
- - Edit or modify an existing image
17
- - Generate variations of an image
18
-
19
- Do NOT use these tools for:
20
- - Taking screenshots (use Chrome DevTools instead)
21
- - Converting documents to images (use MarkItDown or other tools)
22
- - Text-only diagrams where Mermaid/ASCII would suffice
23
-
24
- ## Available tools
25
-
26
- | Tool | Purpose |
27
- |------|---------|
28
- | `image-generation__generate_image` | Generate an image from a text prompt |
29
- | `image-generation__list_providers` | Check which providers are configured and available |
30
- | `image-generation__edit_image` | Edit/modify an existing image (OpenAI, Stability, Ideogram) |
31
-
32
- ## Supported providers
33
-
34
- The skill auto-detects available providers based on environment variables.
35
- If no provider is specified, the first available one is used.
36
-
37
- | Provider | Env Variable | Default Model | Strengths |
38
- |----------|-------------|---------------|-----------|
39
- | OpenAI | `OPENAI_API_KEY` | dall-e-3 | High quality, good prompt following, style control |
40
- | Azure OpenAI | `AZURE_OPENAI_API_KEY` + `AZURE_OPENAI_ENDPOINT` | dall-e-3 | Enterprise, same quality as OpenAI |
41
- | Stability AI | `STABILITY_API_KEY` | sd3-large | Fine control, negative prompts, inpainting |
42
- | Google Imagen | `GOOGLE_API_KEY` | imagen-3.0-generate-002 | Photorealistic, good text rendering |
43
- | Replicate | `REPLICATE_API_TOKEN` | black-forest-labs/flux-1.1-pro | Wide model selection, Flux models |
44
- | Tongyi Wanxiang | `DASHSCOPE_API_KEY` | wanx2.1-t2i-turbo | Chinese text support, fast turbo mode |
45
- | Zhipu CogView | `ZHIPU_API_KEY` | cogview-4 | Chinese text support, multiple styles |
46
- | SiliconFlow | `SILICONFLOW_API_KEY` | FLUX.1-schnell | Affordable, hosts FLUX & SD & Qwen models, fast |
47
- | Together AI | `TOGETHER_API_KEY` | FLUX.1.1-pro | High-quality FLUX, competitive pricing |
48
- | FAL | `FAL_KEY` | flux-pro/v1.1 | Fast inference, Flux Pro/Dev/Schnell |
49
- | Ideogram | `IDEOGRAM_API_KEY` | V_2 | Excellent text-in-image, supports editing |
50
- | Baidu ERNIE ViLG | `BAIDU_API_KEY` + `BAIDU_SECRET_KEY` | sd_xl | Chinese ecosystem, Baidu Cloud |
51
- | Tencent Hunyuan | `HUNYUAN_API_KEY` | hunyuan-image | Chinese ecosystem, Tencent Cloud |
52
- | Volcengine (Doubao) | `VOLCENGINE_API_KEY` | general_v2.1_L | Chinese ecosystem, ByteDance Cloud |
53
-
54
- ## Key parameters
55
-
56
- ### Common parameters (all providers)
57
-
58
- - **prompt** (required): Text description of the desired image. Be specific and detailed.
59
- - **size**: Image dimensions (e.g. `1024x1024`, `1792x1024`). Check provider capabilities for supported sizes.
60
- - **n**: Number of images to generate (default: 1).
61
- - **output_dir**: Where to save generated files (default: `~/.markus/generated-images/`).
62
- - **output_format**: `png`, `jpeg`, or `webp` (default: `png`).
63
-
64
- ### Provider/model selection
65
-
66
- - **provider**: Force a specific provider (e.g. `openai`, `stability`, `zhipu`, `siliconflow`, `fal`). Omit to auto-select.
67
- - **model**: Specific model name. Each provider has a default, but you can override:
68
- - OpenAI: `dall-e-3`, `dall-e-2`, `gpt-image-1`
69
- - Stability: `sd3-large`, `sd3-large-turbo`, `stable-image-ultra`, `stable-image-core`
70
- - Google: `imagen-3.0-generate-002`
71
- - Replicate: `black-forest-labs/flux-1.1-pro`, `black-forest-labs/flux-schnell`
72
- - Tongyi: `wanx2.1-t2i-turbo`, `wanx2.1-t2i-plus`
73
- - Zhipu: `cogview-4`, `cogview-4-250304`, `cogview-3-plus`
74
- - SiliconFlow: `black-forest-labs/FLUX.1-schnell`, `black-forest-labs/FLUX.1-dev`, `black-forest-labs/FLUX.1-pro`, `black-forest-labs/FLUX.1.1-pro`, `stabilityai/stable-diffusion-3-5-large`, `stabilityai/stable-diffusion-3-5-medium`, `Qwen/Qwen-Image`, `deepseek-ai/Janus-Pro-7B`
75
- - Together: `black-forest-labs/FLUX.1.1-pro`, `black-forest-labs/FLUX.1-schnell`
76
- - FAL: `fal-ai/flux-pro/v1.1`, `fal-ai/flux/schnell`, `fal-ai/flux/dev`
77
- - Ideogram: `V_2`, `V_2_TURBO`, `V_1`
78
- - Baidu: `sd_xl`
79
- - Hunyuan: `hunyuan-image`, `hunyuan-image-fast`
80
- - Volcengine: `general_v2.1_L`, `general_v2.0_L`
81
-
82
- ### Style and quality
83
-
84
- - **quality**: `standard` or `hd` (OpenAI, Zhipu)
85
- - **style**: `natural` or `vivid` (OpenAI), or style-specific values (Tongyi)
86
- - **negative_prompt**: Describe what to avoid (Stability, Google, Replicate, Tongyi, SiliconFlow, Together, FAL, Ideogram, Baidu, Hunyuan)
87
- - **seed**: Integer for reproducible results (Stability, Google, Replicate, Tongyi, SiliconFlow, FAL, Ideogram, Baidu, Volcengine)
88
-
89
- ## Best practices
90
-
91
- 1. **Check availability first**: If unsure which providers are configured, call
92
- `list_providers` before generating. This avoids confusing error messages.
93
-
94
- 2. **Write detailed prompts**: More specific prompts produce better results. Include subject,
95
- style, mood, lighting, composition, and medium (e.g. "oil painting", "photograph",
96
- "3D render").
97
-
98
- 3. **Confirm with user**: Before generating, confirm the prompt and parameters with the user,
99
- especially if they gave a vague request. Share the exact prompt you plan to use.
100
-
101
- 4. **Choose the right provider**: Match provider to use case:
102
- - Photorealistic images → OpenAI DALL-E 3, Google Imagen
103
- - Artistic/creative control → Stability AI, Ideogram (supports negative prompts, seeds)
104
- - Chinese text/content → Tongyi Wanxiang, Zhipu CogView, Baidu ERNIE, Hunyuan, Volcengine
105
- - Cutting-edge Flux models → Replicate, FAL, Together AI, SiliconFlow
106
- - Budget-friendly → SiliconFlow, Together AI
107
- - Text-in-image quality → Ideogram
108
- - Image editing/inpainting → OpenAI (DALL-E 2), Stability AI, Ideogram
109
-
110
- 5. **Report results clearly**: After generation, tell the user:
111
- - The file path where the image was saved
112
- - Which provider and model were used
113
- - The revised prompt (if the provider modified it, e.g. OpenAI)
114
-
115
- 6. **Handle errors gracefully**: If a provider fails, suggest the user:
116
- - Check that the API key is valid and has quota
117
- - Try a different provider
118
- - Simplify the prompt if content policy rejected it
119
-
120
- ## Common workflows
121
-
122
- ### Basic image generation
123
- ```
124
- 1. list_providers → check what's available
125
- 2. generate_image → prompt="A serene mountain landscape at sunset, oil painting style",
126
- size="1792x1024"
127
- 3. Report file path and provider used to user
128
- ```
129
-
130
- ### Specific provider and model
131
- ```
132
- 1. generate_image → prompt="...", provider="stability", model="sd3-large",
133
- negative_prompt="blurry, low quality", seed=42
134
- ```
135
-
136
- ### Image editing
137
- ```
138
- 1. edit_image → image_path="/path/to/original.png",
139
- prompt="Replace the sky with a starry night",
140
- provider="stability"
141
- ```
142
-
143
- ### Batch generation for comparison
144
- ```
145
- 1. generate_image → prompt="...", provider="openai"
146
- 2. generate_image → prompt="...", provider="stability"
147
- 3. Present both results to user for comparison
148
- ```
149
-
150
- ## User setup guide
151
-
152
- If no providers are configured, guide the user to set environment variables:
153
-
154
- ```bash
155
- # --- Global providers ---
156
- export OPENAI_API_KEY="sk-..."
157
- export STABILITY_API_KEY="sk-..."
158
- export GOOGLE_API_KEY="..."
159
- export REPLICATE_API_TOKEN="r8_..."
160
-
161
- # --- Flux / SD hosting platforms ---
162
- export SILICONFLOW_API_KEY="sk-..."
163
- export TOGETHER_API_KEY="..."
164
- export FAL_KEY="..."
165
-
166
- # --- Specialized ---
167
- export IDEOGRAM_API_KEY="..."
168
-
169
- # --- Chinese providers ---
170
- export DASHSCOPE_API_KEY="sk-..." # Tongyi Wanxiang (Aliyun)
171
- export ZHIPU_API_KEY="..." # Zhipu CogView
172
- export HUNYUAN_API_KEY="..." # Tencent Hunyuan
173
- export VOLCENGINE_API_KEY="..." # Volcengine (Doubao / ByteDance)
174
-
175
- # --- Requires two keys ---
176
- export AZURE_OPENAI_API_KEY="..."
177
- export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
178
-
179
- export BAIDU_API_KEY="..." # Baidu ERNIE ViLG
180
- export BAIDU_SECRET_KEY="..."
181
- ```
182
-
183
- These can be set in the shell profile, `.env` file, or Markus settings.