@managoat/fountain-sdk 1.30.0 → 1.31.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/CHANGELOG.md +10 -0
- package/dist/conversation.d.ts +18 -0
- package/dist/conversation.js +19 -0
- package/dist/conversation.js.map +1 -1
- package/dist/generated/openapi.d.ts +153 -0
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,16 @@ server releases.
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## [1.31.0] — 2026-09-11
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `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.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Generated types carry the new operation and its `ConversationReapplyRequest` body.
|
|
23
|
+
|
|
14
24
|
## [1.30.0] - 2026-09-11
|
|
15
25
|
|
|
16
26
|
### Added
|
package/dist/conversation.d.ts
CHANGED
|
@@ -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. */
|
package/dist/conversation.js
CHANGED
|
@@ -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`);
|
package/dist/conversation.js.map
CHANGED
|
@@ -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;
|
|
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;AAgB9C;;;;;;;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;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED,+CAA+C;IAC/C,IAAI,GAAG;QACL,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,0DAA0D;IAC1D,KAAK,CAAC,GAAG;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAqB,KAAK,EAAE,sBAAsB,IAAI,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C;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -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;
|
|
@@ -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"];
|
|
@@ -5066,6 +5109,8 @@ export interface components {
|
|
|
5066
5109
|
image_count?: number;
|
|
5067
5110
|
/** Format: date-time */
|
|
5068
5111
|
inserted_at?: string;
|
|
5112
|
+
/** @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. */
|
|
5113
|
+
limit_reason?: string | null;
|
|
5069
5114
|
/** @description ACP model selection evidence; null for turns without a selection report. */
|
|
5070
5115
|
model_selection?: {
|
|
5071
5116
|
effective_model?: string | null;
|
|
@@ -11149,6 +11194,114 @@ export interface operations {
|
|
|
11149
11194
|
};
|
|
11150
11195
|
};
|
|
11151
11196
|
};
|
|
11197
|
+
"FountainWeb.ConversationController.reapply": {
|
|
11198
|
+
parameters: {
|
|
11199
|
+
query?: never;
|
|
11200
|
+
header?: never;
|
|
11201
|
+
path: {
|
|
11202
|
+
conversation_id: string;
|
|
11203
|
+
};
|
|
11204
|
+
cookie?: never;
|
|
11205
|
+
};
|
|
11206
|
+
/** @description Configuration selection */
|
|
11207
|
+
requestBody?: {
|
|
11208
|
+
content: {
|
|
11209
|
+
"application/json": components["schemas"]["ConversationReapplyRequest"];
|
|
11210
|
+
};
|
|
11211
|
+
};
|
|
11212
|
+
responses: {
|
|
11213
|
+
/** @description Reapplied conversation */
|
|
11214
|
+
200: {
|
|
11215
|
+
headers: {
|
|
11216
|
+
[name: string]: unknown;
|
|
11217
|
+
};
|
|
11218
|
+
content: {
|
|
11219
|
+
"application/json": components["schemas"]["ConversationResponse"];
|
|
11220
|
+
};
|
|
11221
|
+
};
|
|
11222
|
+
/** @description Unauthorized */
|
|
11223
|
+
401: {
|
|
11224
|
+
headers: {
|
|
11225
|
+
[name: string]: unknown;
|
|
11226
|
+
};
|
|
11227
|
+
content: {
|
|
11228
|
+
"application/json": components["schemas"]["Error"];
|
|
11229
|
+
};
|
|
11230
|
+
};
|
|
11231
|
+
/** @description Sprite keys may not reapply a conversation */
|
|
11232
|
+
403: {
|
|
11233
|
+
headers: {
|
|
11234
|
+
[name: string]: unknown;
|
|
11235
|
+
};
|
|
11236
|
+
content: {
|
|
11237
|
+
"application/json": components["schemas"]["Error"];
|
|
11238
|
+
};
|
|
11239
|
+
};
|
|
11240
|
+
/** @description Conversation or selected resource not found */
|
|
11241
|
+
404: {
|
|
11242
|
+
headers: {
|
|
11243
|
+
[name: string]: unknown;
|
|
11244
|
+
};
|
|
11245
|
+
content: {
|
|
11246
|
+
"application/json": components["schemas"]["Error"];
|
|
11247
|
+
};
|
|
11248
|
+
};
|
|
11249
|
+
/** @description No acceptable representation */
|
|
11250
|
+
406: {
|
|
11251
|
+
headers: {
|
|
11252
|
+
[name: string]: unknown;
|
|
11253
|
+
};
|
|
11254
|
+
content: {
|
|
11255
|
+
"application/json": components["schemas"]["NegotiationError"];
|
|
11256
|
+
};
|
|
11257
|
+
};
|
|
11258
|
+
/** @description The conversation has a running turn, or the selection needs the machine built again */
|
|
11259
|
+
409: {
|
|
11260
|
+
headers: {
|
|
11261
|
+
[name: string]: unknown;
|
|
11262
|
+
};
|
|
11263
|
+
content: {
|
|
11264
|
+
"application/json": components["schemas"]["Error"];
|
|
11265
|
+
};
|
|
11266
|
+
};
|
|
11267
|
+
/** @description Conversation has ended */
|
|
11268
|
+
410: {
|
|
11269
|
+
headers: {
|
|
11270
|
+
[name: string]: unknown;
|
|
11271
|
+
};
|
|
11272
|
+
content: {
|
|
11273
|
+
"application/json": components["schemas"]["Error"];
|
|
11274
|
+
};
|
|
11275
|
+
};
|
|
11276
|
+
/** @description Selection is not allowed */
|
|
11277
|
+
422: {
|
|
11278
|
+
headers: {
|
|
11279
|
+
[name: string]: unknown;
|
|
11280
|
+
};
|
|
11281
|
+
content: {
|
|
11282
|
+
"application/json": components["schemas"]["Error"];
|
|
11283
|
+
};
|
|
11284
|
+
};
|
|
11285
|
+
/** @description Too Many Requests */
|
|
11286
|
+
429: {
|
|
11287
|
+
headers: {
|
|
11288
|
+
[name: string]: unknown;
|
|
11289
|
+
};
|
|
11290
|
+
content: {
|
|
11291
|
+
"application/json": components["schemas"]["Error"];
|
|
11292
|
+
};
|
|
11293
|
+
};
|
|
11294
|
+
/** @description The machine is still being built */
|
|
11295
|
+
503: {
|
|
11296
|
+
headers: {
|
|
11297
|
+
[name: string]: unknown;
|
|
11298
|
+
};
|
|
11299
|
+
content: {
|
|
11300
|
+
"application/json": components["schemas"]["Error"];
|
|
11301
|
+
};
|
|
11302
|
+
};
|
|
11303
|
+
};
|
|
11304
|
+
};
|
|
11152
11305
|
"FountainWeb.ConversationController.answer_request": {
|
|
11153
11306
|
parameters: {
|
|
11154
11307
|
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.
|
|
18
|
+
export declare const USER_AGENT = "fountain-sdk-js/1.31.0";
|
|
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.
|
|
8
|
+
export const USER_AGENT = "fountain-sdk-js/1.31.0";
|
|
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,
|
|
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,EAAyC,MAAM,mBAAmB,CAAC;AACxF,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,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACL,aAAa,EACb,SAAS,EACT,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,eAAe,GAEhB,MAAM,aAAa,CAAC;AAqCrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED