@openfairygui/backend 0.5.0-alpha.4 → 0.6.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/docs.d.cts CHANGED
@@ -36,6 +36,12 @@ interface SessionNotFoundError {
36
36
  message: string;
37
37
  sessionId: string;
38
38
  }
39
+ interface SessionCloseFailedError {
40
+ code: 'session_close_failed';
41
+ message: string;
42
+ sessionId: string;
43
+ lockFilePath: string;
44
+ }
39
45
  interface SessionStaleWriteError {
40
46
  code: 'stale_write';
41
47
  message: string;
@@ -75,6 +81,7 @@ interface SavePartialFailureError {
75
81
  committedPaths: string[];
76
82
  failedPaths: string[];
77
83
  diskMayBePartiallyUpdated: boolean;
84
+ recoveryPaths?: string[];
78
85
  }
79
86
  interface UamFidelityUnsupportedError {
80
87
  code: 'uam_fidelity_unsupported';
@@ -102,6 +109,7 @@ interface MaterializeWriteFailedError {
102
109
  skippedPaths: string[];
103
110
  diagnostics: BackendDiagnostic[];
104
111
  diskMayBePartiallyUpdated: boolean;
112
+ recoveryPaths?: string[];
105
113
  }
106
114
  interface EventCursorInvalidError {
107
115
  code: 'event_cursor_invalid';
@@ -109,32 +117,6 @@ interface EventCursorInvalidError {
109
117
  sessionId: string;
110
118
  after: string;
111
119
  }
112
- interface BackendJobNotFoundError {
113
- code: 'job_not_found';
114
- message: string;
115
- sessionId: string;
116
- jobId: string;
117
- }
118
- interface BackendJobNotCancellableError {
119
- code: 'job_not_cancellable';
120
- message: string;
121
- sessionId: string;
122
- jobId: string;
123
- status: 'completed' | 'failed' | 'cancelled';
124
- }
125
- interface BackendJobCancelledError {
126
- code: 'job_cancelled';
127
- message: string;
128
- sessionId: string;
129
- jobId: string;
130
- }
131
- interface CacheRefreshFailedError {
132
- code: 'cache_refresh_failed';
133
- message: string;
134
- sessionId: string;
135
- jobId: string;
136
- causeCode?: string;
137
- }
138
120
  interface BackendCapabilityUnavailableError {
139
121
  code: 'capability_unavailable';
140
122
  message: string;
@@ -143,7 +125,7 @@ interface BackendCapabilityUnavailableError {
143
125
  requiredHost?: 'node';
144
126
  bridgeBoundary?: 'external-bridge';
145
127
  }
146
- type BackendError = SessionNotFoundError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
128
+ type BackendError = SessionNotFoundError | SessionCloseFailedError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
147
129
  interface ProjectRootNotAllowedError {
148
130
  code: 'project_root_not_allowed';
149
131
  message: string;
package/dist/docs.d.mts CHANGED
@@ -36,6 +36,12 @@ interface SessionNotFoundError {
36
36
  message: string;
37
37
  sessionId: string;
38
38
  }
39
+ interface SessionCloseFailedError {
40
+ code: 'session_close_failed';
41
+ message: string;
42
+ sessionId: string;
43
+ lockFilePath: string;
44
+ }
39
45
  interface SessionStaleWriteError {
40
46
  code: 'stale_write';
41
47
  message: string;
@@ -75,6 +81,7 @@ interface SavePartialFailureError {
75
81
  committedPaths: string[];
76
82
  failedPaths: string[];
77
83
  diskMayBePartiallyUpdated: boolean;
84
+ recoveryPaths?: string[];
78
85
  }
79
86
  interface UamFidelityUnsupportedError {
80
87
  code: 'uam_fidelity_unsupported';
@@ -102,6 +109,7 @@ interface MaterializeWriteFailedError {
102
109
  skippedPaths: string[];
103
110
  diagnostics: BackendDiagnostic[];
104
111
  diskMayBePartiallyUpdated: boolean;
112
+ recoveryPaths?: string[];
105
113
  }
106
114
  interface EventCursorInvalidError {
107
115
  code: 'event_cursor_invalid';
@@ -109,32 +117,6 @@ interface EventCursorInvalidError {
109
117
  sessionId: string;
110
118
  after: string;
111
119
  }
112
- interface BackendJobNotFoundError {
113
- code: 'job_not_found';
114
- message: string;
115
- sessionId: string;
116
- jobId: string;
117
- }
118
- interface BackendJobNotCancellableError {
119
- code: 'job_not_cancellable';
120
- message: string;
121
- sessionId: string;
122
- jobId: string;
123
- status: 'completed' | 'failed' | 'cancelled';
124
- }
125
- interface BackendJobCancelledError {
126
- code: 'job_cancelled';
127
- message: string;
128
- sessionId: string;
129
- jobId: string;
130
- }
131
- interface CacheRefreshFailedError {
132
- code: 'cache_refresh_failed';
133
- message: string;
134
- sessionId: string;
135
- jobId: string;
136
- causeCode?: string;
137
- }
138
120
  interface BackendCapabilityUnavailableError {
139
121
  code: 'capability_unavailable';
140
122
  message: string;
@@ -143,7 +125,7 @@ interface BackendCapabilityUnavailableError {
143
125
  requiredHost?: 'node';
144
126
  bridgeBoundary?: 'external-bridge';
145
127
  }
146
- type BackendError = SessionNotFoundError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
128
+ type BackendError = SessionNotFoundError | SessionCloseFailedError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
147
129
  interface ProjectRootNotAllowedError {
148
130
  code: 'project_root_not_allowed';
149
131
  message: string;