healthcloud-cli 3.10.7__tar.gz → 3.11.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.
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/PKG-INFO +9 -6
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/README.md +7 -4
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/errors.py +6 -1
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/operations.py +4 -2
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tuning.py +17 -2
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/contracts/mcp-tools.manifest.json +1589 -12
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/pyproject.toml +2 -2
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/.gitignore +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/hatch_build.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/auth.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/compatibility.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/context.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/domain_errors.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/endpoint.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/output.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/paging.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/pretty.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/registry.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/results.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/cron.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/session.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/target.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/ui.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/projections.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/windows_files.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/cli.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/context.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/contracts/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/main.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/manifest.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/output.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/params.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/commands.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/group.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/operations.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/util.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/scripts/__init__.py +0 -0
- {healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/scripts/bundle_manifest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: healthcloud-cli
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.11.2
|
|
4
4
|
Summary: Command-line interface for the HealthCloud MCP gateway, generated from the shared MCP tool manifest.
|
|
5
5
|
Project-URL: Issues, https://github.com/healthcloudservices/healthcloud-services/issues
|
|
6
6
|
Project-URL: Repository, https://github.com/healthcloudservices/healthcloud-services
|
|
@@ -9,7 +9,7 @@ License-Expression: MIT
|
|
|
9
9
|
Keywords: cli,health-cloud,healthcare,healthcloud,mcp
|
|
10
10
|
Requires-Python: >=3.14
|
|
11
11
|
Requires-Dist: click>=8.1
|
|
12
|
-
Requires-Dist: healthcloud-sdk>=3.
|
|
12
|
+
Requires-Dist: healthcloud-sdk>=3.41.0
|
|
13
13
|
Requires-Dist: healthcloud-tenantadmin>=1.1.1
|
|
14
14
|
Provides-Extra: dev
|
|
15
15
|
Requires-Dist: pytest>=9.0.3; extra == 'dev'
|
|
@@ -2416,8 +2416,9 @@ No audit row is written for the retry, and there is no idempotency key — the
|
|
|
2416
2416
|
server's `status='dead_letter'` predicate **is** the idempotency, so a blind retry
|
|
2417
2417
|
never duplicates work and a second attempt answers `404`.
|
|
2418
2418
|
|
|
2419
|
-
What it refuses. A blank `--event-id`,
|
|
2420
|
-
|
|
2419
|
+
What it refuses. A blank `--event-id`, one with leading/trailing whitespace, a
|
|
2420
|
+
`.`/`..` segment or one containing `/` or `\` — refused locally in both preview
|
|
2421
|
+
and confirmed runs, before login and before any request, because the id
|
|
2421
2422
|
becomes the route's path segment and the server validates nothing at all. A
|
|
2422
2423
|
missing `--event-id` is a usage error. A missing saved session is refused before
|
|
2423
2424
|
any request. An installed SDK without the retry method, or whose `retry`
|
|
@@ -2597,8 +2598,10 @@ same message is exactly one stderr line, `error: <message> (<category>)`:
|
|
|
2597
2598
|
`Not logged in; run \`hc login --environment <env> --tenant-id <tenant>\`.`
|
|
2598
2599
|
- A `get` whose requested ID does not exist (HTTP 404): category `not_found`
|
|
2599
2600
|
naming the ID, e.g. `Skill 'nosuch' was not found.` (a 404 on `list` stays
|
|
2600
|
-
`validation
|
|
2601
|
-
|
|
2601
|
+
`validation` for most domains; a department `get` 404 is `not_found` naming
|
|
2602
|
+
the requested department ID, while a department `list` 404 keeps its legacy
|
|
2603
|
+
`transport` classification. Department write 404s are `not_found` refusals
|
|
2604
|
+
naming the ID).
|
|
2602
2605
|
- HTTP 401/403 map to `authentication`/`authorization`; 409 to `conflict`;
|
|
2603
2606
|
network failures to `transport`; local output failures to `local_io`.
|
|
2604
2607
|
- Any unexpected internal error is category `internal` with a generic message;
|
|
@@ -2398,8 +2398,9 @@ No audit row is written for the retry, and there is no idempotency key — the
|
|
|
2398
2398
|
server's `status='dead_letter'` predicate **is** the idempotency, so a blind retry
|
|
2399
2399
|
never duplicates work and a second attempt answers `404`.
|
|
2400
2400
|
|
|
2401
|
-
What it refuses. A blank `--event-id`,
|
|
2402
|
-
|
|
2401
|
+
What it refuses. A blank `--event-id`, one with leading/trailing whitespace, a
|
|
2402
|
+
`.`/`..` segment or one containing `/` or `\` — refused locally in both preview
|
|
2403
|
+
and confirmed runs, before login and before any request, because the id
|
|
2403
2404
|
becomes the route's path segment and the server validates nothing at all. A
|
|
2404
2405
|
missing `--event-id` is a usage error. A missing saved session is refused before
|
|
2405
2406
|
any request. An installed SDK without the retry method, or whose `retry`
|
|
@@ -2579,8 +2580,10 @@ same message is exactly one stderr line, `error: <message> (<category>)`:
|
|
|
2579
2580
|
`Not logged in; run \`hc login --environment <env> --tenant-id <tenant>\`.`
|
|
2580
2581
|
- A `get` whose requested ID does not exist (HTTP 404): category `not_found`
|
|
2581
2582
|
naming the ID, e.g. `Skill 'nosuch' was not found.` (a 404 on `list` stays
|
|
2582
|
-
`validation
|
|
2583
|
-
|
|
2583
|
+
`validation` for most domains; a department `get` 404 is `not_found` naming
|
|
2584
|
+
the requested department ID, while a department `list` 404 keeps its legacy
|
|
2585
|
+
`transport` classification. Department write 404s are `not_found` refusals
|
|
2586
|
+
naming the ID).
|
|
2584
2587
|
- HTTP 401/403 map to `authentication`/`authorization`; 409 to `conflict`;
|
|
2585
2588
|
network failures to `transport`; local output failures to `local_io`.
|
|
2586
2589
|
- Any unexpected internal error is category `internal` with a generic message;
|
|
@@ -28,6 +28,7 @@ _MESSAGE_TEMPLATES = {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
_RESOURCE_ID_KEYS = {
|
|
31
|
+
"departments": "department_id",
|
|
31
32
|
"data-sources": "data_source_id",
|
|
32
33
|
"guardrails": "guardrail_id",
|
|
33
34
|
"health-services": "service_id",
|
|
@@ -120,6 +121,10 @@ _AMS_READ_DOMAINS = {
|
|
|
120
121
|
|
|
121
122
|
def http_category(operation: str, status: object) -> str:
|
|
122
123
|
"""The bounded category for one HTTP status (writes reuse the same mapping)."""
|
|
124
|
+
# A department record read names an ID; collection-route failures retain
|
|
125
|
+
# the legacy transport classification rather than naming a missing record.
|
|
126
|
+
if operation == "departments.get" and status == 404:
|
|
127
|
+
return "not_found"
|
|
123
128
|
shared_categories = {
|
|
124
129
|
401: "authentication",
|
|
125
130
|
403: "authorization",
|
|
@@ -138,7 +143,7 @@ def http_category(operation: str, status: object) -> str:
|
|
|
138
143
|
# export: a 404 from the export request itself is converted to an ``unsupported``
|
|
139
144
|
# refusal in ``export_agent`` before it reaches this mapping, because by then the
|
|
140
145
|
# agent is known to exist.
|
|
141
|
-
#
|
|
146
|
+
# Other department read failures keep their legacy transport contract.
|
|
142
147
|
# ``logs.list`` is a record read in the only sense that matters here: the
|
|
143
148
|
# route names one agent and 404s when that agent is unknown or belongs to
|
|
144
149
|
# another tenant. Reporting it as ``validation`` would hide the reason.
|
{healthcloud_cli-3.10.7 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/operations.py
RENAMED
|
@@ -144,12 +144,14 @@ def validate_event_id(value: object, refusal: type[DomainReadRefused] = OutboxWr
|
|
|
144
144
|
"""The event id becomes a path segment, so it is refused locally when unusable.
|
|
145
145
|
|
|
146
146
|
The server's route takes a plain ``str`` path parameter and validates nothing,
|
|
147
|
-
so the CLI is the only refusal point for a blank id, a dot
|
|
148
|
-
that would change the path. No request is made for any of them.
|
|
147
|
+
so the CLI is the only refusal point for a blank or whitespace-padded id, a dot
|
|
148
|
+
segment or a value that would change the path. No request is made for any of them.
|
|
149
149
|
"""
|
|
150
150
|
|
|
151
151
|
if not isinstance(value, str) or not value.strip():
|
|
152
152
|
raise refusal("validation", "--event-id must be a nonblank string; nothing was sent.")
|
|
153
|
+
if value != value.strip():
|
|
154
|
+
raise refusal("validation", "--event-id must not have leading/trailing whitespace; nothing was sent.")
|
|
153
155
|
if value in {".", ".."}:
|
|
154
156
|
raise refusal("validation", "--event-id must not be a dot segment; nothing was sent.")
|
|
155
157
|
if "/" in value or "\\" in value:
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import inspect
|
|
5
6
|
import re
|
|
6
7
|
from pathlib import Path
|
|
7
8
|
from typing import TYPE_CHECKING
|
|
@@ -55,9 +56,13 @@ def validate_plan(plan: TuningPlan, target: AmsTarget, requested: dict[str, Json
|
|
|
55
56
|
if plan.validation_errors or any(w is None or w.severity != "advisory" for w in plan.review_warnings):
|
|
56
57
|
raise click.ClickException("Server plan has validation errors or blocking/unknown review findings.")
|
|
57
58
|
body = plan.plan_json
|
|
58
|
-
allowed = {"summary", "changes", "file_actions", "warnings", "skipped_references", "operation"}
|
|
59
|
+
allowed = {"summary", "changes", "file_actions", "warnings", "skipped_references", "operation", "original_prompt"}
|
|
59
60
|
if not isinstance(body, dict) or not set(body) <= allowed or body.get("operation", "modify") != "modify":
|
|
60
61
|
raise click.ClickException("Unknown server plan operations or keys; refused.")
|
|
62
|
+
# The AMS planner records the literal prompt of every modify plan; it must
|
|
63
|
+
# be the exact prompt this CLI sends for the requested fields.
|
|
64
|
+
if "original_prompt" in body and body["original_prompt"] != PREFIX + canonical(requested):
|
|
65
|
+
raise click.ClickException("Server plan prompt differs from the requested fields; refused.")
|
|
61
66
|
if body.get("file_actions") not in (None, []) or body.get("warnings") or body.get("skipped_references"):
|
|
62
67
|
raise click.ClickException("Server plan includes files, warnings or skipped references; refused.")
|
|
63
68
|
changes = body.get("changes")
|
|
@@ -92,6 +97,11 @@ def plan_metadata(plan: TuningPlan) -> dict:
|
|
|
92
97
|
|
|
93
98
|
def create_receipt(sdk, target: AmsTarget, agent, requested: dict) -> dict:
|
|
94
99
|
validate_changes(requested)
|
|
100
|
+
# Refuse an SDK without exact-value plans before anything is written to AMS.
|
|
101
|
+
if "exact_changes" not in inspect.signature(sdk.ams_admin.generate_tuning_plan).parameters:
|
|
102
|
+
raise click.ClickException(
|
|
103
|
+
"SDK missing exact-value tuning plans; use the reviewed local editable SDK checkout (see CLI README)."
|
|
104
|
+
)
|
|
95
105
|
target.require_qualified(requested, agent.config_version)
|
|
96
106
|
before = {name: getattr(agent, name) for name in requested}
|
|
97
107
|
validate_changes(before)
|
|
@@ -107,8 +117,13 @@ def create_receipt(sdk, target: AmsTarget, agent, requested: dict) -> dict:
|
|
|
107
117
|
or session.status != "active"
|
|
108
118
|
):
|
|
109
119
|
raise click.ClickException("Fresh tuning session identity or mode mismatch.")
|
|
120
|
+
# exact_changes lets AMS build the plan from these values without a model,
|
|
121
|
+
# so long fields are never truncated or rewritten by a planner reply.
|
|
110
122
|
plan = sdk.ams_admin.generate_tuning_plan(
|
|
111
|
-
session.id,
|
|
123
|
+
session.id,
|
|
124
|
+
prompt=PREFIX + canonical(requested),
|
|
125
|
+
idempotency_key=uuid4().hex,
|
|
126
|
+
exact_changes=requested,
|
|
112
127
|
)
|
|
113
128
|
validate_plan(plan, target, requested)
|
|
114
129
|
if plan.session_id != session.id or plan.base_config_version != agent.config_version or plan.status != "proposed":
|