@managoat/fountain-sdk 1.30.0 → 1.31.1

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/CHANGELOG.md CHANGED
@@ -11,6 +11,22 @@ server releases.
11
11
 
12
12
  ---
13
13
 
14
+ ## [1.31.1] - 2026-09-13
15
+
16
+ ### Fixed
17
+
18
+ - Classify `sandbox_unavailable` as `NotReadyError`, preserving the server's `Retry-After` delay for callers retrying a refused sandbox binding (#2049).
19
+
20
+ ## [1.31.0] — 2026-09-11
21
+
22
+ ### Added
23
+
24
+ - `Conversation.reapply()` calls `POST /api/conversations/{id}/reapply`: re-select a conversation's agent, environment and vault on the machine it is already running. The conversation, the transcript and the files on disk all stay. An omitted option keeps its selection, and `null` clears the environment override or the vault.
25
+
26
+ ### Changed
27
+
28
+ - Generated types carry the new operation and its `ConversationReapplyRequest` body.
29
+
14
30
  ## [1.30.0] - 2026-09-11
15
31
 
16
32
  ### Added
@@ -6,6 +6,14 @@ export interface SendOptions extends RunOptions {
6
6
  /** Images to attach to the prompt, as the API's `ImageInput` shape. */
7
7
  images?: unknown[];
8
8
  }
9
+ export interface ReapplyOptions {
10
+ /** Change the agent; omit to keep the current one. */
11
+ agentId?: string;
12
+ /** Change the environment, pass null to clear it, or omit it to keep it. */
13
+ environmentId?: string | null;
14
+ /** Change the vault, pass null to clear it, or omit it to keep it. */
15
+ vaultId?: string | null;
16
+ }
9
17
  /**
10
18
  * A conversation you already have — the sandbox is still there, and so is
11
19
  * everything the agent learned in it.
@@ -75,6 +83,16 @@ export declare class Conversation {
75
83
  }): Promise<LogEvent[]>;
76
84
  /** The conversations this one spawned, as a tree. */
77
85
  tree(): Promise<unknown>;
86
+ /**
87
+ * Re-select this conversation's agent, environment and vault on the machine
88
+ * it is already running. The conversation, the transcript and the files on
89
+ * disk all stay; the next prompt starts a runtime that reads the new
90
+ * selection. Call it with nothing to refresh what is already selected.
91
+ *
92
+ * A selection that would need the machine built again is refused with 409
93
+ * `rebuild_required`, naming the field that forced it.
94
+ */
95
+ reapply(options?: ReapplyOptions): Promise<ConversationRecord>;
78
96
  /** Ask the agent to stop the turn it is on. The sandbox stays up. */
79
97
  interrupt(): Promise<void>;
80
98
  /** Tear the sandbox down. Nothing resumes after this. */
