@evident-ai/cli 3.0.1-dev.38fce7f → 3.0.1-dev.3be0a8d
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/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1618,7 +1618,7 @@ var ChannelDriver = class {
|
|
|
1618
1618
|
const messages = await this.getPendingMessages(conv.id);
|
|
1619
1619
|
let processed = 0;
|
|
1620
1620
|
for (const message of messages) {
|
|
1621
|
-
const claimed = await this.markProcessing(conv.id, message.id);
|
|
1621
|
+
const claimed = await this.markProcessing(conv.id, message.id, sessionId);
|
|
1622
1622
|
if (!claimed) {
|
|
1623
1623
|
this.log({
|
|
1624
1624
|
level: "info",
|
|
@@ -1849,13 +1849,16 @@ var ChannelDriver = class {
|
|
|
1849
1849
|
}
|
|
1850
1850
|
return await res.json();
|
|
1851
1851
|
}
|
|
1852
|
-
async markProcessing(conversationId, messageId) {
|
|
1852
|
+
async markProcessing(conversationId, messageId, sessionId) {
|
|
1853
1853
|
const res = await this.fetchImpl(
|
|
1854
1854
|
`${this.apiUrl}/agents/${this.agentId}/threads/${conversationId}/messages/${messageId}`,
|
|
1855
1855
|
{
|
|
1856
1856
|
method: "PATCH",
|
|
1857
1857
|
headers: { Authorization: this.getAuthHeader(), "Content-Type": "application/json" },
|
|
1858
|
-
|
|
1858
|
+
// Include the opencode session id so the server can deep-link the
|
|
1859
|
+
// "View in Evident" notice straight to the conversation (the session
|
|
1860
|
+
// already exists by now — ensureSession runs before claiming).
|
|
1861
|
+
body: JSON.stringify({ status: "processing", opencode_session_id: sessionId })
|
|
1859
1862
|
}
|
|
1860
1863
|
);
|
|
1861
1864
|
this.assertAuth(res, "marking message as processing");
|