@loomcycle/client 1.19.0 → 1.21.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.
@@ -989,6 +989,26 @@ class LoomcycleClient {
989
989
  query: browseQuery(opts),
990
990
  });
991
991
  }
992
+ /** Invoke the RFC BE History tool over HTTP (`POST /v1/_history`). Browse,
993
+ * search, and annotate PAST CHATS — a chat is a session (it may span
994
+ * several runs). Op-discriminated (`list`/`get`/`search`/`rename`/
995
+ * `annotate`/`pin`/`archive`/`recap`/`resume`).
996
+ *
997
+ * The owner is resolved server-side from the authenticated principal, NEVER
998
+ * the wire: `scope:"user"` keys on your own subject, `scope:"tenant"` on your
999
+ * tenant. The cross-tenant `scope:"global"` is admin-only — a tenant operator
1000
+ * requesting it is refused ({@link SubstrateToolRefusedError}).
1001
+ *
1002
+ * Response varies per op — `list`/`search` return `{scope, chats, total}`,
1003
+ * `get` returns the chat metadata + transcript (or Markdown when
1004
+ * `format:"markdown"`), `recap` returns a summary. Narrow as needed.
1005
+ *
1006
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals (unknown
1007
+ * session, disallowed scope); {@link InvalidArgumentError} on 400;
1008
+ * {@link AuthError} on 401. */
1009
+ async history(input, opts) {
1010
+ return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_history", input, opts);
1011
+ }
992
1012
  /** List the PERSISTENT volume universe for the caller's tenant — every
993
1013
  * static volume (the shared bind floor, `source: "static"`, read-only)
994
1014
  * plus the tenant's own dynamic VolumeDefs (`source: "dynamic"`). Host
package/dist/cjs/index.js CHANGED
@@ -71,6 +71,9 @@
71
71
  * path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
72
72
  * document(input): Promise<DocumentToolResponse> // 13 ops; needs SQL Memory
73
73
  *
74
+ * // History — browse/search/annotate past chats (RFC BE; tenant-confined)
75
+ * history(input): Promise<HistoryToolResponse> // list/get/search/rename/annotate/pin/archive/recap/resume
76
+ *
74
77
  * // Library v2 enumeration (v0.10.3 — yaml+substrate merged)
75
78
  * listLibraryAgents(): Promise<LibraryListResponse<LibraryAgentDefinition>>
76
79
  * listLibrarySkills(): Promise<LibraryListResponse<LibrarySkillDefinition>>
package/dist/client.d.ts CHANGED
@@ -25,7 +25,7 @@
25
25
  */
26
26
  import { InteractiveSession } from "./interactive.js";
27
27
  import { ClientToolHost, type ConnectClientToolsOptions } from "./client-tools.js";
