@elizaos/app-core 2.0.0-alpha.509 → 2.0.0-alpha.510
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 +8 -8
- package/packages/agent/src/api/subscription-routes.d.ts +1 -1
- package/packages/agent/src/api/subscription-routes.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza.js +1 -1
- package/packages/agent/src/runtime/first-time-setup.d.ts +1 -1
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -1
- package/packages/agent/src/runtime/roles/src/action.js +2 -2
- package/packages/agent/src/runtime/roles/src/index.d.ts +5 -5
- package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -1
- package/packages/agent/src/runtime/roles/src/index.js +7 -7
- package/packages/agent/src/runtime/roles/src/intent.d.ts +1 -1
- package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -1
- package/packages/agent/src/runtime/roles/src/provider.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/app-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.510",
|
|
4
4
|
"description": "Shared application core for elizaOS white-label agent apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -450,9 +450,9 @@
|
|
|
450
450
|
"default": "./packages/app-core/src/test-support/test-helpers.js"
|
|
451
451
|
},
|
|
452
452
|
"./test/live-agent/helpers/*": {
|
|
453
|
-
"types": "./packages/app-core/src/test/live-agent/helpers/*.
|
|
454
|
-
"import": "./packages/app-core/src/test/live-agent/helpers/*.
|
|
455
|
-
"default": "./packages/app-core/src/test/live-agent/helpers/*.
|
|
453
|
+
"types": "./packages/app-core/src/test/live-agent/helpers/*.d.ts",
|
|
454
|
+
"import": "./packages/app-core/src/test/live-agent/helpers/*.js",
|
|
455
|
+
"default": "./packages/app-core/src/test/live-agent/helpers/*.js"
|
|
456
456
|
},
|
|
457
457
|
"./package.json": "./package.json"
|
|
458
458
|
},
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
"@capacitor/preferences": "^8.0.1",
|
|
475
475
|
"@capacitor/push-notifications": "^8.0.0",
|
|
476
476
|
"@clack/prompts": "^1.0.0",
|
|
477
|
-
"@elizaos/agent": "^2.0.0-alpha.
|
|
477
|
+
"@elizaos/agent": "^2.0.0-alpha.510",
|
|
478
478
|
"@elizaos/app-companion": "^0.0.0",
|
|
479
479
|
"@elizaos/app-elizamaker": "^0.0.0",
|
|
480
480
|
"@elizaos/app-hyperliquid": "^0.0.0",
|
|
@@ -485,12 +485,12 @@
|
|
|
485
485
|
"@elizaos/app-task-coordinator": "^0.0.0",
|
|
486
486
|
"@elizaos/app-training": "^0.0.1",
|
|
487
487
|
"@elizaos/app-vincent": "^0.0.0",
|
|
488
|
-
"@elizaos/core": "^2.0.0-alpha.
|
|
488
|
+
"@elizaos/core": "^2.0.0-alpha.510",
|
|
489
489
|
"@elizaos/plugin-browser-bridge": "^0.1.0",
|
|
490
490
|
"@elizaos/plugin-sql": "^2.0.0-alpha.19",
|
|
491
491
|
"@elizaos/plugin-wechat": "^0.1.0",
|
|
492
|
-
"@elizaos/shared": "^2.0.0-alpha.
|
|
493
|
-
"@elizaos/ui": "^2.0.0-alpha.
|
|
492
|
+
"@elizaos/shared": "^2.0.0-alpha.510",
|
|
493
|
+
"@elizaos/ui": "^2.0.0-alpha.510",
|
|
494
494
|
"@node-rs/argon2": "^2.0.2",
|
|
495
495
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
496
496
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -2,7 +2,7 @@ import type { AnthropicFlow } from "../auth/anthropic.js";
|
|
|
2
2
|
import type { CodexFlow } from "../auth/openai-codex.js";
|
|
3
3
|
import type { ElizaConfig } from "../config/types.eliza.js";
|
|
4
4
|
import type { RouteRequestContext } from "./route-helpers.js";
|
|
5
|
-
type AuthModule = typeof import("../auth/index");
|
|
5
|
+
type AuthModule = typeof import("../auth/index.js");
|
|
6
6
|
export type SubscriptionAuthApi = Pick<AuthModule, "getSubscriptionStatus" | "startAnthropicLogin" | "startCodexLogin" | "saveCredentials" | "applySubscriptionCredentials" | "deleteCredentials">;
|
|
7
7
|
export interface SubscriptionRouteState {
|
|
8
8
|
config: ElizaConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-routes.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/api/subscription-routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAM5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,KAAK,UAAU,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"subscription-routes.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/api/subscription-routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAM5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,KAAK,UAAU,GAAG,cAAc,kBAAkB,CAAC,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,UAAU,EACR,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,8BAA8B,GAC9B,mBAAmB,CACtB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE,KAAK,EAAE,sBAAsB,CAAC;IAC9B,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,oBAAoB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC1D;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,wBAAwB,GAC5B,OAAO,CAAC,OAAO,CAAC,CA0QlB"}
|
|
@@ -64,7 +64,7 @@ import discordLocalPlugin from "./discord-local-plugin.js";
|
|
|
64
64
|
import { createElizaPlugin } from "./eliza-plugin.js";
|
|
65
65
|
import { detectEmbeddingPreset } from "./embedding-presets.js";
|
|
66
66
|
import { runtimeKnowledgeEnabled, runtimeTrajectoriesEnabled, } from "./native-runtime-features.js";
|
|
67
|
-
import { createPgliteInitError, getPgliteErrorCode, PGLITE_ERROR_CODES, } from "./pglite-error-compat";
|
|
67
|
+
import { createPgliteInitError, getPgliteErrorCode, PGLITE_ERROR_CODES, } from "./pglite-error-compat.js";
|
|
68
68
|
import { installRuntimePluginLifecycle } from "./plugin-lifecycle.js";
|
|
69
69
|
import rolesPlugin from "./roles.js";
|
|
70
70
|
import { shouldEnableTrajectoryLoggingByDefault } from "./trajectory-persistence.js";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* @module first-time-setup
|
|
20
20
|
*/
|
|
21
21
|
import { type ElizaConfig } from "../config/config.js";
|
|
22
|
-
type FirstTimeSetupCloudResult = import("./cloud-onboarding").CloudOnboardingResult;
|
|
22
|
+
type FirstTimeSetupCloudResult = import("./cloud-onboarding.js").CloudOnboardingResult;
|
|
23
23
|
export declare function applyFirstTimeSetupTopology(config: ElizaConfig, args: {
|
|
24
24
|
isCloudRuntime: boolean;
|
|
25
25
|
selectedProviderId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-time-setup.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/first-time-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAUH,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AAmBxE,KAAK,yBAAyB,GAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"first-time-setup.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/first-time-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAUH,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AAmBxE,KAAK,yBAAyB,GAC5B,OAAO,uBAAuB,EAAE,qBAAqB,CAAC;AAGxD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE;IACJ,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACzD,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GACA,WAAW,CA4Db;AAyFD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAqC1E;AAMD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,CAAC,CAmiBtB"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { logger, } from "@elizaos/core";
|
|
10
10
|
import { asNonEmptyString, asRecord } from "@elizaos/shared";
|
|
11
|
-
import { extractRoleIntentWithLlm, looksLikeRoleIntent, normalizeNaturalRoleLabel, } from "./intent";
|
|
12
|
-
import { canModifyRole, getLiveEntityMetadataFromMessage, normalizeRole, resolveCanonicalOwnerId, resolveEntityRole, resolveWorldForMessage, setEntityRole, } from "./utils";
|
|
11
|
+
import { extractRoleIntentWithLlm, looksLikeRoleIntent, normalizeNaturalRoleLabel, } from "./intent.js";
|
|
12
|
+
import { canModifyRole, getLiveEntityMetadataFromMessage, normalizeRole, resolveCanonicalOwnerId, resolveEntityRole, resolveWorldForMessage, setEntityRole, } from "./utils.js";
|
|
13
13
|
/** Maximum length for a target username. */
|
|
14
14
|
const MAX_USERNAME_LENGTH = 64;
|
|
15
15
|
const RECENT_ROOM_MESSAGE_LIMIT = 100;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
import { type Plugin } from "@elizaos/core";
|
|
17
|
-
export { updateRoleAction } from "./action";
|
|
18
|
-
export { rolesProvider } from "./provider";
|
|
19
|
-
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types";
|
|
20
|
-
export { ROLE_RANK } from "./types";
|
|
21
|
-
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils";
|
|
17
|
+
export { updateRoleAction } from "./action.js";
|
|
18
|
+
export { rolesProvider } from "./provider.js";
|
|
19
|
+
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types.js";
|
|
20
|
+
export { ROLE_RANK } from "./types.js";
|
|
21
|
+
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.js";
|
|
22
22
|
declare const rolesPlugin: Plugin;
|
|
23
23
|
export default rolesPlugin;
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../agent/src/runtime/roles/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA8B,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../agent/src/runtime/roles/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA8B,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,QAAQ,EACR,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,2BAA2B,EAC3B,0BAA0B,EAC1B,aAAa,EACb,2BAA2B,EAC3B,oCAAoC,EACpC,aAAa,EACb,uBAAuB,EACvB,iCAAiC,EACjC,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,aAAa,GACd,MAAM,YAAY,CAAC;AAgQpB,QAAA,MAAM,WAAW,EAAE,MA4ClB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
import { logger } from "@elizaos/core";
|
|
17
|
-
import { updateRoleAction } from "./action";
|
|
18
|
-
import { rolesProvider } from "./provider";
|
|
19
|
-
import { hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, } from "./utils";
|
|
17
|
+
import { updateRoleAction } from "./action.js";
|
|
18
|
+
import { rolesProvider } from "./provider.js";
|
|
19
|
+
import { hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, } from "./utils.js";
|
|
20
20
|
const BOOTSTRAP_RETRY_TIMERS_KEY = Symbol.for("@elizaos/runtime.roles.bootstrapRetries");
|
|
21
21
|
const BOOTSTRAP_RETRY_LIMIT = 3;
|
|
22
22
|
const CONNECTOR_ADMINS_SETTING_KEY = "ELIZA_ROLES_CONNECTOR_ADMINS_JSON";
|
|
23
|
-
export { updateRoleAction } from "./action";
|
|
24
|
-
export { rolesProvider } from "./provider";
|
|
25
|
-
export { ROLE_RANK } from "./types";
|
|
26
|
-
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils";
|
|
23
|
+
export { updateRoleAction } from "./action.js";
|
|
24
|
+
export { rolesProvider } from "./provider.js";
|
|
25
|
+
export { ROLE_RANK } from "./types.js";
|
|
26
|
+
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.js";
|
|
27
27
|
async function updateWorldMetadata(runtime, worldId, update) {
|
|
28
28
|
const world = await runtime.getWorld(worldId);
|
|
29
29
|
if (!world)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAgentRuntime, Memory, State } from "@elizaos/core";
|
|
2
|
-
import type { RoleName } from "./types";
|
|
2
|
+
import type { RoleName } from "./types.js";
|
|
3
3
|
export declare const NATURAL_ROLE_MAP: Record<string, RoleName>;
|
|
4
4
|
export type ExtractedRoleIntent = {
|
|
5
5
|
kind: "role" | "revoke" | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../../../../agent/src/runtime/roles/src/intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAQ,MAAM,eAAe,CAAC;AAYxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../../../../agent/src/runtime/roles/src/intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAQ,MAAM,eAAe,CAAC;AAYxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAY3C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAkBrD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AA8GF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAExE;AA6FD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE;IACnD,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAwH/B"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { logger, } from "@elizaos/core";
|
|
6
6
|
import { hasAdminAccess } from "../../../security/access.js";
|
|
7
|
-
import { getEntityRole, getLiveEntityMetadataFromMessage, hasConfiguredCanonicalOwner, normalizeRole, resolveCanonicalOwnerId, resolveEntityRole, } from "./utils";
|
|
7
|
+
import { getEntityRole, getLiveEntityMetadataFromMessage, hasConfiguredCanonicalOwner, normalizeRole, resolveCanonicalOwnerId, resolveEntityRole, } from "./utils.js";
|
|
8
8
|
export const rolesProvider = {
|
|
9
9
|
name: "roles",
|
|
10
10
|
description: "Provides the current speaker's role and the server role hierarchy. " +
|