@coltonkirsten/a12s 0.9.0 → 0.10.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/types.d.ts +27 -0
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -56,6 +56,9 @@ export interface AgentComputerSpec {
|
|
|
56
56
|
from: string[];
|
|
57
57
|
maxWakesPerHour?: number;
|
|
58
58
|
};
|
|
59
|
+
compactBeforeSleep?: {
|
|
60
|
+
minTokens: number;
|
|
61
|
+
};
|
|
59
62
|
};
|
|
60
63
|
uses?: Array<string | {
|
|
61
64
|
name: string;
|
|
@@ -79,6 +82,13 @@ export interface FleetSpec {
|
|
|
79
82
|
defaults?: AgentComputerSpec;
|
|
80
83
|
agent_computers: Record<string, AgentComputerSpec>;
|
|
81
84
|
services?: Record<string, Record<string, unknown>>;
|
|
85
|
+
/** Where the Controller reads a credential's value itself, by credential name. */
|
|
86
|
+
credentials?: Record<string, CredentialSource>;
|
|
87
|
+
}
|
|
88
|
+
/** Where the Controller reads a credential's value. Exactly one field is set. */
|
|
89
|
+
export interface CredentialSource {
|
|
90
|
+
/** A Secret Manager secret, `projects/<project>/secrets/<name>`: its latest version, read with the Controller VM's service account. */
|
|
91
|
+
gcpSecret?: string;
|
|
82
92
|
}
|
|
83
93
|
export interface Change {
|
|
84
94
|
op: "create" | "update" | "remove" | (string & {});
|
|
@@ -205,8 +215,17 @@ export interface ComputerStatus {
|
|
|
205
215
|
/** Set while the harness session runs background work (sub-agents, shells) between Turns; it is not idle then. */
|
|
206
216
|
background?: {
|
|
207
217
|
tasks: number;
|
|
218
|
+
items?: BackgroundTask[];
|
|
208
219
|
};
|
|
209
220
|
}
|
|
221
|
+
/** A running background task and when a12s stops it: 2 hours after it started unless the agent asked for more. */
|
|
222
|
+
export interface BackgroundTask {
|
|
223
|
+
id: string;
|
|
224
|
+
kind: string;
|
|
225
|
+
description: string;
|
|
226
|
+
startedAt: string;
|
|
227
|
+
deadline: string;
|
|
228
|
+
}
|
|
210
229
|
export interface DriveRow {
|
|
211
230
|
name: string;
|
|
212
231
|
kind: "home" | "state" | "keep";
|
|
@@ -369,6 +388,8 @@ export interface TaskData {
|
|
|
369
388
|
summary?: string;
|
|
370
389
|
/** On task.finished of a sub-agent: its last text, truncated to 2000 characters (Claude Code only). */
|
|
371
390
|
result?: string;
|
|
391
|
+
/** On task.finished when a12s stopped the task at its time limit: the limit, in seconds. */
|
|
392
|
+
timeLimit?: number;
|
|
372
393
|
}
|
|
373
394
|
/** POST /v1/agent-computers/{name}/stop: the Turns it stopped and how many background tasks it ended. */
|
|
374
395
|
export interface StopResponse {
|
|
@@ -572,6 +593,12 @@ export interface CredentialInfo {
|
|
|
572
593
|
usedBy?: string[];
|
|
573
594
|
/** When the value last changed (RFC 3339); absent if unknown. */
|
|
574
595
|
updatedAt?: string;
|
|
596
|
+
/** Where the Controller reads the value, from the Fleet's `credentials`. */
|
|
597
|
+
source?: CredentialSource;
|
|
598
|
+
/** The source's version the value came from. */
|
|
599
|
+
sourceVersion?: string;
|
|
600
|
+
/** Why the last read of the source failed. The value in use stays, unless the source has none. */
|
|
601
|
+
sourceError?: string;
|
|
575
602
|
}
|
|
576
603
|
export interface CredentialsResponse {
|
|
577
604
|
credentials: CredentialInfo[];
|
package/package.json
CHANGED