@openfairygui/backend 0.6.3 → 0.7.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.
Files changed (48) hide show
  1. package/dist/contracts-Bx8HUr7I.d.cts +756 -0
  2. package/dist/contracts-CMQiPEyz.d.mts +756 -0
  3. package/dist/diagnostics-CIe7S-RW.cjs +670 -0
  4. package/dist/diagnostics-CZ12H1Mx.d.cts +1679 -0
  5. package/dist/diagnostics-CpJ8cAP6.d.mts +1679 -0
  6. package/dist/diagnostics-DTnLXQGs.mjs +641 -0
  7. package/dist/docs.cjs +11530 -5940
  8. package/dist/docs.d.cts +5 -185
  9. package/dist/docs.d.mts +5 -185
  10. package/dist/docs.mjs +11528 -5939
  11. package/dist/index.cjs +16 -2703
  12. package/dist/index.d.cts +5 -2362
  13. package/dist/index.d.mts +5 -2362
  14. package/dist/index.mjs +4 -2691
  15. package/dist/node.cjs +367 -2779
  16. package/dist/node.d.cts +4 -724
  17. package/dist/node.d.mts +4 -724
  18. package/dist/node.mjs +359 -2751
  19. package/dist/rolldown-runtime-BJqNVkSG.cjs +28 -0
  20. package/dist/runtime-DYqG77ak.cjs +2249 -0
  21. package/dist/runtime-gStewf1p.mjs +2189 -0
  22. package/package.json +4 -5
  23. package/src/contracts.ts +0 -58
  24. package/src/diagnostics.ts +0 -188
  25. package/src/docs.ts +0 -109
  26. package/src/generated/contracts.ts +0 -24207
  27. package/src/generated/docs.ts +0 -12
  28. package/src/index.ts +0 -99
  29. package/src/node.ts +0 -317
  30. package/src/path-policy.ts +0 -123
  31. package/src/runtime/capabilities.ts +0 -131
  32. package/src/runtime/contracts.ts +0 -672
  33. package/src/runtime.ts +0 -231
  34. package/src/services/artifact-service.ts +0 -19
  35. package/src/services/authoring-service.ts +0 -229
  36. package/src/services/cache-service.ts +0 -81
  37. package/src/services/capture-project.ts +0 -75
  38. package/src/services/context.ts +0 -150
  39. package/src/services/event-service.ts +0 -86
  40. package/src/services/persistence-service.ts +0 -550
  41. package/src/services/read-service.ts +0 -274
  42. package/src/services/runtime-service.ts +0 -342
  43. package/src/services/session-operation-queue.ts +0 -21
  44. package/src/services/session-project-writer.ts +0 -89
  45. package/src/services/session-registry.ts +0 -70
  46. package/src/services/session-utils.ts +0 -45
  47. package/src/services/transaction-preview.ts +0 -116
  48. package/src/storage.ts +0 -232
package/dist/index.d.cts CHANGED
@@ -1,2366 +1,7 @@
1
- import * as _$_openfairygui_core0 from "@openfairygui/core";
2
- import { ProjectDiagnosticCode, ProjectValidationReport } from "@openfairygui/core";
3
- import { UamComponentModel, UamComponentResource, UamComponentSelector, UamControllerModel, UamControllerSelector, UamDisplayNode, UamDisplayNodeKind, UamDisplayNodeSelector, UamGenericAssetResource, UamImageResource, UamMovieClipResource, UamPackage, UamPackageSelector, UamPackageSettings, UamProject, UamResource, UamResourceSelector, UamTransactionOperation, UamTransactionSupportIssueCode, UamTransitionModel, UamTransitionSelector } from "@openfairygui/core/uam";
4
- import { ApplyUamTransactionAppError } from "@openfairygui/functions/uam";
1
+ import { $ as EntityQueryError, A as BackendFileStat, At as UamFidelityUnsupportedError, B as BackendResourceBytesSnapshot, C as BackendComponentSnapshot, Ct as SessionIdConflictError, D as BackendEvent, Dt as SessionStaleReadError, E as BackendError, Et as SessionReadError, F as BackendProjectOutline, G as BackendSessionPackageModel, H as BackendResult, I as BackendProjectOutlinePackage, J as BackendSessionSnapshot, K as BackendSessionProjectModel, L as BackendProjectOutlineResource, M as BackendHostAdapter, N as BackendMethodName, O as BackendEventKind, Ot as SessionStaleWriteError, P as BackendPackageSnapshot, Q as BackendTransactionPreview, R as BackendProjectSessionStorage, S as BackendCapabilityUnavailableError, St as SessionCloseFailedError, T as BackendEntityTarget, Tt as SessionNotFoundError, U as BackendRuntimeOptions, V as BackendResourceSnapshot, W as BackendSessionLock, X as BackendSuccess, Y as BackendSessionStateSnapshot, Z as BackendTransactionEntityChange, _ as BackendArtifactBridgeCapability, _t as ReadResourceBytesInput, a as BackendDiagnosticCode, at as InProcessLockConflictError, b as BackendCapabilities, bt as SavePartialFailureError, c as BackendMessage, ct as MaterializeValidationFailedError, d as BackendRuntime, dt as ProjectOpenFailedError, et as EventCursorInvalidError, f as AdvisoryLockConflictError, ft as ProjectOpenFailureReason, g as BACKEND_TRANSACTION_PREVIEW_LIMITS, gt as QueryEntityInput, h as BACKEND_SESSION_READ_LIMITS, ht as ProjectWriteTransactionResult, i as BackendDiagnostic, it as GetProjectOutlineInput, j as BackendFileSystem, jt as ValidateSessionInput, k as BackendFailure, kt as TransactionPreviewError, l as BackendResponseMeta, lt as MaterializeWriteFailedError, m as BACKEND_ENTITY_QUERY_LIMITS, mt as ProjectWriteTransactionError, n as BACKEND_COMPATIBILITY_POLICY, nt as GetEventsInput, o as BackendDiagnosticOwner, ot as MaterializeSessionInput, p as ApplySessionTransactionInput, pt as ProjectRootNotAllowedError, q as BackendSessionResourceModel, r as BACKEND_CONTRACT_VERSION, rt as GetEventsSnapshot, s as BackendDiagnosticRemediation, st as MaterializeSessionSnapshot, t as BACKEND_CAPABILITY_SCHEMA_VERSION, tt as GetCacheSnapshotInput, u as BackendStage, ut as OpenProjectSessionInput, v as BackendCacheEntry, vt as ReadSessionStateInput, w as BackendEntitySnapshot, wt as SessionLimitExceededError, x as BackendCapabilityManifest, xt as SaveSessionInput, y as BackendCacheSnapshot, yt as RefreshCacheInput, z as BackendProjectSnapshot } from "./contracts-Bx8HUr7I.cjs";
2
+ import { a as getBackendDiagnosticGuide, i as getBackendDiagnosticCatalog, n as BACKEND_DIAGNOSTIC_TEMPLATE, r as BackendDiagnosticGuide, t as BACKEND_DIAGNOSTICS_URI } from "./diagnostics-CZ12H1Mx.cjs";
5
3
  import { FileSystem } from "@openfairygui/core/project-io";
6
4
 
