@loomcycle/client 1.72.0 → 1.78.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/README.md +26 -1
- package/dist/cjs/client.js +99 -5
- package/dist/cjs/index.js +3 -0
- package/dist/client.d.ts +87 -13
- package/dist/client.js +99 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -0
- package/dist/types.d.ts +205 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -335,7 +335,7 @@ Two substrate-side surfaces added in the n8n integration's Phase 0 wire-API work
|
|
|
335
335
|
| Method | Returns | Notes |
|
|
336
336
|
|---|---|---|
|
|
337
337
|
| `listChannels()` | `Promise<ListChannelsResponse>` | Operator-declared channels + aggregate stats (`message_count`, `oldest_visible_at`, `newest_visible_at`). Mirrors `GET /v1/_channels`. |
|
|
338
|
-
| `streamUserRunStates(userId, opts?)` | `AsyncIterable<RunStateStreamItem>` | SSE stream of run state transitions for one user. Yields one `{ kind: "open", ... }` frame then one `{ kind: "event", payload: RunStateEvent }` per matching transition until close. |
|
|
338
|
+
| `streamUserRunStates(userId, opts?)` | `AsyncIterable<RunStateStreamItem>` | SSE stream of run state transitions for one user. Yields one `{ kind: "open", ... }` frame then one `{ kind: "event", payload: RunStateEvent }` per matching transition until close. `opts.walkId` (v1.78.0) narrows it server-side to one team walk's agents. |
|
|
339
339
|
|
|
340
340
|
**Streaming run-state events** — for orchestration UIs that want to react when an agent run completes / fails / cancels:
|
|
341
341
|
|
|
@@ -537,6 +537,31 @@ for await (const item of client.streamUserRunStates(userId, {
|
|
|
537
537
|
|
|
538
538
|
`streamUserRunStates` holds ONE connection per user regardless of how many concurrent runs that user has. Server-enforced 30-minute timeout; reconnect on close.
|
|
539
539
|
|
|
540
|
+
### `walkId` — watching ONE team walk's agents (v1.78.0)
|
|
541
|
+
|
|
542
|
+
A detached team walk returns a `run_id`, and that id **is** the walk id every run it spawns carries in `parent_context.walk_id`. Pass it back as `walkId` and the server filters the stream to that workflow — no second identifier, nothing to map:
|
|
543
|
+
|
|
544
|
+
```ts
|
|
545
|
+
const { run_id } = await client.runTeam({ team: "triage", detach: true });
|
|
546
|
+
|
|
547
|
+
for await (const item of client.streamUserRunStates(userId, { walkId: run_id })) {
|
|
548
|
+
if (item.kind === "open") {
|
|
549
|
+
// The server echoes the filter it applied. Check it: a filter that matched
|
|
550
|
+
// nothing and a filter the server did not understand are both a quiet
|
|
551
|
+
// stream, and only this tells them apart.
|
|
552
|
+
if (item.payload.filter_walk_id !== run_id) throw new Error("walk filter not applied");
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
if (item.kind !== "event") continue;
|
|
556
|
+
const pc = item.payload.parent_context;
|
|
557
|
+
// wave_id groups one fan-out; wave_index is the position inside it, so a
|
|
558
|
+
// live view can place an agent WITHIN the walk, not merely inside it.
|
|
559
|
+
render(item.payload.agent, item.payload.status, pc?.wave_id, pc?.wave_index);
|
|
560
|
+
}
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
Unlike `parentAgentId`, which the adapter applies after parsing each frame, `walkId` is applied by the server — it reduces what crosses the wire, not just what your callback sees.
|
|
564
|
+
|
|
540
565
|
### `debug: true` — synthetic open/close frames
|
|
541
566
|
|
|
542
567
|
All three streaming methods (`runStreaming`, `continueSession`, `streamUserRunStates`) accept `debug?: boolean`. Default off; behaviour is exactly the pre-v0.9.x shape.
|
package/dist/cjs/client.js
CHANGED
|
@@ -1240,17 +1240,46 @@ class LoomcycleClient {
|
|
|
1240
1240
|
async forkTeam(name, overlay, opts) {
|
|
1241
1241
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "fork", name, overlay }, opts);
|
|
1242
1242
|
}
|
|
1243
|
+
/** List every version of ONE team, newest first (op=list) — the lineage
|
|
1244
|
+
* behind {@link LoomcycleClient.listTeams}' roll-up. Tenant-scoped
|
|
1245
|
+
* server-side; a name with no versions returns an empty list rather than
|
|
1246
|
+
* raising. */
|
|
1247
|
+
async listTeamVersions(name, opts) {
|
|
1248
|
+
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "list", name }, opts);
|
|
1249
|
+
}
|
|
1250
|
+
/** Point the team's active pointer at one version (op=promote) — what a new
|
|
1251
|
+
* run of the team by NAME will execute.
|
|
1252
|
+
*
|
|
1253
|
+
* `forkTeam` defaults to promote:false, so authoring a version and putting
|
|
1254
|
+
* it in force are deliberately two steps: an edited graph can be reviewed,
|
|
1255
|
+
* diagrammed, even run by `defId`, before it becomes what the name means. */
|
|
1256
|
+
async promoteTeam(defId, opts) {
|
|
1257
|
+
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "promote", def_id: defId }, opts);
|
|
1258
|
+
}
|
|
1259
|
+
/** Soft-retire one version, or un-retire it (op=retire, `retired` required).
|
|
1260
|
+
*
|
|
1261
|
+
* Retiring is REVERSIBLE and version-scoped: the row stays, its history stays
|
|
1262
|
+
* readable, and passing `false` brings it back. Removing a team is
|
|
1263
|
+
* {@link LoomcycleClient.deleteTeam}, which is neither. */
|
|
1264
|
+
async retireTeam(defId, retired, opts) {
|
|
1265
|
+
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "retire", def_id: defId, retired }, opts);
|
|
1266
|
+
}
|
|
1267
|
+
/** Compare a locally computed content hash against the deployed active
|
|
1268
|
+
* version (op=verify) — the drift check for a team kept in source control
|
|
1269
|
+
* and pushed to several deployments.
|
|
1270
|
+
*
|
|
1271
|
+
* Never raises for an absent team: a name with no active version answers
|
|
1272
|
+
* `{deployed: false, matches: false}`, which a caller distinguishes from a
|
|
1273
|
+
* deployed version whose hash differs. */
|
|
1274
|
+
async verifyTeam(name, contentSha256, opts) {
|
|
1275
|
+
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "verify", name, content_sha256: contentSha256 }, opts);
|
|
1276
|
+
}
|
|
1243
1277
|
/** Hard-remove a whole team by name — all versions + the active pointer
|
|
1244
1278
|
* (op=delete), scoped to the caller's tenant. Teams are runtime-only, so
|
|
1245
1279
|
* this is how an operator clears an obsolete/test team. */
|
|
1246
1280
|
async deleteTeam(name, opts) {
|
|
1247
1281
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", { op: "delete", name }, opts);
|
|
1248
1282
|
}
|
|
1249
|
-
/** Execute a team (op=run) — walk its state graph, spawning each state's agent
|
|
1250
|
-
* until a terminal state, returning the per-state trace. Target the active
|
|
1251
|
-
* version by `name` OR a specific version by `defId`. `input` is the initial
|
|
1252
|
-
* task handed to the entry state's agent. The walk runs under the same
|
|
1253
|
-
* admission a normal run gets (token budget / operator-key / depth). */
|
|
1254
1283
|
async runTeam(target, opts) {
|
|
1255
1284
|
const body = { op: "run" };
|
|
1256
1285
|
if (target.name !== undefined)
|
|
@@ -1263,8 +1292,39 @@ class LoomcycleClient {
|
|
|
1263
1292
|
body.board_chunk_id = target.boardChunkId;
|
|
1264
1293
|
if (target.boardScope !== undefined)
|
|
1265
1294
|
body.board_scope = target.boardScope;
|
|
1295
|
+
if (target.mode !== undefined)
|
|
1296
|
+
body.mode = target.mode;
|
|
1297
|
+
if (target.breakpoints !== undefined)
|
|
1298
|
+
body.breakpoints = target.breakpoints;
|
|
1266
1299
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_teamdef", body, opts);
|
|
1267
1300
|
}
|
|
1301
|
+
/** Read the debug breakpoints armed on a live team walk
|
|
1302
|
+
* (`GET /v1/runs/{run_id}/breakpoints`).
|
|
1303
|
+
*
|
|
1304
|
+
* 404 when no walk is in flight under that run on this replica — loudly,
|
|
1305
|
+
* because an arming that appeared to succeed and then never paused anything
|
|
1306
|
+
* is the worst possible outcome for a debugger. Surface it rather than
|
|
1307
|
+
* treating it as "nothing armed". */
|
|
1308
|
+
async getRunBreakpoints(runId, opts) {
|
|
1309
|
+
return (0, fetch_helpers_js_1.jsonFetch)(this.ctx, `/v1/runs/${encodeURIComponent(runId)}/breakpoints`, opts);
|
|
1310
|
+
}
|
|
1311
|
+
/** Replace the debug breakpoints armed on a live team walk
|
|
1312
|
+
* (`PUT /v1/runs/{run_id}/breakpoints`).
|
|
1313
|
+
*
|
|
1314
|
+
* The WHOLE desired set, not a delta: you hold the configuration and push
|
|
1315
|
+
* it, so two operators cannot interleave a read-modify-write. `[]` is the
|
|
1316
|
+
* off switch. A malformed entry is refused whole and leaves the previous
|
|
1317
|
+
* arming exactly as it was.
|
|
1318
|
+
*
|
|
1319
|
+
* Each entry is a starter state id — `"review"` arms both phases,
|
|
1320
|
+
* `"review:before_dispatch"` or `"review:after_collection"` arms one. An arm
|
|
1321
|
+
* takes effect at the next pause the walk reaches; disarming RELEASES
|
|
1322
|
+
* whatever is still pending rather than stranding it.
|
|
1323
|
+
*
|
|
1324
|
+
* A pause is read and answered through the run's interrupts. */
|
|
1325
|
+
async setRunBreakpoints(runId, breakpoints, opts) {
|
|
1326
|
+
return (0, fetch_helpers_js_1.putJSON)(this.ctx, `/v1/runs/${encodeURIComponent(runId)}/breakpoints`, { breakpoints }, opts);
|
|
1327
|
+
}
|
|
1268
1328
|
/** Invoke the RFC AL Path VFS tool over HTTP (`POST /v1/_path`). A
|
|
1269
1329
|
* Unix-like filesystem over your Memory entries, Volume mounts, and
|
|
1270
1330
|
* Documents — address them by human-readable paths (e.g. /docs/launch).
|
|
@@ -1772,6 +1832,8 @@ class LoomcycleClient {
|
|
|
1772
1832
|
body.publisher = opts.publisher;
|
|
1773
1833
|
if (opts.period !== undefined)
|
|
1774
1834
|
body.period = opts.period;
|
|
1835
|
+
if (opts.hold !== undefined)
|
|
1836
|
+
body.hold = opts.hold;
|
|
1775
1837
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, "/v1/_channels", body, {
|
|
1776
1838
|
signal: opts.signal,
|
|
1777
1839
|
});
|
|
@@ -1789,6 +1851,8 @@ class LoomcycleClient {
|
|
|
1789
1851
|
body.max_messages = opts.max_messages;
|
|
1790
1852
|
if (opts.semantic !== undefined)
|
|
1791
1853
|
body.semantic = opts.semantic;
|
|
1854
|
+
if (opts.hold !== undefined)
|
|
1855
|
+
body.hold = opts.hold;
|
|
1792
1856
|
return (0, fetch_helpers_js_1.patchJSON)(this.ctx, `/v1/_channels/${encodeURIComponent(name)}`, body, { signal: opts.signal });
|
|
1793
1857
|
}
|
|
1794
1858
|
/** Delete a runtime-substrate channel + cascade its persisted
|
|
@@ -1807,6 +1871,21 @@ class LoomcycleClient {
|
|
|
1807
1871
|
async purgeChannel(name, opts) {
|
|
1808
1872
|
return (0, fetch_helpers_js_1.postJSON)(this.ctx, `/v1/_channels/${encodeURIComponent(name)}/purge`, {}, { signal: opts?.signal });
|
|
1809
1873
|
}
|
|
1874
|
+
/** Hand the oldest `count` (default 1) messages held on a `hold:`
|
|
1875
|
+
* channel to its subscribers. Allowed on yaml-declared channels —
|
|
1876
|
+
* releasing moves messages, it does not mutate the definition.
|
|
1877
|
+
* Releasing a channel with nothing held reports zero rather than
|
|
1878
|
+
* failing. */
|
|
1879
|
+
async releaseChannel(name, opts) {
|
|
1880
|
+
const body = {};
|
|
1881
|
+
if (opts?.count !== undefined)
|
|
1882
|
+
body.count = opts.count;
|
|
1883
|
+
if (opts?.scope !== undefined)
|
|
1884
|
+
body.scope = opts.scope;
|
|
1885
|
+
if (opts?.scope_id !== undefined)
|
|
1886
|
+
body.scope_id = opts.scope_id;
|
|
1887
|
+
return (0, fetch_helpers_js_1.postJSON)(this.ctx, `/v1/_channels/${encodeURIComponent(name)}/release`, body, { signal: opts?.signal });
|
|
1888
|
+
}
|
|
1810
1889
|
// ---- v0.11.5 Memory entry admin CRUD ----
|
|
1811
1890
|
/** Idempotently upsert one memory entry by full (scope, scope_id,
|
|
1812
1891
|
* key) identifier. PUT semantics — re-writes overwrite the value.
|
|
@@ -1839,6 +1918,18 @@ class LoomcycleClient {
|
|
|
1839
1918
|
* Errors during the stream throw — they do NOT surface as items.
|
|
1840
1919
|
* Pass an AbortSignal to terminate cleanly from the consumer side.
|
|
1841
1920
|
*
|
|
1921
|
+
* v1.78.0 — `walkId` is a SERVER-side filter: only the runs one team
|
|
1922
|
+
* walk spawned. A walk's own run_id IS its walk id, so a caller that
|
|
1923
|
+
* started a team with `detach: true` passes back the handle it already
|
|
1924
|
+
* holds and gets a live view of that workflow's agents:
|
|
1925
|
+
*
|
|
1926
|
+
* ```ts
|
|
1927
|
+
* const { run_id } = await client.runTeam({ team: "triage", detach: true });
|
|
1928
|
+
* for await (const item of client.streamUserRunStates(userId, { walkId: run_id })) {
|
|
1929
|
+
* if (item.kind === "event") place(item.payload.parent_context?.wave_index);
|
|
1930
|
+
* }
|
|
1931
|
+
* ```
|
|
1932
|
+
*
|
|
1842
1933
|
* v0.9.x options:
|
|
1843
1934
|
* - `parentAgentId` — client-side filter: only `kind: "event"`
|
|
1844
1935
|
* items whose payload's `parent_agent_id` matches are yielded.
|
|
@@ -1857,6 +1948,9 @@ class LoomcycleClient {
|
|
|
1857
1948
|
if (opts?.agent) {
|
|
1858
1949
|
params.set("agent", opts.agent);
|
|
1859
1950
|
}
|
|
1951
|
+
if (opts?.walkId) {
|
|
1952
|
+
params.set("walk_id", opts.walkId);
|
|
1953
|
+
}
|
|
1860
1954
|
const qs = params.toString();
|
|
1861
1955
|
const path = `/v1/users/${encodeURIComponent(userId)}/agents/stream` +
|
|
1862
1956
|
(qs ? `?${qs}` : "");
|
package/dist/cjs/index.js
CHANGED
|
@@ -84,6 +84,9 @@
|
|
|
84
84
|
* forkTeam(name, overlay): Promise<CreatedTeam>
|
|
85
85
|
* deleteTeam(name): Promise<{name, deleted}>
|
|
86
86
|
* runTeam({name|defId, input}): Promise<TeamRunResult>
|
|
87
|
+
* runTeam({..., mode:"detach"}): Promise<TeamRunDetached> // the handle, now — the walk runs on
|
|
88
|
+
* getRunBreakpoints(runId): Promise<TeamBreakpoints> // debug a walk that is already running
|
|
89
|
+
* setRunBreakpoints(runId, breakpoints): Promise<TeamBreakpoints>
|
|
87
90
|
*
|
|
88
91
|
* // Path VFS + chunked-graph Documents on the wire (v1.4.0 — RFC AL / RFC AK)
|
|
89
92
|
* path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
|
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 { CredentialListResponse, CredentialMeta, CredentialScope, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureReport, ErasureResult, 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, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, ListUserTokensResponse, RunnableAgentsResponse, LLMChatOptions, LLMChatResponse, LLMChatStreamItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, MCPServerDefVerifyResult, MemoryEmbedStatsResponse, MemoryEntriesResponse, MemoryEntryResponse, MemoryBackfillResponse, MemoryPurgeResponse, MemoryReembedResponse, MemoryScopeIDsResponse, MemoryScopesResponse, MemorySearchInput, MemorySearchResponse, PauseResult, PersistentVolumesResponse, EphemeralVolumesResponse, RegisterHookOptions, RegisterHookResponse, ResolveInterruptOptions, ResumeResult, ResolverMatrix, CompactRunResult, ReplaySessionResult, CancelTurnResult, 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, ConfigResponse, SetTokenLimitRequest } from "./types.js";
|
|
28
|
+
import type { CredentialListResponse, CredentialMeta, CredentialScope, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureReport, ErasureResult, 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, ChannelReleaseResult, ChannelSubscribeResult, CreateChannelOptions, ListChannelsResponse, PeekChannelOptions, PublishChannelOptions, ReleaseChannelOptions, SetMemoryEntryOptions, SetMemoryEntryResponse, SubscribeChannelOptions, UpdateChannelOptions, LibraryAgentDefinition, LibraryListResponse, LibraryMcpServerDefinition, LibrarySkillDefinition, ListUsersResponse, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, ListUserTokensResponse, RunnableAgentsResponse, LLMChatOptions, LLMChatResponse, LLMChatStreamItem, LLMEmbeddingsOptions, LLMEmbeddingsResponse, MCPServerDefVerifyResult, MemoryEmbedStatsResponse, MemoryEntriesResponse, MemoryEntryResponse, MemoryBackfillResponse, MemoryPurgeResponse, MemoryReembedResponse, MemoryScopeIDsResponse, MemoryScopesResponse, MemorySearchInput, MemorySearchResponse, PauseResult, PersistentVolumesResponse, EphemeralVolumesResponse, RegisterHookOptions, RegisterHookResponse, ResolveInterruptOptions, ResumeResult, ResolverMatrix, CompactRunResult, ReplaySessionResult, CancelTurnResult, RunBatchOptions, RunBatchResult, RunOptions, RunStateStreamItem, RuntimeStateResponse, SnapshotCreateResponse, SnapshotDescriptor, SnapshotEnvelope, SnapshotRestoreResponse, StreamUserRunStatesOptions, SubstrateToolInput, SubstrateToolResponse, CreatedTeam, ListTeamsResponse, PromotedTeam, RetiredTeam, TeamBreakpoints, TeamDefDetail, TeamRunDetached, TeamRunTarget, TeamVerification, TeamVersionList, TeamDiagram, TeamRunResult, PathToolInput, PathToolResponse, DocumentToolInput, DocumentToolResponse, HistoryToolInput, HistoryToolResponse, TranscriptResponse, WhoamiResponse, UsageDimension, UsageReportResponse, TokenLimit, TokenLimitsResponse, ConfigResponse, SetTokenLimitRequest } from "./types.js";
|
|
29
29
|
export declare class LoomcycleClient {
|
|
30
30
|
private ctx;
|
|
31
31
|
constructor(opts?: ClientOptions);
|
|
@@ -870,6 +870,40 @@ export declare class LoomcycleClient {
|
|
|
870
870
|
forkTeam(name: string, overlay: Record<string, unknown>, opts?: {
|
|
871
871
|
signal?: AbortSignal;
|
|
872
872
|
}): Promise<CreatedTeam>;
|
|
873
|
+
/** List every version of ONE team, newest first (op=list) — the lineage
|
|
874
|
+
* behind {@link LoomcycleClient.listTeams}' roll-up. Tenant-scoped
|
|
875
|
+
* server-side; a name with no versions returns an empty list rather than
|
|
876
|
+
* raising. */
|
|
877
|
+
listTeamVersions(name: string, opts?: {
|
|
878
|
+
signal?: AbortSignal;
|
|
879
|
+
}): Promise<TeamVersionList>;
|
|
880
|
+
/** Point the team's active pointer at one version (op=promote) — what a new
|
|
881
|
+
* run of the team by NAME will execute.
|
|
882
|
+
*
|
|
883
|
+
* `forkTeam` defaults to promote:false, so authoring a version and putting
|
|
884
|
+
* it in force are deliberately two steps: an edited graph can be reviewed,
|
|
885
|
+
* diagrammed, even run by `defId`, before it becomes what the name means. */
|
|
886
|
+
promoteTeam(defId: string, opts?: {
|
|
887
|
+
signal?: AbortSignal;
|
|
888
|
+
}): Promise<PromotedTeam>;
|
|
889
|
+
/** Soft-retire one version, or un-retire it (op=retire, `retired` required).
|
|
890
|
+
*
|
|
891
|
+
* Retiring is REVERSIBLE and version-scoped: the row stays, its history stays
|
|
892
|
+
* readable, and passing `false` brings it back. Removing a team is
|
|
893
|
+
* {@link LoomcycleClient.deleteTeam}, which is neither. */
|
|
894
|
+
retireTeam(defId: string, retired: boolean, opts?: {
|
|
895
|
+
signal?: AbortSignal;
|
|
896
|
+
}): Promise<RetiredTeam>;
|
|
897
|
+
/** Compare a locally computed content hash against the deployed active
|
|
898
|
+
* version (op=verify) — the drift check for a team kept in source control
|
|
899
|
+
* and pushed to several deployments.
|
|
900
|
+
*
|
|
901
|
+
* Never raises for an absent team: a name with no active version answers
|
|
902
|
+
* `{deployed: false, matches: false}`, which a caller distinguishes from a
|
|
903
|
+
* deployed version whose hash differs. */
|
|
904
|
+
verifyTeam(name: string, contentSha256: string, opts?: {
|
|
905
|
+
signal?: AbortSignal;
|
|
906
|
+
}): Promise<TeamVerification>;
|
|
873
907
|
/** Hard-remove a whole team by name — all versions + the active pointer
|
|
874
908
|
* (op=delete), scoped to the caller's tenant. Teams are runtime-only, so
|
|
875
909
|
* this is how an operator clears an obsolete/test team. */
|
|
@@ -884,21 +918,43 @@ export declare class LoomcycleClient {
|
|
|
884
918
|
* version by `name` OR a specific version by `defId`. `input` is the initial
|
|
885
919
|
* task handed to the entry state's agent. The walk runs under the same
|
|
886
920
|
* admission a normal run gets (token budget / operator-key / depth). */
|
|
887
|
-
runTeam(target: {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
* `parent_context` (so a board client can pin the live agent to the
|
|
895
|
-
* card). Omit for an ephemeral run. */
|
|
896
|
-
boardChunkId?: string;
|
|
897
|
-
/** The Document scope of `boardChunkId` (agent | user, default user). */
|
|
898
|
-
boardScope?: "agent" | "user";
|
|
921
|
+
runTeam(target: TeamRunTarget & {
|
|
922
|
+
mode: "detach";
|
|
923
|
+
}, opts?: {
|
|
924
|
+
signal?: AbortSignal;
|
|
925
|
+
}): Promise<TeamRunDetached>;
|
|
926
|
+
runTeam(target: TeamRunTarget & {
|
|
927
|
+
mode?: undefined;
|
|
899
928
|
}, opts?: {
|
|
900
929
|
signal?: AbortSignal;
|
|
901
930
|
}): Promise<TeamRunResult>;
|
|
931
|
+
/** Read the debug breakpoints armed on a live team walk
|
|
932
|
+
* (`GET /v1/runs/{run_id}/breakpoints`).
|
|
933
|
+
*
|
|
934
|
+
* 404 when no walk is in flight under that run on this replica — loudly,
|
|
935
|
+
* because an arming that appeared to succeed and then never paused anything
|
|
936
|
+
* is the worst possible outcome for a debugger. Surface it rather than
|
|
937
|
+
* treating it as "nothing armed". */
|
|
938
|
+
getRunBreakpoints(runId: string, opts?: {
|
|
939
|
+
signal?: AbortSignal;
|
|
940
|
+
}): Promise<TeamBreakpoints>;
|
|
941
|
+
/** Replace the debug breakpoints armed on a live team walk
|
|
942
|
+
* (`PUT /v1/runs/{run_id}/breakpoints`).
|
|
943
|
+
*
|
|
944
|
+
* The WHOLE desired set, not a delta: you hold the configuration and push
|
|
945
|
+
* it, so two operators cannot interleave a read-modify-write. `[]` is the
|
|
946
|
+
* off switch. A malformed entry is refused whole and leaves the previous
|
|
947
|
+
* arming exactly as it was.
|
|
948
|
+
*
|
|
949
|
+
* Each entry is a starter state id — `"review"` arms both phases,
|
|
950
|
+
* `"review:before_dispatch"` or `"review:after_collection"` arms one. An arm
|
|
951
|
+
* takes effect at the next pause the walk reaches; disarming RELEASES
|
|
952
|
+
* whatever is still pending rather than stranding it.
|
|
953
|
+
*
|
|
954
|
+
* A pause is read and answered through the run's interrupts. */
|
|
955
|
+
setRunBreakpoints(runId: string, breakpoints: string[], opts?: {
|
|
956
|
+
signal?: AbortSignal;
|
|
957
|
+
}): Promise<TeamBreakpoints>;
|
|
902
958
|
/** Invoke the RFC AL Path VFS tool over HTTP (`POST /v1/_path`). A
|
|
903
959
|
* Unix-like filesystem over your Memory entries, Volume mounts, and
|
|
904
960
|
* Documents — address them by human-readable paths (e.g. /docs/launch).
|
|
@@ -1185,6 +1241,12 @@ export declare class LoomcycleClient {
|
|
|
1185
1241
|
purgeChannel(name: string, opts?: {
|
|
1186
1242
|
signal?: AbortSignal;
|
|
1187
1243
|
}): Promise<ChannelPurgeResult>;
|
|
1244
|
+
/** Hand the oldest `count` (default 1) messages held on a `hold:`
|
|
1245
|
+
* channel to its subscribers. Allowed on yaml-declared channels —
|
|
1246
|
+
* releasing moves messages, it does not mutate the definition.
|
|
1247
|
+
* Releasing a channel with nothing held reports zero rather than
|
|
1248
|
+
* failing. */
|
|
1249
|
+
releaseChannel(name: string, opts?: ReleaseChannelOptions): Promise<ChannelReleaseResult>;
|
|
1188
1250
|
/** Idempotently upsert one memory entry by full (scope, scope_id,
|
|
1189
1251
|
* key) identifier. PUT semantics — re-writes overwrite the value.
|
|
1190
1252
|
* Optional embed flag triggers a synchronous embed via the
|
|
@@ -1208,6 +1270,18 @@ export declare class LoomcycleClient {
|
|
|
1208
1270
|
* Errors during the stream throw — they do NOT surface as items.
|
|
1209
1271
|
* Pass an AbortSignal to terminate cleanly from the consumer side.
|
|
1210
1272
|
*
|
|
1273
|
+
* v1.78.0 — `walkId` is a SERVER-side filter: only the runs one team
|
|
1274
|
+
* walk spawned. A walk's own run_id IS its walk id, so a caller that
|
|
1275
|
+
* started a team with `detach: true` passes back the handle it already
|
|
1276
|
+
* holds and gets a live view of that workflow's agents:
|
|
1277
|
+
*
|
|
1278
|
+
* ```ts
|
|
1279
|
+
* const { run_id } = await client.runTeam({ team: "triage", detach: true });
|
|
1280
|
+
* for await (const item of client.streamUserRunStates(userId, { walkId: run_id })) {
|
|
1281
|
+
* if (item.kind === "event") place(item.payload.parent_context?.wave_index);
|
|
1282
|
+
* }
|
|
1283
|
+
* ```
|
|
1284
|
+
*
|
|
1211
1285
|
* v0.9.x options:
|
|
1212
1286
|
* - `parentAgentId` — client-side filter: only `kind: "event"`
|
|
1213
1287
|
* items whose payload's `parent_agent_id` matches are yielded.
|
package/dist/client.js
CHANGED
|
@@ -1237,17 +1237,46 @@ export class LoomcycleClient {
|
|
|
1237
1237
|
async forkTeam(name, overlay, opts) {
|
|
1238
1238
|
return postJSON(this.ctx, "/v1/_teamdef", { op: "fork", name, overlay }, opts);
|
|
1239
1239
|
}
|
|
1240
|
+
/** List every version of ONE team, newest first (op=list) — the lineage
|
|
1241
|
+
* behind {@link LoomcycleClient.listTeams}' roll-up. Tenant-scoped
|
|
1242
|
+
* server-side; a name with no versions returns an empty list rather than
|
|
1243
|
+
* raising. */
|
|
1244
|
+
async listTeamVersions(name, opts) {
|
|
1245
|
+
return postJSON(this.ctx, "/v1/_teamdef", { op: "list", name }, opts);
|
|
1246
|
+
}
|
|
1247
|
+
/** Point the team's active pointer at one version (op=promote) — what a new
|
|
1248
|
+
* run of the team by NAME will execute.
|
|
1249
|
+
*
|
|
1250
|
+
* `forkTeam` defaults to promote:false, so authoring a version and putting
|
|
1251
|
+
* it in force are deliberately two steps: an edited graph can be reviewed,
|
|
1252
|
+
* diagrammed, even run by `defId`, before it becomes what the name means. */
|
|
1253
|
+
async promoteTeam(defId, opts) {
|
|
1254
|
+
return postJSON(this.ctx, "/v1/_teamdef", { op: "promote", def_id: defId }, opts);
|
|
1255
|
+
}
|
|
1256
|
+
/** Soft-retire one version, or un-retire it (op=retire, `retired` required).
|
|
1257
|
+
*
|
|
1258
|
+
* Retiring is REVERSIBLE and version-scoped: the row stays, its history stays
|
|
1259
|
+
* readable, and passing `false` brings it back. Removing a team is
|
|
1260
|
+
* {@link LoomcycleClient.deleteTeam}, which is neither. */
|
|
1261
|
+
async retireTeam(defId, retired, opts) {
|
|
1262
|
+
return postJSON(this.ctx, "/v1/_teamdef", { op: "retire", def_id: defId, retired }, opts);
|
|
1263
|
+
}
|
|
1264
|
+
/** Compare a locally computed content hash against the deployed active
|
|
1265
|
+
* version (op=verify) — the drift check for a team kept in source control
|
|
1266
|
+
* and pushed to several deployments.
|
|
1267
|
+
*
|
|
1268
|
+
* Never raises for an absent team: a name with no active version answers
|
|
1269
|
+
* `{deployed: false, matches: false}`, which a caller distinguishes from a
|
|
1270
|
+
* deployed version whose hash differs. */
|
|
1271
|
+
async verifyTeam(name, contentSha256, opts) {
|
|
1272
|
+
return postJSON(this.ctx, "/v1/_teamdef", { op: "verify", name, content_sha256: contentSha256 }, opts);
|
|
1273
|
+
}
|
|
1240
1274
|
/** Hard-remove a whole team by name — all versions + the active pointer
|
|
1241
1275
|
* (op=delete), scoped to the caller's tenant. Teams are runtime-only, so
|
|
1242
1276
|
* this is how an operator clears an obsolete/test team. */
|
|
1243
1277
|
async deleteTeam(name, opts) {
|
|
1244
1278
|
return postJSON(this.ctx, "/v1/_teamdef", { op: "delete", name }, opts);
|
|
1245
1279
|
}
|
|
1246
|
-
/** Execute a team (op=run) — walk its state graph, spawning each state's agent
|
|
1247
|
-
* until a terminal state, returning the per-state trace. Target the active
|
|
1248
|
-
* version by `name` OR a specific version by `defId`. `input` is the initial
|
|
1249
|
-
* task handed to the entry state's agent. The walk runs under the same
|
|
1250
|
-
* admission a normal run gets (token budget / operator-key / depth). */
|
|
1251
1280
|
async runTeam(target, opts) {
|
|
1252
1281
|
const body = { op: "run" };
|
|
1253
1282
|
if (target.name !== undefined)
|
|
@@ -1260,8 +1289,39 @@ export class LoomcycleClient {
|
|
|
1260
1289
|
body.board_chunk_id = target.boardChunkId;
|
|
1261
1290
|
if (target.boardScope !== undefined)
|
|
1262
1291
|
body.board_scope = target.boardScope;
|
|
1292
|
+
if (target.mode !== undefined)
|
|
1293
|
+
body.mode = target.mode;
|
|
1294
|
+
if (target.breakpoints !== undefined)
|
|
1295
|
+
body.breakpoints = target.breakpoints;
|
|
1263
1296
|
return postJSON(this.ctx, "/v1/_teamdef", body, opts);
|
|
1264
1297
|
}
|
|
1298
|
+
/** Read the debug breakpoints armed on a live team walk
|
|
1299
|
+
* (`GET /v1/runs/{run_id}/breakpoints`).
|
|
1300
|
+
*
|
|
1301
|
+
* 404 when no walk is in flight under that run on this replica — loudly,
|
|
1302
|
+
* because an arming that appeared to succeed and then never paused anything
|
|
1303
|
+
* is the worst possible outcome for a debugger. Surface it rather than
|
|
1304
|
+
* treating it as "nothing armed". */
|
|
1305
|
+
async getRunBreakpoints(runId, opts) {
|
|
1306
|
+
return jsonFetch(this.ctx, `/v1/runs/${encodeURIComponent(runId)}/breakpoints`, opts);
|
|
1307
|
+
}
|
|
1308
|
+
/** Replace the debug breakpoints armed on a live team walk
|
|
1309
|
+
* (`PUT /v1/runs/{run_id}/breakpoints`).
|
|
1310
|
+
*
|
|
1311
|
+
* The WHOLE desired set, not a delta: you hold the configuration and push
|
|
1312
|
+
* it, so two operators cannot interleave a read-modify-write. `[]` is the
|
|
1313
|
+
* off switch. A malformed entry is refused whole and leaves the previous
|
|
1314
|
+
* arming exactly as it was.
|
|
1315
|
+
*
|
|
1316
|
+
* Each entry is a starter state id — `"review"` arms both phases,
|
|
1317
|
+
* `"review:before_dispatch"` or `"review:after_collection"` arms one. An arm
|
|
1318
|
+
* takes effect at the next pause the walk reaches; disarming RELEASES
|
|
1319
|
+
* whatever is still pending rather than stranding it.
|
|
1320
|
+
*
|
|
1321
|
+
* A pause is read and answered through the run's interrupts. */
|
|
1322
|
+
async setRunBreakpoints(runId, breakpoints, opts) {
|
|
1323
|
+
return putJSON(this.ctx, `/v1/runs/${encodeURIComponent(runId)}/breakpoints`, { breakpoints }, opts);
|
|
1324
|
+
}
|
|
1265
1325
|
/** Invoke the RFC AL Path VFS tool over HTTP (`POST /v1/_path`). A
|
|
1266
1326
|
* Unix-like filesystem over your Memory entries, Volume mounts, and
|
|
1267
1327
|
* Documents — address them by human-readable paths (e.g. /docs/launch).
|
|
@@ -1769,6 +1829,8 @@ export class LoomcycleClient {
|
|
|
1769
1829
|
body.publisher = opts.publisher;
|
|
1770
1830
|
if (opts.period !== undefined)
|
|
1771
1831
|
body.period = opts.period;
|
|
1832
|
+
if (opts.hold !== undefined)
|
|
1833
|
+
body.hold = opts.hold;
|
|
1772
1834
|
return postJSON(this.ctx, "/v1/_channels", body, {
|
|
1773
1835
|
signal: opts.signal,
|
|
1774
1836
|
});
|
|
@@ -1786,6 +1848,8 @@ export class LoomcycleClient {
|
|
|
1786
1848
|
body.max_messages = opts.max_messages;
|
|
1787
1849
|
if (opts.semantic !== undefined)
|
|
1788
1850
|
body.semantic = opts.semantic;
|
|
1851
|
+
if (opts.hold !== undefined)
|
|
1852
|
+
body.hold = opts.hold;
|
|
1789
1853
|
return patchJSON(this.ctx, `/v1/_channels/${encodeURIComponent(name)}`, body, { signal: opts.signal });
|
|
1790
1854
|
}
|
|
1791
1855
|
/** Delete a runtime-substrate channel + cascade its persisted
|
|
@@ -1804,6 +1868,21 @@ export class LoomcycleClient {
|
|
|
1804
1868
|
async purgeChannel(name, opts) {
|
|
1805
1869
|
return postJSON(this.ctx, `/v1/_channels/${encodeURIComponent(name)}/purge`, {}, { signal: opts?.signal });
|
|
1806
1870
|
}
|
|
1871
|
+
/** Hand the oldest `count` (default 1) messages held on a `hold:`
|
|
1872
|
+
* channel to its subscribers. Allowed on yaml-declared channels —
|
|
1873
|
+
* releasing moves messages, it does not mutate the definition.
|
|
1874
|
+
* Releasing a channel with nothing held reports zero rather than
|
|
1875
|
+
* failing. */
|
|
1876
|
+
async releaseChannel(name, opts) {
|
|
1877
|
+
const body = {};
|
|
1878
|
+
if (opts?.count !== undefined)
|
|
1879
|
+
body.count = opts.count;
|
|
1880
|
+
if (opts?.scope !== undefined)
|
|
1881
|
+
body.scope = opts.scope;
|
|
1882
|
+
if (opts?.scope_id !== undefined)
|
|
1883
|
+
body.scope_id = opts.scope_id;
|
|
1884
|
+
return postJSON(this.ctx, `/v1/_channels/${encodeURIComponent(name)}/release`, body, { signal: opts?.signal });
|
|
1885
|
+
}
|
|
1807
1886
|
// ---- v0.11.5 Memory entry admin CRUD ----
|
|
1808
1887
|
/** Idempotently upsert one memory entry by full (scope, scope_id,
|
|
1809
1888
|
* key) identifier. PUT semantics — re-writes overwrite the value.
|
|
@@ -1836,6 +1915,18 @@ export class LoomcycleClient {
|
|
|
1836
1915
|
* Errors during the stream throw — they do NOT surface as items.
|
|
1837
1916
|
* Pass an AbortSignal to terminate cleanly from the consumer side.
|
|
1838
1917
|
*
|
|
1918
|
+
* v1.78.0 — `walkId` is a SERVER-side filter: only the runs one team
|
|
1919
|
+
* walk spawned. A walk's own run_id IS its walk id, so a caller that
|
|
1920
|
+
* started a team with `detach: true` passes back the handle it already
|
|
1921
|
+
* holds and gets a live view of that workflow's agents:
|
|
1922
|
+
*
|
|
1923
|
+
* ```ts
|
|
1924
|
+
* const { run_id } = await client.runTeam({ team: "triage", detach: true });
|
|
1925
|
+
* for await (const item of client.streamUserRunStates(userId, { walkId: run_id })) {
|
|
1926
|
+
* if (item.kind === "event") place(item.payload.parent_context?.wave_index);
|
|
1927
|
+
* }
|
|
1928
|
+
* ```
|
|
1929
|
+
*
|
|
1839
1930
|
* v0.9.x options:
|
|
1840
1931
|
* - `parentAgentId` — client-side filter: only `kind: "event"`
|
|
1841
1932
|
* items whose payload's `parent_agent_id` matches are yielded.
|
|
@@ -1854,6 +1945,9 @@ export class LoomcycleClient {
|
|
|
1854
1945
|
if (opts?.agent) {
|
|
1855
1946
|
params.set("agent", opts.agent);
|
|
1856
1947
|
}
|
|
1948
|
+
if (opts?.walkId) {
|
|
1949
|
+
params.set("walk_id", opts.walkId);
|
|
1950
|
+
}
|
|
1857
1951
|
const qs = params.toString();
|
|
1858
1952
|
const path = `/v1/users/${encodeURIComponent(userId)}/agents/stream` +
|
|
1859
1953
|
(qs ? `?${qs}` : "");
|
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
* forkTeam(name, overlay): Promise<CreatedTeam>
|
|
84
84
|
* deleteTeam(name): Promise<{name, deleted}>
|
|
85
85
|
* runTeam({name|defId, input}): Promise<TeamRunResult>
|
|
86
|
+
* runTeam({..., mode:"detach"}): Promise<TeamRunDetached> // the handle, now — the walk runs on
|
|
87
|
+
* getRunBreakpoints(runId): Promise<TeamBreakpoints> // debug a walk that is already running
|
|
88
|
+
* setRunBreakpoints(runId, breakpoints): Promise<TeamBreakpoints>
|
|
86
89
|
*
|
|
87
90
|
* // Path VFS + chunked-graph Documents on the wire (v1.4.0 — RFC AL / RFC AK)
|
|
88
91
|
* path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
|
|
@@ -125,5 +128,5 @@ export { InteractiveSession } from "./interactive.js";
|
|
|
125
128
|
export type { InteractiveSessionOps } from "./interactive.js";
|
|
126
129
|
export { ClientToolHost, clientToolsURL, CLIENT_TOOL_SUBPROTOCOL } from "./client-tools.js";
|
|
127
130
|
export type { ClientToolSchema, ClientToolInvocation, ConnectClientToolsOptions, WebSocketLike, WebSocketCtor, } from "./client-tools.js";
|
|
128
|
-
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, DirectoryBudget, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureReport, ErasureResidue, ErasureResult, ErasureTier, CancelTurnResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, UserTokenMeta, ListUserTokensResponse, RunnableAgent, RunnableAgentsResponse, WhoamiResponse, PauseResult, 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, 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, ConfigResponse, ConfigProvider, ConfigModel, ConfigSearch, ConfigInstance, SetTokenLimitRequest, CredentialScope, CredentialMeta, CredentialListResponse, } from "./types.js";
|
|
131
|
+
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, DirectoryBudget, DirectoryInspection, DirectoryTenant, DirectoryUser, ErasureReport, ErasureResidue, ErasureResult, ErasureTier, CancelTurnResult, TranscriptEvent, TranscriptResponse, HealthResponse, ListUsersResponse, UserSummary, UserRecord, CreateUserBody, UpdateUserBody, MintedUserToken, UserTokenMeta, ListUserTokensResponse, RunnableAgent, RunnableAgentsResponse, WhoamiResponse, PauseResult, 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, Hook, HookFailMode, HookPhase, HookToolCall, HookToolResult, ListHooksResponse, PostHookCall, PostHookResult, PreHookCall, PreHookResult, RegisterHookOptions, RegisterHookResponse, SubstrateToolInput, SubstrateToolResponse, TeamNameSummary, ListTeamsResponse, TeamDiagram, CreatedTeam, PromotedTeam, RetiredTeam, TeamDefDetail, TeamVerification, TeamVersion, TeamVersionList, TeamBreakpoints, TeamRunDetached, TeamRunResult, TeamRunTarget, 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, 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, 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, ConfigResponse, ConfigProvider, ConfigModel, ConfigSearch, ConfigInstance, SetTokenLimitRequest, CredentialScope, CredentialMeta, CredentialListResponse, } from "./types.js";
|
|
129
132
|
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
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
* forkTeam(name, overlay): Promise<CreatedTeam>
|
|
84
84
|
* deleteTeam(name): Promise<{name, deleted}>
|
|
85
85
|
* runTeam({name|defId, input}): Promise<TeamRunResult>
|
|
86
|
+
* runTeam({..., mode:"detach"}): Promise<TeamRunDetached> // the handle, now — the walk runs on
|
|
87
|
+
* getRunBreakpoints(runId): Promise<TeamBreakpoints> // debug a walk that is already running
|
|
88
|
+
* setRunBreakpoints(runId, breakpoints): Promise<TeamBreakpoints>
|
|
86
89
|
*
|
|
87
90
|
* // Path VFS + chunked-graph Documents on the wire (v1.4.0 — RFC AL / RFC AK)
|
|
88
91
|
* path(input): Promise<PathToolResponse> // resolve/ls/stat/mkdir/mv/rm
|
package/dist/types.d.ts
CHANGED
|
@@ -295,6 +295,22 @@ export interface ParentContext {
|
|
|
295
295
|
board_scope?: string;
|
|
296
296
|
board_chunk_id?: string;
|
|
297
297
|
board_document_id?: string;
|
|
298
|
+
/** Team-walk correlation (loomcycle v1.78.0). A run spawned by a team walk
|
|
299
|
+
* carries the walk's own run_id here, plus which WAVE of that walk it
|
|
300
|
+
* belongs to and its index within the wave.
|
|
301
|
+
*
|
|
302
|
+
* `walk_id` is what {@link StreamUserRunStatesOptions.walkId} filters on
|
|
303
|
+
* server-side; `wave_id` + `wave_index` are what let a live view place an
|
|
304
|
+
* agent within the walk rather than merely inside it — a fan-out of N
|
|
305
|
+
* agents shares one `wave_id` and differs only by `wave_index`.
|
|
306
|
+
*
|
|
307
|
+
* Absent on any run no team walk spawned. */
|
|
308
|
+
walk_id?: string;
|
|
309
|
+
wave_id?: string;
|
|
310
|
+
/** Position within the wave, 0-based. Sent even when 0 (unlike the string
|
|
311
|
+
* fields, which are omitted when empty), so an index of 0 is a real first
|
|
312
|
+
* position and not an absent one. */
|
|
313
|
+
wave_index?: number;
|
|
298
314
|
}
|
|
299
315
|
export interface ContinueOptions {
|
|
300
316
|
/** Required — the session to continue. */
|
|
@@ -1210,6 +1226,57 @@ export interface TeamDefDetail {
|
|
|
1210
1226
|
content_sha256?: string;
|
|
1211
1227
|
definition: unknown;
|
|
1212
1228
|
}
|
|
1229
|
+
/** One team version's record in {@link TeamVersionList} (op=list). Same shape
|
|
1230
|
+
* as {@link TeamDefDetail} plus the lineage + authorship fields the version
|
|
1231
|
+
* history needs — who wrote it, when, and which version it forked from. */
|
|
1232
|
+
export interface TeamVersion {
|
|
1233
|
+
def_id: string;
|
|
1234
|
+
name: string;
|
|
1235
|
+
version: number;
|
|
1236
|
+
parent_def_id?: string;
|
|
1237
|
+
description?: string;
|
|
1238
|
+
created_at?: string;
|
|
1239
|
+
created_by_agent_id?: string;
|
|
1240
|
+
retired?: boolean;
|
|
1241
|
+
bootstrapped_from_static?: boolean;
|
|
1242
|
+
content_sha256?: string;
|
|
1243
|
+
definition?: unknown;
|
|
1244
|
+
}
|
|
1245
|
+
/** Result of {@link LoomcycleClient.listTeamVersions} (op=list) — every version
|
|
1246
|
+
* of ONE team, newest first. Tenant-scoped server-side. */
|
|
1247
|
+
export interface TeamVersionList {
|
|
1248
|
+
name: string;
|
|
1249
|
+
versions: TeamVersion[];
|
|
1250
|
+
}
|
|
1251
|
+
/** Result of {@link LoomcycleClient.promoteTeam} (op=promote) — the version the
|
|
1252
|
+
* active pointer now names. */
|
|
1253
|
+
export interface PromotedTeam {
|
|
1254
|
+
def_id: string;
|
|
1255
|
+
name: string;
|
|
1256
|
+
promoted: boolean;
|
|
1257
|
+
}
|
|
1258
|
+
/** Result of {@link LoomcycleClient.retireTeam} (op=retire) — the version's new
|
|
1259
|
+
* retired state. Retiring is reversible (pass `false` to un-retire); it is
|
|
1260
|
+
* {@link LoomcycleClient.deleteTeam} that removes anything. */
|
|
1261
|
+
export interface RetiredTeam {
|
|
1262
|
+
def_id: string;
|
|
1263
|
+
retired: boolean;
|
|
1264
|
+
}
|
|
1265
|
+
/** Result of {@link LoomcycleClient.verifyTeam} (op=verify) — whether a locally
|
|
1266
|
+
* computed content hash matches the deployed active version.
|
|
1267
|
+
*
|
|
1268
|
+
* `deployed: false` means the name has no active version in this tenant at all
|
|
1269
|
+
* (`matches` is then false and the current_* fields are empty) — distinct from
|
|
1270
|
+
* a deployed version whose hash differs, which is a DRIFT rather than an
|
|
1271
|
+
* absence. */
|
|
1272
|
+
export interface TeamVerification {
|
|
1273
|
+
name: string;
|
|
1274
|
+
matches: boolean;
|
|
1275
|
+
deployed: boolean;
|
|
1276
|
+
current_sha256: string;
|
|
1277
|
+
current_def_id: string;
|
|
1278
|
+
version: number;
|
|
1279
|
+
}
|
|
1213
1280
|
/** Result of {@link LoomcycleClient.runTeam} (op=run) — the walk trace. `status`
|
|
1214
1281
|
* is `"completed"` (a terminal state was reached) or `"iteration_cap"` (a
|
|
1215
1282
|
* state's cycle cap tripped; `capped_state` + `iteration_count` describe it).
|
|
@@ -1219,6 +1286,13 @@ export interface TeamRunResult {
|
|
|
1219
1286
|
name: string;
|
|
1220
1287
|
def_id: string;
|
|
1221
1288
|
status: string;
|
|
1289
|
+
/** The walk's own run id. A team walk IS a run — it opens a `runs` row filed
|
|
1290
|
+
* under `team:<name>` — which is what makes it addressable while it runs:
|
|
1291
|
+
* {@link LoomcycleClient.setRunBreakpoints} arms it, `GET /v1/runs/{id}/
|
|
1292
|
+
* interrupts` carries a pause, and cancel stops it. Returned on the
|
|
1293
|
+
* synchronous path too, so a caller holding a second connection can debug a
|
|
1294
|
+
* walk it is waiting on. */
|
|
1295
|
+
run_id?: string;
|
|
1222
1296
|
final_state?: string;
|
|
1223
1297
|
final_output?: string;
|
|
1224
1298
|
capped_state?: string;
|
|
@@ -1227,6 +1301,58 @@ export interface TeamRunResult {
|
|
|
1227
1301
|
steps: Array<Record<string, unknown>>;
|
|
1228
1302
|
[extra: string]: unknown;
|
|
1229
1303
|
}
|
|
1304
|
+
/** What team {@link LoomcycleClient.runTeam} walks, and how. */
|
|
1305
|
+
export interface TeamRunTarget {
|
|
1306
|
+
name?: string;
|
|
1307
|
+
defId?: string;
|
|
1308
|
+
/** The initial task handed to the entry state's agent. */
|
|
1309
|
+
input?: string;
|
|
1310
|
+
/** Bind the walk to a Document chunk task board: each state transition
|
|
1311
|
+
* persists `chunk.status` = the current team state, and every handler run
|
|
1312
|
+
* the walk spawns carries the task key on its `parent_context`. */
|
|
1313
|
+
boardChunkId?: string;
|
|
1314
|
+
/** The Document scope of `boardChunkId` (agent | user, default user). */
|
|
1315
|
+
boardScope?: "agent" | "user";
|
|
1316
|
+
/** "detach" returns the run id immediately and leaves the walk running
|
|
1317
|
+
* behind it. Omit to wait for the walk and get its trace — which still
|
|
1318
|
+
* returns `run_id`, so a second connection can debug a walk you await. */
|
|
1319
|
+
mode?: "detach";
|
|
1320
|
+
/** Starter state ids to pause at, armed before the walk starts. Each is
|
|
1321
|
+
* `"<state>"` (both phases) or `"<state>:before_dispatch"` /
|
|
1322
|
+
* `"<state>:after_collection"`.
|
|
1323
|
+
*
|
|
1324
|
+
* A walk can also be armed AFTER it starts — see
|
|
1325
|
+
* {@link LoomcycleClient.setRunBreakpoints} — which is the case this
|
|
1326
|
+
* argument cannot serve: you start a run expecting it to work, watch a wave
|
|
1327
|
+
* go wrong, and want to stop before the next one. */
|
|
1328
|
+
breakpoints?: string[];
|
|
1329
|
+
}
|
|
1330
|
+
/** What {@link LoomcycleClient.runTeam} returns for `mode: "detach"` — the
|
|
1331
|
+
* handle, immediately, with the walk still running behind it.
|
|
1332
|
+
*
|
|
1333
|
+
* Detaching exists because op=run is otherwise SYNCHRONOUS: the caller learns
|
|
1334
|
+
* nothing until the walk is over, so there is no moment at which it can arm a
|
|
1335
|
+
* breakpoint, read a pause, or watch progress. There are no `steps` yet —
|
|
1336
|
+
* poll the run, or read its events, for those. */
|
|
1337
|
+
export interface TeamRunDetached {
|
|
1338
|
+
name: string;
|
|
1339
|
+
def_id: string;
|
|
1340
|
+
/** Address every other run surface with this. */
|
|
1341
|
+
run_id: string;
|
|
1342
|
+
/** Always "running" — the walk has been started, not awaited. */
|
|
1343
|
+
status: string;
|
|
1344
|
+
[extra: string]: unknown;
|
|
1345
|
+
}
|
|
1346
|
+
/** The armed debug breakpoints of a live team walk, as
|
|
1347
|
+
* {@link LoomcycleClient.getRunBreakpoints} / {@link LoomcycleClient.setRunBreakpoints}
|
|
1348
|
+
* report them. */
|
|
1349
|
+
export interface TeamBreakpoints {
|
|
1350
|
+
run_id: string;
|
|
1351
|
+
/** Canonical: always phase-qualified (`"<state>:before_dispatch"`) and
|
|
1352
|
+
* sorted, so what you read back is what the walk will actually do rather
|
|
1353
|
+
* than an echo of the shorthand you sent. */
|
|
1354
|
+
armed: string[];
|
|
1355
|
+
}
|
|
1230
1356
|
/** Input for {@link LoomcycleClient.path} — the RFC AL Unix-like VFS tool
|
|
1231
1357
|
* (POST /v1/_path). Op-discriminated; the server resolves scope + tenant
|
|
1232
1358
|
* from the authenticated principal, never the wire. Address Memory entries,
|
|
@@ -1243,6 +1369,12 @@ export type PathToolInput = {
|
|
|
1243
1369
|
recursive?: boolean;
|
|
1244
1370
|
/** ls: only entries of this kind (document/volume_mount/memory_entry/directory). */
|
|
1245
1371
|
kind_filter?: string;
|
|
1372
|
+
/** ls: maximum entries to return (default 500, max 5000). A truncated listing
|
|
1373
|
+
* reports `truncated: true` and a `next_cursor`; pass that back as `cursor`. */
|
|
1374
|
+
limit?: number;
|
|
1375
|
+
/** ls: continue a truncated listing with the previous response's `next_cursor`.
|
|
1376
|
+
* Opaque — its encoding is not part of the contract, so do not construct one. */
|
|
1377
|
+
cursor?: string;
|
|
1246
1378
|
/** rm: also delete the backing resource (NOT supported in v1). */
|
|
1247
1379
|
resource_too?: boolean;
|
|
1248
1380
|
[extra: string]: unknown;
|
|
@@ -1299,6 +1431,10 @@ export type DocumentToolInput = {
|
|
|
1299
1431
|
under_path?: string;
|
|
1300
1432
|
/** query_chunks: raw read-only SELECT (escape hatch; validator-gated). */
|
|
1301
1433
|
sql?: string;
|
|
1434
|
+
/** Row/response bound. On `documents_summary` it defaults to 500 (max 5000) and
|
|
1435
|
+
* the response reports `truncated: true` when it clips — an `under_path` over a
|
|
1436
|
+
* subject-homed fact store is as wide as the tenant's entity count, so page the
|
|
1437
|
+
* directory with `path op=ls` and pass each page's ids as `document_ids`. */
|
|
1302
1438
|
limit?: number;
|
|
1303
1439
|
/** define/list_types: the type name. */
|
|
1304
1440
|
name?: string;
|
|
@@ -1337,6 +1473,13 @@ export type DocumentToolInput = {
|
|
|
1337
1473
|
* sync reconciles — so a reading or coverage surface wants this on, and a
|
|
1338
1474
|
* federation one does not. */
|
|
1339
1475
|
claims_only?: boolean;
|
|
1476
|
+
/** list_facts: the facts about ONE SUBJECT — the subject's entity chunk id (a
|
|
1477
|
+
* subject document's `root_chunk_id`, from get_document). Returns the facts filed
|
|
1478
|
+
* under it AND the facts filed elsewhere that reference it: filing is
|
|
1479
|
+
* single-parent, so a fact about two things lives in one of their documents and
|
|
1480
|
+
* only points at the other, and a document filter would lose it from the second
|
|
1481
|
+
* subject entirely. */
|
|
1482
|
+
about?: string;
|
|
1340
1483
|
/** remember: a statement to store as a fact that cites ITSELF — the text becomes both
|
|
1341
1484
|
* the claim and its source span, so write what you want recorded rather than an
|
|
1342
1485
|
* instruction about it. Additive only; it is never a way to delete. */
|
|
@@ -1366,12 +1509,21 @@ export type DocumentToolResponse = unknown;
|
|
|
1366
1509
|
* Loosely typed (the in-process tool owns the full schema); use the `[extra]`
|
|
1367
1510
|
* index signature for forward-compat fields. */
|
|
1368
1511
|
export type HistoryToolInput = {
|
|
1369
|
-
op: "list" | "get" | "search" | "rename" | "annotate" | "pin" | "archive" | "recap" | "resume";
|
|
1512
|
+
op: "list" | "get" | "search" | "rename" | "annotate" | "pin" | "archive" | "recap" | "resume" | "related" | "window";
|
|
1370
1513
|
/** Whose chats: self = this caller's agent; user = this end-user's; tenant =
|
|
1371
1514
|
* this tenant's; global = all tenants (admin only). Default self. */
|
|
1372
1515
|
scope?: "self" | "user" | "tenant" | "global";
|
|
1373
|
-
/** get/rename/annotate/pin/archive/recap/resume: the chat (session) id.
|
|
1516
|
+
/** get/rename/annotate/pin/archive/recap/resume/window: the chat (session) id.
|
|
1517
|
+
* For `window`, the session a recalled fact reported as its source. */
|
|
1374
1518
|
session_id?: string;
|
|
1519
|
+
/** window: the fact's source span — the verbatim text it was distilled from,
|
|
1520
|
+
* which recall returns as `source`. It anchors the window to the turn the fact
|
|
1521
|
+
* came from, rather than the start of the chat. */
|
|
1522
|
+
quote?: string;
|
|
1523
|
+
/** window: how many turns either side of the match to return (default 2, max
|
|
1524
|
+
* 10). A distilled fact loses what its turn's neighbours carry — a bare date, a
|
|
1525
|
+
* pronoun — which is what these recover. */
|
|
1526
|
+
context?: number;
|
|
1375
1527
|
/** list/search: filter by derived chat status (running/completed/failed/cancelled). */
|
|
1376
1528
|
status?: string;
|
|
1377
1529
|
/** list/search: RFC3339 lower bound on last activity. */
|
|
@@ -1463,6 +1615,8 @@ export interface ChannelDescriptor {
|
|
|
1463
1615
|
period?: string;
|
|
1464
1616
|
default_ttl?: number;
|
|
1465
1617
|
max_messages?: number;
|
|
1618
|
+
/** Breakpoint: publishes are stored but never delivered until released. */
|
|
1619
|
+
hold?: boolean;
|
|
1466
1620
|
message_count: number;
|
|
1467
1621
|
/** RFC3339 — empty when count == 0. */
|
|
1468
1622
|
oldest_visible_at?: string;
|
|
@@ -1652,6 +1806,9 @@ export interface CreateChannelOptions {
|
|
|
1652
1806
|
publisher?: string;
|
|
1653
1807
|
/** Free-form retention hint; not enforced by the substrate. */
|
|
1654
1808
|
period?: string;
|
|
1809
|
+
/** Breakpoint: publishes are stored but never delivered until
|
|
1810
|
+
* {@link LoomcycleClient.releaseChannel} hands them over. */
|
|
1811
|
+
hold?: boolean;
|
|
1655
1812
|
signal?: AbortSignal;
|
|
1656
1813
|
}
|
|
1657
1814
|
/** Options for {@link LoomcycleClient.updateChannel}. Nil fields
|
|
@@ -1662,8 +1819,29 @@ export interface UpdateChannelOptions {
|
|
|
1662
1819
|
max_messages?: number;
|
|
1663
1820
|
/** "queue" | "topic" */
|
|
1664
1821
|
semantic?: string;
|
|
1822
|
+
/** Turn the breakpoint on or off. Messages already held stay held
|
|
1823
|
+
* until released — turning it off does not flush the queue. */
|
|
1824
|
+
hold?: boolean;
|
|
1825
|
+
signal?: AbortSignal;
|
|
1826
|
+
}
|
|
1827
|
+
/** Options for {@link LoomcycleClient.releaseChannel}. */
|
|
1828
|
+
export interface ReleaseChannelOptions {
|
|
1829
|
+
/** How many held messages to hand over, oldest first. Default 1. */
|
|
1830
|
+
count?: number;
|
|
1831
|
+
/** "global" (default) | "user" | "tenant". */
|
|
1832
|
+
scope?: string;
|
|
1833
|
+
/** Required when scope is "user". */
|
|
1834
|
+
scope_id?: string;
|
|
1665
1835
|
signal?: AbortSignal;
|
|
1666
1836
|
}
|
|
1837
|
+
/** Result of {@link LoomcycleClient.releaseChannel}. `released` is the
|
|
1838
|
+
* ids handed over, in delivery order; `still_held` is what is left. */
|
|
1839
|
+
export interface ChannelReleaseResult {
|
|
1840
|
+
channel: string;
|
|
1841
|
+
released: string[];
|
|
1842
|
+
released_count: number;
|
|
1843
|
+
still_held: number;
|
|
1844
|
+
}
|
|
1667
1845
|
/** Options for {@link LoomcycleClient.setMemoryEntry}. `value` is
|
|
1668
1846
|
* opaque JSON. Setting `embed: true` triggers a synchronous embed
|
|
1669
1847
|
* via the operator-configured embedder; the returned `embedded`
|
|
@@ -1716,6 +1894,13 @@ export interface RunStateStreamOpen {
|
|
|
1716
1894
|
user_id: string;
|
|
1717
1895
|
filter_status: string[] | null;
|
|
1718
1896
|
filter_agent: string;
|
|
1897
|
+
/** v1.78.0 — the walk filter the server actually applied, echoed back.
|
|
1898
|
+
*
|
|
1899
|
+
* Worth reading rather than assuming: a filter that matched nothing and a
|
|
1900
|
+
* filter the server never understood look identical from the outside — both
|
|
1901
|
+
* are a stream that stays quiet. Comparing this to what you sent tells the
|
|
1902
|
+
* two apart before you wait on an empty stream. Empty when unfiltered. */
|
|
1903
|
+
filter_walk_id?: string;
|
|
1719
1904
|
keepalive_interval: number;
|
|
1720
1905
|
}
|
|
1721
1906
|
/** Yielded by {@link LoomcycleClient.streamUserRunStates}.
|
|
@@ -1741,12 +1926,28 @@ export interface StreamUserRunStatesOptions {
|
|
|
1741
1926
|
statuses?: string[];
|
|
1742
1927
|
/** Filter to one agent name. Empty means any. */
|
|
1743
1928
|
agent?: string;
|
|
1929
|
+
/** v1.78.0 — SERVER-side filter: only the runs one team walk spawned,
|
|
1930
|
+
* matched against each event's `parent_context.walk_id`.
|
|
1931
|
+
*
|
|
1932
|
+
* A team walk's own run_id IS its walk id, so a caller that started a team
|
|
1933
|
+
* with `detach: true` passes back exactly the handle it already holds —
|
|
1934
|
+
* there is no second identifier and nothing to map. That is what makes a
|
|
1935
|
+
* live view of one running workflow's agents a filter rather than a
|
|
1936
|
+
* feature.
|
|
1937
|
+
*
|
|
1938
|
+
* Unlike {@link StreamUserRunStatesOptions.parentAgentId}, this is applied
|
|
1939
|
+
* by the server, so it reduces what crosses the wire and not just what your
|
|
1940
|
+
* callback sees. The server echoes it back on the open frame as
|
|
1941
|
+
* {@link RunStateStreamOpen.filter_walk_id}. */
|
|
1942
|
+
walkId?: string;
|
|
1744
1943
|
/** v0.9.x — client-side filter on the run's parent_agent_id.
|
|
1745
1944
|
* Useful for "show me only the sub-runs spawned by agent X."
|
|
1746
1945
|
* The filter is applied AFTER the SSE frame is parsed, so this
|
|
1747
1946
|
* shrinks what your callback sees but doesn't reduce server-side
|
|
1748
|
-
* load.
|
|
1749
|
-
*
|
|
1947
|
+
* load. Pass the empty string to opt out (default).
|
|
1948
|
+
*
|
|
1949
|
+
* For the one case that HAS a server-side filter, prefer it: see
|
|
1950
|
+
* {@link StreamUserRunStatesOptions.walkId}. */
|
|
1750
1951
|
parentAgentId?: string;
|
|
1751
1952
|
/** v0.9.x — opt-in observability: when true, the iterator yields a
|
|
1752
1953
|
* client-synthesized `{ kind: "close", payload: { reason } }` item
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomcycle/client",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "TypeScript client for the loomcycle sidecar (HTTP+SSE). 67 methods covering run streaming, agent metadata, pause/resume/state, resolver re-probe (resolveProbe \u2014 issue #88 operator escape hatch), operator-token admin (operatorTokenDef \u2014 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 \u2014 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 \u2014 direct provider routing without agent overhead; primary target is n8n's LoomCycleChatModel AI Agent sub-node and any LangChain-compatible consumer). v0.10.1 \u2014 dual ESM + CommonJS distribution (additive \u2014 ESM consumers unchanged; CJS consumers like n8n's community-node loader now work). v0.19.0 \u2014 typed inline code-js agent ingestion (AgentDefOverlay.code_body + ensureCodeAgent \u2014 register a deterministic code agent through the substrate with no host filesystem bind; RFC J). v0.20.0 \u2014 ensureMcpServer surfaces discoveredToolCount straight from create (loomcycle now auto-discovers MCP tools at ingestion); rediscover is now an explicit force-refresh. v0.21.0 \u2014 run/continue accept optional non-secret `metadata` (repo name, review policy, \u2026) passed to the agent, symmetric with the WebHook/Schedule trigger paths. v0.22.0 \u2014 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 \u2014 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 \u2014 purgeChannel clears a channel's buffered messages without deleting its definition (allowed on yaml-declared channels too, unlike deleteChannel \u2014 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 \u2014 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 \u2014 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 \u2014 the manual-management Web UI console + Context op=time + max_fires self-retiring schedules \u2014 is server-side / in-band, no client-surface change). v0.29.1 \u2014 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 \u2014 gRPC + TS client parity for the RFC Y external fan-out and the compaction surface: spawnRunBatch() (POST /v1/runs:batch \u2014 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 \u2014 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 \u2014 server-side.) v0.34.0 \u2014 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 \u2014 RFC AH dynamic filesystem volumes: volumeDef() (POST /v1/_volumedef \u2014 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] \u2014 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 \u2014 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 \u2014 steer a live run) + streamRunByID(runId, {fromSeq}) (GET /v1/runs/{id}/stream \u2014 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 \u2014 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 \u2014 RFC AL Path VFS + RFC AK Document on the wire: path(input) (POST /v1/_path \u2014 a Unix-like filesystem over Memory/Volumes/Documents; resolve/ls/stat/mkdir/mv/rm) + document(input) (POST /v1/_document \u2014 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 \u2014 narrow as needed). v1.7.0 \u2014 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 \u2014 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 \u2014 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 \u2014 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 \u2014 existing path() / document() callers are unchanged. v1.16.0 \u2014 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> \u2014 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 \u2014 RFC BL P5 subject erasure: erasureReport(subject, {tenant}) (GET /v1/_erasure \u2014 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 \u2014 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 \u2014 the returned object is the only durable record of what was not reached; persist it. New ErasureReport / ErasureResult / ErasureTier / ErasureResidue types. v1.47.0 \u2014 RFC BV memory-view SDK: memorySearch() (POST /v1/_memory/search \u2014 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 \u2014 existing callers unchanged. v1.61.0 \u2014 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.",
|
|
3
|
+
"version": "1.78.0",
|
|
4
|
+
"description": "TypeScript client for the loomcycle sidecar (HTTP+SSE). 71 methods covering run streaming, agent metadata, pause/resume/state, resolver re-probe (resolveProbe \u2014 issue #88 operator escape hatch), operator-token admin (operatorTokenDef \u2014 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 \u2014 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 \u2014 direct provider routing without agent overhead; primary target is n8n's LoomCycleChatModel AI Agent sub-node and any LangChain-compatible consumer). v0.10.1 \u2014 dual ESM + CommonJS distribution (additive \u2014 ESM consumers unchanged; CJS consumers like n8n's community-node loader now work). v0.19.0 \u2014 typed inline code-js agent ingestion (AgentDefOverlay.code_body + ensureCodeAgent \u2014 register a deterministic code agent through the substrate with no host filesystem bind; RFC J). v0.20.0 \u2014 ensureMcpServer surfaces discoveredToolCount straight from create (loomcycle now auto-discovers MCP tools at ingestion); rediscover is now an explicit force-refresh. v0.21.0 \u2014 run/continue accept optional non-secret `metadata` (repo name, review policy, \u2026) passed to the agent, symmetric with the WebHook/Schedule trigger paths. v0.22.0 \u2014 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 \u2014 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 \u2014 purgeChannel clears a channel's buffered messages without deleting its definition (allowed on yaml-declared channels too, unlike deleteChannel \u2014 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 \u2014 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 \u2014 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 \u2014 the manual-management Web UI console + Context op=time + max_fires self-retiring schedules \u2014 is server-side / in-band, no client-surface change). v0.29.1 \u2014 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 \u2014 gRPC + TS client parity for the RFC Y external fan-out and the compaction surface: spawnRunBatch() (POST /v1/runs:batch \u2014 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 \u2014 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 \u2014 server-side.) v0.34.0 \u2014 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 \u2014 RFC AH dynamic filesystem volumes: volumeDef() (POST /v1/_volumedef \u2014 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] \u2014 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 \u2014 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 \u2014 steer a live run) + streamRunByID(runId, {fromSeq}) (GET /v1/runs/{id}/stream \u2014 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 \u2014 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 \u2014 RFC AL Path VFS + RFC AK Document on the wire: path(input) (POST /v1/_path \u2014 a Unix-like filesystem over Memory/Volumes/Documents; resolve/ls/stat/mkdir/mv/rm) + document(input) (POST /v1/_document \u2014 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 \u2014 narrow as needed). v1.7.0 \u2014 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 \u2014 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 \u2014 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 \u2014 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 \u2014 existing path() / document() callers are unchanged. v1.16.0 \u2014 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> \u2014 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 \u2014 RFC BL P5 subject erasure: erasureReport(subject, {tenant}) (GET /v1/_erasure \u2014 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 \u2014 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 \u2014 the returned object is the only durable record of what was not reached; persist it. New ErasureReport / ErasureResult / ErasureTier / ErasureResidue types. v1.47.0 \u2014 RFC BV memory-view SDK: memorySearch() (POST /v1/_memory/search \u2014 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 \u2014 existing callers unchanged. v1.61.0 \u2014 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 \u2014 the TeamDef version lifecycle: listTeamVersions(name) (op=list \u2014 every version of one team, newest first), promoteTeam(defId) (op=promote \u2014 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 \u2014 reversible and version-scoped, unlike deleteTeam) and verifyTeam(name, contentSha256) (op=verify \u2014 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",
|
|
7
7
|
"repository": {
|