dantelabs-agentic-school 1.0.0 → 1.2.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/.claude-plugin/marketplace.json +11 -53
- package/cli/bin/cli.js +31 -8
- package/cli/src/commands/info.js +15 -11
- package/cli/src/commands/install.js +53 -29
- package/cli/src/commands/list.js +28 -22
- package/cli/src/commands/uninstall.js +23 -16
- package/cli/src/i18n/index.js +96 -0
- package/cli/src/i18n/locales/en.js +107 -0
- package/cli/src/i18n/locales/ko.js +107 -0
- package/cli/src/lib/config.js +116 -1
- package/cli/src/lib/installer.js +106 -3
- package/package.json +1 -1
- package/plugins/brand-analytics/plugin.json +9 -0
- package/plugins/campaign-orchestration/plugin.json +9 -0
- package/plugins/common/plugin.json +9 -0
- package/plugins/common/skills/kie-image-generator/.env.example +4 -0
- package/plugins/common/skills/kie-image-generator/SKILL.md +281 -0
- package/plugins/common/skills/kie-image-generator/references/api_docs.md +358 -0
- package/plugins/common/skills/kie-image-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/generate_image.py +285 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__init__.py +19 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/__init__.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/flux_kontext.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/gpt4o.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/ideogram.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/imagen.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_edit.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_pro.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream_edit.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/flux_kontext.py +36 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/gpt4o.py +36 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/ideogram.py +85 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/imagen.py +48 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana.py +40 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_edit.py +55 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_pro.py +47 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/seedream.py +51 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/seedream_edit.py +66 -0
- package/plugins/common/skills/kie-image-generator/scripts/utils.py +706 -0
- package/plugins/common/skills/kie-video-generator/SKILL.md +258 -0
- package/plugins/common/skills/kie-video-generator/references/api_docs.md +202 -0
- package/plugins/common/skills/kie-video-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-video-generator/scripts/generate_video.py +356 -0
- package/plugins/common/skills/kie-video-generator/scripts/models/__init__.py +4 -0
- package/plugins/common/skills/kie-video-generator/scripts/utils.py +617 -0
- package/plugins/content-creation/plugin.json +9 -0
- package/plugins/creative-production/plugin.json +9 -0
- package/plugins/customer-segmentation/plugin.json +9 -0
- package/plugins/market-research/plugin.json +9 -0
- package/plugins/persona-builder/plugin.json +9 -0
- package/plugins/social-strategy/plugin.json +9 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Seedream 4.0 parameter handler"""
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Any, Optional
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def build_seedream_payload(prompt: str, **kwargs) -> Dict[str, Any]:
|
|
7
|
+
"""
|
|
8
|
+
Build payload for Seedream 4.0 model.
|
|
9
|
+
|
|
10
|
+
Parameters:
|
|
11
|
+
prompt: Image description (max 5000 chars)
|
|
12
|
+
size: Image size/aspect ratio
|
|
13
|
+
resolution: Image resolution (1K, 2K, 4K) [default: 2K]
|
|
14
|
+
images: Number of images (1-6) [default: 1]
|
|
15
|
+
seed: Random seed for reproducibility
|
|
16
|
+
|
|
17
|
+
Returns:
|
|
18
|
+
API request payload
|
|
19
|
+
"""
|
|
20
|
+
if len(prompt) > 5000:
|
|
21
|
+
raise ValueError("Prompt must be 5000 characters or less")
|
|
22
|
+
|
|
23
|
+
payload = {'prompt': prompt}
|
|
24
|
+
|
|
25
|
+
# Image size
|
|
26
|
+
size = kwargs.get('size')
|
|
27
|
+
if size:
|
|
28
|
+
payload['image_size'] = size
|
|
29
|
+
|
|
30
|
+
# Resolution
|
|
31
|
+
resolution = kwargs.get('resolution', '2K')
|
|
32
|
+
if resolution:
|
|
33
|
+
valid_resolutions = ['1K', '2K', '4K']
|
|
34
|
+
if resolution.upper() not in valid_resolutions:
|
|
35
|
+
raise ValueError(f"Invalid resolution. Must be one of: {', '.join(valid_resolutions)}")
|
|
36
|
+
payload['image_resolution'] = resolution.upper()
|
|
37
|
+
|
|
38
|
+
# Number of images
|
|
39
|
+
images = kwargs.get('images', 1)
|
|
40
|
+
if images:
|
|
41
|
+
images = int(images)
|
|
42
|
+
if not 1 <= images <= 6:
|
|
43
|
+
raise ValueError("images must be between 1 and 6")
|
|
44
|
+
payload['max_images'] = images
|
|
45
|
+
|
|
46
|
+
# Seed
|
|
47
|
+
seed = kwargs.get('seed')
|
|
48
|
+
if seed is not None:
|
|
49
|
+
payload['seed'] = int(seed)
|
|
50
|
+
|
|
51
|
+
return payload
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""Seedream V4 Edit parameter handler"""
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Any, Optional, List
|
|
4
|
+
|
|
5
|
+
def build_seedream_edit_payload(prompt: str, **kwargs) -> Dict[str, Any]:
|
|
6
|
+
"""
|
|
7
|
+
Build payload for Seedream V4 Edit model.
|
|
8
|
+
|
|
9
|
+
Parameters:
|
|
10
|
+
prompt: Image editing instruction (max 5000 chars)
|
|
11
|
+
image_urls: List of input image URLs (required, up to 10 images)
|
|
12
|
+
image_size: Image size/aspect ratio
|
|
13
|
+
image_resolution: Image resolution (1K, 2K, 4K) [default: 1K]
|
|
14
|
+
max_images: Number of output images (1-6) [default: 1]
|
|
15
|
+
seed: Random seed for reproducibility
|
|
16
|
+
|
|
17
|
+
Returns:
|
|
18
|
+
API request payload
|
|
19
|
+
"""
|
|
20
|
+
if len(prompt) > 5000:
|
|
21
|
+
raise ValueError("Prompt must be 5000 characters or less")
|
|
22
|
+
|
|
23
|
+
# image_urls is required for edit model
|
|
24
|
+
image_urls = kwargs.get('image_urls') or kwargs.get('image_url')
|
|
25
|
+
if not image_urls:
|
|
26
|
+
raise ValueError("image_urls parameter is required for seedream-edit model")
|
|
27
|
+
|
|
28
|
+
# Convert single URL to list
|
|
29
|
+
if isinstance(image_urls, str):
|
|
30
|
+
image_urls = [image_urls]
|
|
31
|
+
|
|
32
|
+
if len(image_urls) > 10:
|
|
33
|
+
raise ValueError("Maximum 10 input images allowed")
|
|
34
|
+
|
|
35
|
+
payload = {
|
|
36
|
+
'prompt': prompt,
|
|
37
|
+
'image_urls': image_urls
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# Image size
|
|
41
|
+
size = kwargs.get('size')
|
|
42
|
+
if size:
|
|
43
|
+
payload['image_size'] = size
|
|
44
|
+
|
|
45
|
+
# Resolution
|
|
46
|
+
resolution = kwargs.get('resolution', '1K')
|
|
47
|
+
if resolution:
|
|
48
|
+
valid_resolutions = ['1K', '2K', '4K']
|
|
49
|
+
if resolution.upper() not in valid_resolutions:
|
|
50
|
+
raise ValueError(f"Invalid resolution. Must be one of: {', '.join(valid_resolutions)}")
|
|
51
|
+
payload['image_resolution'] = resolution.upper()
|
|
52
|
+
|
|
53
|
+
# Number of images
|
|
54
|
+
images = kwargs.get('images', 1)
|
|
55
|
+
if images:
|
|
56
|
+
images = int(images)
|
|
57
|
+
if not 1 <= images <= 6:
|
|
58
|
+
raise ValueError("images must be between 1 and 6")
|
|
59
|
+
payload['max_images'] = images
|
|
60
|
+
|
|
61
|
+
# Seed
|
|
62
|
+
seed = kwargs.get('seed')
|
|
63
|
+
if seed is not None:
|
|
64
|
+
payload['seed'] = int(seed)
|
|
65
|
+
|
|
66
|
+
return payload
|