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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.36
3
+ Version: 0.4.38
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "conduct-cli"
7
- version = "0.4.36"
7
+ version = "0.4.38"
8
8
  description = "CLI for Conduct AI — install agents, manage projects, run tests"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -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
- url = f"{server}/workflows/{workflow_id}/runs/{run_id}/stream"
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conduct-cli
3
- Version: 0.4.36
3
+ Version: 0.4.38
4
4
  Summary: CLI for Conduct AI — install agents, manage projects, run tests
5
5
  Author-email: Conduct AI <hello@conductai.ai>
6
6
  License: MIT
File without changes
File without changes
File without changes