7
- //#region src/path-policy.d.ts
8
- interface PathPolicyViolationError {
9
- code: 'path_policy_violation';
10
- message: string;
11
- policy: 'save_target';
12
- attemptedPath: string;
13
- allowedPath: string;
14
- }
15
- //#endregion
16
- //#region src/runtime/capabilities.d.ts
17
- declare const BACKEND_METHODS: readonly ["getCapabilities", "openSession", "openProjectSession", "getSession", "getProjectOutline", "queryEntity", "readSessionState", "readResourceBytes", "validateSession", "preflightTransaction", "applyTransaction", "saveSession", "materializeSession", "closeSession", "getEvents", "getCacheSnapshot", "refreshCache"];
18
- //#endregion
19
- //#region src/runtime/contracts.d.ts
20
- type BackendMethodName = keyof BackendRuntime;
21
- declare const BACKEND_ENTITY_QUERY_LIMITS: {
22
- readonly maxBytes: 262144;
23
- readonly maxDepth: 32;
24
- readonly maxNodes: 100000;
25
- };
26
- declare const BACKEND_SESSION_READ_LIMITS: {
27
- readonly model: {
28
- readonly maxBytes: 4194304;
29
- readonly maxDepth: 64;
30
- readonly maxNodes: 500000;
31
- };
32
- readonly resourceBytes: 1048576;
33
- };
34
- /** The public UAM model, excluding only each asset resource's primary sourceBytes. */
35
- type BackendSessionResourceModel = UamComponentResource | Omit<UamImageResource, 'sourceBytes'> | Omit<UamMovieClipResource, 'sourceBytes'> | Omit<UamGenericAssetResource, 'sourceBytes'>;
36
- interface BackendSessionPackageModel extends Omit<UamPackage, 'resources'> {
37
- resources: BackendSessionResourceModel[];
38
- }
39
- interface BackendSessionProjectModel extends Omit<UamProject, 'packages'> {
40
- packages: BackendSessionPackageModel[];
41
- }
42
- interface ReadSessionStateInput {
43
- sessionId: string;
44
- expectedRevision?: number;
45
- }
46
- interface ReadResourceBytesInput {
47
- sessionId: string;
48
- expectedRevision: number;
49
- selector: UamResourceSelector;
50
- }
51
- interface BackendSessionStateSnapshot extends Pick<BackendSessionSnapshot, 'sessionId' | 'revision' | 'lastSavedRevision' | 'dirty' | 'uamFidelity'> {
52
- project: BackendSessionProjectModel;
53
- readDiagnostics: _$_openfairygui_core0.ProjectDiagnostic[];
54
- /** Source-read completeness, not a guarantee of resource bytes or downstream usability. */
55
- readComplete: boolean;
56
- }
57
- interface BackendResourceBytesSnapshot {
58
- sessionId: string;
59
- revision: number;
60
- selector: UamResourceSelector;
61
- /** Only primary bytes already held in this session; no filesystem hydration. */
62
- sourceBytes: Uint8Array;
63
- }
64
- interface SessionReadError {
65
- code: 'session_read_failed';
66
- message: string;
67
- sessionId: string;
68
- reason: 'invalid_query' | 'not_found' | 'ambiguous' | 'unsupported_resource' | 'bytes_unavailable' | 'response_budget_exceeded' | 'non_json_value';
69
- }
70
- interface SessionStaleReadError {
71
- code: 'stale_read';
72
- message: string;
73
- sessionId: string;
74
- expectedRevision: number;
75
- actualRevision: number;
76
- }
77
- declare const BACKEND_TRANSACTION_PREVIEW_LIMITS: {
78
- readonly maxBytes: 262144;
79
- readonly maxEntries: 2000;
80
- };
81
- /** Fixed resource projection. Binary content, source bookkeeping and arbitrary metadata are excluded. */
82
- declare const BACKEND_RESOURCE_QUERY_FIELDS: readonly ["kind", "id", "name", "path", "exported", "favorite", "branch", "branchItemIds", "fileName", "file", "dimensions", "image", "movieClip"];
83
- type ResourceQueryFields<T> = Pick<T, Extract<keyof T, typeof BACKEND_RESOURCE_QUERY_FIELDS[number]>>;
84
- type BackendResourceSnapshot = ResourceQueryFields<UamImageResource> | ResourceQueryFields<UamMovieClipResource> | ResourceQueryFields<UamGenericAssetResource> | ResourceQueryFields<UamComponentResource>;
85
- type BackendComponentSnapshot = Pick<UamComponentModel, 'size' | 'properties' | 'customData'>;
86
- type BackendProjectSnapshot = Pick<UamProject, 'projectId' | 'settings'>;
87
- interface BackendPackageSnapshot {
88
- id: string;
89
- name: string;
90
- settings: UamPackageSettings;
91
- }
92
- type BackendEntityTarget = {
93
- kind: 'project';
94
- } | {
95
- kind: 'package';
96
- selector: UamPackageSelector;
97
- } | {
98
- kind: 'resource';
99
- selector: UamResourceSelector;
100
- } | {
101
- kind: 'component';
102
- selector: UamComponentSelector;
103
- } | {
104
- kind: 'displayNode';
105
- selector: UamDisplayNodeSelector;
106
- } | {
107
- kind: 'controller';
108
- selector: UamControllerSelector;
109
- } | {
110
- kind: 'transition';
111
- selector: UamTransitionSelector;
112
- };
113
- interface QueryEntityInput {
114
- sessionId: string;
115
- target: BackendEntityTarget;
116
- }
117
- interface BackendEntitySnapshot {
118
- sessionId: string;
119
- revision: number;
120
- target: BackendEntityTarget;
121
- entity: {
122
- kind: 'project';
123
- properties: BackendProjectSnapshot;
124
- } | {
125
- kind: 'package';
126
- properties: BackendPackageSnapshot;
127
- } | {
128
- kind: 'resource';
129
- properties: BackendResourceSnapshot;
130
- } | {
131
- kind: 'component';
132
- properties: BackendComponentSnapshot;
133
- } | {
134
- kind: 'displayNode';
135
- properties: UamDisplayNode;
136
- } | {
137
- kind: 'controller';
138
- properties: UamControllerModel;
139
- } | {
140
- kind: 'transition';
141
- properties: UamTransitionModel;
142
- };
143
- }
144
- interface EntityQueryError {
145
- code: 'entity_query_failed';
146
- message: string;
147
- sessionId: string;
148
- reason: 'invalid_query' | 'not_found' | 'ambiguous' | 'response_budget_exceeded' | 'non_json_value';
149
- }
150
- /** An exclusive lock owned for the lifetime of one backend session. */
151
- interface BackendSessionLock {
152
- /** Persist optional host metadata without changing lock ownership. */
153
- writeMetadata(content: string): Promise<void>;
154
- /** Release ownership. Browser implementations must also release when their document terminates. */
155
- release(): Promise<void>;
156
- }
157
- interface BackendFileStat {
158
- isFile(): boolean;
159
- isDirectory(): boolean;
160
- }
161
- /** A failed staged write with an explicit outcome for the original project. */
162
- declare class ProjectWriteTransactionError extends Error {
163
- readonly diskMayBePartiallyUpdated: boolean;
164
- readonly recoveryPaths: string[];
165
- readonly code = "project_write_transaction_failed";
166
- /** Recognizes the same contract across separately bundled Node/root or ESM/CJS entries. */
167
- static is(error: unknown): error is ProjectWriteTransactionError;
168
- constructor(cause: unknown, diskMayBePartiallyUpdated: boolean, recoveryPaths?: string[]);
169
- }
170
- interface BackendFileSystem {
171
- stat(filePath: string): Promise<BackendFileStat>;
172
- readdir(dirPath: string): Promise<string[]>;
173
- readFile(filePath: string): Promise<string>;
174
- readFileRaw(filePath: string): Promise<Uint8Array>;
175
- writeFile(filePath: string, content: string): Promise<void>;
176
- writeFileRaw(filePath: string, data: Uint8Array): Promise<void>;
177
- mkdir(dirPath: string, options?: {
178
- recursive?: boolean;
179
- }): Promise<void>;
180
- resolvePath(filePath: string): Promise<string>;
181
- /** Optional host validation before a project is read. Node rejects links anywhere in the project tree. */
182
- validateProjectRoot?(projectRoot: string): Promise<void>;
183
- /** Optional host-specific lock location. Node keeps it beside the project so directory swaps do not move it. */
184
- getSessionLockPath?(canonicalProjectPath: string): string;
185
- /** Stages project writes. On failure, throw ProjectWriteTransactionError to report rollback and recovery paths. */
186
- runProjectWriteTransaction?(projectRoot: string, write: (stagedFileSystem: BackendFileSystem) => Promise<void>): Promise<void>;
187
- acquireSessionLock(lockPath: string): Promise<BackendSessionLock>;
188
- unlink(filePath: string): Promise<void>;
189
- rmdir(dirPath: string): Promise<void>;
190
- join(...paths: string[]): string;
191
- dirname(filePath: string): string;
192
- resolve(...paths: string[]): string;
193
- }
194
- interface BackendHostAdapter {
195
- lockMetadata?(input: {
196
- canonicalPathKey: string;
197
- canonicalProjectPath: string;
198
- lockFilePath: string;
199
- }): unknown;
200
- }
201
- interface BackendArtifactBridgeCapability {
202
- available: false;
203
- requiredHost: 'node';
204
- executionBoundary: 'external-bridge';
205
- bridgeEntrypoint: '@openfairygui/backend/node';
206
- reason: string;
207
- }
208
- interface BackendCapabilityManifest {
209
- browserSafe: true;
210
- rootEntrypoint: '@openfairygui/backend';
211
- nodeEntrypoint: '@openfairygui/backend/node';
212
- adapters: {
213
- fileSystem: {
214
- injected: true;
215
- requiredFor: readonly ['openSession', 'saveSession', 'materializeSession'];
216
- };
217
- projectStorage: {
218
- injected: true;
219
- browserSafe: true;
220
- requiredFor: readonly ['openProjectSession.writeback', 'saveSession', 'materializeSession'];
221
- adapterFactory: 'createBackendStorageFileSystem';
222
- };
223
- host: {
224
- injected: true;
225
- requiredFor: readonly ['advisoryLockMetadata'];
226
- };
227
- };
228
- executionBoundaries: {
229
- projectSession: 'in-process-browser-safe';
230
- fileBackedSession: 'adapter-backed';
231
- artifactPublish: BackendArtifactBridgeCapability;
232
- artifactRestore: BackendArtifactBridgeCapability;
233
- };
234
- diagnostics: {
235
- stableCodes: true;
236
- errorDiagnosticMirror: true;
237
- recoveryGuides: 'all-formal-codes';
238
- automaticRepair: false;
239
- };
240
- }
241
- interface BackendCapabilities {
242
- contractVersion: typeof BACKEND_CONTRACT_VERSION;
243
- capabilitySchemaVersion: typeof BACKEND_CAPABILITY_SCHEMA_VERSION;
244
- transactionKernelOwner: '@openfairygui/core';
245
- appSeamOwner: '@openfairygui/functions';
246
- runtimeOwner: '@openfairygui/backend';
247
- methods: typeof BACKEND_METHODS;
248
- read: {
249
- capabilitySnapshot: true;
250
- sessionSnapshot: true;
251
- projectOutline: true;
252
- entityQuery: {
253
- kinds: readonly BackendEntityTarget['kind'][];
254
- projection: 'properties';
255
- sourceBytes: false;
256
- limits: typeof BACKEND_ENTITY_QUERY_LIMITS;
257
- };
258
- sessionState: {
259
- sourceBytes: false;
260
- limits: typeof BACKEND_SESSION_READ_LIMITS.model;
261
- };
262
- resourceBytes: {
263
- expectedRevisionRequired: true;
264
- hydration: false;
265
- maxBytes: typeof BACKEND_SESSION_READ_LIMITS.resourceBytes;
266
- };
267
- projectValidation: true;
268
- };
269
- authoring: {
270
- preflightTransaction: {
271
- mode: 'execute-and-discard';
272
- reservesRevision: false;
273
- impact: 'model-diff';
274
- limits: typeof BACKEND_TRANSACTION_PREVIEW_LIMITS;
275
- };
276
- applyTransaction: true;
277
- saveSession: true;
278
- resourceKinds: readonly string[];
279
- nodeKinds: readonly string[];
280
- gearKinds: readonly string[];
281
- transactionScope: {
282
- resourceKinds: readonly string[];
283
- nodeKinds: readonly string[];
284
- gearKinds: readonly string[];
285
- };
286
- unsupported: readonly ['artifact.publish', 'artifact.restore'];
287
- };
288
- artifact: {
289
- publish: false;
290
- restore: false;
291
- status: 'bridge-required';
292
- publishBridge: BackendArtifactBridgeCapability;
293
- restoreBridge: BackendArtifactBridgeCapability;
294
- };
295
- manifest: BackendCapabilityManifest;
296
- compatibilityPolicy: typeof BACKEND_COMPATIBILITY_POLICY;
297
- runtime: {
298
- sessionRuntime: true;
299
- advisoryLocking: true;
300
- coordinatedSave: true;
301
- atomicSave: boolean;
302
- staleRevisionProtection: true;
303
- pathPolicy: {
304
- canonicalization: 'realpath+normalized-casefold';
305
- sessionIdentity: 'project-root';
306
- saveTarget: 'opened-project-only';
307
- outputTargets: 'deferred';
308
- workspaceBoundary: 'project-root-only';
309
- };
310
- events: {
311
- polling: true;
312
- subscriptions: false;
313
- retentionLimit: 1000;
314
- sequenceScope: 'runtime';
315
- };
316
- cache: {
317
- derivedReadOnly: true;
318
- keyedBy: 'sessionId';
319
- refreshMode: 'synchronous';
320
- sourceOfTruth: false;
321
- refreshMethod: 'refreshCache';
322
- };
323
- };
324
- }
325
- interface BackendSessionSnapshot {
326
- sessionId: string;
327
- canonicalProjectPath: string;
328
- revision: number;
329
- lastSavedRevision: number;
330
- dirty: boolean;
331
- uamFidelity: 'full' | 'unsupported';
332
- lockHeld: boolean;
333
- capabilities: BackendCapabilities;
334
- }
335
- interface BackendProjectOutline {
336
- sessionId: string;
337
- revision: number;
338
- projectId: string;
339
- projectType: number;
340
- version: string;
341
- branches: string[];
342
- packages: BackendProjectOutlinePackage[];
343
- }
344
- interface BackendProjectOutlinePackage {
345
- id: string;
346
- name: string;
347
- branchNames: string[];
348
- folders: Array<{
349
- branch: string;
350
- path: string;
351
- }>;
352
- resources: BackendProjectOutlineResource[];
353
- }
354
- interface BackendProjectOutlineResource {
355
- id: string;
356
- name: string;
357
- path: string;
358
- kind: UamResource['kind'];
359
- branch: string;
360
- component?: {
361
- displayList: Array<{
362
- id: string;
363
- name: string;
364
- kind: UamDisplayNodeKind;
365
- }>;
366
- controllers: Array<{
367
- name: string;
368
- pages: Array<{
369
- id: string;
370
- name: string;
371
- }>;
372
- }>;
373
- transitions: Array<{
374
- name: string;
375
- }>;
376
- };
377
- }
378
- interface MaterializeSessionSnapshot extends BackendSessionSnapshot {
379
- mode: 'fullProject';
380
- reason?: string;
381
- materializeRevision: number;
382
- saveRevision: number;
383
- writtenPaths: string[];
384
- skippedPaths: string[];
385
- diagnostics: BackendDiagnostic[];
386
- }
387
- interface BackendSuccess<T> {
388
- ok: true;
389
- meta: BackendResponseMeta;
390
- data: T;
391
- }
392
- interface BackendFailure<E extends BackendError = BackendError> {
393
- ok: false;
394
- meta: BackendResponseMeta;
395
- error: E;
396
- session?: BackendSessionSnapshot;
397
- }
398
- type BackendResult<T, E extends BackendError = BackendError> = BackendSuccess<T> | BackendFailure<E>;
399
- interface SessionNotFoundError {
400
- code: 'session_not_found';
401
- message: string;
402
- sessionId: string;
403
- }
404
- interface SessionCloseFailedError {
405
- code: 'session_close_failed';
406
- message: string;
407
- sessionId: string;
408
- lockFilePath: string;
409
- }
410
- interface SessionStaleWriteError {
411
- code: 'stale_write';
412
- message: string;
413
- sessionId: string;
414
- canonicalPathKey: string;
415
- expectedRevision: number;
416
- actualRevision: number;
417
- }
418
- interface InProcessLockConflictError {
419
- code: 'lock_conflict';
420
- kind: 'in_process_session_exists';
421
- message: string;
422
- canonicalPathKey: string;
423
- holderSessionId: string;
424
- lockFilePath?: string;
425
- }
426
- interface AdvisoryLockConflictError {
427
- code: 'lock_conflict';
428
- kind: 'advisory_lock_conflict';
429
- message: string;
430
- canonicalPathKey: string;
431
- holderSessionId?: string;
432
- lockFilePath: string;
433
- }
434
- interface SessionIdConflictError {
435
- code: 'session_id_conflict';
436
- message: string;
437
- sessionId: string;
438
- }
439
- interface SavePartialFailureError {
440
- code: 'save_partial_failure';
441
- message: string;
442
- sessionId: string;
443
- canonicalPathKey: string;
444
- attemptedRevision: number;
445
- lastSavedRevision: number;
446
- committedPaths: string[];
447
- failedPaths: string[];
448
- diskMayBePartiallyUpdated: boolean;
449
- recoveryPaths?: string[];
450
- }
451
- interface UamFidelityUnsupportedError {
452
- code: 'uam_fidelity_unsupported';
453
- message: string;
454
- sessionId: string;
455
- canonicalPathKey: string;
456
- }
457
- interface MaterializeValidationFailedError {
458
- code: 'materialize_validation_failed';
459
- message: string;
460
- sessionId: string;
461
- canonicalPathKey: string;
462
- issueCount: number;
463
- diagnostics: BackendDiagnostic[];
464
- }
465
- interface MaterializeWriteFailedError {
466
- code: 'write_failed';
467
- message: string;
468
- sessionId: string;
469
- canonicalPathKey: string;
470
- attemptedRevision: number;
471
- lastSavedRevision: number;
472
- writtenPaths: string[];
473
- failedPaths: string[];
474
- skippedPaths: string[];
475
- diagnostics: BackendDiagnostic[];
476
- diskMayBePartiallyUpdated: boolean;
477
- recoveryPaths?: string[];
478
- }
479
- type BackendEventKind = 'session.opened' | 'transaction.applied' | 'transaction.rejected' | 'save.started' | 'save.completed' | 'save.failed' | 'session.closeRequested' | 'session.closed' | 'cache.invalidated' | 'cache.updated';
480
- interface BackendEvent {
481
- sequence: number;
482
- kind: BackendEventKind;
483
- timestamp: string;
484
- sessionId?: string;
485
- canonicalPathKey?: string;
486
- revision?: number;
487
- cacheRevision?: number;
488
- diagnostics: BackendDiagnostic[];
489
- payload?: unknown;
490
- }
491
- interface GetEventsInput {
492
- sessionId: string;
493
- after?: string;
494
- limit?: number;
495
- }
496
- interface GetEventsSnapshot {
497
- events: BackendEvent[];
498
- oldestSequence: number;
499
- currentSequence: number;
500
- cursorExpired: boolean;
501
- }
502
- interface EventCursorInvalidError {
503
- code: 'event_cursor_invalid';
504
- message: string;
505
- sessionId: string;
506
- after: string;
507
- }
508
- interface BackendCapabilityUnavailableError {
509
- code: 'capability_unavailable';
510
- message: string;
511
- capability: 'fileSystem' | 'artifact.publish' | 'artifact.restore';
512
- requiredAdapter?: 'BackendFileSystem';
513
- requiredHost?: 'node';
514
- bridgeBoundary?: 'external-bridge';
515
- }
516
- interface BackendCacheSnapshot {
517
- cacheRevision: number;
518
- entries: BackendCacheEntry[];
519
- }
520
- interface BackendCacheEntry {
521
- canonicalPathKey: string;
522
- sessionId?: string;
523
- revision: number;
524
- lastSavedRevision: number;
525
- dirty: boolean;
526
- valid: boolean;
527
- indexedAt: string;
528
- summary: {
529
- resourceCount: number;
530
- packageCount?: number;
531
- diagnostics: BackendDiagnostic[];
532
- };
533
- }
534
- interface GetCacheSnapshotInput {
535
- sessionId: string;
536
- }
537
- interface RefreshCacheInput {
538
- sessionId: string;
539
- reason?: 'manual' | 'session_open' | 'after_save';
540
- }
541
- type BackendError = SessionNotFoundError | SessionCloseFailedError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
542
- interface ProjectRootNotAllowedError {
543
- code: 'project_root_not_allowed';
544
- message: string;
545
- projectPath: string;
546
- }
547
- interface ProjectOpenFailedError {
548
- code: 'project_open_failed';
549
- message: string;
550
- projectPath: string;
551
- }
552
- interface ApplySessionTransactionInput {
553
- sessionId: string;
554
- expectedRevision: number;
555
- operations: UamTransactionOperation[];
556
- }
557
- interface BackendTransactionPreview {
558
- sessionId: string;
559
- baseRevision: number;
560
- /** Revision after applying this batch at baseRevision, including an empty batch. Not reserved. */
561
- projectedRevision: number;
562
- mode: 'execute-and-discard';
563
- /** Complete, bounded comparison of current and projected UAM, not unsaved changes since last save. */
564
- impact: {
565
- entities: BackendTransactionEntityChange[]; /** Project-relative paths from the actual ProjectWriter, including empty directories. Not a disk write plan. */
566
- files: Array<{
567
- path: string;
568
- kind: 'file' | 'directory';
569
- change: 'added' | 'removed' | 'updated';
570
- }>;
571
- };
572
- persistence: {
573
- requiredAfterApply: true;
574
- nextAction: 'saveSession' | 'materializeSession' | 'host-action';
575
- fileSystemAvailable: boolean;
576
- uamFidelity: BackendSessionSnapshot['uamFidelity']; /** Preflight never verifies filesystem permissions, materialize destinations or actual disk state. */
577
- writeVerified: false;
578
- };
579
- }
580
- interface BackendTransactionEntityChange {
581
- target: BackendEntityTarget;
582
- change: 'added' | 'removed' | 'updated';
583
- /** Changed top-level property names; child collections contain identities and preserve their order. */
584
- fields: string[];
585
- }
586
- interface TransactionPreviewError {
587
- code: 'transaction_preview_failed';
588
- message: string;
589
- sessionId: string;
590
- reason: 'response_budget_exceeded' | 'projection_failed';
591
- }
592
- interface GetProjectOutlineInput {
593
- sessionId: string;
594
- }
595
- interface ValidateSessionInput {
596
- sessionId: string;
597
- }
598
- interface OpenProjectSessionInput {
599
- /** Authoritative UAM project. Use BackendRuntime.openSession() when importing an existing project from storage. */
600
- project: UamProject;
601
- sessionId?: string;
602
- /** Session identity only; without explicit storage or a per-call filesystem this grants no filesystem access. */
603
- canonicalProjectPath?: string;
604
- /** Host-defined session identity; not a filesystem authorization or an allowed-root override. */
605
- canonicalPathKey?: string;
606
- /** Optional writeback target for the authoritative UAM project; this is not an import source. */
607
- storage?: BackendProjectSessionStorage;
608
- }
609
- interface BackendProjectSessionStorage {
610
- fileSystem: BackendFileSystem;
611
- fairyPath: string;
612
- canonicalProjectPath?: string;
613
- canonicalPathKey?: string;
614
- }
615
- interface SaveSessionInput {
616
- sessionId: string;
617
- expectedRevision?: number;
618
- targetPath?: string;
619
- fileSystem?: BackendFileSystem;
620
- force?: boolean;
621
- mode?: 'materializeCleanSession';
622
- }
623
- interface MaterializeSessionInput {
624
- sessionId: string;
625
- expectedRevision?: number;
626
- storage?: BackendProjectSessionStorage;
627
- targetPath?: string;
628
- fileSystem?: BackendFileSystem;
629
- mode?: 'fullProject';
630
- reason?: string;
631
- }
632
- interface BackendRuntimeOptions {
633
- fileSystem?: BackendFileSystem;
634
- host?: BackendHostAdapter;
635
- /** Canonical filesystem roots available to file-backed sessions. Omit for unrestricted library use. */
636
- allowedProjectRoots?: readonly string[];
637
- }
638
- //#endregion
639
- //#region src/runtime.d.ts
640
- declare class BackendRuntime {
641
- private readonly fileSystem?;
642
- private readonly capabilities;
643
- private readonly sessions;
644
- private readonly sessionOperations;
645
- private readonly context;
646
- private readonly readService;
647
- private readonly runtimeService;
648
- private readonly authoringService;
649
- private readonly persistenceService;
650
- private readonly cacheService;
651
- private readonly eventService;
652
- constructor(options?: BackendRuntimeOptions);
653
- getCapabilities(): BackendSuccess<BackendCapabilities>;
654
- openSession(input: {
655
- projectPath: string;
656
- }): Promise<BackendResult<BackendSessionSnapshot, InProcessLockConflictError | AdvisoryLockConflictError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError>>;
657
- openProjectSession(input: OpenProjectSessionInput): BackendResult<BackendSessionSnapshot, InProcessLockConflictError | SessionIdConflictError>;
658
- getSession(input: {
659
- sessionId: string;
660
- }): BackendResult<BackendSessionSnapshot, SessionNotFoundError>;
661
- getProjectOutline(input: GetProjectOutlineInput): BackendResult<BackendProjectOutline, SessionNotFoundError>;
662
- queryEntity(input: QueryEntityInput): BackendResult<BackendEntitySnapshot, SessionNotFoundError | EntityQueryError>;
663
- readSessionState(input: ReadSessionStateInput): BackendResult<BackendSessionStateSnapshot, SessionNotFoundError | SessionReadError | SessionStaleReadError>;
664
- readResourceBytes(input: ReadResourceBytesInput): BackendResult<BackendResourceBytesSnapshot, SessionNotFoundError | SessionReadError | SessionStaleReadError>;
665
- validateSession(input: ValidateSessionInput): BackendResult<ProjectValidationReport, SessionNotFoundError>;
666
- preflightTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendTransactionPreview, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError | TransactionPreviewError>>;
667
- applyTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError>>;
668
- saveSession(input: SaveSessionInput): Promise<BackendResult<BackendSessionSnapshot | MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
669
- materializeSession(input: MaterializeSessionInput): Promise<BackendResult<MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
670
- closeSession(input: {
671
- sessionId: string;
672
- }): Promise<BackendResult<{
673
- sessionId: string;
674
- closed: true;
675
- }, SessionNotFoundError | SessionCloseFailedError>>;
676
- getEvents(input: GetEventsInput): BackendResult<GetEventsSnapshot, SessionNotFoundError | EventCursorInvalidError>;
677
- getCacheSnapshot(input: GetCacheSnapshotInput): BackendResult<BackendCacheSnapshot, SessionNotFoundError>;
678
- refreshCache(input: RefreshCacheInput): BackendResult<BackendCacheSnapshot, SessionNotFoundError>;
679
- }
680
- //#endregion
681
- //#region src/contracts.d.ts
682
- declare const BACKEND_CONTRACT_VERSION: "3.0.0";
683
- declare const BACKEND_CAPABILITY_SCHEMA_VERSION: 12;
684
- declare const BACKEND_COMPATIBILITY_POLICY: {
685
- readonly incompatibleChange: "requires contractVersion bump";
686
- readonly capabilitySchemaChange: "requires capabilitySchemaVersion bump";
687
- readonly additiveChange: "allowed without breaking existing consumers";
688
- };
689
- type BackendStage = 'read' | 'authoring' | 'runtime';
690
- interface BackendMessage {
691
- code: string;
692
- message: string;
693
- }
694
- type BackendDiagnosticCode = BackendError['code'] | UamTransactionSupportIssueCode | ProjectDiagnosticCode;
695
- type BackendDiagnosticOwner = 'backend' | 'core.transaction' | 'core.validation';
696
- interface BackendDiagnostic {
697
- code: BackendDiagnosticCode;
698
- message: string;
699
- severity: 'info' | 'warning' | 'error';
700
- path?: string;
701
- nodeKind?: string;
702
- resourceKind?: string;
703
- gearKind?: string;
704
- field?: string;
705
- operationKind?: string;
706
- opIndex?: number;
707
- opId?: string;
708
- /** Present for catalogued diagnostics only; original codes and classification are preserved. */
709
- owner?: BackendDiagnosticOwner;
710
- docsUri?: string;
711
- remediation?: BackendDiagnosticRemediation;
712
- }
713
- interface BackendDiagnosticRemediation {
714
- kind: 'refresh-and-replan' | 'revise-selector' | 'revise-operation' | 'host-action';
715
- message: string;
716
- /** A read-only starting point, never permission to retry or mutate. */
717
- read?: {
718
- method: 'getProjectOutline';
719
- input: {
720
- sessionId: string;
721
- };
722
- };
723
- }
724
- interface BackendResponseMeta {
725
- requestId: string;
726
- sessionId?: string;
727
- revision?: number;
728
- durationMs: number;
729
- warnings: BackendMessage[];
730
- diagnostics: BackendDiagnostic[];
731
- stage: BackendStage;
732
- contractVersion: typeof BACKEND_CONTRACT_VERSION;
733
- capabilitySchemaVersion: typeof BACKEND_CAPABILITY_SCHEMA_VERSION;
734
- }
735
- //#endregion
736
- //#region src/diagnostics.d.ts
737
- /** Shared codes list all canonical owners; responses preserve the actual reporting owner. */
738
- interface BackendDiagnosticGuide {
739
- code: BackendDiagnosticCode;
740
- owners: readonly BackendDiagnosticOwner[];
741
- remediation: Omit<BackendDiagnosticRemediation, 'read'>;
742
- }
743
- declare const BACKEND_DIAGNOSTICS_URI = "openfairygui://docs/diagnostics";
744
- declare const BACKEND_DIAGNOSTIC_TEMPLATE = "openfairygui://docs/diagnostics/{code}";
745
- declare function getBackendDiagnosticCatalog(): ({
746
- docsUri: string;
747
- code: "stale_read";
748
- owners: readonly ["backend"];
749
- remediation: {
750
- readonly kind: "refresh-and-replan";
751
- readonly message: "Discard the incomplete model/bytes read and restart with readSessionState. Use its revision for every readResourceBytes call. No historical state is retained or reserved; do not combine resources from different edit revisions.";
752
- };
753
- } | {
754
- docsUri: string;
755
- code: "session_read_failed";
756
- owners: readonly ["backend"];
757
- remediation: {
758
- readonly kind: "host-action";
759
- readonly message: "Inspect error.reason: invalid_query requires valid inputs; not_found/ambiguous requires exact current resource identifiers; unsupported_resource/bytes_unavailable means primary bytes cannot be read from this session. Budget or non-JSON failures require host inspection. Preserve unsaved work; do not save, reopen, repair or mutate the model merely to obtain a read.";
760
- };
761
- } | {
762
- docsUri: string;
763
- code: "transaction_preview_failed";
764
- owners: readonly ["backend"];
765
- remediation: {
766
- readonly kind: "host-action";
767
- readonly message: "No complete preview is available. Inspect error.reason with the host: response_budget_exceeded requires a smaller independently meaningful authorized batch; projection_failed requires inspecting the project serialization failure. Preserve the session and never treat a missing or truncated impact as approval to apply or save.";
768
- };
769
- } | {
770
- docsUri: string;
771
- code: "stale_write";
772
- owners: readonly ["backend"];
773
- remediation: {
774
- readonly kind: "refresh-and-replan";
775
- readonly message: "Refresh the outline and affected entities, then replan from their current revision and preflight again. A preview reserves no revision. Never replace expectedRevision and blindly retry the original transaction or save.";
776
- };
777
- } | {
778
- docsUri: string;
779
- code: "entity_query_failed";
780
- owners: readonly ["backend"];
781
- remediation: {
782
- readonly kind: "host-action";
783
- readonly message: "Inspect error.reason: invalid_query requires correcting the target; not_found/ambiguous requires current exact identifiers; response_budget_exceeded/non_json_value requires host inspection of the entity. Do not broaden queries or mutate data to evade the response limits.";
784
- };
785
- } | {
786
- docsUri: string;
787
- code: "session_not_found";
788
- owners: readonly ["backend"];
789
- remediation: {
790
- readonly kind: "host-action";
791
- readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
792
- };
793
- } | {
794
- docsUri: string;
795
- code: "session_close_failed";
796
- owners: readonly ["backend"];
797
- remediation: {
798
- readonly kind: "host-action";
799
- readonly message: "The session and lock ownership remain registered. Inspect the reported lock release failure, correct the storage problem, then retry closeSession with the same session ID. Do not remove the lock file or open a replacement session to bypass the owner.";
800
- };
801
- } | {
802
- docsUri: string;
803
- code: "path_policy_violation";
804
- owners: readonly ["backend"];
805
- remediation: {
806
- readonly kind: "host-action";
807
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
808
- };
809
- } | {
810
- docsUri: string;
811
- code: "project_root_not_allowed";
812
- owners: readonly ["backend"];
813
- remediation: {
814
- readonly kind: "host-action";
815
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
816
- };
817
- } | {
818
- docsUri: string;
819
- code: "invalid_package_selector";
820
- owners: readonly ["core.transaction"];
821
- remediation: {
822
- readonly kind: "revise-selector";
823
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
824
- };
825
- } | {
826
- docsUri: string;
827
- code: "invalid_component_selector";
828
- owners: readonly ["core.transaction"];
829
- remediation: {
830
- readonly kind: "revise-selector";
831
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
832
- };
833
- } | {
834
- docsUri: string;
835
- code: "invalid_resource_selector";
836
- owners: readonly ["core.transaction"];
837
- remediation: {
838
- readonly kind: "revise-selector";
839
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
840
- };
841
- } | {
842
- docsUri: string;
843
- code: "invalid_display_node_selector";
844
- owners: readonly ["core.transaction"];
845
- remediation: {
846
- readonly kind: "revise-selector";
847
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
848
- };
849
- } | {
850
- docsUri: string;
851
- code: "invalid_resource_folder_selector";
852
- owners: readonly ["core.transaction"];
853
- remediation: {
854
- readonly kind: "revise-selector";
855
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
856
- };
857
- } | {
858
- docsUri: string;
859
- code: "invalid_branch_selector";
860
- owners: readonly ["core.transaction"];
861
- remediation: {
862
- readonly kind: "revise-selector";
863
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
864
- };
865
- } | {
866
- docsUri: string;
867
- code: "invalid_gear_selector";
868
- owners: readonly ["core.transaction"];
869
- remediation: {
870
- readonly kind: "revise-selector";
871
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
872
- };
873
- } | {
874
- docsUri: string;
875
- code: "invalid_look_gear_selector";
876
- owners: readonly ["core.transaction"];
877
- remediation: {
878
- readonly kind: "revise-selector";
879
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
880
- };
881
- } | {
882
- docsUri: string;
883
- code: "selector_ambiguity";
884
- owners: readonly ["core.transaction"];
885
- remediation: {
886
- readonly kind: "revise-selector";
887
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
888
- };
889
- } | {
890
- docsUri: string;
891
- code: "unavailable_resource_source_bytes";
892
- owners: readonly ["core.transaction"];
893
- remediation: {
894
- readonly kind: "host-action";
895
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
896
- };
897
- } | {
898
- docsUri: string;
899
- code: "missing_source";
900
- owners: readonly ["core.validation"];
901
- remediation: {
902
- readonly kind: "host-action";
903
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
904
- };
905
- } | {
906
- docsUri: string;
907
- code: "unreadable_source";
908
- owners: readonly ["core.validation"];
909
- remediation: {
910
- readonly kind: "host-action";
911
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
912
- };
913
- } | {
914
- docsUri: string;
915
- code: "decode_capability_unavailable";
916
- owners: readonly ["core.validation"];
917
- remediation: {
918
- readonly kind: "host-action";
919
- readonly message: "Validation is incomplete, not passed. Inspect whether source bytes are unloaded or a decoder is unavailable. Ask the host to hydrate sources or provide the required decoder (Node image validation uses optional Sharp), then validate again. Do not install dependencies or change the project automatically.";
920
- };
921
- } | {
922
- docsUri: string;
923
- code: "session_id_conflict";
924
- owners: readonly ["backend"];
925
- remediation: {
926
- readonly kind: "host-action";
927
- readonly message: "Use getSession to inspect the existing session. Reuse it only for the intended project, or choose a new session ID; do not close another owner\\u0027s session to make room.";
928
- };
929
- } | {
930
- docsUri: string;
931
- code: "lock_conflict";
932
- owners: readonly ["backend"];
933
- remediation: {
934
- readonly kind: "host-action";
935
- readonly message: "Another owner holds the project lock. Preserve unsaved work and ask that owner to close its session, then explicitly reopen. Never remove a live lock, force-close a peer, or bypass locking.";
936
- };
937
- } | {
938
- docsUri: string;
939
- code: "event_cursor_invalid";
940
- owners: readonly ["backend"];
941
- remediation: {
942
- readonly kind: "refresh-and-replan";
943
- readonly message: "Read the error and getEvents cursor bounds. Request a fresh bounded event page without the invalid cursor and refresh the current outline before replanning; missing retained history is not evidence that nothing changed.";
944
- };
945
- } | {
946
- docsUri: string;
947
- code: "corrupt_source";
948
- owners: readonly ["core.validation"];
949
- remediation: {
950
- readonly kind: "host-action";
951
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
952
- };
953
- } | {
954
- docsUri: string;
955
- code: "unsupported_operation";
956
- owners: readonly ["core.transaction"];
957
- remediation: {
958
- readonly kind: "revise-operation";
959
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
960
- };
961
- } | {
962
- docsUri: string;
963
- code: "transaction_unsupported";
964
- owners: readonly ["core.transaction"];
965
- remediation: {
966
- readonly kind: "revise-operation";
967
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
968
- };
969
- } | {
970
- docsUri: string;
971
- code: "unsupported_display_node_kind";
972
- owners: readonly ["core.transaction"];
973
- remediation: {
974
- readonly kind: "revise-operation";
975
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
976
- };
977
- } | {
978
- docsUri: string;
979
- code: "unsupported_cross_package_image_ref";
980
- owners: readonly ["core.transaction"];
981
- remediation: {
982
- readonly kind: "revise-operation";
983
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
984
- };
985
- } | {
986
- docsUri: string;
987
- code: "unsupported_gear_kind";
988
- owners: readonly ["core.transaction"];
989
- remediation: {
990
- readonly kind: "revise-operation";
991
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
992
- };
993
- } | {
994
- docsUri: string;
995
- code: "unsupported_resource_mutation";
996
- owners: readonly ["core.transaction"];
997
- remediation: {
998
- readonly kind: "revise-operation";
999
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1000
- };
1001
- } | {
1002
- docsUri: string;
1003
- code: "unsupported_display_node_mutation";
1004
- owners: readonly ["core.transaction"];
1005
- remediation: {
1006
- readonly kind: "revise-operation";
1007
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1008
- };
1009
- } | {
1010
- docsUri: string;
1011
- code: "unsupported_text_field_target";
1012
- owners: readonly ["core.transaction"];
1013
- remediation: {
1014
- readonly kind: "revise-operation";
1015
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1016
- };
1017
- } | {
1018
- docsUri: string;
1019
- code: "unsupported_display_node_field";
1020
- owners: readonly ["core.transaction"];
1021
- remediation: {
1022
- readonly kind: "revise-operation";
1023
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1024
- };
1025
- } | {
1026
- docsUri: string;
1027
- code: "unsupported_operation_batch";
1028
- owners: readonly ["core.transaction"];
1029
- remediation: {
1030
- readonly kind: "revise-operation";
1031
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1032
- };
1033
- } | {
1034
- docsUri: string;
1035
- code: "unsupported_resource_kind";
1036
- owners: readonly ["core.transaction", "core.validation"];
1037
- remediation: {
1038
- readonly kind: "revise-operation";
1039
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1040
- };
1041
- } | {
1042
- docsUri: string;
1043
- code: "invalid_project_settings";
1044
- owners: readonly ["core.transaction"];
1045
- remediation: {
1046
- readonly kind: "revise-operation";
1047
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1048
- };
1049
- } | {
1050
- docsUri: string;
1051
- code: "invalid_package_settings";
1052
- owners: readonly ["core.transaction"];
1053
- remediation: {
1054
- readonly kind: "revise-operation";
1055
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1056
- };
1057
- } | {
1058
- docsUri: string;
1059
- code: "invalid_display_node_payload";
1060
- owners: readonly ["core.transaction"];
1061
- remediation: {
1062
- readonly kind: "revise-operation";
1063
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1064
- };
1065
- } | {
1066
- docsUri: string;
1067
- code: "invalid_resource_name";
1068
- owners: readonly ["core.transaction"];
1069
- remediation: {
1070
- readonly kind: "revise-operation";
1071
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1072
- };
1073
- } | {
1074
- docsUri: string;
1075
- code: "invalid_resource_path";
1076
- owners: readonly ["core.transaction"];
1077
- remediation: {
1078
- readonly kind: "revise-operation";
1079
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1080
- };
1081
- } | {
1082
- docsUri: string;
1083
- code: "invalid_resource_folder_path";
1084
- owners: readonly ["core.transaction"];
1085
- remediation: {
1086
- readonly kind: "revise-operation";
1087
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1088
- };
1089
- } | {
1090
- docsUri: string;
1091
- code: "invalid_resource_folder_atlas";
1092
- owners: readonly ["core.transaction"];
1093
- remediation: {
1094
- readonly kind: "revise-operation";
1095
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1096
- };
1097
- } | {
1098
- docsUri: string;
1099
- code: "invalid_attach_index";
1100
- owners: readonly ["core.transaction"];
1101
- remediation: {
1102
- readonly kind: "revise-operation";
1103
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1104
- };
1105
- } | {
1106
- docsUri: string;
1107
- code: "invalid_controller_payload";
1108
- owners: readonly ["core.transaction"];
1109
- remediation: {
1110
- readonly kind: "revise-operation";
1111
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1112
- };
1113
- } | {
1114
- docsUri: string;
1115
- code: "invalid_transition_payload";
1116
- owners: readonly ["core.transaction"];
1117
- remediation: {
1118
- readonly kind: "revise-operation";
1119
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1120
- };
1121
- } | {
1122
- docsUri: string;
1123
- code: "invalid_look_gear_payload";
1124
- owners: readonly ["core.transaction"];
1125
- remediation: {
1126
- readonly kind: "revise-operation";
1127
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1128
- };
1129
- } | {
1130
- docsUri: string;
1131
- code: "invalid_gear_payload";
1132
- owners: readonly ["core.transaction"];
1133
- remediation: {
1134
- readonly kind: "revise-operation";
1135
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1136
- };
1137
- } | {
1138
- docsUri: string;
1139
- code: "invalid_resource_payload";
1140
- owners: readonly ["core.transaction"];
1141
- remediation: {
1142
- readonly kind: "revise-operation";
1143
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1144
- };
1145
- } | {
1146
- docsUri: string;
1147
- code: "invalid_resource_bytes";
1148
- owners: readonly ["core.transaction"];
1149
- remediation: {
1150
- readonly kind: "revise-operation";
1151
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1152
- };
1153
- } | {
1154
- docsUri: string;
1155
- code: "invalid_movie_clip_jta";
1156
- owners: readonly ["core.transaction"];
1157
- remediation: {
1158
- readonly kind: "revise-operation";
1159
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1160
- };
1161
- } | {
1162
- docsUri: string;
1163
- code: "invalid_resource_index";
1164
- owners: readonly ["core.transaction"];
1165
- remediation: {
1166
- readonly kind: "revise-operation";
1167
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1168
- };
1169
- } | {
1170
- docsUri: string;
1171
- code: "invalid_branch_name";
1172
- owners: readonly ["core.transaction"];
1173
- remediation: {
1174
- readonly kind: "revise-operation";
1175
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1176
- };
1177
- } | {
1178
- docsUri: string;
1179
- code: "invalid_package_payload";
1180
- owners: readonly ["core.transaction"];
1181
- remediation: {
1182
- readonly kind: "revise-operation";
1183
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1184
- };
1185
- } | {
1186
- docsUri: string;
1187
- code: "invalid_package_index";
1188
- owners: readonly ["core.transaction"];
1189
- remediation: {
1190
- readonly kind: "revise-operation";
1191
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1192
- };
1193
- } | {
1194
- docsUri: string;
1195
- code: "invalid_component_payload";
1196
- owners: readonly ["core.transaction"];
1197
- remediation: {
1198
- readonly kind: "revise-operation";
1199
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1200
- };
1201
- } | {
1202
- docsUri: string;
1203
- code: "invalid_component_index";
1204
- owners: readonly ["core.transaction"];
1205
- remediation: {
1206
- readonly kind: "revise-operation";
1207
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1208
- };
1209
- } | {
1210
- docsUri: string;
1211
- code: "invalid_component_move";
1212
- owners: readonly ["core.transaction"];
1213
- remediation: {
1214
- readonly kind: "revise-operation";
1215
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1216
- };
1217
- } | {
1218
- docsUri: string;
1219
- code: "invalid_uam";
1220
- owners: readonly ["core.transaction", "core.validation"];
1221
- remediation: {
1222
- readonly kind: "revise-operation";
1223
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1224
- };
1225
- } | {
1226
- docsUri: string;
1227
- code: "project_settings_unchanged";
1228
- owners: readonly ["core.transaction"];
1229
- remediation: {
1230
- readonly kind: "refresh-and-replan";
1231
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1232
- };
1233
- } | {
1234
- docsUri: string;
1235
- code: "package_settings_unchanged";
1236
- owners: readonly ["core.transaction"];
1237
- remediation: {
1238
- readonly kind: "refresh-and-replan";
1239
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1240
- };
1241
- } | {
1242
- docsUri: string;
1243
- code: "display_node_props_unchanged";
1244
- owners: readonly ["core.transaction"];
1245
- remediation: {
1246
- readonly kind: "refresh-and-replan";
1247
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1248
- };
1249
- } | {
1250
- docsUri: string;
1251
- code: "resource_folder_atlas_unchanged";
1252
- owners: readonly ["core.transaction"];
1253
- remediation: {
1254
- readonly kind: "refresh-and-replan";
1255
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1256
- };
1257
- } | {
1258
- docsUri: string;
1259
- code: "duplicate_look_gear_controller";
1260
- owners: readonly ["core.transaction"];
1261
- remediation: {
1262
- readonly kind: "revise-operation";
1263
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1264
- };
1265
- } | {
1266
- docsUri: string;
1267
- code: "duplicate_transition_name";
1268
- owners: readonly ["core.transaction"];
1269
- remediation: {
1270
- readonly kind: "revise-operation";
1271
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1272
- };
1273
- } | {
1274
- docsUri: string;
1275
- code: "duplicate_look_gear_state_page";
1276
- owners: readonly ["core.transaction"];
1277
- remediation: {
1278
- readonly kind: "revise-operation";
1279
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1280
- };
1281
- } | {
1282
- docsUri: string;
1283
- code: "duplicate_gear_controller";
1284
- owners: readonly ["core.transaction"];
1285
- remediation: {
1286
- readonly kind: "revise-operation";
1287
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1288
- };
1289
- } | {
1290
- docsUri: string;
1291
- code: "duplicate_gear_state_page";
1292
- owners: readonly ["core.transaction"];
1293
- remediation: {
1294
- readonly kind: "revise-operation";
1295
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1296
- };
1297
- } | {
1298
- docsUri: string;
1299
- code: "duplicate_branch_name";
1300
- owners: readonly ["core.transaction"];
1301
- remediation: {
1302
- readonly kind: "revise-operation";
1303
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1304
- };
1305
- } | {
1306
- docsUri: string;
1307
- code: "duplicate_component_id";
1308
- owners: readonly ["core.transaction"];
1309
- remediation: {
1310
- readonly kind: "revise-operation";
1311
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1312
- };
1313
- } | {
1314
- docsUri: string;
1315
- code: "resource_folder_conflict";
1316
- owners: readonly ["core.transaction"];
1317
- remediation: {
1318
- readonly kind: "revise-operation";
1319
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1320
- };
1321
- } | {
1322
- docsUri: string;
1323
- code: "duplicate_resource_id";
1324
- owners: readonly ["core.transaction", "core.validation"];
1325
- remediation: {
1326
- readonly kind: "revise-operation";
1327
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1328
- };
1329
- } | {
1330
- docsUri: string;
1331
- code: "duplicate_package_id";
1332
- owners: readonly ["core.transaction", "core.validation"];
1333
- remediation: {
1334
- readonly kind: "revise-operation";
1335
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1336
- };
1337
- } | {
1338
- docsUri: string;
1339
- code: "duplicate_package_name";
1340
- owners: readonly ["core.transaction", "core.validation"];
1341
- remediation: {
1342
- readonly kind: "revise-operation";
1343
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1344
- };
1345
- } | {
1346
- docsUri: string;
1347
- code: "resource_folder_not_empty";
1348
- owners: readonly ["core.transaction"];
1349
- remediation: {
1350
- readonly kind: "revise-operation";
1351
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1352
- };
1353
- } | {
1354
- docsUri: string;
1355
- code: "branch_not_empty";
1356
- owners: readonly ["core.transaction"];
1357
- remediation: {
1358
- readonly kind: "revise-operation";
1359
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1360
- };
1361
- } | {
1362
- docsUri: string;
1363
- code: "branch_referenced";
1364
- owners: readonly ["core.transaction"];
1365
- remediation: {
1366
- readonly kind: "revise-operation";
1367
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1368
- };
1369
- } | {
1370
- docsUri: string;
1371
- code: "invalid_resource_reference";
1372
- owners: readonly ["core.transaction"];
1373
- remediation: {
1374
- readonly kind: "revise-operation";
1375
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1376
- };
1377
- } | {
1378
- docsUri: string;
1379
- code: "invalid_component_reference";
1380
- owners: readonly ["core.transaction"];
1381
- remediation: {
1382
- readonly kind: "revise-operation";
1383
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1384
- };
1385
- } | {
1386
- docsUri: string;
1387
- code: "invalid_group_reference";
1388
- owners: readonly ["core.transaction"];
1389
- remediation: {
1390
- readonly kind: "revise-operation";
1391
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1392
- };
1393
- } | {
1394
- docsUri: string;
1395
- code: "package_referenced";
1396
- owners: readonly ["core.transaction"];
1397
- remediation: {
1398
- readonly kind: "revise-operation";
1399
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1400
- };
1401
- } | {
1402
- docsUri: string;
1403
- code: "component_referenced";
1404
- owners: readonly ["core.transaction"];
1405
- remediation: {
1406
- readonly kind: "revise-operation";
1407
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1408
- };
1409
- } | {
1410
- docsUri: string;
1411
- code: "component_has_package_dependencies";
1412
- owners: readonly ["core.transaction"];
1413
- remediation: {
1414
- readonly kind: "revise-operation";
1415
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1416
- };
1417
- } | {
1418
- docsUri: string;
1419
- code: "dangling_resource_reference";
1420
- owners: readonly ["core.validation"];
1421
- remediation: {
1422
- readonly kind: "revise-operation";
1423
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1424
- };
1425
- } | {
1426
- docsUri: string;
1427
- code: "invalid_project_xml";
1428
- owners: readonly ["core.validation"];
1429
- remediation: {
1430
- readonly kind: "host-action";
1431
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1432
- };
1433
- } | {
1434
- docsUri: string;
1435
- code: "invalid_package_xml";
1436
- owners: readonly ["core.validation"];
1437
- remediation: {
1438
- readonly kind: "host-action";
1439
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1440
- };
1441
- } | {
1442
- docsUri: string;
1443
- code: "invalid_branch_package_xml";
1444
- owners: readonly ["core.validation"];
1445
- remediation: {
1446
- readonly kind: "host-action";
1447
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1448
- };
1449
- } | {
1450
- docsUri: string;
1451
- code: "invalid_component_xml";
1452
- owners: readonly ["core.validation"];
1453
- remediation: {
1454
- readonly kind: "host-action";
1455
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1456
- };
1457
- } | {
1458
- docsUri: string;
1459
- code: "invalid_project_value";
1460
- owners: readonly ["core.validation"];
1461
- remediation: {
1462
- readonly kind: "host-action";
1463
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1464
- };
1465
- } | {
1466
- docsUri: string;
1467
- code: "desktop_incompatible_geometry";
1468
- owners: readonly ["core.validation"];
1469
- remediation: {
1470
- readonly kind: "host-action";
1471
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1472
- };
1473
- } | {
1474
- docsUri: string;
1475
- code: "invalid_settings_json";
1476
- owners: readonly ["core.validation"];
1477
- remediation: {
1478
- readonly kind: "host-action";
1479
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1480
- };
1481
- } | {
1482
- docsUri: string;
1483
- code: "path_collision";
1484
- owners: readonly ["core.validation"];
1485
- remediation: {
1486
- readonly kind: "host-action";
1487
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1488
- };
1489
- } | {
1490
- docsUri: string;
1491
- code: "unsafe_path";
1492
- owners: readonly ["core.validation"];
1493
- remediation: {
1494
- readonly kind: "host-action";
1495
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1496
- };
1497
- } | {
1498
- docsUri: string;
1499
- code: "capability_unavailable";
1500
- owners: readonly ["backend"];
1501
- remediation: {
1502
- readonly kind: "host-action";
1503
- readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
1504
- };
1505
- } | {
1506
- docsUri: string;
1507
- code: "uam_fidelity_unsupported";
1508
- owners: readonly ["backend"];
1509
- remediation: {
1510
- readonly kind: "host-action";
1511
- readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
1512
- };
1513
- } | {
1514
- docsUri: string;
1515
- code: "save_partial_failure";
1516
- owners: readonly ["backend"];
1517
- remediation: {
1518
- readonly kind: "host-action";
1519
- readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
1520
- };
1521
- } | {
1522
- docsUri: string;
1523
- code: "write_failed";
1524
- owners: readonly ["backend"];
1525
- remediation: {
1526
- readonly kind: "host-action";
1527
- readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
1528
- };
1529
- } | {
1530
- docsUri: string;
1531
- code: "project_open_failed";
1532
- owners: readonly ["backend"];
1533
- remediation: {
1534
- readonly kind: "host-action";
1535
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1536
- };
1537
- } | {
1538
- docsUri: string;
1539
- code: "materialize_validation_failed";
1540
- owners: readonly ["backend"];
1541
- remediation: {
1542
- readonly kind: "host-action";
1543
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1544
- };
1545
- } | {
1546
- docsUri: string;
1547
- code: "execution_failure";
1548
- owners: readonly ["core.transaction"];
1549
- remediation: {
1550
- readonly kind: "host-action";
1551
- readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
1552
- };
1553
- })[];
1554
- declare function getBackendDiagnosticGuide(code: string): {
1555
- docsUri: string;
1556
- code: "stale_read";
1557
- owners: readonly ["backend"];
1558
- remediation: {
1559
- readonly kind: "refresh-and-replan";
1560
- readonly message: "Discard the incomplete model/bytes read and restart with readSessionState. Use its revision for every readResourceBytes call. No historical state is retained or reserved; do not combine resources from different edit revisions.";
1561
- };
1562
- } | {
1563
- docsUri: string;
1564
- code: "session_read_failed";
1565
- owners: readonly ["backend"];
1566
- remediation: {
1567
- readonly kind: "host-action";
1568
- readonly message: "Inspect error.reason: invalid_query requires valid inputs; not_found/ambiguous requires exact current resource identifiers; unsupported_resource/bytes_unavailable means primary bytes cannot be read from this session. Budget or non-JSON failures require host inspection. Preserve unsaved work; do not save, reopen, repair or mutate the model merely to obtain a read.";
1569
- };
1570
- } | {
1571
- docsUri: string;
1572
- code: "transaction_preview_failed";
1573
- owners: readonly ["backend"];
1574
- remediation: {
1575
- readonly kind: "host-action";
1576
- readonly message: "No complete preview is available. Inspect error.reason with the host: response_budget_exceeded requires a smaller independently meaningful authorized batch; projection_failed requires inspecting the project serialization failure. Preserve the session and never treat a missing or truncated impact as approval to apply or save.";
1577
- };
1578
- } | {
1579
- docsUri: string;
1580
- code: "stale_write";
1581
- owners: readonly ["backend"];
1582
- remediation: {
1583
- readonly kind: "refresh-and-replan";
1584
- readonly message: "Refresh the outline and affected entities, then replan from their current revision and preflight again. A preview reserves no revision. Never replace expectedRevision and blindly retry the original transaction or save.";
1585
- };
1586
- } | {
1587
- docsUri: string;
1588
- code: "entity_query_failed";
1589
- owners: readonly ["backend"];
1590
- remediation: {
1591
- readonly kind: "host-action";
1592
- readonly message: "Inspect error.reason: invalid_query requires correcting the target; not_found/ambiguous requires current exact identifiers; response_budget_exceeded/non_json_value requires host inspection of the entity. Do not broaden queries or mutate data to evade the response limits.";
1593
- };
1594
- } | {
1595
- docsUri: string;
1596
- code: "session_not_found";
1597
- owners: readonly ["backend"];
1598
- remediation: {
1599
- readonly kind: "host-action";
1600
- readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
1601
- };
1602
- } | {
1603
- docsUri: string;
1604
- code: "session_close_failed";
1605
- owners: readonly ["backend"];
1606
- remediation: {
1607
- readonly kind: "host-action";
1608
- readonly message: "The session and lock ownership remain registered. Inspect the reported lock release failure, correct the storage problem, then retry closeSession with the same session ID. Do not remove the lock file or open a replacement session to bypass the owner.";
1609
- };
1610
- } | {
1611
- docsUri: string;
1612
- code: "path_policy_violation";
1613
- owners: readonly ["backend"];
1614
- remediation: {
1615
- readonly kind: "host-action";
1616
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1617
- };
1618
- } | {
1619
- docsUri: string;
1620
- code: "project_root_not_allowed";
1621
- owners: readonly ["backend"];
1622
- remediation: {
1623
- readonly kind: "host-action";
1624
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1625
- };
1626
- } | {
1627
- docsUri: string;
1628
- code: "invalid_package_selector";
1629
- owners: readonly ["core.transaction"];
1630
- remediation: {
1631
- readonly kind: "revise-selector";
1632
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1633
- };
1634
- } | {
1635
- docsUri: string;
1636
- code: "invalid_component_selector";
1637
- owners: readonly ["core.transaction"];
1638
- remediation: {
1639
- readonly kind: "revise-selector";
1640
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1641
- };
1642
- } | {
1643
- docsUri: string;
1644
- code: "invalid_resource_selector";
1645
- owners: readonly ["core.transaction"];
1646
- remediation: {
1647
- readonly kind: "revise-selector";
1648
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1649
- };
1650
- } | {
1651
- docsUri: string;
1652
- code: "invalid_display_node_selector";
1653
- owners: readonly ["core.transaction"];
1654
- remediation: {
1655
- readonly kind: "revise-selector";
1656
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1657
- };
1658
- } | {
1659
- docsUri: string;
1660
- code: "invalid_resource_folder_selector";
1661
- owners: readonly ["core.transaction"];
1662
- remediation: {
1663
- readonly kind: "revise-selector";
1664
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1665
- };
1666
- } | {
1667
- docsUri: string;
1668
- code: "invalid_branch_selector";
1669
- owners: readonly ["core.transaction"];
1670
- remediation: {
1671
- readonly kind: "revise-selector";
1672
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1673
- };
1674
- } | {
1675
- docsUri: string;
1676
- code: "invalid_gear_selector";
1677
- owners: readonly ["core.transaction"];
1678
- remediation: {
1679
- readonly kind: "revise-selector";
1680
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1681
- };
1682
- } | {
1683
- docsUri: string;
1684
- code: "invalid_look_gear_selector";
1685
- owners: readonly ["core.transaction"];
1686
- remediation: {
1687
- readonly kind: "revise-selector";
1688
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1689
- };
1690
- } | {
1691
- docsUri: string;
1692
- code: "selector_ambiguity";
1693
- owners: readonly ["core.transaction"];
1694
- remediation: {
1695
- readonly kind: "revise-selector";
1696
- readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1697
- };
1698
- } | {
1699
- docsUri: string;
1700
- code: "unavailable_resource_source_bytes";
1701
- owners: readonly ["core.transaction"];
1702
- remediation: {
1703
- readonly kind: "host-action";
1704
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1705
- };
1706
- } | {
1707
- docsUri: string;
1708
- code: "missing_source";
1709
- owners: readonly ["core.validation"];
1710
- remediation: {
1711
- readonly kind: "host-action";
1712
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1713
- };
1714
- } | {
1715
- docsUri: string;
1716
- code: "unreadable_source";
1717
- owners: readonly ["core.validation"];
1718
- remediation: {
1719
- readonly kind: "host-action";
1720
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1721
- };
1722
- } | {
1723
- docsUri: string;
1724
- code: "decode_capability_unavailable";
1725
- owners: readonly ["core.validation"];
1726
- remediation: {
1727
- readonly kind: "host-action";
1728
- readonly message: "Validation is incomplete, not passed. Inspect whether source bytes are unloaded or a decoder is unavailable. Ask the host to hydrate sources or provide the required decoder (Node image validation uses optional Sharp), then validate again. Do not install dependencies or change the project automatically.";
1729
- };
1730
- } | {
1731
- docsUri: string;
1732
- code: "session_id_conflict";
1733
- owners: readonly ["backend"];
1734
- remediation: {
1735
- readonly kind: "host-action";
1736
- readonly message: "Use getSession to inspect the existing session. Reuse it only for the intended project, or choose a new session ID; do not close another owner\\u0027s session to make room.";
1737
- };
1738
- } | {
1739
- docsUri: string;
1740
- code: "lock_conflict";
1741
- owners: readonly ["backend"];
1742
- remediation: {
1743
- readonly kind: "host-action";
1744
- readonly message: "Another owner holds the project lock. Preserve unsaved work and ask that owner to close its session, then explicitly reopen. Never remove a live lock, force-close a peer, or bypass locking.";
1745
- };
1746
- } | {
1747
- docsUri: string;
1748
- code: "event_cursor_invalid";
1749
- owners: readonly ["backend"];
1750
- remediation: {
1751
- readonly kind: "refresh-and-replan";
1752
- readonly message: "Read the error and getEvents cursor bounds. Request a fresh bounded event page without the invalid cursor and refresh the current outline before replanning; missing retained history is not evidence that nothing changed.";
1753
- };
1754
- } | {
1755
- docsUri: string;
1756
- code: "corrupt_source";
1757
- owners: readonly ["core.validation"];
1758
- remediation: {
1759
- readonly kind: "host-action";
1760
- readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1761
- };
1762
- } | {
1763
- docsUri: string;
1764
- code: "unsupported_operation";
1765
- owners: readonly ["core.transaction"];
1766
- remediation: {
1767
- readonly kind: "revise-operation";
1768
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1769
- };
1770
- } | {
1771
- docsUri: string;
1772
- code: "transaction_unsupported";
1773
- owners: readonly ["core.transaction"];
1774
- remediation: {
1775
- readonly kind: "revise-operation";
1776
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1777
- };
1778
- } | {
1779
- docsUri: string;
1780
- code: "unsupported_display_node_kind";
1781
- owners: readonly ["core.transaction"];
1782
- remediation: {
1783
- readonly kind: "revise-operation";
1784
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1785
- };
1786
- } | {
1787
- docsUri: string;
1788
- code: "unsupported_cross_package_image_ref";
1789
- owners: readonly ["core.transaction"];
1790
- remediation: {
1791
- readonly kind: "revise-operation";
1792
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1793
- };
1794
- } | {
1795
- docsUri: string;
1796
- code: "unsupported_gear_kind";
1797
- owners: readonly ["core.transaction"];
1798
- remediation: {
1799
- readonly kind: "revise-operation";
1800
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1801
- };
1802
- } | {
1803
- docsUri: string;
1804
- code: "unsupported_resource_mutation";
1805
- owners: readonly ["core.transaction"];
1806
- remediation: {
1807
- readonly kind: "revise-operation";
1808
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1809
- };
1810
- } | {
1811
- docsUri: string;
1812
- code: "unsupported_display_node_mutation";
1813
- owners: readonly ["core.transaction"];
1814
- remediation: {
1815
- readonly kind: "revise-operation";
1816
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1817
- };
1818
- } | {
1819
- docsUri: string;
1820
- code: "unsupported_text_field_target";
1821
- owners: readonly ["core.transaction"];
1822
- remediation: {
1823
- readonly kind: "revise-operation";
1824
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1825
- };
1826
- } | {
1827
- docsUri: string;
1828
- code: "unsupported_display_node_field";
1829
- owners: readonly ["core.transaction"];
1830
- remediation: {
1831
- readonly kind: "revise-operation";
1832
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1833
- };
1834
- } | {
1835
- docsUri: string;
1836
- code: "unsupported_operation_batch";
1837
- owners: readonly ["core.transaction"];
1838
- remediation: {
1839
- readonly kind: "revise-operation";
1840
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1841
- };
1842
- } | {
1843
- docsUri: string;
1844
- code: "unsupported_resource_kind";
1845
- owners: readonly ["core.transaction", "core.validation"];
1846
- remediation: {
1847
- readonly kind: "revise-operation";
1848
- readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1849
- };
1850
- } | {
1851
- docsUri: string;
1852
- code: "invalid_project_settings";
1853
- owners: readonly ["core.transaction"];
1854
- remediation: {
1855
- readonly kind: "revise-operation";
1856
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1857
- };
1858
- } | {
1859
- docsUri: string;
1860
- code: "invalid_package_settings";
1861
- owners: readonly ["core.transaction"];
1862
- remediation: {
1863
- readonly kind: "revise-operation";
1864
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1865
- };
1866
- } | {
1867
- docsUri: string;
1868
- code: "invalid_display_node_payload";
1869
- owners: readonly ["core.transaction"];
1870
- remediation: {
1871
- readonly kind: "revise-operation";
1872
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1873
- };
1874
- } | {
1875
- docsUri: string;
1876
- code: "invalid_resource_name";
1877
- owners: readonly ["core.transaction"];
1878
- remediation: {
1879
- readonly kind: "revise-operation";
1880
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1881
- };
1882
- } | {
1883
- docsUri: string;
1884
- code: "invalid_resource_path";
1885
- owners: readonly ["core.transaction"];
1886
- remediation: {
1887
- readonly kind: "revise-operation";
1888
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1889
- };
1890
- } | {
1891
- docsUri: string;
1892
- code: "invalid_resource_folder_path";
1893
- owners: readonly ["core.transaction"];
1894
- remediation: {
1895
- readonly kind: "revise-operation";
1896
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1897
- };
1898
- } | {
1899
- docsUri: string;
1900
- code: "invalid_resource_folder_atlas";
1901
- owners: readonly ["core.transaction"];
1902
- remediation: {
1903
- readonly kind: "revise-operation";
1904
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1905
- };
1906
- } | {
1907
- docsUri: string;
1908
- code: "invalid_attach_index";
1909
- owners: readonly ["core.transaction"];
1910
- remediation: {
1911
- readonly kind: "revise-operation";
1912
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1913
- };
1914
- } | {
1915
- docsUri: string;
1916
- code: "invalid_controller_payload";
1917
- owners: readonly ["core.transaction"];
1918
- remediation: {
1919
- readonly kind: "revise-operation";
1920
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1921
- };
1922
- } | {
1923
- docsUri: string;
1924
- code: "invalid_transition_payload";
1925
- owners: readonly ["core.transaction"];
1926
- remediation: {
1927
- readonly kind: "revise-operation";
1928
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1929
- };
1930
- } | {
1931
- docsUri: string;
1932
- code: "invalid_look_gear_payload";
1933
- owners: readonly ["core.transaction"];
1934
- remediation: {
1935
- readonly kind: "revise-operation";
1936
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1937
- };
1938
- } | {
1939
- docsUri: string;
1940
- code: "invalid_gear_payload";
1941
- owners: readonly ["core.transaction"];
1942
- remediation: {
1943
- readonly kind: "revise-operation";
1944
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1945
- };
1946
- } | {
1947
- docsUri: string;
1948
- code: "invalid_resource_payload";
1949
- owners: readonly ["core.transaction"];
1950
- remediation: {
1951
- readonly kind: "revise-operation";
1952
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1953
- };
1954
- } | {
1955
- docsUri: string;
1956
- code: "invalid_resource_bytes";
1957
- owners: readonly ["core.transaction"];
1958
- remediation: {
1959
- readonly kind: "revise-operation";
1960
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1961
- };
1962
- } | {
1963
- docsUri: string;
1964
- code: "invalid_movie_clip_jta";
1965
- owners: readonly ["core.transaction"];
1966
- remediation: {
1967
- readonly kind: "revise-operation";
1968
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1969
- };
1970
- } | {
1971
- docsUri: string;
1972
- code: "invalid_resource_index";
1973
- owners: readonly ["core.transaction"];
1974
- remediation: {
1975
- readonly kind: "revise-operation";
1976
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1977
- };
1978
- } | {
1979
- docsUri: string;
1980
- code: "invalid_branch_name";
1981
- owners: readonly ["core.transaction"];
1982
- remediation: {
1983
- readonly kind: "revise-operation";
1984
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1985
- };
1986
- } | {
1987
- docsUri: string;
1988
- code: "invalid_package_payload";
1989
- owners: readonly ["core.transaction"];
1990
- remediation: {
1991
- readonly kind: "revise-operation";
1992
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1993
- };
1994
- } | {
1995
- docsUri: string;
1996
- code: "invalid_package_index";
1997
- owners: readonly ["core.transaction"];
1998
- remediation: {
1999
- readonly kind: "revise-operation";
2000
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2001
- };
2002
- } | {
2003
- docsUri: string;
2004
- code: "invalid_component_payload";
2005
- owners: readonly ["core.transaction"];
2006
- remediation: {
2007
- readonly kind: "revise-operation";
2008
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2009
- };
2010
- } | {
2011
- docsUri: string;
2012
- code: "invalid_component_index";
2013
- owners: readonly ["core.transaction"];
2014
- remediation: {
2015
- readonly kind: "revise-operation";
2016
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2017
- };
2018
- } | {
2019
- docsUri: string;
2020
- code: "invalid_component_move";
2021
- owners: readonly ["core.transaction"];
2022
- remediation: {
2023
- readonly kind: "revise-operation";
2024
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2025
- };
2026
- } | {
2027
- docsUri: string;
2028
- code: "invalid_uam";
2029
- owners: readonly ["core.transaction", "core.validation"];
2030
- remediation: {
2031
- readonly kind: "revise-operation";
2032
- readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2033
- };
2034
- } | {
2035
- docsUri: string;
2036
- code: "project_settings_unchanged";
2037
- owners: readonly ["core.transaction"];
2038
- remediation: {
2039
- readonly kind: "refresh-and-replan";
2040
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2041
- };
2042
- } | {
2043
- docsUri: string;
2044
- code: "package_settings_unchanged";
2045
- owners: readonly ["core.transaction"];
2046
- remediation: {
2047
- readonly kind: "refresh-and-replan";
2048
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2049
- };
2050
- } | {
2051
- docsUri: string;
2052
- code: "display_node_props_unchanged";
2053
- owners: readonly ["core.transaction"];
2054
- remediation: {
2055
- readonly kind: "refresh-and-replan";
2056
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2057
- };
2058
- } | {
2059
- docsUri: string;
2060
- code: "resource_folder_atlas_unchanged";
2061
- owners: readonly ["core.transaction"];
2062
- remediation: {
2063
- readonly kind: "refresh-and-replan";
2064
- readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2065
- };
2066
- } | {
2067
- docsUri: string;
2068
- code: "duplicate_look_gear_controller";
2069
- owners: readonly ["core.transaction"];
2070
- remediation: {
2071
- readonly kind: "revise-operation";
2072
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2073
- };
2074
- } | {
2075
- docsUri: string;
2076
- code: "duplicate_transition_name";
2077
- owners: readonly ["core.transaction"];
2078
- remediation: {
2079
- readonly kind: "revise-operation";
2080
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2081
- };
2082
- } | {
2083
- docsUri: string;
2084
- code: "duplicate_look_gear_state_page";
2085
- owners: readonly ["core.transaction"];
2086
- remediation: {
2087
- readonly kind: "revise-operation";
2088
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2089
- };
2090
- } | {
2091
- docsUri: string;
2092
- code: "duplicate_gear_controller";
2093
- owners: readonly ["core.transaction"];
2094
- remediation: {
2095
- readonly kind: "revise-operation";
2096
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2097
- };
2098
- } | {
2099
- docsUri: string;
2100
- code: "duplicate_gear_state_page";
2101
- owners: readonly ["core.transaction"];
2102
- remediation: {
2103
- readonly kind: "revise-operation";
2104
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2105
- };
2106
- } | {
2107
- docsUri: string;
2108
- code: "duplicate_branch_name";
2109
- owners: readonly ["core.transaction"];
2110
- remediation: {
2111
- readonly kind: "revise-operation";
2112
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2113
- };
2114
- } | {
2115
- docsUri: string;
2116
- code: "duplicate_component_id";
2117
- owners: readonly ["core.transaction"];
2118
- remediation: {
2119
- readonly kind: "revise-operation";
2120
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2121
- };
2122
- } | {
2123
- docsUri: string;
2124
- code: "resource_folder_conflict";
2125
- owners: readonly ["core.transaction"];
2126
- remediation: {
2127
- readonly kind: "revise-operation";
2128
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2129
- };
2130
- } | {
2131
- docsUri: string;
2132
- code: "duplicate_resource_id";
2133
- owners: readonly ["core.transaction", "core.validation"];
2134
- remediation: {
2135
- readonly kind: "revise-operation";
2136
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2137
- };
2138
- } | {
2139
- docsUri: string;
2140
- code: "duplicate_package_id";
2141
- owners: readonly ["core.transaction", "core.validation"];
2142
- remediation: {
2143
- readonly kind: "revise-operation";
2144
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2145
- };
2146
- } | {
2147
- docsUri: string;
2148
- code: "duplicate_package_name";
2149
- owners: readonly ["core.transaction", "core.validation"];
2150
- remediation: {
2151
- readonly kind: "revise-operation";
2152
- readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2153
- };
2154
- } | {
2155
- docsUri: string;
2156
- code: "resource_folder_not_empty";
2157
- owners: readonly ["core.transaction"];
2158
- remediation: {
2159
- readonly kind: "revise-operation";
2160
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2161
- };
2162
- } | {
2163
- docsUri: string;
2164
- code: "branch_not_empty";
2165
- owners: readonly ["core.transaction"];
2166
- remediation: {
2167
- readonly kind: "revise-operation";
2168
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2169
- };
2170
- } | {
2171
- docsUri: string;
2172
- code: "branch_referenced";
2173
- owners: readonly ["core.transaction"];
2174
- remediation: {
2175
- readonly kind: "revise-operation";
2176
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2177
- };
2178
- } | {
2179
- docsUri: string;
2180
- code: "invalid_resource_reference";
2181
- owners: readonly ["core.transaction"];
2182
- remediation: {
2183
- readonly kind: "revise-operation";
2184
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2185
- };
2186
- } | {
2187
- docsUri: string;
2188
- code: "invalid_component_reference";
2189
- owners: readonly ["core.transaction"];
2190
- remediation: {
2191
- readonly kind: "revise-operation";
2192
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2193
- };
2194
- } | {
2195
- docsUri: string;
2196
- code: "invalid_group_reference";
2197
- owners: readonly ["core.transaction"];
2198
- remediation: {
2199
- readonly kind: "revise-operation";
2200
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2201
- };
2202
- } | {
2203
- docsUri: string;
2204
- code: "package_referenced";
2205
- owners: readonly ["core.transaction"];
2206
- remediation: {
2207
- readonly kind: "revise-operation";
2208
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2209
- };
2210
- } | {
2211
- docsUri: string;
2212
- code: "component_referenced";
2213
- owners: readonly ["core.transaction"];
2214
- remediation: {
2215
- readonly kind: "revise-operation";
2216
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2217
- };
2218
- } | {
2219
- docsUri: string;
2220
- code: "component_has_package_dependencies";
2221
- owners: readonly ["core.transaction"];
2222
- remediation: {
2223
- readonly kind: "revise-operation";
2224
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2225
- };
2226
- } | {
2227
- docsUri: string;
2228
- code: "dangling_resource_reference";
2229
- owners: readonly ["core.validation"];
2230
- remediation: {
2231
- readonly kind: "revise-operation";
2232
- readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2233
- };
2234
- } | {
2235
- docsUri: string;
2236
- code: "invalid_project_xml";
2237
- owners: readonly ["core.validation"];
2238
- remediation: {
2239
- readonly kind: "host-action";
2240
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2241
- };
2242
- } | {
2243
- docsUri: string;
2244
- code: "invalid_package_xml";
2245
- owners: readonly ["core.validation"];
2246
- remediation: {
2247
- readonly kind: "host-action";
2248
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2249
- };
2250
- } | {
2251
- docsUri: string;
2252
- code: "invalid_branch_package_xml";
2253
- owners: readonly ["core.validation"];
2254
- remediation: {
2255
- readonly kind: "host-action";
2256
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2257
- };
2258
- } | {
2259
- docsUri: string;
2260
- code: "invalid_component_xml";
2261
- owners: readonly ["core.validation"];
2262
- remediation: {
2263
- readonly kind: "host-action";
2264
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2265
- };
2266
- } | {
2267
- docsUri: string;
2268
- code: "invalid_project_value";
2269
- owners: readonly ["core.validation"];
2270
- remediation: {
2271
- readonly kind: "host-action";
2272
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2273
- };
2274
- } | {
2275
- docsUri: string;
2276
- code: "desktop_incompatible_geometry";
2277
- owners: readonly ["core.validation"];
2278
- remediation: {
2279
- readonly kind: "host-action";
2280
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2281
- };
2282
- } | {
2283
- docsUri: string;
2284
- code: "invalid_settings_json";
2285
- owners: readonly ["core.validation"];
2286
- remediation: {
2287
- readonly kind: "host-action";
2288
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2289
- };
2290
- } | {
2291
- docsUri: string;
2292
- code: "path_collision";
2293
- owners: readonly ["core.validation"];
2294
- remediation: {
2295
- readonly kind: "host-action";
2296
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
2297
- };
2298
- } | {
2299
- docsUri: string;
2300
- code: "unsafe_path";
2301
- owners: readonly ["core.validation"];
2302
- remediation: {
2303
- readonly kind: "host-action";
2304
- readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
2305
- };
2306
- } | {
2307
- docsUri: string;
2308
- code: "capability_unavailable";
2309
- owners: readonly ["backend"];
2310
- remediation: {
2311
- readonly kind: "host-action";
2312
- readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
2313
- };
2314
- } | {
2315
- docsUri: string;
2316
- code: "uam_fidelity_unsupported";
2317
- owners: readonly ["backend"];
2318
- remediation: {
2319
- readonly kind: "host-action";
2320
- readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
2321
- };
2322
- } | {
2323
- docsUri: string;
2324
- code: "save_partial_failure";
2325
- owners: readonly ["backend"];
2326
- remediation: {
2327
- readonly kind: "host-action";
2328
- readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
2329
- };
2330
- } | {
2331
- docsUri: string;
2332
- code: "write_failed";
2333
- owners: readonly ["backend"];
2334
- remediation: {
2335
- readonly kind: "host-action";
2336
- readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
2337
- };
2338
- } | {
2339
- docsUri: string;
2340
- code: "project_open_failed";
2341
- owners: readonly ["backend"];
2342
- remediation: {
2343
- readonly kind: "host-action";
2344
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2345
- };
2346
- } | {
2347
- docsUri: string;
2348
- code: "materialize_validation_failed";
2349
- owners: readonly ["backend"];
2350
- remediation: {
2351
- readonly kind: "host-action";
2352
- readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2353
- };
2354
- } | {
2355
- docsUri: string;
2356
- code: "execution_failure";
2357
- owners: readonly ["core.transaction"];
2358
- remediation: {
2359
- readonly kind: "host-action";
2360
- readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
2361
- };
2362
- };
2363
- //#endregion
2364
5
  //#region src/storage.d.ts
