Canonical terms (see docs/registry.md glossary): - program: any catalog entry (tool/daemon/frontend) — the software - service / job: how a program is deployed (systemd .service / .timer) - deployment: umbrella for the unified service+job+program view Changes: - core: ServiceSpec/JobSpec component: → program: (component accepted as back-compat validation_alias); DeployedComponent → Deployment. - api: ComponentSummary/Detail → DeploymentSummary/Detail; GET /components → /deployments; GatewayRoute.component → program; GatewayInfo .component_count → deployment_count; ServiceActionResponse/action keys component → program. - app: matching type renames, /components → /deployments hook, route /component/:name → /deployment/:name, GatewayRoute.program. - docs: component-registry.md → registry.md (+ canonical glossary); CLAUDE.md endpoint list refreshed (drop removed /tools, add typed program/service/job + config routes). Tests: core 92, cli 24, api 52 green; app build clean; ruff clean.
31 lines
659 B
Python
31 lines
659 B
Python
"""Re-export from castle-core for backward compatibility."""
|
|
|
|
from castle_core.config import * # noqa: F401, F403
|
|
from castle_core.config import ( # noqa: F401 — explicit re-exports for type checkers
|
|
ARTIFACTS_DIR,
|
|
CASTLE_HOME,
|
|
CODE_DIR,
|
|
CONTENT_DIR,
|
|
DATA_DIR,
|
|
GENERATED_DIR,
|
|
REPOS_DIR,
|
|
SECRETS_DIR,
|
|
SPECS_DIR,
|
|
STATIC_DIR,
|
|
CastleConfig,
|
|
GatewayConfig,
|
|
ensure_dirs,
|
|
find_castle_root,
|
|
load_config,
|
|
resolve_env_vars,
|
|
save_config,
|
|
)
|
|
from castle_core.registry import ( # noqa: F401
|
|
REGISTRY_PATH,
|
|
Deployment,
|
|
NodeConfig,
|
|
NodeRegistry,
|
|
load_registry,
|
|
save_registry,
|
|
)
|