memeloop 0.0.1 → 0.1.1
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/README.md +63 -0
- package/dist/browser.cjs +1413 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +3066 -0
- package/dist/browser.d.ts +3066 -0
- package/dist/browser.js +43 -0
- package/dist/chunk-2C6BJZI3.js +382 -0
- package/dist/chunk-2C6BJZI3.js.map +1 -0
- package/dist/chunk-426CJUZP.js +630 -0
- package/dist/chunk-426CJUZP.js.map +1 -0
- package/dist/chunk-7ZDTB4VZ.js +63 -0
- package/dist/chunk-7ZDTB4VZ.js.map +1 -0
- package/dist/chunk-AZFYDWIN.js +98 -0
- package/dist/chunk-AZFYDWIN.js.map +1 -0
- package/dist/chunk-BGPU4RR7.js +367 -0
- package/dist/chunk-BGPU4RR7.js.map +1 -0
- package/dist/chunk-CCEFAOSH.js +496 -0
- package/dist/chunk-CCEFAOSH.js.map +1 -0
- package/dist/chunk-FWSY5HOA.js +63 -0
- package/dist/chunk-FWSY5HOA.js.map +1 -0
- package/dist/chunk-GYIOMQMY.js +8726 -0
- package/dist/chunk-GYIOMQMY.js.map +1 -0
- package/dist/chunk-K6P63KD4.js +68 -0
- package/dist/chunk-K6P63KD4.js.map +1 -0
- package/dist/chunk-KFS2EJT6.js +42 -0
- package/dist/chunk-KFS2EJT6.js.map +1 -0
- package/dist/chunk-MAJWHAKR.js +3637 -0
- package/dist/chunk-MAJWHAKR.js.map +1 -0
- package/dist/chunk-MRKY4HGF.js +205 -0
- package/dist/chunk-MRKY4HGF.js.map +1 -0
- package/dist/chunk-T7FSXWFR.js +2744 -0
- package/dist/chunk-T7FSXWFR.js.map +1 -0
- package/dist/chunk-VZKQX5PP.js +1 -0
- package/dist/chunk-VZKQX5PP.js.map +1 -0
- package/dist/chunk-WAI6BODI.js +175 -0
- package/dist/chunk-WAI6BODI.js.map +1 -0
- package/dist/chunk-YMNXDNDW.js +798 -0
- package/dist/chunk-YMNXDNDW.js.map +1 -0
- package/dist/conversation.cjs +208 -0
- package/dist/conversation.cjs.map +1 -0
- package/dist/conversation.d.cts +100 -0
- package/dist/conversation.d.ts +100 -0
- package/dist/conversation.js +21 -0
- package/dist/conversation.js.map +1 -0
- package/dist/device-network-portable.cjs +702 -0
- package/dist/device-network-portable.cjs.map +1 -0
- package/dist/device-network-portable.d.cts +110 -0
- package/dist/device-network-portable.d.ts +110 -0
- package/dist/device-network-portable.js +53 -0
- package/dist/device-network-portable.js.map +1 -0
- package/dist/device-network.cjs +906 -0
- package/dist/device-network.cjs.map +1 -0
- package/dist/device-network.d.cts +6 -0
- package/dist/device-network.d.ts +6 -0
- package/dist/device-network.js +59 -0
- package/dist/device-network.js.map +1 -0
- package/dist/fetchProvider-WWnWnQFP.d.ts +91 -0
- package/dist/fetchProvider-toTHy5Nu.d.cts +91 -0
- package/dist/index.cjs +28051 -5459
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -1320
- package/dist/index.d.ts +94 -1320
- package/dist/index.js +10616 -2420
- package/dist/index.js.map +1 -1
- package/dist/interface-IrKBFtL1.d.cts +493 -0
- package/dist/interface-IrKBFtL1.d.ts +493 -0
- package/dist/llm-providers.cjs +43 -8
- package/dist/llm-providers.cjs.map +1 -1
- package/dist/llm-providers.d.cts +2 -1
- package/dist/llm-providers.d.ts +2 -1
- package/dist/llm-providers.js +4 -2
- package/dist/llm-providers.js.map +1 -1
- package/dist/loop-api.cjs +5227 -2010
- package/dist/loop-api.cjs.map +1 -1
- package/dist/loop-api.d.cts +11 -5
- package/dist/loop-api.d.ts +11 -5
- package/dist/loop-api.js +86 -49
- package/dist/mobile.cjs +2711 -0
- package/dist/mobile.cjs.map +1 -0
- package/dist/mobile.d.cts +6 -0
- package/dist/mobile.d.ts +6 -0
- package/dist/mobile.js +22 -0
- package/dist/mobile.js.map +1 -0
- package/dist/orchestration-portable-BHB_YrNN.d.ts +2192 -0
- package/dist/orchestration-portable-mvYBvGBb.d.cts +2192 -0
- package/dist/orchestration-portable.cjs +9553 -0
- package/dist/orchestration-portable.cjs.map +1 -0
- package/dist/orchestration-portable.d.cts +5 -0
- package/dist/orchestration-portable.d.ts +5 -0
- package/dist/orchestration-portable.js +290 -0
- package/dist/orchestration-portable.js.map +1 -0
- package/dist/pairingInvite-BXPWY3aM.d.cts +149 -0
- package/dist/pairingInvite-Cuz0wuq9.d.ts +149 -0
- package/dist/promptConcat-0WNFTg4l.d.ts +516 -0
- package/dist/promptConcat-D6wr5V-V.d.cts +516 -0
- package/dist/providerRegistry-Bi6pAvSj.d.ts +86 -0
- package/dist/providerRegistry-CPsktuiX.d.cts +86 -0
- package/dist/registry-D0kbxksn.d.cts +393 -0
- package/dist/registry-DDbvhlhs.d.ts +393 -0
- package/dist/remoteClient-B_spK019.d.ts +87 -0
- package/dist/remoteClient-CBggnRy3.d.cts +87 -0
- package/dist/runtime-PGWR6FIV.js +18 -0
- package/dist/runtime-PGWR6FIV.js.map +1 -0
- package/dist/scriptDeploymentPipeline-CXJcC82H.d.ts +2464 -0
- package/dist/scriptDeploymentPipeline-yG1ZhVVI.d.cts +2464 -0
- package/dist/syncCloudDevices-BEqwgrhD.d.ts +49 -0
- package/dist/syncCloudDevices-Ds_Kcgrv.d.cts +49 -0
- package/dist/types-7pYti-k9.d.cts +255 -0
- package/dist/types-CdFVSntj.d.ts +255 -0
- package/package.json +110 -35
- package/dist/anthropic.cjs +0 -72
- package/dist/anthropic.cjs.map +0 -1
- package/dist/anthropic.d.cts +0 -21
- package/dist/anthropic.d.ts +0 -21
- package/dist/anthropic.js +0 -21
- package/dist/anthropic.js.map +0 -1
- package/dist/azure.cjs +0 -72
- package/dist/azure.cjs.map +0 -1
- package/dist/azure.d.cts +0 -21
- package/dist/azure.d.ts +0 -21
- package/dist/azure.js +0 -21
- package/dist/azure.js.map +0 -1
- package/dist/chunk-3CN7DFBL.js +0 -4894
- package/dist/chunk-3CN7DFBL.js.map +0 -1
- package/dist/chunk-4AZ4D7U5.js +0 -32
- package/dist/chunk-4AZ4D7U5.js.map +0 -1
- package/dist/chunk-6ON4XSOV.js +0 -63
- package/dist/chunk-6ON4XSOV.js.map +0 -1
- package/dist/chunk-DJQNGIXX.js +0 -4793
- package/dist/chunk-DJQNGIXX.js.map +0 -1
- package/dist/chunk-FKQP6AOQ.js +0 -32
- package/dist/chunk-FKQP6AOQ.js.map +0 -1
- package/dist/chunk-OVJ7JJBA.js +0 -35
- package/dist/chunk-OVJ7JJBA.js.map +0 -1
- package/dist/chunk-P4UZ7IXC.js +0 -42
- package/dist/chunk-YHJ2AEFR.js +0 -4933
- package/dist/chunk-YHJ2AEFR.js.map +0 -1
- package/dist/chunk-YVK7RYRO.js +0 -4973
- package/dist/chunk-YVK7RYRO.js.map +0 -1
- package/dist/code-assistant.json +0 -114
- package/dist/cohere.cjs +0 -72
- package/dist/cohere.cjs.map +0 -1
- package/dist/cohere.d.cts +0 -21
- package/dist/cohere.d.ts +0 -21
- package/dist/cohere.js +0 -21
- package/dist/cohere.js.map +0 -1
- package/dist/deepseek.cjs +0 -72
- package/dist/deepseek.cjs.map +0 -1
- package/dist/deepseek.d.cts +0 -21
- package/dist/deepseek.d.ts +0 -21
- package/dist/deepseek.js +0 -21
- package/dist/deepseek.js.map +0 -1
- package/dist/dist-65U7OYRG.js +0 -1257
- package/dist/dist-65U7OYRG.js.map +0 -1
- package/dist/fetchProvider-Cu4WkU5O.d.cts +0 -819
- package/dist/fetchProvider-Cu4WkU5O.d.ts +0 -819
- package/dist/frontend-ui-ux.json +0 -105
- package/dist/general-assistant.json +0 -95
- package/dist/git-master.json +0 -51
- package/dist/google-vertex.cjs +0 -72
- package/dist/google-vertex.cjs.map +0 -1
- package/dist/google-vertex.d.cts +0 -21
- package/dist/google-vertex.d.ts +0 -21
- package/dist/google-vertex.js +0 -21
- package/dist/google-vertex.js.map +0 -1
- package/dist/google.cjs +0 -72
- package/dist/google.cjs.map +0 -1
- package/dist/google.d.cts +0 -21
- package/dist/google.d.ts +0 -21
- package/dist/google.js +0 -21
- package/dist/google.js.map +0 -1
- package/dist/groq.cjs +0 -72
- package/dist/groq.cjs.map +0 -1
- package/dist/groq.d.cts +0 -21
- package/dist/groq.d.ts +0 -21
- package/dist/groq.js +0 -21
- package/dist/groq.js.map +0 -1
- package/dist/index.d.mts +0 -3203
- package/dist/index.mjs +0 -7064
- package/dist/index.mjs.map +0 -1
- package/dist/mistral.cjs +0 -72
- package/dist/mistral.cjs.map +0 -1
- package/dist/mistral.d.cts +0 -21
- package/dist/mistral.d.ts +0 -21
- package/dist/mistral.js +0 -21
- package/dist/mistral.js.map +0 -1
- package/dist/multipart-parser-EJCXIUHC.js +0 -372
- package/dist/multipart-parser-EJCXIUHC.js.map +0 -1
- package/dist/openai.cjs +0 -72
- package/dist/openai.cjs.map +0 -1
- package/dist/openai.d.cts +0 -21
- package/dist/openai.d.ts +0 -21
- package/dist/openai.js +0 -21
- package/dist/openai.js.map +0 -1
- package/dist/perplexity.cjs +0 -72
- package/dist/perplexity.cjs.map +0 -1
- package/dist/perplexity.d.cts +0 -21
- package/dist/perplexity.d.ts +0 -21
- package/dist/perplexity.js +0 -21
- package/dist/perplexity.js.map +0 -1
- package/dist/playwright.json +0 -52
- package/dist/promptConcat-BJdazTg5.d.cts +0 -1832
- package/dist/promptConcat-BJdazTg5.d.ts +0 -1832
- package/dist/promptConcat-CAkpni_8.d.cts +0 -1834
- package/dist/promptConcat-CAkpni_8.d.ts +0 -1834
- package/dist/promptConcat-CfH5-GAE.d.cts +0 -1036
- package/dist/promptConcat-ChcAZOOL.d.ts +0 -1036
- package/dist/promptConcat-G5TnJVRy.d.cts +0 -1800
- package/dist/promptConcat-G5TnJVRy.d.ts +0 -1800
- package/dist/promptConcat-L72eowzp.d.ts +0 -1090
- package/dist/promptConcat-eLHdN7K8.d.cts +0 -1090
- package/dist/src-VTSXKG72.js +0 -1409
- package/dist/src-VTSXKG72.js.map +0 -1
- package/dist/togetherai.cjs +0 -72
- package/dist/togetherai.cjs.map +0 -1
- package/dist/togetherai.d.cts +0 -21
- package/dist/togetherai.d.ts +0 -21
- package/dist/togetherai.js +0 -21
- package/dist/togetherai.js.map +0 -1
- package/dist/types-B0Jm2l38.d.cts +0 -767
- package/dist/types-B0Jm2l38.d.ts +0 -767
- package/dist/xai.cjs +0 -72
- package/dist/xai.cjs.map +0 -1
- package/dist/xai.d.cts +0 -21
- package/dist/xai.d.ts +0 -21
- package/dist/xai.js +0 -21
- package/dist/xai.js.map +0 -1
- /package/dist/{chunk-P4UZ7IXC.js.map → browser.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,113 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_AGENT_LOOP_ID, a as AGENT_TOOL_LOOP_ID, b as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { a2 as findPromptById } from './promptConcat-0WNFTg4l.js';
|
|
2
|
+
export { A as AGENT_AGENT_LOOP_ID, a as AGENT_TOOL_LOOP_ID, b as AgentAgentBatchRunInput, c as AgentAgentBatchRunResult, d as AgentAgentConfigEntry, e as AgentAgentContext, f as AgentAgentDescriptor, g as AgentAgentFormatResultsOptions, h as AgentAgentLoopContext, i as AgentAgentLoopScript, j as AgentAgentLoopScriptArguments, k as AgentAgentLoopScriptReference, l as AgentAgentRunAgentFailure, m as AgentAgentRunAgentInput, n as AgentAgentRunAgentResult, o as AgentAgentScriptContext, p as AgentToolLoopContext, q as AgentToolLoopIterationGenerator, r as AgentToolLoopIterationResult, s as AgentToolLoopScript, t as AgentToolLoopScriptContext, u as AgentToolLoopScriptReference, v as AgentToolLoopState, w as AgentToolLoopTurnStartResult, B as BUILTIN_AGENT_AGENT_LOOP_ARTIFACT_RESOURCE_LIFECYCLE_SCRIPT_ID, x as BUILTIN_AGENT_AGENT_LOOP_DECLARATIVE_AGENT_RUN_SCRIPT_ID, y as BUILTIN_AGENT_AGENT_LOOP_QUALITY_GATE_SCRIPT_ID, z as BUILTIN_AGENT_TOOL_LOOP_DEFAULT_SCRIPT_ID, C as BUILTIN_TOOL_PLUGIN_IDS, D as CompactionOptions, E as CompactionResult, H as HookRegistry, L as LoadAgentAgentLoopScriptOptions, F as LoadAgentToolLoopScriptOptions, G as LoopRegistryImpl, P as PLUGIN_ASK_QUESTION, I as PLUGIN_ASK_USER_QUESTION, J as PLUGIN_MCP_CLIENT, K as PLUGIN_MCP_FORWARD, M as PLUGIN_ORCHESTRATION, N as PLUGIN_REMOTE_AGENT, O as PLUGIN_SPAWN_AGENT, Q as PLUGIN_TASK, R as PLUGIN_TODO_WRITE, S as PromptConcatPluginPreview, T as PromptConcatStreamState, U as TokenTracker, V as autoCompact, W as builtinAgentAgentLoopSources, X as builtinAgentToolLoopSources, Y as clearHooks, Z as compactMessages, _ as createAgentAgentLoopDefinition, $ as createAgentToolLoopDefinition, a0 as createAgentToolLoopRunner, a1 as executeHooks, a3 as flattenPrompts, a4 as getAgentAgentLoopId, a5 as getBuiltinAgentAgentLoopSource, a6 as getBuiltinAgentToolLoopSource, a7 as getBuiltinToolPlugins, a8 as getDefaultHookRegistry, a9 as getHookCount, aa as getLoopRegistry, ab as hasHooks, ac as listRegisteredHookTypes, ad as loadAgentAgentLoopScript, ae as loadAgentToolLoopScript, af as promptConcatStream, ag as registerBuiltinLoops, ah as registerBuiltinPromptPlugins, ai as registerBuiltinToolPlugins, aj as registerHook, ak as resetLoopRegistry, al as shouldCompact, am as unregisterHook } from './promptConcat-0WNFTg4l.js';
|
|
3
|
+
export { F as FetchLLMProviderConfig, R as RunAgentToolLoopTurnCallbacks, a as RunAgentToolLoopTurnResult, c as createFetchLLMProvider, g as getBuiltinLoopProfile, b as getBuiltinLoopProfiles, r as resolveAgentToolLoopTerminalState, d as runAgentToolLoopTurn } from './fetchProvider-WWnWnQFP.js';
|
|
4
|
+
import { IMChannelManager } from './browser.js';
|
|
5
|
+
export { AgentConversationClient, AgentCreationController, AgentCreationControllerOptions, AgentCreationState, AgentDefinitionEditorController, AgentDefinitionEditorControllerOptions, AgentDefinitionEditorState, AgentDefinitionRepository, AgentInstanceClient, AgentRuntimeDeviceRpcHandlerOptions, AgentRuntimeView, AgentSessionController, AgentSessionControllerOptions, AgentSessionListener, AgentSessionSnapshot, AgentUpdateListener, ArchiveEntry, ArchiveLimits, BindWorkerSessionRequest, BindingControllerOptions, BoundedCollector, ControlStoreAuditTelemetryAdapterOptions, ControlStoreOrchestrationClientOptions, ControlStorePolicyApprovalAdapterOptions, Controller, ControllerReconcileRequest, ControllerReconcileResult, ControllerRunnerHandle, ControllerRunnerOptions, CreateScheduledTaskInput, CreationStateListener, CredentialBrokerEndpoint, CredentialGrantBindingControllerOptions, CredentialGrantExecutionControllerOptions, CredentialGrantLifecycleControllerOptions, CredentialGrantPlacementRequirements, CredentialHandleVault, DriverFixture, EditorStateChange, EditorStateListener, ExternalDriverCapabilities, ExternalOrchestrationControllerHandle, ExternalOrchestrationControllerOptions, ExternalOrchestrationDriver, ExternalPlacementResult, ExternalRuntimeResult, ExternalStatusResult, ExternalToolContract, ExternalWorkerBootstrapSecret, ExternalWorkloadPlacementContext, ExternalWorkloadRuntimeContract, FLEET_ROLLOUT_API_VERSION, FLEET_ROLLOUT_KIND, FleetRolloutControllerOptions, FleetRolloutResource, FleetRolloutSpec, FleetRolloutStatus, GatewayHttpRequest, GatewayRateLimiter, GatewayValidationContext, GatewayValidationResult, IIMAdapter, IIMMessageRenderer, IdentityPromotionRequest, IdentityRevocationReason, IdentityRevocationRecord, ImAgentDriver, ImInboundMessage, ImSlashCommandContext, ImStreamFlush, ImToolsRuntime, ImWebhookContext, IssueWorkloadCapabilityGrantRequest, LOOP_CHECKPOINT_API_VERSION, LOOP_CHECKPOINT_KIND, LocalModelAdvertisement, LocalModelAdvertisementOptions, LoopCheckpointResource, LoopCheckpointSpec, ManagedArtifactDriverAdapterOptions, ManagedStorageAdapterStateStore, ManagedStorageDriverAdapterOptions, ManagedToolExecutionRoute, ManagedToolExecutionRouteOptions, ManagedToolPolicyDecision, ManagedWorkerIdentityAdapterOptions, ManagedWorkerIdentityRequestFactoryInput, ManagedWorkerIdentityRoute, ModelEndpointBindingControllerOptions, ModelEndpointRegistrarHandle, ModelEndpointRegistrarOptions, ModelEndpointTrust, ModelSelectionRequirements, NODE_API_VERSION, NODE_KIND, NetworkAttachmentBindingControllerOptions, NetworkAttachmentExecutionControllerOptions, NetworkAttachmentNode, NodeSpec, NodeStatus, PEER_DRIVER_PROTOCOL_VERSION, PeerDriverAssignment, PeerDriverRequestContext, PeerDriverScope, PeerDriverStatus, PeerDriverTransportOptions, PolicyEvaluation, PreviewDialogListener, PromptPreviewClient, PromptPreviewController, PromptPreviewControllerOptions, PromptPreviewDialogState, PromptPreviewProgress, PromptPreviewResult, QuarantineGatewayPolicy, QuorumControlStore, QuorumControlStoreOptions, QuorumControlStoreSnapshot, QuorumMember, QuorumTopology, RecordedInteraction, RegisteredExternalOrchestrationDriver, ReplicationAction, ReplicationContext, ReplicationControllerDeps, ReplicationNode, ReplicationResult, ReplicationSnapshot, ReplicationTransport, RolloutEvidenceEntry, RolloutStrategy, RolloutTarget, RunVolumeControllerOptions, SanitizedText, SanitizerFinding, ScheduleEditorState, ScheduledTask, ScheduledTaskClient, Scheduler, SchedulerNode, SchedulingDecision, SecretRedactionOptions, SelectableModelEndpoint, SignedWorkerBootstrapSessionDescriptor, StorageDriver, StorageDriverCapabilities, StorageDriverEndpoint, StorageProvisionRequest, StorageProvisionResult, StoragePublishRequest, StoragePublishResult, TOOL_OPERATION_CONDITION_EFFECT_UNKNOWN, TargetUpdateResult, TargetUsage, TextMessageRenderer, TiddlyWikiHttpStorage, TiddlyWikiHttpStorageOptions, ToolAdmissionDecision, ToolExecutorSelection, ToolOperationBindingControllerOptions, ToolOperationExecutionController, ToolOperationExecutionControllerOptions, UnknownEffectAction, UnknownEffectDecision, UnknownEffectEvidence, VerifierOnlyTransitionOptions, VolumeClaimBindingControllerOptions, VolumeClaimExecutionControllerOptions, WORKER_ENROLLMENT_API_VERSION, WORKER_ENROLLMENT_KIND, WORKER_PROTOCOL_METHODS, WORKER_PROTOCOL_VERSION, WORKER_SESSION_API_VERSION, WORKER_SESSION_KIND, WORKLOAD_CAPABILITY_GRANT_API_VERSION, WORKLOAD_CAPABILITY_GRANT_KIND, WikiTiddlerAttachment, WikiTiddlerClickData, WorkerBootstrapSessionDescriptor, WorkerEnrollmentResource, WorkerEnrollmentSpec, WorkerEnrollmentStatus, WorkerGatewaySession, WorkerProtocolAuditEvent, WorkerProtocolGatewayOptions, WorkerProtocolMethod, WorkerProtocolReplayProtector, WorkerProtocolRequest, WorkerProtocolResponse, WorkerRunBinding, WorkerSessionResource, WorkerSessionSpec, WorkerSessionStatus, WorkloadCapabilityBudget, WorkloadCapabilityGrantRequirements, WorkloadCapabilityGrantResource, WorkloadCapabilityGrantSpec, WorkloadCapabilityGrantStatus, WorkloadExecutionControllerHandle, WorkloadExecutionControllerOptions, applyUnknownEffectDecision, assertExternalToolContracts, assertExternalToolOperationContract, assertExternalToolOperationResult, assertExternalWorkloadRuntimeContracts, assertSafeArchivePath, bindWorkerSession, canonicalWorkerBootstrapDescriptorBytes, canonicalWorkerProtocolRequestBytes, canonicalWorkloadCapabilityGrantBytes, consumeWorkloadCapabilityGrant, containsSecrets, createAdoptionTests, createAgentRuntimeDeviceRpcHandler, createAuditRecordAuthorizer, createBackpressureTests, createBindingController, createBoundedCollector, createCancellationTests, createCapabilityNegotiationTests, createCapacityScheduler, createControlStoreArtifactReviewWriter, createControlStoreAuditTelemetryAdapter, createControlStoreLoopCheckpointStore, createControlStoreOrchestrationClient, createControlStorePolicyApprovalAdapter, createControllerRunner, createCredentialGrantBindingController, createCredentialGrantExecutionController, createCredentialGrantLifecycleController, createDowngradeTests, createExternalOrchestrationController, createFencingTests, createFleetRolloutController, createGatewayRateLimiter, createIdempotencyTests, createInMemoryWorkerReplayProtector, createManagedArtifactDriverAdapter, createManagedStorageDriverAdapter, createManagedToolDescriptors, createManagedToolExecutionRoute, createManagedWorkerIdentityAdapter, createMinimalExternalRuntimeToolContracts, createModelEndpointBindingController, createModelEndpointRegistrar, createNetworkAttachmentBindingController, createNetworkAttachmentExecutionController, createNodeTrustAuthorizer, createPeerDriverRpcHandler, createPeerDriverTransport, createPolicyDecisionAuthorizer, createRecordingDriver, createReplayingDriver, createReplicationController, createRunVolumeController, createSecurityTests, createToolOperationBindingController, createToolOperationExecutionController, createVerifierOnlyAuthorizer, createVolumeClaimBindingController, createVolumeClaimExecutionController, createWorkerEnrollmentManifest, createWorkerProtocolGateway, createWorkerRevocationList, createWorkerSessionManifest, createWorkloadCapabilityGrantManifest, createWorkloadExecutionController, defaultAdmissionPolicyForTrustClass, defaultPermissionActionForTrustClass, describeLocalModelEndpoints, detectMimeConfusion, enrollWorker, evaluateToolAdmission, imPlatformMaxMessageChars, imSwitchConversation, imToolDefinitions, isIdentityRevoked, isNodeAllowedForRole, isPrivateIp, isVerifierActor, isWorkerEnrollment, isWorkerSession, isWorkerSessionValid, isWorkloadCapabilityGrant, issueWorkloadCapabilityGrant, negotiateCapabilities, parseExternalRuntimeResult, pickAdapter, planReplicaPlacement, promoteIdentity, reconcileUnknownEffect, reconcileVolumeReplication, redactSecrets, resolveAdmissionPolicy, resolveExternalWorkloadResources, resolveExternalWorkloadRuntime, revokeCredentialGrant, revokeQuarantineIdentity, revokeWorkerSession, sanitizeMarkup, sanitizeTerminalText, scanForPromptInjection, selectModelEndpoint, selectToolExecutor, storageDriverSatisfiesClass, streamRuntimeAgentReplyToIm, sumEvidenceUsage, tryHandleImSlashCommand, validateArchiveManifest, validateGatewayRequest, validateNodeSpec, validateRedirectTarget, verifyWorkloadCapabilityGrant } from './browser.js';
|
|
6
|
+
import { D as ToolApprovalConfig, E as ApprovalDecision, F as ToolApprovalRequest, m as IToolRegistry, P as PromptConcatTool, G as PromptConcatHookContext, H as DefineToolAgentFrameworkContext, J as PostProcessContext, K as AIResponseContext, w as ToolCallingMatch, N as PromptConcatHooks } from './scriptDeploymentPipeline-CXJcC82H.js';
|
|
7
|
+
export { O as AGENT_RUN_API_VERSION, Q as AGENT_RUN_KIND, R as AGENT_WORKLOAD_API_VERSION, U as AGENT_WORKLOAD_KIND, V as AIStreamResponseSubset, W as ARTIFACT_RECORD_API_VERSION, X as ARTIFACT_RECORD_KIND, Y as AUDIT_RECORD_API_VERSION, Z as AUDIT_RECORD_KIND, B as AgentClient, A as AgentFrameworkContext, a as AgentInstance, b as AgentInstanceLatestStatus, a as AgentInstanceModel, c as AgentInstanceState, d as AgentLoopDefinition, e as AgentLoopGenerator, f as AgentLoopInput, g as AgentLoopRuntime, h as AgentLoopScriptPolicy, i as AgentLoopStep, _ as AgentResponse, $ as AgentRunCondition, a0 as AgentRunManifest, a1 as AgentRunResource, a2 as AgentRunSpec, a3 as AgentRunStatus, a4 as AgentSnapshotManifest, a5 as AgentSnapshotResource, a6 as AgentSnapshotSpec, a7 as AgentSnapshotStatus, a8 as AgentStatusContext, j as AgentToolLoopOptions, a9 as AgentTrustLevel, aa as AgentVolumeClaimManifest, ab as AgentVolumeClaimResource, ac as AgentVolumeClaimSpec, ad as AgentVolumeClaimStatus, ae as AgentVolumeManifest, af as AgentVolumeReplicaStatus, ag as AgentVolumeResource, ah as AgentVolumeSpec, ai as AgentVolumeStatus, aj as AgentWorkloadCompletionPolicy, ak as AgentWorkloadCondition, al as AgentWorkloadCredentialPolicy, am as AgentWorkloadManifest, an as AgentWorkloadModelPolicy, ao as AgentWorkloadNetworkPolicy, ap as AgentWorkloadPlacement, aq as AgentWorkloadResource, ar as AgentWorkloadResourceRequirements, as as AgentWorkloadSpec, at as AgentWorkloadStatus, au as AgentWorkloadStoragePolicy, av as AgentWorkloadToolPolicy, aw as AgentWorkloadVolumeClaim, ax as ArtifactDestination, ay as ArtifactRecordManifest, az as ArtifactRecordResource, aA as ArtifactRecordSpec, aB as ArtifactRecordStatus, aC as ArtifactReviewEvidence, aD as ArtifactReviewKind, aE as ArtifactTrust, aF as AuditRecordManifest, aG as AuditRecordResource, aH as AuditRecordSpec, aI as BUILTIN_RUNTIME_CLASSES, aJ as BaseToolContext, aK as CREDENTIAL_GRANT_API_VERSION, aL as CREDENTIAL_GRANT_KIND, aM as CheckpointRecord, aN as CheckpointStore, aO as CheckpointSummary, aP as ControlLeaseGrant, aQ as ControlLeaseIdentity, aR as ControlLeaseRequest, aS as ControlStore, aT as ControlStoreActor, aU as ControlStoreApplyOptions, aV as ControlStoreAuthorizationRequest, aW as ControlStoreAuthorizer, aX as ControlStoreCompactionResult, aY as ControlStoreCreateOptions, aZ as ControlStoreHealth, a_ as ControlStoreSnapshotResult, a$ as ControlStoreStatusUpdateOptions, b0 as ControlStoreVerb, b1 as CreateAgentRunOptions, b2 as CreateAgentWorkloadOptions, b3 as CredentialGrantManifest, b4 as CredentialGrantResource, b5 as CredentialGrantSpec, b6 as CredentialGrantStatus, b7 as DRIVER_MANIFEST_API_VERSION, b8 as DRIVER_MANIFEST_KIND, b9 as DataClassification, ba as DriverManifestConformance, bb as DriverManifestManifest, bc as DriverManifestResource, bd as DriverManifestSpec, be as DriverManifestStatus, bf as FrameworkPluginToolConfig, bg as HookSlot, I as IChatSyncAdapter, k as ILLMProvider, l as INetworkService, bh as InfrastructureDriverType, L as LoopPlugin, n as LoopProfile, o as LoopProfilePluginEntry, p as LoopProfilePrompt, q as LoopProfileScriptReference, r as LoopScriptCheckpointStore, bi as MODEL_CALL_RECORD_API_VERSION, bj as MODEL_CALL_RECORD_KIND, bk as MODEL_CLASS_API_VERSION, bl as MODEL_CLASS_KIND, bm as MODEL_ENDPOINT_API_VERSION, bn as MODEL_ENDPOINT_KIND, M as MemeLoopLogger, bo as ModelCallRecordManifest, bp as ModelCallRecordResource, bq as ModelCallRecordSpec, br as ModelCallRecordStatus, bs as ModelClassCapabilities, bt as ModelClassManifest, bu as ModelClassResource, bv as ModelClassSpec, bw as ModelClassStatus, bx as ModelEndpointManifest, by as ModelEndpointResource, bz as ModelEndpointSpec, bA as ModelEndpointStatus, bB as ModelModality, bC as NETWORK_ATTACHMENT_API_VERSION, bD as NETWORK_ATTACHMENT_KIND, bE as NETWORK_CLASS_API_VERSION, bF as NETWORK_CLASS_KIND, bG as NetworkAttachmentManifest, bH as NetworkAttachmentResource, bI as NetworkAttachmentSpec, bJ as NetworkAttachmentStatus, bK as NetworkClassManifest, bL as NetworkClassResource, bM as NetworkClassSpec, bN as NetworkClassStatus, bO as NetworkEgressRule, bP as NodeTrustClass, bQ as POLICY_DECISION_API_VERSION, bR as POLICY_DECISION_KIND, bS as PersistedPolicyDecisionKind, bT as PolicyDecisionManifest, bU as PolicyDecisionResource, bV as PolicyDecisionSpec, bW as PolicyDecisionStatus, bX as RemoteDeploymentRequest, bY as RemoteDeploymentResult, bZ as RemoteDeploymentWorkloadOptions, b_ as RuntimeClassResource, b$ as RuntimeClassSpec, c0 as SECURITY_PROFILE_API_VERSION, c1 as SECURITY_PROFILE_KIND, c2 as SNAPSHOT_API_VERSION, c3 as SNAPSHOT_KIND, c4 as STORAGE_CLASS_API_VERSION, c5 as STORAGE_CLASS_KIND, c6 as SandboxSelectionResult, c7 as ScriptAdmissionDecision, c8 as ScriptAdmissionRequest, c9 as ScriptArtifactReference, ca as ScriptArtifactStore, C as ScriptDeploymentClient, cb as ScriptDeploymentClientConfig, cc as ScriptDeploymentClientRequest, cd as ScriptDeploymentPipelineOptions, ce as ScriptDeploymentRequest, cf as ScriptDeploymentResult, S as ScriptLoadGate, cg as ScriptLoadGateConfig, s as ScriptLoadGateDecision, t as ScriptLoadGateRequest, ch as ScriptTrustClass, ci as ScriptValidationResult, cj as SecurityProfileManifest, ck as SecurityProfileResource, cl as SecurityProfileSpec, cm as SecurityProfileStatus, cn as SessionStorage, co as StorageClassManifest, cp as StorageClassResource, cq as StorageClassSpec, cr as StorageClassStatus, cs as TOOL_CLASS_API_VERSION, ct as TOOL_CLASS_KIND, cu as TOOL_EXECUTOR_API_VERSION, cv as TOOL_EXECUTOR_KIND, cw as TOOL_OPERATION_API_VERSION, cx as TOOL_OPERATION_KIND, T as TOOL_PARAMETER_PARSE_ERROR_KEY, cy as TapAsyncHandler, cz as ToolActions, cA as ToolAdmissionAction, cB as ToolAdmissionPolicy, cC as ToolAdmissionRule, cD as ToolApprovalMode, cE as ToolClassManifest, cF as ToolClassResource, cG as ToolClassSchema, cH as ToolClassSpec, cI as ToolClassStatus, cJ as ToolExecutionContext, cK as ToolExecutorCapability, cL as ToolExecutorManifest, cM as ToolExecutorResource, cN as ToolExecutorSpec, cO as ToolExecutorStatus, cP as ToolOperationApprovalEvidence, z as ToolOperationEffect, cQ as ToolOperationManifest, cR as ToolOperationPolicy, cS as ToolOperationResource, cT as ToolOperationResult, cU as ToolOperationRetryPolicy, cV as ToolOperationSpec, cW as ToolOperationStatus, cX as ToolOperationToolReference, cY as ToolRiskLevel, cZ as UserMessageContext, c_ as VOLUME_API_VERSION, c$ as VOLUME_CLAIM_API_VERSION, d0 as VOLUME_CLAIM_KIND, d1 as VOLUME_KIND, d2 as VolumeAccessMode, d3 as WaitForConditionOptions, d4 as YieldNextRoundTarget, d5 as admitScript, d6 as agentRunReference, d7 as agentWorkloadReference, d8 as canonicalControlStoreValue, d9 as controlStoreApplyMatches, da as createAgentClient, db as createAgentRunManifest, dc as createAgentWorkloadManifest, dd as createArtifactRecordManifest, de as createAuditRecordManifest, df as createCheckpointRecord, dg as createCredentialGrantManifest, dh as createDriverManifestManifest, u as createInstanceDeltaFromDefinition, di as createModelCallRecordManifest, dj as createModelClassManifest, dk as createModelEndpointManifest, dl as createNetworkAttachmentManifest, dm as createNetworkClassManifest, dn as createPolicyDecisionManifest, dp as createScriptDeploymentClient, dq as createScriptLoadGate, dr as createSecurityProfileManifest, ds as createSnapshotManifest, dt as createStorageClassManifest, du as createToolClassManifest, dv as createToolExecutorManifest, dw as createToolOperationManifest, dx as createVolumeClaimManifest, dy as createVolumeManifest, dz as defaultRequestedInterfacesForTrustClass, dA as deployGeneratedScript, dB as digestNormalizedScript, dC as isAgentRun, dD as isAgentWorkload, dE as isArtifactRecord, dF as isAuditRecord, dG as isCredentialGrant, dH as isDriverManifest, dI as isDriverManifestAdmitted, dJ as isModelCallRecord, dK as isModelClass, dL as isModelEndpoint, dM as isNetworkAttachment, dN as isNetworkClass, dO as isPolicyDecision, dP as isSecurityProfile, dQ as isSnapshot, dR as isStorageClass, dS as isToolClass, dT as isToolExecutor, dU as isToolOperation, v as isUserInitiatedConversation, dV as isVolume, dW as isVolumeClaim, x as matchAllToolCallings, y as matchToolCalling, dX as maxScriptBytesForTrustClass, dY as normalizeScript, dZ as parseCheckpointRecord, d_ as remoteDeploymentToWorkloadManifest, d$ as selectRuntimeClass, e0 as serializeCheckpointRecord, e1 as validateScript, e2 as waitForCondition } from './scriptDeploymentPipeline-CXJcC82H.js';
|
|
8
|
+
import { M as MemeLoopRuntime } from './registry-DDbvhlhs.js';
|
|
9
|
+
export { A as ALL_CATEGORIES, a as AgentProfileRegistry, b as AgentStartData, c as AgentStopData, C as CategoryConfig, d as ContextCompactionData, e as CreateAgentLoopRunnerOptions, f as CreateAgentOptions, H as HookContext, g as HookHandler, h as HookResult, i as HookType, L as LoadPluginModuleOptions, j as LoadedPlugin, k as MergedPermissions, P as PERMISSIONS_TABLE_DDL, l as PermissionAction, m as PermissionRule, n as PermissionSet, o as PermissionSqlDatabase, p as PermissionSqlStatement, q as PluginAPI, r as PluginAPIOptions, s as PluginExports, t as PluginManifest, u as PluginModule, v as PostToolUseData, w as PreToolUseData, S as SendMessageOptions, T as TaskCategory, U as UserPromptSubmitData, x as checkPermission, y as clearPluginRegistrations, z as createAgentLoopRunner, B as createAgentLoopScriptRunner, D as createAgentProfileRunner, E as createMemeLoopRuntime, F as createPluginAPI, G as getAgentProfileRegistry, I as getCategoryConfig, J as getLoadedPlugin, K as getPluginRegistrations, N as isPluginLoaded, O as isTaskCategory, Q as listPlugins, R as loadPluginModule, V as loadPluginModules, W as loadUserPermissions, X as matchPattern, Y as mergePermissionSets, Z as registerPluginHooks, _ as registerPluginTools, $ as resetAgentProfileRegistry, a0 as resolveCategory, a1 as saveUserPermissions, a2 as unloadAllPlugins, a3 as unloadPlugin, a4 as validatePluginManifest } from './registry-DDbvhlhs.js';
|
|
10
|
+
export { ChatSyncEngine, ChatSyncEngineOptions, ChatSyncPeer, PeerNodeSyncAdapter, PeerNodeTransport, decodeAttachmentBlobRpc } from './device-network-portable.js';
|
|
11
|
+
import { Y as FullAgentStorage, m as AgentDefinition, U as IPrompt, S as AgentFrameworkConfig, o as AgentDefinitionToolConfig, k as DetailReference } from './interface-IrKBFtL1.js';
|
|
12
|
+
export { n as AgentDefinitionModelConfig, p as AgentHeartbeatConfig, Z as AgentInfrastructureInterface, q as AgentInstanceMeta, _ as AgentInstanceStore, $ as AgentOrchestrationCapabilities, t as AgentOrchestrationClient, a0 as AgentOrchestrationOperation, X as AgentPromptDescription, r as AiAPIConfig, A as AttachmentReference, a1 as BlobStore, a as ChatAttachmentPart, b as ChatMessage, c as ChatMessagePart, d as ChatReasoningPart, e as ChatRole, f as ChatTextPart, g as ChatToolCallPart, h as ChatToolResultPart, a2 as ConversationDirectoryStore, l as ConversationEventStore, C as ConversationMeta, j as ConversationQueryMode, a3 as DefinitionStore, D as DetailRefType, G as GetMessagesOptions, H as HostAgentToolConfig, I as IAgentStorage, a4 as IMChannel, a5 as IMChannelBinding, a6 as IMPlatformType, a7 as ImBindingStore, a8 as ImChannelBindingRecord, L as ListConversationsOptions, M as ModelParameters, s as ModelSelection, a9 as ORCHESTRATION_ERROR_CODES, aa as OrchestrationApplyOptions, ab as OrchestrationBookmarkWatchEvent, ac as OrchestrationCondition, ad as OrchestrationConditionStatus, Q as OrchestrationDeleteOptions, R as OrchestrationDeleteResult, ae as OrchestrationError, af as OrchestrationErrorCode, O as OrchestrationErrorData, ag as OrchestrationErrorWatchEvent, ah as OrchestrationEvent, ai as OrchestrationEventSeverity, B as OrchestrationGetOptions, J as OrchestrationListOptions, aj as OrchestrationManifestMetadata, x as OrchestrationObjectMetadata, v as OrchestrationOwnerReference, ak as OrchestrationPreconditions, E as OrchestrationResource, K as OrchestrationResourceList, u as OrchestrationResourceManifest, F as OrchestrationResourceQuery, z as OrchestrationResourceReference, y as OrchestrationResourceStatus, al as OrchestrationResourceWatchEvent, am as OrchestrationResourceWatchEventType, w as OrchestrationTypeMeta, P as OrchestrationWatchEvent, N as OrchestrationWatchOptions, W as PromptNode, an as PromptPluginConfig, T as ToolCall, V as VersionVector, i as isConversationMeta, ao as isOrchestrationError, ap as toOrchestrationErrorData } from './interface-IrKBFtL1.js';
|
|
13
|
+
export { A as AgentProfile, a as AgentProfileType, B as BUILTIN_AGENT_PROFILES, P as ProviderConfig, b as ProviderRegistry, R as RegisteredProvider, T as ToolPermissionRules, c as buildAgent, e as exploreAgent, l as librarianAgent, o as oracleAgent, p as planAgent } from './providerRegistry-Bi6pAvSj.js';
|
|
14
|
+
import { B as BuiltinToolContext, a as BuiltinToolImpl } from './orchestration-portable-BHB_YrNN.js';
|
|
15
|
+
export { A as ArtifactAdmissionDecision, b as ArtifactContentStore, c as ArtifactDestinationPolicy, d as ArtifactInspectionExecutor, e as ArtifactInspectionInput, f as ArtifactInspectionRequest, g as ArtifactInspectionResult, h as ArtifactInspector, i as ArtifactManagementCapabilities, j as ArtifactManagementDriver, k as ArtifactManagementStateSnapshot, l as ArtifactPutPayload, m as ArtifactReviewWriter, n as ArtifactSanitizationResult, o as AttestedIdentity, p as AuditEffect, q as AuditProvenance, r as AuditTelemetryCapabilities, s as AuditTelemetryManagementDriver, t as AuditTelemetryRecord, u as AuditTelemetryRecordKind, v as AuthorizedToolExecution, C as ControlStoreConformanceFactory, w as CredentialBrokerDriver, x as CredentialGrantClaims, y as CredentialGrantHandle, z as CredentialGrantInspection, D as CredentialGrantProof, E as CredentialGrantScope, F as CredentialGrantVerification, G as CredentialIssuePayload, H as CredentialManagementCapabilities, I as CredentialManagementDriver, J as CredentialProofVerifier, K as DEFAULT_DESTINATION_POLICIES, L as DRIVER_REQUEST_API_VERSION, M as DriverConformanceSuite, N as DriverConformanceTest, O as DriverManifest, P as DriverRequestEnvelope, Q as FakeArtifactManagementState, R as FakeAuditTelemetryState, S as FakeCredentialManagementState, T as FakeDriverOptions, U as FakeIdentityAttestationState, V as FakeLoopRuntimeState, W as FakeModelManagementState, X as FakeNetworkManagementState, Y as FakePolicyApprovalState, Z as FakeStorageManagementState, _ as FakeToolManagementState, $ as GatewayMediatedLLMProviderOptions, a0 as IdentityAttestationCapabilities, a1 as IdentityAttestationManagementDriver, a2 as IdentityChallenge, a3 as IdentityDomain, a4 as IdentityEnrollment, a5 as IdentityInspection, a6 as IdentitySession, a7 as InMemoryCredentialBrokerOptions, a8 as InMemoryModelAccessHandleBrokerOptions, a9 as InProcessLoopRuntimeDriverOptions, aa as InProcessToolExecutionDriverOptions, ab as IssueCredentialGrantRequest, ac as IssueModelAccessHandleRequest, ad as LegacyLLMProviderDriverOptions, ae as LoopRunHandle, af as LoopRunOutcome, ag as LoopRunStartRequest, ah as LoopRuntimeCapabilities, ai as LoopRuntimeCheckpoint, aj as LoopRuntimeDriver, ak as LoopRuntimeManagementDriver, al as LoopRuntimePreparePayload, am as LoopRuntimePrepared, an as LoopRuntimeStartPayload, ao as ManagedArtifact, ap as ManagedArtifactMount, aq as ManagedCredentialAdapterStateStore, ar as ManagedCredentialBrokerAdapterOptions, as as ManagedCredentialGrant, at as ManagedCredentialMaterialization, au as ManagedLoopRunStatus, av as ManagedLoopRuntimeAdapterOptions, aw as ManagedLoopRuntimeExecutionRoute, ax as ManagedLoopRuntimeExecutionRouteOptions, ay as ManagedModelChunk, az as ManagedModelDescriptor, aA as ManagedModelEstimate, aB as ManagedModelGatewayAccess, aC as ManagedModelGatewayAdapterOptions, aD as ManagedModelRequest, aE as ManagedModelUsage, aF as ManagedNetworkAdapterOptions, aG as ManagedNetworkPolicy, aH as ManagedNetworkStatus, aI as ManagedReplicaHealth, aJ as ManagedServiceResolution, aK as ManagedToolDescriptor, aL as ManagedToolEvidence, aM as ManagedToolExecution, aN as ManagedToolExecutionPhase, aO as ManagedToolOutputChunk, aP as ManagedVolume, aQ as ManagedVolumeBackup, aR as ManagedVolumePublication, aS as ManagedVolumeSnapshot, aT as ManagedVolumeStage, aU as ManagedVolumeStats, aV as ModelAccessHandle, aW as ModelAccessHandleBroker, aX as ModelAccessHandleBudget, aY as ModelAccessHandleClaims, aZ as ModelGateway, a_ as ModelGatewayCallRecord, a$ as ModelGatewayExecutor, b0 as ModelGatewayGenerateRequest, b1 as ModelGatewayOptions, b2 as ModelGatewayRecorder, b3 as ModelGenerateMessage, b4 as ModelGenerateRequest, b5 as ModelHandleSigner, b6 as ModelManagementCapabilities, b7 as ModelManagementDriver, b8 as ModelProviderDataPolicy, b9 as ModelProviderDriver, ba as ModelProviderHealth, bb as ModelStreamChunk, bc as NetworkAttachRequest, bd as NetworkClassSatisfaction, be as NetworkDriver, bf as NetworkDriverCapabilities, bg as NetworkDriverHealth, bh as NetworkEnforceableFeature, bi as NetworkEnforcementLevel, bj as NetworkManagementCapabilities, bk as NetworkManagementDriver, bl as NetworkPreparePayload, bm as PolicyApprovalCapabilities, bn as PolicyApprovalManagementDriver, bo as PolicyDecision, bp as PolicyDecisionKind, bq as PolicyDecisionOutcome, br as PolicyExplanation, bs as PreparedToolExecution, bt as ResolvedManagedNetworkRequest, bu as RuntimeClassRoutingDriverOptions, bv as StorageManagementCapabilities, bw as StorageManagementDriver, bx as StorageProvisionPayload, by as ToolCatalogSnapshot, bz as ToolExecutionDriver, bA as ToolManagementCapabilities, bB as ToolManagementDriver, bC as ToolOperationApprovalBroker, bD as ToolOperationApprovalDecision, bE as ToolOperationApprovalRequest, bF as VerifyModelAccessHandleOptions, bG as artifactTrustRank, bH as assertArtifactAdmission, bI as assertClassificationAllowed, bJ as assertDriverRequestEnvelope, bK as assertManagedNetworkPolicy, bL as assertNetworkPreparePayload, bM as assertNetworkUpdatePayload, bN as base64UrlDecode, bO as base64UrlEncode, bP as canArtifactEnter, bQ as canDriverSatisfyClass, bR as canonicalDriverValue, bS as classificationRank, bT as countManagedNetworkPolicyRules, bU as createArtifactManagementConformanceSuite, bV as createAuditTelemetryConformanceSuite, bW as createControlStoreConformanceSuite, bX as createCredentialManagementConformanceSuite, bY as createExternalOrchestrationDriverConformanceSuite, bZ as createFakeArtifactManagementDriver, b_ as createFakeArtifactManagementState, b$ as createFakeAuditTelemetryManagementDriver, c0 as createFakeAuditTelemetryState, c1 as createFakeCredentialManagementDriver, c2 as createFakeCredentialManagementState, c3 as createFakeIdentityAttestationManagementDriver, c4 as createFakeIdentityAttestationState, c5 as createFakeLoopRuntimeManagementDriver, c6 as createFakeLoopRuntimeState, c7 as createFakeModelManagementDriver, c8 as createFakeModelManagementState, c9 as createFakeModelProviderDriver, ca as createFakeNetworkDriver, cb as createFakeNetworkManagementDriver, cc as createFakeNetworkManagementState, cd as createFakePolicyApprovalManagementDriver, ce as createFakePolicyApprovalState, cf as createFakeStorageManagementDriver, cg as createFakeStorageManagementState, ch as createFakeToolExecutionDriver, ci as createFakeToolManagementDriver, cj as createFakeToolManagementState, ck as createGatewayMediatedLLMProvider, cl as createIdentityAttestationConformanceSuite, cm as createInMemoryCredentialBroker, cn as createInMemoryModelAccessHandleBroker, co as createInProcessLoopRuntimeDriver, cp as createInProcessToolExecutionDriver, cq as createLoopRuntimeManagementConformanceSuite, cr as createManagedCredentialBrokerAdapter, cs as createManagedLoopRuntimeAdapter, ct as createManagedLoopRuntimeExecutionRoute, cu as createManagedModelGatewayAdapter, cv as createManagedNetworkAdapter, cw as createModelGateway, cx as createModelManagementConformanceSuite, cy as createModelProviderDriverConformanceSuite, cz as createModelProviderDriverFromLLMProvider, cA as createNetworkDriverConformanceSuite, cB as createNetworkManagementConformanceSuite, cC as createPolicyApprovalConformanceSuite, cD as createRuntimeClassRoutingDriver, cE as createStorageManagementConformanceSuite, cF as createToolCatalogConformanceSuite, cG as createToolExecutionDriverConformanceSuite, cH as createToolManagementConformanceSuite, cI as deriveArtifactTrust, cJ as featuresRequiredByClass, cK as inspectAndRecordArtifact, cL as restoreArtifactManagementState, cM as runConformanceSuite, cN as snapshotArtifactManagementState } from './orchestration-portable-BHB_YrNN.js';
|
|
16
|
+
export { F as FetchOrchestrationTransportOptions, N as NamespacedOrchestrationClientOptions, d as REMOTE_ORCHESTRATION_PROTOCOL, e as ReadOnlyOrchestrationClientOptions, f as RemoteOrchestrationClientOptions, g as RemoteOrchestrationOperation, R as RemoteOrchestrationRequest, a as RemoteOrchestrationResponse, c as RemoteOrchestrationTransport, b as RemoteOrchestrationTransportOptions, h as createFetchOrchestrationTransport, i as createNamespacedOrchestrationClient, j as createReadOnlyOrchestrationClient, k as createRemoteOrchestrationClient, l as createRemoteOrchestrationHandler } from './remoteClient-B_spK019.js';
|
|
17
|
+
export { A as AttachmentBlobWire, D as DEVICE_ORCHESTRATION_PROTOCOL, a as DEVICE_PAIRING_INVITE_PROTOCOL, b as DEVICE_PAIRING_INVITE_TTL_MS, c as DeviceOrchestrationStreamHandler, d as DeviceOrchestrationStreamHandlerInput, e as DeviceOrchestrationStreamHandlerOptions, f as DeviceOrchestrationTransportOptions, g as DevicePairingInvite, L as LIBP2P_RPC_REQUEST_TYPE, h as LIBP2P_RPC_RESPONSE_TYPE, i as LIBP2P_SYNC_REQUEST_TYPE, j as LIBP2P_SYNC_RESPONSE_TYPE, k as Libp2pDeviceSyncTransport, l as Libp2pDeviceSyncTransportOptions, m as Libp2pRpcRequest, n as Libp2pRpcResponse, o as Libp2pSyncMethod, p as Libp2pSyncRequest, q as Libp2pSyncResponse, r as LocalTrustDeviceAuthorizer, s as LocalTrustDeviceAuthorizerOptions, R as RemoteOrchestrationHandler, t as attachmentBlobFromWire, u as createDeviceOrchestrationStreamHandler, v as createDeviceOrchestrationTransport, w as createDevicePairingInvite, x as encodeDevicePairingInvite, y as isLibp2pRpcRequest, z as isLibp2pRpcResponse, B as isLibp2pSyncRequest, C as isLibp2pSyncResponse, E as parseDevicePairingInvite } from './pairingInvite-Cuz0wuq9.js';
|
|
18
|
+
export { M as MemoryDeviceNetworkService, a as MemoryDeviceNetworkServiceOptions, s as syncCloudDevices } from './syncCloudDevices-BEqwgrhD.js';
|
|
19
|
+
export { A as AgentExecutionLocation, a as AgentExecutionState, b as AttachmentBlob, C as CloudDeviceClient, c as CloudDeviceRecord, d as ConversationExecutionPlacement, D as Device, e as DeviceAccountBindingRequest, f as DeviceAuthorizer, g as DeviceCapabilities, h as DeviceConnectionGrant, i as DeviceConnectionGrantVerificationInput, j as DeviceNetworkListenOptions, k as DeviceNetworkPath, l as DeviceNetworkService, m as DevicePlatform, n as DeviceProtocolDirection, o as DeviceReachability, p as DeviceReachabilityState, q as DeviceRelayReservationToken, r as DeviceRelayReservationTokenVerificationInput, s as DeviceRpcHandler, t as DeviceRpcHandlerInput, u as DeviceSyncTransport, v as DeviceTrustMode, w as DeviceTrustStore, E as ExchangeVersionVectorResult, L as LocalDeviceIdentity, x as LocalPairingRequestOptions, M as MemeLoopDuplexStream, y as MemeLoopProtocol, P as PairingSession, z as PairingSessionDirection, B as PairingSessionStatus, S as SyncResult, T as TrustedDeviceRecord } from './types-CdFVSntj.js';
|
|
20
|
+
export { ChatMessageProjection, buildLegacyChatMessageParts, buildToolResultSummary, createAgentInstanceFromDefinition, createChatMessage, getChatMessageParts, isToolResultPart, parseLegacyToolResultContent, projectChatMessageParts } from './conversation.js';
|
|
6
21
|
import { z } from 'zod';
|
|
7
22
|
import 'ai';
|
|
8
23
|
|
|
9
24
|
/**
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 取远端当前的 versionVector,并返回对方缺失的会话元数据。
|
|
23
|
-
*/
|
|
24
|
-
exchangeVersionVector(localVersion: Record<string, number>): Promise<{
|
|
25
|
-
remoteVersion: Record<string, number>;
|
|
26
|
-
missingForRemote: ConversationMeta[];
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* 将本地缺失的 metadata 从该 peer 拉回来。
|
|
30
|
-
*/
|
|
31
|
-
pullMissingMetadata(sinceVersion: Record<string, number>): Promise<ConversationMeta[]>;
|
|
32
|
-
/**
|
|
33
|
-
* 按需拉取消息正文(TidGi / 审查单 Phase 4:消息级同步)。
|
|
34
|
-
* 返回远端有而本地 unknownMessageIds 之外的新消息。
|
|
35
|
-
*/
|
|
36
|
-
pullMissingMessages?(conversationId: string, knownMessageIds: string[]): Promise<ChatMessage[]>;
|
|
37
|
-
/**
|
|
38
|
-
* 按 contentHash 拉取附件二进制(与 `ChatMessage.attachments` / `AttachmentRef` 对齐)。
|
|
39
|
-
* 典型实现:对 peer 发 `memeloop.storage.getAttachmentBlob` RPC。
|
|
40
|
-
*/
|
|
41
|
-
pullAttachmentBlob?(contentHash: string): Promise<{
|
|
42
|
-
data: Uint8Array;
|
|
43
|
-
filename: string;
|
|
44
|
-
mimeType: string;
|
|
45
|
-
size: number;
|
|
46
|
-
} | null>;
|
|
47
|
-
}
|
|
48
|
-
interface ChatSyncEngineOptions {
|
|
49
|
-
nodeId: string;
|
|
50
|
-
storage: IAgentStorage$1;
|
|
51
|
-
peers: () => ChatSyncPeer[];
|
|
52
|
-
}
|
|
53
|
-
declare class ChatSyncEngine {
|
|
54
|
-
private readonly nodeId;
|
|
55
|
-
private readonly storage;
|
|
56
|
-
private readonly getPeers;
|
|
57
|
-
private versionVector;
|
|
58
|
-
constructor(options: ChatSyncEngineOptions);
|
|
59
|
-
/**
|
|
60
|
-
* 在本节点新产生一条消息时调用,增加本节点的 lamportClock。
|
|
61
|
-
*/
|
|
62
|
-
bumpLocalVersion(): void;
|
|
63
|
-
/**
|
|
64
|
-
* 执行一次与所有 peer 的增量同步(metadata 级别),并尽力拉取缺失消息。
|
|
65
|
-
*/
|
|
66
|
-
syncOnce(): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Anti-entropy:先 syncOnce,再对已知会话逐个向各 peer 拉取缺失消息(参考审查单「定期对账」)。
|
|
69
|
-
*/
|
|
70
|
-
antiEntropyOnce(): Promise<void>;
|
|
71
|
-
private pullMessagesForConversationFromPeers;
|
|
72
|
-
/** 从消息元数据收集 `attachments[].contentHash`,对本地缺失 BLOB 的哈希向各 peer 拉取并 `saveAttachment`。 */
|
|
73
|
-
private ensureAttachmentsFromMessages;
|
|
74
|
-
getVersionVector(): Record<string, number>;
|
|
75
|
-
getStorage(): IAgentStorage$1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface PeerNodeTransport {
|
|
79
|
-
nodeId: string;
|
|
80
|
-
exchangeVersionVector(targetNodeId: string, localVersion: Record<string, number>): Promise<{
|
|
81
|
-
remoteVersion: Record<string, number>;
|
|
82
|
-
missingForRemote: ConversationMeta[];
|
|
83
|
-
}>;
|
|
84
|
-
pullMissingMetadata(targetNodeId: string, sinceVersion: Record<string, number>): Promise<ConversationMeta[]>;
|
|
85
|
-
pullMissingMessages?(targetNodeId: string, conversationId: string, knownMessageIds: string[]): Promise<ChatMessage[]>;
|
|
86
|
-
/** 从指定节点拉取附件 BLOB(如 `memeloop.storage.getAttachmentBlob`)。 */
|
|
87
|
-
pullAttachmentBlob?(targetNodeId: string, contentHash: string): Promise<{
|
|
88
|
-
data: Uint8Array;
|
|
89
|
-
filename: string;
|
|
90
|
-
mimeType: string;
|
|
91
|
-
size: number;
|
|
92
|
-
} | null>;
|
|
93
|
-
}
|
|
94
|
-
declare class PeerNodeSyncAdapter implements ChatSyncPeer {
|
|
95
|
-
readonly nodeId: string;
|
|
96
|
-
private readonly transport;
|
|
97
|
-
constructor(nodeId: string, transport: PeerNodeTransport);
|
|
98
|
-
exchangeVersionVector(localVersion: Record<string, number>): Promise<{
|
|
99
|
-
remoteVersion: Record<string, number>;
|
|
100
|
-
missingForRemote: ConversationMeta[];
|
|
101
|
-
}>;
|
|
102
|
-
pullMissingMetadata(sinceVersion: Record<string, number>): Promise<ConversationMeta[]>;
|
|
103
|
-
pullMissingMessages(conversationId: string, knownMessageIds: string[]): Promise<ChatMessage[]>;
|
|
104
|
-
pullAttachmentBlob(contentHash: string): Promise<{
|
|
105
|
-
data: Uint8Array;
|
|
106
|
-
filename: string;
|
|
107
|
-
mimeType: string;
|
|
108
|
-
size: number;
|
|
109
|
-
} | null>;
|
|
25
|
+
* Storage conformance suite (plan 24.43).
|
|
26
|
+
*
|
|
27
|
+
* Host-agnostic behavioral checks every logical storage driver must pass.
|
|
28
|
+
* Run it in the host's own test setup (`runStorageConformance` returns a
|
|
29
|
+
* report; `assertStorageConformance` throws on the first failure summary).
|
|
30
|
+
* Drivers that implement only a subset of ports can run the relevant checks
|
|
31
|
+
* via `checks` filtering.
|
|
32
|
+
*/
|
|
33
|
+
interface StorageConformanceFailure {
|
|
34
|
+
check: string;
|
|
35
|
+
message: string;
|
|
110
36
|
}
|
|
37
|
+
interface StorageConformanceReport {
|
|
38
|
+
checks: number;
|
|
39
|
+
passed: number;
|
|
40
|
+
failures: StorageConformanceFailure[];
|
|
41
|
+
}
|
|
42
|
+
declare const STORAGE_CONFORMANCE_CHECKS: readonly ["append-and-read-messages", "insert-if-absent-dedupes", "conversation-metadata-round-trip", "list-conversations", "attachment-round-trip", "missing-definition-returns-null"];
|
|
43
|
+
type StorageConformanceCheck = (typeof STORAGE_CONFORMANCE_CHECKS)[number];
|
|
44
|
+
declare function runStorageConformance(storage: FullAgentStorage, options?: {
|
|
45
|
+
conversationId?: string;
|
|
46
|
+
checks?: readonly StorageConformanceCheck[];
|
|
47
|
+
}): Promise<StorageConformanceReport>;
|
|
48
|
+
declare function assertStorageConformance(storage: FullAgentStorage, options?: {
|
|
49
|
+
conversationId?: string;
|
|
50
|
+
checks?: readonly StorageConformanceCheck[];
|
|
51
|
+
}): Promise<void>;
|
|
111
52
|
|
|
112
53
|
/**
|
|
113
54
|
* Convert TiddlyWiki tiddler fields into memeloop AgentDefinition.
|
|
@@ -134,472 +75,6 @@ interface TiddlerFieldsForAgent {
|
|
|
134
75
|
*/
|
|
135
76
|
declare function tiddlerToAgentDefinition(tiddler: TiddlerFieldsForAgent, workspaceName?: string): AgentDefinition | null;
|
|
136
77
|
|
|
137
|
-
/**
|
|
138
|
-
* Headless agent management contracts.
|
|
139
|
-
*
|
|
140
|
-
* Environment-neutral interfaces for managing agent definitions, agent instances,
|
|
141
|
-
* conversations, prompt previews, and scheduled tasks.
|
|
142
|
-
*
|
|
143
|
-
* Designed to be consumed by:
|
|
144
|
-
* - Desktop (via Electron IPC adapters)
|
|
145
|
-
* - Cloud (via REST API adapters)
|
|
146
|
-
* - CLI (via Ink + local or remote adapters)
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
/** Attachment metadata for a wiki tiddler selected in the composer. */
|
|
150
|
-
interface WikiTiddlerAttachment {
|
|
151
|
-
workspaceName: string;
|
|
152
|
-
tiddlerTitle: string;
|
|
153
|
-
}
|
|
154
|
-
/** Data passed when a wiki tiddler chip is clicked in a message. */
|
|
155
|
-
interface WikiTiddlerClickData {
|
|
156
|
-
workspaceId: string;
|
|
157
|
-
workspaceName: string;
|
|
158
|
-
tiddlerTitle: string;
|
|
159
|
-
renderedContent?: string;
|
|
160
|
-
}
|
|
161
|
-
/** Storage contract for agent definition CRUD and template queries. */
|
|
162
|
-
interface AgentDefinitionRepository {
|
|
163
|
-
createAgentDef(agent: AgentDefinition): Promise<AgentDefinition>;
|
|
164
|
-
updateAgentDef(agent: Partial<AgentDefinition> & {
|
|
165
|
-
id: string;
|
|
166
|
-
}): Promise<AgentDefinition>;
|
|
167
|
-
getAgentDefs(): Promise<AgentDefinition[]>;
|
|
168
|
-
getAgentDef(id?: string): Promise<AgentDefinition | undefined>;
|
|
169
|
-
getAgentTemplates(): Promise<AgentDefinition[]>;
|
|
170
|
-
deleteAgentDef(id: string): Promise<void>;
|
|
171
|
-
}
|
|
172
|
-
/** Observable agent runtime metadata exposed to the UI layer. */
|
|
173
|
-
interface AgentRuntimeView {
|
|
174
|
-
id: string;
|
|
175
|
-
name: string;
|
|
176
|
-
agentDefId: string;
|
|
177
|
-
status: {
|
|
178
|
-
state: 'idle' | 'working' | 'completed' | 'failed' | 'canceled' | 'input-required';
|
|
179
|
-
progress?: string;
|
|
180
|
-
};
|
|
181
|
-
aiApiConfig?: AgentDefinition['aiApiConfig'];
|
|
182
|
-
/** If applicable, the agent definition merged with instance overrides. */
|
|
183
|
-
definition?: AgentDefinition;
|
|
184
|
-
}
|
|
185
|
-
/** Subscription callback for agent updates. */
|
|
186
|
-
type AgentUpdateListener = (update: Partial<AgentRuntimeView>) => void;
|
|
187
|
-
/** Client contract for creating, controlling, and subscribing to agent instances. */
|
|
188
|
-
interface AgentInstanceClient {
|
|
189
|
-
/**
|
|
190
|
-
* Create a new agent instance from a definition.
|
|
191
|
-
* @param agentDefinitionId The definition ID to instantiate from
|
|
192
|
-
* @param options Optional creation flags (e.g. { preview: true })
|
|
193
|
-
*/
|
|
194
|
-
createAgent(agentDefinitionId: string, options?: {
|
|
195
|
-
preview?: boolean;
|
|
196
|
-
}): Promise<{
|
|
197
|
-
id: string;
|
|
198
|
-
}>;
|
|
199
|
-
/**
|
|
200
|
-
* Fetch a full agent runtime view (messages excluded, available via conversation client).
|
|
201
|
-
*/
|
|
202
|
-
fetchAgent(agentId: string): Promise<AgentRuntimeView>;
|
|
203
|
-
/**
|
|
204
|
-
* Update an agent instance with partial data.
|
|
205
|
-
*/
|
|
206
|
-
updateAgent(agentId: string, data: Partial<AgentDefinition>): Promise<AgentRuntimeView>;
|
|
207
|
-
/**
|
|
208
|
-
* Cancel the current operation for an agent instance.
|
|
209
|
-
*/
|
|
210
|
-
cancelAgent(agentId: string): Promise<void>;
|
|
211
|
-
/**
|
|
212
|
-
* Delete an agent instance and its associated conversation.
|
|
213
|
-
*/
|
|
214
|
-
deleteAgent(agentId: string): Promise<void>;
|
|
215
|
-
/**
|
|
216
|
-
* Subscribe to live updates for an agent instance.
|
|
217
|
-
* Returns an unsubscribe function.
|
|
218
|
-
*/
|
|
219
|
-
subscribeToUpdates(agentId: string, listener: AgentUpdateListener): () => void;
|
|
220
|
-
/**
|
|
221
|
-
* Get the framework (handler) ID for an agent instance.
|
|
222
|
-
*/
|
|
223
|
-
getAgentFrameworkId(agentId: string): Promise<string>;
|
|
224
|
-
/**
|
|
225
|
-
* Get the JSON Schema for the framework configuration.
|
|
226
|
-
*/
|
|
227
|
-
getFrameworkConfigSchema(frameworkId: string): Promise<Record<string, unknown>>;
|
|
228
|
-
}
|
|
229
|
-
/** Client contract for conversation operations on an agent instance. */
|
|
230
|
-
interface AgentConversationClient {
|
|
231
|
-
/** Load all messages for an agent's conversation. */
|
|
232
|
-
getMessages(agentId: string): Promise<ChatMessage[]>;
|
|
233
|
-
/** Send a user message to the agent. Returns the list of message IDs that were appended. */
|
|
234
|
-
sendMessage(agentId: string, content: string, file?: File, wikiTiddlers?: WikiTiddlerAttachment[]): Promise<void>;
|
|
235
|
-
/** Subscribe to new message notifications. */
|
|
236
|
-
subscribeToMessages(agentId: string, listener: (message: ChatMessage) => void): () => void;
|
|
237
|
-
/** Delete an agent turn — removes the user message and all subsequent agent responses. */
|
|
238
|
-
deleteTurn(userMessageId: string): Promise<string | undefined>;
|
|
239
|
-
/** Retry an agent turn — delete agent responses and re-send the user message. */
|
|
240
|
-
retryTurn(userMessageId: string): Promise<void>;
|
|
241
|
-
}
|
|
242
|
-
/** Progress callback for prompt preview generation. */
|
|
243
|
-
interface PromptPreviewProgress {
|
|
244
|
-
progress: number;
|
|
245
|
-
step: string;
|
|
246
|
-
currentPlugin?: string;
|
|
247
|
-
}
|
|
248
|
-
/** Result of a prompt preview generation. */
|
|
249
|
-
interface PromptPreviewResult {
|
|
250
|
-
flatPrompts: unknown[];
|
|
251
|
-
processedPrompts: unknown[];
|
|
252
|
-
}
|
|
253
|
-
/** Client contract for generating prompt previews. */
|
|
254
|
-
interface PromptPreviewClient {
|
|
255
|
-
/**
|
|
256
|
-
* Generate a preview of the prompt tree for the given agent state.
|
|
257
|
-
* @param agentFrameworkConfig The agent's framework configuration
|
|
258
|
-
* @param messages Current conversation messages
|
|
259
|
-
* @param inputText Optional input text to include in the preview
|
|
260
|
-
* @param onProgress Optional progress callback
|
|
261
|
-
*/
|
|
262
|
-
generatePreview(agentFrameworkConfig: AgentFrameworkConfig, messages: ChatMessage[], inputText?: string, onProgress?: (progress: PromptPreviewProgress) => void): Promise<PromptPreviewResult | null>;
|
|
263
|
-
}
|
|
264
|
-
/** Scheduled task input. */
|
|
265
|
-
interface CreateScheduledTaskInput {
|
|
266
|
-
agentInstanceId: string;
|
|
267
|
-
agentDefinitionId: string;
|
|
268
|
-
name: string;
|
|
269
|
-
scheduleKind: 'interval' | 'cron' | 'at';
|
|
270
|
-
schedule: {
|
|
271
|
-
kind: 'interval';
|
|
272
|
-
intervalSeconds: number;
|
|
273
|
-
} | {
|
|
274
|
-
kind: 'cron';
|
|
275
|
-
expression: string;
|
|
276
|
-
timezone?: string;
|
|
277
|
-
} | {
|
|
278
|
-
kind: 'at';
|
|
279
|
-
wakeAtISO: string;
|
|
280
|
-
};
|
|
281
|
-
payload?: {
|
|
282
|
-
message: string;
|
|
283
|
-
};
|
|
284
|
-
activeHoursStart?: string;
|
|
285
|
-
activeHoursEnd?: string;
|
|
286
|
-
createdBy?: string;
|
|
287
|
-
enabled?: boolean;
|
|
288
|
-
}
|
|
289
|
-
/** Scheduled task model. */
|
|
290
|
-
interface ScheduledTask {
|
|
291
|
-
id: string;
|
|
292
|
-
agentInstanceId: string;
|
|
293
|
-
agentDefinitionId: string;
|
|
294
|
-
name: string;
|
|
295
|
-
schedule: CreateScheduledTaskInput['schedule'];
|
|
296
|
-
payload?: {
|
|
297
|
-
message?: string;
|
|
298
|
-
};
|
|
299
|
-
activeHoursStart?: string;
|
|
300
|
-
activeHoursEnd?: string;
|
|
301
|
-
enabled: boolean;
|
|
302
|
-
createdBy?: string;
|
|
303
|
-
}
|
|
304
|
-
/** Client contract for managing scheduled tasks. */
|
|
305
|
-
interface ScheduledTaskClient {
|
|
306
|
-
listScheduledTasksForAgent(agentInstanceId: string): Promise<ScheduledTask[]>;
|
|
307
|
-
createScheduledTask(input: CreateScheduledTaskInput): Promise<ScheduledTask>;
|
|
308
|
-
updateScheduledTask(id: string, input: Partial<CreateScheduledTaskInput>): Promise<ScheduledTask>;
|
|
309
|
-
deleteScheduledTask(id: string): Promise<void>;
|
|
310
|
-
getCronPreviewDates(expression: string, timezone?: string, count?: number): Promise<string[]>;
|
|
311
|
-
}
|
|
312
|
-
/** State for the "Create New Agent" wizard. */
|
|
313
|
-
interface AgentCreationState {
|
|
314
|
-
/** Current step index in the creation wizard. */
|
|
315
|
-
currentStep: number;
|
|
316
|
-
/** Agent name entered by the user. */
|
|
317
|
-
agentName: string;
|
|
318
|
-
/** Selected template definition, if any. */
|
|
319
|
-
selectedTemplate: AgentDefinition | null;
|
|
320
|
-
/** Temporary agent definition being built. */
|
|
321
|
-
temporaryAgentDefinition: AgentDefinition | null;
|
|
322
|
-
/** ID of the preview agent instance created for testing. */
|
|
323
|
-
previewAgentId: string | null;
|
|
324
|
-
/** Whether a loading operation is in progress. */
|
|
325
|
-
isLoading: boolean;
|
|
326
|
-
/** JSON Schema for the selected agent framework, if loaded. */
|
|
327
|
-
promptSchema: Record<string, unknown> | null;
|
|
328
|
-
}
|
|
329
|
-
/** State for the "Edit Agent Definition" view. */
|
|
330
|
-
interface AgentDefinitionEditorState {
|
|
331
|
-
/** The agent definition being edited. */
|
|
332
|
-
agentDefinition: AgentDefinition | null;
|
|
333
|
-
/** Agent name. */
|
|
334
|
-
agentName: string;
|
|
335
|
-
/** ID of the preview agent instance. */
|
|
336
|
-
previewAgentId: string | null;
|
|
337
|
-
/** Whether a loading operation is in progress. */
|
|
338
|
-
isLoading: boolean;
|
|
339
|
-
/** Whether a save operation is in progress. */
|
|
340
|
-
isSaving: boolean;
|
|
341
|
-
/** JSON Schema for the selected agent framework, if loaded. */
|
|
342
|
-
promptSchema: Record<string, unknown> | null;
|
|
343
|
-
}
|
|
344
|
-
/** State for the prompt preview/edit dialog. */
|
|
345
|
-
interface PromptPreviewDialogState {
|
|
346
|
-
open: boolean;
|
|
347
|
-
baseMode: 'preview' | 'edit';
|
|
348
|
-
activeTab: 'flat' | 'tree';
|
|
349
|
-
loading: boolean;
|
|
350
|
-
progress: number;
|
|
351
|
-
currentStep: string;
|
|
352
|
-
currentPlugin: string | null;
|
|
353
|
-
result: PromptPreviewResult | null;
|
|
354
|
-
lastUpdated: Date | null;
|
|
355
|
-
formFieldsToScrollTo: string[];
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* AgentSessionController — headless controller for an active agent conversation session.
|
|
360
|
-
*
|
|
361
|
-
* Manages agent runtime state, message sending, streaming, delete/retry turns,
|
|
362
|
-
* and subscription to live agent updates.
|
|
363
|
-
*
|
|
364
|
-
* No React, DOM, Electron, MUI, Zustand, or RxJS dependency.
|
|
365
|
-
*/
|
|
366
|
-
|
|
367
|
-
/** Read-only snapshot of the session state. */
|
|
368
|
-
interface AgentSessionSnapshot {
|
|
369
|
-
agent: AgentRuntimeView | null;
|
|
370
|
-
loading: boolean;
|
|
371
|
-
error: Error | null;
|
|
372
|
-
messages: ChatMessage[];
|
|
373
|
-
orderedMessageIds: string[];
|
|
374
|
-
streamingMessageIds: Set<string>;
|
|
375
|
-
}
|
|
376
|
-
/** Listener for snapshot changes. */
|
|
377
|
-
type AgentSessionListener = (snapshot: AgentSessionSnapshot) => void;
|
|
378
|
-
/** Options for creating an AgentSessionController. */
|
|
379
|
-
interface AgentSessionControllerOptions {
|
|
380
|
-
agentInstanceClient: AgentInstanceClient;
|
|
381
|
-
conversationClient: AgentConversationClient;
|
|
382
|
-
/** Polling interval in ms for agent status updates. Default 500. */
|
|
383
|
-
pollInterval?: number;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Headless controller for an agent conversation session.
|
|
387
|
-
*
|
|
388
|
-
* Call {@link start} to load an agent, then {@link subscribe} to receive snapshot
|
|
389
|
-
* updates. Use {@link sendMessage}, {@link deleteTurn}, {@link retryTurn}, {@link cancel}
|
|
390
|
-
* to drive the conversation.
|
|
391
|
-
*
|
|
392
|
-
* Host UI frameworks (React, Ink) subscribe via {@link subscribe} and render
|
|
393
|
-
* the snapshot.
|
|
394
|
-
*/
|
|
395
|
-
declare class AgentSessionController {
|
|
396
|
-
private readonly options;
|
|
397
|
-
private listener;
|
|
398
|
-
private snapshot;
|
|
399
|
-
private unsubAgentUpdates;
|
|
400
|
-
private unsubMessages;
|
|
401
|
-
private pollingTimer;
|
|
402
|
-
private agentId;
|
|
403
|
-
constructor(options: AgentSessionControllerOptions);
|
|
404
|
-
/**
|
|
405
|
-
* Start a session for the given agent ID.
|
|
406
|
-
* Fetches the agent, subscribes to live updates, and loads messages.
|
|
407
|
-
*/
|
|
408
|
-
start(agentId: string): Promise<void>;
|
|
409
|
-
/** Stop the session and clean up subscriptions. */
|
|
410
|
-
stop(): void;
|
|
411
|
-
/** Send a user message. */
|
|
412
|
-
sendMessage(content: string, file?: File, wikiTiddlers?: WikiTiddlerAttachment[]): Promise<void>;
|
|
413
|
-
/** Cancel the current agent operation. */
|
|
414
|
-
cancel(): Promise<void>;
|
|
415
|
-
/** Delete a turn starting at the given user message ID. */
|
|
416
|
-
deleteTurn(userMessageId: string): Promise<string | undefined>;
|
|
417
|
-
/** Retry a turn starting at the given user message ID. */
|
|
418
|
-
retryTurn(userMessageId: string): Promise<void>;
|
|
419
|
-
/** Subscribe to snapshot changes. Returns unsubscribe function. */
|
|
420
|
-
subscribe(listener: AgentSessionListener): () => void;
|
|
421
|
-
/** Get current snapshot without subscribing. */
|
|
422
|
-
getSnapshot(): AgentSessionSnapshot;
|
|
423
|
-
private emitPartial;
|
|
424
|
-
private handleAgentUpdate;
|
|
425
|
-
private handleNewMessage;
|
|
426
|
-
private startPolling;
|
|
427
|
-
private stopPolling;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* AgentDefinitionEditorController — headless controller for editing an agent definition.
|
|
432
|
-
*
|
|
433
|
-
* Manages definition loading, autosave, schema loading, preview agent lifecycle,
|
|
434
|
-
* and scheduled task CRUD.
|
|
435
|
-
*
|
|
436
|
-
* No React, DOM, Electron, MUI, Zustand, or RxJS dependency.
|
|
437
|
-
*/
|
|
438
|
-
|
|
439
|
-
/** Partial state emitted to the listener. */
|
|
440
|
-
type EditorStateChange = Partial<AgentDefinitionEditorState>;
|
|
441
|
-
/** Listener for editor state changes. */
|
|
442
|
-
type EditorStateListener = (change: EditorStateChange) => void;
|
|
443
|
-
/** Schedule editor sub-state for the UI layer. */
|
|
444
|
-
interface ScheduleEditorState {
|
|
445
|
-
mode: 'none' | 'interval' | 'daily' | 'cron';
|
|
446
|
-
intervalValue: number;
|
|
447
|
-
intervalUnit: 's' | 'min' | 'h';
|
|
448
|
-
dailyTime: string;
|
|
449
|
-
activeHoursStart: string;
|
|
450
|
-
activeHoursEnd: string;
|
|
451
|
-
cronExpression: string;
|
|
452
|
-
timezone: string;
|
|
453
|
-
message: string;
|
|
454
|
-
existingTaskId?: string;
|
|
455
|
-
}
|
|
456
|
-
/** Options for creating an AgentDefinitionEditorController. */
|
|
457
|
-
interface AgentDefinitionEditorControllerOptions {
|
|
458
|
-
definitionRepository: AgentDefinitionRepository;
|
|
459
|
-
agentInstanceClient: AgentInstanceClient;
|
|
460
|
-
scheduledTaskClient: ScheduledTaskClient;
|
|
461
|
-
/** Debounce interval for autosave in ms. Default 1000. */
|
|
462
|
-
autosaveDebounceMs?: number;
|
|
463
|
-
}
|
|
464
|
-
/**
|
|
465
|
-
* Headless controller for editing an agent definition.
|
|
466
|
-
*
|
|
467
|
-
* Call {@link loadDefinition} to start, then {@link subscribe} for state updates.
|
|
468
|
-
*/
|
|
469
|
-
declare class AgentDefinitionEditorController {
|
|
470
|
-
private readonly options;
|
|
471
|
-
private listener;
|
|
472
|
-
private state;
|
|
473
|
-
private autosaveTimer;
|
|
474
|
-
constructor(options: AgentDefinitionEditorControllerOptions);
|
|
475
|
-
/** Load an agent definition and its prompt schema. */
|
|
476
|
-
loadDefinition(definitionId: string): Promise<void>;
|
|
477
|
-
/** Update the agent definition field. Triggers debounced autosave. */
|
|
478
|
-
updateDefinition(change: Partial<AgentDefinition> & {
|
|
479
|
-
id: string;
|
|
480
|
-
}): void;
|
|
481
|
-
/** Force an immediate save to the repository. */
|
|
482
|
-
saveNow(): Promise<void>;
|
|
483
|
-
/** Reload the prompt schema for a framework ID. */
|
|
484
|
-
reloadSchema(frameworkId: string): Promise<void>;
|
|
485
|
-
/** Get or create a preview agent instance tied to this definition. */
|
|
486
|
-
private findOrCreatePreviewAgent;
|
|
487
|
-
loadScheduledTasks(): Promise<ScheduledTask[]>;
|
|
488
|
-
saveScheduledTask(input: CreateScheduledTaskInput): Promise<ScheduledTask>;
|
|
489
|
-
deleteScheduledTask(taskId: string): Promise<void>;
|
|
490
|
-
subscribe(listener: EditorStateListener): () => void;
|
|
491
|
-
getState(): AgentDefinitionEditorState;
|
|
492
|
-
private emit;
|
|
493
|
-
private scheduleAutosave;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* AgentCreationController — headless controller for the "Create New Agent" wizard.
|
|
498
|
-
*
|
|
499
|
-
* Manages creation wizard state: current step, template selection, temporary
|
|
500
|
-
* agent definition lifecycle, and preview agent setup.
|
|
501
|
-
*
|
|
502
|
-
* No React, DOM, Electron, MUI, Zustand, or RxJS dependency.
|
|
503
|
-
*/
|
|
504
|
-
|
|
505
|
-
/** Listener for creation state changes. */
|
|
506
|
-
type CreationStateListener = (state: AgentCreationState) => void;
|
|
507
|
-
/** Options for creating an AgentCreationController. */
|
|
508
|
-
interface AgentCreationControllerOptions {
|
|
509
|
-
definitionRepository: AgentDefinitionRepository;
|
|
510
|
-
agentInstanceClient: AgentInstanceClient;
|
|
511
|
-
/** Default framework ID for new agents. */
|
|
512
|
-
defaultFrameworkId?: string;
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
* Headless controller for the agent creation wizard.
|
|
516
|
-
*
|
|
517
|
-
* Call {@link start}, {@link selectTemplate}, {@link nextStep}, etc. to drive
|
|
518
|
-
* the wizard. Subscribe via {@link subscribe} for state updates.
|
|
519
|
-
*/
|
|
520
|
-
declare class AgentCreationController {
|
|
521
|
-
private readonly options;
|
|
522
|
-
private listener;
|
|
523
|
-
private state;
|
|
524
|
-
constructor(options: AgentCreationControllerOptions);
|
|
525
|
-
/** Initialize the creation wizard, optionally from a saved tab state. */
|
|
526
|
-
start(definitionId?: string, templateDefinitionId?: string): Promise<void>;
|
|
527
|
-
/** Select a template for the new agent. */
|
|
528
|
-
selectTemplate(template: AgentDefinition): void;
|
|
529
|
-
/** Update the agent name. */
|
|
530
|
-
setAgentName(name: string): void;
|
|
531
|
-
/** Advance to the next wizard step. */
|
|
532
|
-
nextStep(): void;
|
|
533
|
-
/** Go back to the previous wizard step. */
|
|
534
|
-
previousStep(): void;
|
|
535
|
-
/** Set the current wizard step directly. */
|
|
536
|
-
setStep(step: number): void;
|
|
537
|
-
/** Update the temporary agent definition. */
|
|
538
|
-
updateTemporaryDefinition(change: Partial<AgentDefinition>): void;
|
|
539
|
-
/** Set the prompt schema for the selected framework. */
|
|
540
|
-
setPromptSchema(schema: Record<string, unknown> | null): void;
|
|
541
|
-
/**
|
|
542
|
-
* Create a preview agent instance for the chat-preview step.
|
|
543
|
-
* Should be called when entering step 2 (or the chat preview step).
|
|
544
|
-
*/
|
|
545
|
-
createPreviewAgent(definitionId: string): Promise<void>;
|
|
546
|
-
/**
|
|
547
|
-
* Finalize creation: persist the temporary definition and create the actual
|
|
548
|
-
* agent instance. Returns the final agent instance ID, or null on failure.
|
|
549
|
-
*/
|
|
550
|
-
finalize(): Promise<string | null>;
|
|
551
|
-
/** Clean up temporary resources. */
|
|
552
|
-
cleanup(): Promise<void>;
|
|
553
|
-
subscribe(listener: CreationStateListener): () => void;
|
|
554
|
-
getState(): AgentCreationState;
|
|
555
|
-
private emit;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* PromptPreviewController — headless controller for generating prompt previews.
|
|
560
|
-
*
|
|
561
|
-
* Manages preview dialog state, progress tracking, and result accumulation.
|
|
562
|
-
*
|
|
563
|
-
* No React, DOM, Electron, MUI, Zustand, or RxJS dependency.
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
/** Listener for preview dialog state changes. */
|
|
567
|
-
type PreviewDialogListener = (state: PromptPreviewDialogState) => void;
|
|
568
|
-
/** Options for creating a PromptPreviewController. */
|
|
569
|
-
interface PromptPreviewControllerOptions {
|
|
570
|
-
previewClient: PromptPreviewClient;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* Headless controller for the prompt preview/edit dialog.
|
|
574
|
-
*
|
|
575
|
-
* Call {@link open}, {@link close}, {@link generate} to drive the dialog.
|
|
576
|
-
* Subscribe via {@link subscribe} for state updates.
|
|
577
|
-
*/
|
|
578
|
-
declare class PromptPreviewController {
|
|
579
|
-
private readonly options;
|
|
580
|
-
private listener;
|
|
581
|
-
private state;
|
|
582
|
-
constructor(options: PromptPreviewControllerOptions);
|
|
583
|
-
/** Open the dialog with an optional base mode. */
|
|
584
|
-
open(baseMode?: 'preview' | 'edit'): void;
|
|
585
|
-
/** Close the dialog. */
|
|
586
|
-
close(): void;
|
|
587
|
-
/** Set the active tab in the dialog. */
|
|
588
|
-
setActiveTab(tab: 'flat' | 'tree'): void;
|
|
589
|
-
/** Set form fields to scroll to (for edit mode navigation). */
|
|
590
|
-
setFormFieldsToScrollTo(fieldPaths: string[]): void;
|
|
591
|
-
/**
|
|
592
|
-
* Generate a preview of the prompt tree.
|
|
593
|
-
* @param agentFrameworkConfig The agent's framework configuration
|
|
594
|
-
* @param messages Current conversation messages
|
|
595
|
-
* @param inputText Optional input text to include in the preview
|
|
596
|
-
*/
|
|
597
|
-
generate(agentFrameworkConfig: AgentFrameworkConfig, messages: ChatMessage[], inputText?: string): Promise<PromptPreviewResult | null>;
|
|
598
|
-
subscribe(listener: PreviewDialogListener): () => void;
|
|
599
|
-
getState(): PromptPreviewDialogState;
|
|
600
|
-
private emit;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
78
|
/**
|
|
604
79
|
* Git HTTP 反向代理目标校验:降低 SSRF 风险(内网/metadata 等)。
|
|
605
80
|
* 仍依赖 getBackendUrl 返回可信基础 URL;此处拦截明显危险的解析结果。
|
|
@@ -626,701 +101,8 @@ declare const buildMemeloopUri: typeof buildMemeloopFileUri;
|
|
|
626
101
|
*/
|
|
627
102
|
declare function parseMemeloopUri(uri: string): ParsedMemeloopUri | null;
|
|
628
103
|
|
|
629
|
-
|
|
630
|
-
type
|
|
631
|
-
type DeviceReachabilityState = 'nearby' | 'online' | 'offline' | 'connecting';
|
|
632
|
-
type DeviceNetworkPath = 'lan' | 'direct' | 'relay';
|
|
633
|
-
type DeviceProtocolDirection = 'inbound' | 'outbound';
|
|
634
|
-
type PairingSessionDirection = 'inbound' | 'outbound';
|
|
635
|
-
type PairingSessionStatus = 'pending' | 'accepted' | 'rejected' | 'expired';
|
|
636
|
-
type MemeLoopProtocol = '/memeloop/rpc/1.0.0' | '/memeloop/sync/1.0.0' | '/memeloop/agent/1.0.0' | '/memeloop/pairing/1.0.0';
|
|
637
|
-
interface DeviceCapabilities {
|
|
638
|
-
tools: string[];
|
|
639
|
-
mcpServers: string[];
|
|
640
|
-
hasWiki: boolean;
|
|
641
|
-
agentLoop?: boolean;
|
|
642
|
-
imChannels: string[];
|
|
643
|
-
wikis: Array<{
|
|
644
|
-
wikiId: string;
|
|
645
|
-
title?: string;
|
|
646
|
-
pathHint?: string;
|
|
647
|
-
}>;
|
|
648
|
-
}
|
|
649
|
-
interface LocalDeviceIdentity {
|
|
650
|
-
peerId: string;
|
|
651
|
-
publicKeyMultibase: string;
|
|
652
|
-
privateKeyRef: string;
|
|
653
|
-
privateKeyPkcs8Base64Url?: string;
|
|
654
|
-
privateKeyRawSeedBase64Url?: string;
|
|
655
|
-
createdAt: number;
|
|
656
|
-
deviceName: string;
|
|
657
|
-
platform: DevicePlatform;
|
|
658
|
-
}
|
|
659
|
-
interface DeviceNetworkListenOptions {
|
|
660
|
-
addresses: string[];
|
|
661
|
-
announce?: string[];
|
|
662
|
-
}
|
|
663
|
-
interface DeviceReachability {
|
|
664
|
-
state: DeviceReachabilityState;
|
|
665
|
-
paths: DeviceNetworkPath[];
|
|
666
|
-
}
|
|
667
|
-
interface Device {
|
|
668
|
-
peerId: string;
|
|
669
|
-
displayName: string;
|
|
670
|
-
platform: DevicePlatform;
|
|
671
|
-
trustMode: DeviceTrustMode;
|
|
672
|
-
trusted?: boolean;
|
|
673
|
-
reachability: DeviceReachability;
|
|
674
|
-
capabilities: DeviceCapabilities;
|
|
675
|
-
multiaddrs?: string[];
|
|
676
|
-
lastSeen?: number;
|
|
677
|
-
}
|
|
678
|
-
interface TrustedDeviceRecord {
|
|
679
|
-
peerId: string;
|
|
680
|
-
publicKeyMultibase: string;
|
|
681
|
-
deviceName: string;
|
|
682
|
-
platform: DevicePlatform;
|
|
683
|
-
trustMode: DeviceTrustMode;
|
|
684
|
-
accountId?: string;
|
|
685
|
-
createdAt: number;
|
|
686
|
-
lastSeen?: number;
|
|
687
|
-
revokedAt?: number;
|
|
688
|
-
}
|
|
689
|
-
interface DeviceTrustStore {
|
|
690
|
-
loadTrustedDevices(): Promise<TrustedDeviceRecord[]>;
|
|
691
|
-
saveTrustedDevice(record: TrustedDeviceRecord): Promise<void>;
|
|
692
|
-
removeTrustedDevice(peerId: string): Promise<void>;
|
|
693
|
-
}
|
|
694
|
-
interface DeviceAccountBindingRequest {
|
|
695
|
-
peerId: string;
|
|
696
|
-
publicKeyMultibase: string;
|
|
697
|
-
deviceName: string;
|
|
698
|
-
platform: DevicePlatform;
|
|
699
|
-
cloudNonce: string;
|
|
700
|
-
signature: string;
|
|
701
|
-
}
|
|
702
|
-
interface CloudDeviceRecord {
|
|
703
|
-
accountId: string;
|
|
704
|
-
peerId: string;
|
|
705
|
-
publicKeyMultibase: string;
|
|
706
|
-
deviceName: string;
|
|
707
|
-
platform: DevicePlatform;
|
|
708
|
-
capabilities: DeviceCapabilities;
|
|
709
|
-
multiaddrs: string[];
|
|
710
|
-
relayReservations: string[];
|
|
711
|
-
lastSeen: number;
|
|
712
|
-
revokedAt?: number;
|
|
713
|
-
}
|
|
714
|
-
interface DeviceConnectionGrant {
|
|
715
|
-
issuer: 'memeloop-cloud';
|
|
716
|
-
accountId: string;
|
|
717
|
-
subjectPeerId: string;
|
|
718
|
-
allowedPeerIds: string[];
|
|
719
|
-
issuedAt: number;
|
|
720
|
-
expiresAt: number;
|
|
721
|
-
signature: string;
|
|
722
|
-
}
|
|
723
|
-
interface DeviceConnectionGrantVerificationInput {
|
|
724
|
-
grant: DeviceConnectionGrant;
|
|
725
|
-
verificationPublicKeyMultibase: string;
|
|
726
|
-
subjectPeerId?: string;
|
|
727
|
-
allowedPeerId?: string;
|
|
728
|
-
now?: number;
|
|
729
|
-
}
|
|
730
|
-
interface DeviceRelayReservationToken {
|
|
731
|
-
issuer: 'memeloop-cloud';
|
|
732
|
-
accountId: string;
|
|
733
|
-
peerId: string;
|
|
734
|
-
relayMultiaddrs: string[];
|
|
735
|
-
bootstrapMultiaddrs: string[];
|
|
736
|
-
issuedAt: number;
|
|
737
|
-
expiresAt: number;
|
|
738
|
-
signature: string;
|
|
739
|
-
}
|
|
740
|
-
interface DeviceRelayReservationTokenVerificationInput {
|
|
741
|
-
token: DeviceRelayReservationToken;
|
|
742
|
-
verificationPublicKeyMultibase: string;
|
|
743
|
-
peerId?: string;
|
|
744
|
-
now?: number;
|
|
745
|
-
}
|
|
746
|
-
interface PairingSession {
|
|
747
|
-
sessionId: string;
|
|
748
|
-
localPeerId: string;
|
|
749
|
-
remotePeerId: string;
|
|
750
|
-
remotePublicKeyMultibase: string;
|
|
751
|
-
remoteDeviceName: string;
|
|
752
|
-
remotePlatform: DevicePlatform;
|
|
753
|
-
remoteCapabilities: DeviceCapabilities;
|
|
754
|
-
remoteMultiaddrs: string[];
|
|
755
|
-
direction: PairingSessionDirection;
|
|
756
|
-
status: PairingSessionStatus;
|
|
757
|
-
confirmCode: string;
|
|
758
|
-
createdAt: number;
|
|
759
|
-
expiresAt: number;
|
|
760
|
-
}
|
|
761
|
-
interface LocalPairingRequestOptions {
|
|
762
|
-
multiaddrs?: string[];
|
|
763
|
-
}
|
|
764
|
-
interface SyncResult {
|
|
765
|
-
ok: boolean;
|
|
766
|
-
peerId: string;
|
|
767
|
-
syncedAt: number;
|
|
768
|
-
}
|
|
769
|
-
interface MemeLoopDuplexStream {
|
|
770
|
-
source: AsyncIterable<Uint8Array>;
|
|
771
|
-
sink(source: AsyncIterable<Uint8Array>): Promise<void>;
|
|
772
|
-
close(): Promise<void>;
|
|
773
|
-
}
|
|
774
|
-
interface DeviceRpcHandlerInput {
|
|
775
|
-
remotePeerId: string;
|
|
776
|
-
method: string;
|
|
777
|
-
parameters: unknown;
|
|
778
|
-
presentedGrant?: DeviceConnectionGrant;
|
|
779
|
-
}
|
|
780
|
-
type DeviceRpcHandler = (input: DeviceRpcHandlerInput) => Promise<unknown>;
|
|
781
|
-
type AgentExecutionLocation = {
|
|
782
|
-
kind: 'local';
|
|
783
|
-
} | {
|
|
784
|
-
kind: 'device';
|
|
785
|
-
peerId: string;
|
|
786
|
-
};
|
|
787
|
-
type AgentExecutionState = 'idle' | 'running' | 'stopping';
|
|
788
|
-
interface ConversationExecutionPlacement {
|
|
789
|
-
conversationId: string;
|
|
790
|
-
location: AgentExecutionLocation;
|
|
791
|
-
state: AgentExecutionState;
|
|
792
|
-
updatedAt: number;
|
|
793
|
-
}
|
|
794
|
-
interface DeviceAuthorizer {
|
|
795
|
-
canOpenProtocol(input: {
|
|
796
|
-
remotePeerId: string;
|
|
797
|
-
protocol: MemeLoopProtocol;
|
|
798
|
-
direction?: DeviceProtocolDirection;
|
|
799
|
-
presentedGrant?: DeviceConnectionGrant;
|
|
800
|
-
}): Promise<boolean>;
|
|
801
|
-
}
|
|
802
|
-
interface CloudDeviceClient {
|
|
803
|
-
listDevices(): Promise<CloudDeviceRecord[]>;
|
|
804
|
-
getConnectionGrantPublicKey(): Promise<{
|
|
805
|
-
issuer: string;
|
|
806
|
-
publicKeyMultibase: string;
|
|
807
|
-
}>;
|
|
808
|
-
createConnectionGrant(input: {
|
|
809
|
-
subjectPeerId: string;
|
|
810
|
-
allowedPeerIds: string[];
|
|
811
|
-
}): Promise<DeviceConnectionGrant>;
|
|
812
|
-
createRelayReservation(input: {
|
|
813
|
-
peerId: string;
|
|
814
|
-
}): Promise<DeviceRelayReservationToken>;
|
|
815
|
-
createBindingNonce(): Promise<{
|
|
816
|
-
nonce: string;
|
|
817
|
-
accountId: string;
|
|
818
|
-
expiresAt: string;
|
|
819
|
-
}>;
|
|
820
|
-
registerDevice(input: DeviceAccountBindingRequest & {
|
|
821
|
-
identity: LocalDeviceIdentity;
|
|
822
|
-
capabilities: DeviceCapabilities;
|
|
823
|
-
multiaddrs: string[];
|
|
824
|
-
relayReservations: string[];
|
|
825
|
-
}): Promise<{
|
|
826
|
-
ok: boolean;
|
|
827
|
-
peerId: string;
|
|
828
|
-
}>;
|
|
829
|
-
heartbeat(input: {
|
|
830
|
-
peerId: string;
|
|
831
|
-
capabilities: DeviceCapabilities;
|
|
832
|
-
multiaddrs: string[];
|
|
833
|
-
relayReservations: string[];
|
|
834
|
-
}): Promise<{
|
|
835
|
-
ok: boolean;
|
|
836
|
-
}>;
|
|
837
|
-
}
|
|
838
|
-
interface DeviceNetworkService {
|
|
839
|
-
start(): Promise<void>;
|
|
840
|
-
stop(): Promise<void>;
|
|
841
|
-
getLocalDevice(): Promise<Device>;
|
|
842
|
-
listDevices(): Promise<Device[]>;
|
|
843
|
-
observeDevices(listener: (devices: Device[]) => void): () => void;
|
|
844
|
-
listPairingSessions(): Promise<PairingSession[]>;
|
|
845
|
-
observePairingSessions(listener: (sessions: PairingSession[]) => void): () => void;
|
|
846
|
-
requestLocalPairing(peerId: string, options?: LocalPairingRequestOptions): Promise<PairingSession>;
|
|
847
|
-
acceptPairing(sessionId: string): Promise<void>;
|
|
848
|
-
rejectPairing(sessionId: string): Promise<void>;
|
|
849
|
-
removeTrustedDevice(peerId: string): Promise<void>;
|
|
850
|
-
openStream(peerId: string, protocol: MemeLoopProtocol, presentedGrant?: DeviceConnectionGrant): Promise<MemeLoopDuplexStream>;
|
|
851
|
-
sendRpc<T>(peerId: string, method: string, parameters: unknown, presentedGrant?: DeviceConnectionGrant): Promise<T>;
|
|
852
|
-
syncWithDevice(peerId: string, presentedGrant?: DeviceConnectionGrant): Promise<SyncResult>;
|
|
853
|
-
/** Configure Cloud connection. When set, syncCloudDevices() and CloudDeviceAuthorizer become available. */
|
|
854
|
-
configureCloud?(config: {
|
|
855
|
-
cloudUrl: string;
|
|
856
|
-
accessToken: string;
|
|
857
|
-
}): void;
|
|
858
|
-
/** Apply a Cloud-signed private relay admission token and connect to advertised relay/bootstrap peers. */
|
|
859
|
-
configureRelayReservation?(token: DeviceRelayReservationToken): Promise<void>;
|
|
860
|
-
/** Fetch devices from Cloud directory and persist into local trust store. Returns synced devices. */
|
|
861
|
-
syncCloudDevices?(): Promise<CloudDeviceRecord[]>;
|
|
862
|
-
}
|
|
863
|
-
interface ExchangeVersionVectorResult {
|
|
864
|
-
remoteVersion: VersionVector;
|
|
865
|
-
missingForRemote: ConversationMeta[];
|
|
866
|
-
}
|
|
867
|
-
interface AttachmentBlob {
|
|
868
|
-
data: Uint8Array;
|
|
869
|
-
filename: string;
|
|
870
|
-
mimeType: string;
|
|
871
|
-
size: number;
|
|
872
|
-
}
|
|
873
|
-
interface DeviceSyncTransport {
|
|
874
|
-
listPeers(): Promise<Device[]>;
|
|
875
|
-
exchangeVersionVector(peerId: string, localVersion: VersionVector): Promise<ExchangeVersionVectorResult>;
|
|
876
|
-
pullMissingMetadata(peerId: string, sinceVersion: VersionVector): Promise<ConversationMeta[]>;
|
|
877
|
-
pullMissingMessages(peerId: string, conversationId: string, knownMessageIds: string[]): Promise<ChatMessage[]>;
|
|
878
|
-
pullAttachmentBlob(peerId: string, contentHash: string): Promise<AttachmentBlob | null>;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
interface AgentRuntimeDeviceRpcHandlerOptions {
|
|
882
|
-
runtime: Pick<MemeLoopRuntime, 'createAgent' | 'sendMessage' | 'cancelAgent'>;
|
|
883
|
-
storage: IAgentStorage$1;
|
|
884
|
-
getAgentDefinitions?: () => AgentDefinition[] | Promise<AgentDefinition[]>;
|
|
885
|
-
localNodeId?: string;
|
|
886
|
-
}
|
|
887
|
-
declare function createAgentRuntimeDeviceRpcHandler(options: AgentRuntimeDeviceRpcHandlerOptions): DeviceRpcHandler;
|
|
888
|
-
|
|
889
|
-
interface CloudDeviceAuthorizerOptions {
|
|
890
|
-
localPeerId: string;
|
|
891
|
-
grantVerificationPublicKeyMultibase: string;
|
|
892
|
-
getTrustedDevice?: (peerId: string) => TrustedDeviceRecord | undefined;
|
|
893
|
-
allowPairingProtocol?: boolean;
|
|
894
|
-
now?: () => number;
|
|
895
|
-
}
|
|
896
|
-
declare class CloudDeviceAuthorizer implements DeviceAuthorizer {
|
|
897
|
-
private readonly options;
|
|
898
|
-
private readonly allowPairingProtocol;
|
|
899
|
-
constructor(options: CloudDeviceAuthorizerOptions);
|
|
900
|
-
canOpenProtocol(input: Parameters<DeviceAuthorizer['canOpenProtocol']>[0]): Promise<boolean>;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
interface Libp2pDeviceNetworkServiceOptions {
|
|
904
|
-
identity: LocalDeviceIdentity;
|
|
905
|
-
capabilities?: DeviceCapabilities;
|
|
906
|
-
trustedDevices?: TrustedDeviceRecord[];
|
|
907
|
-
trustStore?: DeviceTrustStore;
|
|
908
|
-
authorizer?: DeviceAuthorizer;
|
|
909
|
-
listen?: DeviceNetworkListenOptions;
|
|
910
|
-
bootstrapMultiaddrs?: string[];
|
|
911
|
-
enableCircuitRelay?: boolean;
|
|
912
|
-
enableMdns?: boolean;
|
|
913
|
-
autoDialDiscoveredPeers?: boolean;
|
|
914
|
-
syncStorage?: IAgentStorage$1;
|
|
915
|
-
syncVersionVector?: () => VersionVector;
|
|
916
|
-
rpcHandler?: DeviceRpcHandler;
|
|
917
|
-
}
|
|
918
|
-
declare class Libp2pDeviceNetworkService implements DeviceNetworkService {
|
|
919
|
-
private readonly options;
|
|
920
|
-
private libp2p?;
|
|
921
|
-
private readonly capabilities;
|
|
922
|
-
private readonly discoveredDevices;
|
|
923
|
-
private readonly trustedDevices;
|
|
924
|
-
private readonly bootstrapMultiaddrs;
|
|
925
|
-
private readonly authorizer;
|
|
926
|
-
private readonly pairingSessions;
|
|
927
|
-
private readonly listeners;
|
|
928
|
-
private readonly pairingListeners;
|
|
929
|
-
constructor(options: Libp2pDeviceNetworkServiceOptions);
|
|
930
|
-
start(): Promise<void>;
|
|
931
|
-
stop(): Promise<void>;
|
|
932
|
-
getLocalDevice(): Promise<Device>;
|
|
933
|
-
listDevices(): Promise<Device[]>;
|
|
934
|
-
observeDevices(listener: (devices: Device[]) => void): () => void;
|
|
935
|
-
listPairingSessions(): Promise<PairingSession[]>;
|
|
936
|
-
observePairingSessions(listener: (sessions: PairingSession[]) => void): () => void;
|
|
937
|
-
requestLocalPairing(peerId: string, options?: LocalPairingRequestOptions): Promise<PairingSession>;
|
|
938
|
-
acceptPairing(sessionId: string): Promise<void>;
|
|
939
|
-
rejectPairing(sessionId: string): Promise<void>;
|
|
940
|
-
removeTrustedDevice(peerId: string): Promise<void>;
|
|
941
|
-
openStream(peerId: string, protocol: MemeLoopProtocol, presentedGrant?: DeviceConnectionGrant): Promise<MemeLoopDuplexStream>;
|
|
942
|
-
sendRpc<T>(peerId: string, method: string, parameters: unknown, presentedGrant?: DeviceConnectionGrant): Promise<T>;
|
|
943
|
-
syncWithDevice(peerId: string, presentedGrant?: DeviceConnectionGrant): Promise<SyncResult>;
|
|
944
|
-
getTrustedDevice(peerId: string): TrustedDeviceRecord | undefined;
|
|
945
|
-
upsertTrustedDevice(record: TrustedDeviceRecord): void;
|
|
946
|
-
upsertDiscoveredDevice(device: Device): void;
|
|
947
|
-
configureRelayReservation(token: DeviceRelayReservationToken): Promise<void>;
|
|
948
|
-
getMultiaddrs(): string[];
|
|
949
|
-
private createNode;
|
|
950
|
-
private createBootstrapDiscovery;
|
|
951
|
-
private dialBootstrapPeers;
|
|
952
|
-
private admitRelayReservation;
|
|
953
|
-
private reserveRelayListeners;
|
|
954
|
-
private loadTrustedDevicesFromStore;
|
|
955
|
-
private registerDiscoveryListeners;
|
|
956
|
-
private registerProtocolHandlers;
|
|
957
|
-
private handleRpcStream;
|
|
958
|
-
private handleSyncStream;
|
|
959
|
-
private handleSyncRequest;
|
|
960
|
-
private readAttachmentBlob;
|
|
961
|
-
private pairingDialTarget;
|
|
962
|
-
private localPairingDevice;
|
|
963
|
-
private handlePairingStream;
|
|
964
|
-
private sessionFromPairingResponse;
|
|
965
|
-
private requirePairingSession;
|
|
966
|
-
private refreshPairingSessionExpiry;
|
|
967
|
-
private upsertDiscoveredDeviceFromPairing;
|
|
968
|
-
private wrapStream;
|
|
969
|
-
private streamSource;
|
|
970
|
-
private markPeerOnline;
|
|
971
|
-
private markPeerOffline;
|
|
972
|
-
private updateDeviceTrust;
|
|
973
|
-
private toVisibleDevices;
|
|
974
|
-
private emitDevices;
|
|
975
|
-
private emitPairingSessions;
|
|
976
|
-
private requireNode;
|
|
977
|
-
}
|
|
978
|
-
interface RawSeedDeviceIdentity extends LocalDeviceIdentity {
|
|
979
|
-
privateKeyRawSeedBase64Url: string;
|
|
980
|
-
}
|
|
981
|
-
declare function encodePublicKeyMultibase(publicKey: PublicKey): Promise<string>;
|
|
982
|
-
declare function decodePublicKeyMultibase(multibase: string): Promise<PublicKey>;
|
|
983
|
-
declare function createDeviceIdentity(platform: DevicePlatform, deviceName: string): Promise<RawSeedDeviceIdentity>;
|
|
984
|
-
declare function buildDeviceBindingMessage(input: {
|
|
985
|
-
accountId: string;
|
|
986
|
-
peerId: string;
|
|
987
|
-
publicKeyMultibase: string;
|
|
988
|
-
nonce: string;
|
|
989
|
-
}): Uint8Array;
|
|
990
|
-
declare function buildDeviceConnectionGrantMessage(grant: Omit<DeviceConnectionGrant, 'signature'>): Uint8Array;
|
|
991
|
-
declare function buildDeviceRelayReservationTokenMessage(token: Omit<DeviceRelayReservationToken, 'signature'>): Uint8Array;
|
|
992
|
-
declare function signDeviceBinding(input: {
|
|
993
|
-
identity: LocalDeviceIdentity;
|
|
994
|
-
accountId: string;
|
|
995
|
-
nonce: string;
|
|
996
|
-
}): Promise<string>;
|
|
997
|
-
declare function verifyDeviceBinding(input: DeviceAccountBindingRequest & {
|
|
998
|
-
accountId: string;
|
|
999
|
-
}): Promise<boolean>;
|
|
1000
|
-
declare function verifyDeviceConnectionGrant(input: DeviceConnectionGrantVerificationInput): Promise<boolean>;
|
|
1001
|
-
declare function verifyDeviceRelayReservationToken(input: DeviceRelayReservationTokenVerificationInput): Promise<boolean>;
|
|
1002
|
-
|
|
1003
|
-
interface Libp2pDeviceSyncTransportOptions {
|
|
1004
|
-
nodeId: string;
|
|
1005
|
-
deviceNetwork: Pick<DeviceNetworkService, 'listDevices' | 'openStream'>;
|
|
1006
|
-
grantProvider?: (peerId: string) => Promise<DeviceConnectionGrant | undefined>;
|
|
1007
|
-
}
|
|
1008
|
-
declare class Libp2pDeviceSyncTransport implements DeviceSyncTransport {
|
|
1009
|
-
readonly nodeId: string;
|
|
1010
|
-
private readonly deviceNetwork;
|
|
1011
|
-
private readonly grantProvider?;
|
|
1012
|
-
constructor(options: Libp2pDeviceSyncTransportOptions);
|
|
1013
|
-
listPeers(): Promise<Device[]>;
|
|
1014
|
-
exchangeVersionVector(peerId: string, localVersion: VersionVector): Promise<ExchangeVersionVectorResult>;
|
|
1015
|
-
pullMissingMetadata(peerId: string, sinceVersion: VersionVector): Promise<ConversationMeta[]>;
|
|
1016
|
-
pullMissingMessages(peerId: string, conversationId: string, knownMessageIds: string[]): Promise<ChatMessage[]>;
|
|
1017
|
-
pullAttachmentBlob(peerId: string, contentHash: string): Promise<AttachmentBlob | null>;
|
|
1018
|
-
private request;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
declare const LIBP2P_RPC_REQUEST_TYPE = "memeloop-rpc-request-v1";
|
|
1022
|
-
declare const LIBP2P_RPC_RESPONSE_TYPE = "memeloop-rpc-response-v1";
|
|
1023
|
-
interface Libp2pRpcRequest {
|
|
1024
|
-
type: typeof LIBP2P_RPC_REQUEST_TYPE;
|
|
1025
|
-
id: string;
|
|
1026
|
-
method: string;
|
|
1027
|
-
params: unknown;
|
|
1028
|
-
grant?: DeviceConnectionGrant;
|
|
1029
|
-
}
|
|
1030
|
-
type Libp2pRpcResponse = {
|
|
1031
|
-
type: typeof LIBP2P_RPC_RESPONSE_TYPE;
|
|
1032
|
-
id: string;
|
|
1033
|
-
ok: true;
|
|
1034
|
-
result: unknown;
|
|
1035
|
-
} | {
|
|
1036
|
-
type: typeof LIBP2P_RPC_RESPONSE_TYPE;
|
|
1037
|
-
id: string;
|
|
1038
|
-
ok: false;
|
|
1039
|
-
error: string;
|
|
1040
|
-
};
|
|
1041
|
-
declare function isLibp2pRpcRequest(value: unknown): value is Libp2pRpcRequest;
|
|
1042
|
-
declare function isLibp2pRpcResponse(value: unknown): value is Libp2pRpcResponse;
|
|
1043
|
-
|
|
1044
|
-
declare const LIBP2P_SYNC_REQUEST_TYPE = "memeloop-sync-request-v1";
|
|
1045
|
-
declare const LIBP2P_SYNC_RESPONSE_TYPE = "memeloop-sync-response-v1";
|
|
1046
|
-
type Libp2pSyncMethod = 'exchangeVersionVector' | 'pullMissingMetadata' | 'pullMissingMessages' | 'pullAttachmentBlob';
|
|
1047
|
-
interface Libp2pSyncRequest {
|
|
1048
|
-
type: typeof LIBP2P_SYNC_REQUEST_TYPE;
|
|
1049
|
-
id: string;
|
|
1050
|
-
method: Libp2pSyncMethod;
|
|
1051
|
-
params: unknown;
|
|
1052
|
-
grant?: DeviceConnectionGrant;
|
|
1053
|
-
}
|
|
1054
|
-
type Libp2pSyncResponse = {
|
|
1055
|
-
type: typeof LIBP2P_SYNC_RESPONSE_TYPE;
|
|
1056
|
-
id: string;
|
|
1057
|
-
ok: true;
|
|
1058
|
-
result: unknown;
|
|
1059
|
-
} | {
|
|
1060
|
-
type: typeof LIBP2P_SYNC_RESPONSE_TYPE;
|
|
1061
|
-
id: string;
|
|
1062
|
-
ok: false;
|
|
1063
|
-
error: string;
|
|
1064
|
-
};
|
|
1065
|
-
interface AttachmentBlobWire {
|
|
1066
|
-
dataBase64Url: string;
|
|
1067
|
-
filename: string;
|
|
1068
|
-
mimeType: string;
|
|
1069
|
-
size: number;
|
|
1070
|
-
}
|
|
1071
|
-
declare function isLibp2pSyncRequest(value: unknown): value is Libp2pSyncRequest;
|
|
1072
|
-
declare function isLibp2pSyncResponse(value: unknown): value is Libp2pSyncResponse;
|
|
1073
|
-
declare function attachmentBlobFromWire(value: unknown): Promise<{
|
|
1074
|
-
data: Uint8Array;
|
|
1075
|
-
filename: string;
|
|
1076
|
-
mimeType: string;
|
|
1077
|
-
size: number;
|
|
1078
|
-
} | null>;
|
|
1079
|
-
|
|
1080
|
-
interface LocalTrustDeviceAuthorizerOptions {
|
|
1081
|
-
trustedDevices?: Iterable<TrustedDeviceRecord>;
|
|
1082
|
-
getTrustedDevice?: (peerId: string) => TrustedDeviceRecord | undefined;
|
|
1083
|
-
allowPairingProtocol?: boolean;
|
|
1084
|
-
}
|
|
1085
|
-
declare class LocalTrustDeviceAuthorizer implements DeviceAuthorizer {
|
|
1086
|
-
private readonly options;
|
|
1087
|
-
private readonly trustedDevices;
|
|
1088
|
-
private readonly allowPairingProtocol;
|
|
1089
|
-
constructor(options?: LocalTrustDeviceAuthorizerOptions);
|
|
1090
|
-
setTrustedDevice(record: TrustedDeviceRecord): void;
|
|
1091
|
-
removeTrustedDevice(peerId: string): void;
|
|
1092
|
-
canOpenProtocol(input: {
|
|
1093
|
-
remotePeerId: string;
|
|
1094
|
-
protocol: MemeLoopProtocol;
|
|
1095
|
-
}): Promise<boolean>;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
interface MemoryDeviceNetworkServiceOptions {
|
|
1099
|
-
identity: LocalDeviceIdentity;
|
|
1100
|
-
capabilities?: DeviceCapabilities;
|
|
1101
|
-
trustedDevices?: TrustedDeviceRecord[];
|
|
1102
|
-
}
|
|
1103
|
-
declare class MemoryDeviceNetworkService implements DeviceNetworkService {
|
|
1104
|
-
private readonly options;
|
|
1105
|
-
private started;
|
|
1106
|
-
private readonly capabilities;
|
|
1107
|
-
private readonly trustedDevices;
|
|
1108
|
-
private readonly pairingSessions;
|
|
1109
|
-
private readonly listeners;
|
|
1110
|
-
private readonly pairingListeners;
|
|
1111
|
-
constructor(options: MemoryDeviceNetworkServiceOptions);
|
|
1112
|
-
start(): Promise<void>;
|
|
1113
|
-
stop(): Promise<void>;
|
|
1114
|
-
getLocalDevice(): Promise<Device>;
|
|
1115
|
-
listDevices(): Promise<Device[]>;
|
|
1116
|
-
observeDevices(listener: (devices: Device[]) => void): () => void;
|
|
1117
|
-
listPairingSessions(): Promise<PairingSession[]>;
|
|
1118
|
-
observePairingSessions(listener: (sessions: PairingSession[]) => void): () => void;
|
|
1119
|
-
requestLocalPairing(peerId: string, _options?: LocalPairingRequestOptions): Promise<PairingSession>;
|
|
1120
|
-
acceptPairing(sessionId: string): Promise<void>;
|
|
1121
|
-
rejectPairing(sessionId: string): Promise<void>;
|
|
1122
|
-
removeTrustedDevice(peerId: string): Promise<void>;
|
|
1123
|
-
openStream(peerId: string, _protocol: MemeLoopProtocol, _presentedGrant?: DeviceConnectionGrant): Promise<MemeLoopDuplexStream>;
|
|
1124
|
-
sendRpc<T>(peerId: string, _method: string, _parameters: unknown, _presentedGrant?: DeviceConnectionGrant): Promise<T>;
|
|
1125
|
-
syncWithDevice(peerId: string, _presentedGrant?: DeviceConnectionGrant): Promise<SyncResult>;
|
|
1126
|
-
private confirmCode;
|
|
1127
|
-
private emitDevices;
|
|
1128
|
-
private emitPairingSessions;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* Fetch visible cloud devices and merge them into the local trust store.
|
|
1133
|
-
* - Cloud devices become trusted with trustMode = "cloud-account".
|
|
1134
|
-
* - Already-trusted devices are updated (capabilities, lastSeen, multiaddrs).
|
|
1135
|
-
* - Revoked cloud devices are NOT removed from local trust store here
|
|
1136
|
-
* (revocation should be handled via heartbeat/grant failure).
|
|
1137
|
-
* - Returns the synced cloud device records for caller to emit as discovered devices.
|
|
1138
|
-
*/
|
|
1139
|
-
declare function syncCloudDevices(input: {
|
|
1140
|
-
cloudClient: CloudDeviceClient;
|
|
1141
|
-
trustStore: DeviceTrustStore;
|
|
1142
|
-
}): Promise<CloudDeviceRecord[]>;
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* IM 接入框架(平台无关):适配器负责验签/解析;ChannelManager 负责会话路由。
|
|
1146
|
-
*/
|
|
1147
|
-
|
|
1148
|
-
/** 平台 Webhook 解析后的统一入站消息 */
|
|
1149
|
-
interface ImInboundMessage {
|
|
1150
|
-
channelId: string;
|
|
1151
|
-
platform: IMPlatformType;
|
|
1152
|
-
imUserId: string;
|
|
1153
|
-
text: string;
|
|
1154
|
-
/** 平台原始结构,便于调试或扩展富媒体 */
|
|
1155
|
-
raw: unknown;
|
|
1156
|
-
}
|
|
1157
|
-
interface ImWebhookContext {
|
|
1158
|
-
headers: Record<string, string | string[] | undefined>;
|
|
1159
|
-
body: Uint8Array;
|
|
1160
|
-
/** GET/POST query(如企业微信密文回调的 msg_signature、timestamp、nonce) */
|
|
1161
|
-
query?: Record<string, string>;
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* 单平台适配器:verify 失败应返回 false;parse 失败返回 null。
|
|
1165
|
-
*/
|
|
1166
|
-
interface IIMAdapter {
|
|
1167
|
-
readonly platform: IMPlatformType;
|
|
1168
|
-
verify(context: ImWebhookContext): boolean;
|
|
1169
|
-
parse(channelId: string, context: ImWebhookContext): ImInboundMessage | null;
|
|
1170
|
-
}
|
|
1171
|
-
/** 将 Agent 输出格式化为 IM 可发送的纯文本 */
|
|
1172
|
-
interface IIMMessageRenderer {
|
|
1173
|
-
renderPlainText(content: string): string;
|
|
1174
|
-
/** 单行工具调用摘要(IM 默认不展示完整工具参数/结果) */
|
|
1175
|
-
renderToolCallSummary(toolName: string, arguments_: unknown): string;
|
|
1176
|
-
/**
|
|
1177
|
-
* 工具结果摘要(返回 null 表示隐藏)。
|
|
1178
|
-
* 规则摘要优先:避免把大结果刷到 IM。
|
|
1179
|
-
*/
|
|
1180
|
-
renderToolResultSummary(toolName: string, result: unknown): string | null;
|
|
1181
|
-
renderToolApproval(toolName: string, arguments_: unknown): string;
|
|
1182
|
-
renderAskQuestion(question: string, options?: string[]): string;
|
|
1183
|
-
/** IM 默认隐藏 thinking,若要显示由实现自行决定。 */
|
|
1184
|
-
renderThinking(content: string): string | null;
|
|
1185
|
-
renderError(error: string): string;
|
|
1186
|
-
renderTodoList(todos: Array<{
|
|
1187
|
-
id: string;
|
|
1188
|
-
text: string;
|
|
1189
|
-
done?: boolean;
|
|
1190
|
-
}>): string;
|
|
1191
|
-
}
|
|
1192
|
-
/** 节点侧驱动 Agent 的最小能力(避免循环依赖 MemeLoopRuntime 类型) */
|
|
1193
|
-
interface ImAgentDriver {
|
|
1194
|
-
createAgent(options: {
|
|
1195
|
-
definitionId: string;
|
|
1196
|
-
initialMessage?: string;
|
|
1197
|
-
}): Promise<{
|
|
1198
|
-
conversationId: string;
|
|
1199
|
-
}>;
|
|
1200
|
-
sendMessage(options: {
|
|
1201
|
-
conversationId: string;
|
|
1202
|
-
message: string;
|
|
1203
|
-
}): Promise<void>;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
/**
|
|
1207
|
-
* 管理 IM 用户与会话的绑定;可选 `storage` 使用 IAgentStorage 的 IM 绑定持久化。
|
|
1208
|
-
*/
|
|
1209
|
-
declare class IMChannelManager {
|
|
1210
|
-
private readonly storage?;
|
|
1211
|
-
private readonly bindings;
|
|
1212
|
-
constructor(storage?: {
|
|
1213
|
-
getImBinding?(c: string, u: string): Promise<IMChannelBinding | null>;
|
|
1214
|
-
setImBinding?(r: IMChannelBinding): Promise<void>;
|
|
1215
|
-
} | undefined);
|
|
1216
|
-
private key;
|
|
1217
|
-
getBinding(channelId: string, imUserId: string): Promise<IMChannelBinding | undefined>;
|
|
1218
|
-
setBinding(record: IMChannelBinding): Promise<void>;
|
|
1219
|
-
/**
|
|
1220
|
-
* 处理入站文本:无 binding 时创建会话并发送首条用户消息。
|
|
1221
|
-
*/
|
|
1222
|
-
dispatchInbound(message: ImInboundMessage, driver: ImAgentDriver, options: {
|
|
1223
|
-
defaultDefinitionId: string;
|
|
1224
|
-
}): Promise<{
|
|
1225
|
-
conversationId: string;
|
|
1226
|
-
}>;
|
|
1227
|
-
switchConversation(channelId: string, imUserId: string, conversationId: string): Promise<void>;
|
|
1228
|
-
}
|
|
1229
|
-
declare function pickAdapter(adapters: IIMAdapter[], platform: string): IIMAdapter | undefined;
|
|
1230
|
-
|
|
1231
|
-
/** Plan §20.6.1 — chunk assistant text before sending to IM APIs. */
|
|
1232
|
-
declare function imPlatformMaxMessageChars(platform: string): number;
|
|
1233
|
-
|
|
1234
|
-
interface IAgentStorage {
|
|
1235
|
-
listConversations(options?: ListConversationsOptions): Promise<ConversationMeta[]>;
|
|
1236
|
-
getMessages(conversationId: string, options?: GetMessagesOptions): Promise<ChatMessage[]>;
|
|
1237
|
-
appendMessage(message: ChatMessage): Promise<void>;
|
|
1238
|
-
upsertConversationMetadata(meta: ConversationMeta): Promise<void>;
|
|
1239
|
-
insertMessagesIfAbsent(messages: ChatMessage[]): Promise<void>;
|
|
1240
|
-
getAttachment(contentHash: string): Promise<AttachmentReference | null>;
|
|
1241
|
-
saveAttachment(reference: AttachmentReference, data: Buffer | Uint8Array): Promise<void>;
|
|
1242
|
-
readAttachmentData?(contentHash: string): Promise<Uint8Array | null>;
|
|
1243
|
-
getAgentDefinition(id: string): Promise<AgentDefinition | null>;
|
|
1244
|
-
getMaxLamportClockForConversation?(conversationId: string): Promise<number>;
|
|
1245
|
-
saveAgentInstance(meta: AgentInstanceMeta): Promise<void>;
|
|
1246
|
-
getConversationMeta(conversationId: string): Promise<ConversationMeta | null>;
|
|
1247
|
-
getImBinding?(channelId: string, imUserId: string): Promise<IMChannelBinding | null>;
|
|
1248
|
-
setImBinding?(record: IMChannelBinding): Promise<void>;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
interface ImSlashCommandContext {
|
|
1252
|
-
rawText: string;
|
|
1253
|
-
channelId: string;
|
|
1254
|
-
imUserId: string;
|
|
1255
|
-
manager: IMChannelManager;
|
|
1256
|
-
storage: IAgentStorage;
|
|
1257
|
-
driver: ImAgentDriver;
|
|
1258
|
-
runtime: MemeLoopRuntime;
|
|
1259
|
-
defaultDefinitionId: string;
|
|
1260
|
-
}
|
|
1261
|
-
/**
|
|
1262
|
-
* Plan §20.6.4 — parse `/list`, `/switch`, `/new`, `/agent`, `/status`, `/cancel` locally (no LLM).
|
|
1263
|
-
*/
|
|
1264
|
-
declare function tryHandleImSlashCommand(context: ImSlashCommandContext): Promise<{
|
|
1265
|
-
handled: boolean;
|
|
1266
|
-
messages: string[];
|
|
1267
|
-
}>;
|
|
1268
|
-
|
|
1269
|
-
/** 通用文本/Markdown 友好输出(IM 端以纯文本展示) */
|
|
1270
|
-
declare class TextMessageRenderer implements IIMMessageRenderer {
|
|
1271
|
-
renderPlainText(content: string): string;
|
|
1272
|
-
renderToolCallSummary(toolName: string, arguments_: unknown): string;
|
|
1273
|
-
renderToolResultSummary(toolName: string, result: unknown): string | null;
|
|
1274
|
-
renderToolApproval(toolName: string, arguments_: unknown): string;
|
|
1275
|
-
renderAskQuestion(question: string, options?: string[]): string;
|
|
1276
|
-
renderThinking(_content: string): string | null;
|
|
1277
|
-
renderError(error: string): string;
|
|
1278
|
-
renderTodoList(todos: Array<{
|
|
1279
|
-
id: string;
|
|
1280
|
-
text: string;
|
|
1281
|
-
done?: boolean;
|
|
1282
|
-
}>): string;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
type ImStreamFlush = (text: string) => Promise<void>;
|
|
1286
|
-
/**
|
|
1287
|
-
* Subscribe to `runtime` agent updates and forward assistant text + light tool summaries to IM,
|
|
1288
|
-
* flushing when the buffer reaches the platform limit (plan §20.6.1).
|
|
1289
|
-
*/
|
|
1290
|
-
declare function streamRuntimeAgentReplyToIm(options: {
|
|
1291
|
-
runtime: MemeLoopRuntime;
|
|
1292
|
-
conversationId: string;
|
|
1293
|
-
platform: string;
|
|
1294
|
-
renderer: TextMessageRenderer;
|
|
1295
|
-
flush: ImStreamFlush;
|
|
1296
|
-
}): Promise<void>;
|
|
1297
|
-
|
|
1298
|
-
/**
|
|
1299
|
-
* IM 会话控制工具(计划 20.4):在带 IM binding 的会话中注入。
|
|
1300
|
-
* 这里仅导出工具 schema 描述,实际注册由上层 ToolRegistry 完成。
|
|
1301
|
-
*/
|
|
1302
|
-
declare const imToolDefinitions: readonly [{
|
|
1303
|
-
readonly name: "im.listConversations";
|
|
1304
|
-
readonly description: "列出可切换的会话(由 memeloop-cli registerImSessionTools 注册,仅 IM 来源会话可用)。";
|
|
1305
|
-
}, {
|
|
1306
|
-
readonly name: "im.switchConversation";
|
|
1307
|
-
readonly description: "切换当前 IM 用户绑定的活跃会话。参数:{ conversationId: string }";
|
|
1308
|
-
}, {
|
|
1309
|
-
readonly name: "im.newConversation";
|
|
1310
|
-
readonly description: "创建新会话并切换绑定。参数:{ definitionId?: string }";
|
|
1311
|
-
}, {
|
|
1312
|
-
readonly name: "im.summarizeHistory";
|
|
1313
|
-
readonly description: "返回当前会话最近消息的纯文本摘要(规则拼接,非 LLM)。参数:{ maxMessages?: number }";
|
|
1314
|
-
}];
|
|
1315
|
-
interface ImToolsRuntime {
|
|
1316
|
-
channelId: string;
|
|
1317
|
-
imUserId: string;
|
|
1318
|
-
manager: IMChannelManager;
|
|
1319
|
-
driver: ImAgentDriver;
|
|
1320
|
-
defaultDefinitionId: string;
|
|
1321
|
-
}
|
|
1322
|
-
/** 供工具实现层调用的命令式 API(避免在 core 内耦合 defineTool) */
|
|
1323
|
-
declare function imSwitchConversation(rt: ImToolsRuntime, conversationId: string): Promise<void>;
|
|
104
|
+
declare const MEMELOOP_TERMINAL_OUTPUT_NOTIFICATION: "memeloop.terminal.output.delta";
|
|
105
|
+
type MemeloopTerminalOutputNotificationMethod = typeof MEMELOOP_TERMINAL_OUTPUT_NOTIFICATION;
|
|
1324
106
|
|
|
1325
107
|
/**
|
|
1326
108
|
* TidGi `approval.ts` 逐行迁移(pending 队列 + UI 监听)。
|
|
@@ -1333,54 +115,6 @@ declare function resolveApproval(approvalId: string, decision: 'allow' | 'deny')
|
|
|
1333
115
|
declare function getPendingApprovals(): ToolApprovalRequest[];
|
|
1334
116
|
declare function cancelPendingApprovals(agentId: string): void;
|
|
1335
117
|
|
|
1336
|
-
/**
|
|
1337
|
-
* Context passed to builtin tool implementations.
|
|
1338
|
-
* Extends AgentFrameworkContext with optional capabilities for MCP proxy, spawn and remote agent.
|
|
1339
|
-
*/
|
|
1340
|
-
interface BuiltinToolContext extends AgentFrameworkContext {
|
|
1341
|
-
/**
|
|
1342
|
-
* 当前工具执行时对应的 conversationId(由宿主/运行时注入)。
|
|
1343
|
-
* IM 会话工具依赖该值定位会话来源;缺失时工具返回错误而不是抛异常。
|
|
1344
|
-
*/
|
|
1345
|
-
activeToolConversationId?: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* Run the local task agent (for spawnAgent). If not provided, spawnAgent tool will return an error.
|
|
1348
|
-
*/
|
|
1349
|
-
runLocalAgent?(input: AgentLoopInput): AgentLoopGenerator;
|
|
1350
|
-
/**
|
|
1351
|
-
* List known peer devices (for remoteAgent). If not provided, remoteAgent returns empty list / "not configured".
|
|
1352
|
-
*/
|
|
1353
|
-
getPeers?(): Promise<Device[]>;
|
|
1354
|
-
/**
|
|
1355
|
-
* Send JSON-RPC to a peer node (for remoteAgent and MCP proxy). If not provided, remote calls fail.
|
|
1356
|
-
*/
|
|
1357
|
-
sendRpcToNode?(nodeId: string, method: string, parameters: unknown): Promise<unknown>;
|
|
1358
|
-
/**
|
|
1359
|
-
* Call a tool on a remote MCP server on the given node (for mcpClient). If not provided, mcpClient returns error.
|
|
1360
|
-
*/
|
|
1361
|
-
mcpCallRemote?(nodeId: string, serverName: string, toolName: string, arguments_: Record<string, unknown>): Promise<unknown>;
|
|
1362
|
-
/**
|
|
1363
|
-
* `remoteAgent` 等待远端流式输出的超时(毫秒)。默认 30000。
|
|
1364
|
-
*/
|
|
1365
|
-
remoteAgentStreamTimeoutMs?: number;
|
|
1366
|
-
/** 本节点 ID(用于 `spawnAgent` / `remoteAgent` 的 `detailRef.nodeId`)。未设时 spawn 使用 `"local"`。 */
|
|
1367
|
-
localNodeId?: string;
|
|
1368
|
-
/** `askQuestion` 阻塞前回调(可将 questionId 推送到 IM / UI,供 `resolveQuestion` RPC 回填)。 */
|
|
1369
|
-
notifyAskQuestion?(payload: {
|
|
1370
|
-
questionId: string;
|
|
1371
|
-
question: string;
|
|
1372
|
-
conversationId?: string;
|
|
1373
|
-
inputType?: 'single-select' | 'multi-select' | 'text';
|
|
1374
|
-
options?: Array<{
|
|
1375
|
-
label: string;
|
|
1376
|
-
description?: string;
|
|
1377
|
-
}>;
|
|
1378
|
-
allowFreeform?: boolean;
|
|
1379
|
-
}): void;
|
|
1380
|
-
}
|
|
1381
|
-
/** Tool implementation: (args, context) => result. Context is bound at registration time. */
|
|
1382
|
-
type BuiltinToolImpl = (arguments_: Record<string, unknown>, context: BuiltinToolContext) => Promise<unknown> | AsyncIterable<unknown>;
|
|
1383
|
-
|
|
1384
118
|
declare const askQuestionConfigSchema: z.ZodObject<{
|
|
1385
119
|
question: z.ZodString;
|
|
1386
120
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
@@ -1487,6 +221,40 @@ declare const mcpForwardConfigSchema: {
|
|
|
1487
221
|
declare const mcpForwardImpl: BuiltinToolImpl;
|
|
1488
222
|
declare function getMcpForwardToolId(): string;
|
|
1489
223
|
|
|
224
|
+
declare const ORCHESTRATION_TOOL_ID = "orchestration";
|
|
225
|
+
declare const orchestrationConfigSchema: {
|
|
226
|
+
readonly type: "object";
|
|
227
|
+
readonly properties: {
|
|
228
|
+
readonly action: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly enum: readonly ["capabilities", "apply", "get", "list", "wait", "delete"];
|
|
231
|
+
readonly description: "Declarative orchestration resource operation.";
|
|
232
|
+
};
|
|
233
|
+
readonly resource: {
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly description: "Resource manifest for apply. status and actor fields are not accepted.";
|
|
236
|
+
};
|
|
237
|
+
readonly reference: {
|
|
238
|
+
readonly type: "object";
|
|
239
|
+
readonly description: "Resource reference for get, wait, or delete.";
|
|
240
|
+
};
|
|
241
|
+
readonly query: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly description: "Resource query for list.";
|
|
244
|
+
};
|
|
245
|
+
readonly condition: {
|
|
246
|
+
readonly type: "object";
|
|
247
|
+
readonly description: "Condition to wait for. Required when action is wait.";
|
|
248
|
+
};
|
|
249
|
+
readonly options: {
|
|
250
|
+
readonly type: "object";
|
|
251
|
+
readonly description: "Operation options. Only documented fields are forwarded.";
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
readonly required: readonly ["action"];
|
|
255
|
+
};
|
|
256
|
+
declare const orchestrationImpl: BuiltinToolImpl;
|
|
257
|
+
|
|
1490
258
|
declare function resolveQuestionAnswer(questionId: string, answer: string): boolean;
|
|
1491
259
|
|
|
1492
260
|
declare const remoteAgentConfigSchema: {
|
|
@@ -1507,7 +275,7 @@ declare const remoteAgentConfigSchema: {
|
|
|
1507
275
|
};
|
|
1508
276
|
readonly required: readonly ["nodeId", "definitionId", "message"];
|
|
1509
277
|
};
|
|
1510
|
-
/** List
|
|
278
|
+
/** List policy-filtered execution targets and capabilities. No direct peer enumeration. */
|
|
1511
279
|
declare const remoteAgentListImpl: BuiltinToolImpl;
|
|
1512
280
|
declare const remoteAgentImpl: BuiltinToolImpl;
|
|
1513
281
|
declare function getRemoteAgentToolId(): string;
|
|
@@ -1559,10 +327,10 @@ declare function getTaskToolId(): string;
|
|
|
1559
327
|
|
|
1560
328
|
declare const todoWriteConfigSchema: z.ZodObject<{
|
|
1561
329
|
action: z.ZodEnum<{
|
|
1562
|
-
update: "update";
|
|
1563
|
-
complete: "complete";
|
|
1564
330
|
list: "list";
|
|
1565
331
|
create: "create";
|
|
332
|
+
update: "update";
|
|
333
|
+
complete: "complete";
|
|
1566
334
|
remove: "remove";
|
|
1567
335
|
}>;
|
|
1568
336
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1574,9 +342,9 @@ declare const todoWriteConfigSchema: z.ZodObject<{
|
|
|
1574
342
|
in_progress: "in_progress";
|
|
1575
343
|
}>>;
|
|
1576
344
|
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1577
|
-
high: "high";
|
|
1578
|
-
medium: "medium";
|
|
1579
345
|
low: "low";
|
|
346
|
+
medium: "medium";
|
|
347
|
+
high: "high";
|
|
1580
348
|
}>>>;
|
|
1581
349
|
}, z.core.$strip>;
|
|
1582
350
|
declare const TODO_WRITE_TOOL_ID = "todoWrite";
|
|
@@ -1758,6 +526,12 @@ declare function createHooksWithPlugins(agentFrameworkConfig: {
|
|
|
1758
526
|
}>;
|
|
1759
527
|
}>;
|
|
1760
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Convert either a legacy host's Zod 3 schema, a current Zod 4 schema,
|
|
531
|
+
* schema, or an already portable JSON Schema without silently widening a
|
|
532
|
+
* registered tool to an unconstrained object.
|
|
533
|
+
*/
|
|
534
|
+
declare function toolSchemaToJsonSchema(value: unknown): Record<string, unknown>;
|
|
1761
535
|
declare function registerToolParameterSchema(toolId: string, schema: unknown, metadata?: {
|
|
1762
536
|
displayName: string;
|
|
1763
537
|
description: string;
|
|
@@ -1813,4 +587,4 @@ declare function registerToolDefinition<TConfigSchema extends z.ZodType, TLLMToo
|
|
|
1813
587
|
declare function getAllToolDefinitions(): Map<string, DefinedTool>;
|
|
1814
588
|
declare function getToolDefinition(toolId: string): DefinedTool | undefined;
|
|
1815
589
|
|
|
1816
|
-
export { AIResponseContext, ASK_QUESTION_TOOL_ID, ASK_USER_QUESTION_TOOL_ID, type AddToolResultOptions,
|
|
590
|
+
export { AIResponseContext, ASK_QUESTION_TOOL_ID, ASK_USER_QUESTION_TOOL_ID, type AddToolResultOptions, AgentDefinition, AgentDefinitionToolConfig, AgentFrameworkConfig, ApprovalDecision, BuiltinToolContext, BuiltinToolImpl, DefineToolAgentFrameworkContext, type DefinedTool, DetailReference, FullAgentStorage, IMChannelManager, IM_SESSION_TOOL_IDS, IPrompt, IToolRegistry, type ImSessionBuiltinRegistration, type InjectContentOptions, type InjectToolListOptions, MEMELOOP_STRUCTURED_TOOL_KEY, MEMELOOP_TERMINAL_OUTPUT_NOTIFICATION, MemeLoopRuntime, type MemeloopStructuredToolPayload, type MemeloopTerminalOutputNotificationMethod, ORCHESTRATION_TOOL_ID, PostProcessContext, type PostProcessHandlerContext, PromptConcatHookContext, PromptConcatHooks, PromptConcatTool, type ResponseHandlerContext, STORAGE_CONFORMANCE_CHECKS, type StorageConformanceCheck, type StorageConformanceReport, TODO_WRITE_TOOL_ID, type TiddlerFieldsForAgent, ToolApprovalConfig, ToolApprovalRequest, type ToolCallEntry, type ToolCallResult, ToolCallingMatch, type ToolDefinition, ToolDefinitionRegistry, type ToolExecutionResult, type ToolHandlerContext, __clearTodoStore, askQuestionConfigSchema, askQuestionImpl, askUserQuestionConfigSchema, askUserQuestionImpl, assertStorageConformance, buildMemeloopFileUri, buildMemeloopUri, cancelPendingApprovals, createAgentFrameworkHooks, createHooksWithPlugins, defineTool, evaluateApproval, executeToolCallsParallel, executeToolCallsSequential, extractMemeloopStructuredToolPayload, findPromptById, getActivePluginRegistry, getAllToolDefinitions, getDefaultToolDefinitionRegistry, getMcpClientToolId, getMcpForwardToolId, getPendingApprovals, getRemoteAgentToolId, getSpawnAgentToolId, getTaskToolId, getToolDefinition, getToolMetadata, getToolParameterSchema, gitProxyTargetBlockReason, mcpClientConfigSchema, mcpClientImpl, mcpForwardConfigSchema, mcpForwardImpl, mergeAgentToolsIntoFrameworkConfig, onApprovalRequest, orchestrationConfigSchema, orchestrationImpl, parseMemeloopUri, pluginRegistry, registerBuiltinTools, registerImSessionBuiltinTools, registerToolDefinition, registerToolParameterSchema, remoteAgentConfigSchema, remoteAgentImpl, remoteAgentListImpl, requestApproval, resolveApproval, resolvePromptPluginMap, resolveQuestionAnswer, runPostProcessHooks, runProcessPromptsHooks, runResponseCompleteHooks, runStorageConformance, runToolExecutedHooks, runWithPluginRegistry, schemaToToolContent, spawnAgentConfigSchema, spawnAgentImpl, taskToolConfigSchema, taskToolImpl, tiddlerToAgentDefinition, todoWriteConfigSchema, todoWriteImpl, toolSchemaToJsonSchema, truncateToolSummary };
|