svc-infra 0.1.624__py3-none-any.whl → 0.1.625__py3-none-any.whl

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.

Potentially problematic release.


This version of svc-infra might be problematic. Click here for more details.

@@ -21,4 +21,8 @@ How to run (pick what fits your workflow):
21
21
  Notes:
22
22
  * Make sure you’re in the right virtual environment (or use `pipx`).
23
23
  * You can point `--project-root` at your Alembic root; if omitted we auto-detect.
24
+
25
+ Learn more:
26
+ * For full integration guides and all topics, run: `svc-infra docs list`
27
+ * To explore docs commands, run: `svc-infra docs --help`
24
28
  """
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from enum import Enum
4
4
 
5
- from ai_infra.llm.tools.custom.cli import cli_cmd_help, cli_subcmd_help
5
+ from ai_infra.llm.tools.custom.cli import cli_cmd_help, cli_subcmd_help, run_cli
6
6
  from ai_infra.mcp.server.tools import mcp_from_functions
7
7
 
8
8
  from svc_infra.app.env import prepare_env
@@ -20,6 +20,25 @@ async def svc_infra_cmd_help() -> dict:
20
20
  return await cli_cmd_help(CLI_PROG)
21
21
 
22
22
 
23
+ async def svc_infra_docs_list() -> dict:
24
+ """Run `svc-infra docs list` and return its output.
25
+
26
+ Uses run_cli with the project root as cwd; falls back to run_from_root if needed.
27
+ """
28
+ root = prepare_env()
29
+ try:
30
+ text = await run_cli(CLI_PROG, ["docs", "list"], cwd=str(root))
31
+ except TypeError:
32
+ # Fallback for older run_cli signatures
33
+ text = await run_from_root(root, CLI_PROG, ["docs", "list"])
34
+ return {
35
+ "ok": True,
36
+ "action": "docs_list",
37
+ "project_root": str(root),
38
+ "output": text,
39
+ }
40
+
41
+
23
42
  class Subcommand(str, Enum):
24
43
  # SQL group commands
25
44
  sql_init = "sql init"
@@ -95,8 +114,15 @@ mcp = mcp_from_functions(
95
114
  functions=[
96
115
  svc_infra_cmd_help,
97
116
  svc_infra_subcmd_help,
117
+ svc_infra_docs_list,
118
+ # Utility: list docs topics via `svc-infra docs list`
119
+ # Exposed as a dedicated MCP function for quick discovery in clients.
120
+ # See: svc_infra.cli.cmds.docs.docs_cmds
121
+ # NOTE: Prefer run_cli with cwd=project root; fallback to run_from_root if signature differs.
122
+ # Implemented as an inline wrapper to keep the API surface minimal.
98
123
  ],
99
124
  )
100
125
 
126
+
101
127
  if __name__ == "__main__":
102
128
  mcp.run(transport="stdio")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: svc-infra
3
- Version: 0.1.624
3
+ Version: 0.1.625
4
4
  Summary: Infrastructure for building and deploying prod-ready services
5
5
  License: MIT
6
6
  Keywords: fastapi,sqlalchemy,alembic,auth,infra,async,pydantic
@@ -145,7 +145,7 @@ svc_infra/cli/cmds/db/sql/sql_scaffold_cmds.py,sha256=MKc_T_tY1Y_wQl7XTlq8GhYWMM
145
145
  svc_infra/cli/cmds/docs/docs_cmds.py,sha256=Gyi0cr22-SY8kThAutRSzW9LmZ1ek9LTpwFpvlclKWM,6407
146
146
  svc_infra/cli/cmds/dx/__init__.py,sha256=wQtl3-kOgoESlpVkjl3YFtqkOnQSIvVsOdutiaZFejM,197
147
147
  svc_infra/cli/cmds/dx/dx_cmds.py,sha256=XTKUJzS3UIYn6h3CHzDEWKYJaWn0TzGiUCq3OeW27E0,3326
148
- svc_infra/cli/cmds/help.py,sha256=wGfZFMYaR2ZPwW2JwKDU7M3m4AtdCd8GRQ412AmEBUM,758
148
+ svc_infra/cli/cmds/help.py,sha256=kNbaWkppGfEiWUhOwekAMDr3DEkOUzXGyrNLSR3T5qI,901
149
149
  svc_infra/cli/cmds/jobs/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
150
150
  svc_infra/cli/cmds/jobs/jobs_cmds.py,sha256=l-w5GuR82GWR_F1CA7WPYAM895XBD8TQj_hZ6retBv0,1252
151
151
  svc_infra/cli/cmds/obs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -257,7 +257,7 @@ svc_infra/jobs/redis_queue.py,sha256=wgmWKslF1dkYscJe49UgUX7gwEuGyOUWEb0-pn82I3g
257
257
  svc_infra/jobs/scheduler.py,sha256=dTUEEyEuTVHNmJT8wPdMu4YjnTN7R_YW67gtCKpqC7M,1180
258
258
  svc_infra/jobs/worker.py,sha256=T2A575_mnieJHPOYU_FseubLA_HQf9pB4CkRgzRJBHU,694
259
259
  svc_infra/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
260
- svc_infra/mcp/svc_infra_mcp.py,sha256=N9HPFUNFPbPiKBpJzB4nWI8uERyHrLPiFNCu7CCnu5I,2797
260
+ svc_infra/mcp/svc_infra_mcp.py,sha256=xz67oXIoEOZaFbyRn3_uda-SXmruOXtyF0OZuLX_LnA,3771
261
261
  svc_infra/obs/README.md,sha256=pmd6AyFZW3GCCi0sr3uTHrPj5KgAI8rrXw8QPkrf1R8,8021
262
262
  svc_infra/obs/__init__.py,sha256=t5DgkiuuhHnfAHChzYqCI1-Fpr68iQ0A1nHOLFIlAuM,75
263
263
  svc_infra/obs/add.py,sha256=Qa8pswZDxspIn3oniqe8NYeHmVhFwiYOYxF9xNAyCOs,4016
@@ -325,7 +325,7 @@ svc_infra/webhooks/fastapi.py,sha256=BCNvGNxukf6dC2a4i-6en-PrjBGV19YvCWOot5lXWsA
325
325
  svc_infra/webhooks/router.py,sha256=6JvAVPMEth_xxHX-IsIOcyMgHX7g1H0OVxVXKLuMp9w,1596
326
326
  svc_infra/webhooks/service.py,sha256=hWgiJRXKBwKunJOx91C7EcLUkotDtD3Xp0RT6vj2IC0,1797
327
327
  svc_infra/webhooks/signing.py,sha256=NCwdZzmravUe7HVIK_uXK0qqf12FG-_MVsgPvOw6lsM,784
328
- svc_infra-0.1.624.dist-info/METADATA,sha256=lEITXQdVziiFknki-7WvVn8LWBE1voR6pNiIdT7aO74,8748
329
- svc_infra-0.1.624.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
330
- svc_infra-0.1.624.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
331
- svc_infra-0.1.624.dist-info/RECORD,,
328
+ svc_infra-0.1.625.dist-info/METADATA,sha256=gSopiurNf48SuyU4cG8H92kkgvZuB0XL51RKDZiohy4,8748
329
+ svc_infra-0.1.625.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
330
+ svc_infra-0.1.625.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
331
+ svc_infra-0.1.625.dist-info/RECORD,,