@artieeez/cf-client 0.0.0-stage → 0.2.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 CHANGED
@@ -1,3 +1,5 @@
1
- # Temporary Holding Version
1
+ # client
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Typed API client generated from the server OpenAPI: control surface + worker surface.
4
+
5
+ See [docs/design](../../docs/design/README.md).
@@ -0,0 +1,339 @@
1
+ import type { CfEvent, ErrorCode, Manifest, Me, Provenance, Role, WorkerEventType, WorkerMode } from '@artieeez/cf-core';
2
+ import type { components } from './schema.gen.ts';
3
+ export declare class ApiError extends Error {
4
+ readonly status: number;
5
+ readonly code: ErrorCode;
6
+ /** `agent_account_unavailable`: the earliest cooldown end as ISO, or null (agent-accounts) */
7
+ readonly retryAt: string | null | undefined;
8
+ /** `forbidden`: the role the route needs (oidc-login AC 16) */
9
+ readonly role: Role | undefined;
10
+ constructor(status: number, code: ErrorCode, message: string, retryAt?: string | null, role?: Role);
11
+ }
12
+ /** The server could not be reached (refused, reset, DNS). */
13
+ export declare class ConnectionError extends Error {
14
+ readonly url: string;
15
+ constructor(url: string, cause: unknown);
16
+ }
17
+ type S = components['schemas'];
18
+ export type RunInfo = S['RunInfo_Output'];
19
+ /** A run's link (AD-085). */
20
+ export type RunLink = S['RunLink_Output'];
21
+ export type InterventionInfo = S['InterventionInfo_Output'];
22
+ export type AnswerResult = S['AnswerResultResponse_Output'];
23
+ /** What pause, resume and stop answer. */
24
+ export type RunControl = S['RunControlResponse_Output'];
25
+ export type WorkflowInfo = S['WorkflowInfo_Output'];
26
+ /** What a factory or workflow pause or resume answers: the scope's state after it (AD-088). */
27
+ export type ScopeControl = S['ScopeControl_Output'];
28
+ /** The factory pause and each paused workflow (`GET /api/controls`, AD-088). */
29
+ export type Controls = S['Controls_Output'];
30
+ /** A workflow's slots and settings for its latest version, with where each value comes from (AD-087). */
31
+ export type WorkflowConfigInfo = S['WorkflowConfigInfo_Output'];
32
+ /** What `updateWorkflowConfig` sets: each named slot or setting; `null` clears the dashboard's value. */
33
+ export type WorkflowConfigPatch = S['UpdateWorkflowConfigRequest'];
34
+ /** One process of a worker: a session registered with its token (worker-tokens door 4). */
35
+ export type WorkerReplica = Omit<S['WorkerReplica_Output'], 'provenance'> & {
36
+ provenance: Provenance | null;
37
+ };
38
+ /** One worker as `GET /api/workers` lists it: a token and its replicas (AD-063). */
39
+ export type WorkerInfo = Omit<S['WorkerInfo_Output'], 'replicas'> & {
40
+ replicas: WorkerReplica[];
41
+ };
42
+ /** What `createWorker` answers: the worker and its token, shown once (worker-tokens door 2). */
43
+ export type CreatedWorker = S['CreatedWorkerResponse_Output'];
44
+ export type NewWorker = S['CreateWorkerRequest'];
45
+ /** One plugin instance and its last check on the server (`GET /api/plugins`, health-ready door 8). */
46
+ export type PluginInfo = S['PluginInfo_Output'];
47
+ /** One plugin this server ships and its instances (`GET /api/integrations`, integration-setup S1). */
48
+ export type IntegrationInfo = S['IntegrationInfo_Output'];
49
+ /** The whole catalog: each plugin, and whether `CF_PUBLIC_URL` is set (GitHub setup needs it, integration-setup AC 14). */
50
+ export type IntegrationCatalog = S['IntegrationListResponse_Output'];
51
+ /** One plugin instance as Integrations lists it: env or dashboard, its config, secret fingerprints and webhook URL. */
52
+ export type IntegrationInstance = S['IntegrationInstanceInfo_Output'];
53
+ /** "Create on GitHub": the manifest and GitHub's new-App page to post it to (AC 7). */
54
+ export type GithubManifestSetup = S['StartGithubSetupResponse_Output'];
55
+ export type NewGithubManifest = S['StartGithubSetupRequest'];
56
+ /** An instance from credentials: an existing GitHub App, or a Linear key and team (AC 15, 18). */
57
+ export type NewIntegrationInstance = S['CreateInstanceRequest'];
58
+ export type LinearTeam = S['LinearTeam_Output'];
59
+ export type InstallationRepository = S['InstallationRepository_Output'];
60
+ /** One entry of an instance's log (`GET /api/integrations/instances/:instance/log`, ART-238): metadata only, never a body. */
61
+ export type InstanceLogEntry = S['InstanceLogEntry_Output'];
62
+ /** A page of an instance log: newest first, and the `before` of the next page or null. */
63
+ export type InstanceLogPage = S['InstanceLogResponse_Output'];
64
+ /** The filters and page of an instance log; `since` and `until` are ISO times. */
65
+ export interface InstanceLogQuery {
66
+ kind?: InstanceLogEntry['kind'][];
67
+ status?: InstanceLogEntry['status'];
68
+ since?: string;
69
+ until?: string;
70
+ before?: string;
71
+ limit?: number;
72
+ }
73
+ /** A run's status as `POST /w/workspaces/check` answers it: `missing` when the server has no such run. */
74
+ export type WorkspaceStatus = S['CheckWorkspacesResponse_Output']['statuses'][string];
75
+ /** What `POST /w/workspaces/check` answers: each run's status, and its ISO end time or null (ART-226). */
76
+ export type WorkspaceCheck = S['CheckWorkspacesResponse_Output'];
77
+ /** One run as `POST /w/drain` answers it: its status and how far its pause has got (ART-234). */
78
+ export type DrainedRun = S['DrainSessionResponse_Output']['runs'][number];
79
+ /** One run folder a worker reports (`POST /w/workspaces/report`, ART-226). */
80
+ export type WorkspaceFolder = S['WorkspaceFolder'];
81
+ /** One workflow version's readiness on a worker, as `POST /w/health` takes it (health-ready door 1). */
82
+ export interface WorkflowHealth {
83
+ workflow: string;
84
+ version: string;
85
+ ready: boolean;
86
+ problems: string[];
87
+ }
88
+ /** One registered version of a workflow, with its manifest as registered. */
89
+ export type WorkflowVersionInfo = Omit<S['WorkflowVersionInfoResponse_Output'], 'manifest'> & {
90
+ manifest: Manifest;
91
+ };
92
+ export type LeasedUnit = S['LeasedUnitResponse_Output'];
93
+ /** One resolved `about` ref (waivers door 3). */
94
+ export type AboutEntry = NonNullable<InterventionInfo['about']>[number];
95
+ /** What a replica is doing, from its last call and its leases (workers-panel door 3). */
96
+ export type WorkerStatus = WorkerReplica['status'];
97
+ /** One artifact a run's units stored, oldest first (`GET /api/runs/:id/artifacts`). */
98
+ export type RunArtifact = S['RunArtifactListResponse_Output']['artifacts'][number];
99
+ /** One agent account as `GET /api/agent-accounts` lists it, never with its secret (agent-accounts door 1). */
100
+ export type AgentAccountView = S['AgentAccountView_Output'];
101
+ export type NewAgentAccount = S['CreateAccountRequest'];
102
+ export type AgentAccountPatch = S['UpdateAccountRequest'];
103
+ /** An account granted for one agent session (agent-accounts door 4). */
104
+ export type AccountGrantInfo = S['AcquireAccountResponse_Output'];
105
+ export type AccountRelease = S['ReleaseAccountRequest'];
106
+ /** Where a manual dispatch came from (dashboard-dispatch door 4). */
107
+ export type DispatchVia = NonNullable<S['DispatchRunRequest']['via']>;
108
+ export interface InterventionFilter {
109
+ run?: string;
110
+ /** `open` when left out */
111
+ status?: 'open' | 'answered' | 'voided' | 'all';
112
+ }
113
+ export interface RunFilter {
114
+ workflow?: string;
115
+ status?: string;
116
+ limit?: number;
117
+ }
118
+ export interface WorkerEvent {
119
+ /** a worker event type, or a domain type the workflow declares (artifact-store door 5) */
120
+ type: WorkerEventType | `${string}.${string}`;
121
+ time: string;
122
+ data: Record<string, unknown>;
123
+ }
124
+ export type CompleteBody = {
125
+ outcome: string;
126
+ output?: unknown;
127
+ pause?: {
128
+ reason: string;
129
+ };
130
+ events: WorkerEvent[];
131
+ }
132
+ /** `ctx.pause` in `beforeUnit`: the unit goes back to the queue and the run pauses (boss-sdd-gaps door 7) */
133
+ | {
134
+ yield: {
135
+ reason: string;
136
+ };
137
+ events: WorkerEvent[];
138
+ } | {
139
+ error: {
140
+ message: string;
141
+ kind?: 'hook';
142
+ hook?: 'preInit' | 'beforeUnit';
143
+ };
144
+ events: WorkerEvent[];
145
+ };
146
+ /** The server `pnpm dev:server` starts in the main checkout; a worktree's comes in `CF_SERVER`. */
147
+ export declare const DEFAULT_SERVER_URL = "http://127.0.0.1:4400";
148
+ export interface ClientOptions {
149
+ baseUrl: string;
150
+ fetch?: typeof fetch;
151
+ /** a CLI token (`cfp_…`, oidc-login): sent as the bearer of every call that sets no `authorization` of its own */
152
+ token?: string;
153
+ }
154
+ /** What `POST /auth/cli/token` answers (oidc-login door 3). */
155
+ export interface CliTokenInfo {
156
+ token: string;
157
+ expiresAt: string;
158
+ user: {
159
+ email: string;
160
+ name: string;
161
+ role: Role;
162
+ };
163
+ }
164
+ export declare function createClient(opts: ClientOptions): {
165
+ baseUrl: string;
166
+ /** Who is signed in; with auth off, the local admin. A 401 throws. */
167
+ me: () => Promise<Me>;
168
+ /** Ends this client's session: the browser cookie or the CLI token. */
169
+ logout(): Promise<void>;
170
+ /** `cf login`'s exchange of the browser's one-time code and the PKCE verifier for a CLI token. */
171
+ cliToken(code: string, verifier: string): Promise<CliTokenInfo>;
172
+ dispatch(workflow: string, input?: unknown, o?: {
173
+ via?: DispatchVia;
174
+ }): Promise<{
175
+ runId: string;
176
+ }>;
177
+ getRun: (id: string) => Promise<RunInfo>;
178
+ listRuns(filter?: RunFilter): Promise<RunInfo[]>;
179
+ listWorkflows: () => Promise<WorkflowInfo[]>;
180
+ getWorkflowVersion(id: string, version: string): Promise<WorkflowVersionInfo>;
181
+ /** The latest version's slots and settings, their values and sources (`GET /api/workflows/:id/config`). */
182
+ getWorkflowConfig: (id: string) => Promise<WorkflowConfigInfo>;
183
+ /** Sets or clears dashboard bindings and settings (admin, `PUT /api/workflows/:id/config`); answers the config. */
184
+ updateWorkflowConfig(id: string, body: WorkflowConfigPatch): Promise<WorkflowConfigInfo>;
185
+ pauseRun(id: string, reason?: string): Promise<RunControl>;
186
+ resumeRun: (id: string) => Promise<RunControl>;
187
+ stopRun(id: string, reason?: string): Promise<RunControl>;
188
+ listInterventions(filter?: InterventionFilter): Promise<InterventionInfo[]>;
189
+ getIntervention: (id: string) => Promise<InterventionInfo>;
190
+ answerIntervention(id: string, outcome: string, data?: Record<string, unknown>): Promise<AnswerResult>;
191
+ readArtifact(runId: string, sha256: string): Promise<string>;
192
+ listArtifacts(runId: string): Promise<RunArtifact[]>;
193
+ /** An artifact's bytes, as stored. */
194
+ downloadArtifact(runId: string, sha256: string): Promise<Uint8Array>;
195
+ events(id: string, after?: number): Promise<CfEvent[]>;
196
+ /** Every event after `after`, then live ones; ends after `run.completed` or when the server closes. */
197
+ stream(id: string, after?: number, signal?: AbortSignal): AsyncGenerator<CfEvent>;
198
+ /** The factory and workflow pauses (AD-088); a run's own pause is `pauseRun`. */
199
+ controls: {
200
+ list: () => Promise<Controls>;
201
+ };
202
+ factory: {
203
+ /** Holds every queued unit of every running run until resume (operator, `POST /api/factory/pause`). */
204
+ pause: (reason?: string) => Promise<ScopeControl>;
205
+ resume: () => Promise<ScopeControl>;
206
+ };
207
+ workflows: {
208
+ /** Holds the queued units of every version of the workflow until resume (operator). */
209
+ pause(id: string, reason?: string): Promise<ScopeControl>;
210
+ resume: (id: string) => Promise<ScopeControl>;
211
+ };
212
+ workers: {
213
+ /** Every unrevoked worker with its replicas, newest seen first (`GET /api/workers`). */
214
+ list: () => Promise<WorkerInfo[]>;
215
+ /** Asks the worker's online sessions on `host` to delete these run folders on their next round (admin, ART-226). */
216
+ deleteWorkspaces(id: string, host: string | null, runs: string[]): Promise<void>;
217
+ };
218
+ plugins: {
219
+ /** Each plugin instance with its last check on the server (`GET /api/plugins`). */
220
+ list: () => Promise<PluginInfo[]>;
221
+ };
222
+ integrations: {
223
+ /** Each plugin this server ships with its instances, their last check and bound workflows (`GET /api/integrations`). */
224
+ list: () => Promise<IntegrationInfo[]>;
225
+ /** The catalog and whether `CF_PUBLIC_URL` is set (`GET /api/integrations`). */
226
+ catalog: () => Promise<IntegrationCatalog>;
227
+ /** "Create on GitHub" (`POST /api/integrations/github/manifest`): the browser then posts `manifest` to `action`. */
228
+ startGithub: (body: NewGithubManifest) => Promise<GithubManifestSetup>;
229
+ /** An instance from credentials (`POST /api/integrations`). */
230
+ create: (body: NewIntegrationInstance) => Promise<IntegrationInstance>;
231
+ /** The teams a Linear key sees (`POST /api/integrations/linear/teams`). */
232
+ linearTeams: (apiKey: string) => Promise<LinearTeam[]>;
233
+ /** The repositories a GitHub instance's installation reaches (`GET /api/integrations/:name/github/repositories`). */
234
+ githubRepositories: (name: string) => Promise<InstallationRepository[]>;
235
+ /** Which repos a GitHub instance covers (`PATCH /api/integrations/:name`). */
236
+ updateRepos: (name: string, repos: string[]) => Promise<IntegrationInstance>;
237
+ /** Removes a dashboard instance (`DELETE /api/integrations/:name`): what could not be cleaned up in `warnings`. */
238
+ remove: (name: string) => Promise<{
239
+ removed: string;
240
+ warnings: string[];
241
+ }>;
242
+ /** What passed through one instance, newest first (`GET /api/integrations/instances/:instance/log`). */
243
+ log(instance: string, q?: InstanceLogQuery): Promise<InstanceLogPage>;
244
+ };
245
+ /** Coding agent accounts the server holds (agent-accounts door 1); a secret is write-only. */
246
+ agentAccounts: {
247
+ list: () => Promise<AgentAccountView[]>;
248
+ create: (body: NewAgentAccount) => Promise<AgentAccountView>;
249
+ update(name: string, body: AgentAccountPatch): Promise<AgentAccountView>;
250
+ remove(name: string): Promise<void>;
251
+ };
252
+ /** A worker token any number of processes can use (AD-063); `workflows` left out: any workflow. */
253
+ createWorker(body: NewWorker): Promise<CreatedWorker>;
254
+ /** Its next register and every call of a session it holds answer 401. */
255
+ revokeWorker(id: string): Promise<void>;
256
+ register(credential: string, manifests: Manifest[], provenance?: Provenance, capacity?: {
257
+ slots?: number;
258
+ mode?: WorkerMode;
259
+ }): Promise<{
260
+ workerId: string;
261
+ sessionToken: string;
262
+ expiresAt: string;
263
+ }>;
264
+ /** The session's readiness per workflow version (health-ready door 1): every version once. */
265
+ reportHealth(session: string, workflows: WorkflowHealth[]): Promise<void>;
266
+ /** null when the long-poll ended with no work (204). */
267
+ lease(session: string, signal?: AbortSignal): Promise<LeasedUnit | null>;
268
+ heartbeat(session: string, unitId: string, leaseToken: string, events: WorkerEvent[]): Promise<{
269
+ leaseExpiresAt: string;
270
+ }>;
271
+ complete(session: string, unitId: string, leaseToken: string, body: CompleteBody): Promise<void>;
272
+ /** The worker artifact routes (artifact-store door 2), authorised by the session and a unit's lease. */
273
+ worker: {
274
+ /**
275
+ * The session got a stop and drains (ART-234, AD-090): the server pauses `by: 'shutdown'` the
276
+ * runs it is finishing a unit of, and answers each run's state; 1 to WORKER_SLOTS_MAX run ids.
277
+ */
278
+ drain(session: string, runs: string[]): Promise<DrainedRun[]>;
279
+ workspaces: {
280
+ /** Each run's status and end time, for the worker's run folders (run-affinity door 5): 1 to 500 run ids. */
281
+ check(session: string, runs: string[]): Promise<WorkspaceCheck>;
282
+ /** The run folders left after a collect round; answers the run ids an admin asked to delete (ART-226). */
283
+ report(session: string, folders: WorkspaceFolder[]): Promise<{
284
+ delete: string[];
285
+ }>;
286
+ };
287
+ units: {
288
+ /** One plugin action the server runs for the unit's lease holder (AD-048): one request, never retried. */
289
+ action(session: string, unitId: string, leaseToken: string, body: {
290
+ slot: string;
291
+ action: string;
292
+ args: unknown[];
293
+ }): Promise<unknown>;
294
+ /** One more key for the unit's run (github-pr-review door 4, AD-074); 409 `key_taken` throws `ApiError`. */
295
+ claimKey(session: string, unitId: string, leaseToken: string, key: string): Promise<{
296
+ key: string;
297
+ claimed: boolean;
298
+ }>;
299
+ /**
300
+ * The title and links of the unit's run (AD-085): `title` replaces the run's, `links` are added
301
+ * but for urls it holds; answers the run's title and links after the call and the links it added.
302
+ */
303
+ setRunMeta(session: string, unitId: string, leaseToken: string, body: {
304
+ title?: string;
305
+ links?: RunLink[];
306
+ }): Promise<{
307
+ title: string | null;
308
+ links: RunLink[];
309
+ added: RunLink[];
310
+ }>;
311
+ /**
312
+ * An agent account for one session (agent-accounts door 4); null on 204 (none scoped: the
313
+ * worker's own login). A 503 throws `ApiError` with `retryAt`.
314
+ */
315
+ acquireAccount(session: string, unitId: string, leaseToken: string, body: {
316
+ harness: "claude-code";
317
+ model?: string;
318
+ exclude?: string[];
319
+ }): Promise<AccountGrantInfo | null>;
320
+ releaseAccount(session: string, unitId: string, leaseToken: string, grant: string, body: AccountRelease): Promise<void>;
321
+ };
322
+ artifacts: {
323
+ put(session: string, leaseToken: string, sha256: string, bytes: Uint8Array): Promise<{
324
+ sha256: string;
325
+ size: number;
326
+ }>;
327
+ get(session: string, leaseToken: string, sha256: string): Promise<Uint8Array>;
328
+ /** The bytes, and the path and media type the run last recorded them under (`null` when none did). */
329
+ read(session: string, leaseToken: string, sha256: string): Promise<{
330
+ bytes: Uint8Array;
331
+ path: string | null;
332
+ mediaType: string | null;
333
+ }>;
334
+ };
335
+ };
336
+ };
337
+ export type Client = ReturnType<typeof createClient>;
338
+ export {};
339
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpI,OAAO,KAAK,EAAE,UAAU,EAAS,MAAM,iBAAiB,CAAC;AAEzD,qBAAa,QAAS,SAAQ,KAAK;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;gBACpB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI;CAQnG;AAED,6DAA6D;AAC7D,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBACT,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAKxC;AAGD,KAAK,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AAC/B,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAC1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