@coltonkirsten/a12s 0.8.1 → 0.9.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 +19 -0
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -193,6 +193,8 @@ export interface ComputerStatus {
|
|
|
193
193
|
image: string;
|
|
194
194
|
/** The Fleet's security.seccomp path, when the Computer runs with a custom seccomp profile. */
|
|
195
195
|
seccomp?: string;
|
|
196
|
+
/** The cloud principal it acts as (a GCE service account with per-computer identity), for your app to grant access to. */
|
|
197
|
+
identity?: string;
|
|
196
198
|
generation: number;
|
|
197
199
|
stagedGeneration?: number;
|
|
198
200
|
credentialGeneration?: number;
|
|
@@ -359,8 +361,14 @@ export interface TaskData {
|
|
|
359
361
|
/** The harness's own kind: local_agent, local_bash, shell, … */
|
|
360
362
|
kind: string;
|
|
361
363
|
description: string;
|
|
364
|
+
/** The tool call that started it (Claude Code only): the `id` of its tool.started. */
|
|
365
|
+
toolUseId?: string;
|
|
362
366
|
/** On task.finished. "killed": the session ended (stop, sleep, restart, a new session) while it ran. */
|
|
363
367
|
status?: "completed" | "failed" | "stopped" | "killed";
|
|
368
|
+
/** On task.finished, when the harness reported one (Claude Code only). */
|
|
369
|
+
summary?: string;
|
|
370
|
+
/** On task.finished of a sub-agent: its last text, truncated to 2000 characters (Claude Code only). */
|
|
371
|
+
result?: string;
|
|
364
372
|
}
|
|
365
373
|
/** POST /v1/agent-computers/{name}/stop: the Turns it stopped and how many background tasks it ended. */
|
|
366
374
|
export interface StopResponse {
|
|
@@ -373,8 +381,15 @@ export interface TurnFinishedData {
|
|
|
373
381
|
usage: unknown;
|
|
374
382
|
/** The same usage, normalized across harnesses, when the harness reported it. */
|
|
375
383
|
tokens?: TokenUsage;
|
|
384
|
+
/** Claude Code's fast mode for the Turn, when the CLI reported it. `usage.speed` says how the Turn ran. */
|
|
385
|
+
fastMode?: FastMode;
|
|
376
386
|
error?: string;
|
|
377
387
|
}
|
|
388
|
+
/** `state` is "on", "off" or "cooldown"; `disabledReason` (e.g. "extra_usage_disabled") says why it is not on. */
|
|
389
|
+
export interface FastMode {
|
|
390
|
+
state: string;
|
|
391
|
+
disabledReason?: string;
|
|
392
|
+
}
|
|
378
393
|
/** A Turn's token usage, the same for every harness. `input` excludes cached input. */
|
|
379
394
|
export interface TokenUsage {
|
|
380
395
|
input: number;
|
|
@@ -415,12 +430,16 @@ export interface ToolStartedData {
|
|
|
415
430
|
/** MCP tools are named `mcp__<server>__<tool>`, e.g. `mcp__a12s__send`. */
|
|
416
431
|
name: string;
|
|
417
432
|
input?: unknown;
|
|
433
|
+
/** A sub-agent's call (Claude Code only): the id of the tool call that started the sub-agent. Absent for the agent's own calls. */
|
|
434
|
+
parent?: string;
|
|
418
435
|
}
|
|
419
436
|
export interface ToolFinishedData {
|
|
420
437
|
id: string;
|
|
421
438
|
name: string;
|
|
422
439
|
isError: boolean;
|
|
423
440
|
output?: unknown;
|
|
441
|
+
/** As on tool.started. */
|
|
442
|
+
parent?: string;
|
|
424
443
|
}
|
|
425
444
|
export interface DiagnosticData {
|
|
426
445
|
message: string;
|
package/package.json
CHANGED