flexgate 0.2.0__tar.gz → 0.2.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.
Files changed (26) hide show
  1. {flexgate-0.2.0 → flexgate-0.2.1}/CLAUDE.md +2 -2
  2. {flexgate-0.2.0 → flexgate-0.2.1}/PKG-INFO +2 -1
  3. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/__init__.py +1 -1
  4. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/cli.py +3 -4
  5. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/sync.py +6 -3
  6. {flexgate-0.2.0 → flexgate-0.2.1}/pyproject.toml +1 -0
  7. {flexgate-0.2.0 → flexgate-0.2.1}/.github/workflows/release.yml +0 -0
  8. {flexgate-0.2.0 → flexgate-0.2.1}/.gitignore +0 -0
  9. {flexgate-0.2.0 → flexgate-0.2.1}/README.md +0 -0
  10. {flexgate-0.2.0 → flexgate-0.2.1}/config.yaml.template +0 -0
  11. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/__main__.py +0 -0
  12. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/config.py +0 -0
  13. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/doctor.py +0 -0
  14. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/guardian.py +0 -0
  15. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/healthcheck.py +0 -0
  16. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/main.py +0 -0
  17. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/migrate.py +0 -0
  18. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/proxy.py +0 -0
  19. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/router.py +0 -0
  20. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/server.py +0 -0
  21. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/service.py +0 -0
  22. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/settings.py +0 -0
  23. {flexgate-0.2.0 → flexgate-0.2.1}/flexgate/update.py +0 -0
  24. {flexgate-0.2.0 → flexgate-0.2.1}/test.png +0 -0
  25. {flexgate-0.2.0 → flexgate-0.2.1}/test_multimodal.py +0 -0
  26. {flexgate-0.2.0 → flexgate-0.2.1}/test_multimodal_gateway.py +0 -0
@@ -119,8 +119,8 @@ shared confsync credentials written by `confsync login --server <url>`
119
119
  encrypted document (default app `flexgate`, name `config.yaml`): pull merges
120
120
  provider api_keys and imports remote-only providers (local routes/schedules
121
121
  untouched), bootstraps the file when missing, and `--full` replaces it with a
122
- timestamped backup. The confsync client package must be present in flexgate's
123
- environment (e.g. `uv tool inject flexgate <path-to-confsync>/client`).
122
+ timestamped backup. The `confsync-client` package is a declared dependency
123
+ (PyPI), so sync works out of the box once logged in.
124
124
  The persistent unit lives at `~/.config/systemd/user/flexgate.service`; logs are
125
125
  in the systemd user journal. `~/.flexgate/service-state.json` records the last
126
126
  successfully applied config path and endpoint. PID/guardian files are legacy artifacts only.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: flexgate
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Flexible local API gateway for Claude Code — route models to different providers
5
5
  Project-URL: Homepage, https://github.com/Agony5757/flexible-gateway
6
6
  Project-URL: Repository, https://github.com/Agony5757/flexible-gateway
@@ -8,6 +8,7 @@ Project-URL: Issues, https://github.com/Agony5757/flexible-gateway/issues
8
8
  Author: agony
9
9
  License-Expression: MIT
10
10
  Requires-Python: >=3.11
11
+ Requires-Dist: confsync-client>=0.1.0
11
12
  Requires-Dist: httpx[socks]>=0.27
12
13
  Requires-Dist: pyyaml>=6.0
13
14
  Requires-Dist: starlette>=0.37
@@ -1,3 +1,3 @@
1
1
  """Flexgate — Flexible API Gateway for Claude Code."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.1"
@@ -700,10 +700,9 @@ def _print_sync_help() -> None:
700
700
  print("""\
701
701
  confsync sync (flexgate sync):
702
702
  Pushes/pulls config.yaml as an encrypted document on your confsync server.
703
- Requires the confsync client package in flexgate's environment
704
- (e.g. 'uv tool inject flexgate /path/to/confsync/client') and a one-time
705
- 'confsync login --server https://<server>' (shared credentials at
706
- ~/.confsync/credentials.json). 'flexgate sync' (pull) updates api_keys of
703
+ Requires a one-time 'confsync login --server https://<server>' (shared
704
+ credentials at ~/.confsync/credentials.json); the confsync-client package
705
+ is a declared dependency. 'flexgate sync' (pull) updates api_keys of
707
706
  matching providers and imports providers present only remotely; local
708
707
  routes/schedules are untouched. On a machine without config.yaml the pull
709
708
  bootstraps the whole file. Use --full to replace the local config entirely
@@ -31,9 +31,12 @@ def _import_confsync():
31
31
  from confsync import credentials # noqa: PLC0415
32
32
  return confsync, credentials
33
33
  except ImportError:
34
- print("The 'confsync' client package is not installed in flexgate's environment.")
35
- print("Install it, e.g.: uv tool inject flexgate /path/to/confsync/client")
36
- print("Then run: confsync login --server https://<your-confsync-server>")
34
+ # confsync-client is a declared dependency; reaching here means the
35
+ # installation is broken (e.g. an editable install predating the dep).
36
+ print("The 'confsync' client package is missing from flexgate's environment.")
37
+ print("Reinstall/upgrade flexgate to fix it (it is a declared dependency):")
38
+ print(" uv tool install --force -e . # from the flexgate repo")
39
+ print("or inject it manually: uv tool inject flexgate confsync-client")
37
40
  sys.exit(1)
38
41
 
39
42
 
@@ -11,6 +11,7 @@ dependencies = [
11
11
  "uvicorn[standard]>=0.29",
12
12
  "httpx[socks]>=0.27",
13
13
  "pyyaml>=6.0",
14
+ "confsync-client>=0.1.0",
14
15
  ]
15
16
 
16
17
  [project.urls]
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