openmates 0.15.0-alpha.18 → 0.15.0-alpha.19
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.
|
@@ -3983,11 +3983,11 @@ function taskUpdateJobBelongsToActiveTurn(job, activeChatId, taskEvents) {
|
|
|
3983
3983
|
return taskEvents.some((event) => event.task_update_job_id === job.job_id);
|
|
3984
3984
|
}
|
|
3985
3985
|
function messageExplicitlyRequestsTasksAppSkill(message) {
|
|
3986
|
-
return /@skill:tasks:(create|search)\b
|
|
3986
|
+
return /@skill:tasks:(create|search)\b/i.test(message) || /@tasks-(create|search)\b/i.test(message);
|
|
3987
3987
|
}
|
|
3988
3988
|
function isStaleTaskUpdateJobError(error) {
|
|
3989
3989
|
if (!(error instanceof WebSocketProtocolError)) return false;
|
|
3990
|
-
return error.message.includes("Task update job already committed") || error.message.includes("Task update job expired") || error.message.includes("Task update job not found");
|
|
3990
|
+
return error.message.includes("Task update job already committed") || error.message.includes("Task update job expired") || error.message.includes("Task update job not found") || error.message.includes("Task update job is leased by another device");
|
|
3991
3991
|
}
|
|
3992
3992
|
function buildTaskUpdateJobPersistPayload(params) {
|
|
3993
3993
|
const encryptedTaskPayload = pruneAbsentTaskPersistFields(params.encryptedTaskPayload);
|
|
@@ -6754,7 +6754,10 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
6754
6754
|
const privatePatch = claim.private_patch ?? {};
|
|
6755
6755
|
const safeMetadata = claim.safe_metadata ?? {};
|
|
6756
6756
|
const sourceChatId = claim.chat_id ?? job.chat_id ?? params.activeChatId;
|
|
6757
|
-
if (!sourceChatId)
|
|
6757
|
+
if (!sourceChatId) {
|
|
6758
|
+
handledJobIds.add(job.job_id);
|
|
6759
|
+
continue;
|
|
6760
|
+
}
|
|
6758
6761
|
const sourceChatKey = await resolveChatKey(sourceChatId);
|
|
6759
6762
|
const event = eventByJobId.get(job.job_id) ?? {
|
|
6760
6763
|
event_id: `task-event-${job.job_id}`,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED