@elizaos/ui 2.0.0-alpha.530 → 2.0.0-alpha.533
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/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/continuity-probe.js +1 -1
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +1 -1
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +2 -2
- package/apps/app-lifeops/src/lifeops/fda-probe.js +1 -1
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/feature-flags.types.js +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.js +3 -3
- package/apps/app-lifeops/src/lifeops/google-managed-client.js +14 -14
- package/apps/app-lifeops/src/lifeops/health-bridge.js +1 -1
- package/apps/app-lifeops/src/lifeops/health-connectors.js +2 -2
- package/apps/app-lifeops/src/lifeops/health-oauth.js +1 -1
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +5 -5
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +3 -3
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +6 -6
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/schedule-state.js +2 -6
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +2 -2
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.js +1 -1
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +1 -1
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +3 -3
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/twilio.js +1 -3
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/whatsapp-client.js +1 -3
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-poster.js +1 -3
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-reader.js +1 -3
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -1
- package/apps/app-steward/src/api/wallet-routes.js +0 -1
- package/apps/app-steward/src/api/wallet.d.ts.map +1 -1
- package/apps/app-steward/src/api/wallet.js +0 -2
- package/apps/app-training/src/backends/atropos.d.ts +1 -1
- package/apps/app-training/src/backends/atropos.js +1 -1
- package/apps/app-training/src/backends/native.d.ts +1 -1
- package/apps/app-training/src/backends/native.js +1 -1
- package/apps/app-training/src/services/training-trigger.d.ts +1 -1
- package/apps/app-training/src/services/training-trigger.js +2 -2
- package/package.json +1 -1
- package/packages/agent/src/actions/browser-autofill-login.d.ts +1 -1
- package/packages/agent/src/actions/browser-autofill-login.js +2 -2
- package/packages/agent/src/actions/runtime.js +1 -1
- package/packages/agent/src/actions/update-owner-name.js +1 -1
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +1 -2
- package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-provisioning.js +1 -2
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-routes.js +8 -9
- package/packages/agent/src/api/config-env.js +4 -4
- package/packages/agent/src/api/config-routes.js +1 -1
- package/packages/agent/src/api/curated-skills-routes.d.ts +1 -1
- package/packages/agent/src/api/curated-skills-routes.js +1 -1
- package/packages/agent/src/api/server-auth.d.ts.map +1 -1
- package/packages/agent/src/api/server-auth.js +1 -2
- package/packages/agent/src/api/server-helpers-auth.js +3 -3
- package/packages/agent/src/api/server-helpers-swarm.js +2 -2
- package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -1
- package/packages/agent/src/api/server-helpers-wallet.js +1 -2
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +56 -0
- package/packages/agent/src/api/subscription-routes.js +1 -1
- package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -1
- package/packages/agent/src/api/terminal-run-limits.js +2 -4
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -1
- package/packages/agent/src/api/wallet-routes.js +4 -5
- package/packages/agent/src/api/wallet.d.ts +2 -2
- package/packages/agent/src/api/wallet.d.ts.map +1 -1
- package/packages/agent/src/api/wallet.js +2 -4
- package/packages/agent/src/auth/credentials.js +2 -2
- package/packages/agent/src/auth/oauth-flow.d.ts +1 -1
- package/packages/agent/src/cloud/bridge-client.js +1 -1
- package/packages/agent/src/cloud/cloud-wallet.d.ts +4 -4
- package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -1
- package/packages/agent/src/cloud/cloud-wallet.js +9 -9
- package/packages/agent/src/config/config.d.ts.map +1 -1
- package/packages/agent/src/config/config.js +2 -3
- package/packages/agent/src/config/env-vars.js +1 -1
- package/packages/agent/src/config/feature-flags.d.ts +1 -1
- package/packages/agent/src/config/feature-flags.js +1 -1
- package/packages/agent/src/config/paths.d.ts +1 -1
- package/packages/agent/src/config/paths.d.ts.map +1 -1
- package/packages/agent/src/config/paths.js +3 -9
- package/packages/agent/src/config/types.eliza.d.ts +2 -2
- package/packages/agent/src/providers/workspace.d.ts.map +1 -1
- package/packages/agent/src/providers/workspace.js +2 -5
- package/packages/agent/src/runtime/core-plugins.d.ts +16 -1
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -1
- package/packages/agent/src/runtime/core-plugins.js +21 -2
- package/packages/agent/src/runtime/eliza.js +7 -7
- package/packages/agent/src/runtime/operations/repository.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-collector.js +19 -5
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-resolver.js +3 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts +20 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +0 -9
- package/packages/agent/src/runtime/vault-profile-resolver.d.ts +2 -2
- package/packages/agent/src/runtime/vault-profile-resolver.js +3 -3
- package/packages/agent/src/services/evm-signing-capability.d.ts +1 -1
- package/packages/agent/src/services/evm-signing-capability.js +1 -1
- package/packages/agent/src/services/signal-pairing.js +5 -5
- package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -1
- package/packages/agent/src/services/skill-marketplace.js +1 -1
- package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -1
- package/packages/agent/src/services/telegram-account-auth.js +1 -3
- package/packages/agent/src/test-utils/sqlite-compat.js +1 -1
- package/packages/app-core/src/api/client-cloud.js +1 -1
- package/packages/app-core/src/api/client-types-chat.d.ts +1 -1
- package/packages/app-core/src/bridge/native-plugins.js +4 -4
- package/packages/app-core/src/navigation/index.js +1 -1
- package/packages/app-core/src/services/account-pool.d.ts +2 -2
- package/packages/app-core/src/services/account-pool.js +6 -6
- package/packages/app-core/src/services/local-inference/active-model.d.ts +1 -1
- package/packages/app-core/src/services/local-inference/active-model.js +4 -4
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts +3 -3
- package/packages/app-core/src/services/local-inference/external-scanner.js +3 -3
- package/packages/app-core/src/services/local-inference/handler-registry.js +1 -1
- package/packages/app-core/src/services/local-inference/paths.d.ts +8 -8
- package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/paths.js +9 -9
- package/packages/app-core/src/services/local-inference/providers.d.ts +1 -1
- package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/providers.js +3 -3
- package/packages/app-core/src/services/local-inference/registry.d.ts +11 -11
- package/packages/app-core/src/services/local-inference/registry.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/registry.js +28 -28
- package/packages/app-core/src/services/local-inference/types.d.ts +6 -6
- package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/types.js +1 -1
- package/packages/app-core/src/services/vault-bootstrap.d.ts +2 -2
- package/packages/app-core/src/services/vault-bootstrap.js +6 -6
- package/packages/app-core/src/utils/eliza-globals.d.ts +0 -2
- package/packages/app-core/src/utils/eliza-globals.d.ts.map +1 -1
- package/packages/app-core/src/utils/eliza-globals.js +4 -6
- package/packages/shared/src/config/types.eliza.d.ts +2 -2
- package/packages/shared/src/connector-cred-types.d.ts +1 -1
- package/packages/shared/src/connector-cred-types.js +1 -1
- package/packages/shared/src/contracts/lifeops.d.ts +1 -1
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -1
- package/packages/shared/src/contracts/service-routing.d.ts +1 -1
- package/packages/shared/src/runtime-env.js +3 -3
- package/packages/skills/src/resolver.js +3 -3
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +1 -1
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.js +1 -2
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +1 -1
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +3 -3
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1 -1
- package/packages/typescript/src/features/plugin-manager/types.d.ts +1 -1
- package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +1 -1
- package/packages/typescript/src/lifeops-passive-connectors.js +1 -1
- package/packages/typescript/src/runtime-composition.d.ts +2 -2
- package/packages/typescript/src/runtime-composition.d.ts.map +1 -1
- package/packages/typescript/src/runtime-composition.js +1 -1
- package/packages/typescript/src/services/optimized-prompt.d.ts +1 -1
- package/packages/typescript/src/services/optimized-prompt.js +1 -1
- package/packages/typescript/src/utils/state-dir.d.ts +7 -8
- package/packages/typescript/src/utils/state-dir.d.ts.map +1 -1
- package/packages/typescript/src/utils/state-dir.js +8 -11
- package/plugins/plugin-browser-bridge/src/plugin.d.ts +1 -1
- package/plugins/plugin-browser-bridge/src/plugin.js +1 -1
|
@@ -21,8 +21,8 @@ export { DEFAULT_EVM_CHAINS, fetchEvmBalances, resolveEvmProviderKeys, } from ".
|
|
|
21
21
|
const FETCH_TIMEOUT_MS = 15_000;
|
|
22
22
|
export const MANAGED_EVM_ADDRESS_ENV_KEY = "ELIZA_MANAGED_EVM_ADDRESS";
|
|
23
23
|
export const MANAGED_SOLANA_ADDRESS_ENV_KEY = "ELIZA_MANAGED_SOLANA_ADDRESS";
|
|
24
|
-
export const CLOUD_EVM_ADDRESS_ENV_KEY = "
|
|
25
|
-
export const CLOUD_SOLANA_ADDRESS_ENV_KEY = "
|
|
24
|
+
export const CLOUD_EVM_ADDRESS_ENV_KEY = "ELIZA_CLOUD_EVM_ADDRESS";
|
|
25
|
+
export const CLOUD_SOLANA_ADDRESS_ENV_KEY = "ELIZA_CLOUD_SOLANA_ADDRESS";
|
|
26
26
|
export const WALLET_SOURCE_EVM_ENV_KEY = "WALLET_SOURCE_EVM";
|
|
27
27
|
export const WALLET_SOURCE_SOLANA_ENV_KEY = "WALLET_SOURCE_SOLANA";
|
|
28
28
|
const SOLANA_WRAPPED_NATIVE_MINT = "So11111111111111111111111111111111111111112";
|
|
@@ -409,7 +409,6 @@ export async function initStewardWalletCache() {
|
|
|
409
409
|
if (!stewardApiUrl)
|
|
410
410
|
return;
|
|
411
411
|
const agentId = normalizeOptionalString(process.env.STEWARD_AGENT_ID) ||
|
|
412
|
-
normalizeOptionalString(process.env.ELIZA_STEWARD_AGENT_ID) ||
|
|
413
412
|
normalizeOptionalString(process.env.ELIZA_STEWARD_AGENT_ID) ||
|
|
414
413
|
persisted?.agentId ||
|
|
415
414
|
null;
|
|
@@ -513,7 +512,6 @@ export async function getWalletAddressesWithSteward() {
|
|
|
513
512
|
return base;
|
|
514
513
|
}
|
|
515
514
|
const agentId = process.env.STEWARD_AGENT_ID?.trim() ||
|
|
516
|
-
process.env.ELIZA_STEWARD_AGENT_ID?.trim() ||
|
|
517
515
|
process.env.ELIZA_STEWARD_AGENT_ID?.trim() ||
|
|
518
516
|
base.evmAddress?.trim() ||
|
|
519
517
|
null;
|
|
@@ -144,7 +144,7 @@ export async function getAccessToken(provider, accountId = DEFAULT_ACCOUNT_ID) {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
function readConfiguredAnthropicSetupToken() {
|
|
147
|
-
const namespace = process.env.ELIZA_NAMESPACE?.trim() || "
|
|
147
|
+
const namespace = process.env.ELIZA_NAMESPACE?.trim() || "eliza";
|
|
148
148
|
const configPath = process.env.ELIZA_CONFIG_PATH?.trim() ||
|
|
149
149
|
path.join(process.env.ELIZA_STATE_DIR?.trim() ||
|
|
150
150
|
path.join(os.homedir(), `.${namespace}`), `${namespace}.json`);
|
|
@@ -408,7 +408,7 @@ export async function applySubscriptionCredentials(config) {
|
|
|
408
408
|
// account, which is stable for single-account installs.
|
|
409
409
|
const codexAccounts = listProviderAccounts("openai-codex");
|
|
410
410
|
if (codexAccounts.length > 0) {
|
|
411
|
-
const selectorSymbol = Symbol.for("
|
|
411
|
+
const selectorSymbol = Symbol.for("eliza.account-pool.subscription-selector.v1");
|
|
412
412
|
const selector = globalThis[selectorSymbol];
|
|
413
413
|
let chosenId = null;
|
|
414
414
|
if (selector) {
|
|
@@ -53,7 +53,7 @@ interface StartOptions {
|
|
|
53
53
|
/**
|
|
54
54
|
* Called after the account is saved on disk. Used by the HTTP
|
|
55
55
|
* route layer to also write a `LinkedAccountConfig` row into
|
|
56
|
-
* `
|
|
56
|
+
* `eliza.json`. Failures here propagate as flow `error`.
|
|
57
57
|
*/
|
|
58
58
|
onAccountSaved?: (account: AccountCredentialRecord) => void | Promise<void>;
|
|
59
59
|
}
|
|
@@ -241,7 +241,7 @@ export class ElizaCloudClient {
|
|
|
241
241
|
* Uses the standard API-key auth (X-Api-Key).
|
|
242
242
|
*/
|
|
243
243
|
async getAgentWallet(agentId, chain) {
|
|
244
|
-
const res = await this.request("GET", `/api/v1/
|
|
244
|
+
const res = await this.request("GET", `/api/v1/eliza/agents/${encodeURIComponent(agentId)}/wallet?chain=${encodeURIComponent(chain)}`);
|
|
245
245
|
if (!res.success || !res.data) {
|
|
246
246
|
throw new CloudBridgeError(res.error ?? "Failed to fetch agent wallet");
|
|
247
247
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* is off so no cloud code paths run in legacy builds.
|
|
6
6
|
*
|
|
7
7
|
* Responsibilities:
|
|
8
|
-
* 1. Generate + persist
|
|
8
|
+
* 1. Generate + persist ELIZA_CLOUD_CLIENT_ADDRESS_KEY (the local secp256k1
|
|
9
9
|
* key whose address ties this install to cloud-custodied wallets).
|
|
10
10
|
* 2. Provision EVM + Solana cloud wallets for an agent, guarded by a
|
|
11
11
|
* single-flight mutex keyed on (agentId, chainType) to prevent duplicate
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* wallet.cloud.{evm,solana}; caller persists via saveConfig().
|
|
15
15
|
*/
|
|
16
16
|
import type { CloudChainType, CloudWalletDescriptor, CloudWalletProvider } from "./bridge-client.js";
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV = "ELIZA_CLOUD_CLIENT_ADDRESS_KEY";
|
|
18
18
|
export declare class CloudWalletFlagDisabledError extends Error {
|
|
19
19
|
constructor();
|
|
20
20
|
}
|
|
@@ -38,12 +38,12 @@ export interface CloudWalletProvisionBridge {
|
|
|
38
38
|
* Read or mint the local client-address secp256k1 key.
|
|
39
39
|
*
|
|
40
40
|
* Priority:
|
|
41
|
-
* 1. process.env[
|
|
41
|
+
* 1. process.env[ELIZA_CLOUD_CLIENT_ADDRESS_KEY] — respected as-is.
|
|
42
42
|
* 2. Generate a fresh key, write to `process.env` AND disk (`config.env`)
|
|
43
43
|
* so it survives restart.
|
|
44
44
|
*
|
|
45
45
|
* The key is in `BLOCKED_STARTUP_ENV_KEYS` so it never syncs into
|
|
46
|
-
* `
|
|
46
|
+
* `eliza.json` — `config.env` is the designated disk home for it.
|
|
47
47
|
*/
|
|
48
48
|
export declare function getOrCreateClientAddressKey(opts?: GetOrCreateKeyOptions): Promise<{
|
|
49
49
|
privateKey: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-wallet.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/cloud/cloud-wallet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAEV,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"cloud-wallet.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/cloud/cloud-wallet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAEV,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,kCAAkC,mCACb,CAAC;AAEnC,qBAAa,4BAA6B,SAAQ,KAAK;;CAKtD;AAsBD,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC,eAAe,CAAC,KAAK,EAAE;QACrB,SAAS,EAAE,cAAc,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,mBAAmB,CAAC;KAC/B,CAAC,CAAC;CACJ;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,GAAE,qBAA0B,GAC/B,OAAO,CAAC;IACT,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC,CAmBD;AA4DD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,qBAAqB,CAAC;IAC3B,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC7C,QAAQ,EAAE,2BAA2B,EAAE,CAAC;IACxC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAOD;;;;;GAKG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,0BAA0B,EAClC,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,0BAA0B,CAAC,CAqErC;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,0BAA0B,EAClC,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAc1C;AAMD,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,sBAAsB,EAC9B,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAC3C,IAAI,CAWN"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* is off so no cloud code paths run in legacy builds.
|
|
6
6
|
*
|
|
7
7
|
* Responsibilities:
|
|
8
|
-
* 1. Generate + persist
|
|
8
|
+
* 1. Generate + persist ELIZA_CLOUD_CLIENT_ADDRESS_KEY (the local secp256k1
|
|
9
9
|
* key whose address ties this install to cloud-custodied wallets).
|
|
10
10
|
* 2. Provision EVM + Solana cloud wallets for an agent, guarded by a
|
|
11
11
|
* single-flight mutex keyed on (agentId, chainType) to prevent duplicate
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
|
|
17
17
|
import { persistConfigEnv } from "../api/config-env.js";
|
|
18
18
|
import { isCloudWalletEnabled } from "../config/feature-flags.js";
|
|
19
|
-
export const
|
|
19
|
+
export const ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV = "ELIZA_CLOUD_CLIENT_ADDRESS_KEY";
|
|
20
20
|
export class CloudWalletFlagDisabledError extends Error {
|
|
21
21
|
constructor() {
|
|
22
22
|
super("ENABLE_CLOUD_WALLET is off; cloud wallet code paths are inactive");
|
|
@@ -35,7 +35,7 @@ function normalizePrivateKey(raw) {
|
|
|
35
35
|
const trimmed = raw.trim();
|
|
36
36
|
const hex = trimmed.startsWith("0x") ? trimmed.slice(2) : trimmed;
|
|
37
37
|
if (!/^[0-9a-fA-F]{64}$/.test(hex)) {
|
|
38
|
-
throw new Error(`Malformed ${
|
|
38
|
+
throw new Error(`Malformed ${ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV}: expected 32-byte hex`);
|
|
39
39
|
}
|
|
40
40
|
return `0x${hex.toLowerCase()}`;
|
|
41
41
|
}
|
|
@@ -43,16 +43,16 @@ function normalizePrivateKey(raw) {
|
|
|
43
43
|
* Read or mint the local client-address secp256k1 key.
|
|
44
44
|
*
|
|
45
45
|
* Priority:
|
|
46
|
-
* 1. process.env[
|
|
46
|
+
* 1. process.env[ELIZA_CLOUD_CLIENT_ADDRESS_KEY] — respected as-is.
|
|
47
47
|
* 2. Generate a fresh key, write to `process.env` AND disk (`config.env`)
|
|
48
48
|
* so it survives restart.
|
|
49
49
|
*
|
|
50
50
|
* The key is in `BLOCKED_STARTUP_ENV_KEYS` so it never syncs into
|
|
51
|
-
* `
|
|
51
|
+
* `eliza.json` — `config.env` is the designated disk home for it.
|
|
52
52
|
*/
|
|
53
53
|
export async function getOrCreateClientAddressKey(opts = {}) {
|
|
54
54
|
ensureFlag();
|
|
55
|
-
const existing = process.env[
|
|
55
|
+
const existing = process.env[ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV];
|
|
56
56
|
if (existing && existing.trim().length > 0) {
|
|
57
57
|
const privateKey = normalizePrivateKey(existing);
|
|
58
58
|
const account = privateKeyToAccount(privateKey);
|
|
@@ -60,8 +60,8 @@ export async function getOrCreateClientAddressKey(opts = {}) {
|
|
|
60
60
|
}
|
|
61
61
|
const privateKey = generatePrivateKey();
|
|
62
62
|
const account = privateKeyToAccount(privateKey);
|
|
63
|
-
process.env[
|
|
64
|
-
await persistConfigEnv(
|
|
63
|
+
process.env[ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV] = privateKey;
|
|
64
|
+
await persistConfigEnv(ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV, privateKey, {
|
|
65
65
|
stateDir: opts.stateDir,
|
|
66
66
|
});
|
|
67
67
|
return { privateKey, address: account.address, minted: true };
|
|
@@ -195,5 +195,5 @@ export function persistCloudWalletCache(config, descriptors) {
|
|
|
195
195
|
/** @internal — exposed for tests to reset state between cases. */
|
|
196
196
|
export function __resetCloudWalletModuleForTests() {
|
|
197
197
|
inflight.clear();
|
|
198
|
-
delete process.env[
|
|
198
|
+
delete process.env[ELIZA_CLOUD_CLIENT_ADDRESS_KEY_ENV];
|
|
199
199
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/config/config.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,cAAc,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/config/config.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,cAAc,YAAY,CAAC;AAqE3B,wBAAgB,eAAe,IAAI,WAAW,CAqH7C;AAwDD,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CA2EzD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAQ1C"}
|
|
@@ -10,8 +10,7 @@ import { normalizeModelMetadataInConfig } from "./model-metadata.js";
|
|
|
10
10
|
import { resolveConfigPath, resolveStateDir, resolveUserPath, } from "./paths.js";
|
|
11
11
|
export * from "./types.js";
|
|
12
12
|
function resolveConfigWritePath(env = process.env) {
|
|
13
|
-
const persistPath = env.
|
|
14
|
-
env.ELIZA_PERSIST_CONFIG_PATH?.trim();
|
|
13
|
+
const persistPath = env.ELIZA_PERSIST_CONFIG_PATH?.trim();
|
|
15
14
|
return persistPath ? resolveUserPath(persistPath) : resolveConfigPath();
|
|
16
15
|
}
|
|
17
16
|
function applyConfigEnvToProcessEnv(entries) {
|
|
@@ -122,7 +121,7 @@ export function loadElizaConfig() {
|
|
|
122
121
|
const persistedConfigEnv = readConfigEnvSync(resolveStateDir());
|
|
123
122
|
// SECURITY: Do NOT merge persistedConfigEnv into resolved.env — config.env
|
|
124
123
|
// is the designated escape hatch for secrets that must NOT be serialized to
|
|
125
|
-
//
|
|
124
|
+
// eliza.json (e.g. ELIZA_CLOUD_CLIENT_ADDRESS_KEY, WALLET_SOURCE_*).
|
|
126
125
|
// Merging would create a sensitive-data boundary violation.
|
|
127
126
|
// Instead, apply directly to process.env (below).
|
|
128
127
|
const envVars = collectConfigEnvVars(resolved);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Centralised readers for
|
|
2
|
+
* Centralised readers for Eliza feature flags that gate unreleased or
|
|
3
3
|
* in-progress integrations. Keep this module dependency-free so it can be
|
|
4
4
|
* imported from any layer (api, runtime, cloud) without cycles.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Centralised readers for
|
|
2
|
+
* Centralised readers for Eliza feature flags that gate unreleased or
|
|
3
3
|
* in-progress integrations. Keep this module dependency-free so it can be
|
|
4
4
|
* imported from any layer (api, runtime, cloud) without cycles.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@ export declare function resolveOAuthDir(env?: NodeJS.ProcessEnv, stateDirPath?:
|
|
|
12
12
|
export declare function resolveOAuthPath(env?: NodeJS.ProcessEnv, stateDirPath?: string): string;
|
|
13
13
|
/**
|
|
14
14
|
* Canonical path to the persisted Steward credentials file.
|
|
15
|
-
* Honors `
|
|
15
|
+
* Honors `ELIZA_STATE_DIR` / `ELIZA_NAMESPACE`; falls back
|
|
16
16
|
* to `~/.<namespace>/steward-credentials.json` (default namespace = `eliza`).
|
|
17
17
|
*/
|
|
18
18
|
export declare function resolveStewardCredentialsPath(env?: NodeJS.ProcessEnv, stateDirPath?: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/config/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/config/paths.ts"],"names":[],"mappings":"AAoBA,wBAAgB,iBAAiB,CAC/B,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,CAGR;AAUD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUrD;AAED,wBAAgB,eAAe,CAC7B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,GAAE,MAAM,MAAmB,GACjC,MAAM,CAMR;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,YAAY,GAAE,MAAyC,GACtD,MAAM,CAoBR;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,GAAE,MAAM,MAAmB,GACjC,MAAM,EAAE,CA2BV;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,YAAY,GAAE,MAAyC,GACtD,MAAM,CAER;AAED,wBAAgB,eAAe,CAC7B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,YAAY,GAAE,MAAyC,GACtD,MAAM,CAMR;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,YAAY,GAAE,MAAyC,GACtD,MAAM,CAER;AAID;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,YAAY,GAAE,MAAyC,GACtD,MAAM,CAER"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
const STATE_DIR_OVERRIDE_KEYS = [
|
|
5
|
-
|
|
6
|
-
"ELIZA_STATE_DIR",
|
|
7
|
-
];
|
|
8
|
-
const CONFIG_PATH_OVERRIDE_KEYS = [
|
|
9
|
-
"MILADY_CONFIG_PATH",
|
|
10
|
-
"ELIZA_CONFIG_PATH",
|
|
11
|
-
];
|
|
4
|
+
const STATE_DIR_OVERRIDE_KEYS = ["ELIZA_STATE_DIR"];
|
|
5
|
+
const CONFIG_PATH_OVERRIDE_KEYS = ["ELIZA_CONFIG_PATH"];
|
|
12
6
|
function readEnvOverride(env, keys) {
|
|
13
7
|
for (const key of keys) {
|
|
14
8
|
const value = env[key]?.trim();
|
|
@@ -107,7 +101,7 @@ export function resolveOAuthPath(env = process.env, stateDirPath = resolveStateD
|
|
|
107
101
|
const STEWARD_CREDENTIALS_FILENAME = "steward-credentials.json";
|
|
108
102
|
/**
|
|
109
103
|
* Canonical path to the persisted Steward credentials file.
|
|
110
|
-
* Honors `
|
|
104
|
+
* Honors `ELIZA_STATE_DIR` / `ELIZA_NAMESPACE`; falls back
|
|
111
105
|
* to `~/.<namespace>/steward-credentials.json` (default namespace = `eliza`).
|
|
112
106
|
*/
|
|
113
107
|
export function resolveStewardCredentialsPath(env = process.env, stateDirPath = resolveStateDir(env, os.homedir)) {
|
|
@@ -445,7 +445,7 @@ export type CloudConfig = {
|
|
|
445
445
|
* pumps `${cloud.baseUrl}/api/v1/agents/${agentId}/n8n` into N8N_HOST and
|
|
446
446
|
* `cloud.apiKey` into N8N_API_KEY.
|
|
447
447
|
* 2. Local sidecar — when `localEnabled !== false` (the default) and the
|
|
448
|
-
*
|
|
448
|
+
* Eliza n8n sidecar is running, the sidecar lifecycle writes `host`
|
|
449
449
|
* and `apiKey` fields below when it reaches the "ready" status. The
|
|
450
450
|
* runtime pumps those into the plugin.
|
|
451
451
|
*
|
|
@@ -650,7 +650,7 @@ export type ElizaConfig = {
|
|
|
650
650
|
/** Deployment target for the current agent runtime. */
|
|
651
651
|
deploymentTarget?: DeploymentTargetConfig;
|
|
652
652
|
/**
|
|
653
|
-
* Legacy linked-account flags persisted in `
|
|
653
|
+
* Legacy linked-account flags persisted in `eliza.json` (e.g.
|
|
654
654
|
* `linkedAccounts.elizacloud.status === "linked"`). Per-account
|
|
655
655
|
* credential records live under `~/.eliza/auth/{providerId}/...`
|
|
656
656
|
* and are surfaced via the WS3 accounts API, not this config.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/providers/workspace.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAqD3B;AAED,wBAAgB,+BAA+B,CAC7C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,GAAE,MAAM,MAAmB,EAClC,GAAG,GAAE,MAAM,MAAoB,GAC9B,MAAM,CAuBR;
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/providers/workspace.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAqD3B;AAED,wBAAgB,+BAA+B,CAC7C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,GAAE,MAAM,MAAmB,EAClC,GAAG,GAAE,MAAM,MAAoB,GAC9B,MAAM,CAuBR;AAWD,eAAO,MAAM,2BAA2B,QAAoC,CAAC;AAC7E,QAAA,MAAM,uBAAuB,cAAc,CAAC;AAC5C,QAAA,MAAM,sBAAsB,aAAa,CAAC;AAC1C,QAAA,MAAM,yBAAyB,gBAAgB,CAAC;AAChD,QAAA,MAAM,qBAAqB,YAAY,CAAC;AACxC,QAAA,MAAM,0BAA0B,iBAAiB,CAAC;AAClD,QAAA,MAAM,qBAAqB,YAAY,CAAC;AACxC,QAAA,MAAM,uBAAuB,cAAc,CAAC;AAC5C,QAAA,MAAM,2BAA2B,cAAc,CAAC;AA4IhD,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,MAAM,GACnB,OAAO,CAET;AAED,MAAM,MAAM,qBAAqB,GAC7B,OAAO,uBAAuB,GAC9B,OAAO,sBAAsB,GAC7B,OAAO,yBAAyB,GAChC,OAAO,qBAAqB,GAC5B,OAAO,0BAA0B,GACjC,OAAO,qBAAqB,GAC5B,OAAO,uBAAuB,GAC9B,OAAO,2BAA2B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAWF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAU3E;AAuFD,wBAAsB,oBAAoB,CAAC,MAAM,CAAC,EAAE;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAuED;AA6CD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAsD9B;AAOD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,EAAE,EAC1B,UAAU,CAAC,EAAE,MAAM,GAClB,iBAAiB,EAAE,CAKrB"}
|
|
@@ -73,11 +73,8 @@ export function resolveDefaultAgentWorkspaceDir(env = process.env, homedir = os.
|
|
|
73
73
|
}
|
|
74
74
|
return path.join(stateDir, "workspace");
|
|
75
75
|
}
|
|
76
|
-
const EXPLICIT_WORKSPACE_DIR_KEYS = [
|
|
77
|
-
|
|
78
|
-
"ELIZA_WORKSPACE_DIR",
|
|
79
|
-
];
|
|
80
|
-
const EXPLICIT_STATE_DIR_KEYS = ["ELIZA_STATE_DIR", "ELIZA_STATE_DIR"];
|
|
76
|
+
const EXPLICIT_WORKSPACE_DIR_KEYS = ["ELIZA_WORKSPACE_DIR"];
|
|
77
|
+
const EXPLICIT_STATE_DIR_KEYS = ["ELIZA_STATE_DIR"];
|
|
81
78
|
const PROJECT_WORKSPACE_MARKERS = [
|
|
82
79
|
"AGENTS.md",
|
|
83
80
|
"CLAUDE.md",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const DESKTOP_ONLY_PLUGINS: readonly string[];
|
|
12
12
|
/**
|
|
13
|
-
* Mobile-safe core plugins. Used when `
|
|
13
|
+
* Mobile-safe core plugins. Used when `ELIZA_PLATFORM=android` (or `ios`).
|
|
14
14
|
*
|
|
15
15
|
* Phones cannot host the n8n sidecar, the Signal CLI, the swarm orchestrator,
|
|
16
16
|
* the sandbox engine, the desktop launch hooks, or the autonomous PTY tools.
|
|
@@ -29,6 +29,21 @@ export declare const DESKTOP_ONLY_PLUGINS: readonly string[];
|
|
|
29
29
|
* JNI binding (separate task).
|
|
30
30
|
*/
|
|
31
31
|
export declare const MOBILE_CORE_PLUGINS: readonly string[];
|
|
32
|
+
/**
|
|
33
|
+
* Android-only overlay app plugins. Used when `MILADY_PLATFORM=android`,
|
|
34
|
+
* appended to `MOBILE_CORE_PLUGINS` in `collectPluginNames`. Each one is a
|
|
35
|
+
* runtime-app plugin (the `/plugin` subpath of the matching overlay app)
|
|
36
|
+
* that exposes the Android system surface — WiFi, Contacts, Phone — to
|
|
37
|
+
* the agent as actions. The overlay UIs themselves register at app boot
|
|
38
|
+
* via `@elizaos/app-{wifi,contacts,phone}/register` (see apps/app/src/main.tsx),
|
|
39
|
+
* gated on `Capacitor.getPlatform() === "android"` so non-Android hosts
|
|
40
|
+
* are no-ops.
|
|
41
|
+
*
|
|
42
|
+
* iOS does not get these because the underlying capacitor-{wifi,contacts,
|
|
43
|
+
* phone} native plugins have Android-only Kotlin sources. A separate iOS
|
|
44
|
+
* tier would require Swift implementations that don't exist yet.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ANDROID_CORE_PLUGINS: readonly string[];
|
|
32
47
|
/** Core plugins that should always be loaded. collectPluginNames() seeds from this list only. */
|
|
33
48
|
export declare const CORE_PLUGINS: readonly string[];
|
|
34
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-plugins.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/core-plugins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAA2B,CAAC;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAA4B,CAAC;AAE9E,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,SAAS,MAAM,EAmBzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EA4BlD,CAAC"}
|
|
1
|
+
{"version":3,"file":"core-plugins.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/core-plugins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAA2B,CAAC;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAA4B,CAAC;AAE9E;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAIjD,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,SAAS,MAAM,EAmBzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EA4BlD,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export const DESKTOP_ONLY_PLUGINS = ["agent-orchestrator"];
|
|
12
12
|
/**
|
|
13
|
-
* Mobile-safe core plugins. Used when `
|
|
13
|
+
* Mobile-safe core plugins. Used when `ELIZA_PLATFORM=android` (or `ios`).
|
|
14
14
|
*
|
|
15
15
|
* Phones cannot host the n8n sidecar, the Signal CLI, the swarm orchestrator,
|
|
16
16
|
* the sandbox engine, the desktop launch hooks, or the autonomous PTY tools.
|
|
@@ -29,6 +29,25 @@ export const DESKTOP_ONLY_PLUGINS = ["agent-orchestrator"];
|
|
|
29
29
|
* JNI binding (separate task).
|
|
30
30
|
*/
|
|
31
31
|
export const MOBILE_CORE_PLUGINS = ["@elizaos/plugin-sql"];
|
|
32
|
+
/**
|
|
33
|
+
* Android-only overlay app plugins. Used when `MILADY_PLATFORM=android`,
|
|
34
|
+
* appended to `MOBILE_CORE_PLUGINS` in `collectPluginNames`. Each one is a
|
|
35
|
+
* runtime-app plugin (the `/plugin` subpath of the matching overlay app)
|
|
36
|
+
* that exposes the Android system surface — WiFi, Contacts, Phone — to
|
|
37
|
+
* the agent as actions. The overlay UIs themselves register at app boot
|
|
38
|
+
* via `@elizaos/app-{wifi,contacts,phone}/register` (see apps/app/src/main.tsx),
|
|
39
|
+
* gated on `Capacitor.getPlatform() === "android"` so non-Android hosts
|
|
40
|
+
* are no-ops.
|
|
41
|
+
*
|
|
42
|
+
* iOS does not get these because the underlying capacitor-{wifi,contacts,
|
|
43
|
+
* phone} native plugins have Android-only Kotlin sources. A separate iOS
|
|
44
|
+
* tier would require Swift implementations that don't exist yet.
|
|
45
|
+
*/
|
|
46
|
+
export const ANDROID_CORE_PLUGINS = [
|
|
47
|
+
"@elizaos/app-wifi",
|
|
48
|
+
"@elizaos/app-contacts",
|
|
49
|
+
"@elizaos/app-phone",
|
|
50
|
+
];
|
|
32
51
|
/** Core plugins that should always be loaded. collectPluginNames() seeds from this list only. */
|
|
33
52
|
export const CORE_PLUGINS = [
|
|
34
53
|
"@elizaos/plugin-sql", // database adapter — required
|
|
@@ -37,7 +56,7 @@ export const CORE_PLUGINS = [
|
|
|
37
56
|
"@elizaos/app-companion", // VRM companion emotes; actions gated until app session is active
|
|
38
57
|
// @elizaos/plugin-agent-orchestrator — opt-in via ELIZA_AGENT_ORCHESTRATOR (Eliza app enables by default)
|
|
39
58
|
"@elizaos/plugin-cron", // scheduled jobs and automation
|
|
40
|
-
"@elizaos/plugin-app-control", // launch, close, and list running
|
|
59
|
+
"@elizaos/plugin-app-control", // launch, close, and list running Eliza apps from agent chat
|
|
41
60
|
"@elizaos/plugin-shell", // shell command execution
|
|
42
61
|
"@elizaos/plugin-agent-skills", // skill execution and marketplace runtime
|
|
43
62
|
"@elizaos/plugin-commands", // slash command handling (skills auto-register as /commands)
|
|
@@ -2217,7 +2217,7 @@ export async function startEliza(opts) {
|
|
|
2217
2217
|
// 2d. Propagate database config into process.env for plugin-sql
|
|
2218
2218
|
applyDatabaseConfigToEnv(config);
|
|
2219
2219
|
// 2e. Boot-time vault hydration. Migrate plaintext sensitive values from
|
|
2220
|
-
//
|
|
2220
|
+
// eliza.json + config.env + sensitive process.env keys into the OS-keychain
|
|
2221
2221
|
// vault, then resolve any vault://KEY sentinels in `config.env` so the
|
|
2222
2222
|
// legacy hydration loop below sees real values.
|
|
2223
2223
|
{
|
|
@@ -2372,8 +2372,8 @@ export async function startEliza(opts) {
|
|
|
2372
2372
|
// routing layer, then write the resolved value into process.env so
|
|
2373
2373
|
// the synchronous runtime.getSetting fast path picks it up. Idempotent;
|
|
2374
2374
|
// safe to run multiple times. Opt-out via
|
|
2375
|
-
//
|
|
2376
|
-
if (process.env.
|
|
2375
|
+
// ELIZA_DISABLE_VAULT_PROFILE_RESOLVER=1.
|
|
2376
|
+
if (process.env.ELIZA_DISABLE_VAULT_PROFILE_RESOLVER !== "1") {
|
|
2377
2377
|
try {
|
|
2378
2378
|
const { sharedVault } = await import("@elizaos/app-core/services/vault-mirror");
|
|
2379
2379
|
const { applyVaultProfilesForAgent } = await import("./vault-profile-resolver.js");
|
|
@@ -2387,8 +2387,8 @@ export async function startEliza(opts) {
|
|
|
2387
2387
|
// The runtime-wide EVM_PRIVATE_KEY / SOLANA_PRIVATE_KEY (process.env) is
|
|
2388
2388
|
// the *user* wallet; per-agent wallets live inside the encrypted vault and
|
|
2389
2389
|
// are surfaced separately in the in-app browser. Idempotent — existing
|
|
2390
|
-
// wallets are preserved. Opt-out via
|
|
2391
|
-
if (process.env.
|
|
2390
|
+
// wallets are preserved. Opt-out via ELIZA_DISABLE_AGENT_WALLET_BOOTSTRAP=1.
|
|
2391
|
+
if (process.env.ELIZA_DISABLE_AGENT_WALLET_BOOTSTRAP !== "1") {
|
|
2392
2392
|
try {
|
|
2393
2393
|
const { sharedVault } = await import("@elizaos/app-core/services/vault-mirror");
|
|
2394
2394
|
const { ensureAgentWallets } = await import("./agent-wallets.js");
|
|
@@ -3501,14 +3501,14 @@ export async function startInCloudMode(config, agentId, opts) {
|
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
const isDirectRun = (() => {
|
|
3504
|
-
// Mobile (bundled) builds set
|
|
3504
|
+
// Mobile (bundled) builds set ELIZA_DISABLE_DIRECT_RUN=1 via Bun's
|
|
3505
3505
|
// `--define`. After bundling, `import.meta.url` and `process.argv[1]`
|
|
3506
3506
|
// collapse to the same bundle path, so this check spuriously matches and
|
|
3507
3507
|
// the runtime self-invokes a SECOND `startEliza()` alongside the CLI's
|
|
3508
3508
|
// primary one. The second invocation lacks `{ serverOnly: true }` and
|
|
3509
3509
|
// drops into the readline chat loop, which closes on stdin EOF and tears
|
|
3510
3510
|
// the whole process down.
|
|
3511
|
-
if (process.env.
|
|
3511
|
+
if (process.env.ELIZA_DISABLE_DIRECT_RUN === "1")
|
|
3512
3512
|
return false;
|
|
3513
3513
|
const scriptArg = process.argv[1];
|
|
3514
3514
|
if (!scriptArg)
|
|
@@ -81,10 +81,10 @@ export class FilesystemRuntimeOperationRepository {
|
|
|
81
81
|
this.dir = operationsDirFor(stateDir);
|
|
82
82
|
this.retentionMs =
|
|
83
83
|
opts.retentionMs ??
|
|
84
|
-
readEnvNumber("
|
|
84
|
+
readEnvNumber("ELIZA_RUNTIME_OPS_RETENTION_MS", DEFAULT_RETENTION_MS);
|
|
85
85
|
this.maxRecords =
|
|
86
86
|
opts.maxRecords ??
|
|
87
|
-
readEnvNumber("
|
|
87
|
+
readEnvNumber("ELIZA_RUNTIME_OPS_MAX_RECORDS", DEFAULT_MAX_RECORDS);
|
|
88
88
|
}
|
|
89
89
|
hydrate() {
|
|
90
90
|
if (this.hydration)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-collector.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/plugin-collector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-collector.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/plugin-collector.ts"],"names":[],"mappings":"AA2DA;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAErE;AAQD,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsB/D,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmBhE,CAAC;AAeF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4ChE,CAAC;AAMF;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module plugin-collector
|
|
14
14
|
*/
|
|
15
|
-
import { hasExplicitCanonicalRuntimeConfig, isMobilePlatform, migrateLegacyRuntimeConfig, resolveDeploymentTargetInConfig, resolveElizaCloudTopology, resolveServiceRoutingInConfig, } from "@elizaos/shared";
|
|
16
|
-
import { CORE_PLUGINS, MOBILE_CORE_PLUGINS, OPTIONAL_CORE_PLUGINS, } from "./core-plugins.js";
|
|
15
|
+
import { hasExplicitCanonicalRuntimeConfig, isAndroidMobile, isMobilePlatform, migrateLegacyRuntimeConfig, resolveDeploymentTargetInConfig, resolveElizaCloudTopology, resolveServiceRoutingInConfig, } from "@elizaos/shared";
|
|
16
|
+
import { ANDROID_CORE_PLUGINS, CORE_PLUGINS, MOBILE_CORE_PLUGINS, OPTIONAL_CORE_PLUGINS, } from "./core-plugins.js";
|
|
17
17
|
const OPTIONAL_CORE_PLUGIN_NAMES = new Set(OPTIONAL_CORE_PLUGINS);
|
|
18
18
|
/**
|
|
19
19
|
* Agent orchestrator ships as the standalone @elizaos/plugin-agent-orchestrator package;
|
|
@@ -181,7 +181,7 @@ export function collectPluginNames(config, reasons) {
|
|
|
181
181
|
const hasCanonicalRuntimeConfig = hasExplicitCanonicalRuntimeConfig(config);
|
|
182
182
|
const isCloudContainer = process.env.ELIZA_CLOUD_PROVISIONED === "1";
|
|
183
183
|
const cloudExplicitlyDisabled = config.cloud?.enabled === false;
|
|
184
|
-
// `
|
|
184
|
+
// `ELIZA_LOCAL_LLAMA=1` is the AOSP / on-device signal that the in-process
|
|
185
185
|
// llama.cpp loader is wired up and should be available as a routable
|
|
186
186
|
// provider. It does NOT mean "strip every other provider": subscription
|
|
187
187
|
// accounts (anthropic-subscription, openai-codex) and API-key cloud
|
|
@@ -190,7 +190,7 @@ export function collectPluginNames(config, reasons) {
|
|
|
190
190
|
// ensure-local-inference-handler.ts), so cloud/direct providers win when
|
|
191
191
|
// the user has them configured, and local fills in otherwise.
|
|
192
192
|
// TODO(local-only-mode): introduce a separate explicit opt-in flag (e.g.
|
|
193
|
-
// `
|
|
193
|
+
// `ELIZA_LOCAL_ONLY=1`) for users who want all-cloud-providers stripped.
|
|
194
194
|
const localOnlyInference = legacyLocalOnlyInference ||
|
|
195
195
|
(cloudExplicitlyDisabled &&
|
|
196
196
|
deploymentTarget.runtime === "local" &&
|
|
@@ -230,11 +230,12 @@ export function collectPluginNames(config, reasons) {
|
|
|
230
230
|
const hasExplicitEnabledProvider = explicitProviderEntries.some(([, entry]) => entry?.enabled === true);
|
|
231
231
|
// Allow-list entries are additive (extra plugins), not exclusive.
|
|
232
232
|
const allowList = config.plugins?.allow;
|
|
233
|
-
// On mobile (
|
|
233
|
+
// On mobile (ELIZA_PLATFORM=android|ios) the desktop core list pulls in
|
|
234
234
|
// ~10 plugins that depend on subprocesses (n8n, signal-cli), platform
|
|
235
235
|
// launchers (/usr/bin/open, osascript, xdg-open), or PTY tooling — all
|
|
236
236
|
// unavailable in the app sandbox. Substitute the curated mobile-safe set.
|
|
237
237
|
const onMobile = isMobilePlatform();
|
|
238
|
+
const onAndroid = isAndroidMobile();
|
|
238
239
|
const seedCorePlugins = onMobile ? MOBILE_CORE_PLUGINS : CORE_PLUGINS;
|
|
239
240
|
const pluginsToLoad = new Set(seedCorePlugins);
|
|
240
241
|
const track = (name, reason) => {
|
|
@@ -244,6 +245,18 @@ export function collectPluginNames(config, reasons) {
|
|
|
244
245
|
for (const core of seedCorePlugins) {
|
|
245
246
|
track(core, onMobile ? "MOBILE_CORE_PLUGINS" : "CORE_PLUGINS");
|
|
246
247
|
}
|
|
248
|
+
// Android-only: add the system-surface overlay app plugins (WiFi,
|
|
249
|
+
// Contacts, Phone). These wrap the matching Android-only Capacitor
|
|
250
|
+
// native plugins; iOS and desktop do not load them. The overlay UI
|
|
251
|
+
// registration happens in the renderer via @elizaos/app-*/register
|
|
252
|
+
// imports — these are the *runtime* plugin halves that expose actions
|
|
253
|
+
// to the agent for `Connect to wifi`, `Find contact`, `Call so-and-so`.
|
|
254
|
+
if (onAndroid) {
|
|
255
|
+
for (const name of ANDROID_CORE_PLUGINS) {
|
|
256
|
+
pluginsToLoad.add(name);
|
|
257
|
+
track(name, "ANDROID_CORE_PLUGINS");
|
|
258
|
+
}
|
|
259
|
+
}
|
|
247
260
|
// Agent orchestrator depends on PTY / coding-swarm subprocesses (none of
|
|
248
261
|
// which exist on Android / iOS), so always skip it on mobile regardless of
|
|
249
262
|
// the stored ELIZA_AGENT_ORCHESTRATOR / config preference.
|
|
@@ -425,6 +438,7 @@ export function collectPluginNames(config, reasons) {
|
|
|
425
438
|
if (onMobile) {
|
|
426
439
|
const mobileAllowed = new Set([
|
|
427
440
|
...MOBILE_CORE_PLUGINS,
|
|
441
|
+
...(onAndroid ? ANDROID_CORE_PLUGINS : []),
|
|
428
442
|
"@elizaos/plugin-anthropic",
|
|
429
443
|
"@elizaos/plugin-openai",
|
|
430
444
|
"@elizaos/plugin-ollama",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-resolver.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/plugin-resolver.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AAgBxE,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAOpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-resolver.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/plugin-resolver.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AAgBxE,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAOpB,MAAM,mBAAmB,CAAC;AAyC3B,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,MAAM,CAMR;AA2VD;;;;;;;;;;GAUG;AACH,wBAAsB,0BAA0B,CAC9C,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,aAAa,SAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC,CAkC5B;AAgCD,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAMnD;AA4VD;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EACnB,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GACzB,OAAO,CAAC,cAAc,EAAE,CAAC,CA+Z3B"}
|
|
@@ -35,11 +35,14 @@ import { CUSTOM_PLUGINS_DIRNAME, EJECTED_PLUGINS_DIRNAME, ensureBrowserServerLin
|
|
|
35
35
|
const LAST_FAILED_PLUGIN_NAMES = Symbol.for("@elizaos/plugin-resolver/last-failed-plugin-names");
|
|
36
36
|
const RUNTIME_APP_PLUGIN_SUBPATHS = new Set([
|
|
37
37
|
"@elizaos/app-companion",
|
|
38
|
+
"@elizaos/app-contacts",
|
|
38
39
|
"@elizaos/app-elizamaker",
|
|
39
40
|
"@elizaos/app-lifeops",
|
|
41
|
+
"@elizaos/app-phone",
|
|
40
42
|
"@elizaos/app-shopify",
|
|
41
43
|
"@elizaos/app-steward",
|
|
42
44
|
"@elizaos/app-vincent",
|
|
45
|
+
"@elizaos/app-wifi",
|
|
43
46
|
]);
|
|
44
47
|
// ---------------------------------------------------------------------------
|
|
45
48
|
// Helpers (private)
|
|
@@ -144,6 +144,8 @@ export declare function normalizeTrajectoryMetadata(metadata: Record<string, unk
|
|
|
144
144
|
scenarioId?: string;
|
|
145
145
|
batchId?: string;
|
|
146
146
|
};
|
|
147
|
+
export declare function truncateField(value: string, limit?: number): string;
|
|
148
|
+
export declare function truncateRecord(obj: Record<string, unknown>, limit?: number): Record<string, unknown>;
|
|
147
149
|
/**
|
|
148
150
|
* Cap a script source for inline persistence on a trajectory step. When the
|
|
149
151
|
* source exceeds `TRAJECTORY_STEP_SCRIPT_MAX_CHARS`, returns a truncated
|
|
@@ -154,6 +156,8 @@ export declare function capScriptForPersistence(script: string): {
|
|
|
154
156
|
script: string;
|
|
155
157
|
scriptHash?: string;
|
|
156
158
|
};
|
|
159
|
+
export declare function extractInsightsFromResponse(response: string, purpose: string): string[];
|
|
160
|
+
export declare function shouldRunObservationExtraction(runtime: IAgentRuntime): boolean;
|
|
157
161
|
export interface BufferedExchange {
|
|
158
162
|
userPrompt: string;
|
|
159
163
|
response: string;
|
|
@@ -161,6 +165,8 @@ export interface BufferedExchange {
|
|
|
161
165
|
timestamp: number;
|
|
162
166
|
}
|
|
163
167
|
export declare const TRAJECTORY_ARCHIVE_DIRNAME = "trajectory-archive";
|
|
168
|
+
export declare function pushChatExchange(runtime: IAgentRuntime, exchange: BufferedExchange): void;
|
|
169
|
+
export declare function flushObservationBuffer(runtime: IAgentRuntime): Promise<string[]>;
|
|
164
170
|
export declare function parseMetadata(value: unknown): Record<string, unknown>;
|
|
165
171
|
export declare function parseSteps(value: unknown): PersistedStep[];
|
|
166
172
|
export declare function sqlQuote(value: string): string;
|
|
@@ -171,6 +177,8 @@ export declare function getSqlRaw(): Promise<(query: string) => {
|
|
|
171
177
|
export declare function getRuntimeDb(runtime: IAgentRuntime): RuntimeDb | null;
|
|
172
178
|
export declare function hasRuntimeDb(runtime: IAgentRuntime): boolean;
|
|
173
179
|
export declare function executeRawSql(runtime: IAgentRuntime, sqlText: string): Promise<unknown>;
|
|
180
|
+
export declare function extractRows(result: unknown): unknown[];
|
|
181
|
+
export declare function computeBySource(runtime: IAgentRuntime): Promise<Record<string, number>>;
|
|
174
182
|
export declare function warnRuntime(runtime: IAgentRuntime, message: string, err?: unknown): void;
|
|
175
183
|
export declare function ensureTrajectoriesTable(runtime: IAgentRuntime): Promise<boolean>;
|
|
176
184
|
export declare function normalizeStatus(value: unknown, fallback: TrajectoryStatus): TrajectoryStatus;
|
|
@@ -203,6 +211,18 @@ export declare function summarizeTrajectory(trajectory: PersistedTrajectory): {
|
|
|
203
211
|
export declare function loadTrajectoryById(runtime: IAgentRuntime, stepId: string): Promise<PersistedTrajectory | null>;
|
|
204
212
|
export declare function loadTrajectoryByStepId(runtime: IAgentRuntime, stepId: string): Promise<PersistedTrajectory | null>;
|
|
205
213
|
export declare function saveTrajectory(runtime: IAgentRuntime, trajectory: PersistedTrajectory): Promise<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* Read orchestrator trajectory context from the runtime, if set.
|
|
216
|
+
*/
|
|
217
|
+
export declare function readOrchestratorTrajectoryContext(runtime: unknown): {
|
|
218
|
+
source: "orchestrator";
|
|
219
|
+
decisionType: string;
|
|
220
|
+
sessionId?: string;
|
|
221
|
+
taskLabel?: string;
|
|
222
|
+
repo?: string;
|
|
223
|
+
workdir?: string;
|
|
224
|
+
originalTask?: string;
|
|
225
|
+
} | undefined;
|
|
206
226
|
export declare function resolvePreferredTrajectoryArchiveRoot(): string;
|
|
207
227
|
export declare function ensureArchiveDirectory(dir: string): Promise<void>;
|
|
208
228
|
export declare function resolveTrajectoryArchiveDirectory(): Promise<string>;
|