28
- import type { Agent, AgentEvent, AgentStatus, CancelAgentResult, ClientOptions, ContinueOptions, CreateSnapshotOptions, EnsureCodeAgentOptions, EnsureCodeAgentResult, EnsureMcpServerOptions, EnsureMcpServerResult, HealthResponse, Hook, InterruptListResponse, InterruptStatus, AckChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAckResult, ChannelAwaitResult, ChannelBroadcastResult, ChannelDescriptor, ChannelPeekResult, ChannelPublishResult, ChannelPurgeResult, ChannelSubscribeResult, CreateChannelOptions, ListChannelsResponse, PeekChannelOptions, PublishChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, SubscribeChannelOptions, UpdateChannelOptions, LibraryAgentDefinition, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, ListUsersResponse, LLMChatOptions, LLMChatResponse, LLMChatStreamItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, MCPServerDefVerifyResult, MemoryEntriesResponse, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopesResponse, PauseResult, PersistentVolumesResponse, EphemeralVolumesResponse, RegisterHookOptions, RegisterHookResponse, ResolveInterruptOptions, ResumeResult, ResolverMatrix, CompactRunResult, RunBatchOptions, RunBatchResult, RunOptions, RunStateStreamItem, RuntimeStateResponse, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotRestoreResponse, StreamUserRunStatesOptions, SubstrateToolInput, SubstrateToolResponse, CreatedTeam, ListTeamsResponse, TeamDefDetail, TeamDiagram, TeamRunResult, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, TranscriptResponse, WhoamiResponse, UsageDimension, UsageReportResponse, TokenLimit, TokenLimitsResponse, SetTokenLimitRequest } from "./types.js";
28
+ import type { Agent, AgentEvent, AgentStatus, CancelAgentResult, ClientOptions, ContinueOptions, CreateSnapshotOptions, EnsureCodeAgentOptions, EnsureCodeAgentResult, EnsureMcpServerOptions, EnsureMcpServerResult, HealthResponse, Hook, InterruptListResponse, InterruptStatus, AckChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAckResult, ChannelAwaitResult, ChannelBroadcastResult, ChannelDescriptor, ChannelPeekResult, ChannelPublishResult, ChannelPurgeResult, ChannelSubscribeResult, CreateChannelOptions, ListChannelsResponse, PeekChannelOptions, PublishChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, SubscribeChannelOptions, UpdateChannelOptions, LibraryAgentDefinition, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, ListUsersResponse, LLMChatOptions, LLMChatResponse, LLMChatStreamItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, MCPServerDefVerifyResult, MemoryEntriesResponse, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopesResponse, PauseResult, PersistentVolumesResponse, EphemeralVolumesResponse, RegisterHookOptions, RegisterHookResponse, ResolveInterruptOptions, ResumeResult, ResolverMatrix, CompactRunResult, RunBatchOptions, RunBatchResult, RunOptions, RunStateStreamItem, RuntimeStateResponse, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotRestoreResponse, StreamUserRunStatesOptions, SubstrateToolInput, SubstrateToolResponse, CreatedTeam, ListTeamsResponse, TeamDefDetail, TeamDiagram, TeamRunResult, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, HistoryToolInput, HistoryToolResponse, TranscriptResponse, WhoamiResponse, UsageDimension, UsageReportResponse, TokenLimit, TokenLimitsResponse, SetTokenLimitRequest } from "./types.js";
29
29
  export declare class LoomcycleClient {
30
30
  private ctx;
31
31
  constructor(opts?: ClientOptions);
@@ -700,6 +700,26 @@ export declare class LoomcycleClient {
700
700
  scopeId?: string;
701
701
  tenant?: string;
702
702
  }): Promise<DocumentToolResponse>;
