@loomcycle/client 0.14.1 → 0.15.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.
@@ -507,6 +507,21 @@ class LoomcycleClient {
507
507
  async webhookDef(input, opts) {
508
508
  return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_webhookdef", input, opts);
509
509
  }
510
+ /** Invoke the RFC I MR-3a MemoryBackendDef substrate tool over HTTP.
511
+ * Author + fork + retire named memory backend definitions at runtime.
512
+ * Mirror of {@link LoomcycleClient.webhookDef} for memory backends.
513
+ *
514
+ * Operator-admin-only: this endpoint requires the bearer token.
515
+ *
516
+ * Op-discriminated input: `{op: "create" | "fork" | "get" |
517
+ * "list" | "retire", ...}`.
518
+ *
519
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals;
520
+ * {@link InvalidArgumentError} on 400 (malformed JSON);
521
+ * {@link AuthError} on 401. */
522
+ async memoryBackendDef(input, opts) {
523
+ return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_memorybackenddef", input, opts);
524
+ }
510
525
  // ---- v0.10.3 Library v2 enumeration (read-only, merged yaml+substrate) ----
511
526
  /** List every agent the runtime knows about — yaml-static + dynamic
512
527
  * AgentDefs merged into one envelope per name. Each entry carries
package/dist/client.d.ts CHANGED
@@ -366,6 +366,21 @@ export declare class LoomcycleClient {
366
366
  webhookDef(input: SubstrateToolInput, opts?: {
367
367
  signal?: AbortSignal;
368
368
  }): Promise<SubstrateToolResponse>;
369
+ /** Invoke the RFC I MR-3a MemoryBackendDef substrate tool over HTTP.
370
+ * Author + fork + retire named memory backend definitions at runtime.
371
+ * Mirror of {@link LoomcycleClient.webhookDef} for memory backends.
372
+ *
373
+ * Operator-admin-only: this endpoint requires the bearer token.
374
+ *
375
+ * Op-discriminated input: `{op: "create" | "fork" | "get" |
376
+ * "list" | "retire", ...}`.
377
+ *
378
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals;
379
+ * {@link InvalidArgumentError} on 400 (malformed JSON);
380
+ * {@link AuthError} on 401. */
381
+ memoryBackendDef(input: SubstrateToolInput, opts?: {
382
+ signal?: AbortSignal;
383
+ }): Promise<SubstrateToolResponse>;
369
384
  /** List every agent the runtime knows about — yaml-static + dynamic
370
385
  * AgentDefs merged into one envelope per name. Each entry carries
371
386
  * `source: "static-only" | "dynamic-only" | "both"` so callers can
package/dist/client.js CHANGED
@@ -504,6 +504,21 @@ export class LoomcycleClient {
504
504
  async webhookDef(input, opts) {
505
505
  return postJSON(this.ctx, "/v1/_webhookdef", input, opts);
506
506
  }
507
+ /** Invoke the RFC I MR-3a MemoryBackendDef substrate tool over HTTP.
508
+ * Author + fork + retire named memory backend definitions at runtime.
509
+ * Mirror of {@link LoomcycleClient.webhookDef} for memory backends.
510
+ *
511
+ * Operator-admin-only: this endpoint requires the bearer token.
512
+ *
513
+ * Op-discriminated input: `{op: "create" | "fork" | "get" |
514
+ * "list" | "retire", ...}`.
515
+ *
516
+ * Raises {@link SubstrateToolRefusedError} on tool-level refusals;
517
+ * {@link InvalidArgumentError} on 400 (malformed JSON);
518
+ * {@link AuthError} on 401. */
519
+ async memoryBackendDef(input, opts) {
520
+ return postJSON(this.ctx, "/v1/_memorybackenddef", input, opts);
521
+ }
507
522
  // ---- v0.10.3 Library v2 enumeration (read-only, merged yaml+substrate) ----
508
523
  /** List every agent the runtime knows about — yaml-static + dynamic
509
524
  * AgentDefs merged into one envelope per name. Each entry carries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcycle/client",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "TypeScript client for the loomcycle sidecar (HTTP+SSE). 46 methods covering run streaming, agent metadata, pause/resume/state, 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).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",