@managoat/fountain-sdk 1.27.0 → 1.28.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 CHANGED
@@ -11,6 +11,18 @@ server releases.
11
11
 
12
12
  ---
13
13
 
14
+ ## [1.28.0] - 2026-09-10
15
+
16
+ ### Added
17
+
18
+ - Wire types for the OAuth client registry (#1125): `/api/oauth/clients` and
19
+ `/api/oauth/clients/{id}`, plus `OAuthClient`, `OAuthClientRequest`,
20
+ `OAuthClientUpdateRequest` and `OAuthClientListResponse`. The hand-written
21
+ layer does not model these; registering an app is a once-per-app setup step
22
+ a person does in the console or with `fountain oauth-client`, and the SDK's
23
+ work starts with the API key the flow mints. Reach them through the raw
24
+ client if you need them.
25
+
14
26
  ## [1.27.0] — 2026-09-10
15
27
 
16
28
  ### Added
package/dist/client.d.ts CHANGED
@@ -5,7 +5,7 @@ import { Conversation } from "./conversation.ts";
5
5
  import { Agents, Connections, Environments, Vaults } from "./resources.ts";
6
6
  import { Team } from "./team.ts";
7
7
  import { type StreamRequest } from "./sse.ts";
8
- import type { AuthMe, Catalog, ConversationRecord, LogEvent, SandboxDiff, SandboxFile, SandboxListing, SandboxRecord, SearchHit } from "./types.ts";
8
+ import type { AuthMe, Catalog, ConversationRecord, LogEvent, SandboxDiff, SandboxFile, SandboxListing, SandboxStatus, SandboxRecord, SearchHit } from "./types.ts";
9
9
  export interface FountainOptions extends ConfigOptions {
10
10
  /** Swap the fetch implementation — a test server, a proxy, an instrumented one. */
11
11
  fetch?: FetchLike;
@@ -146,9 +146,9 @@ export declare class Fountain {
146
146
  * name (ADR 0039). `path` is absolute or relative to the agent's working
147
147
  * directory; omit it for that directory itself.
148
148
  *
149
- * The three disk reads — this, `sandboxFile` and `sandboxDiff` — are the
150
- * whole of what the API offers on a disk; there is no exec, and to run a
151
- * command you send a prompt. They need a `full`-scope key, answer only for
149
+ * The four disk reads — this, `sandboxFile`, `sandboxGitStatus` and
150
+ * `sandboxDiff` — are the whole of what the API offers on a disk; there is
151
+ * no exec, and to run a command you send a prompt. They need a `full`-scope key, answer only for
152
152
  * a `ready` sandbox (a parked one is not woken: `sandbox_not_ready`), are
153
153
  * confined to `/home/sprite` and the runtime's workspace
154
154
  * (`path_outside_sandbox`), and come back redacted — the sandbox's
@@ -158,15 +158,37 @@ export declare class Fountain {
158
158
  /**
159
159
  * One file on a sandbox. `content` is the text when `encoding` is `utf-8`
160
160
  * and base64 otherwise; `size` is the whole file and `truncated` says
161
- * whether `content` stopped at `maxBytes` (default 256 KiB, at most 4 MiB).
161
+ * whether `content` is short of it. That is true when the file is longer
162
+ * than `maxBytes` (default 256 KiB, at most 4 MiB), and also when redaction
163
+ * grows what was read past that cap.
162
164
  */
163
165
  sandboxFile(id: string, path: string, opts?: {
164
166
  maxBytes?: number;
165
167
  }): Promise<SandboxFile>;
168
+ /**
169
+ * `git status` of the repository containing `path` on a sandbox (default:
170
+ * the agent's working directory), one entry per changed path.
171
+ *
172
+ * This is the read that shows a file the agent made and never staged:
173
+ * `sandboxDiff` compares tracked content, so an untracked file is invisible
174
+ * to it whatever options it is given. Entries cover the whole repository
175
+ * whatever `path` names inside it, and each entry's `path` is relative to
176
+ * `repoRoot` rather than to the sandbox home, so do not hand one straight
177
+ * back to `sandboxFile` without joining it.
178
+ *
179
+ * `untracked` is `normal` (the default, an untracked directory collapses to
180
+ * one entry), `all` (every file under it) or `no`.
181
+ */
182
+ sandboxGitStatus(id: string, opts?: {
183
+ path?: string;
184
+ untracked?: "normal" | "all" | "no";
185
+ }): Promise<SandboxStatus>;
166
186
  /**
167
187
  * `git diff` of the repository containing `path` on a sandbox (default:
168
188
  * the agent's working directory). `staged` diffs the index; `ref` diffs
169
- * against a commit, branch or tag instead of HEAD.
189
+ * against a commit, branch or tag. With neither, the comparison is the
190
+ * working tree against the index, so work the agent staged is absent from
191
+ * it — pass `ref: "HEAD"` to see staged and unstaged together.
170
192
  */
171
193
  sandboxDiff(id: string, opts?: {
172
194
  path?: string;
package/dist/client.js CHANGED
@@ -171,9 +171,9 @@ export class Fountain {
171
171
  * name (ADR 0039). `path` is absolute or relative to the agent's working
172
172
  * directory; omit it for that directory itself.
173
173
  *
174
- * The three disk reads — this, `sandboxFile` and `sandboxDiff` — are the
175
- * whole of what the API offers on a disk; there is no exec, and to run a
176
- * command you send a prompt. They need a `full`-scope key, answer only for
174
+ * The four disk reads — this, `sandboxFile`, `sandboxGitStatus` and
175
+ * `sandboxDiff` — are the whole of what the API offers on a disk; there is
176
+ * no exec, and to run a command you send a prompt. They need a `full`-scope key, answer only for
177
177
  * a `ready` sandbox (a parked one is not woken: `sandbox_not_ready`), are
178
178
  * confined to `/home/sprite` and the runtime's workspace
179
179
  * (`path_outside_sandbox`), and come back redacted — the sandbox's
@@ -185,17 +185,40 @@ export class Fountain {
185
185
  /**
186
186
  * One file on a sandbox. `content` is the text when `encoding` is `utf-8`
187
187
  * and base64 otherwise; `size` is the whole file and `truncated` says
188
- * whether `content` stopped at `maxBytes` (default 256 KiB, at most 4 MiB).
188
+ * whether `content` is short of it. That is true when the file is longer
189
+ * than `maxBytes` (default 256 KiB, at most 4 MiB), and also when redaction
190
+ * grows what was read past that cap.
189
191
  */
190
192
  async sandboxFile(id, path, opts = {}) {
191
193
  return this.api.data("GET", `/api/sandboxes/${id}/file`, {
192
194
  query: { path, max_bytes: opts.maxBytes },
193
195
  });
194
196
  }
197
+ /**
198
+ * `git status` of the repository containing `path` on a sandbox (default:
199
+ * the agent's working directory), one entry per changed path.
200
+ *
201
+ * This is the read that shows a file the agent made and never staged:
202
+ * `sandboxDiff` compares tracked content, so an untracked file is invisible
203
+ * to it whatever options it is given. Entries cover the whole repository
204
+ * whatever `path` names inside it, and each entry's `path` is relative to
205
+ * `repoRoot` rather than to the sandbox home, so do not hand one straight
206
+ * back to `sandboxFile` without joining it.
207
+ *
208
+ * `untracked` is `normal` (the default, an untracked directory collapses to
209
+ * one entry), `all` (every file under it) or `no`.
210
+ */
211
+ async sandboxGitStatus(id, opts = {}) {
212
+ return this.api.data("GET", `/api/sandboxes/${id}/git-status`, {
213
+ query: { path: opts.path, untracked: opts.untracked },
214
+ });
215
+ }
195
216
  /**
196
217
  * `git diff` of the repository containing `path` on a sandbox (default:
197
218
  * the agent's working directory). `staged` diffs the index; `ref` diffs
198
- * against a commit, branch or tag instead of HEAD.
219
+ * against a commit, branch or tag. With neither, the comparison is the
220
+ * working tree against the index, so work the agent staged is absent from
221
+ * it — pass `ref: "HEAD"` to see staged and unstaged together.
199
222
  */
200
223
  async sandboxDiff(id, opts = {}) {
201
224
  return this.api.data("GET", `/api/sandboxes/${id}/diff`, {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuC,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,aAAa,EAA2C,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,GAAG,EAAmB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AA2D1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,QAAQ;IACnB,gFAAgF;IACvE,GAAG,CAAa;IAChB,MAAM,CAAiB;IAEhC,8CAA8C;IACrC,MAAM,CAAS;IACxB,sCAAsC;IAC7B,YAAY,CAAe;IACpC,gCAAgC;IACvB,MAAM,CAAS;IACxB,6DAA6D;IACpD,IAAI,CAAO;IACpB,6EAA6E;IACpE,WAAW,CAAc;IAEjB,QAAQ,CAAW;IA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