@elizaos/app-core 2.0.0-alpha.381 → 2.0.0-alpha.382

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.
@@ -1 +1 @@
1
- {"version":3,"file":"intent-sync.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/actions/intent-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AA6GvB,eAAO,MAAM,gBAAgB,EAAE,MAAM,GAAG;IACtC,8BAA8B,CAAC,EAAE,OAAO,CAAC;CA2S1C,CAAC"}
1
+ {"version":3,"file":"intent-sync.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/actions/intent-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AAqGvB,eAAO,MAAM,gBAAgB,EAAE,MAAM,GAAG;IACtC,8BAA8B,CAAC,EAAE,OAAO,CAAC;CA6S1C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { extractActionParamsViaLlm, hasAdminAccess } from "@elizaos/agent";
2
- import { LIFE_INTENT_KINDS, LIFE_INTENT_PRIORITIES, LIFE_INTENT_TARGETS, acknowledgeIntent, broadcastIntent, pruneExpiredIntents, receivePendingIntents, } from "../lifeops/intent-sync.js";
2
+ import { acknowledgeIntent, broadcastIntent, LIFE_INTENT_KINDS, LIFE_INTENT_PRIORITIES, LIFE_INTENT_TARGETS, pruneExpiredIntents, receivePendingIntents, } from "../lifeops/intent-sync.js";
3
3
  const ACTION_NAME = "INTENT_SYNC";
4
4
  const SUBACTIONS = [
5
5
  "broadcast",
@@ -48,6 +48,15 @@ function normalizeParams(raw) {
48
48
  return {};
49
49
  return raw;
50
50
  }
51
+ function withStructuredBroadcastDefault(params) {
52
+ if (coerceString(params.subaction) ||
53
+ coerceString(params.mode) ||
54
+ coerceString(params.action) ||
55
+ !coerceString(params.kind)) {
56
+ return params;
57
+ }
58
+ return { ...params, subaction: "broadcast" };
59
+ }
51
60
  function validationTerminate(error, message, extra = {}) {
52
61
  return {
53
62
  text: message,
@@ -194,7 +203,7 @@ export const intentSyncAction = {
194
203
  return fail("PERMISSION_DENIED");
195
204
  }
196
205
  const rawParameters = options?.parameters;
197
- const normalized = normalizeParams(rawParameters);
206
+ const normalized = withStructuredBroadcastDefault(normalizeParams(rawParameters));
198
207
  const params = (await extractActionParamsViaLlm({
199
208
  runtime,
200
209
  message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/app-core",
3
- "version": "2.0.0-alpha.381",
3
+ "version": "2.0.0-alpha.382",
4
4
  "description": "Shared application core for elizaOS white-label agent apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -469,7 +469,7 @@
469
469
  "@capacitor/preferences": "^8.0.1",
470
470
  "@capacitor/push-notifications": "^8.0.0",
471
471
  "@clack/prompts": "^1.0.0",
472
- "@elizaos/agent": "^2.0.0-alpha.381",
472
+ "@elizaos/agent": "^2.0.0-alpha.382",
473
473
  "@elizaos/app-companion": "^0.0.0",
474
474
  "@elizaos/app-elizamaker": "^0.0.0",
475
475
  "@elizaos/app-lifeops": "^0.0.0",
@@ -478,12 +478,12 @@
478
478
  "@elizaos/app-task-coordinator": "^0.0.0",
479
479
  "@elizaos/app-training": "^0.0.1",
480
480
  "@elizaos/app-vincent": "^0.0.0",
481
- "@elizaos/core": "^2.0.0-alpha.381",
481
+ "@elizaos/core": "^2.0.0-alpha.382",
482
482
  "@elizaos/plugin-browser-bridge": "^0.1.0",
483
483
  "@elizaos/plugin-sql": "^2.0.0-alpha.19",
484
484
  "@elizaos/plugin-wechat": "^0.1.0",
485
- "@elizaos/shared": "^2.0.0-alpha.381",
486
- "@elizaos/ui": "^2.0.0-alpha.381",
485
+ "@elizaos/shared": "^2.0.0-alpha.382",
486
+ "@elizaos/ui": "^2.0.0-alpha.382",
487
487
  "@node-rs/argon2": "^2.0.2",
488
488
  "@radix-ui/react-checkbox": "^1.3.3",
489
489
  "@radix-ui/react-dialog": "^1.1.15",