@@ -130,6 +130,25 @@ export class Conversation {
130
130
  async tree() {
131
131
  return this.http.data("GET", `/api/conversations/${this.id}/tree`);
132
132
  }
133
+ /**
134
+ * Re-select this conversation's agent, environment and vault on the machine
135
+ * it is already running. The conversation, the transcript and the files on
136
+ * disk all stay; the next prompt starts a runtime that reads the new
137
+ * selection. Call it with nothing to refresh what is already selected.
138
+ *
139
+ * A selection that would need the machine built again is refused with 409
140
+ * `rebuild_required`, naming the field that forced it.
141
+ */
142
+ async reapply(options = {}) {
143
+ const body = {};
144
+ if (options.agentId !== undefined)
145
+ body.agent_id = options.agentId;
146
+ if (options.environmentId !== undefined)
147
+ body.environment_id = options.environmentId;
148
+ if (options.vaultId !== undefined)
149
+ body.vault_id = options.vaultId;
150
+ return this.http.data("POST", `/api/conversations/${this.id}/reapply`, { body });
151
+ }
133
152
  /** Ask the agent to stop the turn it is on. The sandbox stays up. */
134
153
  async interrupt() {
135
154
  await this.http.request("POST", `/api/conversations/${this.id}/interrupt`);
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../src/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAmB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAsB,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAO9C;;;;;;;GAOG;AACH,MAAM,OAAO,YAAY;IACd,EAAE,CAAS;IAEH,IAAI,CAAa;IAClC,6EAA6E;IACrE,WAAW,CAAS;IAE5B,YAAY,IAAgB,EAAE,EAAU,EAAE,MAAM,GAAG,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;Q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,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACK,KAAK,CAAC,cAAc;QAC1B,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,CAAC;YACH,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;gBACzD,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,KAAK;gBACX,UAAU,EAAE,CAAC;aACd,CAAC,EAAE,CAAC;gBACH,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,QAAQ,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI;oBAAE,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;YACvE,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,uEAAuE;YACvE,OAAO,CAAC,CAAC;QACX,CAAC;QACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/dist/errors.js CHANGED
@@ -166,6 +166,7 @@ export function errorForStatus(status, body, method, url, headers) {
166
166
  return new ConversationBusyError(message, init);
167
167
  case "provisioning":
168
168
  case "sprite_probe_failed":
169
+ case "sandbox_unavailable":
169
170
  return new NotReadyError(message, init);
170
171
  case "sandbox_quota_exceeded":
171
172
  return new QuotaExceededError(message, init);
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmCH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,uDAAuD;IAC9C,MAAM,CAAS;IACxB,gDAAgD;IACvC,IAAI,CAAgC;IAC7C,uDAAuD;IAC9C,IAAI,CAAU;IACvB,6DAA6D;IACpD,UAAU,CAAgB;IAEnC,YAAY,OAAe,EAAE,OAA0B,EAAE;QACvD,KAAK,CAAC,OAAO,EAAE,IAA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AAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,GAAG;YACN,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,GAAG;YACN,OAAO,IAAI,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACtD,KAAK,GAAG;YACN,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC1C,KAAK,GAAG;YACN,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5C,KAAK,GAAG;YACN,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC3C;YACE,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,IAAa,EAAE,GAAW;IAC5C,MAAM,KAAK,GAAI,IAAuC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC9D,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC"}
@@ -1292,6 +1292,28 @@ export interface paths {
1292
1292
  patch?: never;
1293
1293
  trace?: never;
1294
1294
  };
1295
+ "/api/conversations/{conversation_id}/reapply": {
1296
+ parameters: {
1297
+ query?: never;
1298
+ header?: never;
1299
+ path?: never;
1300
+ cookie?: never;
1301
+ };
1302
+ get?: never;
1303
+ put?: never;
1304
+ /**
1305
+ * Reapply a conversation's Agent, Environment and Vault
1306
+ * @description Applies a selection to the machine this conversation already runs on, so its files stay where the agent left them. Variables, the system prompt, skills and MCP configuration are rewritten, and the next prompt reads them. An omitted field keeps its current selection; null clears the Environment override or the Vault; an empty object reapplies what is already selected.
1307
+ *
1308
+ * Refused with 409 `conversation_busy` while a turn runs, 409 `rebuild_required` when the selection would need the machine built again (the `field` says which one forced it), 503 while the machine is still being built, and 410 once the conversation has ended.
1309
+ */
1310
+ post: operations["FountainWeb.ConversationController.reapply"];
1311
+ delete?: never;
1312
+ options?: never;
1313
+ head?: never;
1314
+ patch?: never;
1315
+ trace?: never;
1316
+ };
1295
1317
  "/api/conversations/{conversation_id}/requests/{request_id}": {
1296
1318
  parameters: {
1297
1319
  query?: never;
@@ -2726,7 +2748,7 @@ export interface components {
2726
2748
  metadata?: {
2727
2749
  [key: string]: unknown;
2728
2750
  };
2729
- /** @description Canonical provider/model_id (e.g. anthropic/claude-sonnet-4-6). The provider must match the runtime — anthropic for claude, openai for codex, google for gemini; opencode accepts any of the three. Other providers are rejected: Fountain has no credentials to export for them. The model id is not checked against a list, so a newly released model works without a Fountain release. The isolated fountain-fixture runtime is the exception: it accepts only fixture/deterministic-v1. Null on the acp runtime, which resolves no inference credential and reads no model. */
2751
+ /** @description Canonical provider/model_id (e.g. anthropic/claude-sonnet-5). The provider must match the runtime — anthropic for claude, openai for codex, google for gemini; opencode accepts any of the three. Other providers are rejected: Fountain has no credentials to export for them. The model id is not checked against a list, so a newly released model works without a Fountain release. The isolated fountain-fixture runtime is the exception: it accepts only fixture/deterministic-v1. Null on the acp runtime, which resolves no inference credential and reads no model. */
2730
2752
  model: string | null;
2731
2753
  name: string;
2732
2754
  /** @description Per-tool permission policy: a map of key to verdict, plus an optional "default" key. A key is matched against the tool card's title first and then ACP's kind (execute, edit, read, fetch, …); prefer a kind, because claude titles a tool call with the command it is about to run. Unset keys fall back to the default, and an unset default is auto_allow — today's behaviour. "ask" holds the tool until a human answers it on the conversation stream, and denies if nobody does before the timeout. A runtime that never asks (opencode) refuses anything stricter than auto_allow with 422 permission_policy_unenforceable. */
@@ -3464,7 +3486,7 @@ export interface components {
3464
3486
  * @description The result of a claim. The principal's resources are untouched: the same sandbox, agent, environment, vault and conversations, under the same ids.
3465
3487
  */
3466
3488
  ClaimedPrincipal: {
3467
- /** @description A fresh `principal`-scoped key for the claimed principal, with no expiry. The credential the application held is revoked by the claim. */
3489
+ /** @description A fresh `principal`-scoped key that expires 30 days after issuance. The claim revokes the application credential. Owners can replace the key from API keys in the console, including after expiry. */
3468
3490
  api_key: string;
3469
3491
  /** Format: date-time */
3470
3492
  claimed_at?: string;
@@ -3744,7 +3766,7 @@ export interface components {
3744
3766
  * @enum {string|null}
3745
3767
  */
3746
3768
  sandbox_mode?: "ephemeral" | "persistent" | null;
3747
- /** @description Override the auto-generated sprite name. */
3769
+ /** @description Name the conversation's machine instead of taking a generated name. The value is the suffix of an account-scoped name: the server keeps the fountain-<account>- prefix every generated name carries, so a name you choose lands in your own namespace rather than another account's. 1 to 40 characters of letters, digits, - and _, starting with a letter or digit; a name that already carries this account's prefix is taken as it stands, so a name from an earlier launch resolves to the same machine. 422 invalid_sprite_name otherwise. Refused with 422 sprite_name_not_supported on an agent that runs on a self-hosted runner, where the name carries the runner instead. Refused with sandbox_api_access none, which requires a machine no other conversation can reach. */
3748
3770
  sprite_name?: string;
3749
3771
  /** @description Optional display title. The team page names a teammate with it. */
3750
3772
  title?: string | null;
@@ -3768,6 +3790,27 @@ export interface components {
3768
3790
  ConversationListResponse: {
3769
3791
  data: components["schemas"]["Conversation"][];
3770
3792
  };
3793
+ /**
3794
+ * ConversationReapplyRequest
3795
+ * @description A selection of Agent, Environment and Vault to apply to the machine an existing conversation already runs on. An omitted field keeps its current selection. An explicit null clears the Environment override or the Vault. An empty object reapplies the current selection.
3796
+ */
3797
+ ConversationReapplyRequest: {
3798
+ /**
3799
+ * Format: uuid
3800
+ * @description Agent to use; omitted keeps the current Agent.
3801
+ */
3802
+ agent_id?: string;
3803
+ /**
3804
+ * Format: uuid
3805
+ * @description Environment override to use; null returns to the selected Agent's Environment.
3806
+ */
3807
+ environment_id?: string | null;
3808
+ /**
3809
+ * Format: uuid
3810
+ * @description Vault to use; null detaches the current Vault.
3811
+ */
3812
+ vault_id?: string | null;
3813
+ };
3771
3814
  /** ConversationResponse */
3772
3815
  ConversationResponse: {
3773
3816
  data: components["schemas"]["Conversation"];
@@ -4288,6 +4331,7 @@ export interface components {
4288
4331
  /**
4289
4332
  * @description Per-dependency result. `ok` or `error`, with no further detail.
4290
4333
  * @example {
4334
+ * "broker_listener": "ok",
4291
4335
  * "database": "ok"
4292
4336
  * }
4293
4337
  */
@@ -5066,6 +5110,8 @@ export interface components {
5066
5110
  image_count?: number;
5067
5111
  /** Format: date-time */
5068
5112
  inserted_at?: string;
5113
+ /** @description The service-enforced limit that ended this turn, or null. Set independently of exit_code: a runtime that exits zero after its deadline is still an incomplete turn, so a client must read this before treating a turn as successful. */
5114
+ limit_reason?: string | null;
5069
5115
  /** @description ACP model selection evidence; null for turns without a selection report. */
5070
5116
  model_selection?: {
5071
5117
  effective_model?: string | null;
@@ -11149,6 +11195,114 @@ export interface operations {
11149
11195
  };
11150
11196
  };
11151
11197
  };
11198
+ "FountainWeb.ConversationController.reapply": {
11199
+ parameters: {
11200
+ query?: never;
11201
+ header?: never;
11202
+ path: {
11203
+ conversation_id: string;
11204
+ };
11205
+ cookie?: never;
11206
+ };
11207
+ /** @description Configuration selection */
11208
+ requestBody?: {
11209
+ content: {
11210
+ "application/json": components["schemas"]["ConversationReapplyRequest"];
11211
+ };
11212
+ };
11213
+ responses: {
11214
+ /** @description Reapplied conversation */
11215
+ 200: {
11216
+ headers: {
11217
+ [name: string]: unknown;
11218
+ };
11219
+ content: {
11220
+ "application/json": components["schemas"]["ConversationResponse"];
11221
+ };
11222
+ };
11223
+ /** @description Unauthorized */
11224
+ 401: {
11225
+ headers: {
11226
+ [name: string]: unknown;
11227
+ };
11228
+ content: {
11229
+ "application/json": components["schemas"]["Error"];
11230
+ };
11231
+ };
11232
+ /** @description Sprite keys may not reapply a conversation */
11233
+ 403: {
11234
+ headers: {
11235
+ [name: string]: unknown;
11236
+ };
11237
+ content: {
11238
+ "application/json": components["schemas"]["Error"];
11239
+ };
11240
+ };
11241
+ /** @description Conversation or selected resource not found */
11242
+ 404: {
11243
+ headers: {
11244
+ [name: string]: unknown;
11245
+ };
11246
+ content: {
11247
+ "application/json": components["schemas"]["Error"];
11248
+ };
11249
+ };
11250
+ /** @description No acceptable representation */
11251
+ 406: {
11252
+ headers: {
11253
+ [name: string]: unknown;
11254
+ };
11255
+ content: {
11256
+ "application/json": components["schemas"]["NegotiationError"];
11257
+ };
11258
+ };
11259
+ /** @description The conversation has a running turn, or the selection needs the machine built again */
11260
+ 409: {
11261
+ headers: {
11262
+ [name: string]: unknown;
11263
+ };
11264
+ content: {
11265
+ "application/json": components["schemas"]["Error"];
11266
+ };
11267
+ };
11268
+ /** @description Conversation has ended */
11269
+ 410: {
11270
+ headers: {
11271
+ [name: string]: unknown;
11272
+ };
11273
+ content: {
11274
+ "application/json": components["schemas"]["Error"];
11275
+ };
11276
+ };
11277
+ /** @description Selection is not allowed */
11278
+ 422: {
11279
+ headers: {
11280
+ [name: string]: unknown;
11281
+ };
11282
+ content: {
11283
+ "application/json": components["schemas"]["Error"];
11284
+ };
11285
+ };
11286
+ /** @description Too Many Requests */
11287
+ 429: {
11288
+ headers: {
11289
+ [name: string]: unknown;
11290
+ };
11291
+ content: {
11292
+ "application/json": components["schemas"]["Error"];
11293
+ };
11294
+ };
11295
+ /** @description The machine is still being built */
11296
+ 503: {
11297
+ headers: {
11298
+ [name: string]: unknown;
11299
+ };
11300
+ content: {
11301
+ "application/json": components["schemas"]["Error"];
11302
+ };
11303
+ };
11304
+ };
11305
+ };
11152
11306
  "FountainWeb.ConversationController.answer_request": {
11153
11307
  parameters: {
11154
11308
  query?: never;
package/dist/http.d.ts CHANGED
@@ -15,7 +15,7 @@ export interface RequestOptions {
15
15
  * this string is already what Fountain's request logs are keyed on. The
16
16
  * version half is asserted against `package.json` by a test.
17
17
  */
18
- export declare const USER_AGENT = "fountain-sdk-js/1.30.0";
18
+ export declare const USER_AGENT = "fountain-sdk-js/1.31.1";
19
19
  export declare class HttpClient {
20
20
  readonly config: ResolvedConfig;
21
21
  private readonly fetchImpl;
package/dist/http.js CHANGED
@@ -5,7 +5,7 @@ import { AuthError, ConnectionError, FountainError, errorForStatus } from "./err
5
5
  * this string is already what Fountain's request logs are keyed on. The
6
6
  * version half is asserted against `package.json` by a test.
7
7
  */
8
- export const USER_AGENT = "fountain-sdk-js/1.30.0";
8
+ export const USER_AGENT = "fountain-sdk-js/1.31.1";
9
9
  /**
10
10
  * The thin layer everything else is built on: one bearer token, JSON in and
11
11
  * out, and errors that say which call failed. `Fountain#api` exposes it
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Fountain, type FountainOptions, type RunConfig } from "./client.ts";
2
2
  export { Run, type RunOptions } from "./run.ts";
3
- export { Conversation, type SendOptions } from "./conversation.ts";
3
+ export { Conversation, type ReapplyOptions, type SendOptions } from "./conversation.ts";
4
4
  export { HttpClient, type FetchLike, type RequestOptions } from "./http.ts";
5
5
  export { Agents, ConnectionProviders, Connections, Environments, Vaults } from "./resources.ts";
6
6
  export { Team, TeamSchedules, type MessageOptions } from "./team.ts";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAmB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAoB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAuC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,IAAI,EAAE,aAAa,EAAuB,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,GAGhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAuC,M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 -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managoat/fountain-sdk",
3
- "version": "1.30.0",
3
+ "version": "1.31.1",
4
4
  "description": "Run a coding agent on a real computer, with your repos and your credentials, in one call.",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {