@reforma/types 1.5.0 → 2.0.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@reforma/types",
3
3
  "author": "Reforma, Inc. <dev@reforma.ai>",
4
4
  "description": "Shared types between Reforma apps/packages",
5
- "version": "1.5.0",
5
+ "version": "2.0.0",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
@@ -12,6 +12,4 @@ export interface CreateSandboxCluster {
12
12
  kubeconfig?: string;
13
13
  status?: SandboxClusterStatusEnum;
14
14
  maxSandboxes?: number;
15
- /** Kubelet `Localhost` seccomp profile path for sandbox pods; omit for `Unconfined`. */
16
- seccompProfile?: string | null;
17
15
  }
@@ -12,12 +12,6 @@ export interface SandboxCluster {
12
12
  version: string | null;
13
13
  status: SandboxClusterStatusEnum;
14
14
  maxSandboxes: number;
15
- /**
16
- * Path of the kubelet `Localhost` seccomp profile the cluster's nodes carry,
17
- * relative to the kubelet seccomp root. `null` runs sandbox pods
18
- * `Unconfined`, for clusters where no profile is installed.
19
- */
20
- seccompProfile: string | null;
21
15
  lastHealthCheckAt: Date | null;
22
16
  healthCheckError: string | null;
23
17
  createdByUserId: number;
@@ -12,6 +12,4 @@ export interface UpdateSandboxCluster {
12
12
  kubeconfig?: string;
13
13
  status?: SandboxClusterStatusEnum;
14
14
  maxSandboxes?: number;
15
- /** Kubelet `Localhost` seccomp profile path for sandbox pods; `null` for `Unconfined`. */
16
- seccompProfile?: string | null;
17
15
  }
@@ -126,6 +126,9 @@ export type ReformaUserMessageMetadata = {
126
126
  optPlugins?: string[];
127
127
  };
128
128
 
129
+ /** A run that did not complete its turn. Resume continues the turn. */
130
+ export type ReformaStopReason = 'cancelled' | 'max_turns_exceeded' | 'provider_error' | 'internal_error';
131
+
129
132
  /**
130
133
  * Metadata on assistant Reforma chat UI messages (`UIMessage.metadata`), stream finish snapshots,
131
134
  * and persisted threads.
@@ -156,8 +159,8 @@ export type ReformaChatMessageMetadata = {
156
159
  runId?: string;
157
160
  /** Reforma credits billed for this run. Stamped after settle; denormalized from the API. */
158
161
  creditsCharged?: number;
159
- /** User stopped this assistant turn. Persisted with the message. */
160
- stopReason?: 'cancelled';
162
+ /** Why this assistant turn ended early: the user stopped it, or the run failed. Absent once a run completes it. */
163
+ stopReason?: ReformaStopReason;
161
164
 
162
165
  /**
163
166
  * The user's ChatGPT plan or API key could not pay for this turn.