@elizaos/core 2.0.0-alpha.206 → 2.0.0-alpha.207
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/dist/action-docs.d.ts +1 -1
- package/dist/actions.d.ts +1 -1
- package/dist/character-utils.d.ts +2 -2
- package/dist/character.d.ts +1 -1
- package/dist/connection.d.ts +3 -3
- package/dist/constants/index.d.ts +1 -1
- package/dist/database/inMemoryAdapter.d.ts +2 -2
- package/dist/database.d.ts +5 -5
- package/dist/entities.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/addContact.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/followRoom.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/imageGeneration.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/index.d.ts +15 -15
- package/dist/features/advanced-capabilities/actions/muteRoom.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/removeContact.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/roles.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/searchContacts.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/sendMessage.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/settings.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/think.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/unfollowRoom.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/unmuteRoom.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/updateContact.d.ts +1 -1
- package/dist/features/advanced-capabilities/actions/updateEntity.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/append.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/delete.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/list.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/read-file.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/read.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/search.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/actions/write.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/index.d.ts +15 -15
- package/dist/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +1 -1
- package/dist/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +2 -2
- package/dist/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +2 -2
- package/dist/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +2 -2
- package/dist/features/advanced-capabilities/evaluators/factRefinement.d.ts +1 -1
- package/dist/features/advanced-capabilities/evaluators/index.d.ts +5 -5
- package/dist/features/advanced-capabilities/evaluators/reflection.d.ts +1 -1
- package/dist/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +1 -1
- package/dist/features/advanced-capabilities/evaluators/skillExtraction.d.ts +1 -1
- package/dist/features/advanced-capabilities/evaluators/skillRefinement.d.ts +1 -1
- package/dist/features/advanced-capabilities/evaluators/task-completion.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/actions/record-experience.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/index.d.ts +5 -5
- package/dist/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/service.d.ts +3 -3
- package/dist/features/advanced-capabilities/experience/types.d.ts +2 -2
- package/dist/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +1 -1
- package/dist/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/actions/restore.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/builder.d.ts +2 -2
- package/dist/features/advanced-capabilities/form/builtins.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/defaults.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/evaluators/extractor.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/extraction.d.ts +3 -3
- package/dist/features/advanced-capabilities/form/index.d.ts +15 -15
- package/dist/features/advanced-capabilities/form/intent.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/providers/context.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/service.d.ts +3 -3
- package/dist/features/advanced-capabilities/form/storage.d.ts +2 -2
- package/dist/features/advanced-capabilities/form/template.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/ttl.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/types.d.ts +1 -1
- package/dist/features/advanced-capabilities/form/validation.d.ts +2 -2
- package/dist/features/advanced-capabilities/index.d.ts +8 -8
- package/dist/features/advanced-capabilities/personality/actions/modify-character.d.ts +1 -1
- package/dist/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +1 -1
- package/dist/features/advanced-capabilities/personality/index.d.ts +5 -5
- package/dist/features/advanced-capabilities/personality/providers/user-personality.d.ts +1 -1
- package/dist/features/advanced-capabilities/personality/services/character-file-manager.d.ts +2 -2
- package/dist/features/advanced-capabilities/providers/contacts.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/facts.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/followUps.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/index.d.ts +7 -7
- package/dist/features/advanced-capabilities/providers/knowledge.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/relationships.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/roles.d.ts +1 -1
- package/dist/features/advanced-capabilities/providers/settings.d.ts +1 -1
- package/dist/features/advanced-memory/evaluators/index.d.ts +2 -2
- package/dist/features/advanced-memory/evaluators/long-term-extraction.d.ts +1 -1
- package/dist/features/advanced-memory/evaluators/summarization.d.ts +1 -1
- package/dist/features/advanced-memory/index.d.ts +6 -6
- package/dist/features/advanced-memory/prompts.d.ts +1 -1
- package/dist/features/advanced-memory/providers/context-summary.d.ts +1 -1
- package/dist/features/advanced-memory/providers/index.d.ts +2 -2
- package/dist/features/advanced-memory/providers/long-term-memory.d.ts +1 -1
- package/dist/features/advanced-memory/schemas/index.d.ts +4 -4
- package/dist/features/advanced-memory/schemas/long-term-memories.d.ts +1 -1
- package/dist/features/advanced-memory/schemas/memory-access-logs.d.ts +1 -1
- package/dist/features/advanced-memory/schemas/session-summaries.d.ts +1 -1
- package/dist/features/advanced-memory/services/memory-service.d.ts +2 -2
- package/dist/features/advanced-memory/trajectory.d.ts +1 -1
- package/dist/features/advanced-memory/types.d.ts +1 -1
- package/dist/features/advanced-planning/actions/chain-example.d.ts +1 -1
- package/dist/features/advanced-planning/index.d.ts +3 -3
- package/dist/features/advanced-planning/providers/message-classifier.d.ts +1 -1
- package/dist/features/advanced-planning/services/planning-service.d.ts +2 -2
- package/dist/features/advanced-planning/types.d.ts +1 -1
- package/dist/features/autonomy/action.d.ts +1 -1
- package/dist/features/autonomy/execution-facade.d.ts +1 -1
- package/dist/features/autonomy/index.d.ts +5 -5
- package/dist/features/autonomy/providers.d.ts +1 -1
- package/dist/features/autonomy/routes.d.ts +1 -1
- package/dist/features/autonomy/service.d.ts +3 -3
- package/dist/features/autonomy/types.d.ts +1 -1
- package/dist/features/basic-capabilities/actions/choice.d.ts +1 -1
- package/dist/features/basic-capabilities/actions/ignore.d.ts +1 -1
- package/dist/features/basic-capabilities/actions/index.d.ts +4 -4
- package/dist/features/basic-capabilities/actions/none.d.ts +1 -1
- package/dist/features/basic-capabilities/actions/reply.d.ts +1 -1
- package/dist/features/basic-capabilities/index.d.ts +11 -11
- package/dist/features/basic-capabilities/providers/actionState.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/actions.d.ts +6 -6
- package/dist/features/basic-capabilities/providers/attachments.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/character.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/choice.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/contextBench.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/currentTime.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/entities.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/evaluators.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/index.d.ts +13 -13
- package/dist/features/basic-capabilities/providers/non-actionable-chatter.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/providers.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/recentMessages.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/time.d.ts +1 -1
- package/dist/features/basic-capabilities/providers/world.d.ts +1 -1
- package/dist/features/index.d.ts +7 -7
- package/dist/features/knowledge/actions.d.ts +1 -1
- package/dist/features/knowledge/config.d.ts +2 -2
- package/dist/features/knowledge/docs-loader.d.ts +2 -2
- package/dist/features/knowledge/document-processor.d.ts +1 -1
- package/dist/features/knowledge/documents-provider.d.ts +1 -1
- package/dist/features/knowledge/index.d.ts +6 -6
- package/dist/features/knowledge/llm.d.ts +2 -2
- package/dist/features/knowledge/provider.d.ts +1 -1
- package/dist/features/knowledge/service.d.ts +3 -3
- package/dist/features/knowledge/types.d.ts +1 -1
- package/dist/features/plugin-manager/actions/coreStatusAction.d.ts +1 -1
- package/dist/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +1 -1
- package/dist/features/plugin-manager/actions/searchPluginAction.d.ts +1 -1
- package/dist/features/plugin-manager/coreExtensions.d.ts +1 -1
- package/dist/features/plugin-manager/index.d.ts +21 -21
- package/dist/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +1 -1
- package/dist/features/plugin-manager/providers/pluginStateProvider.d.ts +1 -1
- package/dist/features/plugin-manager/providers/registryPluginsProvider.d.ts +1 -1
- package/dist/features/plugin-manager/providers/relevance.d.ts +2 -2
- package/dist/features/plugin-manager/services/coreManagerService.d.ts +3 -3
- package/dist/features/plugin-manager/services/pluginConfigurationService.d.ts +3 -3
- package/dist/features/plugin-manager/services/pluginManagerService.d.ts +6 -6
- package/dist/features/plugin-manager/services/pluginRegistryService.d.ts +1 -1
- package/dist/features/plugin-manager/types.d.ts +3 -3
- package/dist/features/secrets/actions/index.d.ts +3 -3
- package/dist/features/secrets/actions/manage-secret.d.ts +1 -1
- package/dist/features/secrets/actions/request-secret.d.ts +1 -1
- package/dist/features/secrets/actions/set-secret.d.ts +1 -1
- package/dist/features/secrets/crypto/encryption.d.ts +1 -1
- package/dist/features/secrets/crypto/index.d.ts +1 -1
- package/dist/features/secrets/onboarding/action.d.ts +1 -1
- package/dist/features/secrets/onboarding/config.d.ts +1 -1
- package/dist/features/secrets/onboarding/index.d.ts +4 -4
- package/dist/features/secrets/onboarding/provider.d.ts +1 -1
- package/dist/features/secrets/onboarding/service.d.ts +4 -4
- package/dist/features/secrets/providers/index.d.ts +1 -1
- package/dist/features/secrets/providers/secrets-status.d.ts +1 -1
- package/dist/features/secrets/services/plugin-activator.d.ts +2 -2
- package/dist/features/secrets/services/secrets.d.ts +4 -4
- package/dist/features/secrets/storage/character-store.d.ts +4 -4
- package/dist/features/secrets/storage/component-store.d.ts +4 -4
- package/dist/features/secrets/storage/index.d.ts +6 -6
- package/dist/features/secrets/storage/interface.d.ts +1 -1
- package/dist/features/secrets/storage/memory-store.d.ts +2 -2
- package/dist/features/secrets/storage/world-store.d.ts +4 -4
- package/dist/features/secrets/validation.d.ts +1 -1
- package/dist/features/trajectories/TrajectoriesService.d.ts +3 -3
- package/dist/features/trajectories/action-interceptor.d.ts +3 -3
- package/dist/features/trajectories/art-format.d.ts +1 -1
- package/dist/features/trajectories/export.d.ts +1 -1
- package/dist/features/trajectories/game-rewards.d.ts +1 -1
- package/dist/features/trajectories/index.d.ts +10 -10
- package/dist/features/trajectories/integration.d.ts +2 -2
- package/dist/features/trajectories/reward-service.d.ts +1 -1
- package/dist/features/trajectories/types.d.ts +1 -1
- package/dist/features/trust/actions/evaluateTrust.d.ts +1 -1
- package/dist/features/trust/actions/hasTrustEngine.d.ts +1 -1
- package/dist/features/trust/actions/index.d.ts +5 -5
- package/dist/features/trust/actions/recordTrustInteraction.d.ts +1 -1
- package/dist/features/trust/actions/requestElevation.d.ts +1 -1
- package/dist/features/trust/actions/roles.d.ts +1 -1
- package/dist/features/trust/actions/settings.d.ts +1 -1
- package/dist/features/trust/evaluators/index.d.ts +3 -3
- package/dist/features/trust/evaluators/reflection.d.ts +1 -1
- package/dist/features/trust/evaluators/securityEvaluator.d.ts +1 -1
- package/dist/features/trust/evaluators/trustChangeEvaluator.d.ts +1 -1
- package/dist/features/trust/index.d.ts +13 -13
- package/dist/features/trust/providers/adminTrust.d.ts +1 -1
- package/dist/features/trust/providers/index.d.ts +5 -5
- package/dist/features/trust/providers/roles.d.ts +1 -1
- package/dist/features/trust/providers/securityStatus.d.ts +1 -1
- package/dist/features/trust/providers/settings.d.ts +1 -1
- package/dist/features/trust/providers/trustProfile.d.ts +1 -1
- package/dist/features/trust/services/ContextualPermissionSystem.d.ts +4 -4
- package/dist/features/trust/services/CredentialProtector.d.ts +3 -3
- package/dist/features/trust/services/SecurityModule.d.ts +3 -3
- package/dist/features/trust/services/SecurityStore.d.ts +2 -2
- package/dist/features/trust/services/TrustEngine.d.ts +2 -2
- package/dist/features/trust/services/adminContext.d.ts +1 -1
- package/dist/features/trust/services/db.d.ts +1 -1
- package/dist/features/trust/services/wrappers.d.ts +8 -8
- package/dist/features/trust/types/permissions.d.ts +2 -2
- package/dist/features/trust/types/security.d.ts +2 -2
- package/dist/features/trust/types/trust.d.ts +1 -1
- package/dist/generated/spec-helpers.d.ts +1 -1
- package/dist/i18n/validation-keywords.d.ts +2 -2
- package/dist/index.browser.d.ts +32 -32
- package/dist/index.node.d.ts +70 -70
- package/dist/memory.d.ts +1 -1
- package/dist/plugin-lifecycle.d.ts +2 -2
- package/dist/plugin.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/native-features.d.ts +5 -5
- package/dist/providers/onboarding-progress.d.ts +1 -1
- package/dist/provisioning.d.ts +3 -3
- package/dist/roles.d.ts +1 -1
- package/dist/runtime-composition.d.ts +3 -3
- package/dist/runtime.d.ts +13 -13
- package/dist/schemas/agent.d.ts +1 -1
- package/dist/schemas/cache.d.ts +1 -1
- package/dist/schemas/channel-participant.d.ts +1 -1
- package/dist/schemas/channel.d.ts +1 -1
- package/dist/schemas/character.d.ts +1 -1
- package/dist/schemas/component.d.ts +1 -1
- package/dist/schemas/embedding.d.ts +1 -1
- package/dist/schemas/entity-identity.d.ts +1 -1
- package/dist/schemas/entity.d.ts +1 -1
- package/dist/schemas/index.d.ts +24 -24
- package/dist/schemas/log.d.ts +1 -1
- package/dist/schemas/memory.d.ts +1 -1
- package/dist/schemas/message-server-agent.d.ts +1 -1
- package/dist/schemas/message-server.d.ts +1 -1
- package/dist/schemas/message.d.ts +1 -1
- package/dist/schemas/pairing-allowlist.d.ts +1 -1
- package/dist/schemas/pairing-request.d.ts +1 -1
- package/dist/schemas/participant.d.ts +1 -1
- package/dist/schemas/relationship.d.ts +1 -1
- package/dist/schemas/room.d.ts +1 -1
- package/dist/schemas/server.d.ts +1 -1
- package/dist/schemas/task.d.ts +1 -1
- package/dist/schemas/world.d.ts +1 -1
- package/dist/secrets.d.ts +1 -1
- package/dist/services/agentEvent.d.ts +4 -4
- package/dist/services/approval.d.ts +2 -2
- package/dist/services/embedding.d.ts +2 -2
- package/dist/services/followUp.d.ts +5 -5
- package/dist/services/hook.d.ts +4 -4
- package/dist/services/message.d.ts +6 -6
- package/dist/services/onboarding-cli.d.ts +2 -2
- package/dist/services/onboarding-rpc.d.ts +2 -2
- package/dist/services/onboarding-state.d.ts +2 -2
- package/dist/services/pairing-integration.d.ts +3 -3
- package/dist/services/pairing-migration.d.ts +2 -2
- package/dist/services/pairing.d.ts +3 -3
- package/dist/services/plugin-hooks.d.ts +2 -2
- package/dist/services/relationships.d.ts +4 -4
- package/dist/services/task-scheduler.d.ts +4 -4
- package/dist/services/task.d.ts +4 -4
- package/dist/services/tool-policy.d.ts +3 -3
- package/dist/services/trajectories.d.ts +1 -1
- package/dist/services.d.ts +2 -2
- package/dist/settings.d.ts +1 -1
- package/dist/streaming-context.d.ts +1 -1
- package/dist/trajectory-utils.d.ts +1 -1
- package/dist/types/agent.d.ts +3 -3
- package/dist/types/agentEvent.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/dist/types/database.d.ts +8 -8
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/events.d.ts +8 -8
- package/dist/types/hook.d.ts +2 -2
- package/dist/types/index.d.ts +39 -39
- package/dist/types/knowledge.d.ts +1 -1
- package/dist/types/memory-storage.d.ts +2 -2
- package/dist/types/memory.d.ts +1 -1
- package/dist/types/message-service.d.ts +7 -7
- package/dist/types/messaging.d.ts +4 -4
- package/dist/types/model.d.ts +2 -2
- package/dist/types/onboarding.d.ts +1 -1
- package/dist/types/pairing.d.ts +1 -1
- package/dist/types/pipeline-hooks.d.ts +5 -5
- package/dist/types/plugin-manifest.d.ts +1 -1
- package/dist/types/plugin-store.d.ts +1 -1
- package/dist/types/plugin.d.ts +9 -9
- package/dist/types/prompt-batcher.d.ts +5 -5
- package/dist/types/prompt-optimization-hooks.d.ts +3 -3
- package/dist/types/prompt-optimization-score-card.d.ts +1 -1
- package/dist/types/prompt-optimization-trace.d.ts +1 -1
- package/dist/types/runtime.d.ts +31 -31
- package/dist/types/schema-builder.d.ts +1 -1
- package/dist/types/service-interfaces.d.ts +2 -2
- package/dist/types/service.d.ts +2 -2
- package/dist/types/state.d.ts +2 -2
- package/dist/types/task.d.ts +5 -5
- package/dist/types/testing.d.ts +1 -1
- package/dist/types/tools.d.ts +2 -2
- package/dist/types/trigger.d.ts +1 -1
- package/dist/utils/batch-queue/semaphore.d.ts +1 -1
- package/dist/utils/context-catalog.d.ts +1 -1
- package/dist/utils/context-routing.d.ts +3 -3
- package/dist/utils/node.d.ts +2 -2
- package/dist/utils/prompt-batcher/batcher.d.ts +6 -6
- package/dist/utils/prompt-batcher/dispatcher.d.ts +3 -3
- package/dist/utils/prompt-batcher/shared.d.ts +5 -5
- package/dist/utils/prompt-batcher.d.ts +1 -1
- package/dist/utils/streaming.d.ts +5 -5
- package/dist/utils/toon.d.ts +1 -1
- package/dist/utils.d.ts +6 -6
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/keywords.d.ts +1 -1
- package/package.json +3 -3
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Character } from "./agent";
|
|
2
|
-
import type { Action, AgentContext, Evaluator, Provider } from "./components";
|
|
3
|
-
import type { IDatabaseAdapter } from "./database";
|
|
4
|
-
import type { EventHandler, EventPayload, EventPayloadMap } from "./events";
|
|
5
|
-
import type { ModelParamsMap, PluginModelResult } from "./model";
|
|
6
|
-
import type { UUID } from "./primitives";
|
|
1
|
+
import type { Character } from "./agent.js";
|
|
2
|
+
import type { Action, AgentContext, Evaluator, Provider } from "./components.js";
|
|
3
|
+
import type { IDatabaseAdapter } from "./database.js";
|
|
4
|
+
import type { EventHandler, EventPayload, EventPayloadMap } from "./events.js";
|
|
5
|
+
import type { ModelParamsMap, PluginModelResult } from "./model.js";
|
|
6
|
+
import type { UUID } from "./primitives.js";
|
|
7
7
|
import type { JsonValue, ComponentTypeDefinition as ProtoComponentTypeDefinition, JSONSchemaDefinition as ProtoJSONSchemaDefinition, RouteManifest as ProtoRouteManifest } from "./proto.js";
|
|
8
|
-
import type { IAgentRuntime } from "./runtime";
|
|
9
|
-
import type { Service } from "./service";
|
|
10
|
-
import type { TestSuite } from "./testing";
|
|
8
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
9
|
+
import type { Service } from "./service.js";
|
|
10
|
+
import type { TestSuite } from "./testing.js";
|
|
11
11
|
/**
|
|
12
12
|
* Type for a service class constructor.
|
|
13
13
|
* This is more flexible than `typeof Service` to allow for:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Memory } from "./memory";
|
|
2
|
-
import type { GenerateTextParams } from "./model";
|
|
3
|
-
import type { Content } from "./primitives";
|
|
4
|
-
import type { IAgentRuntime } from "./runtime";
|
|
5
|
-
import type { SchemaRow } from "./state";
|
|
1
|
+
import type { Memory } from "./memory.js";
|
|
2
|
+
import type { GenerateTextParams } from "./model.js";
|
|
3
|
+
import type { Content } from "./primitives.js";
|
|
4
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
5
|
+
import type { SchemaRow } from "./state.js";
|
|
6
6
|
export type SectionFrequency = "once" | "per-drain" | "recurring";
|
|
7
7
|
export interface DrainMeta {
|
|
8
8
|
drainId: string;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* choose whether optimization runs at all (`getPromptOptimizationHooks()`), keeping core
|
|
8
8
|
* free of filesystem assumptions. @see `docs/PIPELINE_HOOKS.md`.
|
|
9
9
|
*/
|
|
10
|
-
import type { ExecutionTrace } from "./prompt-optimization-trace";
|
|
11
|
-
import type { IAgentRuntime } from "./runtime";
|
|
12
|
-
import type { SchemaRow } from "./state";
|
|
10
|
+
import type { ExecutionTrace } from "./prompt-optimization-trace.js";
|
|
11
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
12
|
+
import type { SchemaRow } from "./state.js";
|
|
13
13
|
export interface MergePromptTemplateContext {
|
|
14
14
|
baselineTemplate: string;
|
|
15
15
|
modelId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ScoreCardData, type ScoreSignal } from "./prompt-optimization-trace";
|
|
1
|
+
import { type ScoreCardData, type ScoreSignal } from "./prompt-optimization-trace.js";
|
|
2
2
|
/**
|
|
3
3
|
* In-memory aggregation of `ScoreSignal`s into a weighted `composite` for one trace row.
|
|
4
4
|
*
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { Logger } from "../logger";
|
|
2
|
-
import type { PromptBatcher } from "../utils/prompt-batcher";
|
|
3
|
-
import type { Agent, Character } from "./agent";
|
|
4
|
-
import type { Action, ActionResult, Evaluator, HandlerCallback, Provider, StreamChunkCallback } from "./components";
|
|
5
|
-
import type { IDatabaseAdapter, LogBody, PatchOp } from "./database";
|
|
6
|
-
import type { Component, Entity, Metadata, Relationship, Room, World } from "./environment";
|
|
7
|
-
import type { EventHandler, EventPayload, EventPayloadMap } from "./events";
|
|
8
|
-
import type { Memory, MemoryMetadata } from "./memory";
|
|
9
|
-
import type { IMessageService } from "./message-service";
|
|
10
|
-
import type { IMessagingAdapter, SendHandlerFunction, TargetInfo } from "./messaging";
|
|
11
|
-
import type { GenerateTextOptions, GenerateTextParams, GenerateTextResult, ModelParamsMap, ModelResultMap, ModelTypeName, TextGenerationModelType } from "./model";
|
|
12
|
-
import type { PairingAllowlistEntry, PairingRequest } from "./pairing";
|
|
13
|
-
import type { Plugin, PluginOwnership, Route, RuntimeEventStorage, ServiceClass } from "./plugin";
|
|
14
|
-
import type { ChannelType, Content, UUID } from "./primitives";
|
|
1
|
+
import type { Logger } from "../logger.js";
|
|
2
|
+
import type { PromptBatcher } from "../utils/prompt-batcher.js";
|
|
3
|
+
import type { Agent, Character } from "./agent.js";
|
|
4
|
+
import type { Action, ActionResult, Evaluator, HandlerCallback, Provider, StreamChunkCallback } from "./components.js";
|
|
5
|
+
import type { IDatabaseAdapter, LogBody, PatchOp } from "./database.js";
|
|
6
|
+
import type { Component, Entity, Metadata, Relationship, Room, World } from "./environment.js";
|
|
7
|
+
import type { EventHandler, EventPayload, EventPayloadMap } from "./events.js";
|
|
8
|
+
import type { Memory, MemoryMetadata } from "./memory.js";
|
|
9
|
+
import type { IMessageService } from "./message-service.js";
|
|
10
|
+
import type { IMessagingAdapter, SendHandlerFunction, TargetInfo } from "./messaging.js";
|
|
11
|
+
import type { GenerateTextOptions, GenerateTextParams, GenerateTextResult, ModelParamsMap, ModelResultMap, ModelTypeName, TextGenerationModelType } from "./model.js";
|
|
12
|
+
import type { PairingAllowlistEntry, PairingRequest } from "./pairing.js";
|
|
13
|
+
import type { Plugin, PluginOwnership, Route, RuntimeEventStorage, ServiceClass } from "./plugin.js";
|
|
14
|
+
import type { ChannelType, Content, UUID } from "./primitives.js";
|
|
15
15
|
import type { JsonValue } from "./proto.js";
|
|
16
|
-
import type { Service, ServiceTypeName } from "./service";
|
|
17
|
-
import type { State } from "./state";
|
|
18
|
-
import type { Task, TaskWorker } from "./task";
|
|
19
|
-
import type { ToolPolicyConfig, ToolProfileId } from "./tools";
|
|
16
|
+
import type { Service, ServiceTypeName } from "./service.js";
|
|
17
|
+
import type { State } from "./state.js";
|
|
18
|
+
import type { Task, TaskWorker } from "./task.js";
|
|
19
|
+
import type { ToolPolicyConfig, ToolProfileId } from "./tools.js";
|
|
20
20
|
/**
|
|
21
21
|
* Represents the core runtime environment for an agent.
|
|
22
22
|
* Defines methods for database interaction, plugin management, event handling,
|
|
@@ -106,7 +106,7 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
106
106
|
*
|
|
107
107
|
* Priority: constructor option > character setting LLM_MODE > default (DEFAULT)
|
|
108
108
|
*/
|
|
109
|
-
getLLMMode(): import("./model").LLMModeType;
|
|
109
|
+
getLLMMode(): import("./model.js").LLMModeType;
|
|
110
110
|
/**
|
|
111
111
|
* Check if the shouldRespond evaluation is enabled.
|
|
112
112
|
*
|
|
@@ -270,7 +270,7 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
270
270
|
state: State;
|
|
271
271
|
}) => string);
|
|
272
272
|
};
|
|
273
|
-
schema: import("./state").SchemaRow[];
|
|
273
|
+
schema: import("./state.js").SchemaRow[];
|
|
274
274
|
options?: {
|
|
275
275
|
key?: string;
|
|
276
276
|
/**
|
|
@@ -291,11 +291,11 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
291
291
|
contextCheckLevel?: 0 | 1 | 2 | 3;
|
|
292
292
|
checkpointCodes?: boolean;
|
|
293
293
|
maxRetries?: number;
|
|
294
|
-
retryBackoff?: number | import("./state").RetryBackoffConfig;
|
|
294
|
+
retryBackoff?: number | import("./state.js").RetryBackoffConfig;
|
|
295
295
|
disableCache?: boolean;
|
|
296
296
|
cacheTTL?: number;
|
|
297
297
|
onStreamChunk?: StreamChunkCallback;
|
|
298
|
-
onStreamEvent?: (event: import("./state").StreamEvent, messageId?: string) => void | Promise<void>;
|
|
298
|
+
onStreamEvent?: (event: import("./state.js").StreamEvent, messageId?: string) => void | Promise<void>;
|
|
299
299
|
abortSignal?: AbortSignal;
|
|
300
300
|
};
|
|
301
301
|
}): Promise<Record<string, unknown> | null>;
|
|
@@ -305,11 +305,11 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
305
305
|
* Traces are keyed by runId and held in memory until finalization (e.g. RUN_ENDED
|
|
306
306
|
* in prompt-optimization plugins). Evaluators and actions can attach signals after DPE.
|
|
307
307
|
*/
|
|
308
|
-
enrichTrace(runId: string, signal: import("./prompt-optimization-trace").ScoreSignal): void;
|
|
308
|
+
enrichTrace(runId: string, signal: import("./prompt-optimization-trace.js").ScoreSignal): void;
|
|
309
309
|
/** Retrieve the most recent in-flight optimization trace for a runId. */
|
|
310
|
-
getActiveTrace(runId: string): import("./prompt-optimization-trace").ExecutionTrace | undefined;
|
|
310
|
+
getActiveTrace(runId: string): import("./prompt-optimization-trace.js").ExecutionTrace | undefined;
|
|
311
311
|
/** Retrieve all in-flight optimization traces for a runId (multiple DPE calls per run). */
|
|
312
|
-
getActiveTracesForRun?(runId: string): import("./prompt-optimization-trace").ExecutionTrace[];
|
|
312
|
+
getActiveTracesForRun?(runId: string): import("./prompt-optimization-trace.js").ExecutionTrace[];
|
|
313
313
|
/** Remove all in-flight optimization traces for a runId after finalization. */
|
|
314
314
|
deleteActiveTrace(runId: string): void;
|
|
315
315
|
/** Remove a single in-flight trace by its unique trace id. */
|
|
@@ -318,8 +318,8 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
318
318
|
* Register disk-backed or custom prompt optimization hooks (merge, registry, traces).
|
|
319
319
|
* When `null`, DPE performs no optimization I/O.
|
|
320
320
|
*/
|
|
321
|
-
registerPromptOptimizationHooks(hooks: import("./prompt-optimization-hooks").PromptOptimizationRuntimeHooks | null): void;
|
|
322
|
-
getPromptOptimizationHooks(): import("./prompt-optimization-hooks").PromptOptimizationRuntimeHooks | null;
|
|
321
|
+
registerPromptOptimizationHooks(hooks: import("./prompt-optimization-hooks.js").PromptOptimizationRuntimeHooks | null): void;
|
|
322
|
+
getPromptOptimizationHooks(): import("./prompt-optimization-hooks.js").PromptOptimizationRuntimeHooks | null;
|
|
323
323
|
/** Resolved `OPTIMIZATION_DIR` (see `getOptimizationRootDir`). */
|
|
324
324
|
getOptimizationDir(): string;
|
|
325
325
|
stop(): Promise<void>;
|
|
@@ -344,9 +344,9 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
344
344
|
* Pipeline hooks: register with `registerPipelineHook`, run with `applyPipelineHooks`.
|
|
345
345
|
* Same `id` replaces any prior registration (any phase). Outgoing phase always finishes with `redactSecrets` on `content.text`.
|
|
346
346
|
*/
|
|
347
|
-
registerPipelineHook(spec: import("./pipeline-hooks").PipelineHookSpec): void;
|
|
347
|
+
registerPipelineHook(spec: import("./pipeline-hooks.js").PipelineHookSpec): void;
|
|
348
348
|
unregisterPipelineHook(id: string): void;
|
|
349
|
-
applyPipelineHooks(phase: import("./pipeline-hooks").PipelineHookPhase, ctx: import("./pipeline-hooks").PipelineHookContext, pipelineHookTelemetry?: boolean): Promise<void>;
|
|
349
|
+
applyPipelineHooks(phase: import("./pipeline-hooks.js").PipelineHookPhase, ctx: import("./pipeline-hooks.js").PipelineHookContext, pipelineHookTelemetry?: boolean): Promise<void>;
|
|
350
350
|
/**
|
|
351
351
|
* Redact secrets from a text string.
|
|
352
352
|
* @param text - The text to redact secrets from
|
|
@@ -354,7 +354,7 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
354
354
|
*/
|
|
355
355
|
redactSecrets(text: string): string;
|
|
356
356
|
getEntityById(entityId: UUID): Promise<Entity | null>;
|
|
357
|
-
getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<import("./environment").Entity[]>;
|
|
357
|
+
getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<import("./environment.js").Entity[]>;
|
|
358
358
|
getRoom(roomId: UUID): Promise<Room | null>;
|
|
359
359
|
createEntity(entity: Entity): Promise<boolean>;
|
|
360
360
|
createRoom({ id, name, source, type, channelId, messageServerId, worldId, }: Room): Promise<UUID>;
|
|
@@ -390,7 +390,7 @@ export interface IAgentRuntime extends IDatabaseAdapter<object> {
|
|
|
390
390
|
getComponents(entityId: UUID, worldId?: UUID, sourceEntityId?: UUID): Promise<Component[]>;
|
|
391
391
|
getComponent(entityId: UUID, type: string, worldId?: UUID, sourceEntityId?: UUID): Promise<Component | null>;
|
|
392
392
|
createComponent(component: Component): Promise<boolean>;
|
|
393
|
-
patchComponent(componentId: UUID, ops: import("./database").PatchOp[], options?: {
|
|
393
|
+
patchComponent(componentId: UUID, ops: import("./database.js").PatchOp[], options?: {
|
|
394
394
|
entityContext?: UUID;
|
|
395
395
|
}): Promise<void>;
|
|
396
396
|
updateComponent(component: Component): Promise<void>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This type remains in core so plugins can import it without circular dependencies.
|
|
5
5
|
* The actual implementations (pgAdapter, mysqlAdapter, buildTable) have moved to plugin-sql.
|
|
6
6
|
*/
|
|
7
|
-
import type { SchemaColumn, SchemaTable } from "./schema.
|
|
7
|
+
import type { SchemaColumn, SchemaTable } from "./schema.js";
|
|
8
8
|
/**
|
|
9
9
|
* Contract that a dialect-specific adapter must implement.
|
|
10
10
|
*
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This module provides standardized service interface definitions that plugins implement.
|
|
5
5
|
* Data types are proto-generated; runtime classes remain TypeScript.
|
|
6
6
|
*/
|
|
7
|
-
import type { Content, UUID } from "./primitives";
|
|
7
|
+
import type { Content, UUID } from "./primitives.js";
|
|
8
8
|
import type { JsonValue, LpPositionDetails, PoolInfo, TokenBalance, TokenData, TransactionResult, WalletAsset, WalletPortfolio } from "./proto.js";
|
|
9
|
-
import { Service } from "./service";
|
|
9
|
+
import { Service } from "./service.js";
|
|
10
10
|
export type { LpPositionDetails, PoolInfo, TokenBalance, TokenData, TransactionResult, WalletAsset, WalletPortfolio, };
|
|
11
11
|
export interface IMessageBusService extends Service {
|
|
12
12
|
notifyActionStart(roomId: UUID, worldId: UUID, content: Content, messageId?: UUID): Promise<void>;
|
package/dist/types/service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Metadata } from "./primitives";
|
|
1
|
+
import type { Metadata } from "./primitives.js";
|
|
2
2
|
import type { JsonValue } from "./proto.js";
|
|
3
|
-
import type { IAgentRuntime } from "./runtime";
|
|
3
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
4
4
|
/**
|
|
5
5
|
* Core service type registry that can be extended by plugins via module augmentation.
|
|
6
6
|
* Plugins can extend this interface to add their own service types:
|
package/dist/types/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActionResult, ProviderValue } from "./components";
|
|
2
|
-
import type { Entity, Room, World } from "./environment";
|
|
1
|
+
import type { ActionResult, ProviderValue } from "./components.js";
|
|
2
|
+
import type { Entity, Room, World } from "./environment.js";
|
|
3
3
|
import type { ActionPlan as ProtoActionPlan, ActionPlanStep as ProtoActionPlanStep, ProviderCacheEntry as ProtoProviderCacheEntry, State as ProtoState, StateData as ProtoStateData, StateValues as ProtoStateValues, WorkingMemoryItem as ProtoWorkingMemoryItem } from "./proto.js";
|
|
4
4
|
/**
|
|
5
5
|
* Allowed value types for state values (JSON-serializable)
|
package/dist/types/task.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Memory } from "./memory";
|
|
2
|
-
import type { UUID } from "./primitives";
|
|
1
|
+
import type { Memory } from "./memory.js";
|
|
2
|
+
import type { UUID } from "./primitives.js";
|
|
3
3
|
import type { JsonValue, Task as ProtoTask, TaskMetadata as ProtoTaskMetadata, TaskStatus as ProtoTaskStatus } from "./proto.js";
|
|
4
|
-
import type { IAgentRuntime } from "./runtime";
|
|
5
|
-
import type { State } from "./state";
|
|
6
|
-
import type { TriggerConfig, TriggerRunRecord } from "./trigger";
|
|
4
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
5
|
+
import type { State } from "./state.js";
|
|
6
|
+
import type { TriggerConfig, TriggerRunRecord } from "./trigger.js";
|
|
7
7
|
/**
|
|
8
8
|
* Defines the contract for a Task Worker, which is responsible for executing a specific type of task.
|
|
9
9
|
* Task workers are registered with the `AgentRuntime` and are invoked when a `Task` of their designated `name` needs processing.
|
package/dist/types/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TestCase as ProtoTestCase, TestSuite as ProtoTestSuite } from "./proto.js";
|
|
2
|
-
import type { IAgentRuntime } from "./runtime";
|
|
2
|
+
import type { IAgentRuntime } from "./runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a test case for evaluating agent or plugin functionality.
|
|
5
5
|
*/
|
package/dist/types/tools.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module tools
|
|
7
7
|
*/
|
|
8
|
-
export type { ToolPolicyConfig, ToolProfileId } from "./channel-config";
|
|
9
|
-
import type { ToolPolicyConfig, ToolProfileId } from "./channel-config";
|
|
8
|
+
export type { ToolPolicyConfig, ToolProfileId } from "./channel-config.js";
|
|
9
|
+
import type { ToolPolicyConfig, ToolProfileId } from "./channel-config.js";
|
|
10
10
|
/**
|
|
11
11
|
* Canonical tool name aliases for backward compatibility.
|
|
12
12
|
* Maps legacy names to canonical names.
|
package/dist/types/trigger.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* callers must do the same.
|
|
7
7
|
*
|
|
8
8
|
* **Why shared with PromptDispatcher:** One implementation avoids drift; `prompt-batcher/shared`
|
|
9
|
-
* re-exports this module so existing `import { Semaphore } from "./shared"` keeps working.
|
|
9
|
+
* re-exports this module so existing `import { Semaphore } from "./shared.js"` keeps working.
|
|
10
10
|
*/
|
|
11
11
|
export declare class Semaphore {
|
|
12
12
|
private permits;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Action, AgentContext, Provider } from "../types/components";
|
|
1
|
+
import type { Action, AgentContext, Provider } from "../types/components.js";
|
|
2
2
|
export declare const ACTION_CONTEXT_MAP: Record<string, AgentContext[]>;
|
|
3
3
|
export declare const PROVIDER_CONTEXT_MAP: Record<string, AgentContext[]>;
|
|
4
4
|
export declare function resolveActionContexts(action: Action): AgentContext[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Action, AgentContext, Provider } from "../types/components";
|
|
2
|
-
import type { Memory } from "../types/memory";
|
|
3
|
-
import type { State } from "../types/state";
|
|
1
|
+
import type { Action, AgentContext, Provider } from "../types/components.js";
|
|
2
|
+
import type { Memory } from "../types/memory.js";
|
|
3
|
+
import type { State } from "../types/state.js";
|
|
4
4
|
export declare const AVAILABLE_CONTEXTS_STATE_KEY = "availableContexts";
|
|
5
5
|
export declare const CONTEXT_ROUTING_METADATA_KEY = "__responseContext";
|
|
6
6
|
export declare const CONTEXT_ROUTING_STATE_KEY = "__contextRouting";
|
package/dist/utils/node.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Import directly from ./paths and ./server-health
|
|
4
4
|
*/
|
|
5
5
|
export declare function getLocalServerUrl(path: string): string;
|
|
6
|
-
export * from "./paths";
|
|
7
|
-
export * from "./server-health";
|
|
6
|
+
export * from "./paths.js";
|
|
7
|
+
export * from "./server-health.js";
|
|
8
8
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Memory } from "../../types/memory";
|
|
2
|
-
import { type BatcherResult, type BatcherStats, type ContextResolver, type DrainMeta, type PreCallbackHandler, type PromptSection } from "../../types/prompt-batcher";
|
|
3
|
-
import type { IAgentRuntime } from "../../types/runtime";
|
|
4
|
-
import type { SchemaRow } from "../../types/state";
|
|
5
|
-
import type { PromptDispatcher } from "./dispatcher";
|
|
6
|
-
import { type PromptBatcherSettings } from "./shared";
|
|
1
|
+
import type { Memory } from "../../types/memory.js";
|
|
2
|
+
import { type BatcherResult, type BatcherStats, type ContextResolver, type DrainMeta, type PreCallbackHandler, type PromptSection } from "../../types/prompt-batcher.js";
|
|
3
|
+
import type { IAgentRuntime } from "../../types/runtime.js";
|
|
4
|
+
import type { SchemaRow } from "../../types/state.js";
|
|
5
|
+
import type { PromptDispatcher } from "./dispatcher.js";
|
|
6
|
+
import { type PromptBatcherSettings } from "./shared.js";
|
|
7
7
|
export declare class PromptBatcher {
|
|
8
8
|
private readonly runtime;
|
|
9
9
|
private readonly dispatcher;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ResolvedSection } from "../../types/prompt-batcher";
|
|
2
|
-
import type { IAgentRuntime } from "../../types/runtime";
|
|
3
|
-
import { type DispatchOutcome, type PromptDispatcherSettings } from "./shared";
|
|
1
|
+
import type { ResolvedSection } from "../../types/prompt-batcher.js";
|
|
2
|
+
import type { IAgentRuntime } from "../../types/runtime.js";
|
|
3
|
+
import { type DispatchOutcome, type PromptDispatcherSettings } from "./shared.js";
|
|
4
4
|
export declare class PromptDispatcher {
|
|
5
5
|
private readonly settings;
|
|
6
6
|
constructor(settings: PromptDispatcherSettings);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Memory } from "../../types/memory";
|
|
2
|
-
import type { BatcherResult, PromptSection, ResolvedSection } from "../../types/prompt-batcher";
|
|
3
|
-
import type { IAgentRuntime } from "../../types/runtime";
|
|
4
|
-
import type { SchemaRow, State } from "../../types/state";
|
|
1
|
+
import type { Memory } from "../../types/memory.js";
|
|
2
|
+
import type { BatcherResult, PromptSection, ResolvedSection } from "../../types/prompt-batcher.js";
|
|
3
|
+
import type { IAgentRuntime } from "../../types/runtime.js";
|
|
4
|
+
import type { SchemaRow, State } from "../../types/state.js";
|
|
5
5
|
export type Deferred<T> = {
|
|
6
6
|
resolve: (value: T) => void;
|
|
7
7
|
reject: (reason?: unknown) => void;
|
|
@@ -51,7 +51,7 @@ export type PromptBatcherSettings = {
|
|
|
51
51
|
modelSeparation: number;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
|
-
* Re-export so dispatcher keeps `import { Semaphore } from "./shared"`.
|
|
54
|
+
* Re-export so dispatcher keeps `import { Semaphore } from "./shared.js"`.
|
|
55
55
|
* Single `Semaphore` implementation under `utils/batch-queue` (see `batch-queue.ts` header).
|
|
56
56
|
*/
|
|
57
57
|
export { Semaphore } from "../batch-queue/semaphore.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BatcherDisposedError, type BatcherStats, type ContextResolver, type DrainLog, type DrainMeta, type PreCallbackHandler, type PromptSection, type ResolvedSection, type SectionFrequency, } from "../types/prompt-batcher";
|
|
1
|
+
export { BatcherDisposedError, type BatcherStats, type ContextResolver, type DrainLog, type DrainMeta, type PreCallbackHandler, type PromptSection, type ResolvedSection, type SectionFrequency, } from "../types/prompt-batcher.js";
|
|
2
2
|
export { PromptBatcher } from "./prompt-batcher/batcher.js";
|
|
3
3
|
export { PromptDispatcher } from "./prompt-batcher/dispatcher.js";
|
|
4
4
|
export { pickFields } from "./prompt-batcher/shared.js";
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* For the interface definition, see types/streaming.ts.
|
|
11
11
|
* Implementations can use these or create their own extractors.
|
|
12
12
|
*/
|
|
13
|
-
import type { StreamChunkCallback } from "../types/components";
|
|
14
|
-
import type { IStreamExtractor } from "../types/streaming";
|
|
13
|
+
import type { StreamChunkCallback } from "../types/components.js";
|
|
14
|
+
import type { IStreamExtractor } from "../types/streaming.js";
|
|
15
15
|
/** Error codes for streaming operations */
|
|
16
16
|
export type StreamErrorCode = "CHUNK_TOO_LARGE" | "BUFFER_OVERFLOW" | "PARSE_ERROR" | "TIMEOUT" | "ABORTED";
|
|
17
17
|
/**
|
|
@@ -153,8 +153,8 @@ export declare class MarkableExtractor implements IStreamExtractor {
|
|
|
153
153
|
*/
|
|
154
154
|
markComplete(): void;
|
|
155
155
|
}
|
|
156
|
-
import type { SchemaRow, StreamEvent } from "../types/state";
|
|
157
|
-
import type { IStreamingRetryState } from "../types/streaming";
|
|
156
|
+
import type { SchemaRow, StreamEvent } from "../types/state.js";
|
|
157
|
+
import type { IStreamingRetryState } from "../types/streaming.js";
|
|
158
158
|
/**
|
|
159
159
|
* Extractor state machine for validation-aware streaming.
|
|
160
160
|
*/
|
|
@@ -261,7 +261,7 @@ export declare class ValidationStreamExtractor implements IStreamExtractor {
|
|
|
261
261
|
private emitFieldContent;
|
|
262
262
|
private emitEvent;
|
|
263
263
|
}
|
|
264
|
-
import type { StreamingContext } from "../streaming-context";
|
|
264
|
+
import type { StreamingContext } from "../streaming-context.js";
|
|
265
265
|
/**
|
|
266
266
|
* Creates a streaming retry state from an extractor.
|
|
267
267
|
*/
|
package/dist/utils/toon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionParameters } from "../types";
|
|
1
|
+
import type { ActionParameters } from "../types/index.js";
|
|
2
2
|
export declare function tryParseToonValue(text: string): unknown | null;
|
|
3
3
|
export declare function tryParseLooseToonRecord(text: string): Record<string, unknown> | null;
|
|
4
4
|
export declare function encodeToonValue(value: unknown): string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Entity, IAgentRuntime, Memory, State, TemplateType } from "./types";
|
|
2
|
-
import { ContentType, type UUID } from "./types";
|
|
1
|
+
import type { Entity, IAgentRuntime, Memory, State, TemplateType } from "./types/index.js";
|
|
2
|
+
import { ContentType, type UUID } from "./types/index.js";
|
|
3
3
|
export declare const DEFAULT_MAX_CONVERSATION_TOKENS = 50000;
|
|
4
4
|
/** Max tokens for embedding input text (default fallback) */
|
|
5
5
|
export declare const DEFAULT_MAX_EMBEDDING_TOKENS = 8000;
|
|
@@ -185,8 +185,8 @@ export declare function stringToUuid(target: string | number): UUID;
|
|
|
185
185
|
*/
|
|
186
186
|
export declare function prewarmUuidCache(values: string[]): Promise<void>;
|
|
187
187
|
export declare const getContentTypeFromMimeType: (mimeType: string) => ContentType | undefined;
|
|
188
|
-
export { getLocalServerUrl } from "./utils/node";
|
|
189
|
-
export { extractFirstSentence, hasFirstSentence } from "./utils/text-splitting";
|
|
190
|
-
export { extractAndParseJSONObjectFromText } from "./utils/json-llm";
|
|
191
|
-
export { attachAvailableContexts, AVAILABLE_CONTEXTS_STATE_KEY, CONTEXT_ROUTING_METADATA_KEY, CONTEXT_ROUTING_STATE_KEY, type ContextRoutingDecision, deriveAvailableContexts, getActiveRoutingContexts, getContextRoutingFromMessage, getContextRoutingFromState, mergeContextRouting, parseContextList, parseContextRoutingMetadata, setContextRoutingMetadata, shouldIncludeByContext, } from "./utils/context-routing";
|
|
188
|
+
export { getLocalServerUrl } from "./utils/node.js";
|
|
189
|
+
export { extractFirstSentence, hasFirstSentence } from "./utils/text-splitting.js";
|
|
190
|
+
export { extractAndParseJSONObjectFromText } from "./utils/json-llm.js";
|
|
191
|
+
export { attachAvailableContexts, AVAILABLE_CONTEXTS_STATE_KEY, CONTEXT_ROUTING_METADATA_KEY, CONTEXT_ROUTING_STATE_KEY, type ContextRoutingDecision, deriveAvailableContexts, getActiveRoutingContexts, getContextRoutingFromMessage, getContextRoutingFromState, mergeContextRouting, parseContextList, parseContextRoutingMetadata, setContextRoutingMetadata, shouldIncludeByContext, } from "./utils/context-routing.js";
|
|
192
192
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.207",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.node.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@elizaos/plugin-elizacloud": "alpha",
|
|
84
84
|
"@elizaos/plugin-sql": "workspace:*",
|
|
85
|
-
"@elizaos/schemas": "2.0.0-alpha.
|
|
85
|
+
"@elizaos/schemas": "2.0.0-alpha.207",
|
|
86
86
|
"@playwright/test": "^1.52.0",
|
|
87
87
|
"@types/bun": "^1.3.5",
|
|
88
88
|
"@types/fast-redact": "^3.0.4",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"publishConfig": {
|
|
134
134
|
"access": "public"
|
|
135
135
|
},
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "6ddd1f4d3ce8cdd7cd099e6a79aa152268ff7221"
|
|
137
137
|
}
|