@openfairygui/backend 0.5.0 → 0.6.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/README.md +3 -3
- package/dist/docs.cjs +190 -611
- package/dist/docs.d.cts +9 -27
- package/dist/docs.d.mts +9 -27
- package/dist/docs.mjs +190 -611
- package/dist/index.cjs +445 -635
- package/dist/index.d.cts +46 -160
- package/dist/index.d.mts +46 -160
- package/dist/index.mjs +445 -636
- package/dist/node.cjs +476 -664
- package/dist/node.d.cts +20 -94
- package/dist/node.d.mts +20 -94
- package/dist/node.mjs +476 -664
- package/package.json +3 -3
- package/src/contracts.ts +2 -2
- package/src/diagnostics.ts +4 -5
- package/src/generated/contracts.ts +208 -837
- package/src/generated/docs.ts +3 -3
- package/src/index.ts +2 -13
- package/src/node.ts +36 -30
- package/src/runtime/capabilities.ts +2 -12
- package/src/runtime/contracts.ts +33 -107
- package/src/runtime.ts +22 -57
- package/src/services/authoring-service.ts +9 -572
- package/src/services/cache-service.ts +32 -10
- package/src/services/context.ts +27 -14
- package/src/services/event-service.ts +10 -8
- package/src/services/persistence-service.ts +550 -0
- package/src/services/read-service.ts +18 -18
- package/src/services/runtime-service.ts +27 -36
- package/src/services/session-operation-queue.ts +21 -0
- package/src/services/session-project-writer.ts +3 -1
- package/src/services/session-registry.ts +70 -0
- package/src/services/session-utils.ts +4 -4
- package/src/services/job-service.ts +0 -238
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 |
|
|
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 |
|
|
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;
|