@loomcycle/client 1.84.0 → 1.86.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/types.d.ts +203 -3
- package/package.json +1 -1
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" | "steer" | "context_compaction" | "capability_inert" | "limit" | "override" | "_meta";
|
|
10
|
+
export type EventType = "started" | "text" | "tool_call" | "tool_result" | "usage" | "done" | "error" | "retry" | "host_widened" | "session" | "agent" | "awaiting_input" | "steer" | "context_compaction" | "capability_inert" | "limit" | "override" | "context_recap" | "context_state" | "context_distill_declined" | "context_exhausted" | "thinking" | "turn_cancelled" | "provider_fallback" | "fallback_suppressed" | "model_downgraded" | "cache_invalidated" | "reasoning_invalidated" | "channel_publish" | "channel_delivery" | "interruption_pending" | "spawn_child_started" | "spawn_child_result" | "_meta";
|
|
11
11
|
export interface ToolUse {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
@@ -140,6 +140,30 @@ export interface EffectiveConfigResponse {
|
|
|
140
140
|
run_id: string;
|
|
141
141
|
agent: string;
|
|
142
142
|
fields: Record<string, EffectiveValue>;
|
|
143
|
+
/** Settings this run carries that CANNOT take effect — the advisory half of
|
|
144
|
+
* the report, and the half a `fields` map structurally cannot express.
|
|
145
|
+
*
|
|
146
|
+
* `fields` answers "what value is in force"; a setting can be in force and
|
|
147
|
+
* still be inert, because a DIFFERENT setting disables it — a compaction
|
|
148
|
+
* threshold under a mode that never consults compaction, a `memory_flush`
|
|
149
|
+
* whose banking is gated on `harvest_to_memory`. An operator reading only
|
|
150
|
+
* `fields` sees their value and concludes it is doing something.
|
|
151
|
+
*
|
|
152
|
+
* Always present, `[]` when nothing is inert, so a consumer can tell "this
|
|
153
|
+
* run has no traps" from "this server does not report them". */
|
|
154
|
+
inert: InertContextSetting[];
|
|
155
|
+
}
|
|
156
|
+
/** One entry in {@link EffectiveConfigResponse.inert}. */
|
|
157
|
+
export interface InertContextSetting {
|
|
158
|
+
/** The yaml path that cannot take effect, e.g. `compaction.memory_flush`. */
|
|
159
|
+
setting: string;
|
|
160
|
+
/** Why — named in terms of the OTHER setting that disables it, because that
|
|
161
|
+
* is the one the operator has to change their mind about. */
|
|
162
|
+
reason: string;
|
|
163
|
+
/** The setting that DOES do what they were reaching for. Absent when there
|
|
164
|
+
* is no equivalent, which is itself the answer; an advisory without it
|
|
165
|
+
* leaves the operator hunting for the live knob. */
|
|
166
|
+
fix?: string;
|
|
143
167
|
}
|
|
144
168
|
/** The reply from `retuneRun` — the run's MERGED configuration, not an echo of
|
|
145
169
|
* the request.
|
|
@@ -237,6 +261,151 @@ export interface LimitInfo {
|
|
|
237
261
|
/** Human-readable banner string. Optional. */
|
|
238
262
|
message?: string;
|
|
239
263
|
}
|
|
264
|
+
/** A tier's verdict inside {@link ContextExhaustedInfo} — what was tried and
|
|
265
|
+
* why it refused. Carried verbatim from each decline rather than summarised,
|
|
266
|
+
* because each already names its own fix. */
|
|
267
|
+
export interface ContextTierVerdict {
|
|
268
|
+
/** "recap" | "compaction" | "stateful". */
|
|
269
|
+
mode: string;
|
|
270
|
+
/** Same vocabulary as {@link ContextDistillDeclinedInfo.reason}. */
|
|
271
|
+
reason?: string;
|
|
272
|
+
message?: string;
|
|
273
|
+
}
|
|
274
|
+
/** Payload on `context_distill_declined` — a distillation tier ran and refused.
|
|
275
|
+
*
|
|
276
|
+
* The coarse branch is the event's existence: a run that distilled emits
|
|
277
|
+
* `context_recap` / `context_compaction` instead. `reason` says which refusal,
|
|
278
|
+
* and new values are ADDITIVE — a consumer that does not know one should fall
|
|
279
|
+
* back to `message`, never drop the frame. */
|
|
280
|
+
export interface ContextDistillDeclinedInfo {
|
|
281
|
+
/** Which tier declined: "recap" | "compaction". */
|
|
282
|
+
mode: string;
|
|
283
|
+
/** What opened the gate: "auto" | "self" | "manual". */
|
|
284
|
+
trigger?: string;
|
|
285
|
+
/** "split_declined" | "empty_summary" | "summary_error" | "not_smaller" |
|
|
286
|
+
* "reasoning_keep" | "noop" | "noop_keep_spans_all" | "noop_not_smaller". */
|
|
287
|
+
reason: string;
|
|
288
|
+
used_tokens?: number;
|
|
289
|
+
window_tokens?: number;
|
|
290
|
+
/** Conversation length at the refusal. */
|
|
291
|
+
messages?: number;
|
|
292
|
+
keep_last_n?: number;
|
|
293
|
+
before_tokens?: number;
|
|
294
|
+
after_tokens?: number;
|
|
295
|
+
/** "info" | "warning". `warning` means this path cannot reclaim the window
|
|
296
|
+
* and will decline identically again; `info` means the mechanism is healthy
|
|
297
|
+
* and the refusal was correct for this input. */
|
|
298
|
+
severity?: string;
|
|
299
|
+
message?: string;
|
|
300
|
+
}
|
|
301
|
+
/** Payload on `context_exhausted` — every tier ran (or could not) and the
|
|
302
|
+
* window is still full. Reported at most once per run per 10-point band, and
|
|
303
|
+
* ONLY from a footprint a provider actually returned: before the first turn
|
|
304
|
+
* the numbers are an estimate of a request that has not been sent, and the run
|
|
305
|
+
* says nothing. */
|
|
306
|
+
export interface ContextExhaustedInfo {
|
|
307
|
+
used_tokens: number;
|
|
308
|
+
window_tokens: number;
|
|
309
|
+
used_pct?: number;
|
|
310
|
+
/** Every tier's explanation, not just the last — a run can decline twice for
|
|
311
|
+
* DIFFERENT reasons, and half the fix is not a fix. */
|
|
312
|
+
verdicts?: ContextTierVerdict[];
|
|
313
|
+
message?: string;
|
|
314
|
+
}
|
|
315
|
+
/** Payload on `context_compaction` — the L0 summarize-and-keep-tail form. */
|
|
316
|
+
export interface ContextCompactionInfo {
|
|
317
|
+
summary: string;
|
|
318
|
+
before_tokens?: number;
|
|
319
|
+
after_tokens?: number;
|
|
320
|
+
keep_n?: number;
|
|
321
|
+
keep_first?: boolean;
|
|
322
|
+
trigger?: string;
|
|
323
|
+
/** Set when the evicted span was banked to persistent memory. */
|
|
324
|
+
memory_banked?: {
|
|
325
|
+
pending_id?: string;
|
|
326
|
+
messages?: number;
|
|
327
|
+
error?: string;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
/** Payload on `context_recap` — the L1 form: the evicted span becomes a running
|
|
331
|
+
* note and the last N turns stay verbatim. */
|
|
332
|
+
export interface ContextRecapInfo {
|
|
333
|
+
recap: string;
|
|
334
|
+
before_tokens?: number;
|
|
335
|
+
after_tokens?: number;
|
|
336
|
+
keep_n?: number;
|
|
337
|
+
keep_first?: boolean;
|
|
338
|
+
trigger?: string;
|
|
339
|
+
/** "recap" | "drop" — what happened to the evicted reasoning. */
|
|
340
|
+
reasoning?: string;
|
|
341
|
+
}
|
|
342
|
+
/** Payload on `context_state` — the L2 stateful form, emitted once per step. */
|
|
343
|
+
export interface ContextStateInfo {
|
|
344
|
+
/** Σ after the step's patch was merged. */
|
|
345
|
+
state: Record<string, unknown>;
|
|
346
|
+
/** What this step changed. */
|
|
347
|
+
patch?: Record<string, unknown>;
|
|
348
|
+
iter: number;
|
|
349
|
+
action?: string;
|
|
350
|
+
reasoning?: string;
|
|
351
|
+
/** A schema the model proposed. INERT — recorded for an operator to adopt by
|
|
352
|
+
* forking the agent def, never applied to this run's validation. */
|
|
353
|
+
proposed_schema?: Record<string, unknown>;
|
|
354
|
+
/** Σ keys dropped by retention-class eviction this step. Banked to memory
|
|
355
|
+
* before they went, so a later recall can fetch them back. */
|
|
356
|
+
evicted?: string[];
|
|
357
|
+
}
|
|
358
|
+
/** Payload on `provider_fallback` / `fallback_suppressed` / `model_downgraded` —
|
|
359
|
+
* the runtime moved (or refused to move) the run after a failure. */
|
|
360
|
+
export interface FallbackInfo {
|
|
361
|
+
failed_provider: string;
|
|
362
|
+
failed_model: string;
|
|
363
|
+
new_provider?: string;
|
|
364
|
+
new_model?: string;
|
|
365
|
+
attempt: number;
|
|
366
|
+
user_tier: string;
|
|
367
|
+
reason: string;
|
|
368
|
+
cause_error?: string;
|
|
369
|
+
}
|
|
370
|
+
/** Payload on `channel_publish` / `channel_delivery`. */
|
|
371
|
+
export interface ChannelEventInfo {
|
|
372
|
+
channel: string;
|
|
373
|
+
message_id: string;
|
|
374
|
+
scope: string;
|
|
375
|
+
scope_id?: string;
|
|
376
|
+
payload_bytes: number;
|
|
377
|
+
payload_preview?: string;
|
|
378
|
+
dropped_oldest?: number;
|
|
379
|
+
cursor?: string;
|
|
380
|
+
}
|
|
381
|
+
/** Payload on `interruption_pending` — the run asked a human a question and is
|
|
382
|
+
* waiting on the answer. */
|
|
383
|
+
export interface InterruptionEventInfo {
|
|
384
|
+
interrupt_id: string;
|
|
385
|
+
kind: string;
|
|
386
|
+
question?: string;
|
|
387
|
+
options?: unknown;
|
|
388
|
+
context?: string;
|
|
389
|
+
priority: string;
|
|
390
|
+
expires_at?: string;
|
|
391
|
+
}
|
|
392
|
+
/** Payload on `turn_cancelled` (RFC BH). */
|
|
393
|
+
export interface TurnCancelledInfo {
|
|
394
|
+
reason?: string;
|
|
395
|
+
since_turn: number;
|
|
396
|
+
}
|
|
397
|
+
/** Payload on `spawn_child_started` / `spawn_child_result` — the two-event
|
|
398
|
+
* ledger a fan-out parent writes so an in-flight child survives a pause. */
|
|
399
|
+
export interface SpawnChildInfo {
|
|
400
|
+
tool_use_id: string;
|
|
401
|
+
index: number;
|
|
402
|
+
run_id?: string;
|
|
403
|
+
agent?: string;
|
|
404
|
+
ok?: boolean;
|
|
405
|
+
output?: string;
|
|
406
|
+
error?: string;
|
|
407
|
+
state?: Record<string, unknown>;
|
|
408
|
+
}
|
|
240
409
|
export interface AgentEvent {
|
|
241
410
|
type: EventType;
|
|
242
411
|
text?: string;
|
|
@@ -284,6 +453,32 @@ export interface AgentEvent {
|
|
|
284
453
|
session_id?: string;
|
|
285
454
|
parent_agent_id?: string | null;
|
|
286
455
|
parent_context?: ParentContext;
|
|
456
|
+
/** Payload on `context_compaction`. */
|
|
457
|
+
context_compaction?: ContextCompactionInfo;
|
|
458
|
+
/** Payload on `context_recap`. */
|
|
459
|
+
context_recap?: ContextRecapInfo;
|
|
460
|
+
/** Payload on `context_state`. */
|
|
461
|
+
context_state?: ContextStateInfo;
|
|
462
|
+
/** Payload on `context_distill_declined`. Named `context_distill` on the
|
|
463
|
+
* wire, not `context_distill_declined` — the field is the server struct's
|
|
464
|
+
* json tag and does not mirror the event name. */
|
|
465
|
+
context_distill?: ContextDistillDeclinedInfo;
|
|
466
|
+
/** Payload on `context_exhausted`. */
|
|
467
|
+
context_exhausted?: ContextExhaustedInfo;
|
|
468
|
+
/** Payload on `provider_fallback` / `fallback_suppressed` /
|
|
469
|
+
* `model_downgraded`. */
|
|
470
|
+
fallback?: FallbackInfo;
|
|
471
|
+
/** Payload on `channel_publish` / `channel_delivery`. */
|
|
472
|
+
channel?: ChannelEventInfo;
|
|
473
|
+
/** Payload on `interruption_pending`. */
|
|
474
|
+
interruption?: InterruptionEventInfo;
|
|
475
|
+
/** Payload on `turn_cancelled`. */
|
|
476
|
+
turn_cancelled?: TurnCancelledInfo;
|
|
477
|
+
/** Payload on `spawn_child_started` / `spawn_child_result`. */
|
|
478
|
+
spawn_child?: SpawnChildInfo;
|
|
479
|
+
/** The assistant turn's accumulated reasoning trace, on `done`. Empty for
|
|
480
|
+
* non-thinking models. */
|
|
481
|
+
reasoning?: string;
|
|
287
482
|
meta_subtype?: "stream_open" | "stream_close";
|
|
288
483
|
meta_reason?: string;
|
|
289
484
|
}
|
|
@@ -564,8 +759,13 @@ export interface ContextOptions {
|
|
|
564
759
|
/** What happens to the evicted span in recap mode.
|
|
565
760
|
* - `recap` (default) — summarise it into a running note.
|
|
566
761
|
* - `drop` — discard it with no note.
|
|
567
|
-
* - `keep` — distil nothing
|
|
568
|
-
*
|
|
762
|
+
* - `keep` — distil nothing. Reported as a `reasoning_keep`
|
|
763
|
+
* decline WHEN THE THRESHOLD IS REACHED, so the run
|
|
764
|
+
* says why the window is not being reclaimed. Below
|
|
765
|
+
* the threshold there is nothing to report and no
|
|
766
|
+
* frame is emitted — absence of a decline means the
|
|
767
|
+
* gate did not open, not that distillation is
|
|
768
|
+
* broken. */
|
|
569
769
|
reasoning?: "recap" | "drop" | "keep";
|
|
570
770
|
/** Character budget for the running recap note (default 512).
|
|
571
771
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomcycle/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.86.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",
|