@ateam-ai/mcp 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/package.json +1 -1
- package/src/tools.js +8 -6
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -3162,15 +3162,17 @@ const handlers = {
|
|
|
3162
3162
|
// accepted for back-compat but no longer hold the HTTP request open.
|
|
3163
3163
|
const body = { message, async: true, ...(actor_id ? { actor_id } : {}) };
|
|
3164
3164
|
const kickoff = await post(`/deploy/solutions/${solution_id}/test`, body, sid, { timeoutMs: 15_000 });
|
|
3165
|
-
|
|
3165
|
+
// The CHAIN id — not a single job id — is the conversation's identity and
|
|
3166
|
+
// what you poll. The Builder returns it as chain_id (falls back to the
|
|
3167
|
+
// root job id only if an older Builder didn't send one).
|
|
3168
|
+
const chainId = kickoff?.chain_id || kickoff?.chainId || kickoff?.job_id || kickoff?.jobId || null;
|
|
3166
3169
|
return {
|
|
3167
3170
|
...kickoff,
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
_poll: jobId
|
|
3171
|
+
chain_id: chainId,
|
|
3172
|
+
_poll: chainId
|
|
3171
3173
|
? {
|
|
3172
|
-
_note: "Conversation started (async).
|
|
3173
|
-
slim: `ateam_get_chain(job_id: "${
|
|
3174
|
+
_note: "Conversation started (async). The reply is NOT in this response — poll the CHAIN for it.",
|
|
3175
|
+
slim: `ateam_get_chain(job_id: "${chainId}") → chain tree + per-job status; the routed worker's terminal job carries the reply`,
|
|
3174
3176
|
continue: kickoff?.actor_id ? `ateam_conversation(actor_id: "${kickoff.actor_id}", ...) to continue the thread` : undefined,
|
|
3175
3177
|
}
|
|
3176
3178
|
: undefined,
|