@coltonkirsten/a12s 0.5.0 → 0.6.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/dist/src/fleet.d.ts +1 -3
- package/dist/src/fleet.js +1 -1
- package/dist/src/types.d.ts +0 -14
- package/package.json +1 -1
package/dist/src/fleet.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { A12sClient, type A12sClientOptions, type EventsOptions, TurnStream, type EventStream, type Reply, type SharedEventsOptions, type WaitOptions } from "./client.js";
|
|
2
|
-
import type { AgentComputerData, AgentComputerSpec,
|
|
2
|
+
import type { AgentComputerData, AgentComputerSpec, ComputerStatus, CredentialInfo, EnqueueRequest, EnqueueResponse, FleetSpec, InboxListOptions, InboxListResponse, MergePatch, Message, ServiceStatus, StatusResponse, Token, TokenAction, Turn } from "./types.js";
|
|
3
3
|
/** The Fleet as written, and its version for a conditional write. */
|
|
4
4
|
export interface FleetState {
|
|
5
5
|
version: number;
|
|
6
6
|
spec: FleetSpec;
|
|
7
|
-
/** What changed through the API since the last whole-Fleet write. */
|
|
8
|
-
drift: Change[];
|
|
9
7
|
}
|
|
10
8
|
export interface CreateOptions {
|
|
11
9
|
/** Overwrite an existing one instead of failing with A12sError code `exists`. */
|
package/dist/src/fleet.js
CHANGED
|
@@ -40,7 +40,7 @@ export class Fleet {
|
|
|
40
40
|
}
|
|
41
41
|
async get() {
|
|
42
42
|
const r = await this.client.request("GET", "/v1/fleet");
|
|
43
|
-
return { version: r.version, spec: r.fleet ?? emptySpec()
|
|
43
|
+
return { version: r.version, spec: r.fleet ?? emptySpec() };
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Reads the Fleet, lets `fn` change it (in place, or by returning a new spec) and writes it back only if nobody
|
package/dist/src/types.d.ts
CHANGED
|
@@ -110,8 +110,6 @@ export interface FieldDiff {
|
|
|
110
110
|
export interface FleetResponse {
|
|
111
111
|
version: number;
|
|
112
112
|
fleet: FleetSpec | null;
|
|
113
|
-
/** What changed through the API since the last whole-Fleet write: `a12s up` from the file undoes it. */
|
|
114
|
-
drift: Change[];
|
|
115
113
|
}
|
|
116
114
|
export interface AgentComputerData {
|
|
117
115
|
name: string;
|
|
@@ -124,22 +122,11 @@ export interface AgentComputerData {
|
|
|
124
122
|
export interface AgentComputersResponse {
|
|
125
123
|
agentComputers: AgentComputerData[];
|
|
126
124
|
}
|
|
127
|
-
export interface Lock {
|
|
128
|
-
a12s?: string;
|
|
129
|
-
images: Record<string, string>;
|
|
130
|
-
bundles: Record<string, string>;
|
|
131
|
-
presets: Record<string, string>;
|
|
132
|
-
services?: Record<string, string>;
|
|
133
|
-
/** Each security.seccomp profile's digest, by its path in the Fleet file. */
|
|
134
|
-
seccomp?: Record<string, string>;
|
|
135
|
-
}
|
|
136
125
|
export interface PutFleetRequest {
|
|
137
126
|
fleet: FleetSpec;
|
|
138
|
-
lock?: Lock;
|
|
139
127
|
/** Credential values by name, base64-encoded (Go []byte). Kept in the Controller's memory only. */
|
|
140
128
|
credentials?: Record<string, string>;
|
|
141
129
|
asleep?: boolean;
|
|
142
|
-
refresh?: string[];
|
|
143
130
|
}
|
|
144
131
|
export interface ServiceChanges {
|
|
145
132
|
created: string[] | null;
|
|
@@ -155,7 +142,6 @@ export interface PutFleetResponse {
|
|
|
155
142
|
updated: string[] | null;
|
|
156
143
|
staged: string[] | null;
|
|
157
144
|
removed: string[] | null;
|
|
158
|
-
lock: Lock | null;
|
|
159
145
|
errors?: Record<string, string>;
|
|
160
146
|
warnings?: string[];
|
|
161
147
|
services: ServiceChanges;
|
package/package.json
CHANGED