@longtable/core 0.1.57 → 0.1.58

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +28 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -116,6 +116,18 @@ export interface PanelResult {
116
116
  linkedQuestionRecordIds: string[];
117
117
  linkedDecisionRecordIds: string[];
118
118
  }
119
+ export type PanelWorkerExecutionState = "not_started" | "preflight_failed" | "provisioning" | "provisioned" | "provision_failed" | "launching" | "launch_failed" | "running" | "result_ready" | "stopping" | "stopped" | "shutdown" | "cleanup_failed";
120
+ export type PanelWorkerBridgeStatus = "not_requested" | "preflight_failed" | "provisioning" | "launching" | "running" | "completed" | "blocked" | "failed" | "degraded" | "stop_requested" | "stopped" | "shutdown";
121
+ export type PanelWorkerCleanupStatus = "not_started" | "retained" | "removed" | "failed";
122
+ export type PanelWorkerRuntimeMetadata = Record<string, string | boolean | undefined>;
123
+ export interface PanelWorkerLifecycleEvent {
124
+ id: string;
125
+ workerId?: string;
126
+ type: "run_created" | "preflight_failed" | "worktree_provisioned" | "worker_launched" | "worker_result" | "worker_failed" | "stop_requested" | "resume_requested" | "shutdown_requested" | "cleanup_failed";
127
+ createdAt: string;
128
+ message: string;
129
+ path?: string;
130
+ }
119
131
  export type PanelWorkerStatus = "pending" | "running" | "completed" | "blocked" | "failed" | "stop_requested" | "stopped";
120
132
  export type PanelWorkerRunStatus = "planned" | "running" | "completed" | "blocked" | "failed" | "degraded" | "stop_requested" | "stopped" | "resumable";
121
133
  export interface PanelWorkerRecord {
@@ -130,6 +142,16 @@ export interface PanelWorkerRecord {
130
142
  launcherPath?: string;
131
143
  exitCodePath?: string;
132
144
  paneId?: string;
145
+ runtime?: PanelWorkerRuntimeMetadata;
146
+ worktreePath?: string;
147
+ worktreeBranch?: string;
148
+ worktreeCommit?: string;
149
+ mailboxPath?: string;
150
+ taskStatePath?: string;
151
+ cleanupStatus?: PanelWorkerCleanupStatus;
152
+ executionState?: PanelWorkerExecutionState;
153
+ failureReason?: string;
154
+ shutdownRequestedAt?: string;
133
155
  startedAt?: string;
134
156
  updatedAt: string;
135
157
  completedAt?: string;
@@ -149,6 +171,9 @@ export interface PanelWorkerRun {
149
171
  visibility: PanelVisibility;
150
172
  requestedSurface: "native_workers";
151
173
  fallbackSurface: "sequential_fallback";
174
+ bridgeStatus?: PanelWorkerBridgeStatus;
175
+ bridgeFailureReason?: string;
176
+ sequentialFallbackAvailable?: boolean;
152
177
  status: PanelWorkerRunStatus;
153
178
  workingDirectory: string;
154
179
  runDirectory: string;
@@ -156,6 +181,9 @@ export interface PanelWorkerRun {
156
181
  resultDirectory: string;
157
182
  logDirectory: string;
158
183
  launcherDirectory: string;
184
+ worktreeDirectory?: string;
185
+ mailboxDirectory?: string;
186
+ eventLogPath?: string;
159
187
  outputSchemaPath: string;
160
188
  stopFilePath: string;
161
189
  aggregateResultPath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longtable/core",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "private": false,
5
5
  "description": "Provider-neutral domain models and contracts for LongTable",
6
6
  "type": "module",