action-platform 0.3.0__tar.gz → 0.3.1__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.
- {action_platform-0.3.0 → action_platform-0.3.1}/PKG-INFO +1 -1
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/__init__.py +1 -1
- action_platform-0.3.1/action_platform/api/CHANGELOG.md +11 -0
- action_platform-0.3.1/action_platform/api/LAST_VERSION +1 -0
- action_platform-0.3.1/action_platform/core/manifest/__init__.py +89 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/pyproject.toml +2 -2
- action_platform-0.3.0/action_platform/api/LAST_VERSION +0 -1
- {action_platform-0.3.0 → action_platform-0.3.1}/LICENSE +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/README.md +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/abc/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/abc/ci_runner.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/abc/deploy_target.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/abc/source_host.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/api/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/api/credentials.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/api/models.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/api/registry.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/api/server.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/api.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/branch.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/cloud.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/deploy.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/gitflow.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/init.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/install.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/login.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/mcp.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/pr.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/release.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/commands/service.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/cli/setup.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/action_platform.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/config.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/context.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/exception.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/flow/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/flow/branching.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/flow/git.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/flow/gitflow.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/flow/pullrequest.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/module.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/changelog.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/components.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/deploy.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/release.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/release/versioning.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/scaffold/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/scaffold/generate.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/scaffold/install.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/core/scaffold/templates.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/hooks/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/hooks/commit-msg +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/hooks/gitflow.sh +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/hooks/pre-commit +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/hooks/pre-push +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/logging.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/main.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/__main__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/annotations.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/prompts.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/server.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/flow.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/lifecycle.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/matrix.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/project.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/mcp/tools/remote.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/bitbucket.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/generic.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/github.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/gitlab.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/rest.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/remote/__init__.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/remote/client.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/remote/credentials.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/settings.py +0 -0
- {action_platform-0.3.0 → action_platform-0.3.1}/action_platform/testing/__init__.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.1.1 — 2026-09-12
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
- **release:** --component on the CLI, MCP and API
|
|
7
|
+
- **api:** apps by git url in workspaces, init from templates, push, per-request source credentials, --reload
|
|
8
|
+
- **api:** JSON API over the core — projects registry, git-flow, commits, branches, tags, release and deploy
|
|
9
|
+
|
|
10
|
+
### Chores
|
|
11
|
+
- **platform:** declare web and api release components
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"""platform.toml: the file that declares a project. Read and edit its tables without touching the rest."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
import tomllib
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from action_platform.core.exception import TemplateError
|
|
10
|
+
from action_platform.settings import settings
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def write_source_host(
|
|
14
|
+
path: Path, kind: str, repo: str, base_url: str | None = None
|
|
15
|
+
) -> None:
|
|
16
|
+
"""Replace (or add) the [source_host] table in platform.toml."""
|
|
17
|
+
text = path.read_text()
|
|
18
|
+
block = f'[source_host]\nkind = "{kind}"\nrepo = "{repo}"\n'
|
|
19
|
+
|
|
20
|
+
if base_url:
|
|
21
|
+
block += f'base_url = "{base_url}"\n'
|
|
22
|
+
|
|
23
|
+
if "[source_host]" in text:
|
|
24
|
+
text = re.sub(r"\[source_host\]\n(?:[^\[\n][^\n]*\n?)*", block, text)
|
|
25
|
+
else:
|
|
26
|
+
text = text.rstrip("\n") + "\n\n" + block
|
|
27
|
+
|
|
28
|
+
path.write_text(text)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def read_platform(project: Path) -> dict:
|
|
32
|
+
path = project / settings.CONFIG_FILE
|
|
33
|
+
|
|
34
|
+
if not path.exists():
|
|
35
|
+
raise TemplateError(f"{settings.CONFIG_FILE} not found in {project}")
|
|
36
|
+
|
|
37
|
+
data = tomllib.loads(path.read_text())
|
|
38
|
+
meta = dict(data.get("project", {}))
|
|
39
|
+
repo = data.get("source_host", {}).get("repo", "")
|
|
40
|
+
|
|
41
|
+
if "/" in repo:
|
|
42
|
+
meta["github_owner"] = repo.split("/", 1)[0]
|
|
43
|
+
|
|
44
|
+
return meta
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def write_deploy_target(path: Path, target: str) -> None:
|
|
48
|
+
text = path.read_text()
|
|
49
|
+
line = f'target = "{target}"'
|
|
50
|
+
|
|
51
|
+
if "[deploy]" not in text:
|
|
52
|
+
path.write_text(text.rstrip("\n") + f"\n\n[deploy]\n{line}\n")
|
|
53
|
+
return
|
|
54
|
+
|
|
55
|
+
lines = text.splitlines()
|
|
56
|
+
|
|
57
|
+
for i, current in enumerate(lines):
|
|
58
|
+
if current.strip().startswith("target ="):
|
|
59
|
+
lines[i] = line
|
|
60
|
+
break
|
|
61
|
+
else:
|
|
62
|
+
lines.insert(lines.index("[deploy]") + 1, line)
|
|
63
|
+
|
|
64
|
+
path.write_text("\n".join(lines) + "\n")
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def write_service(path: Path, name: str, provider: str) -> None:
|
|
68
|
+
text = path.read_text()
|
|
69
|
+
line = f'{name} = "{provider}"'
|
|
70
|
+
|
|
71
|
+
if "[services]" not in text:
|
|
72
|
+
path.write_text(text.rstrip("\n") + f"\n\n[services]\n{line}\n")
|
|
73
|
+
return
|
|
74
|
+
|
|
75
|
+
lines = text.splitlines()
|
|
76
|
+
start = lines.index("[services]")
|
|
77
|
+
end = next(
|
|
78
|
+
(i for i in range(start + 1, len(lines)) if lines[i].startswith("[")),
|
|
79
|
+
len(lines),
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
for i in range(start + 1, end):
|
|
83
|
+
if lines[i].split("=")[0].strip() == name:
|
|
84
|
+
lines[i] = line
|
|
85
|
+
break
|
|
86
|
+
else:
|
|
87
|
+
lines.insert(end, line)
|
|
88
|
+
|
|
89
|
+
path.write_text("\n".join(lines) + "\n")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "action-platform"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.1"
|
|
4
4
|
authors = [
|
|
5
5
|
{ name="Fernando Celmer", email="email@fernandocelmer.com" },
|
|
6
6
|
]
|
|
@@ -72,7 +72,7 @@ api = ["fastapi>=0.115", "uvicorn>=0.30"]
|
|
|
72
72
|
|
|
73
73
|
[tool.poetry]
|
|
74
74
|
name = "action-platform"
|
|
75
|
-
version = "0.3.
|
|
75
|
+
version = "0.3.1"
|
|
76
76
|
description = "Your platform team, as a CLI."
|
|
77
77
|
authors = ["Fernando Celmer <email@fernandocelmer.com>"]
|
|
78
78
|
readme = "README.md"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.0
|
|
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
|
|
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
|
|
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
|
{action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/__init__.py
RENAMED
|
File without changes
|
{action_platform-0.3.0 → action_platform-0.3.1}/action_platform/providers/source/bitbucket.py
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
|