conduct-cli 0.4.36__tar.gz → 0.4.38__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.
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/PKG-INFO +1 -1
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/pyproject.toml +1 -1
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/main.py +8 -2
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/README.md +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/setup.cfg +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/setup.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.36 → conduct_cli-0.4.38}/src/conduct_cli.egg-info/top_level.txt +0 -0
|
@@ -131,7 +131,13 @@ def _require_auth(args):
|
|
|
131
131
|
|
|
132
132
|
def _stream_run(server: str, workflow_id: str, run_id: str, workspace_id: str, token=None, api_key=None) -> bool:
|
|
133
133
|
hdrs = api.headers(workspace_id, token, "application/json", api_key)
|
|
134
|
-
|
|
134
|
+
# SSE endpoint reads auth from query params (EventSource can't set headers)
|
|
135
|
+
qs_parts = [f"workspace_id={workspace_id}"]
|
|
136
|
+
if token:
|
|
137
|
+
qs_parts.append(f"token={token}")
|
|
138
|
+
if api_key:
|
|
139
|
+
qs_parts.append(f"api_key={api_key}")
|
|
140
|
+
url = f"{server}/workflows/{workflow_id}/runs/{run_id}/stream?{'&'.join(qs_parts)}"
|
|
135
141
|
|
|
136
142
|
for data in api.stream(url, hdrs):
|
|
137
143
|
kind = data.get("kind", "")
|
|
@@ -1323,7 +1329,7 @@ def cmd_run(args):
|
|
|
1323
1329
|
|
|
1324
1330
|
run = api.req("POST", f"{server}/workflows/{workflow_id}/runs", json_h, {
|
|
1325
1331
|
"triggered_by": "cli",
|
|
1326
|
-
"initial_state": initial_state,
|
|
1332
|
+
"initial_state": {"__manual": True, "inputs": initial_state},
|
|
1327
1333
|
})
|
|
1328
1334
|
_stream_run(server, workflow_id, run["id"], workspace_id, token, api_key)
|
|
1329
1335
|
|
|
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
|