@elizaos/autonomous 2.0.0-alpha.10
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/LICENSE +21 -0
- package/package.json +270 -0
- package/src/actions/emote.ts +101 -0
- package/src/actions/restart.ts +101 -0
- package/src/actions/send-message.ts +168 -0
- package/src/actions/stream-control.ts +439 -0
- package/src/actions/switch-stream-source.ts +126 -0
- package/src/actions/terminal.ts +186 -0
- package/src/api/agent-admin-routes.ts +178 -0
- package/src/api/agent-lifecycle-routes.ts +129 -0
- package/src/api/agent-model.ts +143 -0
- package/src/api/agent-transfer-routes.ts +211 -0
- package/src/api/apps-routes.ts +210 -0
- package/src/api/auth-routes.ts +90 -0
- package/src/api/bsc-trade.ts +736 -0
- package/src/api/bug-report-routes.ts +161 -0
- package/src/api/character-routes.ts +421 -0
- package/src/api/cloud-billing-routes.ts +598 -0
- package/src/api/cloud-compat-routes.ts +192 -0
- package/src/api/cloud-routes.ts +529 -0
- package/src/api/cloud-status-routes.ts +234 -0
- package/src/api/compat-utils.ts +154 -0
- package/src/api/connector-health.ts +135 -0
- package/src/api/coordinator-wiring.ts +179 -0
- package/src/api/credit-detection.ts +47 -0
- package/src/api/database.ts +1357 -0
- package/src/api/diagnostics-routes.ts +389 -0
- package/src/api/drop-service.ts +205 -0
- package/src/api/early-logs.ts +111 -0
- package/src/api/http-helpers.ts +252 -0
- package/src/api/index.ts +85 -0
- package/src/api/knowledge-routes.ts +1189 -0
- package/src/api/knowledge-service-loader.ts +92 -0
- package/src/api/memory-bounds.ts +121 -0
- package/src/api/memory-routes.ts +349 -0
- package/src/api/merkle-tree.ts +239 -0
- package/src/api/models-routes.ts +72 -0
- package/src/api/nfa-routes.ts +169 -0
- package/src/api/nft-verify.ts +188 -0
- package/src/api/og-tracker.ts +72 -0
- package/src/api/parse-action-block.ts +145 -0
- package/src/api/permissions-routes.ts +222 -0
- package/src/api/plugin-validation.ts +355 -0
- package/src/api/provider-switch-config.ts +455 -0
- package/src/api/registry-routes.ts +165 -0
- package/src/api/registry-service.ts +292 -0
- package/src/api/route-helpers.ts +21 -0
- package/src/api/sandbox-routes.ts +1480 -0
- package/src/api/server.ts +17674 -0
- package/src/api/signal-routes.ts +265 -0
- package/src/api/stream-persistence.ts +297 -0
- package/src/api/stream-route-state.ts +48 -0
- package/src/api/stream-routes.ts +1046 -0
- package/src/api/stream-voice-routes.ts +208 -0
- package/src/api/streaming-text.ts +129 -0
- package/src/api/streaming-types.ts +23 -0
- package/src/api/subscription-routes.ts +283 -0
- package/src/api/terminal-run-limits.ts +31 -0
- package/src/api/training-backend-check.ts +40 -0
- package/src/api/training-routes.ts +314 -0
- package/src/api/training-service-like.ts +46 -0
- package/src/api/trajectory-routes.ts +714 -0
- package/src/api/trigger-routes.ts +438 -0
- package/src/api/twitter-verify.ts +226 -0
- package/src/api/tx-service.ts +193 -0
- package/src/api/wallet-dex-prices.ts +206 -0
- package/src/api/wallet-evm-balance.ts +989 -0
- package/src/api/wallet-routes.ts +505 -0
- package/src/api/wallet-rpc.ts +523 -0
- package/src/api/wallet-trading-profile.ts +694 -0
- package/src/api/wallet.ts +745 -0
- package/src/api/whatsapp-routes.ts +282 -0
- package/src/api/zip-utils.ts +130 -0
- package/src/auth/anthropic.ts +63 -0
- package/src/auth/apply-stealth.ts +38 -0
- package/src/auth/claude-code-stealth.ts +141 -0
- package/src/auth/credentials.ts +226 -0
- package/src/auth/index.ts +18 -0
- package/src/auth/openai-codex.ts +94 -0
- package/src/auth/types.ts +24 -0
- package/src/awareness/registry.ts +220 -0
- package/src/bin.ts +10 -0
- package/src/cli/index.ts +36 -0
- package/src/cli/parse-duration.ts +43 -0
- package/src/cloud/auth.test.ts +370 -0
- package/src/cloud/auth.ts +176 -0
- package/src/cloud/backup.test.ts +150 -0
- package/src/cloud/backup.ts +50 -0
- package/src/cloud/base-url.ts +45 -0
- package/src/cloud/bridge-client.test.ts +481 -0
- package/src/cloud/bridge-client.ts +307 -0
- package/src/cloud/cloud-manager.test.ts +223 -0
- package/src/cloud/cloud-manager.ts +151 -0
- package/src/cloud/cloud-proxy.test.ts +122 -0
- package/src/cloud/cloud-proxy.ts +52 -0
- package/src/cloud/index.ts +23 -0
- package/src/cloud/reconnect.test.ts +178 -0
- package/src/cloud/reconnect.ts +108 -0
- package/src/cloud/validate-url.test.ts +147 -0
- package/src/cloud/validate-url.ts +176 -0
- package/src/config/character-schema.ts +44 -0
- package/src/config/config.ts +149 -0
- package/src/config/env-vars.ts +86 -0
- package/src/config/includes.ts +196 -0
- package/src/config/index.ts +15 -0
- package/src/config/object-utils.ts +10 -0
- package/src/config/paths.ts +92 -0
- package/src/config/plugin-auto-enable.ts +520 -0
- package/src/config/schema.ts +1342 -0
- package/src/config/telegram-custom-commands.ts +99 -0
- package/src/config/types.agent-defaults.ts +342 -0
- package/src/config/types.agents.ts +112 -0
- package/src/config/types.gateway.ts +243 -0
- package/src/config/types.hooks.ts +124 -0
- package/src/config/types.messages.ts +201 -0
- package/src/config/types.milady.ts +791 -0
- package/src/config/types.tools.ts +416 -0
- package/src/config/types.ts +7 -0
- package/src/config/zod-schema.agent-runtime.ts +777 -0
- package/src/config/zod-schema.core.ts +778 -0
- package/src/config/zod-schema.hooks.ts +139 -0
- package/src/config/zod-schema.providers-core.ts +1126 -0
- package/src/config/zod-schema.session.ts +98 -0
- package/src/config/zod-schema.ts +865 -0
- package/src/contracts/apps.ts +46 -0
- package/src/contracts/awareness.ts +56 -0
- package/src/contracts/config.ts +172 -0
- package/src/contracts/drop.ts +21 -0
- package/src/contracts/index.ts +8 -0
- package/src/contracts/onboarding.ts +592 -0
- package/src/contracts/permissions.ts +52 -0
- package/src/contracts/verification.ts +9 -0
- package/src/contracts/wallet.ts +503 -0
- package/src/diagnostics/integration-observability.ts +132 -0
- package/src/emotes/catalog.ts +655 -0
- package/src/external-modules.d.ts +7 -0
- package/src/hooks/discovery.test.ts +357 -0
- package/src/hooks/discovery.ts +231 -0
- package/src/hooks/eligibility.ts +146 -0
- package/src/hooks/hooks.test.ts +320 -0
- package/src/hooks/index.ts +8 -0
- package/src/hooks/loader.test.ts +418 -0
- package/src/hooks/loader.ts +256 -0
- package/src/hooks/registry.test.ts +168 -0
- package/src/hooks/registry.ts +74 -0
- package/src/hooks/types.ts +121 -0
- package/src/index.ts +19 -0
- package/src/onboarding-presets.ts +828 -0
- package/src/plugins/custom-rtmp/index.ts +40 -0
- package/src/providers/admin-trust.ts +76 -0
- package/src/providers/session-bridge.ts +143 -0
- package/src/providers/session-utils.ts +42 -0
- package/src/providers/simple-mode.ts +113 -0
- package/src/providers/ui-catalog.ts +135 -0
- package/src/providers/workspace-provider.ts +213 -0
- package/src/providers/workspace.ts +497 -0
- package/src/runtime/agent-event-service.ts +57 -0
- package/src/runtime/cloud-onboarding.test.ts +489 -0
- package/src/runtime/cloud-onboarding.ts +408 -0
- package/src/runtime/core-plugins.ts +53 -0
- package/src/runtime/custom-actions.ts +605 -0
- package/src/runtime/eliza.ts +4941 -0
- package/src/runtime/embedding-presets.ts +73 -0
- package/src/runtime/index.ts +8 -0
- package/src/runtime/milady-plugin.ts +180 -0
- package/src/runtime/onboarding-names.ts +76 -0
- package/src/runtime/release-plugin-policy.ts +119 -0
- package/src/runtime/restart.ts +59 -0
- package/src/runtime/trajectory-persistence.ts +2584 -0
- package/src/runtime/version.ts +6 -0
- package/src/security/audit-log.ts +222 -0
- package/src/security/network-policy.ts +91 -0
- package/src/server/index.ts +6 -0
- package/src/services/agent-export.ts +976 -0
- package/src/services/app-manager.ts +755 -0
- package/src/services/browser-capture.ts +215 -0
- package/src/services/coding-agent-context.ts +355 -0
- package/src/services/fallback-training-service.ts +196 -0
- package/src/services/index.ts +17 -0
- package/src/services/mcp-marketplace.ts +327 -0
- package/src/services/plugin-manager-types.ts +185 -0
- package/src/services/privy-wallets.ts +352 -0
- package/src/services/registry-client-app-meta.ts +201 -0
- package/src/services/registry-client-endpoints.ts +253 -0
- package/src/services/registry-client-local.ts +485 -0
- package/src/services/registry-client-network.ts +173 -0
- package/src/services/registry-client-queries.ts +176 -0
- package/src/services/registry-client-types.ts +104 -0
- package/src/services/registry-client.ts +366 -0
- package/src/services/remote-signing-service.ts +261 -0
- package/src/services/sandbox-engine.ts +753 -0
- package/src/services/sandbox-manager.ts +503 -0
- package/src/services/self-updater.ts +213 -0
- package/src/services/signal-pairing.ts +189 -0
- package/src/services/signing-policy.ts +230 -0
- package/src/services/skill-catalog-client.ts +195 -0
- package/src/services/skill-marketplace.ts +909 -0
- package/src/services/stream-manager.ts +707 -0
- package/src/services/tts-stream-bridge.ts +465 -0
- package/src/services/update-checker.ts +163 -0
- package/src/services/version-compat.ts +367 -0
- package/src/services/whatsapp-pairing.ts +279 -0
- package/src/shared/ui-catalog-prompt.ts +1158 -0
- package/src/test-support/process-helpers.ts +35 -0
- package/src/test-support/route-test-helpers.ts +113 -0
- package/src/test-support/test-helpers.ts +304 -0
- package/src/testing/index.ts +3 -0
- package/src/triggers/action.ts +342 -0
- package/src/triggers/runtime.ts +432 -0
- package/src/triggers/scheduling.ts +472 -0
- package/src/triggers/types.ts +133 -0
- package/src/types/app-hyperscape-routes-shim.d.ts +29 -0
- package/src/types/external-modules.d.ts +7 -0
- package/src/utils/exec-safety.ts +23 -0
- package/src/utils/number-parsing.ts +112 -0
- package/src/utils/spoken-text.ts +65 -0
- package/src/version-resolver.ts +60 -0
- package/test/api/agent-admin-routes.test.ts +160 -0
- package/test/api/agent-lifecycle-routes.test.ts +164 -0
- package/test/api/agent-transfer-routes.test.ts +136 -0
- package/test/api/apps-routes.test.ts +140 -0
- package/test/api/auth-routes.test.ts +160 -0
- package/test/api/bug-report-routes.test.ts +88 -0
- package/test/api/knowledge-routes.test.ts +73 -0
- package/test/api/lifecycle.test.ts +342 -0
- package/test/api/memory-routes.test.ts +74 -0
- package/test/api/models-routes.test.ts +112 -0
- package/test/api/nfa-routes.test.ts +78 -0
- package/test/api/permissions-routes.test.ts +185 -0
- package/test/api/registry-routes.test.ts +157 -0
- package/test/api/signal-routes.test.ts +113 -0
- package/test/api/subscription-routes.test.ts +90 -0
- package/test/api/trigger-routes.test.ts +87 -0
- package/test/api/wallet-routes.observability.test.ts +191 -0
- package/test/api/wallet-routes.test.ts +502 -0
- package/test/diagnostics/integration-observability.test.ts +135 -0
- package/test/security/audit-log.test.ts +229 -0
- package/test/security/network-policy.test.ts +143 -0
- package/test/services/version-compat.test.ts +127 -0
- package/tsconfig.build.json +21 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared app manager contracts.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export interface AppViewerAuthMessage {
|
|
6
|
+
type: string;
|
|
7
|
+
authToken?: string;
|
|
8
|
+
characterId?: string;
|
|
9
|
+
sessionToken?: string;
|
|
10
|
+
agentId?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface AppViewerConfig {
|
|
14
|
+
url: string;
|
|
15
|
+
embedParams?: Record<string, string>;
|
|
16
|
+
postMessageAuth?: boolean;
|
|
17
|
+
sandbox?: string;
|
|
18
|
+
authMessage?: AppViewerAuthMessage;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AppLaunchResult {
|
|
22
|
+
pluginInstalled: boolean;
|
|
23
|
+
needsRestart: boolean;
|
|
24
|
+
displayName: string;
|
|
25
|
+
launchType: string;
|
|
26
|
+
launchUrl: string | null;
|
|
27
|
+
viewer: AppViewerConfig | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface InstalledAppInfo {
|
|
31
|
+
name: string;
|
|
32
|
+
displayName: string;
|
|
33
|
+
pluginName: string;
|
|
34
|
+
version: string;
|
|
35
|
+
installedAt: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface AppStopResult {
|
|
39
|
+
success: boolean;
|
|
40
|
+
appName: string;
|
|
41
|
+
stoppedAt: string;
|
|
42
|
+
pluginUninstalled: boolean;
|
|
43
|
+
needsRestart: boolean;
|
|
44
|
+
stopScope: "plugin-uninstalled" | "viewer-session" | "no-op";
|
|
45
|
+
message: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Self-Awareness System v1 — shared contracts.
|
|
3
|
+
*
|
|
4
|
+
* @architecture Layered lazy-load + declarative AwarenessContributor
|
|
5
|
+
* @see docs/plans/2026-03-01-self-awareness-design.md
|
|
6
|
+
*/
|
|
7
|
+
import type { IAgentRuntime } from "@elizaos/core";
|
|
8
|
+
|
|
9
|
+
export const SELF_STATUS_SCHEMA_VERSION = 1;
|
|
10
|
+
|
|
11
|
+
/** Max chars for a single contributor summary line. */
|
|
12
|
+
export const SUMMARY_CHAR_LIMIT = 80;
|
|
13
|
+
|
|
14
|
+
/** Max total chars for the composed Layer 1 output (~300 tokens). */
|
|
15
|
+
export const SUMMARY_TOTAL_CHAR_LIMIT = 1200;
|
|
16
|
+
|
|
17
|
+
/** Default cache TTL in ms (1 minute). */
|
|
18
|
+
export const DEFAULT_CACHE_TTL_MS = 60_000;
|
|
19
|
+
|
|
20
|
+
export type AwarenessInvalidationEvent =
|
|
21
|
+
| "permission-changed"
|
|
22
|
+
| "plugin-changed"
|
|
23
|
+
| "wallet-updated"
|
|
24
|
+
| "provider-changed"
|
|
25
|
+
| "config-changed"
|
|
26
|
+
| "runtime-restarted"
|
|
27
|
+
| "opinion-updated";
|
|
28
|
+
|
|
29
|
+
export interface AwarenessContributor {
|
|
30
|
+
/** Unique identifier, e.g. "wallet", "permissions". */
|
|
31
|
+
id: string;
|
|
32
|
+
|
|
33
|
+
/** Sort priority (lower = higher in output).
|
|
34
|
+
* 10=runtime, 20=permissions, 30=wallet, 40=provider,
|
|
35
|
+
* 50=pluginHealth, 60=connectors, 70=cloud, 80=features */
|
|
36
|
+
position: number;
|
|
37
|
+
|
|
38
|
+
/** Layer 1 summary — injected every LLM turn.
|
|
39
|
+
* MUST return plain text, never secrets/keys/tokens.
|
|
40
|
+
* MUST be <= SUMMARY_CHAR_LIMIT chars. Return "" if nothing to show. */
|
|
41
|
+
summary: (runtime: IAgentRuntime) => Promise<string>;
|
|
42
|
+
|
|
43
|
+
/** Layer 2 detail — called via GET_SELF_STATUS action.
|
|
44
|
+
* "brief" ~= 200 tokens, "full" ~= 2000 tokens. */
|
|
45
|
+
detail?: (runtime: IAgentRuntime, level: "brief" | "full") => Promise<string>;
|
|
46
|
+
|
|
47
|
+
/** Cache TTL in ms. Default DEFAULT_CACHE_TTL_MS. */
|
|
48
|
+
cacheTtl?: number;
|
|
49
|
+
|
|
50
|
+
/** Events that proactively clear the cache (don't wait for TTL). */
|
|
51
|
+
invalidateOn?: AwarenessInvalidationEvent[];
|
|
52
|
+
|
|
53
|
+
/** Only built-in contributors set trusted=true.
|
|
54
|
+
* Untrusted contributor output is sanitized before injection. */
|
|
55
|
+
trusted?: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared configuration contracts used across runtime, server, and app client.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export type DatabaseProviderType = "pglite" | "postgres";
|
|
6
|
+
|
|
7
|
+
export type MediaMode = "cloud" | "own-key";
|
|
8
|
+
|
|
9
|
+
export type ImageProvider = "cloud" | "fal" | "openai" | "google" | "xai";
|
|
10
|
+
|
|
11
|
+
export type ImageFalConfig = {
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
model?: string;
|
|
14
|
+
baseUrl?: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type ImageOpenaiConfig = {
|
|
18
|
+
apiKey?: string;
|
|
19
|
+
model?: string;
|
|
20
|
+
quality?: "standard" | "hd";
|
|
21
|
+
style?: "natural" | "vivid";
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type ImageGoogleConfig = {
|
|
25
|
+
apiKey?: string;
|
|
26
|
+
model?: string;
|
|
27
|
+
aspectRatio?: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ImageXaiConfig = {
|
|
31
|
+
apiKey?: string;
|
|
32
|
+
model?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type ImageConfig = {
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
mode?: MediaMode;
|
|
38
|
+
provider?: ImageProvider;
|
|
39
|
+
defaultSize?: string;
|
|
40
|
+
fal?: ImageFalConfig;
|
|
41
|
+
openai?: ImageOpenaiConfig;
|
|
42
|
+
google?: ImageGoogleConfig;
|
|
43
|
+
xai?: ImageXaiConfig;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type VideoProvider = "cloud" | "fal" | "openai" | "google";
|
|
47
|
+
|
|
48
|
+
export type VideoFalConfig = {
|
|
49
|
+
apiKey?: string;
|
|
50
|
+
model?: string;
|
|
51
|
+
baseUrl?: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type VideoOpenaiConfig = {
|
|
55
|
+
apiKey?: string;
|
|
56
|
+
model?: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type VideoGoogleConfig = {
|
|
60
|
+
apiKey?: string;
|
|
61
|
+
model?: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type VideoConfig = {
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
mode?: MediaMode;
|
|
67
|
+
provider?: VideoProvider;
|
|
68
|
+
defaultDuration?: number;
|
|
69
|
+
fal?: VideoFalConfig;
|
|
70
|
+
openai?: VideoOpenaiConfig;
|
|
71
|
+
google?: VideoGoogleConfig;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type AudioGenProvider = "cloud" | "suno" | "elevenlabs";
|
|
75
|
+
|
|
76
|
+
export type AudioSunoConfig = {
|
|
77
|
+
apiKey?: string;
|
|
78
|
+
model?: string;
|
|
79
|
+
baseUrl?: string;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type AudioElevenlabsSfxConfig = {
|
|
83
|
+
apiKey?: string;
|
|
84
|
+
duration?: number;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type AudioGenConfig = {
|
|
88
|
+
enabled?: boolean;
|
|
89
|
+
mode?: MediaMode;
|
|
90
|
+
provider?: AudioGenProvider;
|
|
91
|
+
suno?: AudioSunoConfig;
|
|
92
|
+
elevenlabs?: AudioElevenlabsSfxConfig;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export type VisionProvider =
|
|
96
|
+
| "cloud"
|
|
97
|
+
| "openai"
|
|
98
|
+
| "google"
|
|
99
|
+
| "anthropic"
|
|
100
|
+
| "xai"
|
|
101
|
+
| "ollama";
|
|
102
|
+
|
|
103
|
+
export type VisionOpenaiConfig = {
|
|
104
|
+
apiKey?: string;
|
|
105
|
+
model?: string;
|
|
106
|
+
maxTokens?: number;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export type VisionGoogleConfig = {
|
|
110
|
+
apiKey?: string;
|
|
111
|
+
model?: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type VisionAnthropicConfig = {
|
|
115
|
+
apiKey?: string;
|
|
116
|
+
model?: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type VisionXaiConfig = {
|
|
120
|
+
apiKey?: string;
|
|
121
|
+
model?: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type VisionOllamaConfig = {
|
|
125
|
+
baseUrl?: string;
|
|
126
|
+
model?: string;
|
|
127
|
+
maxTokens?: number;
|
|
128
|
+
autoDownload?: boolean;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type VisionConfig = {
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
mode?: MediaMode;
|
|
134
|
+
provider?: VisionProvider;
|
|
135
|
+
openai?: VisionOpenaiConfig;
|
|
136
|
+
google?: VisionGoogleConfig;
|
|
137
|
+
anthropic?: VisionAnthropicConfig;
|
|
138
|
+
xai?: VisionXaiConfig;
|
|
139
|
+
ollama?: VisionOllamaConfig;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export type MediaConfig = {
|
|
143
|
+
image?: ImageConfig;
|
|
144
|
+
video?: VideoConfig;
|
|
145
|
+
audio?: AudioGenConfig;
|
|
146
|
+
vision?: VisionConfig;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type ReleaseChannel = "stable" | "beta" | "nightly";
|
|
150
|
+
|
|
151
|
+
export type CustomActionHandler =
|
|
152
|
+
| {
|
|
153
|
+
type: "http";
|
|
154
|
+
method: string;
|
|
155
|
+
url: string;
|
|
156
|
+
headers?: Record<string, string>;
|
|
157
|
+
bodyTemplate?: string;
|
|
158
|
+
}
|
|
159
|
+
| { type: "shell"; command: string }
|
|
160
|
+
| { type: "code"; code: string };
|
|
161
|
+
|
|
162
|
+
export type CustomActionDef = {
|
|
163
|
+
id: string;
|
|
164
|
+
name: string;
|
|
165
|
+
description: string;
|
|
166
|
+
similes?: string[];
|
|
167
|
+
parameters: Array<{ name: string; description: string; required: boolean }>;
|
|
168
|
+
handler: CustomActionHandler;
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared drop/mint API contracts.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export interface DropStatus {
|
|
6
|
+
dropEnabled: boolean;
|
|
7
|
+
publicMintOpen: boolean;
|
|
8
|
+
whitelistMintOpen: boolean;
|
|
9
|
+
mintedOut: boolean;
|
|
10
|
+
currentSupply: number;
|
|
11
|
+
maxSupply: number;
|
|
12
|
+
shinyPrice: string;
|
|
13
|
+
userHasMinted: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface MintResult {
|
|
17
|
+
agentId: number;
|
|
18
|
+
mintNumber: number;
|
|
19
|
+
txHash: string;
|
|
20
|
+
isShiny: boolean;
|
|
21
|
+
}
|