@loomcycle/client 1.122.0 → 1.123.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/cjs/client.js +10 -0
- package/dist/client.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +229 -2
- package/package.json +1 -1
package/dist/cjs/client.js
CHANGED
|
@@ -1265,6 +1265,16 @@ class LoomcycleClient {
|
|
|
1265
1265
|
// the server rejects a malformed one rather than silently ignoring it.
|
|
1266
1266
|
if (input.when !== undefined)
|
|
1267
1267
|
body.when = input.when;
|
|
1268
|
+
// The document filters: sent only when set, so a filter-free search's
|
|
1269
|
+
// response stays byte-identical (no `filter` echo).
|
|
1270
|
+
if (input.underPaths !== undefined)
|
|
1271
|
+
body.under_paths = input.underPaths;
|
|
1272
|
+
if (input.excludeUnderPaths !== undefined)
|
|
1273
|
+
body.exclude_under_paths = input.excludeUnderPaths;
|
|
1274
|
+
if (input.documentIds !== undefined)
|
|
1275
|
+
body.document_ids = input.documentIds;
|
|
1276
|
+
if (input.excludeDocumentIds !== undefined)
|
|
1277
|
+
body.exclude_document_ids = input.excludeDocumentIds;
|
|
1268
1278
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_memory/search", body, {
|
|
1269
1279
|
signal: opts?.signal,
|
|
1270
1280
|
});
|
package/dist/client.js
CHANGED
|
@@ -1262,6 +1262,16 @@ export class LoomcycleClient {
|
|
|
1262
1262
|
// the server rejects a malformed one rather than silently ignoring it.
|
|
1263
1263
|
if (input.when !== undefined)
|
|
1264
1264
|
body.when = input.when;
|
|
1265
|
+
// The document filters: sent only when set, so a filter-free search's
|
|
1266
|
+
// response stays byte-identical (no `filter` echo).
|
|
1267
|
+
if (input.underPaths !== undefined)
|
|
1268
|
+
body.under_paths = input.underPaths;
|
|
1269
|
+
if (input.excludeUnderPaths !== undefined)
|
|
1270
|
+
body.exclude_under_paths = input.excludeUnderPaths;
|
|
1271
|
+
if (input.documentIds !== undefined)
|
|
1272
|
+
body.document_ids = input.documentIds;
|
|
1273
|
+
if (input.excludeDocumentIds !== undefined)
|
|
1274
|
+
body.exclude_document_ids = input.excludeDocumentIds;
|
|
1265
1275
|
return postJSON(this.ctx, "/v1/_memory/search", body, {
|
|
1266
1276
|
signal: opts?.signal,
|
|
1267
1277
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -187,5 +187,5 @@ export { verifyLoomcycleSignature, verifyLoomcycleDelivery } from "./signature.j
|
|
|
187
187
|
export type { VerifySignatureOptions, VerifiedDelivery } from "./signature.js";
|
|
188
188
|
export { ClientToolHost, clientToolsURL, CLIENT_TOOL_SUBPROTOCOL } from "./client-tools.js";
|
|
189
189
|
export type { ClientToolSchema, ClientToolInvocation, ConnectClientToolsOptions, WebSocketLike, WebSocketCtor, } from "./client-tools.js";
|
|
190
|
-
export type { AgentEvent, ClientOptions, ContinueOptions, EventType, HostWidening, ImageMediaType, ParentContext, PromptContent, PromptSegment, RetryInfo, RunOptions, RunOverrideOptions, SamplingOptions, CompactionOptions, ContextOptions, ToolUse, Usage, CallTiming, Agent, AgentStatus, AwaitedState, AgentUsage, RunResult, RunSpec, RunSpecTeam, ConfiguredRun, ConfiguredRunPatch, ToolChoiceOptions, OutputFormatOptions, CancelAgentResult, ListAgentsResponse, ListUserAgentsOptions, AgentList, WalkRunsPage, RunBatchOptions, RunBatchResult, SpawnRunResult, CompactRunResult, RunTreeDeletion, RunTreeNotReached, DirectoryBudget, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureAccess, ErasureReport, ErasureResidue, ErasureResult, ErasureTier, ErasureTokenRef, CancelTurnResult, ReviewRunResult, ReplaySessionResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, TokenRestrictions, UserTokenMeta, ListUserTokensResponse, RunnableAgent, RunnableAgentsResponse, WhoamiResponse, WhoamiEffective, PauseResult, RetentionOverride, ResumeResult, RuntimeStateResponse, RuntimeStateStatus, ResolverMatrix, ResolverModelStatus, ResolverProviderAvailability, CreateSnapshotOptions, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotListResponse, SnapshotRestoreResponse, MemoryEntriesResponse, MemoryEntry, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopeIDSummary, MemoryScopeKind, MemoryScopesResponse, MemorySearchInput, MemorySource, MemoryWhen, MemoryTimeFilter, MemorySearchEntry, MemorySearchResponse, MemoryEmbedModelStats, MemoryEmbedStatsResponse, MemoryReembedConfigured, MemoryReembedResponse, MemoryBackfillResponse, MemoryPurgeResponse, InterruptListResponse, InterruptRow, InterruptStatus, ResolveInterruptOptions, ChannelHookCall, ChannelHookResult, HookFailMode, HookPhase, HookToolCall, HookToolResult, PostHookCall, PostHookResult, PreHookCall, PreHookResult, SubstrateToolInput, SubstrateToolResponse, TeamNameSummary, ListTeamsResponse, TeamDiagram, CreatedTeam, PromotedTeam, RetiredTeam, TeamDefDetail, TeamVerification, TeamDraft, TeamDraftVerification, TeamIssue, TeamIssueKind, TeamVersion, TeamVersionList, TeamBreakpoints, TeamRunDetached, TeamRunResult, TeamRunTarget, CreateTeamOptions, ForkTeamOptions, DefNameSummary, DefNamesResponse, OperatorTokenDefNameSummary, OperatorTokenDefNamesResponse, ScheduleListEntry, ScheduleListResponse, ScheduleActiveRun, ScheduleStateView, ScheduleRunNowResult, SchedulePauseResult, ModelAlias, ModelAliasesResponse, RoutingResponse, RoutingUserTier, RoutingTier, RoutingCandidate, RoutingThroughput, RoutingProvider, SearchRoutingProvider, RoutingEmbedder, RoutingDecision, RoutingDecisionModel, ProviderModelsResponse, TeamRunStep, TeamDecisionHandler, TeamDecisionQuestion, TeamDecisionAnswer, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, HistoryToolInput, HistoryToolResponse, EvaluationEmitterRole, EvaluationSubmitInput, EvaluationGetInput, EvaluationListForRunInput, EvaluationListForDefInput, EvaluationAggregateInput, EvaluationInput, EvaluationSubmitResult, EvaluationRecord, EvaluationListForRunResult, EvaluationListForDefResult, EvaluationScoreStats, EvaluationAggregate, VolumeMode, PersistentVolumeEntry, PersistentVolumesResponse, EphemeralVolumeEntry, EphemeralVolumesResponse, SystemPromptPayload, UserInputPayload, ChannelDescriptor, ListChannelsResponse, RunStateEvent, RunStateStreamClose, RunStateStreamItem, RunStateStreamOpen, StreamUserRunStatesOptions, ChangeFeedError, ChangeFeedFrame, ChangeFeedStatus, EmbedderHealth, MemoryChange, MemoryChangeScope, MemoryChangeType, StreamChangesOptions, AckChannelOptions, ChannelAckResult, ChannelMessageItem, ChannelPeekResult, ListTeamChannelsOptions, PeekTeamChannelOptions, ReleaseTeamChannelOptions, TeamChannelReleaseResult, TeamChannelDeclaredIn, TeamChannelDescriptor, TeamChannelPeekResult, TeamChannelsResult, ChannelPublishResult, ChannelPurgeResult, ChannelReleaseResult, ChannelScope, ChannelSubscribeResult, PeekChannelOptions, PublishChannelOptions, SubscribeChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAwaitEntry, ChannelAwaitMode, ChannelAwaitResult, ChannelBroadcastEntry, ChannelBroadcastResult, CreateChannelOptions, ReleaseChannelOptions, UpdateChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, AgentDefRowResponse, AgentDefVerifyResult, SkillDefVerifyResult, EnsureMcpServerOptions, EnsureMcpServerResult, MCPServerDefRowResponse, MCPServerDefVerifyResult, AgentDefOverlay, AgentRouting, AgentChannelACL, AgentInterruptionACL, AgentDecision, MemoryRerank, AgentSampling, AgentCompaction, AgentContext, TierCandidate, CoreBlock, HookEvent, InlineWebhook, HookEntry, EventHooks, ToolEntry, ToolHooksByTool, EnsureCodeAgentOptions, EnsureCodeAgentResult, CreateDefOptions, ForkDefOptions, EnsureHookDefOptions, EnsureHookDefResult, HookDefBody, HookDefForkOverlay, HookDefInput, HookDefMatch, HookDefOverlay, HookDefRowResponse, HookDefVerifyResult, ScheduleDefInput, ScheduleDefOverlay, ScheduleDefRowResponse, ScheduledRunHook, ScheduledRunPromptContent, ScheduledRunPromptSegment, WebhookDefAuth, WebhookDefFilter, WebhookDefInput, WebhookDefOverlay, WebhookDefRateLimit, WebhookDefRowResponse, WebhookDefDeliveries, WebhookDefSyncResponse, LibraryAgentDefinition, LibraryEntry, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, LLMChatContent, LLMChatMessage, LLMChatOptions, LLMChatResponse, LLMChatStreamDelta, LLMChatStreamItem, LLMChatToolCall, LLMChatUsage, LLMTool, LLMEmbeddingItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, LLMEmbeddingsUsage, UsageDimension, UsageAggregate, UsageReportResponse, CapabilityInertInfo, LimitInfo, FileCapturedInfo, AdmissionInfo, ErrorInfo, CallFormat, CallRef, HookDecisionInfo, TeamDecisionInfo, OverrideInfo, FallbackInfo, InterruptionEventInfo, SpawnChildInfo, TurnCancelledInfo, ChannelEventInfo, ContextCompactionInfo, ContextRecapInfo, ContextStateInfo, ContextExhaustedInfo, ContextTierVerdict, ContextDistillDeclinedInfo, EffectiveConfigResponse, EffectiveConfigSource, EffectiveValue, InertContextSetting, AgentOverridableResponse, OverridableField, OverrideLockReason, RetuneRunResponse, RunConfigRecord, SubagentHoldInfo, RunConfigResponse, RunPromptResponse, RunPromptSnapshot, PromptBlock, TokenLimit, TokenLimitsResponse, ConfigResponse, ConfigProvider, ConfigModel, ConfigSearch, ConfigInstance, SetTokenLimitRequest, CredentialScope, CredentialMeta, CredentialListResponse, CryptoKeyVersion, CryptoKeyExport, CryptoKeyType, CryptoKeyEncoding, CryptoKeyBackend, CryptoKeyExternal, CryptoOp, CryptoRequestBase, CryptoKeyRef, CryptoEncryptRequest, CryptoDecryptRequest, CryptoRewrapRequest, CryptoMacRequest, CryptoVerifyMacRequest, CryptoSignRequest, CryptoVerifyRequest, CryptoPublicKeyRequest, CryptoTotpRequest, CryptoHashRequest, CryptoRandomRequest, CryptoHashPasswordRequest, CryptoVerifyPasswordRequest, CryptoRequest, CryptoEncryptResult, CryptoDecryptResult, CryptoRewrapResult, CryptoMacResult, CryptoVerifyResult, CryptoSignResult, CryptoPublicJWK, CryptoPublicKeyResult, CryptoTotpResult, CryptoHashResult, CryptoRandomResult, CryptoHashPasswordResult, CryptoVerifyPasswordResult, CryptoResultByOp, CryptoResult, DecideRequest, DecideResponse, DecisionQuestion, DecisionChoiceQuestion, DecisionNoulQuestion, DecisionScoreQuestion, DecisionAnswer, DecisionChoiceAnswer, DecisionNoulAnswer, DecisionScoreAnswer, DecisionModel, DecisionModelsResponse, AclMode, AclSource, AclEffect, AclSubjectKind, AclCondition, AclRule, AclList, AclDefRow, AclDefListResponse, AclDefNamesResponse, AclValidateResult, AclCatalogType, AclCatalog, AclDefOp, AclDefInput, GroupRow, GroupMemberKind, GroupMember, GroupListResponse, GroupDetail, GroupEffective, CreateGroupBody, GroupMemberChange, AclBinding, AclBindingListResponse, CreateAclBindingBody, AuthzReason, AuthzDecision, AuthzRequestContext, AuthzEvaluationRequest, AuthzEvaluationsSemantic, AuthzEvaluationsRequest, AuthzEvaluationsResponse, AuthzTrace, AuthzAppliedBinding, AuthzExplainResponse, AuthzDraftBinding, AuthzSimulateRequest, AuthzSimulateResult, AuthzSimulateResponse, } from "./types.js";
|
|
190
|
+
export type { AgentEvent, ClientOptions, ContinueOptions, EventType, HostWidening, ImageMediaType, ParentContext, PromptContent, PromptSegment, RetryInfo, RunOptions, RunOverrideOptions, SamplingOptions, CompactionOptions, ContextOptions, ToolUse, Usage, CallTiming, Agent, AgentStatus, AwaitedState, AgentUsage, RunResult, RunSpec, RunSpecTeam, ConfiguredRun, ConfiguredRunPatch, ToolChoiceOptions, OutputFormatOptions, CancelAgentResult, ListAgentsResponse, ListUserAgentsOptions, AgentList, WalkRunsPage, RunBatchOptions, RunBatchResult, SpawnRunResult, CompactRunResult, RunTreeDeletion, RunTreeNotReached, DirectoryBudget, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureAccess, ErasureReport, ErasureResidue, ErasureResult, ErasureTier, ErasureTokenRef, CancelTurnResult, ReviewRunResult, ReplaySessionResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, TokenRestrictions, UserTokenMeta, ListUserTokensResponse, RunnableAgent, RunnableAgentsResponse, WhoamiResponse, WhoamiEffective, WhoamiAuth, PauseResult, RetentionOverride, ResumeResult, RuntimeStateResponse, RuntimeStateStatus, ResolverMatrix, ResolverModelStatus, ResolverProviderAvailability, CreateSnapshotOptions, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotListResponse, SnapshotRestoreResponse, MemoryEntriesResponse, MemoryEntry, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopeIDSummary, MemoryScopeKind, MemoryScopesResponse, MemorySearchDocumentFilter, MemorySearchInput, MemorySource, MemoryWhen, MemoryTimeFilter, MemorySearchEntry, MemorySearchResponse, MemoryEmbedModelStats, MemoryEmbedStatsResponse, MemoryReembedConfigured, MemoryReembedResponse, MemoryBackfillResponse, MemoryPurgeResponse, InterruptListResponse, InterruptRow, InterruptStatus, ResolveInterruptOptions, ChannelHookCall, ChannelHookResult, HookFailMode, HookPhase, HookToolCall, HookToolResult, PostHookCall, PostHookResult, PreHookCall, PreHookResult, SubstrateToolInput, SubstrateToolResponse, TeamNameSummary, ListTeamsResponse, TeamDiagram, CreatedTeam, PromotedTeam, RetiredTeam, TeamDefDetail, TeamVerification, TeamDraft, TeamDraftVerification, TeamIssue, TeamIssueKind, TeamVersion, TeamVersionList, TeamBreakpoints, TeamRunDetached, TeamRunResult, TeamRunTarget, CreateTeamOptions, ForkTeamOptions, DefNameSummary, DefNamesResponse, OperatorTokenDefNameSummary, OperatorTokenDefNamesResponse, ScheduleListEntry, ScheduleListResponse, ScheduleActiveRun, ScheduleStateView, ScheduleRunNowResult, SchedulePauseResult, ModelAlias, ModelAliasesResponse, RoutingResponse, RoutingUserTier, RoutingTier, RoutingCandidate, RoutingThroughput, RoutingProvider, SearchRoutingProvider, RoutingEmbedder, RoutingDecision, RoutingDecisionModel, ProviderModelsResponse, TeamRunStep, TeamDecisionHandler, TeamDecisionQuestion, TeamDecisionAnswer, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, DocumentSearchFilter, DocumentSearchHit, DocumentSearchResult, DocumentRelatedResult, HistoryToolInput, HistoryToolResponse, EvaluationEmitterRole, EvaluationSubmitInput, EvaluationGetInput, EvaluationListForRunInput, EvaluationListForDefInput, EvaluationAggregateInput, EvaluationInput, EvaluationSubmitResult, EvaluationRecord, EvaluationListForRunResult, EvaluationListForDefResult, EvaluationScoreStats, EvaluationAggregate, VolumeMode, PersistentVolumeEntry, PersistentVolumesResponse, EphemeralVolumeEntry, EphemeralVolumesResponse, SystemPromptPayload, UserInputPayload, ChannelDescriptor, ListChannelsResponse, RunStateEvent, RunStateStreamClose, RunStateStreamItem, RunStateStreamOpen, StreamUserRunStatesOptions, ChangeFeedError, ChangeFeedFrame, ChangeFeedStatus, EmbedderHealth, MemoryChange, MemoryChangeScope, MemoryChangeType, StreamChangesOptions, AckChannelOptions, ChannelAckResult, ChannelMessageItem, ChannelPeekResult, ListTeamChannelsOptions, PeekTeamChannelOptions, ReleaseTeamChannelOptions, TeamChannelReleaseResult, TeamChannelDeclaredIn, TeamChannelDescriptor, TeamChannelPeekResult, TeamChannelsResult, ChannelPublishResult, ChannelPurgeResult, ChannelReleaseResult, ChannelScope, ChannelSubscribeResult, PeekChannelOptions, PublishChannelOptions, SubscribeChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAwaitEntry, ChannelAwaitMode, ChannelAwaitResult, ChannelBroadcastEntry, ChannelBroadcastResult, CreateChannelOptions, ReleaseChannelOptions, UpdateChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, AgentDefRowResponse, AgentDefVerifyResult, SkillDefVerifyResult, EnsureMcpServerOptions, EnsureMcpServerResult, MCPServerDefRowResponse, MCPServerDefVerifyResult, AgentDefOverlay, AgentRouting, AgentChannelACL, AgentInterruptionACL, AgentDecision, MemoryRerank, AgentSampling, AgentCompaction, AgentTranscription, AgentContext, TierCandidate, CoreBlock, HookEvent, InlineWebhook, HookEntry, EventHooks, ToolEntry, ToolHooksByTool, EnsureCodeAgentOptions, EnsureCodeAgentResult, CreateDefOptions, ForkDefOptions, EnsureHookDefOptions, EnsureHookDefResult, HookDefBody, HookDefForkOverlay, HookDefInput, HookDefMatch, HookDefOverlay, HookDefRowResponse, HookDefVerifyResult, ScheduleDefInput, ScheduleDefOverlay, ScheduleDefRowResponse, ScheduledRunHook, ScheduledRunPromptContent, ScheduledRunPromptSegment, WebhookDefAuth, WebhookDefFilter, WebhookDefInput, WebhookDefOverlay, WebhookDefRateLimit, WebhookDefRowResponse, WebhookDefDeliveries, WebhookDefSyncResponse, LibraryAgentDefinition, LibraryEntry, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, LLMChatContent, LLMChatMessage, LLMChatOptions, LLMChatResponse, LLMChatStreamDelta, LLMChatStreamItem, LLMChatToolCall, LLMChatUsage, LLMTool, LLMEmbeddingItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, LLMEmbeddingsUsage, UsageDimension, UsageAggregate, UsageReportResponse, CapabilityInertInfo, LimitInfo, FileCapturedInfo, TranscriptionInfo, AdmissionInfo, ErrorInfo, CallFormat, CallRef, HookDecisionInfo, TeamDecisionInfo, OverrideInfo, FallbackInfo, InterruptionEventInfo, SpawnChildInfo, TurnCancelledInfo, ChannelEventInfo, ContextCompactionInfo, ContextRecapInfo, ContextStateInfo, ContextExhaustedInfo, ContextTierVerdict, ContextDistillDeclinedInfo, EffectiveConfigResponse, EffectiveConfigSource, EffectiveValue, InertContextSetting, AgentOverridableResponse, OverridableField, OverrideLockReason, RetuneRunResponse, RunConfigRecord, SubagentHoldInfo, RunConfigResponse, RunPromptResponse, RunPromptSnapshot, PromptBlock, TokenLimit, TokenLimitsResponse, ConfigResponse, ConfigProvider, ConfigModel, ConfigSearch, ConfigInstance, SetTokenLimitRequest, CredentialScope, CredentialMeta, CredentialListResponse, CryptoKeyVersion, CryptoKeyExport, CryptoKeyType, CryptoKeyEncoding, CryptoKeyBackend, CryptoKeyExternal, CryptoOp, CryptoRequestBase, CryptoKeyRef, CryptoEncryptRequest, CryptoDecryptRequest, CryptoRewrapRequest, CryptoMacRequest, CryptoVerifyMacRequest, CryptoSignRequest, CryptoVerifyRequest, CryptoPublicKeyRequest, CryptoTotpRequest, CryptoHashRequest, CryptoRandomRequest, CryptoHashPasswordRequest, CryptoVerifyPasswordRequest, CryptoRequest, CryptoEncryptResult, CryptoDecryptResult, CryptoRewrapResult, CryptoMacResult, CryptoVerifyResult, CryptoSignResult, CryptoPublicJWK, CryptoPublicKeyResult, CryptoTotpResult, CryptoHashResult, CryptoRandomResult, CryptoHashPasswordResult, CryptoVerifyPasswordResult, CryptoResultByOp, CryptoResult, DecideRequest, DecideResponse, DecisionQuestion, DecisionChoiceQuestion, DecisionNoulQuestion, DecisionScoreQuestion, DecisionAnswer, DecisionChoiceAnswer, DecisionNoulAnswer, DecisionScoreAnswer, DecisionModel, DecisionModelsResponse, AclMode, AclSource, AclEffect, AclSubjectKind, AclCondition, AclRule, AclList, AclDefRow, AclDefListResponse, AclDefNamesResponse, AclValidateResult, AclCatalogType, AclCatalog, AclDefOp, AclDefInput, GroupRow, GroupMemberKind, GroupMember, GroupListResponse, GroupDetail, GroupEffective, CreateGroupBody, GroupMemberChange, AclBinding, AclBindingListResponse, CreateAclBindingBody, AuthzReason, AuthzDecision, AuthzRequestContext, AuthzEvaluationRequest, AuthzEvaluationsSemantic, AuthzEvaluationsRequest, AuthzEvaluationsResponse, AuthzTrace, AuthzAppliedBinding, AuthzExplainResponse, AuthzDraftBinding, AuthzSimulateRequest, AuthzSimulateResult, AuthzSimulateResponse, } from "./types.js";
|
|
191
191
|
export { AclDeniedError, AgentIDInUseError, AgentNotFoundError, AlreadyPausingError, AuthError, BackpressureError, NotFoundError, InsufficientScopeError, InvalidArgumentError, ChannelCursorRegressionError, LoomcycleError, NotPausedError, PauseNotConfiguredError, PerUserQuotaExhaustedError, PromptTooLargeError, RateLimitedError, RequestTooLargeError, SessionBusyError, SessionNotFoundError, SnapshotNotFoundError, SnapshotTooLargeError, SnapshotVersionError, SubstrateToolRefusedError, TokenLimitExceededError, UnavailableError, } from "./errors.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `client.ts` for the input shapes (RunOptions, CreateSnapshotOptions,
|
|
8
8
|
* etc.) — those are translated to snake_case in the request body.
|
|
9
9
|
*/
|
|
10
|
-
export type EventType = "started" | "text" | "tool_call" | "tool_result" | "usage" | "done" | "error" | "retry" | "host_widened" | "session" | "agent" | "awaiting_input" | "awaiting_review" | "subagent_hold" | "awaiting_children" | "children_note" | "steer" | "context_compaction" | "capability_inert" | "hook_decision" | "limit" | "file_captured" | "override" | "context_recap" | "context_state" | "context_distill_declined" | "context_exhausted" | "thinking" | "team_decision" | "turn_cancelled" | "provider_fallback" | "fallback_suppressed" | "model_downgraded" | "cache_invalidated" | "reasoning_invalidated" | "channel_publish" | "channel_delivery" | "interruption_pending" | "spawn_child_started" | "spawn_child_result" | "spawn_child_read" | "prompt_snapshot" | "queued" | "admitted" | "call_queued" | "call_admitted" | "_meta";
|
|
10
|
+
export type EventType = "started" | "text" | "tool_call" | "tool_result" | "usage" | "done" | "error" | "retry" | "host_widened" | "session" | "agent" | "awaiting_input" | "awaiting_review" | "subagent_hold" | "awaiting_children" | "children_note" | "steer" | "context_compaction" | "capability_inert" | "hook_decision" | "limit" | "file_captured" | "transcription" | "override" | "context_recap" | "context_state" | "context_distill_declined" | "context_exhausted" | "thinking" | "team_decision" | "turn_cancelled" | "provider_fallback" | "fallback_suppressed" | "model_downgraded" | "cache_invalidated" | "reasoning_invalidated" | "channel_publish" | "channel_delivery" | "interruption_pending" | "spawn_child_started" | "spawn_child_result" | "spawn_child_read" | "prompt_snapshot" | "queued" | "admitted" | "call_queued" | "call_admitted" | "_meta";
|
|
11
11
|
export interface ToolUse {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
@@ -462,6 +462,43 @@ export interface FileCapturedInfo {
|
|
|
462
462
|
* on the tree's stream). */
|
|
463
463
|
run_id?: string;
|
|
464
464
|
}
|
|
465
|
+
/** Payload on `event: transcription`: one OCR or speech-to-text pass a File
|
|
466
|
+
* tool call made over an inbox file. Never the transcribed text. */
|
|
467
|
+
export interface TranscriptionInfo {
|
|
468
|
+
/** The source file, `volume:inbox:<dir>/<name>`. */
|
|
469
|
+
ref: string;
|
|
470
|
+
/** The Markdown the pass wrote, when it wrote one. */
|
|
471
|
+
out?: string;
|
|
472
|
+
/** `"ocr"` or `"stt"`. */
|
|
473
|
+
purpose: string;
|
|
474
|
+
/** The configured engine that ran: `"vision"`, `"openai-audio"`,
|
|
475
|
+
* `"command"`, …. */
|
|
476
|
+
engine: string;
|
|
477
|
+
/** The concrete provider/model pair the engine called, when it called one. */
|
|
478
|
+
provider?: string;
|
|
479
|
+
model?: string;
|
|
480
|
+
/** Pages sent to an OCR engine. */
|
|
481
|
+
pages?: number;
|
|
482
|
+
/** Audio duration sent to a speech-to-text engine, in seconds. */
|
|
483
|
+
seconds?: number;
|
|
484
|
+
input_tokens?: number;
|
|
485
|
+
output_tokens?: number;
|
|
486
|
+
/** The priced cost in `currency`. Absent when the pair is unpriced, which is
|
|
487
|
+
* not the same as free. */
|
|
488
|
+
cost?: number;
|
|
489
|
+
currency?: string;
|
|
490
|
+
/** `"ok"`, `"partial"` (a cap or an engine error stopped it after some
|
|
491
|
+
* units; what was written stays) or `"failed"`. */
|
|
492
|
+
status: string;
|
|
493
|
+
/** An estimate: no engine was called and nothing was spent. */
|
|
494
|
+
dry_run?: boolean;
|
|
495
|
+
/** The run whose tool call made the pass. */
|
|
496
|
+
run_id?: string;
|
|
497
|
+
/** Why the pass failed or stopped early (set on `"failed"`, and on
|
|
498
|
+
* `"partial"` when a cap or an engine error stopped it). Never a secret, a
|
|
499
|
+
* URL's query or the file's content. */
|
|
500
|
+
error?: string;
|
|
501
|
+
}
|
|
465
502
|
export interface LimitInfo {
|
|
466
503
|
/** Which axis tripped: "operator" | "tenant" | "user". */
|
|
467
504
|
scope: string;
|
|
@@ -705,6 +742,9 @@ export interface AgentEvent {
|
|
|
705
742
|
/** Payload on `event: file_captured` — a file a tool returned, kept in the
|
|
706
743
|
* run's inbox. Nil on all other event types. */
|
|
707
744
|
file?: FileCapturedInfo;
|
|
745
|
+
/** Payload on `event: transcription` — one OCR or speech-to-text pass a
|
|
746
|
+
* File tool call made. Nil on all other event types. */
|
|
747
|
+
transcription?: TranscriptionInfo;
|
|
708
748
|
/** Payload on `event: queued` (why the run waits, and its place) and
|
|
709
749
|
* `event: admitted` (how long it waited), and on `event: call_queued` /
|
|
710
750
|
* `event: call_admitted` (the same for one model call, with its provider
|
|
@@ -2118,6 +2158,23 @@ export interface WhoamiResponse {
|
|
|
2118
2158
|
/** What the caller may reach, as the server's own gates would answer it.
|
|
2119
2159
|
* Absent on a server that predates the summary. */
|
|
2120
2160
|
effective?: WhoamiEffective;
|
|
2161
|
+
/** How the caller signed in. Absent on a server that predates Web UI
|
|
2162
|
+
* sessions. */
|
|
2163
|
+
auth?: WhoamiAuth;
|
|
2164
|
+
}
|
|
2165
|
+
/** GET /v1/_me's sign-in block. `mode` is always present; the rest only when
|
|
2166
|
+
* a Web UI session (not a bearer) authenticated the request. */
|
|
2167
|
+
export interface WhoamiAuth {
|
|
2168
|
+
/** `open` (no credential configured), `token` or `strict`. */
|
|
2169
|
+
mode: "open" | "token" | "strict";
|
|
2170
|
+
/** The configured gate the session was created through. */
|
|
2171
|
+
gate?: string;
|
|
2172
|
+
/** The authentication methods the gate used, e.g. `["bearer"]`. */
|
|
2173
|
+
amr?: string[];
|
|
2174
|
+
/** When the session's login happened (RFC 3339). */
|
|
2175
|
+
auth_time?: string;
|
|
2176
|
+
/** When the session stops authenticating unless renewed by activity. */
|
|
2177
|
+
session_expires_at?: string;
|
|
2121
2178
|
}
|
|
2122
2179
|
/** GET /v1/_me's capability summary. Bounded and non-secret: a fixed list of
|
|
2123
2180
|
* Web UI pages, no per-instance data. */
|
|
@@ -2327,6 +2384,49 @@ export interface MemorySearchInput {
|
|
|
2327
2384
|
* while `"require"` is a real filter. A tight `"require"` window is how a
|
|
2328
2385
|
* scope that holds the answer comes back empty. */
|
|
2329
2386
|
when?: MemoryWhen;
|
|
2387
|
+
/** Aim the search at part of the scope's documents: return only the chunks of
|
|
2388
|
+
* documents named at or under ANY of these Path-tree paths, in the scope's own
|
|
2389
|
+
* tree (sent as `under_paths`). Narrows DOCUMENT chunks only — facts and notes
|
|
2390
|
+
* the same search returns pass untouched — and is applied before ranking.
|
|
2391
|
+
*
|
|
2392
|
+
* The four document filters need a search that can return documents (no
|
|
2393
|
+
* `sources`, or `sources` including `"documents"`; otherwise 400
|
|
2394
|
+
* `invalid_filter`), are refused on `scope: "tenant"` (400 `invalid_filter`),
|
|
2395
|
+
* and need SQL Memory on the server (400 `filter_unavailable`). They resolve in
|
|
2396
|
+
* the caller's own tenant. The response then carries {@link
|
|
2397
|
+
* MemorySearchResponse.filter}. For chunk-level filters (type, status, tags, a
|
|
2398
|
+
* validity instant) use `document({ op: "search" })`. */
|
|
2399
|
+
underPaths?: string[];
|
|
2400
|
+
/** Never return the chunks of documents named at or under these paths (sent as
|
|
2401
|
+
* `exclude_under_paths`). Documents only, as {@link underPaths}. */
|
|
2402
|
+
excludeUnderPaths?: string[];
|
|
2403
|
+
/** Return only the chunks of these documents (sent as `document_ids`).
|
|
2404
|
+
* Documents only, as {@link underPaths}. */
|
|
2405
|
+
documentIds?: string[];
|
|
2406
|
+
/** Never return the chunks of these documents (sent as
|
|
2407
|
+
* `exclude_document_ids`). Documents only, as {@link underPaths}. */
|
|
2408
|
+
excludeDocumentIds?: string[];
|
|
2409
|
+
}
|
|
2410
|
+
/** What a document filter on {@link LoomcycleClient.memorySearch} resolved to —
|
|
2411
|
+
* present on the response ONLY when a filter was sent. */
|
|
2412
|
+
export interface MemorySearchDocumentFilter {
|
|
2413
|
+
/** The filter as applied: paths canonicalised, blanks and duplicates dropped.
|
|
2414
|
+
* Only the kinds that were sent appear. */
|
|
2415
|
+
applied: {
|
|
2416
|
+
under_paths?: string[];
|
|
2417
|
+
exclude_under_paths?: string[];
|
|
2418
|
+
document_ids?: string[];
|
|
2419
|
+
exclude_document_ids?: string[];
|
|
2420
|
+
};
|
|
2421
|
+
/** Documents with at least one matching chunk. 0 means the paths/ids name no
|
|
2422
|
+
* document in this scope — not that nothing relevant was found. */
|
|
2423
|
+
matched_documents: number;
|
|
2424
|
+
/** Chunks the filter let through. */
|
|
2425
|
+
matched_chunks: number;
|
|
2426
|
+
/** True when the match was sent as "everything except" its complement. Always
|
|
2427
|
+
* false while access-control rules can deny the caller reading part of the
|
|
2428
|
+
* scope — the counts then cover only documents it may read. */
|
|
2429
|
+
inverted: boolean;
|
|
2330
2430
|
}
|
|
2331
2431
|
/** The observed-time predicate on {@link MemorySearchInput}. Timestamps are
|
|
2332
2432
|
* RFC3339 instants — resolve phrases like "the first weekend of October"
|
|
@@ -2415,6 +2515,9 @@ export interface MemorySearchResponse {
|
|
|
2415
2515
|
* those call for very different responses. Counts describe the candidate pool
|
|
2416
2516
|
* the ranker saw, not a scope-wide census. */
|
|
2417
2517
|
time_filter?: MemoryTimeFilter;
|
|
2518
|
+
/** What the document filter resolved to — present only when one was sent
|
|
2519
|
+
* ({@link MemorySearchInput.underPaths} and its siblings). */
|
|
2520
|
+
filter?: MemorySearchDocumentFilter;
|
|
2418
2521
|
}
|
|
2419
2522
|
export interface MemoryTimeFilter {
|
|
2420
2523
|
mode: "prefer" | "require";
|
|
@@ -3100,8 +3203,50 @@ export type DocumentToolInput = {
|
|
|
3100
3203
|
from_id?: string;
|
|
3101
3204
|
to_id?: string;
|
|
3102
3205
|
kind?: string;
|
|
3103
|
-
/** query_chunks
|
|
3206
|
+
/** query_chunks / query_documents / documents_summary: restrict to documents
|
|
3207
|
+
* at/under this Path-tree path. search / related: return only chunks of
|
|
3208
|
+
* documents named at or under it — applied inside every retrieval leg before
|
|
3209
|
+
* its limit, so the best matches come from that part of the tree. */
|
|
3104
3210
|
under_path?: string;
|
|
3211
|
+
/** search / related: chunks of documents named at or under ANY of these paths
|
|
3212
|
+
* (with `under_path`, the union of both). */
|
|
3213
|
+
under_paths?: string[];
|
|
3214
|
+
/** search / related: never chunks of documents named at or under this path. */
|
|
3215
|
+
exclude_under_path?: string;
|
|
3216
|
+
/** search / related: never chunks of documents named at or under these paths. */
|
|
3217
|
+
exclude_under_paths?: string[];
|
|
3218
|
+
/** documents_summary: the documents to summarize. search / related: return
|
|
3219
|
+
* only chunks of these documents. */
|
|
3220
|
+
document_ids?: string[];
|
|
3221
|
+
/** search / related: never chunks of these documents (e.g. the document under
|
|
3222
|
+
* review, so its own text is not found as evidence for itself). */
|
|
3223
|
+
exclude_document_ids?: string[];
|
|
3224
|
+
/** search / related: chunk types, each including its ontology subtypes (with
|
|
3225
|
+
* `type`, the union of both). */
|
|
3226
|
+
types?: string[];
|
|
3227
|
+
/** search / related: exact chunk statuses; any matches (with `status`, the union). */
|
|
3228
|
+
statuses?: string[];
|
|
3229
|
+
/** graph_recall / list_facts: answer as of this instant (unix nanoseconds).
|
|
3230
|
+
* search / related / query_chunks: only chunks whose stated validity (the
|
|
3231
|
+
* chunk's own valid_at/invalid_at and, for a fact, its fact dates) contains
|
|
3232
|
+
* it; a chunk with no stated validity always matches. */
|
|
3233
|
+
as_of?: number;
|
|
3234
|
+
/** graph_recall: how much of each chunk's text the rows carry. Omitted: chunks
|
|
3235
|
+
* that are not facts carry the first 600 characters of their body (a fact's
|
|
3236
|
+
* title is its claim, so facts stay title-only). `0`: titles only — the
|
|
3237
|
+
* cheapest structural walk, the response shape from before bodies existed.
|
|
3238
|
+
* `N` (at most 4000): up to N characters on every row, facts included. A cut
|
|
3239
|
+
* body ends on a word and the row says `body_truncated: true`; `budget_chars`
|
|
3240
|
+
* counts body characters too. */
|
|
3241
|
+
body_chars?: number;
|
|
3242
|
+
/** When the content became true in the world (unix nanoseconds).
|
|
3243
|
+
* upsert_chunk: the fact's start. create_chunk / update_chunk: the chunk's
|
|
3244
|
+
* own start (an edition coming into force); update_chunk with `null` clears
|
|
3245
|
+
* it. Omit when unknown. */
|
|
3246
|
+
valid_at?: number | null;
|
|
3247
|
+
/** When the content stopped being true (unix nanoseconds, exclusive; after
|
|
3248
|
+
* valid_at). Same ops as {@link valid_at}; `null` clears on update_chunk. */
|
|
3249
|
+
invalid_at?: number | null;
|
|
3105
3250
|
/** query_chunks: raw read-only SELECT (escape hatch; validator-gated). */
|
|
3106
3251
|
sql?: string;
|
|
3107
3252
|
/** Row/response bound. On `documents_summary` it defaults to 500 (max 5000) and
|
|
@@ -3175,6 +3320,74 @@ export type DocumentToolInput = {
|
|
|
3175
3320
|
* `create_document` returns `{document_id, root_chunk_id, ...}`). */
|
|
3176
3321
|
export type PathToolResponse = unknown;
|
|
3177
3322
|
export type DocumentToolResponse = unknown;
|
|
3323
|
+
/** What a filtered `document({op:"search"|"related", …})` call resolved its
|
|
3324
|
+
* structural filter to — present on the response ONLY when a filter argument
|
|
3325
|
+
* was passed (a filter-free response has no `filter` key). */
|
|
3326
|
+
export type DocumentSearchFilter = {
|
|
3327
|
+
/** The filter as applied: singular fields folded into the plural ones, paths
|
|
3328
|
+
* canonicalised. Only the kinds that were passed appear. */
|
|
3329
|
+
applied: {
|
|
3330
|
+
under_paths?: string[];
|
|
3331
|
+
exclude_under_paths?: string[];
|
|
3332
|
+
document_ids?: string[];
|
|
3333
|
+
exclude_document_ids?: string[];
|
|
3334
|
+
types?: string[];
|
|
3335
|
+
statuses?: string[];
|
|
3336
|
+
tag?: string;
|
|
3337
|
+
tag_prefix?: string;
|
|
3338
|
+
as_of?: number;
|
|
3339
|
+
};
|
|
3340
|
+
/** Documents with at least one matching chunk. */
|
|
3341
|
+
matched_documents: number;
|
|
3342
|
+
/** Chunks the search could return. 0 = the filter matched nothing (the
|
|
3343
|
+
* response then has no hits and the query was never embedded). */
|
|
3344
|
+
matched_chunks: number;
|
|
3345
|
+
/** Present when a type was widened to its ontology subtypes. */
|
|
3346
|
+
type_expanded_to?: string[];
|
|
3347
|
+
/** True when the match was sent to the search as "everything except" its
|
|
3348
|
+
* complement (the smaller list). Always false while access-control rules can
|
|
3349
|
+
* deny the caller reading part of the scope — the counts above then cover
|
|
3350
|
+
* only documents it may read. */
|
|
3351
|
+
inverted: boolean;
|
|
3352
|
+
};
|
|
3353
|
+
/** One hit of `document({op:"search"})`. */
|
|
3354
|
+
export type DocumentSearchHit = {
|
|
3355
|
+
chunk_id: string;
|
|
3356
|
+
score: number;
|
|
3357
|
+
rank_score: number;
|
|
3358
|
+
title?: string;
|
|
3359
|
+
type?: string;
|
|
3360
|
+
document_id?: string;
|
|
3361
|
+
/** The chunk's own validity period, present only when set. */
|
|
3362
|
+
valid_at?: number;
|
|
3363
|
+
invalid_at?: number;
|
|
3364
|
+
matched_unit?: {
|
|
3365
|
+
kind: string;
|
|
3366
|
+
text: string;
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
/** Response of `document({op:"search"})` — narrow a {@link DocumentToolResponse}
|
|
3370
|
+
* to it. */
|
|
3371
|
+
export type DocumentSearchResult = {
|
|
3372
|
+
chunks: DocumentSearchHit[];
|
|
3373
|
+
filter?: DocumentSearchFilter;
|
|
3374
|
+
reranked?: boolean;
|
|
3375
|
+
rerank_reason?: string;
|
|
3376
|
+
};
|
|
3377
|
+
/** Response of `document({op:"related"})` — narrow a {@link DocumentToolResponse}
|
|
3378
|
+
* to it. */
|
|
3379
|
+
export type DocumentRelatedResult = {
|
|
3380
|
+
related: Array<{
|
|
3381
|
+
chunk_id: string;
|
|
3382
|
+
score: number;
|
|
3383
|
+
title?: string;
|
|
3384
|
+
type?: string;
|
|
3385
|
+
document_id?: string;
|
|
3386
|
+
valid_at?: number;
|
|
3387
|
+
invalid_at?: number;
|
|
3388
|
+
}>;
|
|
3389
|
+
filter?: DocumentSearchFilter;
|
|
3390
|
+
};
|
|
3178
3391
|
/** Input for {@link LoomcycleClient.history} — the RFC BE History tool
|
|
3179
3392
|
* (POST /v1/_history). Browse/search/annotate PAST CHATS (a chat = a session).
|
|
3180
3393
|
* Op-discriminated; the owner is resolved server-side from the authenticated
|
|
@@ -4117,6 +4330,18 @@ export interface AgentCompaction {
|
|
|
4117
4330
|
* memory its definition must authorize. */
|
|
4118
4331
|
memory_flush?: boolean;
|
|
4119
4332
|
}
|
|
4333
|
+
/** An agent's OCR and speech-to-text settings. It can opt in to OCR and lower
|
|
4334
|
+
* the operator's per-run caps; it can never raise them or pick an engine. */
|
|
4335
|
+
export interface AgentTranscription {
|
|
4336
|
+
/** OCR for scans and images. Default `never`: OCR is billed per page. */
|
|
4337
|
+
ocr?: 'auto' | 'always' | 'never';
|
|
4338
|
+
/** Speech-to-text. Default `on` when the operator configured an engine. */
|
|
4339
|
+
stt?: 'on' | 'off';
|
|
4340
|
+
/** At most the operator's `transcription.ocr.max_pages_per_run`. */
|
|
4341
|
+
max_pages_per_run?: number;
|
|
4342
|
+
/** At most the operator's `transcription.stt.max_minutes_per_run`. */
|
|
4343
|
+
max_minutes_per_run?: number;
|
|
4344
|
+
}
|
|
4120
4345
|
/** The `context` block of an {@link AgentDefOverlay}: {@link ContextOptions}
|
|
4121
4346
|
* in its wire spelling — see there for what each field does. A fork merges it
|
|
4122
4347
|
* per field, and the spawn tree inherits it. */
|
|
@@ -4311,6 +4536,8 @@ export interface AgentDefOverlay {
|
|
|
4311
4536
|
sampling?: AgentSampling;
|
|
4312
4537
|
/** Context compaction in `append` mode, merged per field. */
|
|
4313
4538
|
compaction?: AgentCompaction;
|
|
4539
|
+
/** OCR and speech-to-text settings, merged per field. */
|
|
4540
|
+
transcription?: AgentTranscription;
|
|
4314
4541
|
/** How history is distilled, merged per field. */
|
|
4315
4542
|
context?: AgentContext;
|
|
4316
4543
|
/** Volumes the file and exec tools may resolve paths against. None declared
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomcycle/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.123.0",
|
|
4
4
|
"description": "TypeScript client for the loomcycle sidecar (HTTP+SSE). 71 methods covering run streaming, agent metadata, pause/resume/state, resolver re-probe (resolveProbe — issue #88 operator escape hatch), operator-token admin (operatorTokenDef — RFC L OSS multi-tenant auth) + whoami (RFC L authoritative principal, v0.17.0) + tenant-scoped listUsers / listUserAgents, dynamic MCP registration (mcpServerDef + v0.18.0 typed mcpServerDefVerify + ensureMcpServer idempotent register-if-changed), snapshot lifecycle, memory admin (incl. v0.9.0 Vector Memory embed_stats + reembed AND v0.11.5 setMemoryEntry + deleteMemoryEntry), interruption resolve, hook management, v0.8.22 substrate admin (agentDef + skillDef), v0.9.x n8n Phase 0 (listChannels + streamUserRunStates), v0.9.x Channel CRUD (publishChannel + subscribeChannel + peekChannel + ackChannel), v0.11.5 Channel admin CRUD (createChannel + updateChannel + deleteChannel — runtime substrate; yaml channels refuse mutation with HTTP 409), v0.9.x content_sha256 verify, v0.9.1 transcript first-cycle, v0.9.x dynamic MCP server registration (mcpServerDef + MCPServerDefVerifyResult), v0.10.3 Library v2 enumeration (listLibraryAgents + listLibrarySkills + listLibraryMcpServers), and v0.11.0 LLM Gateway (llmChat + llmStream — direct provider routing without agent overhead; primary target is n8n's LoomCycleChatModel AI Agent sub-node and any LangChain-compatible consumer). v0.10.1 — dual ESM + CommonJS distribution (additive — ESM consumers unchanged; CJS consumers like n8n's community-node loader now work). v0.19.0 — typed inline code-js agent ingestion (AgentDefOverlay.code_body + ensureCodeAgent — register a deterministic code agent through the substrate with no host filesystem bind; RFC J). v0.20.0 — ensureMcpServer surfaces discoveredToolCount straight from create (loomcycle now auto-discovers MCP tools at ingestion); rediscover is now an explicit force-refresh. v0.21.0 — run/continue accept optional non-secret `metadata` (repo name, review policy, …) passed to the agent, symmetric with the WebHook/Schedule trigger paths. v0.22.0 — version-aligned lockstep release; no client-surface change (RFC N tenant isolation of the agent/skill/MCP/Schedule/Webhook definition plane + real op-schemas on the builtin MCP meta-tools are both server-side). v0.23.0 — version-aligned lockstep release; no client-surface change (RFCs O/P/R MCP-server hardening + thin client and the RFC Q DeepSeek tool-content fix are all server-side / MCP-transport-side). v0.24.0 — purgeChannel clears a channel's buffered messages without deleting its definition (allowed on yaml-declared channels too, unlike deleteChannel — F20); AgentDefOverlay gains channels / evaluation_scopes / interruption so a COMPLETE interactive/multi-agent agent round-trips over the substrate (F14). (Consolidates the interim 0.24/0.25 package bumps, which were never tag-published, back into lockstep with the loomcycle v0.24.0 tag.) v0.25.0 — adds the RFC S channel fan-in/fan-out client twins: awaitChannels() (wait for any/all/at_least N messages across channels, or a timeout — non-committing) + broadcastChannels() (publish one payload to N channels in one atomic-pre-flight call), the client-facing counterparts of the in-band Channel.await / Channel.broadcast tool ops (the rest of v0.25.0 — the manual-management Web UI console + Context op=time + max_fires self-retiring schedules — is server-side / in-band, no client-surface change). v0.29.1 — Usage gains optional `max_context_tokens` (the serving model's context-window ceiling, stamped by the loop from Provider.Capabilities() on each usage event) so a consumer can render a 'context used / max' gauge without a hard-coded per-model table; additive + optional, no behavior change. (Lockstep catch-up: the field landed in loomcycle v0.29.0 but the adapter publish skipped on a version mismatch; v0.29.1 realigns the package version with the release tag so it publishes.) v0.33.0 — gRPC + TS client parity for the RFC Y external fan-out and the compaction surface: spawnRunBatch() (POST /v1/runs:batch — spawn up to 32 fresh runs concurrently in one call, combined index-aligned envelope, per-child failures in-envelope) + compactRun(runId) (POST /v1/runs/{run_id}/compact — summarize a parked run's context); plus per-run sampling + compaction overrides now accepted on runStreaming / continueSession (an explicit temperature 0 is preserved as deterministic, not dropped as falsy). (The gRPC half adds the matching SpawnRunBatch / CompactRun RPCs + the sampling/compaction fields on RunRequest/ContinueRequest — server-side.) v0.34.0 — version-aligned lockstep release; no client-surface change (context-transform plugins / RFC Z Phase 1a are server-side config; the exp7 hardening pass is server-side; the R2 cross-provider thinking-model downgrade surfaces a new `model_downgraded` SSE event the generic stream passes through unchanged). v0.35.0 — RFC AH dynamic filesystem volumes: volumeDef() (POST /v1/_volumedef — op-discriminated create/get/list/delete/purge; a Volume is flat, so delete unmaps + purge RemoveAll's, no retire/promote/fork) + listVolumes() / listEphemeralVolumes() (GET /v1/_volumes[/ephemeral] — tenant-scoped; host paths redacted for non-operator callers). Tenant-confined; the runtime derives the path inside an operator-blessed dynamic_root, so callers pass name + mode, never a host path. v1.1.1 — RFC AI interactive agentic sessions: an `interactive: true` flag on runStreaming/continueSession (a run that parks at end_turn for steering) + sendRunInput(runId, text) (POST /v1/runs/{id}/input — steer a live run) + streamRunByID(runId, {fromSeq}) (GET /v1/runs/{id}/stream — re-attach by run_id; the operator's prior turns replay as `steer` events so a cold client reconstructs the whole conversation) + a high-level InteractiveSession driver (client.interactiveSession / attachInteractiveSession — events()/send()/cancel(), the adapter port of the Web UI run terminal). The AgentEvent union gains awaiting_input/steer/context_compaction frames. Version-aligned with the loomcycle v1.1.x line so the v1.1.1 tag publishes it (also carrying the previously-unpublished v0.35.0 volume surface). v1.4.0 — RFC AL Path VFS + RFC AK Document on the wire: path(input) (POST /v1/_path — a Unix-like filesystem over Memory/Volumes/Documents; resolve/ls/stat/mkdir/mv/rm) + document(input) (POST /v1/_document — chunked-graph documents; 13 ops, needs SQL Memory on the sidecar). Scope (agent/user/tenant) + tenant are resolved server-side from the authenticated principal, never the wire; an off-run scope:'user' op keys on the principal subject so it interoperates with that user's agent runs. New PathToolInput / DocumentToolInput types; responses are op-varying (unknown — narrow as needed). v1.7.0 — RFC AT image/vision input: the PromptContent union gains an `image` variant ({ type:'image'; media_type: ImageMediaType; data: base64-no-prefix }) accepted in a user segment by runStreaming / continueSession (segments pass through unchanged — no method change). The model must be vision-capable or the run errors before the call. New ImageMediaType type (image/png|jpeg|gif|webp). v1.12.1 — Path/Document browse-by-subject + the full Document op set (RFC AS/AK): path(input, opts) / document(input, opts) accept optional scopeId / tenant browse overrides sent as ?scope_id= / ?tenant= query params (server reads them from the URL, re-checks authorization; omit both to browse your own subject — byte-identical to the pre-RFC-AS request), and DocumentToolInput.op now covers all 16 backend ops (adds set_path, export_md, import_md) with the matching include_metadata / markdown fields. Additive — existing path() / document() callers are unchanged. v1.16.0 — RFC BC client-executed tools (local tool host): connectClientTools({tools,onInvoke}) opens a persistent WebSocket to /v1/client-tools, registers tools this client runs on the user's machine (browser DOM / files / shell), and answers the invoke frames loomcycle routes when an agent of your principal calls a client:<tool> — returning your reply as an ordinary tool result. Returns a ClientToolHost driver (.close() to stop; auto-reconnect); dependency-free (global WebSocket in browsers / Node 22+, or an injected WebSocketImpl like the ws package on older Node); the bearer rides the Sec-WebSocket-Protocol subprotocol (browsers can't set an Authorization header on a WebSocket). The runtime's first WebSocket surface. v1.45.0 — RFC BL P5 subject erasure: erasureReport(subject, {tenant}) (GET /v1/_erasure — what this deployment holds about one subject, in three tiers: deletable with existing primitives, subject-keyed but not deletable, and facts ABOUT the subject in scopes they do not own) + erasureExecute(subject, {dryRun, confirm, tenant}) (POST /v1/_erasure — removes tiers 1 and 2). DEFAULTS TO A DRY RUN: dryRun defaults true and a live run also requires confirm === subject. The tier-3 residue is traceable only through the subject's chats, which a live run deletes, so a report afterwards shows rows: 0 while those facts remain — the returned object is the only durable record of what was not reached; persist it. New ErasureReport / ErasureResult / ErasureTier / ErasureResidue types. v1.47.0 — RFC BV memory-view SDK: memorySearch() (POST /v1/_memory/search — off-run unified semantic search spanning k/v entries AND document-chunk bodies in one ranked list, each hit tagged kind memory|document with chunk_id on document hits) + memoryEmbedStats(scope) + reembedMemory(scope, scopeId, {dryRun,limit}) (the Vector Memory embed-admin reads the memory-view console needs; dry_run defaults true). Fact reads (list_facts + get_chunk's entity block) ride the existing document() passthrough. Additive — existing callers unchanged. v1.61.0 — RFC CJ per-run context-window override: runStreaming / continueSession accept an optional maxContextTokens (integer tokens) that wins over the agent's own max_context_tokens; omitted inherits it (which defers to the provider/driver default). Distinct from a model's output cap; primarily for local inference (Ollama num_ctx). Serialized as the snake_case max_context_tokens field on POST /v1/runs + the continuation body; additive, existing callers unchanged. v1.72.1 — the TeamDef version lifecycle: listTeamVersions(name) (op=list — every version of one team, newest first), promoteTeam(defId) (op=promote — point the active pointer, which is what a run BY NAME executes; forkTeam defaults to promote:false, so authoring and putting in force stay two steps), retireTeam(defId, retired) (op=retire — reversible and version-scoped, unlike deleteTeam) and verifyTeam(name, contentSha256) (op=verify — the drift check for a workflow kept in source control and pushed to several deployments; an absent team answers deployed:false rather than raising). The ops existed on the substrate and over HTTP; a client that could author a team could not put one in force.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|