703
+ /** Invoke the RFC BE History tool over HTTP (`POST /v1/_history`). Browse,
704
+ * search, and annotate PAST CHATS — a chat is a session (it may span
705
+ * several runs). Op-discriminated (`list`/`get`/`search`/`rename`/
706
+ * `annotate`/`pin`/`archive`/`recap`/`resume`).
707
+ *
708
+ * The owner is resolved server-side from the authenticated principal, NEVER
709
+ * the wire: `scope:"user"` keys on your own subject, `scope:"tenant"` on your
710
+ * tenant. The cross-tenant `scope:"global"` is admin-only — a tenant operator
711
+ * requesting it is refused ({@link SubstrateToolRefusedError}).
712
+ *
713
+ * Response varies per op — `list`/`search` return `{scope, chats, total}`,
714
+ * `get` returns the chat metadata + transcript (or Markdown when
715
+ * `format:"markdown"`), `recap` returns a summary. Narrow as needed.
716
+ *
717
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals (unknown
718
+ * session, disallowed scope); {@link InvalidArgumentError} on 400;
719
+ * {@link AuthError} on 401. */
720
+ history(input: HistoryToolInput, opts?: {
721
+ signal?: AbortSignal;
722
+ }): Promise<HistoryToolResponse>;
703
723
  /** List the PERSISTENT volume universe for the caller's tenant — every
704
724
  * static volume (the shared bind floor, `source: "static"`, read-only)
705
725
  * plus the tenant's own dynamic VolumeDefs (`source: "dynamic"`). Host
package/dist/client.js CHANGED
@@ -986,6 +986,26 @@ export class LoomcycleClient {
986
986
  query: browseQuery(opts),
987
987
  });
988
988
  }
989
+ /** Invoke the RFC BE History tool over HTTP (`POST /v1/_history`). Browse,
990
+ * search, and annotate PAST CHATS — a chat is a session (it may span
991
+ * several runs). Op-discriminated (`list`/`get`/`search`/`rename`/
992
+ * `annotate`/`pin`/`archive`/`recap`/`resume`).
993
+ *
994
+ * The owner is resolved server-side from the authenticated principal, NEVER
995
+ * the wire: `scope:"user"` keys on your own subject, `scope:"tenant"` on your
996
+ * tenant. The cross-tenant `scope:"global"` is admin-only — a tenant operator
997
+ * requesting it is refused ({@link SubstrateToolRefusedError}).
998
+ *
999
+ * Response varies per op — `list`/`search` return `{scope, chats, total}`,
1000
+ * `get` returns the chat metadata + transcript (or Markdown when
1001
+ * `format:"markdown"`), `recap` returns a summary. Narrow as needed.
1002
+ *
1003
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals (unknown
1004
+ * session, disallowed scope); {@link InvalidArgumentError} on 400;
1005
+ * {@link AuthError} on 401. */
1006
+ async history(input, opts) {
1007
+ return postJSON(this.ctx, "/v1/_history", input, opts);
1008
+ }
989
1009
  /** List the PERSISTENT volume universe for the caller's tenant — every
990
1010
  * static volume (the shared bind floor, `source: "static"`, read-only)
991
1011
  * plus the tenant's own dynamic VolumeDefs (`source: "dynamic"`). Host
package/dist/index.d.ts CHANGED
@@ -70,6 +70,9 @@
70
70
  * path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
71
71
  * document(input): Promise<DocumentToolResponse> // 13 ops; needs SQL Memory
72
72
  *
73
+ * // History — browse/search/annotate past chats (RFC BE; tenant-confined)
74
+ * history(input): Promise<HistoryToolResponse> // list/get/search/rename/annotate/pin/archive/recap/resume
75
+ *
73
76
  * // Library v2 enumeration (v0.10.3 — yaml+substrate merged)
74
77
  * listLibraryAgents(): Promise<LibraryListResponse<LibraryAgentDefinition>>
75
78
  * listLibrarySkills(): Promise<LibraryListResponse<LibrarySkillDefinition>>
@@ -104,5 +107,5 @@ export { InteractiveSession } from "./interactive.js";
104
107
  export type { InteractiveSessionOps } from "./interactive.js";
105
108
  export { ClientToolHost, clientToolsURL, CLIENT_TOOL_SUBPROTOCOL } from "./client-tools.js";
106
109
  export type { ClientToolSchema, ClientToolInvocation, ConnectClientToolsOptions, WebSocketLike, WebSocketCtor, } from "./client-tools.js";
107
- export type { AgentEvent, ClientOptions, ContinueOptions, EventType, HostWidening, ImageMediaType, ParentContext, PromptContent, PromptSegment, RetryInfo, RunOptions, SamplingOptions, CompactionOptions, ToolUse, Usage, Agent, AgentStatus, AgentUsage, CancelAgentResult, ListAgentsResponse, RunBatchOptions, RunBatchResult, SpawnRunResult, CompactRunResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, WhoamiResponse, PauseResult, ResumeResult, RuntimeStateResponse, RuntimeStateStatus, ResolverMatrix, ResolverModelStatus, ResolverProviderAvailability, CreateSnapshotOptions, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotListResponse, SnapshotRestoreResponse, MemoryEntriesResponse, MemoryEntry, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopeIDSummary, MemoryScopeKind, MemoryScopesResponse, InterruptListResponse, InterruptRow, InterruptStatus, ResolveInterruptOptions, Hook, HookFailMode, HookPhase, HookToolCall, HookToolResult, ListHooksResponse, PostHookCall, PostHookResult, PreHookCall, PreHookResult, RegisterHookOptions, RegisterHookResponse, SubstrateToolInput, SubstrateToolResponse, TeamNameSummary, ListTeamsResponse, TeamDiagram, CreatedTeam, TeamDefDetail, TeamRunResult, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, VolumeMode, PersistentVolumeEntry, PersistentVolumesResponse, EphemeralVolumeEntry, EphemeralVolumesResponse, SystemPromptPayload, UserInputPayload, ChannelDescriptor, ListChannelsResponse, RunStateEvent, RunStateStreamClose, RunStateStreamItem, RunStateStreamOpen, StreamUserRunStatesOptions, AckChannelOptions, ChannelAckResult, ChannelMessageItem, ChannelPeekResult, ChannelPublishResult, ChannelPurgeResult, ChannelScope, ChannelSubscribeResult, PeekChannelOptions, PublishChannelOptions, SubscribeChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAwaitEntry, ChannelAwaitMode, ChannelAwaitResult, ChannelBroadcastEntry, ChannelBroadcastResult, CreateChannelOptions, UpdateChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, AgentDefRowResponse, AgentDefVerifyResult, SkillDefVerifyResult, EnsureMcpServerOptions, EnsureMcpServerResult, MCPServerDefRowResponse, MCPServerDefVerifyResult, AgentDefOverlay, EnsureCodeAgentOptions, EnsureCodeAgentResult, LibraryAgentDefinition, LibraryEntry, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, LLMChatContent, LLMChatMessage, LLMChatOptions, LLMChatResponse, LLMChatStreamDelta, LLMChatStreamItem, LLMChatToolCall, LLMChatUsage, LLMTool, LLMEmbeddingItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, LLMEmbeddingsUsage, UsageDimension, UsageAggregate, UsageReportResponse, LimitInfo, TokenLimit, TokenLimitsResponse, SetTokenLimitRequest, } from "./types.js";
110
+ export type { AgentEvent, ClientOptions, ContinueOptions, EventType, HostWidening, ImageMediaType, ParentContext, PromptContent, PromptSegment, RetryInfo, RunOptions, SamplingOptions, CompactionOptions, ToolUse, Usage, Agent, AgentStatus, AgentUsage, CancelAgentResult, ListAgentsResponse, RunBatchOptions, RunBatchResult, SpawnRunResult, CompactRunResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, WhoamiResponse, PauseResult, ResumeResult, RuntimeStateResponse, RuntimeStateStatus, ResolverMatrix, ResolverModelStatus, ResolverProviderAvailability, CreateSnapshotOptions, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotListResponse, SnapshotRestoreResponse, MemoryEntriesResponse, MemoryEntry, MemoryEntryResponse, MemoryScopeIDsResponse, MemoryScopeIDSummary, MemoryScopeKind, MemoryScopesResponse, InterruptListResponse, InterruptRow, InterruptStatus, ResolveInterruptOptions, Hook, HookFailMode, HookPhase, HookToolCall, HookToolResult, ListHooksResponse, PostHookCall, PostHookResult, PreHookCall, PreHookResult, RegisterHookOptions, RegisterHookResponse, SubstrateToolInput, SubstrateToolResponse, TeamNameSummary, ListTeamsResponse, TeamDiagram, CreatedTeam, TeamDefDetail, TeamRunResult, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, HistoryToolInput, HistoryToolResponse, VolumeMode, PersistentVolumeEntry, PersistentVolumesResponse, EphemeralVolumeEntry, EphemeralVolumesResponse, SystemPromptPayload, UserInputPayload, ChannelDescriptor, ListChannelsResponse, RunStateEvent, RunStateStreamClose, RunStateStreamItem, RunStateStreamOpen, StreamUserRunStatesOptions, AckChannelOptions, ChannelAckResult, ChannelMessageItem, ChannelPeekResult, ChannelPublishResult, ChannelPurgeResult, ChannelScope, ChannelSubscribeResult, PeekChannelOptions, PublishChannelOptions, SubscribeChannelOptions, AwaitChannelsOptions, BroadcastChannelsOptions, ChannelAwaitEntry, ChannelAwaitMode, ChannelAwaitResult, ChannelBroadcastEntry, ChannelBroadcastResult, CreateChannelOptions, UpdateChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, AgentDefRowResponse, AgentDefVerifyResult, SkillDefVerifyResult, EnsureMcpServerOptions, EnsureMcpServerResult, MCPServerDefRowResponse, MCPServerDefVerifyResult, AgentDefOverlay, EnsureCodeAgentOptions, EnsureCodeAgentResult, LibraryAgentDefinition, LibraryEntry, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, LLMChatContent, LLMChatMessage, LLMChatOptions, LLMChatResponse, LLMChatStreamDelta, LLMChatStreamItem, LLMChatToolCall, LLMChatUsage, LLMTool, LLMEmbeddingItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, LLMEmbeddingsUsage, UsageDimension, UsageAggregate, UsageReportResponse, LimitInfo, TokenLimit, TokenLimitsResponse, SetTokenLimitRequest, } from "./types.js";
108
111
  export { AgentIDInUseError, AgentNotFoundError, AlreadyPausingError, AuthError, BackpressureError, HookNotFoundError, NotFoundError, InvalidArgumentError, ChannelCursorRegressionError, LoomcycleError, NotPausedError, PauseNotConfiguredError, PerUserQuotaExhaustedError, SessionBusyError, SessionNotFoundError, SnapshotNotFoundError, SnapshotTooLargeError, SnapshotVersionError, SubstrateToolRefusedError, UnavailableError, } from "./errors.js";
package/dist/index.js CHANGED
@@ -70,6 +70,9 @@
70
70
  * path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
71
71
  * document(input): Promise<DocumentToolResponse> // 13 ops; needs SQL Memory
72
72
  *
73
+ * // History — browse/search/annotate past chats (RFC BE; tenant-confined)
74
+ * history(input): Promise<HistoryToolResponse> // list/get/search/rename/annotate/pin/archive/recap/resume
75
+ *
73
76
  * // Library v2 enumeration (v0.10.3 — yaml+substrate merged)
74
77
  * listLibraryAgents(): Promise<LibraryListResponse<LibraryAgentDefinition>>
75
78
  * listLibrarySkills(): Promise<LibraryListResponse<LibrarySkillDefinition>>
package/dist/types.d.ts CHANGED
@@ -922,6 +922,58 @@ export type DocumentToolInput = {
922
922
  * `create_document` returns `{document_id, root_chunk_id, ...}`). */
