Skip to content

gaoguobin/codex-eide-rebuild / skills/eide-rebuild

eide-rebuild

Verified

EIDE rebuild and compile Agent Skill for Embedded IDE for VS Code workspaces. Runs a Python unify_builder runner and returns compact or full JSON build results.

scripts/eide_rebuild/project.py

View on GitHub
from __future__ import annotations

from dataclasses import dataclass
from pathlib import Path


@dataclass
class ProjectInput:
    project_root: Path
    workspace_path: str
    eide_yml_path: Path


def resolve_project_input(input_path: str) -> ProjectInput:
    path_obj = Path(input_path).expanduser().resolve()
    if not path_obj.exists():
        raise FileNotFoundError(input_path)

    if path_obj.is_file() and path_obj.suffix.lower() == ".code-workspace":
        project_root = path_obj.parent
        eide_yml = project_root / ".eide" / "eide.yml"
        if not eide_yml.exists():
            raise FileNotFoundError(str(eide_yml))
        return ProjectInput(
            project_root=project_root,
            workspace_path=str(path_obj).replace("\\", "/"),
            eide_yml_path=eide_yml,
        )

    if path_obj.is_dir():
        workspace_files = sorted(path_obj.glob("*.code-workspace"))
        if len(workspace_files) > 1:
            raise RuntimeError(f"Expected one workspace file in {path_obj}")
        eide_yml = path_obj / ".eide" / "eide.yml"
        if eide_yml.exists():
            workspace_path = str(workspace_files[0].resolve()).replace("\\", "/") if workspace_files else ""
            return ProjectInput(
                project_root=path_obj,
                workspace_path=workspace_path,
                eide_yml_path=eide_yml,
            )
        if len(workspace_files) == 1:
            raise FileNotFoundError(str(eide_yml))

    raise FileNotFoundError(input_path)
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall