elan-cli 0.1.1__tar.gz → 0.1.2__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.
Files changed (29) hide show
  1. elan_cli-0.1.2/CHANGELOG.md +41 -0
  2. {elan_cli-0.1.1 → elan_cli-0.1.2}/PKG-INFO +2 -2
  3. {elan_cli-0.1.1 → elan_cli-0.1.2}/pyproject.toml +15 -2
  4. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/config.py +25 -16
  5. {elan_cli-0.1.1 → elan_cli-0.1.2}/.gitignore +0 -0
  6. {elan_cli-0.1.1 → elan_cli-0.1.2}/LICENSE +0 -0
  7. {elan_cli-0.1.1 → elan_cli-0.1.2}/README.md +0 -0
  8. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/__init__.py +0 -0
  9. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/adk.py +0 -0
  10. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/auth.py +0 -0
  11. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/client.py +0 -0
  12. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/deploy.py +0 -0
  13. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/destroy.py +0 -0
  14. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/doctor.py +0 -0
  15. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/env.py +0 -0
  16. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/files.py +0 -0
  17. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/invoke.py +0 -0
  18. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/logs.py +0 -0
  19. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/main.py +0 -0
  20. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/manifests.py +0 -0
  21. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/project.py +0 -0
  22. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/projects.py +0 -0
  23. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/rollback.py +0 -0
  24. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/scaffold.py +0 -0
  25. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/secret.py +0 -0
  26. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/stream.py +0 -0
  27. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/tenant.py +0 -0
  28. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/validate.py +0 -0
  29. {elan_cli-0.1.1 → elan_cli-0.1.2}/src/elan_cli/wallet.py +0 -0
@@ -0,0 +1,41 @@
1
+ # Changelog
2
+
3
+ Versions follow the tag that published them — `cli/v*`. A version with no date
4
+ has not been published yet.
5
+
6
+ ## 0.1.2 — unreleased
7
+
8
+ ### Changed
9
+ - `elan login` reaches the production API with no arguments. `--api` is now the
10
+ override for anything else, which is what this README has said since the
11
+ first release. Precedence, highest first: `--api` (which is written down and
12
+ therefore remembered), then `ELAN_API`, then the stored `config.json`, then
13
+ production.
14
+
15
+ It used to refuse to run without one, on the reasoning that a client aimed at
16
+ a staging environment deploys somebody's first agent there without saying so.
17
+ That was sound while there was no production to point at, and stopped being
18
+ sound once there was — a developer who had just installed the CLI was asked
19
+ for a URL that appears nowhere in the package they installed.
20
+
21
+ ### Fixed
22
+ - The CLI reference documented `ELAN_CONFIG_HOME`, which nothing read; the
23
+ variable is and always was `ELAN_HOME`.
24
+
25
+ ## 0.1.1 — 2026-11-09
26
+
27
+ ### Added
28
+ - `elan --version`, which also names the `elan-sdk` version it is running
29
+ against. The two publish independently, so a current-looking CLI can be
30
+ sitting on an older SDK. Nothing sends either number to the platform, so this
31
+ answers "which one have I got" and not "is mine too old".
32
+
33
+ ## 0.1.0 — 2026-11-09
34
+
35
+ First public release.
36
+
37
+ `uv tool install elan-cli` — the install five documents had described since
38
+ before it was possible. Sign in with a device-code flow whose refresh token
39
+ goes to the OS keyring and never to a file; scaffold a project; build the local
40
+ environment; validate your manifests against your deploy file; deploy, invoke,
41
+ tail logs, roll back and tear down.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: elan-cli
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The command line a developer deploys an agent with
5
5
  Project-URL: Homepage, https://openelan.ai
6
6
  Project-URL: Documentation, https://openelan.ai/app/docs
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
17
  Requires-Python: >=3.12
18
18
  Requires-Dist: certifi>=2024.2.2
19
- Requires-Dist: elan-agentkit-contracts
19
+ Requires-Dist: elan-agentkit-contracts>=0.1.1
20
20
  Requires-Dist: elan-sdk
21
21
  Requires-Dist: httpx>=0.27
