devhive 0.1.36__tar.gz → 0.1.38__tar.gz
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.
- {devhive-0.1.36/devhive.egg-info → devhive-0.1.38}/PKG-INFO +1 -1
- {devhive-0.1.36 → devhive-0.1.38/devhive.egg-info}/PKG-INFO +1 -1
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/main.py +18 -24
- {devhive-0.1.36 → devhive-0.1.38}/setup.py +1 -1
- {devhive-0.1.36 → devhive-0.1.38}/LICENSE +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/MANIFEST.in +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/README.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive.egg-info/SOURCES.txt +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive.egg-info/dependency_links.txt +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive.egg-info/entry_points.txt +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive.egg-info/requires.txt +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive.egg-info/top_level.txt +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/__init__.py +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/agents/devhive.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/architecture-patterns/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/architecture-patterns/resources/implementation-playbook.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/backend-arthitect/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/backend-security-coder/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/docker-expert/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/frontend-design/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/frontend-developer/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/theme-showcase.pdf +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/arctic-frost.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/botanical-garden.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/desert-rose.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/forest-canopy.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/golden-hour.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/midnight-galaxy.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/modern-minimalist.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/ocean-depths.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/sunset-boulevard.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/tech-innovation.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_architect/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_auditor/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_backender/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_dba/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_designer/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_devops/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_explorer/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_frontender/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_orchestrator/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_perf/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_prd/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_proposal/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_qa/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_reflection/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_releaser/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_sast/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_taskplanner/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_techwriter/SKILL.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/skills/devhive_workflow.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/templates/AGENTS.backend.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/templates/AGENTS.frontend.md +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/devhive_cli/templates_backend.py +0 -0
- {devhive-0.1.36 → devhive-0.1.38}/setup.cfg +0 -0
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import shutil
|
|
3
|
+
import subprocess
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
import click
|
|
6
|
+
from devhive_cli.templates_backend import generate_backend_agents_md
|
|
7
|
+
|
|
8
|
+
# Paths configuration
|
|
9
|
+
CLI_DIR = Path(__file__).resolve().parent
|
|
10
|
+
LOCAL_SKILLS_DIR = CLI_DIR / "skills"
|
|
11
|
+
COMMUNITY_SKILLS_DIR = CLI_DIR / "community_skills"
|
|
12
|
+
TEMPLATES_DIR = CLI_DIR / "templates"
|
|
13
|
+
LOCAL_AGENTS_DIR = CLI_DIR / "agents"
|
|
14
|
+
TARGET_DIR = Path.home() / ".config" / "opencode" / "skills"
|
|
15
|
+
TARGET_AGENTS_DIR = Path.home() / ".config" / "opencode" / "agents"
|
|
3
16
|
|
|
4
17
|
ZERO_TOUCH_POLICY = """# 🛑 SYSTEM DIRECTIVE: ZERO-TOUCH POLICY (DevHive Enforcement)
|
|
5
18
|
**CRITICAL INSTRUCTION FOR ALL AI AGENTS:**
|
|
@@ -28,22 +41,17 @@ def handle_existing_agents_md(dest_path: Path) -> bool:
|
|
|
28
41
|
|
|
29
42
|
click.secho("⚠️ AGENTS.md already exists, but it is missing the critical DevHive Zero-Touch Policy.", fg="yellow")
|
|
30
43
|
action = click.prompt(
|
|
31
|
-
"Do you want to
|
|
32
|
-
"
|
|
33
|
-
" [
|
|
34
|
-
"
|
|
35
|
-
" [o]verwrite the entire file with a new template
|
|
36
|
-
"
|
|
37
|
-
" [a]bort
|
|
38
|
-
"
|
|
44
|
+
"Do you want to:\n"
|
|
45
|
+
" [i]nject the policy at the top (preserves your file)\n"
|
|
46
|
+
" [o]verwrite the entire file with a new template\n"
|
|
47
|
+
" [a]bort\n"
|
|
39
48
|
"Action",
|
|
40
49
|
type=click.Choice(['i', 'o', 'a'], case_sensitive=False)
|
|
41
50
|
)
|
|
42
51
|
|
|
43
52
|
if action == 'i':
|
|
44
53
|
with open(dest_path, "w") as f:
|
|
45
|
-
f.write(ZERO_TOUCH_POLICY + "
|
|
46
|
-
" + content)
|
|
54
|
+
f.write(ZERO_TOUCH_POLICY + "\n" + content)
|
|
47
55
|
click.secho("✅ Zero-Touch Policy injected successfully! Your existing content was preserved.", fg="green", bold=True)
|
|
48
56
|
return False
|
|
49
57
|
elif action == 'o':
|
|
@@ -52,20 +60,6 @@ def handle_existing_agents_md(dest_path: Path) -> bool:
|
|
|
52
60
|
click.secho("Aborted.", fg="yellow")
|
|
53
61
|
return False
|
|
54
62
|
|
|
55
|
-
import subprocess
|
|
56
|
-
from pathlib import Path
|
|
57
|
-
import click
|
|
58
|
-
from devhive_cli.templates_backend import generate_backend_agents_md
|
|
59
|
-
|
|
60
|
-
# Paths configuration
|
|
61
|
-
CLI_DIR = Path(__file__).resolve().parent
|
|
62
|
-
LOCAL_SKILLS_DIR = CLI_DIR / "skills"
|
|
63
|
-
COMMUNITY_SKILLS_DIR = CLI_DIR / "community_skills"
|
|
64
|
-
TEMPLATES_DIR = CLI_DIR / "templates"
|
|
65
|
-
LOCAL_AGENTS_DIR = CLI_DIR / "agents"
|
|
66
|
-
TARGET_DIR = Path.home() / ".config" / "opencode" / "skills"
|
|
67
|
-
TARGET_AGENTS_DIR = Path.home() / ".config" / "opencode" / "agents"
|
|
68
|
-
|
|
69
63
|
@click.group()
|
|
70
64
|
def cli():
|
|
71
65
|
"""DevHive CLI for managing AI agent skills."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/architecture-patterns/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/backend-security-coder/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/theme-showcase.pdf
RENAMED
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/arctic-frost.md
RENAMED
|
File without changes
|
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/desert-rose.md
RENAMED
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/forest-canopy.md
RENAMED
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/golden-hour.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devhive-0.1.36 → devhive-0.1.38}/devhive_cli/community_skills/theme-factory/themes/ocean-depths.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|