923
923
  export type PathToolResponse = unknown;
924
924
  export type DocumentToolResponse = unknown;
925
+ /** Input for {@link LoomcycleClient.history} — the RFC BE History tool
926
+ * (POST /v1/_history). Browse/search/annotate PAST CHATS (a chat = a session).
927
+ * Op-discriminated; the owner is resolved server-side from the authenticated
928
+ * principal, never the wire — you pick a `scope` selector, not an owner id.
929
+ * Loosely typed (the in-process tool owns the full schema); use the `[extra]`
930
+ * index signature for forward-compat fields. */
931
+ export type HistoryToolInput = {
932
+ op: "list" | "get" | "search" | "rename" | "annotate" | "pin" | "archive" | "recap" | "resume";
933
+ /** Whose chats: self = this caller's agent; user = this end-user's; tenant =
934
+ * this tenant's; global = all tenants (admin only). Default self. */
935
+ scope?: "self" | "user" | "tenant" | "global";
936
+ /** get/rename/annotate/pin/archive/recap/resume: the chat (session) id. */
937
+ session_id?: string;
938
+ /** list/search: filter by derived chat status (running/completed/failed/cancelled). */
939
+ status?: string;
940
+ /** list/search: RFC3339 lower bound on last activity. */
941
+ from?: string;
942
+ /** list/search: RFC3339 upper bound on last activity. */
943
+ to?: string;
944
+ /** list/search: return only chats carrying this exact tag. */
945
+ tag?: string;
946
+ /** list: case-insensitive substring match on the title. */
947
+ title_contains?: string;
948
+ /** search: case-insensitive title match (metadata MVP; no full-text yet). */
949
+ query?: string;
950
+ /** list/search: restrict to pinned chats. */
951
+ pinned_only?: boolean;
952
+ /** list/search: include archived chats (excluded by default). */
953
+ include_archived?: boolean;
954
+ /** list/search: max chats per page (default 50, cap 500). */
955
+ limit?: number;
956
+ /** list/search: pagination offset. */
957
+ offset?: number;
958
+ /** get: "markdown" renders the transcript as Markdown instead of events. */
959
+ format?: string;
960
+ /** rename: the new title. */
961
+ title?: string;
962
+ /** annotate: the new description. */
963
+ description?: string;
964
+ /** annotate: the new tag set (replaces the existing set). */
965
+ tags?: string[];
966
+ /** pin: true pins (default), false unpins. */
967
+ pinned?: boolean;
968
+ /** archive: true archives (default), false unarchives. */
969
+ archived?: boolean;
970
+ [extra: string]: unknown;
971
+ };
972
+ /** Response shape for {@link LoomcycleClient.history}. `unknown` because it
973
+ * varies per op — `list`/`search` return `{scope, chats, total, ...}`, `get`
974
+ * returns the chat metadata + transcript (or Markdown), `recap` a summary,
975
+ * `resume` a continuation handle. Callers narrow as needed. */
976
+ export type HistoryToolResponse = unknown;
925
977
  /** Volume access mode — read-only or read-write (RFC AH). */
926
978
  export type VolumeMode = "ro" | "rw";
927
979
  /** One row of {@link LoomcycleClient.listVolumes} (`GET /v1/_volumes`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcycle/client",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "TypeScript client for the loomcycle sidecar (HTTP+SSE). 64 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.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",