fix(apps): send workflowId not path from CLI; wire sandboxRoot and systemPromptPath in server; update prompts and fixtures
This commit is contained in:
@@ -97,6 +97,9 @@ class RunCommand : CliktCommand(name = "run") {
|
||||
}
|
||||
}
|
||||
|
||||
private fun resolveWorkflowId(path: String): String =
|
||||
java.nio.file.Path.of(path).fileName.toString().removeSuffix(".toml")
|
||||
|
||||
private suspend fun startSession(
|
||||
client: HttpClient,
|
||||
host: String,
|
||||
@@ -105,7 +108,7 @@ class RunCommand : CliktCommand(name = "run") {
|
||||
): String? = runCatching {
|
||||
val resp = client.post("http://$host:$portInt/sessions") {
|
||||
contentType(ContentType.Application.Json)
|
||||
setBody(StartSessionRequest(workflowId = workflow, sessionId = sessionId))
|
||||
setBody(StartSessionRequest(workflowId = resolveWorkflowId(workflow), sessionId = sessionId))
|
||||
}
|
||||
resp.body<StartSessionResponse>().sessionId
|
||||
}.getOrElse { e ->
|
||||
|
||||
Reference in New Issue
Block a user