@intentsolutionsio/ai-sdk-agents 1.0.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/plugin.json +27 -0
- package/LICENSE +21 -0
- package/README.md +951 -0
- package/agents/multi-agent-orchestrator.md +363 -0
- package/commands/ai-agent-create.md +501 -0
- package/commands/ai-agents-setup.md +429 -0
- package/commands/ai-agents-test.md +529 -0
- package/package.json +49 -0
- package/skills/orchestrating-multi-agent-systems/SKILL.md +81 -0
- package/skills/orchestrating-multi-agent-systems/assets/README.md +7 -0
- package/skills/orchestrating-multi-agent-systems/assets/agent_template.ts +110 -0
- package/skills/orchestrating-multi-agent-systems/assets/example_coordinator.ts +100 -0
- package/skills/orchestrating-multi-agent-systems/assets/example_workflow.json +143 -0
- package/skills/orchestrating-multi-agent-systems/references/README.md +4 -0
- package/skills/orchestrating-multi-agent-systems/references/errors.md +26 -0
- package/skills/orchestrating-multi-agent-systems/references/examples.md +418 -0
- package/skills/orchestrating-multi-agent-systems/references/implementation.md +39 -0
- package/skills/orchestrating-multi-agent-systems/scripts/README.md +11 -0
- package/skills/orchestrating-multi-agent-systems/scripts/agent_setup.sh +94 -0
- package/skills/orchestrating-multi-agent-systems/scripts/dependency_installer.sh +100 -0
- package/skills/orchestrating-multi-agent-systems/scripts/env_setup.sh +94 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
ai-sdk-agents - Initialization Script
|
|
4
|
+
Creates and populates .env file with API keys based on user input.
|
|
5
|
+
Generated: 2025-12-10 03:48:17
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import os
|
|
9
|
+
import json
|
|
10
|
+
import argparse
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
def create_project_structure(project_name: str, output_dir: str = "."):
|
|
14
|
+
"""Create project structure for ai-sdk-agents."""
|
|
15
|
+
base_path = Path(output_dir) / project_name
|
|
16
|
+
|
|
17
|
+
# Create directories
|
|
18
|
+
directories = [
|
|
19
|
+
base_path,
|
|
20
|
+
base_path / "config",
|
|
21
|
+
base_path / "data",
|
|
22
|
+
base_path / "output",
|
|
23
|
+
base_path / "logs"
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
for dir_path in directories:
|
|
27
|
+
dir_path.mkdir(parents=True, exist_ok=True)
|
|
28
|
+
print(f"ā Created {dir_path}")
|
|
29
|
+
|
|
30
|
+
# Create configuration file
|
|
31
|
+
config = {
|
|
32
|
+
"project": project_name,
|
|
33
|
+
"version": "1.0.0",
|
|
34
|
+
"skill": "ai-sdk-agents",
|
|
35
|
+
"category": "ai-ml",
|
|
36
|
+
"created": time.strftime('%Y-%m-%d %H:%M:%S'),
|
|
37
|
+
"settings": {
|
|
38
|
+
"debug": False,
|
|
39
|
+
"verbose": True,
|
|
40
|
+
"max_workers": 4
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
config_file = base_path / "config" / "settings.json"
|
|
45
|
+
with open(config_file, 'w') as f:
|
|
46
|
+
json.dump(config, f, indent=2)
|
|
47
|
+
print(f"ā Created configuration: {config_file}")
|
|
48
|
+
|
|
49
|
+
# Create README
|
|
50
|
+
readme_content = f"""# {project_name}
|
|
51
|
+
|
|
52
|
+
Initialized with ai-sdk-agents skill
|
|
53
|
+
|
|
54
|
+
## Structure
|
|
55
|
+
- config/ - Configuration files
|
|
56
|
+
- data/ - Input data
|
|
57
|
+
- output/ - Generated output
|
|
58
|
+
- logs/ - Application logs
|
|
59
|
+
|
|
60
|
+
## Usage
|
|
61
|
+
See skill documentation for usage instructions.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
readme_file = base_path / "README.md"
|
|
65
|
+
readme_file.write_text(readme_content)
|
|
66
|
+
print(f"ā Created README: {readme_file}")
|
|
67
|
+
|
|
68
|
+
return base_path
|
|
69
|
+
|
|
70
|
+
def main():
|
|
71
|
+
parser = argparse.ArgumentParser(description="Creates and populates .env file with API keys based on user input.")
|
|
72
|
+
parser.add_argument('--project', '-p', required=True, help='Project name')
|
|
73
|
+
parser.add_argument('--output', '-o', default='.', help='Output directory')
|
|
74
|
+
parser.add_argument('--config', '-c', help='Configuration file')
|
|
75
|
+
|
|
76
|
+
args = parser.parse_args()
|
|
77
|
+
|
|
78
|
+
print(f"š Initializing {args.project}...")
|
|
79
|
+
project_path = create_project_structure(args.project, args.output)
|
|
80
|
+
|
|
81
|
+
if args.config:
|
|
82
|
+
# Load additional configuration
|
|
83
|
+
if Path(args.config).exists():
|
|
84
|
+
with open(args.config) as f:
|
|
85
|
+
extra_config = json.load(f)
|
|
86
|
+
print(f"ā Loaded configuration from {args.config}")
|
|
87
|
+
|
|
88
|
+
print(f"\nā
Project initialized successfully at {project_path}")
|
|
89
|
+
return 0
|
|
90
|
+
|
|
91
|
+
if __name__ == "__main__":
|
|
92
|
+
import sys
|
|
93
|
+
import time
|
|
94
|
+
sys.exit(main())
|