dory-to-dory-mcp 0.3.0 → 0.5.0
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/README.md +75 -10
- package/contracts/core-openapi.json +320 -5
- package/dist/core-client.d.ts +3 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +3 -0
- package/dist/core-client.js.map +1 -1
- package/dist/generated/core-api.d.ts +138 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +44 -31
- package/dist/server.js.map +1 -1
- package/dist/usage-guide.d.ts +13 -13
- package/dist/usage-guide.d.ts.map +1 -1
- package/dist/usage-guide.js +35 -18
- package/dist/usage-guide.js.map +1 -1
- package/dist/workflow-inputs.d.ts +485 -70
- package/dist/workflow-inputs.d.ts.map +1 -1
- package/dist/workflow-inputs.js +140 -63
- package/dist/workflow-inputs.js.map +1 -1
- package/docs/deployment.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
- lease/fencing token이 있는 work claim, 사용자 확인, host 갱신과 client 응답 제출
|
|
12
12
|
- 참여자별 nullable session 연결과 revision 기반 명시적 이동·해제
|
|
13
13
|
- Core API key 기반 인증
|
|
14
|
-
- MCP Tools
|
|
14
|
+
- MCP Tools 22개 제공
|
|
15
15
|
|
|
16
|
-
버전 `0.
|
|
16
|
+
버전 `0.5.0`은 검색 증빙 발급 API, 실행 담당자 규약 2와 `execution_result` 보고를 지원하는 Core `/v2` 계약이 필요합니다. Core migration `9b3c7d5e102a`와 `schedule_meeting 1.2.0`을 제공하는 Core를 먼저 적용해야 합니다. 기존 Skill snapshot과 receipt 모드의 계약은 유지합니다. 호환 Core를 먼저 적용하고 정확한 MCP 버전을 고정해 설치하십시오. npm 게시 전 검증이나 사내 배포에는 로컬 빌드 또는 tarball을 사용할 수 있습니다. 구형 `/v1` 쓰기를 새 계약으로 자동 변환하지 않으며 진행 중인 구형 작업에는 기존 MCP 버전을 사용합니다.
|
|
17
17
|
|
|
18
18
|
### 카드와 세션 도구
|
|
19
19
|
|
|
20
20
|
`d2d_create_coordination`은 `client_handles`, `goal`, `skill_search_id`를 받습니다. `goal_type`은 제거했습니다. 매 새 coordination 생성 전에 `d2d_search_coordination_skills`를 동일한 goal로 최소 한 번 정상 완료해야 합니다. 검색 도구는 `POST /v2/agent/skill-searches`로 증빙을 발급받으며 검색 입력은 `goal`(필수), `query`(최대 200자, 기본 빈 문자열), `operation_id`(선택)입니다. 반환된 `skill_search_id`를 생성에 전달합니다. 관련 후보는 `d2d_get_coordination_skill`로 조건·계획 템플릿·정확한 버전을 확인한 뒤 plan을 작성합니다. 적합한 후보가 없으면 skill 없이 직접 계획하며, Core는 실제 검색 완료 증빙의 호출자·goal·만료·일회 사용을 검증합니다. 결과가 0건이거나 LLM이 유효한 Skill이 없다고 판단하면 `skill=null`로 생성할 수 있습니다. 검색 결과나 선택 판단은 검토하지 않습니다. 검색 오류는 최초 1회와 최대 3회 재시도, 총 4회 HTTP 요청으로 제한하고 `D2D_MAX_RETRIES`와 중첩하지 않습니다. HTTP 408을 포함한 검색 오류를 재시도하되, Core가 명시한 `skill_search_exhausted`·`idempotency_conflict`는 즉시 종료합니다. 동일 `operation_id`와 goal/query의 실행 중·성공·실패 결과는 MCP 프로세스에서 공유하므로 중복·동시 도구 호출로 HTTP 재시도 예산을 초기화할 수 없습니다. 같은 키에 다른 입력은 충돌로 거부합니다. Core는 프로세스 재시작 뒤에도 실제 검색 횟수를 DB에서 제한하지만 Core에 도달하지 않은 전송 오류 횟수는 MCP 프로세스 안에서만 유지됩니다. 실패하면 생성도 종료하며 새 `operation_id`로 예산을 초기화하지 않습니다. 검색 결과의 `operation_id`를 보존하고, 생성은 생략 시 `skill_search_id`를 idempotency key로 사용하므로 불명확한 응답에는 동일 payload와 key를 재사용합니다. `d2d_run_skill_code`는 skill에 등록된 코드와 입력 스키마를 사용합니다.
|
|
21
21
|
|
|
22
|
-
`d2d_claim_next_item` 결과의 `delivery.work.claim_id`와 카드 revision을 사용합니다. claim 응답에는 skill 본문을 포함하지 않습니다.
|
|
22
|
+
`d2d_claim_next_item` 결과의 `delivery.work.claim_id`와 카드 revision을 사용합니다. claim 응답에는 skill 본문을 포함하지 않습니다. Host는 `d2d_get_coordination`으로 저장된 skill을 조회할 수 있고, Client는 자기 요청에 포함된 참조를 사용합니다. Skill 조회에는 정확한 version이 필수입니다. client는 `d2d_submit_item_result`의 `to_host`만 제출하고 다른 카드 필드는 거부됩니다. host는 `d2d_update_host_card`로 plan, slots, 상태 및 다음 요청을 결정합니다. 회의 commit은 같은 proposal에 전원 준비가 확인된 뒤 host가 결정합니다. 새 agent_report 모드는 실제 실행 결과를 보고해 완료하며 외부 ID나 별도 검증을 요구하지 않습니다. 기존 receipt 모드는 이전 계약을 유지합니다.
|
|
23
23
|
|
|
24
24
|
생성·claim·결과·host 갱신·사용자 답변에는 현재 `session_id`를 전달할 수 있습니다. 외부 Agent는 `null` 또는 생략을 사용할 수 있으며 기존 연결은 유지됩니다. 명시적 이동·해제는 `d2d_bind_session`에 `expected_session_revision`과 문자열 또는 `null`을 전달합니다. 각 Agent는 자기 연결만 접근합니다. 사용자 답변은 `interaction_id`, `answer`, 승인 질문인 경우 명시적 `decision`으로 제출합니다.
|
|
25
25
|
|
|
@@ -27,6 +27,15 @@ MCP Resources, Prompts, 알림 push, polling daemon, FCM, Runtime Adapter는 포
|
|
|
27
27
|
|
|
28
28
|
Agent가 dory-to-dory의 목적, Watcher 설치와 device pairing, SSE 처리, 사용자 확인, 허용 범위와 일반적인 처리 흐름을 설명해야 할 때는 파라미터 없이 `d2d_get_usage_guide`를 호출할 수 있습니다.
|
|
29
29
|
|
|
30
|
+
## 작업 인계와 사용자 질문
|
|
31
|
+
|
|
32
|
+
새 Core의 `execution_protocol=2` coordination은 `Host → 한 Client → Host` 순서로 진행합니다. Host만 카드 상태·계획·slots를 결정하며 Client는 필요한 정보를 모은 뒤 최종 `to_host`만 제출합니다.
|
|
33
|
+
|
|
34
|
+
- Host 중간 저장: `d2d_update_host_card`의 `next_action=continue`는 같은 claim을 유지합니다. 다음 Client 한 명에게 요청할 때 `dispatch`, 최종 완료·실패·취소를 결정할 때 `finish`를 사용합니다.
|
|
35
|
+
- 사용자 질문: 현재 담당 Host 또는 Client가 `d2d_request_user_input`에 `work_id`, `claim_id`, `question`을 전달합니다. Core는 같은 작업을 `waiting_for_input`으로 보존하고 claim을 해제합니다. 카드 업무 상태와 담당자는 유지하며 Client 응답이나 Host 검토는 발생하지 않습니다.
|
|
36
|
+
- 재개: 명시적인 답변을 `d2d_submit_user_response`로 기록하고, 같은 `work_id`를 다시 claim해 새 `claim_id`와 현재 revision으로 계속합니다. 질문이 더 필요하면 같은 작업에서 반복합니다. 외부 동작의 승인·commit·현재 작업 연결은 유지하며, 결과 입력은 coordination.result_mode에 맞춰 선택합니다.
|
|
37
|
+
- 호환성: `ask_user` Client 결과와 사용자 대기 카드 상태는 `execution_protocol=1`인 기존 건에서만 사용합니다. 새 질문·인계 기능은 이를 지원하는 Core, MCP, Agent와 Watcher를 함께 배포해야 합니다.
|
|
38
|
+
|
|
30
39
|
## 요구 사항
|
|
31
40
|
|
|
32
41
|
- Node.js 22 이상
|
|
@@ -35,18 +44,18 @@ Agent가 dory-to-dory의 목적, Watcher 설치와 device pairing, SSE 처리,
|
|
|
35
44
|
|
|
36
45
|
## Watcher를 통한 설치
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
새 실행 결과 보고에는 MCP `0.5.0`을 포함한 Watcher `0.5.0`을 사용합니다. Watcher `0.3.0` 이하에는 규약 2의 질문·인계 처리가 없고, `0.4.0`에는 새 실행 결과 입력과 지침이 없습니다. Watcher는 별도 게시 단위이므로 해당 버전의 registry 게시를 확인한 뒤 설치합니다. 기존 Watcher 설치의 의존성은 자동으로 바뀌지 않습니다.
|
|
39
48
|
|
|
40
|
-
아래는 Watcher `0.
|
|
49
|
+
아래는 Watcher `0.5.0` 설치 예시입니다. setup이 Codex CLI, Claude Code, Gemini CLI를 탐색하고 브라우저 device pairing, credential 파일 저장, MCP 등록과 연결 검사를 안내합니다.
|
|
41
50
|
|
|
42
51
|
```sh
|
|
43
|
-
npm install --global dory-to-dory-watcher@0.
|
|
52
|
+
npm install --global dory-to-dory-watcher@0.5.0
|
|
44
53
|
dory-watcher setup
|
|
45
54
|
```
|
|
46
55
|
|
|
47
56
|
Watcher는 Core의 SSE wake-up을 기다렸다가 pending item이 있을 때만 기존 Agent CLI를 실행합니다. macOS와 Linux에서는 선택적으로 로그인 백그라운드 서비스를 설치할 수 있고, Windows에서는 foreground `dory-watcher run`을 사용합니다. 자동 업데이트는 아직 제공하지 않습니다.
|
|
48
57
|
|
|
49
|
-
Watcher는 Agent별로 지원되는 비대화식 승인과 격리 방식을 사용합니다. Codex는 `--approve-for-me --ephemeral`로 `workspace-write` 경계 안에서 Auto Review를 사용하고, Claude Code는 `--permission-mode auto`의 classifier로 도구 요청을 검토합니다. Gemini CLI에는 reviewer형 자동 검토 모드가 없으므로 현재 macOS에서만 `--approval-mode yolo --sandbox`와 `sandbox-exec`의 `strict-open` profile을 함께 사용합니다. Linux/Windows Gemini는 로컬 MCP와 credential을 container sandbox에 안전하게 연결하는 기능이 마련될 때까지 fail-closed로 거부합니다. 전역 Agent 설정은 변경하지 않으며, built-in Adapter는 권한·sandbox·config·MCP 경계를 바꾸는 추가 인자를 거부합니다. 자동 검토가 거부한 동작은 실행되지 않습니다. Agent가 계속 실행할 수 있으면 더 안전한 대안을 찾거나 `
|
|
58
|
+
Watcher는 Agent별로 지원되는 비대화식 승인과 격리 방식을 사용합니다. Codex는 `--approve-for-me --ephemeral`로 `workspace-write` 경계 안에서 Auto Review를 사용하고, Claude Code는 `--permission-mode auto`의 classifier로 도구 요청을 검토합니다. Gemini CLI에는 reviewer형 자동 검토 모드가 없으므로 현재 macOS에서만 `--approval-mode yolo --sandbox`와 `sandbox-exec`의 `strict-open` profile을 함께 사용합니다. Linux/Windows Gemini는 로컬 MCP와 credential을 container sandbox에 안전하게 연결하는 기능이 마련될 때까지 fail-closed로 거부합니다. 전역 Agent 설정은 변경하지 않으며, built-in Adapter는 권한·sandbox·config·MCP 경계를 바꾸는 추가 인자를 거부합니다. 자동 검토가 거부한 동작은 실행되지 않습니다. Agent가 계속 실행할 수 있으면 더 안전한 대안을 찾거나 `d2d_request_user_input`으로 자기 사용자에게 질문하거나 `error`를 제출하고, 제출 전에 중단되면 Watcher가 안전한 장애 코드만 보고하며 item은 재시도할 수 있게 유지합니다.
|
|
50
59
|
|
|
51
60
|
`dory-watcher doctor`는 Core와 Agent 로그인뿐 아니라 실제 무인 실행 모드도 검사합니다. Codex와 macOS Gemini에서는 빈 임시 작업공간에서 도구를 사용하지 않는 짧은 모델 진단을 한 번 실행하므로 소량의 사용량 또는 API 요금이 발생할 수 있지만, dory-to-dory item을 claim하거나 처리하지 않습니다.
|
|
52
61
|
|
|
@@ -63,7 +72,7 @@ Watcher는 Agent별로 지원되는 비대화식 승인과 격리 방식을 사
|
|
|
63
72
|
"mcpServers": {
|
|
64
73
|
"dory-to-dory": {
|
|
65
74
|
"command": "npx",
|
|
66
|
-
"args": ["-y", "dory-to-dory-mcp@0.
|
|
75
|
+
"args": ["-y", "dory-to-dory-mcp@0.5.0"],
|
|
67
76
|
"env": {
|
|
68
77
|
"D2D_API_KEY": "d2d_live_replace_me"
|
|
69
78
|
}
|
|
@@ -74,7 +83,7 @@ Watcher는 Agent별로 지원되는 비대화식 승인과 격리 방식을 사
|
|
|
74
83
|
|
|
75
84
|
호스트마다 설정 파일 위치와 최상위 키 이름은 다를 수 있지만 핵심은 같습니다. 호스트가 `npx`를 실행하고 환경 변수로 API key를 넘깁니다. Core URL은 기본적으로 `https://dory-to-dory.dnotitia.ai`를 사용하며, 다른 Core에 연결할 때만 `D2D_CORE_URL`로 재정의합니다. 패키지 버전을 고정하면 예기치 않은 자동 업데이트를 피할 수 있습니다.
|
|
76
85
|
|
|
77
|
-
`pnpm dlx`를 쓰는 호스트라면 command를 `pnpm`, args를 `["dlx", "dory-to-dory-mcp@0.
|
|
86
|
+
`pnpm dlx`를 쓰는 호스트라면 command를 `pnpm`, args를 `["dlx", "dory-to-dory-mcp@0.5.0"]`로 바꿉니다.
|
|
78
87
|
|
|
79
88
|
## 로컬 소스 또는 tarball 설치
|
|
80
89
|
|
|
@@ -104,7 +113,7 @@ MCP 호스트 설정:
|
|
|
104
113
|
또는 `pnpm pack`으로 생성한 `.tgz` 파일을 다른 장비에 전달해 설치할 수 있습니다.
|
|
105
114
|
|
|
106
115
|
```sh
|
|
107
|
-
npm install --global ./dory-to-dory-mcp-0.
|
|
116
|
+
npm install --global ./dory-to-dory-mcp-0.5.0.tgz
|
|
108
117
|
```
|
|
109
118
|
|
|
110
119
|
이후 MCP command를 `d2d-mcp`로 설정합니다.
|
|
@@ -145,3 +154,59 @@ pnpm run check
|
|
|
145
154
|
```
|
|
146
155
|
|
|
147
156
|
배포 선택지와 운영상 제약은 [docs/deployment.md](docs/deployment.md)를 참고하십시오.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## Execution results and precise tool inputs (0.5.0)
|
|
160
|
+
|
|
161
|
+
New coordinations report `coordination.result_mode`. In `agent_report` mode, including
|
|
162
|
+
`schedule_meeting@1.2.0`, each Agent reports its actual calendar outcome; no provider,
|
|
163
|
+
event ID, receipt, separate verification phase, or mutual calendar inspection is
|
|
164
|
+
required. Existing `receipt` mode coordinations retain their legacy receipt contract.
|
|
165
|
+
This release requires Core migration `9b3c7d5e102a` and an Agent that reports actual
|
|
166
|
+
execution outcomes. Existing 0.4.0 installations do not gain the new inputs or
|
|
167
|
+
instructions automatically; update the exact MCP/Watcher package pins or the Dory app bundle.
|
|
168
|
+
|
|
169
|
+
A Client answers a Core-issued commit with:
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"to_host": {
|
|
174
|
+
"type": "committed",
|
|
175
|
+
"message": "일정을 등록했습니다.",
|
|
176
|
+
"execution_result": {
|
|
177
|
+
"proposal_hash": "<current 64-character Core proposal hash>",
|
|
178
|
+
"operation_id": "<own to_client.operation_id>",
|
|
179
|
+
"status": "succeeded"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Include the current `work_id`, `claim_id`, own card `expected_revision`, `request_id`,
|
|
186
|
+
`turn_id`, and actual session in the full submission. Failed or uncertain execution
|
|
187
|
+
is reported as `failed` or `unknown`, preserving earlier successes. A timeout must
|
|
188
|
+
not become an assumed success or an automatic duplicate write. Host's own report
|
|
189
|
+
goes in `host_execution_result`; `host_attends=false` needs no Host calendar write.
|
|
190
|
+
Use exactly one execution result or legacy receipt, including late recovery reports.
|
|
191
|
+
The nested operation ID identifies the committed operation; the top-level
|
|
192
|
+
`operation_id` is only the tool request's replay key.
|
|
193
|
+
|
|
194
|
+
`ready` still requires valid **`to_host.approval`**, and only answers `prepare`.
|
|
195
|
+
`source=user` needs a real answered Core confirmation for the saved proposal;
|
|
196
|
+
`source=policy` needs the current own policy version. An information `answer` does
|
|
197
|
+
not carry approval. Ask approval only after saving the proposal; `proposed_action`
|
|
198
|
+
is display text, not a proposal setter. Choice questions require nonempty choices,
|
|
199
|
+
and the submitted answer must exactly equal an offered string.
|
|
200
|
+
|
|
201
|
+
Tool schemas now publish response, approval, question, result and terminal-input
|
|
202
|
+
conditions. Host `finish` requires terminal `state`, `reason` and `reason_code`;
|
|
203
|
+
completion also needs all Client cards complete, all plan steps complete/skipped,
|
|
204
|
+
no unreviewed responses and all required execution successes. `plan` and `slots`
|
|
205
|
+
replace the entire collection when supplied. Cancellation requests stop execution
|
|
206
|
+
and require Host cleanup before the final business state is settled.
|
|
207
|
+
|
|
208
|
+
`d2d_get_coordination_skill` now requires an exact `version`. Only Host can inspect
|
|
209
|
+
the saved workflow skill; Client uses the exact reference supplied in its request.
|
|
210
|
+
In a fresh conversation without the original work ID, resume an answered question
|
|
211
|
+
by claiming within its returned `coordination_id`. `d2d_bind_session` requires
|
|
212
|
+
`session_id`; explicit null clears, whereas ordinary submissions' null preserves.
|
|
@@ -4576,6 +4576,85 @@
|
|
|
4576
4576
|
}
|
|
4577
4577
|
}
|
|
4578
4578
|
},
|
|
4579
|
+
"/v2/agent/work/{work_id}/question": {
|
|
4580
|
+
"post": {
|
|
4581
|
+
"tags": [
|
|
4582
|
+
"workflows-v2"
|
|
4583
|
+
],
|
|
4584
|
+
"summary": "Request Work Question",
|
|
4585
|
+
"operationId": "request_work_question_v2_agent_work__work_id__question_post",
|
|
4586
|
+
"parameters": [
|
|
4587
|
+
{
|
|
4588
|
+
"name": "work_id",
|
|
4589
|
+
"in": "path",
|
|
4590
|
+
"required": true,
|
|
4591
|
+
"schema": {
|
|
4592
|
+
"type": "string",
|
|
4593
|
+
"title": "Work Id"
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
"name": "Idempotency-Key",
|
|
4598
|
+
"in": "header",
|
|
4599
|
+
"required": true,
|
|
4600
|
+
"schema": {
|
|
4601
|
+
"type": "string",
|
|
4602
|
+
"minLength": 8,
|
|
4603
|
+
"maxLength": 128,
|
|
4604
|
+
"title": "Idempotency-Key"
|
|
4605
|
+
}
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
"name": "authorization",
|
|
4609
|
+
"in": "header",
|
|
4610
|
+
"required": false,
|
|
4611
|
+
"schema": {
|
|
4612
|
+
"anyOf": [
|
|
4613
|
+
{
|
|
4614
|
+
"type": "string"
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
"type": "null"
|
|
4618
|
+
}
|
|
4619
|
+
],
|
|
4620
|
+
"title": "Authorization"
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
],
|
|
4624
|
+
"requestBody": {
|
|
4625
|
+
"required": true,
|
|
4626
|
+
"content": {
|
|
4627
|
+
"application/json": {
|
|
4628
|
+
"schema": {
|
|
4629
|
+
"$ref": "#/components/schemas/WorkQuestionRequest"
|
|
4630
|
+
}
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
},
|
|
4634
|
+
"responses": {
|
|
4635
|
+
"200": {
|
|
4636
|
+
"description": "Successful Response",
|
|
4637
|
+
"content": {
|
|
4638
|
+
"application/json": {
|
|
4639
|
+
"schema": {
|
|
4640
|
+
"$ref": "#/components/schemas/WorkQuestionResult"
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
},
|
|
4645
|
+
"422": {
|
|
4646
|
+
"description": "Validation Error",
|
|
4647
|
+
"content": {
|
|
4648
|
+
"application/json": {
|
|
4649
|
+
"schema": {
|
|
4650
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
4651
|
+
}
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4579
4658
|
"/v2/agent/interactions": {
|
|
4580
4659
|
"get": {
|
|
4581
4660
|
"tags": [
|
|
@@ -4995,7 +5074,7 @@
|
|
|
4995
5074
|
"required": false,
|
|
4996
5075
|
"schema": {
|
|
4997
5076
|
"type": "string",
|
|
4998
|
-
"default": "1.
|
|
5077
|
+
"default": "1.2.0",
|
|
4999
5078
|
"title": "Version"
|
|
5000
5079
|
}
|
|
5001
5080
|
},
|
|
@@ -6451,6 +6530,16 @@
|
|
|
6451
6530
|
"type": "null"
|
|
6452
6531
|
}
|
|
6453
6532
|
]
|
|
6533
|
+
},
|
|
6534
|
+
"execution_result": {
|
|
6535
|
+
"anyOf": [
|
|
6536
|
+
{
|
|
6537
|
+
"$ref": "#/components/schemas/ExecutionResult"
|
|
6538
|
+
},
|
|
6539
|
+
{
|
|
6540
|
+
"type": "null"
|
|
6541
|
+
}
|
|
6542
|
+
]
|
|
6454
6543
|
}
|
|
6455
6544
|
},
|
|
6456
6545
|
"additionalProperties": false,
|
|
@@ -7074,6 +7163,54 @@
|
|
|
7074
7163
|
],
|
|
7075
7164
|
"title": "ExecutionReceipt"
|
|
7076
7165
|
},
|
|
7166
|
+
"ExecutionResult": {
|
|
7167
|
+
"properties": {
|
|
7168
|
+
"proposal_hash": {
|
|
7169
|
+
"type": "string",
|
|
7170
|
+
"maxLength": 64,
|
|
7171
|
+
"minLength": 64,
|
|
7172
|
+
"title": "Proposal Hash",
|
|
7173
|
+
"description": "Current committed proposal hash."
|
|
7174
|
+
},
|
|
7175
|
+
"operation_id": {
|
|
7176
|
+
"type": "string",
|
|
7177
|
+
"maxLength": 128,
|
|
7178
|
+
"minLength": 8,
|
|
7179
|
+
"title": "Operation Id",
|
|
7180
|
+
"description": "Core-issued participant execution operation."
|
|
7181
|
+
},
|
|
7182
|
+
"status": {
|
|
7183
|
+
"type": "string",
|
|
7184
|
+
"enum": [
|
|
7185
|
+
"succeeded",
|
|
7186
|
+
"failed",
|
|
7187
|
+
"unknown"
|
|
7188
|
+
],
|
|
7189
|
+
"title": "Status"
|
|
7190
|
+
},
|
|
7191
|
+
"reason": {
|
|
7192
|
+
"anyOf": [
|
|
7193
|
+
{
|
|
7194
|
+
"type": "string",
|
|
7195
|
+
"maxLength": 2000
|
|
7196
|
+
},
|
|
7197
|
+
{
|
|
7198
|
+
"type": "null"
|
|
7199
|
+
}
|
|
7200
|
+
],
|
|
7201
|
+
"title": "Reason"
|
|
7202
|
+
}
|
|
7203
|
+
},
|
|
7204
|
+
"additionalProperties": false,
|
|
7205
|
+
"type": "object",
|
|
7206
|
+
"required": [
|
|
7207
|
+
"proposal_hash",
|
|
7208
|
+
"operation_id",
|
|
7209
|
+
"status"
|
|
7210
|
+
],
|
|
7211
|
+
"title": "ExecutionResult",
|
|
7212
|
+
"description": "The owning Agent's report; external provider identifiers are not required."
|
|
7213
|
+
},
|
|
7077
7214
|
"FriendInviteCreate": {
|
|
7078
7215
|
"properties": {
|
|
7079
7216
|
"handle": {
|
|
@@ -7325,6 +7462,16 @@
|
|
|
7325
7462
|
}
|
|
7326
7463
|
]
|
|
7327
7464
|
},
|
|
7465
|
+
"host_execution_result": {
|
|
7466
|
+
"anyOf": [
|
|
7467
|
+
{
|
|
7468
|
+
"$ref": "#/components/schemas/ExecutionResult"
|
|
7469
|
+
},
|
|
7470
|
+
{
|
|
7471
|
+
"type": "null"
|
|
7472
|
+
}
|
|
7473
|
+
]
|
|
7474
|
+
},
|
|
7328
7475
|
"commit": {
|
|
7329
7476
|
"type": "boolean",
|
|
7330
7477
|
"title": "Commit",
|
|
@@ -7415,6 +7562,22 @@
|
|
|
7415
7562
|
}
|
|
7416
7563
|
],
|
|
7417
7564
|
"title": "Claim Id"
|
|
7565
|
+
},
|
|
7566
|
+
"next_action": {
|
|
7567
|
+
"anyOf": [
|
|
7568
|
+
{
|
|
7569
|
+
"type": "string",
|
|
7570
|
+
"enum": [
|
|
7571
|
+
"continue",
|
|
7572
|
+
"dispatch",
|
|
7573
|
+
"finish"
|
|
7574
|
+
]
|
|
7575
|
+
},
|
|
7576
|
+
{
|
|
7577
|
+
"type": "null"
|
|
7578
|
+
}
|
|
7579
|
+
],
|
|
7580
|
+
"title": "Next Action"
|
|
7418
7581
|
}
|
|
7419
7582
|
},
|
|
7420
7583
|
"additionalProperties": false,
|
|
@@ -8041,7 +8204,24 @@
|
|
|
8041
8204
|
"RecoveryReceipt": {
|
|
8042
8205
|
"properties": {
|
|
8043
8206
|
"receipt": {
|
|
8044
|
-
"
|
|
8207
|
+
"anyOf": [
|
|
8208
|
+
{
|
|
8209
|
+
"$ref": "#/components/schemas/ExecutionReceipt"
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
"type": "null"
|
|
8213
|
+
}
|
|
8214
|
+
]
|
|
8215
|
+
},
|
|
8216
|
+
"execution_result": {
|
|
8217
|
+
"anyOf": [
|
|
8218
|
+
{
|
|
8219
|
+
"$ref": "#/components/schemas/ExecutionResult"
|
|
8220
|
+
},
|
|
8221
|
+
{
|
|
8222
|
+
"type": "null"
|
|
8223
|
+
}
|
|
8224
|
+
]
|
|
8045
8225
|
},
|
|
8046
8226
|
"session_id": {
|
|
8047
8227
|
"anyOf": [
|
|
@@ -8060,9 +8240,6 @@
|
|
|
8060
8240
|
},
|
|
8061
8241
|
"additionalProperties": false,
|
|
8062
8242
|
"type": "object",
|
|
8063
|
-
"required": [
|
|
8064
|
-
"receipt"
|
|
8065
|
-
],
|
|
8066
8243
|
"title": "RecoveryReceipt"
|
|
8067
8244
|
},
|
|
8068
8245
|
"SessionBindRequest": {
|
|
@@ -8985,6 +9162,56 @@
|
|
|
8985
9162
|
],
|
|
8986
9163
|
"title": "WorkDelivery"
|
|
8987
9164
|
},
|
|
9165
|
+
"WorkQuestionRequest": {
|
|
9166
|
+
"properties": {
|
|
9167
|
+
"claim_id": {
|
|
9168
|
+
"type": "string",
|
|
9169
|
+
"title": "Claim Id"
|
|
9170
|
+
},
|
|
9171
|
+
"question": {
|
|
9172
|
+
"$ref": "#/components/schemas/WorkflowQuestion"
|
|
9173
|
+
},
|
|
9174
|
+
"session_id": {
|
|
9175
|
+
"anyOf": [
|
|
9176
|
+
{
|
|
9177
|
+
"type": "string",
|
|
9178
|
+
"maxLength": 256,
|
|
9179
|
+
"minLength": 1,
|
|
9180
|
+
"pattern": "^[^\\s\\x00-\\x1f\\x7f]+$"
|
|
9181
|
+
},
|
|
9182
|
+
{
|
|
9183
|
+
"type": "null"
|
|
9184
|
+
}
|
|
9185
|
+
],
|
|
9186
|
+
"title": "Session Id"
|
|
9187
|
+
}
|
|
9188
|
+
},
|
|
9189
|
+
"additionalProperties": false,
|
|
9190
|
+
"type": "object",
|
|
9191
|
+
"required": [
|
|
9192
|
+
"claim_id",
|
|
9193
|
+
"question"
|
|
9194
|
+
],
|
|
9195
|
+
"title": "WorkQuestionRequest"
|
|
9196
|
+
},
|
|
9197
|
+
"WorkQuestionResult": {
|
|
9198
|
+
"properties": {
|
|
9199
|
+
"work": {
|
|
9200
|
+
"$ref": "#/components/schemas/WorkView"
|
|
9201
|
+
},
|
|
9202
|
+
"interaction": {
|
|
9203
|
+
"additionalProperties": true,
|
|
9204
|
+
"type": "object",
|
|
9205
|
+
"title": "Interaction"
|
|
9206
|
+
}
|
|
9207
|
+
},
|
|
9208
|
+
"type": "object",
|
|
9209
|
+
"required": [
|
|
9210
|
+
"work",
|
|
9211
|
+
"interaction"
|
|
9212
|
+
],
|
|
9213
|
+
"title": "WorkQuestionResult"
|
|
9214
|
+
},
|
|
8988
9215
|
"WorkResultRequest": {
|
|
8989
9216
|
"properties": {
|
|
8990
9217
|
"claim_id": {
|
|
@@ -9110,6 +9337,17 @@
|
|
|
9110
9337
|
}
|
|
9111
9338
|
],
|
|
9112
9339
|
"title": "Claim Expires At"
|
|
9340
|
+
},
|
|
9341
|
+
"interaction_id": {
|
|
9342
|
+
"anyOf": [
|
|
9343
|
+
{
|
|
9344
|
+
"type": "string"
|
|
9345
|
+
},
|
|
9346
|
+
{
|
|
9347
|
+
"type": "null"
|
|
9348
|
+
}
|
|
9349
|
+
],
|
|
9350
|
+
"title": "Interaction Id"
|
|
9113
9351
|
}
|
|
9114
9352
|
},
|
|
9115
9353
|
"type": "object",
|
|
@@ -9264,6 +9502,18 @@
|
|
|
9264
9502
|
],
|
|
9265
9503
|
"title": "Receipt"
|
|
9266
9504
|
},
|
|
9505
|
+
"execution_result": {
|
|
9506
|
+
"anyOf": [
|
|
9507
|
+
{
|
|
9508
|
+
"additionalProperties": true,
|
|
9509
|
+
"type": "object"
|
|
9510
|
+
},
|
|
9511
|
+
{
|
|
9512
|
+
"type": "null"
|
|
9513
|
+
}
|
|
9514
|
+
],
|
|
9515
|
+
"title": "Execution Result"
|
|
9516
|
+
},
|
|
9267
9517
|
"recovery_receipts": {
|
|
9268
9518
|
"items": {
|
|
9269
9519
|
"additionalProperties": true,
|
|
@@ -9271,6 +9521,14 @@
|
|
|
9271
9521
|
},
|
|
9272
9522
|
"type": "array",
|
|
9273
9523
|
"title": "Recovery Receipts"
|
|
9524
|
+
},
|
|
9525
|
+
"recovery_results": {
|
|
9526
|
+
"items": {
|
|
9527
|
+
"additionalProperties": true,
|
|
9528
|
+
"type": "object"
|
|
9529
|
+
},
|
|
9530
|
+
"type": "array",
|
|
9531
|
+
"title": "Recovery Results"
|
|
9274
9532
|
}
|
|
9275
9533
|
},
|
|
9276
9534
|
"type": "object",
|
|
@@ -9302,6 +9560,31 @@
|
|
|
9302
9560
|
"title": "Schema Version",
|
|
9303
9561
|
"default": 2
|
|
9304
9562
|
},
|
|
9563
|
+
"execution_protocol": {
|
|
9564
|
+
"type": "integer",
|
|
9565
|
+
"title": "Execution Protocol",
|
|
9566
|
+
"default": 1
|
|
9567
|
+
},
|
|
9568
|
+
"result_mode": {
|
|
9569
|
+
"type": "string",
|
|
9570
|
+
"enum": [
|
|
9571
|
+
"agent_report",
|
|
9572
|
+
"receipt"
|
|
9573
|
+
],
|
|
9574
|
+
"title": "Result Mode",
|
|
9575
|
+
"default": "receipt"
|
|
9576
|
+
},
|
|
9577
|
+
"owner_card_id": {
|
|
9578
|
+
"anyOf": [
|
|
9579
|
+
{
|
|
9580
|
+
"type": "string"
|
|
9581
|
+
},
|
|
9582
|
+
{
|
|
9583
|
+
"type": "null"
|
|
9584
|
+
}
|
|
9585
|
+
],
|
|
9586
|
+
"title": "Owner Card Id"
|
|
9587
|
+
},
|
|
9305
9588
|
"role": {
|
|
9306
9589
|
"type": "string",
|
|
9307
9590
|
"enum": [
|
|
@@ -9703,6 +9986,31 @@
|
|
|
9703
9986
|
"title": "Schema Version",
|
|
9704
9987
|
"default": 2
|
|
9705
9988
|
},
|
|
9989
|
+
"execution_protocol": {
|
|
9990
|
+
"type": "integer",
|
|
9991
|
+
"title": "Execution Protocol",
|
|
9992
|
+
"default": 1
|
|
9993
|
+
},
|
|
9994
|
+
"result_mode": {
|
|
9995
|
+
"type": "string",
|
|
9996
|
+
"enum": [
|
|
9997
|
+
"agent_report",
|
|
9998
|
+
"receipt"
|
|
9999
|
+
],
|
|
10000
|
+
"title": "Result Mode",
|
|
10001
|
+
"default": "receipt"
|
|
10002
|
+
},
|
|
10003
|
+
"owner_card_id": {
|
|
10004
|
+
"anyOf": [
|
|
10005
|
+
{
|
|
10006
|
+
"type": "string"
|
|
10007
|
+
},
|
|
10008
|
+
{
|
|
10009
|
+
"type": "null"
|
|
10010
|
+
}
|
|
10011
|
+
],
|
|
10012
|
+
"title": "Owner Card Id"
|
|
10013
|
+
},
|
|
9706
10014
|
"role": {
|
|
9707
10015
|
"type": "string",
|
|
9708
10016
|
"enum": [
|
|
@@ -9924,6 +10232,13 @@
|
|
|
9924
10232
|
},
|
|
9925
10233
|
"type": "array",
|
|
9926
10234
|
"title": "Pending Work"
|
|
10235
|
+
},
|
|
10236
|
+
"owned_work": {
|
|
10237
|
+
"items": {
|
|
10238
|
+
"$ref": "#/components/schemas/WorkView"
|
|
10239
|
+
},
|
|
10240
|
+
"type": "array",
|
|
10241
|
+
"title": "Owned Work"
|
|
9927
10242
|
}
|
|
9928
10243
|
},
|
|
9929
10244
|
"type": "object",
|
package/dist/core-client.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export type CoordinationCreate = Omit<Schemas["WorkflowCreate"], "skill_search_i
|
|
|
18
18
|
export type HostUpdate = Schemas["HostUpdate"];
|
|
19
19
|
export type SessionBindRequest = Schemas["SessionBindRequest"];
|
|
20
20
|
export type WorkClaimRequest = Schemas["WorkClaimRequest"];
|
|
21
|
+
export type WorkQuestionRequest = Schemas["WorkQuestionRequest"];
|
|
22
|
+
export type WorkQuestionResult = Schemas["WorkQuestionResult"];
|
|
21
23
|
export type SkillRunRequest = Schemas["SkillRunRequest"];
|
|
22
24
|
export type RecoveryReceipt = Schemas["RecoveryReceipt"];
|
|
23
25
|
export type CoordinationSkill = Schemas["CoordinationSkill"];
|
|
@@ -73,6 +75,7 @@ export declare class CoreClient {
|
|
|
73
75
|
checkActionableItems(limit?: number): Promise<ActionableItems>;
|
|
74
76
|
submitItemResult(itemId: string, result: ItemResultRequest, operationId?: string): Promise<Coordination>;
|
|
75
77
|
acknowledgeItem(workId: string, claimId: string, operationId?: string): Promise<Item>;
|
|
78
|
+
requestUserInput(workId: string, input: WorkQuestionRequest, operationId?: string): Promise<WorkQuestionResult>;
|
|
76
79
|
submitUserResponse(interactionId: string, response: ItemUserResponseRequest, operationId?: string): Promise<Record<string, unknown>>;
|
|
77
80
|
recordRecoveryReceipt(coordinationId: string, input: RecoveryReceipt, operationId?: string): Promise<{
|
|
78
81
|
recorded: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-client.d.ts","sourceRoot":"","sources":["../src/core-client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,KAAK,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AACrC,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AACnD,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AACnD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1D,MAAM,M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Q,EAAE,uBAAuB,EAAE,WAAW,GAAE,MAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlJ,qBAAqB,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,GAAE,MAAqB,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC;IAIlK,2BAA2B,CAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;YAmB3F,kBAAkB;IAgChC,YAAY,CAAC,KAAK,SAAK,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAItD,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKvE,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,GAAE,MAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAGvH"}
|
package/dist/core-client.js
CHANGED
|
@@ -174,6 +174,9 @@ export class CoreClient {
|
|
|
174
174
|
acknowledgeItem(workId, claimId, operationId = randomUUID()) {
|
|
175
175
|
return this.write(`/v2/agent/work/${encodeURIComponent(workId)}/ack`, { claim_id: claimId }, operationId);
|
|
176
176
|
}
|
|
177
|
+
requestUserInput(workId, input, operationId = randomUUID()) {
|
|
178
|
+
return this.write(`/v2/agent/work/${encodeURIComponent(workId)}/question`, input, operationId);
|
|
179
|
+
}
|
|
177
180
|
submitUserResponse(interactionId, response, operationId = randomUUID()) {
|
|
178
181
|
return this.write(`/v2/agent/interactions/${encodeURIComponent(interactionId)}/response`, response, operationId);
|
|
179
182
|
}
|