@harness-control/protocol 0.4.10 → 0.4.11
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.
- package/LICENSE +202 -202
- package/README.md +26 -26
- package/dist/accounts.d.ts +0 -0
- package/dist/accounts.js +0 -0
- package/dist/bin/conformance.d.ts +0 -0
- package/dist/bin/conformance.js +0 -0
- package/dist/bin/generate-json-schema.d.ts +0 -0
- package/dist/bin/generate-json-schema.js +0 -0
- package/dist/conformance.d.ts +0 -0
- package/dist/conformance.js +0 -0
- package/dist/conversation.d.ts +0 -0
- package/dist/conversation.js +0 -0
- package/dist/index.d.ts +30 -30
- package/dist/index.js +0 -0
- package/dist/json-schema.d.ts +0 -0
- package/dist/json-schema.js +0 -0
- package/dist/mcp-review.d.ts +0 -0
- package/dist/mcp-review.js +0 -0
- package/dist/native-review.d.ts +0 -0
- package/dist/native-review.js +0 -0
- package/dist/pairing.d.ts +0 -0
- package/dist/pairing.js +0 -0
- package/dist/session-reducer.d.ts +0 -0
- package/dist/session-reducer.js +0 -0
- package/fixtures/conformance/invalid/accounts-negative-quota.json +35 -35
- package/fixtures/conformance/invalid/accounts-secret.json +36 -36
- package/fixtures/conformance/invalid/arbitrary-event-family.json +13 -13
- package/fixtures/conformance/invalid/local-action-lease-binding-mismatch.json +49 -49
- package/fixtures/conformance/invalid/local-action-missing-turn-id.json +20 -20
- package/fixtures/conformance/invalid/local-action-patch-missing-base-hash.json +51 -51
- package/fixtures/conformance/invalid/local-action-shell-missing-approval.json +56 -56
- package/fixtures/conformance/invalid/mcp-stdio-attachment.json +27 -27
- package/fixtures/conformance/invalid/session-snapshot-unsafe-omission.json +26 -26
- package/fixtures/conformance/invalid/terminal-turn-missing-final-output.json +16 -16
- package/fixtures/conformance/invalid/unknown-payload-field.json +14 -14
- package/fixtures/conformance/invalid/unknown-top-level-field.json +14 -14
- package/fixtures/conformance/valid/accounts-read.json +11 -11
- package/fixtures/conformance/valid/accounts-snapshot.json +35 -35
- package/fixtures/conformance/valid/accounts-unavailable.json +21 -21
- package/fixtures/conformance/valid/command-ack.json +11 -11
- package/fixtures/conformance/valid/extension-event.json +18 -18
- package/fixtures/conformance/valid/host-hello.json +22 -22
- package/fixtures/conformance/valid/host-replay-unavailable.json +15 -15
- package/fixtures/conformance/valid/local-action-dev-server-start.json +68 -68
- package/fixtures/conformance/valid/local-action-dev-server-stop.json +52 -52
- package/fixtures/conformance/valid/local-action-error.json +38 -38
- package/fixtures/conformance/valid/local-action-filesystem-list.json +52 -52
- package/fixtures/conformance/valid/local-action-filesystem-patch.json +53 -53
- package/fixtures/conformance/valid/local-action-filesystem-read.json +51 -51
- package/fixtures/conformance/valid/local-action-filesystem-write.json +53 -53
- package/fixtures/conformance/valid/local-action-git-diff.json +53 -53
- package/fixtures/conformance/valid/local-action-git-status.json +51 -51
- package/fixtures/conformance/valid/local-action-response.json +49 -49
- package/fixtures/conformance/valid/local-action-shell-exec.json +63 -63
- package/fixtures/conformance/valid/provider-event.json +18 -18
- package/fixtures/conformance/valid/session-snapshot-request.json +9 -9
- package/fixtures/conformance/valid/session-snapshot.json +28 -28
- package/fixtures/conformance/valid/session-start-with-leases.json +85 -85
- package/fixtures/conformance/valid/session-start-with-runner-stdio-profile.json +27 -27
- package/fixtures/conformance/valid/turn-completed.json +30 -30
- package/fixtures/mcp-review.json +20 -20
- package/package.json +68 -68
- package/schemas/hcp-message.schema.json +0 -0
- package/schemas/mcp-review.json +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-host-hello",
|
|
3
|
-
"type": "host.hello",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"runner_id": "runner-local",
|
|
8
|
-
"host_id": "host-local",
|
|
9
|
-
"runner_version": "0.0.0",
|
|
10
|
-
"supported_protocol_versions": ["hcp.v0"],
|
|
11
|
-
"capabilities": ["providers", "mcp_streamable_http"],
|
|
12
|
-
"retained_events": {
|
|
13
|
-
"sessions": [
|
|
14
|
-
{
|
|
15
|
-
"session_id": "session-1",
|
|
16
|
-
"first_event_sequence": 1,
|
|
17
|
-
"last_event_sequence": 12
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-host-hello",
|
|
3
|
+
"type": "host.hello",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"runner_id": "runner-local",
|
|
8
|
+
"host_id": "host-local",
|
|
9
|
+
"runner_version": "0.0.0",
|
|
10
|
+
"supported_protocol_versions": ["hcp.v0"],
|
|
11
|
+
"capabilities": ["providers", "mcp_streamable_http"],
|
|
12
|
+
"retained_events": {
|
|
13
|
+
"sessions": [
|
|
14
|
+
{
|
|
15
|
+
"session_id": "session-1",
|
|
16
|
+
"first_event_sequence": 1,
|
|
17
|
+
"last_event_sequence": 12
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-host-replay-unavailable",
|
|
3
|
-
"type": "host.replay.unavailable",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:01.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"session_id": "session-1",
|
|
8
|
-
"requested_after_sequence": 12,
|
|
9
|
-
"reason": "cursor_outside_retention",
|
|
10
|
-
"retained_range": {
|
|
11
|
-
"first_event_sequence": 20,
|
|
12
|
-
"last_event_sequence": 40
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-host-replay-unavailable",
|
|
3
|
+
"type": "host.replay.unavailable",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:01.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"session_id": "session-1",
|
|
8
|
+
"requested_after_sequence": 12,
|
|
9
|
+
"reason": "cursor_outside_retention",
|
|
10
|
+
"retained_range": {
|
|
11
|
+
"first_event_sequence": 20,
|
|
12
|
+
"last_event_sequence": 40
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-local-dev-server-start",
|
|
3
|
-
"type": "local.action.request",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"request_id": "local-action-dev-start-1",
|
|
8
|
-
"action": "local.dev_server.start",
|
|
9
|
-
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
-
"attribution": {
|
|
11
|
-
"session_id": "session-1",
|
|
12
|
-
"turn_id": "turn-1",
|
|
13
|
-
"workspace_id": "workspace-1",
|
|
14
|
-
"provider_instance_id": "provider-1"
|
|
15
|
-
},
|
|
16
|
-
"lease": {
|
|
17
|
-
"lease_id": "local-lease-dev-server",
|
|
18
|
-
"capability_id": "dev_server",
|
|
19
|
-
"scope": "workspace",
|
|
20
|
-
"hcp_session_id": "session-1",
|
|
21
|
-
"execution_host_id": "host-1",
|
|
22
|
-
"provider_instance_id": "provider-1",
|
|
23
|
-
"workspace_id": "workspace-1",
|
|
24
|
-
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
-
},
|
|
26
|
-
"sandbox": {
|
|
27
|
-
"mode": "workspace_write",
|
|
28
|
-
"workspace_root": "/tmp/workspace",
|
|
29
|
-
"cwd": "/tmp/workspace",
|
|
30
|
-
"requires_workspace_containment": true
|
|
31
|
-
},
|
|
32
|
-
"approval": {
|
|
33
|
-
"status": "approved",
|
|
34
|
-
"request_id": "approval-2",
|
|
35
|
-
"action_hash": "sha256:dev-server",
|
|
36
|
-
"decision": "accept_for_session",
|
|
37
|
-
"actor_id": "user-1",
|
|
38
|
-
"approved_at": "2026-01-01T00:00:02.000Z"
|
|
39
|
-
},
|
|
40
|
-
"output_limits": {},
|
|
41
|
-
"cancellation": {
|
|
42
|
-
"cancellable": true,
|
|
43
|
-
"timeout_ms": 60000,
|
|
44
|
-
"token": "cancel-dev-start-1"
|
|
45
|
-
},
|
|
46
|
-
"audit": {
|
|
47
|
-
"started_event_type": "local_capability.action.started",
|
|
48
|
-
"completed_event_type": "local_capability.action.completed",
|
|
49
|
-
"failed_event_type": "local_capability.action.failed"
|
|
50
|
-
},
|
|
51
|
-
"input": {
|
|
52
|
-
"server_id": "web",
|
|
53
|
-
"executable": "npm",
|
|
54
|
-
"argv": [
|
|
55
|
-
"run",
|
|
56
|
-
"dev"
|
|
57
|
-
],
|
|
58
|
-
"cwd": "/tmp/workspace",
|
|
59
|
-
"host": "127.0.0.1",
|
|
60
|
-
"port": 3000,
|
|
61
|
-
"use_shell": false,
|
|
62
|
-
"readiness": {
|
|
63
|
-
"url": "http://127.0.0.1:3000",
|
|
64
|
-
"timeout_ms": 30000
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-local-dev-server-start",
|
|
3
|
+
"type": "local.action.request",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"request_id": "local-action-dev-start-1",
|
|
8
|
+
"action": "local.dev_server.start",
|
|
9
|
+
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
+
"attribution": {
|
|
11
|
+
"session_id": "session-1",
|
|
12
|
+
"turn_id": "turn-1",
|
|
13
|
+
"workspace_id": "workspace-1",
|
|
14
|
+
"provider_instance_id": "provider-1"
|
|
15
|
+
},
|
|
16
|
+
"lease": {
|
|
17
|
+
"lease_id": "local-lease-dev-server",
|
|
18
|
+
"capability_id": "dev_server",
|
|
19
|
+
"scope": "workspace",
|
|
20
|
+
"hcp_session_id": "session-1",
|
|
21
|
+
"execution_host_id": "host-1",
|
|
22
|
+
"provider_instance_id": "provider-1",
|
|
23
|
+
"workspace_id": "workspace-1",
|
|
24
|
+
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
+
},
|
|
26
|
+
"sandbox": {
|
|
27
|
+
"mode": "workspace_write",
|
|
28
|
+
"workspace_root": "/tmp/workspace",
|
|
29
|
+
"cwd": "/tmp/workspace",
|
|
30
|
+
"requires_workspace_containment": true
|
|
31
|
+
},
|
|
32
|
+
"approval": {
|
|
33
|
+
"status": "approved",
|
|
34
|
+
"request_id": "approval-2",
|
|
35
|
+
"action_hash": "sha256:dev-server",
|
|
36
|
+
"decision": "accept_for_session",
|
|
37
|
+
"actor_id": "user-1",
|
|
38
|
+
"approved_at": "2026-01-01T00:00:02.000Z"
|
|
39
|
+
},
|
|
40
|
+
"output_limits": {},
|
|
41
|
+
"cancellation": {
|
|
42
|
+
"cancellable": true,
|
|
43
|
+
"timeout_ms": 60000,
|
|
44
|
+
"token": "cancel-dev-start-1"
|
|
45
|
+
},
|
|
46
|
+
"audit": {
|
|
47
|
+
"started_event_type": "local_capability.action.started",
|
|
48
|
+
"completed_event_type": "local_capability.action.completed",
|
|
49
|
+
"failed_event_type": "local_capability.action.failed"
|
|
50
|
+
},
|
|
51
|
+
"input": {
|
|
52
|
+
"server_id": "web",
|
|
53
|
+
"executable": "npm",
|
|
54
|
+
"argv": [
|
|
55
|
+
"run",
|
|
56
|
+
"dev"
|
|
57
|
+
],
|
|
58
|
+
"cwd": "/tmp/workspace",
|
|
59
|
+
"host": "127.0.0.1",
|
|
60
|
+
"port": 3000,
|
|
61
|
+
"use_shell": false,
|
|
62
|
+
"readiness": {
|
|
63
|
+
"url": "http://127.0.0.1:3000",
|
|
64
|
+
"timeout_ms": 30000
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-local-dev-server-stop",
|
|
3
|
-
"type": "local.action.request",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"request_id": "local-action-dev-stop-1",
|
|
8
|
-
"action": "local.dev_server.stop",
|
|
9
|
-
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
-
"attribution": {
|
|
11
|
-
"session_id": "session-1",
|
|
12
|
-
"turn_id": "turn-1",
|
|
13
|
-
"workspace_id": "workspace-1",
|
|
14
|
-
"provider_instance_id": "provider-1"
|
|
15
|
-
},
|
|
16
|
-
"lease": {
|
|
17
|
-
"lease_id": "local-lease-dev-server",
|
|
18
|
-
"capability_id": "dev_server",
|
|
19
|
-
"scope": "workspace",
|
|
20
|
-
"hcp_session_id": "session-1",
|
|
21
|
-
"execution_host_id": "host-1",
|
|
22
|
-
"provider_instance_id": "provider-1",
|
|
23
|
-
"workspace_id": "workspace-1",
|
|
24
|
-
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
-
},
|
|
26
|
-
"sandbox": {
|
|
27
|
-
"mode": "workspace_write",
|
|
28
|
-
"workspace_root": "/tmp/workspace",
|
|
29
|
-
"cwd": "/tmp/workspace",
|
|
30
|
-
"requires_workspace_containment": true
|
|
31
|
-
},
|
|
32
|
-
"approval": {
|
|
33
|
-
"status": "not_required"
|
|
34
|
-
},
|
|
35
|
-
"output_limits": {},
|
|
36
|
-
"cancellation": {
|
|
37
|
-
"cancellable": true,
|
|
38
|
-
"timeout_ms": 30000,
|
|
39
|
-
"token": "cancel-dev-stop-1"
|
|
40
|
-
},
|
|
41
|
-
"audit": {
|
|
42
|
-
"started_event_type": "local_capability.action.started",
|
|
43
|
-
"completed_event_type": "local_capability.action.completed",
|
|
44
|
-
"failed_event_type": "local_capability.action.failed"
|
|
45
|
-
},
|
|
46
|
-
"input": {
|
|
47
|
-
"server_id": "web",
|
|
48
|
-
"signal": "SIGTERM",
|
|
49
|
-
"timeout_ms": 30000
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-local-dev-server-stop",
|
|
3
|
+
"type": "local.action.request",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"request_id": "local-action-dev-stop-1",
|
|
8
|
+
"action": "local.dev_server.stop",
|
|
9
|
+
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
+
"attribution": {
|
|
11
|
+
"session_id": "session-1",
|
|
12
|
+
"turn_id": "turn-1",
|
|
13
|
+
"workspace_id": "workspace-1",
|
|
14
|
+
"provider_instance_id": "provider-1"
|
|
15
|
+
},
|
|
16
|
+
"lease": {
|
|
17
|
+
"lease_id": "local-lease-dev-server",
|
|
18
|
+
"capability_id": "dev_server",
|
|
19
|
+
"scope": "workspace",
|
|
20
|
+
"hcp_session_id": "session-1",
|
|
21
|
+
"execution_host_id": "host-1",
|
|
22
|
+
"provider_instance_id": "provider-1",
|
|
23
|
+
"workspace_id": "workspace-1",
|
|
24
|
+
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
+
},
|
|
26
|
+
"sandbox": {
|
|
27
|
+
"mode": "workspace_write",
|
|
28
|
+
"workspace_root": "/tmp/workspace",
|
|
29
|
+
"cwd": "/tmp/workspace",
|
|
30
|
+
"requires_workspace_containment": true
|
|
31
|
+
},
|
|
32
|
+
"approval": {
|
|
33
|
+
"status": "not_required"
|
|
34
|
+
},
|
|
35
|
+
"output_limits": {},
|
|
36
|
+
"cancellation": {
|
|
37
|
+
"cancellable": true,
|
|
38
|
+
"timeout_ms": 30000,
|
|
39
|
+
"token": "cancel-dev-stop-1"
|
|
40
|
+
},
|
|
41
|
+
"audit": {
|
|
42
|
+
"started_event_type": "local_capability.action.started",
|
|
43
|
+
"completed_event_type": "local_capability.action.completed",
|
|
44
|
+
"failed_event_type": "local_capability.action.failed"
|
|
45
|
+
},
|
|
46
|
+
"input": {
|
|
47
|
+
"server_id": "web",
|
|
48
|
+
"signal": "SIGTERM",
|
|
49
|
+
"timeout_ms": 30000
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-local-action-error",
|
|
3
|
-
"type": "local.action.error",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"request_id": "local-action-patch-1",
|
|
8
|
-
"action": "local.filesystem.patch",
|
|
9
|
-
"status": "failed",
|
|
10
|
-
"failed_at": "2026-01-01T00:00:03.000Z",
|
|
11
|
-
"attribution": {
|
|
12
|
-
"session_id": "session-1",
|
|
13
|
-
"turn_id": "turn-1",
|
|
14
|
-
"workspace_id": "workspace-1",
|
|
15
|
-
"provider_instance_id": "provider-1"
|
|
16
|
-
},
|
|
17
|
-
"lease": {
|
|
18
|
-
"lease_id": "local-lease-patch",
|
|
19
|
-
"capability_id": "filesystem",
|
|
20
|
-
"scope": "workspace_write",
|
|
21
|
-
"hcp_session_id": "session-1",
|
|
22
|
-
"execution_host_id": "host-1",
|
|
23
|
-
"provider_instance_id": "provider-1",
|
|
24
|
-
"workspace_id": "workspace-1"
|
|
25
|
-
},
|
|
26
|
-
"error": {
|
|
27
|
-
"code": "local_capability_expected_hash_mismatch",
|
|
28
|
-
"message": "The expected base hash did not match.",
|
|
29
|
-
"retryable": false
|
|
30
|
-
},
|
|
31
|
-
"audit_events": {
|
|
32
|
-
"failed": {
|
|
33
|
-
"event_type": "local_capability.action.failed",
|
|
34
|
-
"sequence": 12
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-local-action-error",
|
|
3
|
+
"type": "local.action.error",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"request_id": "local-action-patch-1",
|
|
8
|
+
"action": "local.filesystem.patch",
|
|
9
|
+
"status": "failed",
|
|
10
|
+
"failed_at": "2026-01-01T00:00:03.000Z",
|
|
11
|
+
"attribution": {
|
|
12
|
+
"session_id": "session-1",
|
|
13
|
+
"turn_id": "turn-1",
|
|
14
|
+
"workspace_id": "workspace-1",
|
|
15
|
+
"provider_instance_id": "provider-1"
|
|
16
|
+
},
|
|
17
|
+
"lease": {
|
|
18
|
+
"lease_id": "local-lease-patch",
|
|
19
|
+
"capability_id": "filesystem",
|
|
20
|
+
"scope": "workspace_write",
|
|
21
|
+
"hcp_session_id": "session-1",
|
|
22
|
+
"execution_host_id": "host-1",
|
|
23
|
+
"provider_instance_id": "provider-1",
|
|
24
|
+
"workspace_id": "workspace-1"
|
|
25
|
+
},
|
|
26
|
+
"error": {
|
|
27
|
+
"code": "local_capability_expected_hash_mismatch",
|
|
28
|
+
"message": "The expected base hash did not match.",
|
|
29
|
+
"retryable": false
|
|
30
|
+
},
|
|
31
|
+
"audit_events": {
|
|
32
|
+
"failed": {
|
|
33
|
+
"event_type": "local_capability.action.failed",
|
|
34
|
+
"sequence": 12
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-local-filesystem-list",
|
|
3
|
-
"type": "local.action.request",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"request_id": "local-action-list-1",
|
|
8
|
-
"action": "local.filesystem.list",
|
|
9
|
-
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
-
"attribution": {
|
|
11
|
-
"session_id": "session-1",
|
|
12
|
-
"turn_id": "turn-1",
|
|
13
|
-
"workspace_id": "workspace-1",
|
|
14
|
-
"provider_instance_id": "provider-1"
|
|
15
|
-
},
|
|
16
|
-
"lease": {
|
|
17
|
-
"lease_id": "local-lease-list",
|
|
18
|
-
"capability_id": "filesystem",
|
|
19
|
-
"scope": "workspace_read",
|
|
20
|
-
"hcp_session_id": "session-1",
|
|
21
|
-
"execution_host_id": "host-1",
|
|
22
|
-
"provider_instance_id": "provider-1",
|
|
23
|
-
"workspace_id": "workspace-1",
|
|
24
|
-
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
-
},
|
|
26
|
-
"sandbox": {
|
|
27
|
-
"mode": "workspace_write",
|
|
28
|
-
"workspace_root": "/tmp/workspace",
|
|
29
|
-
"cwd": "/tmp/workspace",
|
|
30
|
-
"requires_workspace_containment": true
|
|
31
|
-
},
|
|
32
|
-
"approval": {
|
|
33
|
-
"status": "not_required"
|
|
34
|
-
},
|
|
35
|
-
"output_limits": {
|
|
36
|
-
"entries": 200
|
|
37
|
-
},
|
|
38
|
-
"cancellation": {
|
|
39
|
-
"cancellable": false
|
|
40
|
-
},
|
|
41
|
-
"audit": {
|
|
42
|
-
"started_event_type": "local_capability.action.started",
|
|
43
|
-
"completed_event_type": "local_capability.action.completed",
|
|
44
|
-
"failed_event_type": "local_capability.action.failed"
|
|
45
|
-
},
|
|
46
|
-
"input": {
|
|
47
|
-
"path": ".",
|
|
48
|
-
"recursive": false,
|
|
49
|
-
"include_hidden": false
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-local-filesystem-list",
|
|
3
|
+
"type": "local.action.request",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"request_id": "local-action-list-1",
|
|
8
|
+
"action": "local.filesystem.list",
|
|
9
|
+
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
+
"attribution": {
|
|
11
|
+
"session_id": "session-1",
|
|
12
|
+
"turn_id": "turn-1",
|
|
13
|
+
"workspace_id": "workspace-1",
|
|
14
|
+
"provider_instance_id": "provider-1"
|
|
15
|
+
},
|
|
16
|
+
"lease": {
|
|
17
|
+
"lease_id": "local-lease-list",
|
|
18
|
+
"capability_id": "filesystem",
|
|
19
|
+
"scope": "workspace_read",
|
|
20
|
+
"hcp_session_id": "session-1",
|
|
21
|
+
"execution_host_id": "host-1",
|
|
22
|
+
"provider_instance_id": "provider-1",
|
|
23
|
+
"workspace_id": "workspace-1",
|
|
24
|
+
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
+
},
|
|
26
|
+
"sandbox": {
|
|
27
|
+
"mode": "workspace_write",
|
|
28
|
+
"workspace_root": "/tmp/workspace",
|
|
29
|
+
"cwd": "/tmp/workspace",
|
|
30
|
+
"requires_workspace_containment": true
|
|
31
|
+
},
|
|
32
|
+
"approval": {
|
|
33
|
+
"status": "not_required"
|
|
34
|
+
},
|
|
35
|
+
"output_limits": {
|
|
36
|
+
"entries": 200
|
|
37
|
+
},
|
|
38
|
+
"cancellation": {
|
|
39
|
+
"cancellable": false
|
|
40
|
+
},
|
|
41
|
+
"audit": {
|
|
42
|
+
"started_event_type": "local_capability.action.started",
|
|
43
|
+
"completed_event_type": "local_capability.action.completed",
|
|
44
|
+
"failed_event_type": "local_capability.action.failed"
|
|
45
|
+
},
|
|
46
|
+
"input": {
|
|
47
|
+
"path": ".",
|
|
48
|
+
"recursive": false,
|
|
49
|
+
"include_hidden": false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "message-local-filesystem-patch",
|
|
3
|
-
"type": "local.action.request",
|
|
4
|
-
"version": "hcp.v0",
|
|
5
|
-
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
-
"payload": {
|
|
7
|
-
"request_id": "local-action-patch-1",
|
|
8
|
-
"action": "local.filesystem.patch",
|
|
9
|
-
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
-
"attribution": {
|
|
11
|
-
"session_id": "session-1",
|
|
12
|
-
"turn_id": "turn-1",
|
|
13
|
-
"workspace_id": "workspace-1",
|
|
14
|
-
"provider_instance_id": "provider-1"
|
|
15
|
-
},
|
|
16
|
-
"lease": {
|
|
17
|
-
"lease_id": "local-lease-patch",
|
|
18
|
-
"capability_id": "filesystem",
|
|
19
|
-
"scope": "workspace_write",
|
|
20
|
-
"hcp_session_id": "session-1",
|
|
21
|
-
"execution_host_id": "host-1",
|
|
22
|
-
"provider_instance_id": "provider-1",
|
|
23
|
-
"workspace_id": "workspace-1",
|
|
24
|
-
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
-
},
|
|
26
|
-
"sandbox": {
|
|
27
|
-
"mode": "workspace_write",
|
|
28
|
-
"workspace_root": "/tmp/workspace",
|
|
29
|
-
"cwd": "/tmp/workspace",
|
|
30
|
-
"requires_workspace_containment": true
|
|
31
|
-
},
|
|
32
|
-
"approval": {
|
|
33
|
-
"status": "not_required"
|
|
34
|
-
},
|
|
35
|
-
"output_limits": {},
|
|
36
|
-
"cancellation": {
|
|
37
|
-
"cancellable": false
|
|
38
|
-
},
|
|
39
|
-
"audit": {
|
|
40
|
-
"started_event_type": "local_capability.action.started",
|
|
41
|
-
"completed_event_type": "local_capability.action.completed",
|
|
42
|
-
"failed_event_type": "local_capability.action.failed"
|
|
43
|
-
},
|
|
44
|
-
"input": {
|
|
45
|
-
"path": "README.md",
|
|
46
|
-
"expected_base_hash": "sha256:old",
|
|
47
|
-
"patch": {
|
|
48
|
-
"format": "unified_diff",
|
|
49
|
-
"content": "--- a/README.md\n+++ b/README.md\n@@\n-old\n+new\n"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "message-local-filesystem-patch",
|
|
3
|
+
"type": "local.action.request",
|
|
4
|
+
"version": "hcp.v0",
|
|
5
|
+
"sent_at": "2026-01-01T00:00:00.000Z",
|
|
6
|
+
"payload": {
|
|
7
|
+
"request_id": "local-action-patch-1",
|
|
8
|
+
"action": "local.filesystem.patch",
|
|
9
|
+
"issued_at": "2026-01-01T00:00:01.000Z",
|
|
10
|
+
"attribution": {
|
|
11
|
+
"session_id": "session-1",
|
|
12
|
+
"turn_id": "turn-1",
|
|
13
|
+
"workspace_id": "workspace-1",
|
|
14
|
+
"provider_instance_id": "provider-1"
|
|
15
|
+
},
|
|
16
|
+
"lease": {
|
|
17
|
+
"lease_id": "local-lease-patch",
|
|
18
|
+
"capability_id": "filesystem",
|
|
19
|
+
"scope": "workspace_write",
|
|
20
|
+
"hcp_session_id": "session-1",
|
|
21
|
+
"execution_host_id": "host-1",
|
|
22
|
+
"provider_instance_id": "provider-1",
|
|
23
|
+
"workspace_id": "workspace-1",
|
|
24
|
+
"expires_at": "2026-01-01T01:00:00.000Z"
|
|
25
|
+
},
|
|
26
|
+
"sandbox": {
|
|
27
|
+
"mode": "workspace_write",
|
|
28
|
+
"workspace_root": "/tmp/workspace",
|
|
29
|
+
"cwd": "/tmp/workspace",
|
|
30
|
+
"requires_workspace_containment": true
|
|
31
|
+
},
|
|
32
|
+
"approval": {
|
|
33
|
+
"status": "not_required"
|
|
34
|
+
},
|
|
35
|
+
"output_limits": {},
|
|
36
|
+
"cancellation": {
|
|
37
|
+
"cancellable": false
|
|
38
|
+
},
|
|
39
|
+
"audit": {
|
|
40
|
+
"started_event_type": "local_capability.action.started",
|
|
41
|
+
"completed_event_type": "local_capability.action.completed",
|
|
42
|
+
"failed_event_type": "local_capability.action.failed"
|
|
43
|
+
},
|
|
44
|
+
"input": {
|
|
45
|
+
"path": "README.md",
|
|
46
|
+
"expected_base_hash": "sha256:old",
|
|
47
|
+
"patch": {
|
|
48
|
+
"format": "unified_diff",
|
|
49
|
+
"content": "--- a/README.md\n+++ b/README.md\n@@\n-old\n+new\n"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|