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.
Files changed (53) hide show
  1. package/.claude-plugin/marketplace.json +11 -53
  2. package/cli/bin/cli.js +31 -8
  3. package/cli/src/commands/info.js +15 -11
  4. package/cli/src/commands/install.js +53 -29
  5. package/cli/src/commands/list.js +28 -22
  6. package/cli/src/commands/uninstall.js +23 -16
  7. package/cli/src/i18n/index.js +96 -0
  8. package/cli/src/i18n/locales/en.js +107 -0
  9. package/cli/src/i18n/locales/ko.js +107 -0
  10. package/cli/src/lib/config.js +116 -1
  11. package/cli/src/lib/installer.js +106 -3
  12. package/package.json +1 -1
  13. package/plugins/brand-analytics/plugin.json +9 -0
  14. package/plugins/campaign-orchestration/plugin.json +9 -0
  15. package/plugins/common/plugin.json +9 -0
  16. package/plugins/common/skills/kie-image-generator/.env.example +4 -0
  17. package/plugins/common/skills/kie-image-generator/SKILL.md +281 -0
  18. package/plugins/common/skills/kie-image-generator/references/api_docs.md +358 -0
  19. package/plugins/common/skills/kie-image-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
  20. package/plugins/common/skills/kie-image-generator/scripts/generate_image.py +285 -0
  21. package/plugins/common/skills/kie-image-generator/scripts/models/__init__.py +19 -0
  22. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/__init__.cpython-313.pyc +0 -0
  23. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/flux_kontext.cpython-313.pyc +0 -0
  24. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/gpt4o.cpython-313.pyc +0 -0
  25. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/ideogram.cpython-313.pyc +0 -0
  26. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/imagen.cpython-313.pyc +0 -0
  27. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana.cpython-313.pyc +0 -0
  28. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_edit.cpython-313.pyc +0 -0
  29. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_pro.cpython-313.pyc +0 -0
  30. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream.cpython-313.pyc +0 -0
  31. package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream_edit.cpython-313.pyc +0 -0
  32. package/plugins/common/skills/kie-image-generator/scripts/models/flux_kontext.py +36 -0
  33. package/plugins/common/skills/kie-image-generator/scripts/models/gpt4o.py +36 -0
  34. package/plugins/common/skills/kie-image-generator/scripts/models/ideogram.py +85 -0
  35. package/plugins/common/skills/kie-image-generator/scripts/models/imagen.py +48 -0
  36. package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana.py +40 -0
  37. package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_edit.py +55 -0
  38. package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_pro.py +47 -0
  39. package/plugins/common/skills/kie-image-generator/scripts/models/seedream.py +51 -0
  40. package/plugins/common/skills/kie-image-generator/scripts/models/seedream_edit.py +66 -0
  41. package/plugins/common/skills/kie-image-generator/scripts/utils.py +706 -0
  42. package/plugins/common/skills/kie-video-generator/SKILL.md +258 -0
  43. package/plugins/common/skills/kie-video-generator/references/api_docs.md +202 -0
  44. package/plugins/common/skills/kie-video-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
  45. package/plugins/common/skills/kie-video-generator/scripts/generate_video.py +356 -0
  46. package/plugins/common/skills/kie-video-generator/scripts/models/__init__.py +4 -0
  47. package/plugins/common/skills/kie-video-generator/scripts/utils.py +617 -0
  48. package/plugins/content-creation/plugin.json +9 -0
  49. package/plugins/creative-production/plugin.json +9 -0
  50. package/plugins/customer-segmentation/plugin.json +9 -0
  51. package/plugins/market-research/plugin.json +9 -0
  52. package/plugins/persona-builder/plugin.json +9 -0
  53. 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