22
22
  Requires-Dist: keyring>=25.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "elan-cli"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "The command line a developer deploys an agent with"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -29,7 +29,7 @@ dependencies = [
29
29
  # so `uv tool install elan-cli` no longer pulls a token verifier, a
30
30
  # database layer and a Pub/Sub broker onto a developer's laptop to read one
31
31
  # YAML file.
32
- "elan-agentkit-contracts",
32
+ "elan-agentkit-contracts>=0.1.1",
33
33
  # THE SHARED CLIENT CODE, ONE WAY (ADR-0104). `text_of` and the certifi
34
34
  # context live there now; this re-exports them. The dependency runs
35
35
  # elan-cli -> elan-sdk and never back: the SDK must not import `elan_cli`,
@@ -74,3 +74,16 @@ build-backend = "hatchling.build"
74
74
 
75
75
  [tool.hatch.build.targets.wheel]
76
76
  packages = ["src/elan_cli"]
77
+
78
+ [tool.hatch.build.targets.sdist]
79
+ # AN ALLOWLIST, BECAUSE THE DEFAULT SDIST IS "EVERYTHING NOT GITIGNORED" and
80
+ # that is an open set — so a file that appears beside this one ships to PyPI
81
+ # without anybody deciding it should. `elan-agentkit-runtime` shipped three
82
+ # Dockerfiles that way; its manifest records the detail. Nothing here is
83
+ # excluded today, which is the point: the guard is against the NEXT file.
84
+ #
85
+ # `.gitignore` survives this and cannot be removed — hatchling force-includes
86
+ # the VCS exclusion files it found, which is also why README and LICENSE need
87
+ # no entry. See `agent-pipeline/runtime/pyproject.toml` for why that is left
88
+ # alone rather than worked around.
89
+ include = ["src", "README.md", "CHANGELOG.md"]
@@ -26,15 +26,21 @@ import os
26
26
  from dataclasses import dataclass
27
27
  from pathlib import Path
28
28
 
29
+ from elan_agentkit_contracts.endpoints import DEFAULT_API_URL, ENV_API
30
+
29
31
  #: The platform this CLI is built for.
30
32
  #:
31
- #: EMPTY UNTIL THERE IS A PRODUCTION ONE, and empty rather than pointed at
32
- #: non-prod. A client that ships aimed at a staging environment is a client
33
- #: that quietly deploys somebody's first agent to the wrong place — and unlike
34
- #: a missing default, that failure does not announce itself. When production
35
- #: exists this becomes its URL and `--api` becomes the override for everyone
36
- #: else, which is how `gh` and `stripe` work and what a developer expects.
37
- DEFAULT_API = ""
33
+ #: IT USED TO BE EMPTY, and the reasoning was sound while it held: "a client
34
+ #: that ships aimed at a staging environment is a client that quietly deploys
35
+ #: somebody's first agent to the wrong place — and unlike a missing default,
36
+ #: that failure does not announce itself." Production exists now, so the
37
+ #: default IS production and `--api` is the override for everyone else, which
38
+ #: is how `gh` and `stripe` work and what a developer expects.
39
+ #:
40
+ #: NOT SPELLED HERE. Three clients need the same answer and only one of them is
41
+ #: this one; `elan_agentkit_contracts.endpoints` is the single place, shared
42
+ #: with the Python SDK and generated into the TypeScript one.
43
+ DEFAULT_API = DEFAULT_API_URL
38
44
 
39
45
 
40
46
  def config_home() -> Path:
@@ -103,15 +109,18 @@ class Config:
103
109
  except ValueError as exc:
104
110
  raise ConfigError(f"{path} is not valid JSON: {exc}") from exc
105
111
 
106
- api = os.environ.get("ELAN_API") or data.get("api") or DEFAULT_API
107
- if not api:
108
- raise ConfigError(
109
- "this CLI does not know which platform to talk to.\n"
110
- " Pass it once — `elan login --api https://your-platform` —\n"
111
- " and it is remembered. There is no built-in default yet,\n"
112
- " deliberately: a client aimed at the wrong environment\n"
113
- " deploys somebody's first agent there without saying so."
114
- )
112
+ # PRECEDENCE, HIGHEST FIRST: the environment, then what `elan login
113
+ # --api` remembered, then production. `--api` does not appear here
114
+ # because it is not a read — `login` writes it, which is what makes it
115
+ # remembered; a flag that only applied to the command carrying it would
116
+ # mean `elan login --api X` followed by `elan deploy` talking to a
117
+ # different platform.
118
+ #
119
+ # NO REFUSAL ANY MORE. This used to raise "there is no built-in default
120
+ # yet, deliberately", which was true and is not: a developer who had
121
+ # just run `uv tool install elan-cli` was told to supply a URL that
122
+ # appears nowhere in the package they installed.
123
+ api = os.environ.get(ENV_API) or data.get("api") or DEFAULT_API
115
124
  return cls(api=api.rstrip("/"), issuer=data.get("issuer", ""),
116
125
  client_id=data.get("client_id", ""),
117
126
  audience=data.get("audience", ""),
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