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/.test(message);
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) throw new Error(`Task update job ${job.job_id} is missing a source chat id.`);
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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-4VO4EPTS.js";
5
+ } from "./chunk-DZ2UKCQZ.js";
6
6
  import "./chunk-AXNRPVLE.js";
7
7
  export {
8
8
  getExtForLang,
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  reconcileAuthoritativeChats,
19
19
  renderSupportInfo,
20
20
  serializeToYaml
21
- } from "./chunk-4VO4EPTS.js";
21
+ } from "./chunk-DZ2UKCQZ.js";
22
22
  import "./chunk-AXNRPVLE.js";
23
23
  export {
24
24
  APP_SKILL_METADATA,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.15.0-alpha.18",
3
+ "version": "0.15.0-alpha.19",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",