aboutsummaryrefslogtreecommitdiff
path: root/docs/next/api/herdr-api.schema.json
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-19 23:52:20 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-19 23:56:07 +0300
commit3f80947678a9723434aa7fddfe23750b5393e24c (patch)
tree6f463797132acfc51dfb6e135820a052954b4f13 /docs/next/api/herdr-api.schema.json
parentf76f895efe5b9f19aa9db909354c6c0f2195630b (diff)
feat: make agent automation a first-class cli primitive
Diffstat (limited to 'docs/next/api/herdr-api.schema.json')
-rw-r--r--docs/next/api/herdr-api.schema.json121
1 files changed, 107 insertions, 14 deletions
diff --git a/docs/next/api/herdr-api.schema.json b/docs/next/api/herdr-api.schema.json
index cb0c0b72..b066574f 100644
--- a/docs/next/api/herdr-api.schema.json
+++ b/docs/next/api/herdr-api.schema.json
@@ -597,9 +597,22 @@
"null"
]
},
+ "final_status": {
+ "anyOf": [
+ {
+ "$ref": "#/schemas/event/$defs/AgentStatus"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"pane_id": {
"type": "string"
},
+ "released": {
+ "type": "boolean"
+ },
"type": {
"const": "pane_agent_detected",
"type": "string"
@@ -1183,6 +1196,16 @@
},
"text": {
"type": "string"
+ },
+ "wait": {
+ "anyOf": [
+ {
+ "$ref": "#/schemas/request/$defs/AgentPromptWaitOptions"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
@@ -1191,6 +1214,25 @@
],
"type": "object"
},
+ "AgentPromptWaitOptions": {
+ "properties": {
+ "timeout_ms": {
+ "format": "uint64",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "until": {
+ "items": {
+ "$ref": "#/schemas/request/$defs/AgentStatus"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"AgentReadParams": {
"properties": {
"format": {
@@ -1239,18 +1281,21 @@
],
"type": "object"
},
- "AgentSendParams": {
+ "AgentSendKeysParams": {
"properties": {
- "target": {
- "type": "string"
+ "keys": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "text": {
+ "target": {
"type": "string"
}
},
"required": [
"target",
- "text"
+ "keys"
],
"type": "object"
},
@@ -1309,6 +1354,31 @@
],
"type": "object"
},
+ "AgentWaitParams": {
+ "properties": {
+ "target": {
+ "type": "string"
+ },
+ "timeout_ms": {
+ "format": "uint64",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "until": {
+ "items": {
+ "$ref": "#/schemas/request/$defs/AgentStatus"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "target"
+ ],
+ "type": "object"
+ },
"ClientWindowTitleSetParams": {
"properties": {
"title": {
@@ -4499,11 +4569,11 @@
{
"properties": {
"method": {
- "const": "agent.send",
+ "const": "agent.send_keys",
"type": "string"
},
"params": {
- "$ref": "#/schemas/request/$defs/AgentSendParams"
+ "$ref": "#/schemas/request/$defs/AgentSendKeysParams"
}
},
"required": [
@@ -4579,6 +4649,22 @@
{
"properties": {
"method": {
+ "const": "agent.wait",
+ "type": "string"
+ },
+ "params": {
+ "$ref": "#/schemas/request/$defs/AgentWaitParams"
+ }
+ },
+ "required": [
+ "method",
+ "params"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "method": {
"const": "pane.split",
"type": "string"
},
@@ -6332,9 +6418,22 @@
"null"
]
},
+ "final_status": {
+ "anyOf": [
+ {
+ "$ref": "#/schemas/success_response/$defs/AgentStatus"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"pane_id": {
"type": "string"
},
+ "released": {
+ "type": "boolean"
+ },
"type": {
"const": "pane_agent_detected",
"type": "string"
@@ -8320,11 +8419,6 @@
"agent": {
"$ref": "#/schemas/success_response/$defs/AgentInfo"
},
- "baseline_state_change_seq": {
- "format": "uint64",
- "minimum": 0,
- "type": "integer"
- },
"type": {
"const": "agent_prompted",
"type": "string"
@@ -8332,8 +8426,7 @@
},
"required": [
"type",
- "agent",
- "baseline_state_change_seq"
+ "agent"
],
"type": "object"
},