@axiom-lattice/core 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +27 -2
- package/dist/index.d.ts +27 -2
- package/dist/index.js +143 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/langu
|
|
|
8
8
|
import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
|
|
9
9
|
import { ChatResult } from '@langchain/core/outputs';
|
|
10
10
|
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
11
|
-
import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
|
|
11
|
+
import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
|
|
12
12
|
export { _axiom_lattice_protocols as Protocols };
|
|
13
13
|
export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
|
|
14
14
|
import * as langchain from 'langchain';
|
|
@@ -1295,6 +1295,8 @@ interface FileInfo {
|
|
|
1295
1295
|
size?: number;
|
|
1296
1296
|
/** ISO 8601 timestamp of last modification */
|
|
1297
1297
|
modified_at?: string;
|
|
1298
|
+
/** ISO 8601 timestamp of creation (where the underlying store provides it) */
|
|
1299
|
+
created_at?: string;
|
|
1298
1300
|
}
|
|
1299
1301
|
/**
|
|
1300
1302
|
* Structured grep match entry.
|
|
@@ -2761,6 +2763,7 @@ type StoreTypeMap = {
|
|
|
2761
2763
|
sharedResource: SharedResourceStore;
|
|
2762
2764
|
connection: ConnectionStore;
|
|
2763
2765
|
taskWorkItem: TaskWorkItemStore;
|
|
2766
|
+
agentWebApp: AgentWebAppStore;
|
|
2764
2767
|
};
|
|
2765
2768
|
/**
|
|
2766
2769
|
* Store type keys
|
|
@@ -2986,6 +2989,28 @@ declare class InMemoryAssistantStore implements AssistantStore {
|
|
|
2986
2989
|
clear(tenantId?: string): void;
|
|
2987
2990
|
}
|
|
2988
2991
|
|
|
2992
|
+
/**
|
|
2993
|
+
* Stores tenant-isolated Agent Web App publications in process memory.
|
|
2994
|
+
*
|
|
2995
|
+
* Values are cloned on every read and write so callers cannot mutate persisted
|
|
2996
|
+
* nested configuration or dates through retained object references.
|
|
2997
|
+
*
|
|
2998
|
+
* @example
|
|
2999
|
+
* ```ts
|
|
3000
|
+
* const store = new InMemoryAgentWebAppStore();
|
|
3001
|
+
* const webApp = await store.create("tenant-1", input);
|
|
3002
|
+
* ```
|
|
3003
|
+
*/
|
|
3004
|
+
declare class InMemoryAgentWebAppStore implements AgentWebAppStore {
|
|
3005
|
+
private readonly webApps;
|
|
3006
|
+
list(tenantId: string, assistantId?: string): Promise<AgentWebApp[]>;
|
|
3007
|
+
getById(tenantId: string, webAppId: string): Promise<AgentWebApp | null>;
|
|
3008
|
+
findById(webAppId: string): Promise<AgentWebApp | null>;
|
|
3009
|
+
create(tenantId: string, input: CreateAgentWebAppInput): Promise<AgentWebApp>;
|
|
3010
|
+
update(tenantId: string, webAppId: string, patch: AgentWebAppStorePatch, options?: AgentWebAppUpdateOptions): Promise<AgentWebApp | null>;
|
|
3011
|
+
delete(tenantId: string, webAppId: string): Promise<boolean>;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
2989
3014
|
/**
|
|
2990
3015
|
* FileSystemSkillStore
|
|
2991
3016
|
*
|
|
@@ -8602,4 +8627,4 @@ declare class IdRemapper {
|
|
|
8602
8627
|
remapSkillIds(graphDefinition: Record<string, unknown>, skillRemap: Record<string, string>): Record<string, unknown>;
|
|
8603
8628
|
}
|
|
8604
8629
|
|
|
8605
|
-
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type CalibrationProbe, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type RunSandboxConfig, type RuntimeModelConfig, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerBuiltinSkill, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|
|
8630
|
+
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type CalibrationProbe, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type RunSandboxConfig, type RuntimeModelConfig, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerBuiltinSkill, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/langu
|
|
|
8
8
|
import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
|
|
9
9
|
import { ChatResult } from '@langchain/core/outputs';
|
|
10
10
|
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
11
|
-
import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
|
|
11
|
+
import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, CollectionStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, EvalStore, ChannelInstallationStore, BindingRegistry, MenuRegistry, A2AApiKeyStore, TaskStore, SharedResourceStore, ConnectionStore, TaskWorkItemStore, AgentWebAppStore, VectorStoreProvider, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, Binding, CreateBindingInput, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, Collection, CreateCollectionRequest, UpdateCollectionRequest, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, STTModelLatticeProtocol, STTConfig, STTClient, TranscriptionResult, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient, McpTool, ResourceResolver, ResourceAddress, ShareVisibility, CreateShareRequest, ChannelAdapter, InterruptPolicy, TaskBeliefState, PluginMeta, Plugin, PluginMetaOutput, InternalStateField, InternalInput, InternalNode, InternalAgentNode, InternalMapNode, InternalDSL, ConnectionEntry } from '@axiom-lattice/protocols';
|
|
12
12
|
export { _axiom_lattice_protocols as Protocols };
|
|
13
13
|
export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
|
|
14
14
|
import * as langchain from 'langchain';
|
|
@@ -1295,6 +1295,8 @@ interface FileInfo {
|
|
|
1295
1295
|
size?: number;
|
|
1296
1296
|
/** ISO 8601 timestamp of last modification */
|
|
1297
1297
|
modified_at?: string;
|
|
1298
|
+
/** ISO 8601 timestamp of creation (where the underlying store provides it) */
|
|
1299
|
+
created_at?: string;
|
|
1298
1300
|
}
|
|
1299
1301
|
/**
|
|
1300
1302
|
* Structured grep match entry.
|
|
@@ -2761,6 +2763,7 @@ type StoreTypeMap = {
|
|
|
2761
2763
|
sharedResource: SharedResourceStore;
|
|
2762
2764
|
connection: ConnectionStore;
|
|
2763
2765
|
taskWorkItem: TaskWorkItemStore;
|
|
2766
|
+
agentWebApp: AgentWebAppStore;
|
|
2764
2767
|
};
|
|
2765
2768
|
/**
|
|
2766
2769
|
* Store type keys
|
|
@@ -2986,6 +2989,28 @@ declare class InMemoryAssistantStore implements AssistantStore {
|
|
|
2986
2989
|
clear(tenantId?: string): void;
|
|
2987
2990
|
}
|
|
2988
2991
|
|
|
2992
|
+
/**
|
|
2993
|
+
* Stores tenant-isolated Agent Web App publications in process memory.
|
|
2994
|
+
*
|
|
2995
|
+
* Values are cloned on every read and write so callers cannot mutate persisted
|
|
2996
|
+
* nested configuration or dates through retained object references.
|
|
2997
|
+
*
|
|
2998
|
+
* @example
|
|
2999
|
+
* ```ts
|
|
3000
|
+
* const store = new InMemoryAgentWebAppStore();
|
|
3001
|
+
* const webApp = await store.create("tenant-1", input);
|
|
3002
|
+
* ```
|
|
3003
|
+
*/
|
|
3004
|
+
declare class InMemoryAgentWebAppStore implements AgentWebAppStore {
|
|
3005
|
+
private readonly webApps;
|
|
3006
|
+
list(tenantId: string, assistantId?: string): Promise<AgentWebApp[]>;
|
|
3007
|
+
getById(tenantId: string, webAppId: string): Promise<AgentWebApp | null>;
|
|
3008
|
+
findById(webAppId: string): Promise<AgentWebApp | null>;
|
|
3009
|
+
create(tenantId: string, input: CreateAgentWebAppInput): Promise<AgentWebApp>;
|
|
3010
|
+
update(tenantId: string, webAppId: string, patch: AgentWebAppStorePatch, options?: AgentWebAppUpdateOptions): Promise<AgentWebApp | null>;
|
|
3011
|
+
delete(tenantId: string, webAppId: string): Promise<boolean>;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
2989
3014
|
/**
|
|
2990
3015
|
* FileSystemSkillStore
|
|
2991
3016
|
*
|
|
@@ -8602,4 +8627,4 @@ declare class IdRemapper {
|
|
|
8602
8627
|
remapSkillIds(graphDefinition: Record<string, unknown>, skillRemap: Record<string, string>): Record<string, unknown>;
|
|
8603
8628
|
}
|
|
8604
8629
|
|
|
8605
|
-
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type CalibrationProbe, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type RunSandboxConfig, type RuntimeModelConfig, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerBuiltinSkill, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|
|
8630
|
+
export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentTaskCompletionInput, type AgentThreadInterface, type ApproveInterruptedTaskInput, BUILTIN_PLUGINS, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type CacheEntry, type CalibrationProbe, type CaseRunResult, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, CollectionLatticeManager, type ColumnInfo, CompositeBackend, type ConflictItem, type ConnectAllChannelsOptions, ConnectionRegistry, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type CustomMiddlewareFactory, CustomMiddlewareRegistry, DEFAULT_CALIBRATION_PROBES, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, type DeleteResult, DependencyResolver, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsInfo, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type EvalRunService, type ExportBundle, type ExportContext, type ExportJob, type ExportableEntity, type ExportableEntityDefinition, ExportableEntityRegistry, type ExportableFile, type ExportableTypeInfo, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, IdRemapper, type ImportApplyResolution, type ImportApplyResult, type ImportEntityResult, type ImportEntityStatus, type ImportPreviewResult, InMemoryA2AApiKeyStore, InMemoryAgentWebAppStore, InMemoryAssistantStore, InMemoryBindingStore, InMemoryChannelInstallationStore, InMemoryChunkBuffer, InMemoryCollectionStore, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryMenuStore, InMemoryTaskListStore, InMemoryTaskStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type InsertionItem, type JudgeVerdict, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LatticeAgentStepConfig, LatticeEval, type LatticeEvalBatchReport, type LatticeEvalCase, type LatticeEvalCaseType, type LatticeEvalCaseWithTemplate, type LatticeEvalConfig, type LatticeEvalLogEvent, type LatticeEvalLogLevel, LatticeEvalProject, type LatticeEvalProjectType, type LatticeEvalResult, type LatticeEvalRubric, LatticeEvalSuite, type LatticeEvalSuiteType, type LatticeEvalTemplate, type LifecycleResult, type LifecycleWarning, LocalSandboxInstance, LocalSandboxProvider, type LocalSandboxProviderConfig, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, MysqlDatabase, type OutputType, type PendingMessage, PersonalAssistantConfig, PinoLoggerClient, PluginRegistry, PostgresDatabase, type PreviewError, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type ReconcileTaskDescriptionInput, type RejectInterruptedTaskInput, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type Resolution, type ResolutionAction, type ResolveAgentFn, type ResolvedConfig, type RunSandboxConfig, type RuntimeModelConfig, type STTModelInfo, STTModelLattice, type STTModelLatticeInterface, STTModelLatticeManager, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxProviderFactory, type SandboxProviderType, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SharePayload, SimpleMemoryVectorStore, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type SubmitTaskReviewInput, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, TaskLifecycleService, type TaskLifecycleServiceDeps, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, TokenCache, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, type VectorStoreProviderLattice, VectorStoreProviderManager, VolumeFilesystem, type VolumeFsClient, type WorkflowValidationError, type WriteResult, abortWorkflowRun, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildInput, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, buildStateAnnotation, buildTableName, checkEmptyContent, clearEncryptionKeyCache, clearEvalRunService, collectionLatticeManager, compileInternal, compileWorkflow, computeSandboxName, configureStores, connectAllChannels, createAgentNode, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createMapNode, createModelSelectorMiddleware, createNodeHandler, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createResourceAddress, createSandboxProvider, createSchedulerMiddleware, createSharePayload, createTaskLifecycleService, createTaskMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, documentLearningPlugin, documentParserPlugin, embeddingsLatticeManager, encrypt, ensureBuiltinAgentsForTenant, evaluateLatticeCaseWithLogs, eventBus, eventBus as eventBusDefault, extractFetcherError, extractOutput, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, generateToken, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBindingRegistry, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getCollectionEntryCount, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getEvalRunService, getLoggerLattice, getMenuRegistry, getModelLattice, getNextCronTime, getOrCreateCollectionVectorStore, getQueueLattice, getSTTClient, getSTTClientWithTenant, getSTTModelLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, getVectorStoreProvider, getWorkflowSignal, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, invokeWithRetry, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, listCollectionEntries, listSandboxProviderTypes, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parallelLimit, parseCronExpression, parseJudgeVerdict, parseSkillFrontmatter, parseYaml, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerBuiltinSkill, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerSTTModelLattice, registerSandboxProviderType, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, registerVectorStoreProvider, registerWorkflowRun, removeCollectionVectorStore, renderTemplate, resolveJudgeModelKey, resolvePath, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, serializePluginMeta, setBindingRegistry, setEvalRunService, setMenuRegistry, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, sttModelLatticeManager, toJsonSchema, toSafeStateExpr, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, unregisterWorkflowRun, updateFileData, validateAgentInput, validateDSL, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager, vectorStoreProviderManager };
|
package/dist/index.js
CHANGED
|
@@ -1638,6 +1638,7 @@ __export(index_exports, {
|
|
|
1638
1638
|
HumanMessage: () => import_messages8.HumanMessage,
|
|
1639
1639
|
IdRemapper: () => IdRemapper,
|
|
1640
1640
|
InMemoryA2AApiKeyStore: () => InMemoryA2AApiKeyStore,
|
|
1641
|
+
InMemoryAgentWebAppStore: () => InMemoryAgentWebAppStore,
|
|
1641
1642
|
InMemoryAssistantStore: () => InMemoryAssistantStore,
|
|
1642
1643
|
InMemoryBindingStore: () => InMemoryBindingStore,
|
|
1643
1644
|
InMemoryChannelInstallationStore: () => InMemoryChannelInstallationStore,
|
|
@@ -3739,6 +3740,106 @@ var InMemoryMcpServerConfigStore = class {
|
|
|
3739
3740
|
}
|
|
3740
3741
|
};
|
|
3741
3742
|
|
|
3743
|
+
// src/store_lattice/InMemoryAgentWebAppStore.ts
|
|
3744
|
+
var import_crypto = require("crypto");
|
|
3745
|
+
function cloneWebApp(webApp) {
|
|
3746
|
+
return {
|
|
3747
|
+
...webApp,
|
|
3748
|
+
integration: { ...webApp.integration },
|
|
3749
|
+
scope: {
|
|
3750
|
+
...webApp.scope,
|
|
3751
|
+
allowedProjectIds: [...webApp.scope.allowedProjectIds],
|
|
3752
|
+
allowedModelKeys: webApp.scope.allowedModelKeys ? [...webApp.scope.allowedModelKeys] : void 0
|
|
3753
|
+
},
|
|
3754
|
+
features: { ...webApp.features },
|
|
3755
|
+
appearance: { ...webApp.appearance },
|
|
3756
|
+
createdAt: new Date(webApp.createdAt),
|
|
3757
|
+
updatedAt: new Date(webApp.updatedAt)
|
|
3758
|
+
};
|
|
3759
|
+
}
|
|
3760
|
+
var InMemoryAgentWebAppStore = class {
|
|
3761
|
+
constructor() {
|
|
3762
|
+
this.webApps = /* @__PURE__ */ new Map();
|
|
3763
|
+
}
|
|
3764
|
+
async list(tenantId2, assistantId) {
|
|
3765
|
+
const tenantWebApps = this.webApps.get(tenantId2);
|
|
3766
|
+
if (!tenantWebApps) return [];
|
|
3767
|
+
return Array.from(tenantWebApps.values()).map((webApp, insertionIndex) => ({ webApp, insertionIndex })).filter(
|
|
3768
|
+
({ webApp }) => assistantId === void 0 ? true : webApp.assistantId === assistantId
|
|
3769
|
+
).sort(
|
|
3770
|
+
(left, right) => right.webApp.createdAt.getTime() - left.webApp.createdAt.getTime() || right.insertionIndex - left.insertionIndex
|
|
3771
|
+
).map(({ webApp }) => cloneWebApp(webApp));
|
|
3772
|
+
}
|
|
3773
|
+
async getById(tenantId2, webAppId) {
|
|
3774
|
+
const webApp = this.webApps.get(tenantId2)?.get(webAppId);
|
|
3775
|
+
return webApp ? cloneWebApp(webApp) : null;
|
|
3776
|
+
}
|
|
3777
|
+
async findById(webAppId) {
|
|
3778
|
+
for (const tenantWebApps of this.webApps.values()) {
|
|
3779
|
+
const webApp = tenantWebApps.get(webAppId);
|
|
3780
|
+
if (webApp) return cloneWebApp(webApp);
|
|
3781
|
+
}
|
|
3782
|
+
return null;
|
|
3783
|
+
}
|
|
3784
|
+
async create(tenantId2, input) {
|
|
3785
|
+
const now = /* @__PURE__ */ new Date();
|
|
3786
|
+
const webApp = {
|
|
3787
|
+
id: `webapp_${(0, import_crypto.randomUUID)().replace(/-/g, "")}`,
|
|
3788
|
+
tenantId: tenantId2,
|
|
3789
|
+
assistantId: input.assistantId,
|
|
3790
|
+
name: input.name,
|
|
3791
|
+
description: input.description,
|
|
3792
|
+
status: "draft",
|
|
3793
|
+
integration: { ...input.integration },
|
|
3794
|
+
scope: {
|
|
3795
|
+
...input.scope,
|
|
3796
|
+
allowedProjectIds: [...input.scope.allowedProjectIds],
|
|
3797
|
+
allowedModelKeys: input.scope.allowedModelKeys ? [...input.scope.allowedModelKeys] : void 0
|
|
3798
|
+
},
|
|
3799
|
+
features: { ...input.features },
|
|
3800
|
+
appearance: { ...input.appearance },
|
|
3801
|
+
createdAt: now,
|
|
3802
|
+
updatedAt: now
|
|
3803
|
+
};
|
|
3804
|
+
let tenantWebApps = this.webApps.get(tenantId2);
|
|
3805
|
+
if (!tenantWebApps) {
|
|
3806
|
+
tenantWebApps = /* @__PURE__ */ new Map();
|
|
3807
|
+
this.webApps.set(tenantId2, tenantWebApps);
|
|
3808
|
+
}
|
|
3809
|
+
tenantWebApps.set(webApp.id, webApp);
|
|
3810
|
+
return cloneWebApp(webApp);
|
|
3811
|
+
}
|
|
3812
|
+
async update(tenantId2, webAppId, patch, options) {
|
|
3813
|
+
const tenantWebApps = this.webApps.get(tenantId2);
|
|
3814
|
+
const existing = tenantWebApps?.get(webAppId);
|
|
3815
|
+
if (!tenantWebApps || !existing) return null;
|
|
3816
|
+
if (options?.expectedUpdatedAt && existing.updatedAt.getTime() !== options.expectedUpdatedAt.getTime()) return null;
|
|
3817
|
+
const hasUpdate = patch.name !== void 0 || Object.prototype.hasOwnProperty.call(patch, "description") || patch.scope !== void 0 || patch.features !== void 0 || patch.appearance !== void 0 || patch.status !== void 0;
|
|
3818
|
+
if (!hasUpdate) return cloneWebApp(existing);
|
|
3819
|
+
const updated = {
|
|
3820
|
+
...existing,
|
|
3821
|
+
...patch.name !== void 0 ? { name: patch.name } : {},
|
|
3822
|
+
...Object.prototype.hasOwnProperty.call(patch, "description") ? { description: patch.description } : {},
|
|
3823
|
+
...patch.scope ? {
|
|
3824
|
+
scope: {
|
|
3825
|
+
...patch.scope,
|
|
3826
|
+
allowedProjectIds: [...patch.scope.allowedProjectIds],
|
|
3827
|
+
allowedModelKeys: patch.scope.allowedModelKeys ? [...patch.scope.allowedModelKeys] : void 0
|
|
3828
|
+
}
|
|
3829
|
+
} : {},
|
|
3830
|
+
...patch.features ? { features: { ...patch.features } } : {},
|
|
3831
|
+
...patch.appearance ? { appearance: { ...patch.appearance } } : {},
|
|
3832
|
+
...patch.status !== void 0 ? { status: patch.status } : {},
|
|
3833
|
+
updatedAt: new Date(Math.max(Date.now(), existing.updatedAt.getTime() + 1))
|
|
3834
|
+
};
|
|
3835
|
+
tenantWebApps.set(webAppId, updated);
|
|
3836
|
+
return cloneWebApp(updated);
|
|
3837
|
+
}
|
|
3838
|
+
async delete(tenantId2, webAppId) {
|
|
3839
|
+
return this.webApps.get(tenantId2)?.delete(webAppId) ?? false;
|
|
3840
|
+
}
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3742
3843
|
// src/store_lattice/InMemoryUserStore.ts
|
|
3743
3844
|
var InMemoryUserStore = class {
|
|
3744
3845
|
constructor() {
|
|
@@ -4304,7 +4405,7 @@ var InMemoryChannelInstallationStore = class {
|
|
|
4304
4405
|
};
|
|
4305
4406
|
|
|
4306
4407
|
// src/store_lattice/InMemoryBindingStore.ts
|
|
4307
|
-
var
|
|
4408
|
+
var import_crypto2 = require("crypto");
|
|
4308
4409
|
var InMemoryBindingStore = class {
|
|
4309
4410
|
constructor() {
|
|
4310
4411
|
this.bindings = /* @__PURE__ */ new Map();
|
|
@@ -4336,7 +4437,7 @@ var InMemoryBindingStore = class {
|
|
|
4336
4437
|
async create(input) {
|
|
4337
4438
|
const now = /* @__PURE__ */ new Date();
|
|
4338
4439
|
const binding = {
|
|
4339
|
-
id: (0,
|
|
4440
|
+
id: (0, import_crypto2.randomUUID)(),
|
|
4340
4441
|
channel: input.channel,
|
|
4341
4442
|
channelInstallationId: input.channelInstallationId,
|
|
4342
4443
|
tenantId: input.tenantId,
|
|
@@ -4431,9 +4532,9 @@ var InMemoryBindingStore = class {
|
|
|
4431
4532
|
};
|
|
4432
4533
|
|
|
4433
4534
|
// src/store_lattice/InMemoryA2AApiKeyStore.ts
|
|
4434
|
-
var
|
|
4535
|
+
var import_crypto3 = require("crypto");
|
|
4435
4536
|
function generateApiKey() {
|
|
4436
|
-
return `a2a_${(0,
|
|
4537
|
+
return `a2a_${(0, import_crypto3.randomUUID)().replace(/-/g, "")}`;
|
|
4437
4538
|
}
|
|
4438
4539
|
var InMemoryA2AApiKeyStore = class {
|
|
4439
4540
|
constructor() {
|
|
@@ -4461,7 +4562,7 @@ var InMemoryA2AApiKeyStore = class {
|
|
|
4461
4562
|
async create(input) {
|
|
4462
4563
|
const now = /* @__PURE__ */ new Date();
|
|
4463
4564
|
const record = {
|
|
4464
|
-
id: (0,
|
|
4565
|
+
id: (0, import_crypto3.randomUUID)(),
|
|
4465
4566
|
key: generateApiKey(),
|
|
4466
4567
|
tenantId: input.tenantId,
|
|
4467
4568
|
projectId: input.projectId,
|
|
@@ -5057,6 +5158,7 @@ var defaultProjectStore = new InMemoryProjectStore();
|
|
|
5057
5158
|
var defaultDatabaseConfigStore = new InMemoryDatabaseConfigStore();
|
|
5058
5159
|
var defaultMetricsServerConfigStore = new InMemoryMetricsServerConfigStore();
|
|
5059
5160
|
var defaultMcpServerConfigStore = new InMemoryMcpServerConfigStore();
|
|
5161
|
+
var defaultAgentWebAppStore = new InMemoryAgentWebAppStore();
|
|
5060
5162
|
storeLatticeManager.registerLattice("default", "thread", defaultThreadStore);
|
|
5061
5163
|
storeLatticeManager.registerLattice(
|
|
5062
5164
|
"default",
|
|
@@ -5069,6 +5171,7 @@ storeLatticeManager.registerLattice("default", "project", defaultProjectStore);
|
|
|
5069
5171
|
storeLatticeManager.registerLattice("default", "database", defaultDatabaseConfigStore);
|
|
5070
5172
|
storeLatticeManager.registerLattice("default", "metrics", defaultMetricsServerConfigStore);
|
|
5071
5173
|
storeLatticeManager.registerLattice("default", "mcp", defaultMcpServerConfigStore);
|
|
5174
|
+
storeLatticeManager.registerLattice("default", "agentWebApp", defaultAgentWebAppStore);
|
|
5072
5175
|
var defaultUserStore = new InMemoryUserStore();
|
|
5073
5176
|
var defaultTenantStore = new InMemoryTenantStore();
|
|
5074
5177
|
var defaultUserTenantLinkStore = new InMemoryUserTenantLinkStore();
|
|
@@ -9729,7 +9832,8 @@ var StateBackend = class {
|
|
|
9729
9832
|
path: k,
|
|
9730
9833
|
is_dir: false,
|
|
9731
9834
|
size,
|
|
9732
|
-
modified_at: fd.modified_at
|
|
9835
|
+
modified_at: fd.modified_at,
|
|
9836
|
+
created_at: fd.created_at
|
|
9733
9837
|
});
|
|
9734
9838
|
}
|
|
9735
9839
|
for (const subdir of Array.from(subdirs).sort()) {
|
|
@@ -9737,7 +9841,8 @@ var StateBackend = class {
|
|
|
9737
9841
|
path: subdir,
|
|
9738
9842
|
is_dir: true,
|
|
9739
9843
|
size: 0,
|
|
9740
|
-
modified_at: ""
|
|
9844
|
+
modified_at: "",
|
|
9845
|
+
created_at: ""
|
|
9741
9846
|
});
|
|
9742
9847
|
}
|
|
9743
9848
|
infos.sort((a, b) => a.path.localeCompare(b.path));
|
|
@@ -18604,7 +18709,8 @@ var StoreBackend = class {
|
|
|
18604
18709
|
path: itemKey,
|
|
18605
18710
|
is_dir: false,
|
|
18606
18711
|
size,
|
|
18607
|
-
modified_at: fd.modified_at
|
|
18712
|
+
modified_at: fd.modified_at,
|
|
18713
|
+
created_at: fd.created_at
|
|
18608
18714
|
});
|
|
18609
18715
|
} catch {
|
|
18610
18716
|
continue;
|
|
@@ -18615,7 +18721,8 @@ var StoreBackend = class {
|
|
|
18615
18721
|
path: subdir,
|
|
18616
18722
|
is_dir: true,
|
|
18617
18723
|
size: 0,
|
|
18618
|
-
modified_at: ""
|
|
18724
|
+
modified_at: "",
|
|
18725
|
+
created_at: ""
|
|
18619
18726
|
});
|
|
18620
18727
|
}
|
|
18621
18728
|
infos.sort((a, b) => a.path.localeCompare(b.path));
|
|
@@ -18922,14 +19029,16 @@ var FilesystemBackend = class {
|
|
|
18922
19029
|
path: fullPath,
|
|
18923
19030
|
is_dir: false,
|
|
18924
19031
|
size: entryStat.size,
|
|
18925
|
-
modified_at: entryStat.mtime.toISOString()
|
|
19032
|
+
modified_at: entryStat.mtime.toISOString(),
|
|
19033
|
+
created_at: entryStat.birthtime.toISOString()
|
|
18926
19034
|
});
|
|
18927
19035
|
} else if (isDir) {
|
|
18928
19036
|
results.push({
|
|
18929
19037
|
path: fullPath + path4.sep,
|
|
18930
19038
|
is_dir: true,
|
|
18931
19039
|
size: 0,
|
|
18932
|
-
modified_at: entryStat.mtime.toISOString()
|
|
19040
|
+
modified_at: entryStat.mtime.toISOString(),
|
|
19041
|
+
created_at: entryStat.birthtime.toISOString()
|
|
18933
19042
|
});
|
|
18934
19043
|
}
|
|
18935
19044
|
} else {
|
|
@@ -18948,14 +19057,16 @@ var FilesystemBackend = class {
|
|
|
18948
19057
|
path: virtPath,
|
|
18949
19058
|
is_dir: false,
|
|
18950
19059
|
size: entryStat.size,
|
|
18951
|
-
modified_at: entryStat.mtime.toISOString()
|
|
19060
|
+
modified_at: entryStat.mtime.toISOString(),
|
|
19061
|
+
created_at: entryStat.birthtime.toISOString()
|
|
18952
19062
|
});
|
|
18953
19063
|
} else if (isDir) {
|
|
18954
19064
|
results.push({
|
|
18955
19065
|
path: virtPath + "/",
|
|
18956
19066
|
is_dir: true,
|
|
18957
19067
|
size: 0,
|
|
18958
|
-
modified_at: entryStat.mtime.toISOString()
|
|
19068
|
+
modified_at: entryStat.mtime.toISOString(),
|
|
19069
|
+
created_at: entryStat.birthtime.toISOString()
|
|
18959
19070
|
});
|
|
18960
19071
|
}
|
|
18961
19072
|
}
|
|
@@ -19432,7 +19543,8 @@ var CompositeBackend = class {
|
|
|
19432
19543
|
path: routePrefix,
|
|
19433
19544
|
is_dir: true,
|
|
19434
19545
|
size: 0,
|
|
19435
|
-
modified_at: ""
|
|
19546
|
+
modified_at: "",
|
|
19547
|
+
created_at: ""
|
|
19436
19548
|
});
|
|
19437
19549
|
}
|
|
19438
19550
|
results.sort((a, b) => a.path.localeCompare(b.path));
|
|
@@ -19590,7 +19702,8 @@ var MemoryBackend = class {
|
|
|
19590
19702
|
path: k,
|
|
19591
19703
|
is_dir: false,
|
|
19592
19704
|
size,
|
|
19593
|
-
modified_at: fd.modified_at
|
|
19705
|
+
modified_at: fd.modified_at,
|
|
19706
|
+
created_at: fd.created_at
|
|
19594
19707
|
});
|
|
19595
19708
|
}
|
|
19596
19709
|
for (const subdir of Array.from(subdirs).sort()) {
|
|
@@ -19598,7 +19711,8 @@ var MemoryBackend = class {
|
|
|
19598
19711
|
path: subdir,
|
|
19599
19712
|
is_dir: true,
|
|
19600
19713
|
size: 0,
|
|
19601
|
-
modified_at: ""
|
|
19714
|
+
modified_at: "",
|
|
19715
|
+
created_at: ""
|
|
19602
19716
|
});
|
|
19603
19717
|
}
|
|
19604
19718
|
infos.sort((a, b) => a.path.localeCompare(b.path));
|
|
@@ -23316,7 +23430,7 @@ ${body}` : `${frontmatter}
|
|
|
23316
23430
|
};
|
|
23317
23431
|
|
|
23318
23432
|
// src/store_lattice/InMemoryMenuStore.ts
|
|
23319
|
-
var
|
|
23433
|
+
var import_crypto4 = require("crypto");
|
|
23320
23434
|
var InMemoryMenuStore = class {
|
|
23321
23435
|
constructor() {
|
|
23322
23436
|
this.items = /* @__PURE__ */ new Map();
|
|
@@ -23337,7 +23451,7 @@ var InMemoryMenuStore = class {
|
|
|
23337
23451
|
async create(input) {
|
|
23338
23452
|
const now = /* @__PURE__ */ new Date();
|
|
23339
23453
|
const item = {
|
|
23340
|
-
id: (0,
|
|
23454
|
+
id: (0, import_crypto4.randomUUID)(),
|
|
23341
23455
|
tenantId: input.tenantId,
|
|
23342
23456
|
menuTarget: input.menuTarget,
|
|
23343
23457
|
group: input.group,
|
|
@@ -27839,11 +27953,11 @@ var TokenCache = class {
|
|
|
27839
27953
|
};
|
|
27840
27954
|
|
|
27841
27955
|
// src/sandbox_lattice/ShareService.ts
|
|
27842
|
-
var
|
|
27956
|
+
var import_crypto5 = require("crypto");
|
|
27843
27957
|
var import_bcryptjs = __toESM(require("bcryptjs"));
|
|
27844
27958
|
var TOKEN_BYTES = 24;
|
|
27845
27959
|
function generateToken() {
|
|
27846
|
-
return (0,
|
|
27960
|
+
return (0, import_crypto5.randomBytes)(TOKEN_BYTES).toString("base64url");
|
|
27847
27961
|
}
|
|
27848
27962
|
function createSharePayload(tenantId2, workspaceId, projectId, userId, request) {
|
|
27849
27963
|
const resourcePath = (request.resourcePath || "").replace(/^\/?project\/?/, "").replace(/\/+$/, "");
|
|
@@ -30678,7 +30792,7 @@ function createTaskLifecycleService(deps) {
|
|
|
30678
30792
|
var Protocols = __toESM(require("@axiom-lattice/protocols"));
|
|
30679
30793
|
|
|
30680
30794
|
// src/util/encryption.ts
|
|
30681
|
-
var
|
|
30795
|
+
var import_crypto6 = require("crypto");
|
|
30682
30796
|
var ALGORITHM = "aes-256-gcm";
|
|
30683
30797
|
var IV_LENGTH = 16;
|
|
30684
30798
|
var SALT_LENGTH = 32;
|
|
@@ -30691,7 +30805,7 @@ function getEncryptionKey() {
|
|
|
30691
30805
|
return cachedKey;
|
|
30692
30806
|
}
|
|
30693
30807
|
const key4 = process.env.LATTICE_ENCRYPTION_KEY || DEFAULT_ENCRYPTION_KEY;
|
|
30694
|
-
cachedKey = (0,
|
|
30808
|
+
cachedKey = (0, import_crypto6.pbkdf2Sync)(key4, "lattice-encryption-salt", ITERATIONS, 32, "sha256");
|
|
30695
30809
|
if (!keyValidated) {
|
|
30696
30810
|
keyValidated = true;
|
|
30697
30811
|
validateEncryptionKey();
|
|
@@ -30700,10 +30814,10 @@ function getEncryptionKey() {
|
|
|
30700
30814
|
}
|
|
30701
30815
|
function encrypt(plaintext, key4) {
|
|
30702
30816
|
const actualKey = key4 || getEncryptionKey();
|
|
30703
|
-
const salt = (0,
|
|
30704
|
-
const iv = (0,
|
|
30705
|
-
const derivedKey = (0,
|
|
30706
|
-
const cipher = (0,
|
|
30817
|
+
const salt = (0, import_crypto6.randomBytes)(SALT_LENGTH);
|
|
30818
|
+
const iv = (0, import_crypto6.randomBytes)(IV_LENGTH);
|
|
30819
|
+
const derivedKey = (0, import_crypto6.pbkdf2Sync)(actualKey, salt, ITERATIONS, 32, "sha256");
|
|
30820
|
+
const cipher = (0, import_crypto6.createCipheriv)(ALGORITHM, derivedKey, iv);
|
|
30707
30821
|
const encrypted = Buffer.concat([cipher.update(plaintext, "utf8"), cipher.final()]);
|
|
30708
30822
|
const authTag = cipher.getAuthTag();
|
|
30709
30823
|
return Buffer.concat([salt, iv, encrypted, authTag]).toString("base64");
|
|
@@ -30715,8 +30829,8 @@ function decrypt(encrypted, key4) {
|
|
|
30715
30829
|
const iv = data.subarray(SALT_LENGTH, SALT_LENGTH + IV_LENGTH);
|
|
30716
30830
|
const authTag = data.subarray(-16);
|
|
30717
30831
|
const ciphertext = data.subarray(SALT_LENGTH + IV_LENGTH, -16);
|
|
30718
|
-
const derivedKey = (0,
|
|
30719
|
-
const decipher = (0,
|
|
30832
|
+
const derivedKey = (0, import_crypto6.pbkdf2Sync)(actualKey, salt, ITERATIONS, 32, "sha256");
|
|
30833
|
+
const decipher = (0, import_crypto6.createDecipheriv)(ALGORITHM, derivedKey, iv);
|
|
30720
30834
|
decipher.setAuthTag(authTag);
|
|
30721
30835
|
return Buffer.concat([decipher.update(ciphertext), decipher.final()]).toString("utf8");
|
|
30722
30836
|
}
|
|
@@ -36009,6 +36123,7 @@ registerBuiltinPlugins();
|
|
|
36009
36123
|
HumanMessage,
|
|
36010
36124
|
IdRemapper,
|
|
36011
36125
|
InMemoryA2AApiKeyStore,
|
|
36126
|
+
InMemoryAgentWebAppStore,
|
|
36012
36127
|
InMemoryAssistantStore,
|
|
36013
36128
|
InMemoryBindingStore,
|
|
36014
36129
|
InMemoryChannelInstallationStore,
|