2365
6
  type StorageStatKind = 'file' | 'directory';
2366
7
  interface BackendStorageStatLike {
@@ -2370,6 +11,8 @@ interface BackendStorageStatLike {
2370
11
  isDirectory?(): boolean;
2371
12
  }
2372
13
  interface BackendAsyncStorageAdapter {
14
+ /** Whether canonical storage paths distinguish case. Defaults to true (including OPFS). */
15
+ caseSensitivePaths?: boolean;
2373
16
  readFile(filePath: string): Promise<string>;
2374
17
  readFileRaw(filePath: string): Promise<Uint8Array>;
2375
18
  writeFile(filePath: string, content: string): Promise<void>;
@@ -2396,4 +39,4 @@ interface BackendAsyncStorageAdapter {
2396
39
  type BackendStorageFileSystem = BackendFileSystem & FileSystem;
2397
40
  declare function createBackendStorageFileSystem(storage: BackendAsyncStorageAdapter): BackendStorageFileSystem;
2398
41
  //#endregion
2399
- export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, BACKEND_DIAGNOSTICS_URI, BACKEND_DIAGNOSTIC_TEMPLATE, BACKEND_ENTITY_QUERY_LIMITS, BACKEND_SESSION_READ_LIMITS, BACKEND_TRANSACTION_PREVIEW_LIMITS, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendComponentSnapshot, type BackendDiagnostic, type BackendDiagnosticCode, type BackendDiagnosticGuide, type BackendDiagnosticOwner, type BackendDiagnosticRemediation, type BackendEntitySnapshot, type BackendEntityTarget, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type BackendMessage, type BackendMethodName, type BackendPackageSnapshot, type BackendProjectOutline, type BackendProjectOutlinePackage, type BackendProjectOutlineResource, type BackendProjectSessionStorage, type BackendProjectSnapshot, type BackendResourceBytesSnapshot, type BackendResourceSnapshot, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionPackageModel, type BackendSessionProjectModel, type BackendSessionResourceModel, type BackendSessionSnapshot, type BackendSessionStateSnapshot, type BackendStage, type BackendStorageFileSystem, type BackendStorageStatLike, type BackendSuccess, type BackendTransactionEntityChange, type BackendTransactionPreview, type EntityQueryError, type EventCursorInvalidError, type GetCacheSnapshotInput, type GetEventsInput, type GetEventsSnapshot, type GetProjectOutlineInput, type InProcessLockConflictError, type MaterializeSessionInput, type MaterializeSessionSnapshot, type MaterializeValidationFailedError, type MaterializeWriteFailedError, type OpenProjectSessionInput, type ProjectOpenFailedError, type ProjectRootNotAllowedError, ProjectWriteTransactionError, type QueryEntityInput, type ReadResourceBytesInput, type ReadSessionStateInput, type RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionCloseFailedError, type SessionIdConflictError, type SessionNotFoundError, type SessionReadError, type SessionStaleReadError, type SessionStaleWriteError, type TransactionPreviewError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem, getBackendDiagnosticCatalog, getBackendDiagnosticGuide };
42
+ export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, BACKEND_DIAGNOSTICS_URI, BACKEND_DIAGNOSTIC_TEMPLATE, BACKEND_ENTITY_QUERY_LIMITS, BACKEND_SESSION_READ_LIMITS, BACKEND_TRANSACTION_PREVIEW_LIMITS, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendComponentSnapshot, type BackendDiagnostic, type BackendDiagnosticCode, type BackendDiagnosticGuide, type BackendDiagnosticOwner, type BackendDiagnosticRemediation, type BackendEntitySnapshot, type BackendEntityTarget, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type BackendMessage, type BackendMethodName, type BackendPackageSnapshot, type BackendProjectOutline, type BackendProjectOutlinePackage, type BackendProjectOutlineResource, type BackendProjectSessionStorage, type BackendProjectSnapshot, type BackendResourceBytesSnapshot, type BackendResourceSnapshot, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionPackageModel, type BackendSessionProjectModel, type BackendSessionResourceModel, type BackendSessionSnapshot, type BackendSessionStateSnapshot, type BackendStage, type BackendStorageFileSystem, type BackendStorageStatLike, type BackendSuccess, type BackendTransactionEntityChange, type BackendTransactionPreview, type EntityQueryError, type EventCursorInvalidError, type GetCacheSnapshotInput, type GetEventsInput, type GetEventsSnapshot, type GetProjectOutlineInput, type InProcessLockConflictError, type MaterializeSessionInput, type MaterializeSessionSnapshot, type MaterializeValidationFailedError, type MaterializeWriteFailedError, type OpenProjectSessionInput, type ProjectOpenFailedError, type ProjectOpenFailureReason, type ProjectRootNotAllowedError, ProjectWriteTransactionError, type ProjectWriteTransactionResult, type QueryEntityInput, type ReadResourceBytesInput, type ReadSessionStateInput, type RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionCloseFailedError, type SessionIdConflictError, type SessionLimitExceededError, type SessionNotFoundError, type SessionReadError, type SessionStaleReadError, type SessionStaleWriteError, type TransactionPreviewError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem, getBackendDiagnosticCatalog, getBackendDiagnosticGuide };