@coltonkirsten/a12s 0.12.1 → 0.13.1
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 +9 -1
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -24,9 +24,11 @@ export interface AgentComputerSpec {
|
|
|
24
24
|
instructions?: string;
|
|
25
25
|
/** File contents by path, written into the agent computer's home. */
|
|
26
26
|
files?: Record<string, string>;
|
|
27
|
+
/** `disk`: the home drive's size where the driver has one (GCE); it only ever grows. */
|
|
27
28
|
resources?: {
|
|
28
29
|
cpu?: string | number;
|
|
29
30
|
memory?: string | number;
|
|
31
|
+
disk?: string | number;
|
|
30
32
|
};
|
|
31
33
|
/** Credential names, added to the defaults' list; their values come from `a12s creds set` or the credentials API. */
|
|
32
34
|
credentials?: string[];
|
|
@@ -550,6 +552,12 @@ export type TurnRefusedEvent = Ev<"turn.refused", {
|
|
|
550
552
|
/** A Message that ended without delivery (cleared, withdrawn, expired, replaced), body included. */
|
|
551
553
|
export type InboxDiscardedEvent = Ev<"inbox.discarded", Record<string, unknown>>;
|
|
552
554
|
export type EgressDeniedEvent = Ev<"egress.denied", EgressDeniedData>;
|
|
555
|
+
/** Home drive use crossed 90% (`high`) or fell back under 80% (`normal`); a12s tells the agent at `high`. */
|
|
556
|
+
export type DiskUsageEvent = Ev<"disk.usage", {
|
|
557
|
+
level: "high" | "normal";
|
|
558
|
+
usedBytes: number;
|
|
559
|
+
totalBytes: number;
|
|
560
|
+
}>;
|
|
553
561
|
export type TaskStartedEvent = Ev<"task.started", TaskData>;
|
|
554
562
|
export type TaskFinishedEvent = Ev<"task.finished", TaskData>;
|
|
555
563
|
/** Made by the Controller, on the fleet-wide stream only. */
|
|
@@ -563,7 +571,7 @@ export type ServicePhaseEvent = Ev<"service.phase", ServicePhaseData>;
|
|
|
563
571
|
/** Made by the SDK, never journaled: the stream could not resume from its cursor and events were lost. */
|
|
564
572
|
export type GapEvent = Ev<"gap", GapData>;
|
|
565
573
|
/** One event of an agent computer's journal, or the Controller's own on the fleet-wide stream. Narrow on `type` to get typed `data`. */
|
|
566
|
-
export type A12sEvent = TurnStartedEvent | TurnDispatchedEvent | TurnSteeredEvent | TextDeltaEvent | ToolComposingEvent | ThinkingEvent | ToolStartedEvent | ToolFinishedEvent | PermissionEvent | DiagnosticEvent | TurnFinishedEvent | SessionChangedEvent | ResumeFailedEvent | LifecycleEvent | HarnessRestartedEvent | ContinuationAbandonedEvent | TurnRefusedEvent | InboxDiscardedEvent | EgressDeniedEvent | TaskStartedEvent | TaskFinishedEvent | FleetChangedEvent | PhaseEvent | InboxChangedEvent | ServicePhaseEvent | GapEvent;
|
|
574
|
+
export type A12sEvent = TurnStartedEvent | TurnDispatchedEvent | TurnSteeredEvent | TextDeltaEvent | ToolComposingEvent | ThinkingEvent | ToolStartedEvent | ToolFinishedEvent | PermissionEvent | DiagnosticEvent | TurnFinishedEvent | SessionChangedEvent | ResumeFailedEvent | LifecycleEvent | HarnessRestartedEvent | ContinuationAbandonedEvent | TurnRefusedEvent | InboxDiscardedEvent | EgressDeniedEvent | DiskUsageEvent | TaskStartedEvent | TaskFinishedEvent | FleetChangedEvent | PhaseEvent | InboxChangedEvent | ServicePhaseEvent | GapEvent;
|
|
567
575
|
export type EventType = A12sEvent["type"];
|
|
568
576
|
/** One tool call in a Turn. A `send` to another Computer is `mcp__a12s__send` with `input.body`. */
|
|
569
577
|
export interface ToolCall {
|
package/package.json
CHANGED