@openfairygui/backend 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +11506 -5902
  8. package/dist/docs.d.cts +5 -185
  9. package/dist/docs.d.mts +5 -185
  10. package/dist/docs.mjs +11504 -5901
  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 -24165
  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
@@ -0,0 +1,1679 @@
1
+ import { a as BackendDiagnosticCode, o as BackendDiagnosticOwner, s as BackendDiagnosticRemediation } from "./contracts-Bx8HUr7I.cjs";
2
+
3
+ //#region src/diagnostics.d.ts
4
+ /** Shared codes list all canonical owners; responses preserve the actual reporting owner. */
5
+ interface BackendDiagnosticGuide {
6
+ code: BackendDiagnosticCode;
7
+ owners: readonly BackendDiagnosticOwner[];
8
+ remediation: Omit<BackendDiagnosticRemediation, 'read'>;
9
+ }
10
+ declare const BACKEND_DIAGNOSTICS_URI = "openfairygui://docs/diagnostics";
11
+ declare const BACKEND_DIAGNOSTIC_TEMPLATE = "openfairygui://docs/diagnostics/{code}";
12
+ declare function getBackendDiagnosticCatalog(): ({
13
+ docsUri: string;
14
+ code: "stale_read";
15
+ owners: readonly ["backend"];
16
+ remediation: {
17
+ readonly kind: "refresh-and-replan";
18
+ 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.";
19
+ };
20
+ } | {
21
+ docsUri: string;
22
+ code: "session_read_failed";
23
+ owners: readonly ["backend"];
24
+ remediation: {
25
+ readonly kind: "host-action";
26
+ 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.";
27
+ };
28
+ } | {
29
+ docsUri: string;
30
+ code: "transaction_preview_failed";
31
+ owners: readonly ["backend"];
32
+ remediation: {
33
+ readonly kind: "host-action";
34
+ 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.";
35
+ };
36
+ } | {
37
+ docsUri: string;
38
+ code: "stale_write";
39
+ owners: readonly ["backend"];
40
+ remediation: {
41
+ readonly kind: "refresh-and-replan";
42
+ 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.";
43
+ };
44
+ } | {
45
+ docsUri: string;
46
+ code: "entity_query_failed";
47
+ owners: readonly ["backend"];
48
+ remediation: {
49
+ readonly kind: "host-action";
50
+ 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.";
51
+ };
52
+ } | {
53
+ docsUri: string;
54
+ code: "session_not_found";
55
+ owners: readonly ["backend"];
56
+ remediation: {
57
+ readonly kind: "host-action";
58
+ 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.";
59
+ };
60
+ } | {
61
+ docsUri: string;
62
+ code: "session_close_failed";
63
+ owners: readonly ["backend"];
64
+ remediation: {
65
+ readonly kind: "host-action";
66
+ 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.";
67
+ };
68
+ } | {
69
+ docsUri: string;
70
+ code: "path_policy_violation";
71
+ owners: readonly ["backend"];
72
+ remediation: {
73
+ readonly kind: "host-action";
74
+ 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.";
75
+ };
76
+ } | {
77
+ docsUri: string;
78
+ code: "project_root_not_allowed";
79
+ owners: readonly ["backend"];
80
+ remediation: {
81
+ readonly kind: "host-action";
82
+ 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.";
83
+ };
84
+ } | {
85
+ docsUri: string;
86
+ code: "invalid_package_selector";
87
+ owners: readonly ["core.transaction"];
88
+ remediation: {
89
+ readonly kind: "revise-selector";
90
+ 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.";
91
+ };
92
+ } | {
93
+ docsUri: string;
94
+ code: "invalid_component_selector";
95
+ owners: readonly ["core.transaction"];
96
+ remediation: {
97
+ readonly kind: "revise-selector";
98
+ 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.";
99
+ };
100
+ } | {
101
+ docsUri: string;
102
+ code: "invalid_resource_selector";
103
+ owners: readonly ["core.transaction"];
104
+ remediation: {
105
+ readonly kind: "revise-selector";
106
+ 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.";
107
+ };
108
+ } | {
109
+ docsUri: string;
110
+ code: "invalid_display_node_selector";
111
+ owners: readonly ["core.transaction"];
112
+ remediation: {
113
+ readonly kind: "revise-selector";
114
+ 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.";
115
+ };
116
+ } | {
117
+ docsUri: string;
118
+ code: "invalid_resource_folder_selector";
119
+ owners: readonly ["core.transaction"];
120
+ remediation: {
121
+ readonly kind: "revise-selector";
122
+ 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.";
123
+ };
124
+ } | {
125
+ docsUri: string;
126
+ code: "invalid_branch_selector";
127
+ owners: readonly ["core.transaction"];
128
+ remediation: {
129
+ readonly kind: "revise-selector";
130
+ 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.";
131
+ };
132
+ } | {
133
+ docsUri: string;
134
+ code: "invalid_gear_selector";
135
+ owners: readonly ["core.transaction"];
136
+ remediation: {
137
+ readonly kind: "revise-selector";
138
+ 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.";
139
+ };
140
+ } | {
141
+ docsUri: string;
142
+ code: "invalid_look_gear_selector";
143
+ owners: readonly ["core.transaction"];
144
+ remediation: {
145
+ readonly kind: "revise-selector";
146
+ 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.";
147
+ };
148
+ } | {
149
+ docsUri: string;
150
+ code: "selector_ambiguity";
151
+ owners: readonly ["core.transaction"];
152
+ remediation: {
153
+ readonly kind: "revise-selector";
154
+ 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.";
155
+ };
156
+ } | {
157
+ docsUri: string;
158
+ code: "unavailable_resource_source_bytes";
159
+ owners: readonly ["core.transaction"];
160
+ remediation: {
161
+ readonly kind: "host-action";
162
+ 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.";
163
+ };
164
+ } | {
165
+ docsUri: string;
166
+ code: "missing_source";
167
+ owners: readonly ["core.validation"];
168
+ remediation: {
169
+ readonly kind: "host-action";
170
+ 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.";
171
+ };
172
+ } | {
173
+ docsUri: string;
174
+ code: "unreadable_source";
175
+ owners: readonly ["core.validation"];
176
+ remediation: {
177
+ readonly kind: "host-action";
178
+ 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.";
179
+ };
180
+ } | {
181
+ docsUri: string;
182
+ code: "decode_capability_unavailable";
183
+ owners: readonly ["core.validation"];
184
+ remediation: {
185
+ readonly kind: "host-action";
186
+ 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.";
187
+ };
188
+ } | {
189
+ docsUri: string;
190
+ code: "session_limit_exceeded";
191
+ owners: readonly ["backend"];
192
+ remediation: {
193
+ readonly kind: "host-action";
194
+ readonly message: "Close sessions you opened and no longer need with closeSession, then retry. Do not close sessions owned by another task or host; ask the host to raise maxSessions if more concurrent projects are required.";
195
+ };
196
+ } | {
197
+ docsUri: string;
198
+ code: "session_id_conflict";
199
+ owners: readonly ["backend"];
200
+ remediation: {
201
+ readonly kind: "host-action";
202
+ 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.";
203
+ };
204
+ } | {
205
+ docsUri: string;
206
+ code: "lock_conflict";
207
+ owners: readonly ["backend"];
208
+ remediation: {
209
+ readonly kind: "host-action";
210
+ 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.";
211
+ };
212
+ } | {
213
+ docsUri: string;
214
+ code: "event_cursor_invalid";
215
+ owners: readonly ["backend"];
216
+ remediation: {
217
+ readonly kind: "refresh-and-replan";
218
+ 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.";
219
+ };
220
+ } | {
221
+ docsUri: string;
222
+ code: "corrupt_source";
223
+ owners: readonly ["core.validation"];
224
+ remediation: {
225
+ readonly kind: "host-action";
226
+ 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.";
227
+ };
228
+ } | {
229
+ docsUri: string;
230
+ code: "unsupported_operation";
231
+ owners: readonly ["core.transaction"];
232
+ remediation: {
233
+ readonly kind: "revise-operation";
234
+ 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.";
235
+ };
236
+ } | {
237
+ docsUri: string;
238
+ code: "invalid_operation_payload";
239
+ owners: readonly ["core.transaction"];
240
+ remediation: {
241
+ readonly kind: "revise-operation";
242
+ 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.";
243
+ };
244
+ } | {
245
+ docsUri: string;
246
+ code: "transaction_unsupported";
247
+ owners: readonly ["core.transaction"];
248
+ remediation: {
249
+ readonly kind: "revise-operation";
250
+ 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.";
251
+ };
252
+ } | {
253
+ docsUri: string;
254
+ code: "unsupported_display_node_kind";
255
+ owners: readonly ["core.transaction"];
256
+ remediation: {
257
+ readonly kind: "revise-operation";
258
+ 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.";
259
+ };
260
+ } | {
261
+ docsUri: string;
262
+ code: "unsupported_cross_package_image_ref";
263
+ owners: readonly ["core.transaction"];
264
+ remediation: {
265
+ readonly kind: "revise-operation";
266
+ 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.";
267
+ };
268
+ } | {
269
+ docsUri: string;
270
+ code: "unsupported_gear_kind";
271
+ owners: readonly ["core.transaction"];
272
+ remediation: {
273
+ readonly kind: "revise-operation";
274
+ 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.";
275
+ };
276
+ } | {
277
+ docsUri: string;
278
+ code: "unsupported_resource_mutation";
279
+ owners: readonly ["core.transaction"];
280
+ remediation: {
281
+ readonly kind: "revise-operation";
282
+ 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.";
283
+ };
284
+ } | {
285
+ docsUri: string;
286
+ code: "unsupported_display_node_mutation";
287
+ owners: readonly ["core.transaction"];
288
+ remediation: {
289
+ readonly kind: "revise-operation";
290
+ 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.";
291
+ };
292
+ } | {
293
+ docsUri: string;
294
+ code: "unsupported_text_field_target";
295
+ owners: readonly ["core.transaction"];
296
+ remediation: {
297
+ readonly kind: "revise-operation";
298
+ 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.";
299
+ };
300
+ } | {
301
+ docsUri: string;
302
+ code: "unsupported_display_node_field";
303
+ owners: readonly ["core.transaction"];
304
+ remediation: {
305
+ readonly kind: "revise-operation";
306
+ 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.";
307
+ };
308
+ } | {
309
+ docsUri: string;
310
+ code: "unsupported_operation_batch";
311
+ owners: readonly ["core.transaction"];
312
+ remediation: {
313
+ readonly kind: "revise-operation";
314
+ 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.";
315
+ };
316
+ } | {
317
+ docsUri: string;
318
+ code: "unsupported_resource_kind";
319
+ owners: readonly ["core.transaction", "core.validation"];
320
+ remediation: {
321
+ readonly kind: "revise-operation";
322
+ 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.";
323
+ };
324
+ } | {
325
+ docsUri: string;
326
+ code: "invalid_project_settings";
327
+ owners: readonly ["core.transaction"];
328
+ remediation: {
329
+ readonly kind: "revise-operation";
330
+ 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.";
331
+ };
332
+ } | {
333
+ docsUri: string;
334
+ code: "invalid_package_settings";
335
+ owners: readonly ["core.transaction"];
336
+ remediation: {
337
+ readonly kind: "revise-operation";
338
+ 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.";
339
+ };
340
+ } | {
341
+ docsUri: string;
342
+ code: "invalid_display_node_payload";
343
+ owners: readonly ["core.transaction"];
344
+ remediation: {
345
+ readonly kind: "revise-operation";
346
+ 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.";
347
+ };
348
+ } | {
349
+ docsUri: string;
350
+ code: "invalid_resource_name";
351
+ owners: readonly ["core.transaction"];
352
+ remediation: {
353
+ readonly kind: "revise-operation";
354
+ 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.";
355
+ };
356
+ } | {
357
+ docsUri: string;
358
+ code: "invalid_resource_path";
359
+ owners: readonly ["core.transaction"];
360
+ remediation: {
361
+ readonly kind: "revise-operation";
362
+ 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.";
363
+ };
364
+ } | {
365
+ docsUri: string;
366
+ code: "invalid_resource_folder_path";
367
+ owners: readonly ["core.transaction"];
368
+ remediation: {
369
+ readonly kind: "revise-operation";
370
+ 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.";
371
+ };
372
+ } | {
373
+ docsUri: string;
374
+ code: "invalid_resource_folder_atlas";
375
+ owners: readonly ["core.transaction"];
376
+ remediation: {
377
+ readonly kind: "revise-operation";
378
+ 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.";
379
+ };
380
+ } | {
381
+ docsUri: string;
382
+ code: "invalid_attach_index";
383
+ owners: readonly ["core.transaction"];
384
+ remediation: {
385
+ readonly kind: "revise-operation";
386
+ 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.";
387
+ };
388
+ } | {
389
+ docsUri: string;
390
+ code: "invalid_controller_payload";
391
+ owners: readonly ["core.transaction"];
392
+ remediation: {
393
+ readonly kind: "revise-operation";
394
+ 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.";
395
+ };
396
+ } | {
397
+ docsUri: string;
398
+ code: "invalid_transition_payload";
399
+ owners: readonly ["core.transaction"];
400
+ remediation: {
401
+ readonly kind: "revise-operation";
402
+ 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.";
403
+ };
404
+ } | {
405
+ docsUri: string;
406
+ code: "invalid_look_gear_payload";
407
+ owners: readonly ["core.transaction"];
408
+ remediation: {
409
+ readonly kind: "revise-operation";
410
+ 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.";
411
+ };
412
+ } | {
413
+ docsUri: string;
414
+ code: "invalid_gear_payload";
415
+ owners: readonly ["core.transaction"];
416
+ remediation: {
417
+ readonly kind: "revise-operation";
418
+ 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.";
419
+ };
420
+ } | {
421
+ docsUri: string;
422
+ code: "invalid_resource_payload";
423
+ owners: readonly ["core.transaction"];
424
+ remediation: {
425
+ readonly kind: "revise-operation";
426
+ 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.";
427
+ };
428
+ } | {
429
+ docsUri: string;
430
+ code: "projection_failed";
431
+ owners: readonly ["core.transaction"];
432
+ remediation: {
433
+ readonly kind: "host-action";
434
+ readonly message: "Transaction projection failed. Inspect the project and operation batch; no successful support decision is available and no change has been applied.";
435
+ };
436
+ } | {
437
+ docsUri: string;
438
+ code: "invalid_resource_bytes";
439
+ owners: readonly ["core.transaction"];
440
+ remediation: {
441
+ readonly kind: "revise-operation";
442
+ 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.";
443
+ };
444
+ } | {
445
+ docsUri: string;
446
+ code: "invalid_movie_clip_jta";
447
+ owners: readonly ["core.transaction"];
448
+ remediation: {
449
+ readonly kind: "revise-operation";
450
+ 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.";
451
+ };
452
+ } | {
453
+ docsUri: string;
454
+ code: "invalid_resource_index";
455
+ owners: readonly ["core.transaction"];
456
+ remediation: {
457
+ readonly kind: "revise-operation";
458
+ 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.";
459
+ };
460
+ } | {
461
+ docsUri: string;
462
+ code: "invalid_branch_name";
463
+ owners: readonly ["core.transaction"];
464
+ remediation: {
465
+ readonly kind: "revise-operation";
466
+ 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.";
467
+ };
468
+ } | {
469
+ docsUri: string;
470
+ code: "invalid_package_payload";
471
+ owners: readonly ["core.transaction"];
472
+ remediation: {
473
+ readonly kind: "revise-operation";
474
+ 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.";
475
+ };
476
+ } | {
477
+ docsUri: string;
478
+ code: "invalid_package_index";
479
+ owners: readonly ["core.transaction"];
480
+ remediation: {
481
+ readonly kind: "revise-operation";
482
+ 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.";
483
+ };
484
+ } | {
485
+ docsUri: string;
486
+ code: "invalid_component_payload";
487
+ owners: readonly ["core.transaction"];
488
+ remediation: {
489
+ readonly kind: "revise-operation";
490
+ 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.";
491
+ };
492
+ } | {
493
+ docsUri: string;
494
+ code: "invalid_component_index";
495
+ owners: readonly ["core.transaction"];
496
+ remediation: {
497
+ readonly kind: "revise-operation";
498
+ 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.";
499
+ };
500
+ } | {
501
+ docsUri: string;
502
+ code: "invalid_component_move";
503
+ owners: readonly ["core.transaction"];
504
+ remediation: {
505
+ readonly kind: "revise-operation";
506
+ 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.";
507
+ };
508
+ } | {
509
+ docsUri: string;
510
+ code: "invalid_uam";
511
+ owners: readonly ["core.transaction", "core.validation"];
512
+ remediation: {
513
+ readonly kind: "revise-operation";
514
+ 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.";
515
+ };
516
+ } | {
517
+ docsUri: string;
518
+ code: "project_settings_unchanged";
519
+ owners: readonly ["core.transaction"];
520
+ remediation: {
521
+ readonly kind: "refresh-and-replan";
522
+ 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.";
523
+ };
524
+ } | {
525
+ docsUri: string;
526
+ code: "package_settings_unchanged";
527
+ owners: readonly ["core.transaction"];
528
+ remediation: {
529
+ readonly kind: "refresh-and-replan";
530
+ 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.";
531
+ };
532
+ } | {
533
+ docsUri: string;
534
+ code: "display_node_props_unchanged";
535
+ owners: readonly ["core.transaction"];
536
+ remediation: {
537
+ readonly kind: "refresh-and-replan";
538
+ 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.";
539
+ };
540
+ } | {
541
+ docsUri: string;
542
+ code: "resource_folder_atlas_unchanged";
543
+ owners: readonly ["core.transaction"];
544
+ remediation: {
545
+ readonly kind: "refresh-and-replan";
546
+ 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.";
547
+ };
548
+ } | {
549
+ docsUri: string;
550
+ code: "duplicate_look_gear_controller";
551
+ owners: readonly ["core.transaction"];
552
+ remediation: {
553
+ readonly kind: "revise-operation";
554
+ 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.";
555
+ };
556
+ } | {
557
+ docsUri: string;
558
+ code: "duplicate_transition_name";
559
+ owners: readonly ["core.transaction"];
560
+ remediation: {
561
+ readonly kind: "revise-operation";
562
+ 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.";
563
+ };
564
+ } | {
565
+ docsUri: string;
566
+ code: "duplicate_look_gear_state_page";
567
+ owners: readonly ["core.transaction"];
568
+ remediation: {
569
+ readonly kind: "revise-operation";
570
+ 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.";
571
+ };
572
+ } | {
573
+ docsUri: string;
574
+ code: "duplicate_gear_controller";
575
+ owners: readonly ["core.transaction"];
576
+ remediation: {
577
+ readonly kind: "revise-operation";
578
+ 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.";
579
+ };
580
+ } | {
581
+ docsUri: string;
582
+ code: "duplicate_gear_state_page";
583
+ owners: readonly ["core.transaction"];
584
+ remediation: {
585
+ readonly kind: "revise-operation";
586
+ 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.";
587
+ };
588
+ } | {
589
+ docsUri: string;
590
+ code: "duplicate_branch_name";
591
+ owners: readonly ["core.transaction"];
592
+ remediation: {
593
+ readonly kind: "revise-operation";
594
+ 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.";
595
+ };
596
+ } | {
597
+ docsUri: string;
598
+ code: "duplicate_component_id";
599
+ owners: readonly ["core.transaction"];
600
+ remediation: {
601
+ readonly kind: "revise-operation";
602
+ 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.";
603
+ };
604
+ } | {
605
+ docsUri: string;
606
+ code: "resource_folder_conflict";
607
+ owners: readonly ["core.transaction"];
608
+ remediation: {
609
+ readonly kind: "revise-operation";
610
+ 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.";
611
+ };
612
+ } | {
613
+ docsUri: string;
614
+ code: "duplicate_resource_id";
615
+ owners: readonly ["core.transaction", "core.validation"];
616
+ remediation: {
617
+ readonly kind: "revise-operation";
618
+ 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.";
619
+ };
620
+ } | {
621
+ docsUri: string;
622
+ code: "duplicate_package_id";
623
+ owners: readonly ["core.transaction", "core.validation"];
624
+ remediation: {
625
+ readonly kind: "revise-operation";
626
+ 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.";
627
+ };
628
+ } | {
629
+ docsUri: string;
630
+ code: "duplicate_package_name";
631
+ owners: readonly ["core.transaction", "core.validation"];
632
+ remediation: {
633
+ readonly kind: "revise-operation";
634
+ 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.";
635
+ };
636
+ } | {
637
+ docsUri: string;
638
+ code: "resource_folder_not_empty";
639
+ owners: readonly ["core.transaction"];
640
+ remediation: {
641
+ readonly kind: "revise-operation";
642
+ 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.";
643
+ };
644
+ } | {
645
+ docsUri: string;
646
+ code: "branch_not_empty";
647
+ owners: readonly ["core.transaction"];
648
+ remediation: {
649
+ readonly kind: "revise-operation";
650
+ 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.";
651
+ };
652
+ } | {
653
+ docsUri: string;
654
+ code: "branch_referenced";
655
+ owners: readonly ["core.transaction"];
656
+ remediation: {
657
+ readonly kind: "revise-operation";
658
+ 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.";
659
+ };
660
+ } | {
661
+ docsUri: string;
662
+ code: "invalid_resource_reference";
663
+ owners: readonly ["core.transaction"];
664
+ remediation: {
665
+ readonly kind: "revise-operation";
666
+ 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.";
667
+ };
668
+ } | {
669
+ docsUri: string;
670
+ code: "invalid_component_reference";
671
+ owners: readonly ["core.transaction"];
672
+ remediation: {
673
+ readonly kind: "revise-operation";
674
+ 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.";
675
+ };
676
+ } | {
677
+ docsUri: string;
678
+ code: "invalid_group_reference";
679
+ owners: readonly ["core.transaction"];
680
+ remediation: {
681
+ readonly kind: "revise-operation";
682
+ 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.";
683
+ };
684
+ } | {
685
+ docsUri: string;
686
+ code: "package_referenced";
687
+ owners: readonly ["core.transaction"];
688
+ remediation: {
689
+ readonly kind: "revise-operation";
690
+ 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.";
691
+ };
692
+ } | {
693
+ docsUri: string;
694
+ code: "component_referenced";
695
+ owners: readonly ["core.transaction"];
696
+ remediation: {
697
+ readonly kind: "revise-operation";
698
+ 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.";
699
+ };
700
+ } | {
701
+ docsUri: string;
702
+ code: "component_has_package_dependencies";
703
+ owners: readonly ["core.transaction"];
704
+ remediation: {
705
+ readonly kind: "revise-operation";
706
+ 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.";
707
+ };
708
+ } | {
709
+ docsUri: string;
710
+ code: "dangling_resource_reference";
711
+ owners: readonly ["core.validation"];
712
+ remediation: {
713
+ readonly kind: "revise-operation";
714
+ 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.";
715
+ };
716
+ } | {
717
+ docsUri: string;
718
+ code: "invalid_project_xml";
719
+ owners: readonly ["core.validation"];
720
+ remediation: {
721
+ readonly kind: "host-action";
722
+ 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.";
723
+ };
724
+ } | {
725
+ docsUri: string;
726
+ code: "invalid_package_xml";
727
+ owners: readonly ["core.validation"];
728
+ remediation: {
729
+ readonly kind: "host-action";
730
+ 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.";
731
+ };
732
+ } | {
733
+ docsUri: string;
734
+ code: "invalid_branch_package_xml";
735
+ owners: readonly ["core.validation"];
736
+ remediation: {
737
+ readonly kind: "host-action";
738
+ 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.";
739
+ };
740
+ } | {
741
+ docsUri: string;
742
+ code: "invalid_component_xml";
743
+ owners: readonly ["core.validation"];
744
+ remediation: {
745
+ readonly kind: "host-action";
746
+ 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.";
747
+ };
748
+ } | {
749
+ docsUri: string;
750
+ code: "invalid_project_value";
751
+ owners: readonly ["core.validation"];
752
+ remediation: {
753
+ readonly kind: "host-action";
754
+ 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.";
755
+ };
756
+ } | {
757
+ docsUri: string;
758
+ code: "desktop_incompatible_geometry";
759
+ owners: readonly ["core.validation"];
760
+ remediation: {
761
+ readonly kind: "host-action";
762
+ 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.";
763
+ };
764
+ } | {
765
+ docsUri: string;
766
+ code: "invalid_settings_json";
767
+ owners: readonly ["core.validation"];
768
+ remediation: {
769
+ readonly kind: "host-action";
770
+ 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.";
771
+ };
772
+ } | {
773
+ docsUri: string;
774
+ code: "path_collision";
775
+ owners: readonly ["core.validation"];
776
+ remediation: {
777
+ readonly kind: "host-action";
778
+ 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.";
779
+ };
780
+ } | {
781
+ docsUri: string;
782
+ code: "unsafe_path";
783
+ owners: readonly ["core.validation"];
784
+ remediation: {
785
+ readonly kind: "host-action";
786
+ 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.";
787
+ };
788
+ } | {
789
+ docsUri: string;
790
+ code: "capability_unavailable";
791
+ owners: readonly ["backend"];
792
+ remediation: {
793
+ readonly kind: "host-action";
794
+ 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.";
795
+ };
796
+ } | {
797
+ docsUri: string;
798
+ code: "uam_fidelity_unsupported";
799
+ owners: readonly ["backend"];
800
+ remediation: {
801
+ readonly kind: "host-action";
802
+ 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.";
803
+ };
804
+ } | {
805
+ docsUri: string;
806
+ code: "save_partial_failure";
807
+ owners: readonly ["backend"];
808
+ remediation: {
809
+ readonly kind: "host-action";
810
+ 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.";
811
+ };
812
+ } | {
813
+ docsUri: string;
814
+ code: "write_failed";
815
+ owners: readonly ["backend"];
816
+ remediation: {
817
+ readonly kind: "host-action";
818
+ 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.";
819
+ };
820
+ } | {
821
+ docsUri: string;
822
+ code: "project_open_failed";
823
+ owners: readonly ["backend"];
824
+ remediation: {
825
+ readonly kind: "host-action";
826
+ 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.";
827
+ };
828
+ } | {
829
+ docsUri: string;
830
+ code: "materialize_validation_failed";
831
+ owners: readonly ["backend"];
832
+ remediation: {
833
+ readonly kind: "host-action";
834
+ 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.";
835
+ };
836
+ } | {
837
+ docsUri: string;
838
+ code: "execution_failure";
839
+ owners: readonly ["core.transaction"];
840
+ remediation: {
841
+ readonly kind: "host-action";
842
+ 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.";
843
+ };
844
+ })[];
845
+ declare function getBackendDiagnosticGuide(code: string): {
846
+ docsUri: string;
847
+ code: "stale_read";
848
+ owners: readonly ["backend"];
849
+ remediation: {
850
+ readonly kind: "refresh-and-replan";
851
+ 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.";
852
+ };
853
+ } | {
854
+ docsUri: string;
855
+ code: "session_read_failed";
856
+ owners: readonly ["backend"];
857
+ remediation: {
858
+ readonly kind: "host-action";
859
+ 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.";
860
+ };
861
+ } | {
862
+ docsUri: string;
863
+ code: "transaction_preview_failed";
864
+ owners: readonly ["backend"];
865
+ remediation: {
866
+ readonly kind: "host-action";
867
+ 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.";
868
+ };
869
+ } | {
870
+ docsUri: string;
871
+ code: "stale_write";
872
+ owners: readonly ["backend"];
873
+ remediation: {
874
+ readonly kind: "refresh-and-replan";
875
+ 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.";
876
+ };
877
+ } | {
878
+ docsUri: string;
879
+ code: "entity_query_failed";
880
+ owners: readonly ["backend"];
881
+ remediation: {
882
+ readonly kind: "host-action";
883
+ 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.";
884
+ };
885
+ } | {
886
+ docsUri: string;
887
+ code: "session_not_found";
888
+ owners: readonly ["backend"];
889
+ remediation: {
890
+ readonly kind: "host-action";
891
+ 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.";
892
+ };
893
+ } | {
894
+ docsUri: string;
895
+ code: "session_close_failed";
896
+ owners: readonly ["backend"];
897
+ remediation: {
898
+ readonly kind: "host-action";
899
+ 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.";
900
+ };
901
+ } | {
902
+ docsUri: string;
903
+ code: "path_policy_violation";
904
+ owners: readonly ["backend"];
905
+ remediation: {
906
+ readonly kind: "host-action";
907
+ 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.";
908
+ };
909
+ } | {
910
+ docsUri: string;
911
+ code: "project_root_not_allowed";
912
+ owners: readonly ["backend"];
913
+ remediation: {
914
+ readonly kind: "host-action";
915
+ 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.";
916
+ };
917
+ } | {
918
+ docsUri: string;
919
+ code: "invalid_package_selector";
920
+ owners: readonly ["core.transaction"];
921
+ remediation: {
922
+ readonly kind: "revise-selector";
923
+ 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.";
924
+ };
925
+ } | {
926
+ docsUri: string;
927
+ code: "invalid_component_selector";
928
+ owners: readonly ["core.transaction"];
929
+ remediation: {
930
+ readonly kind: "revise-selector";
931
+ 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.";
932
+ };
933
+ } | {
934
+ docsUri: string;
935
+ code: "invalid_resource_selector";
936
+ owners: readonly ["core.transaction"];
937
+ remediation: {
938
+ readonly kind: "revise-selector";
939
+ 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.";
940
+ };
941
+ } | {
942
+ docsUri: string;
943
+ code: "invalid_display_node_selector";
944
+ owners: readonly ["core.transaction"];
945
+ remediation: {
946
+ readonly kind: "revise-selector";
947
+ 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.";
948
+ };
949
+ } | {
950
+ docsUri: string;
951
+ code: "invalid_resource_folder_selector";
952
+ owners: readonly ["core.transaction"];
953
+ remediation: {
954
+ readonly kind: "revise-selector";
955
+ 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.";
956
+ };
957
+ } | {
958
+ docsUri: string;
959
+ code: "invalid_branch_selector";
960
+ owners: readonly ["core.transaction"];
961
+ remediation: {
962
+ readonly kind: "revise-selector";
963
+ 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.";
964
+ };
965
+ } | {
966
+ docsUri: string;
967
+ code: "invalid_gear_selector";
968
+ owners: readonly ["core.transaction"];
969
+ remediation: {
970
+ readonly kind: "revise-selector";
971
+ 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.";
972
+ };
973
+ } | {
974
+ docsUri: string;
975
+ code: "invalid_look_gear_selector";
976
+ owners: readonly ["core.transaction"];
977
+ remediation: {
978
+ readonly kind: "revise-selector";
979
+ 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.";
980
+ };
981
+ } | {
982
+ docsUri: string;
983
+ code: "selector_ambiguity";
984
+ owners: readonly ["core.transaction"];
985
+ remediation: {
986
+ readonly kind: "revise-selector";
987
+ 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.";
988
+ };
989
+ } | {
990
+ docsUri: string;
991
+ code: "unavailable_resource_source_bytes";
992
+ owners: readonly ["core.transaction"];
993
+ remediation: {
994
+ readonly kind: "host-action";
995
+ 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.";
996
+ };
997
+ } | {
998
+ docsUri: string;
999
+ code: "missing_source";
1000
+ owners: readonly ["core.validation"];
1001
+ remediation: {
1002
+ readonly kind: "host-action";
1003
+ 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.";
1004
+ };
1005
+ } | {
1006
+ docsUri: string;
1007
+ code: "unreadable_source";
1008
+ owners: readonly ["core.validation"];
1009
+ remediation: {
1010
+ readonly kind: "host-action";
1011
+ 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.";
1012
+ };
1013
+ } | {
1014
+ docsUri: string;
1015
+ code: "decode_capability_unavailable";
1016
+ owners: readonly ["core.validation"];
1017
+ remediation: {
1018
+ readonly kind: "host-action";
1019
+ 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.";
1020
+ };
1021
+ } | {
1022
+ docsUri: string;
1023
+ code: "session_limit_exceeded";
1024
+ owners: readonly ["backend"];
1025
+ remediation: {
1026
+ readonly kind: "host-action";
1027
+ readonly message: "Close sessions you opened and no longer need with closeSession, then retry. Do not close sessions owned by another task or host; ask the host to raise maxSessions if more concurrent projects are required.";
1028
+ };
1029
+ } | {
1030
+ docsUri: string;
1031
+ code: "session_id_conflict";
1032
+ owners: readonly ["backend"];
1033
+ remediation: {
1034
+ readonly kind: "host-action";
1035
+ 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.";
1036
+ };
1037
+ } | {
1038
+ docsUri: string;
1039
+ code: "lock_conflict";
1040
+ owners: readonly ["backend"];
1041
+ remediation: {
1042
+ readonly kind: "host-action";
1043
+ 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.";
1044
+ };
1045
+ } | {
1046
+ docsUri: string;
1047
+ code: "event_cursor_invalid";
1048
+ owners: readonly ["backend"];
1049
+ remediation: {
1050
+ readonly kind: "refresh-and-replan";
1051
+ 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.";
1052
+ };
1053
+ } | {
1054
+ docsUri: string;
1055
+ code: "corrupt_source";
1056
+ owners: readonly ["core.validation"];
1057
+ remediation: {
1058
+ readonly kind: "host-action";
1059
+ 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.";
1060
+ };
1061
+ } | {
1062
+ docsUri: string;
1063
+ code: "unsupported_operation";
1064
+ owners: readonly ["core.transaction"];
1065
+ remediation: {
1066
+ readonly kind: "revise-operation";
1067
+ 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.";
1068
+ };
1069
+ } | {
1070
+ docsUri: string;
1071
+ code: "invalid_operation_payload";
1072
+ owners: readonly ["core.transaction"];
1073
+ remediation: {
1074
+ readonly kind: "revise-operation";
1075
+ 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.";
1076
+ };
1077
+ } | {
1078
+ docsUri: string;
1079
+ code: "transaction_unsupported";
1080
+ owners: readonly ["core.transaction"];
1081
+ remediation: {
1082
+ readonly kind: "revise-operation";
1083
+ 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.";
1084
+ };
1085
+ } | {
1086
+ docsUri: string;
1087
+ code: "unsupported_display_node_kind";
1088
+ owners: readonly ["core.transaction"];
1089
+ remediation: {
1090
+ readonly kind: "revise-operation";
1091
+ 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.";
1092
+ };
1093
+ } | {
1094
+ docsUri: string;
1095
+ code: "unsupported_cross_package_image_ref";
1096
+ owners: readonly ["core.transaction"];
1097
+ remediation: {
1098
+ readonly kind: "revise-operation";
1099
+ 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.";
1100
+ };
1101
+ } | {
1102
+ docsUri: string;
1103
+ code: "unsupported_gear_kind";
1104
+ owners: readonly ["core.transaction"];
1105
+ remediation: {
1106
+ readonly kind: "revise-operation";
1107
+ 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.";
1108
+ };
1109
+ } | {
1110
+ docsUri: string;
1111
+ code: "unsupported_resource_mutation";
1112
+ owners: readonly ["core.transaction"];
1113
+ remediation: {
1114
+ readonly kind: "revise-operation";
1115
+ 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.";
1116
+ };
1117
+ } | {
1118
+ docsUri: string;
1119
+ code: "unsupported_display_node_mutation";
1120
+ owners: readonly ["core.transaction"];
1121
+ remediation: {
1122
+ readonly kind: "revise-operation";
1123
+ 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.";
1124
+ };
1125
+ } | {
1126
+ docsUri: string;
1127
+ code: "unsupported_text_field_target";
1128
+ owners: readonly ["core.transaction"];
1129
+ remediation: {
1130
+ readonly kind: "revise-operation";
1131
+ 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.";
1132
+ };
1133
+ } | {
1134
+ docsUri: string;
1135
+ code: "unsupported_display_node_field";
1136
+ owners: readonly ["core.transaction"];
1137
+ remediation: {
1138
+ readonly kind: "revise-operation";
1139
+ 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.";
1140
+ };
1141
+ } | {
1142
+ docsUri: string;
1143
+ code: "unsupported_operation_batch";
1144
+ owners: readonly ["core.transaction"];
1145
+ remediation: {
1146
+ readonly kind: "revise-operation";
1147
+ 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.";
1148
+ };
1149
+ } | {
1150
+ docsUri: string;
1151
+ code: "unsupported_resource_kind";
1152
+ owners: readonly ["core.transaction", "core.validation"];
1153
+ remediation: {
1154
+ readonly kind: "revise-operation";
1155
+ 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.";
1156
+ };
1157
+ } | {
1158
+ docsUri: string;
1159
+ code: "invalid_project_settings";
1160
+ owners: readonly ["core.transaction"];
1161
+ remediation: {
1162
+ readonly kind: "revise-operation";
1163
+ 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.";
1164
+ };
1165
+ } | {
1166
+ docsUri: string;
1167
+ code: "invalid_package_settings";
1168
+ owners: readonly ["core.transaction"];
1169
+ remediation: {
1170
+ readonly kind: "revise-operation";
1171
+ 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.";
1172
+ };
1173
+ } | {
1174
+ docsUri: string;
1175
+ code: "invalid_display_node_payload";
1176
+ owners: readonly ["core.transaction"];
1177
+ remediation: {
1178
+ readonly kind: "revise-operation";
1179
+ 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.";
1180
+ };
1181
+ } | {
1182
+ docsUri: string;
1183
+ code: "invalid_resource_name";
1184
+ owners: readonly ["core.transaction"];
1185
+ remediation: {
1186
+ readonly kind: "revise-operation";
1187
+ 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.";
1188
+ };
1189
+ } | {
1190
+ docsUri: string;
1191
+ code: "invalid_resource_path";
1192
+ owners: readonly ["core.transaction"];
1193
+ remediation: {
1194
+ readonly kind: "revise-operation";
1195
+ 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.";
1196
+ };
1197
+ } | {
1198
+ docsUri: string;
1199
+ code: "invalid_resource_folder_path";
1200
+ owners: readonly ["core.transaction"];
1201
+ remediation: {
1202
+ readonly kind: "revise-operation";
1203
+ 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.";
1204
+ };
1205
+ } | {
1206
+ docsUri: string;
1207
+ code: "invalid_resource_folder_atlas";
1208
+ owners: readonly ["core.transaction"];
1209
+ remediation: {
1210
+ readonly kind: "revise-operation";
1211
+ 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.";
1212
+ };
1213
+ } | {
1214
+ docsUri: string;
1215
+ code: "invalid_attach_index";
1216
+ owners: readonly ["core.transaction"];
1217
+ remediation: {
1218
+ readonly kind: "revise-operation";
1219
+ 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.";
1220
+ };
1221
+ } | {
1222
+ docsUri: string;
1223
+ code: "invalid_controller_payload";
1224
+ owners: readonly ["core.transaction"];
1225
+ remediation: {
1226
+ readonly kind: "revise-operation";
1227
+ 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.";
1228
+ };
1229
+ } | {
1230
+ docsUri: string;
1231
+ code: "invalid_transition_payload";
1232
+ owners: readonly ["core.transaction"];
1233
+ remediation: {
1234
+ readonly kind: "revise-operation";
1235
+ 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.";
1236
+ };
1237
+ } | {
1238
+ docsUri: string;
1239
+ code: "invalid_look_gear_payload";
1240
+ owners: readonly ["core.transaction"];
1241
+ remediation: {
1242
+ readonly kind: "revise-operation";
1243
+ 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.";
1244
+ };
1245
+ } | {
1246
+ docsUri: string;
1247
+ code: "invalid_gear_payload";
1248
+ owners: readonly ["core.transaction"];
1249
+ remediation: {
1250
+ readonly kind: "revise-operation";
1251
+ 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.";
1252
+ };
1253
+ } | {
1254
+ docsUri: string;
1255
+ code: "invalid_resource_payload";
1256
+ owners: readonly ["core.transaction"];
1257
+ remediation: {
1258
+ readonly kind: "revise-operation";
1259
+ 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.";
1260
+ };
1261
+ } | {
1262
+ docsUri: string;
1263
+ code: "projection_failed";
1264
+ owners: readonly ["core.transaction"];
1265
+ remediation: {
1266
+ readonly kind: "host-action";
1267
+ readonly message: "Transaction projection failed. Inspect the project and operation batch; no successful support decision is available and no change has been applied.";
1268
+ };
1269
+ } | {
1270
+ docsUri: string;
1271
+ code: "invalid_resource_bytes";
1272
+ owners: readonly ["core.transaction"];
1273
+ remediation: {
1274
+ readonly kind: "revise-operation";
1275
+ 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.";
1276
+ };
1277
+ } | {
1278
+ docsUri: string;
1279
+ code: "invalid_movie_clip_jta";
1280
+ owners: readonly ["core.transaction"];
1281
+ remediation: {
1282
+ readonly kind: "revise-operation";
1283
+ 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.";
1284
+ };
1285
+ } | {
1286
+ docsUri: string;
1287
+ code: "invalid_resource_index";
1288
+ owners: readonly ["core.transaction"];
1289
+ remediation: {
1290
+ readonly kind: "revise-operation";
1291
+ 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.";
1292
+ };
1293
+ } | {
1294
+ docsUri: string;
1295
+ code: "invalid_branch_name";
1296
+ owners: readonly ["core.transaction"];
1297
+ remediation: {
1298
+ readonly kind: "revise-operation";
1299
+ 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.";
1300
+ };
1301
+ } | {
1302
+ docsUri: string;
1303
+ code: "invalid_package_payload";
1304
+ owners: readonly ["core.transaction"];
1305
+ remediation: {
1306
+ readonly kind: "revise-operation";
1307
+ 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.";
1308
+ };
1309
+ } | {
1310
+ docsUri: string;
1311
+ code: "invalid_package_index";
1312
+ owners: readonly ["core.transaction"];
1313
+ remediation: {
1314
+ readonly kind: "revise-operation";
1315
+ 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.";
1316
+ };
1317
+ } | {
1318
+ docsUri: string;
1319
+ code: "invalid_component_payload";
1320
+ owners: readonly ["core.transaction"];
1321
+ remediation: {
1322
+ readonly kind: "revise-operation";
1323
+ 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.";
1324
+ };
1325
+ } | {
1326
+ docsUri: string;
1327
+ code: "invalid_component_index";
1328
+ owners: readonly ["core.transaction"];
1329
+ remediation: {
1330
+ readonly kind: "revise-operation";
1331
+ 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.";
1332
+ };
1333
+ } | {
1334
+ docsUri: string;
1335
+ code: "invalid_component_move";
1336
+ owners: readonly ["core.transaction"];
1337
+ remediation: {
1338
+ readonly kind: "revise-operation";
1339
+ 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.";
1340
+ };
1341
+ } | {
1342
+ docsUri: string;
1343
+ code: "invalid_uam";
1344
+ owners: readonly ["core.transaction", "core.validation"];
1345
+ remediation: {
1346
+ readonly kind: "revise-operation";
1347
+ 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.";
1348
+ };
1349
+ } | {
1350
+ docsUri: string;
1351
+ code: "project_settings_unchanged";
1352
+ owners: readonly ["core.transaction"];
1353
+ remediation: {
1354
+ readonly kind: "refresh-and-replan";
1355
+ 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.";
1356
+ };
1357
+ } | {
1358
+ docsUri: string;
1359
+ code: "package_settings_unchanged";
1360
+ owners: readonly ["core.transaction"];
1361
+ remediation: {
1362
+ readonly kind: "refresh-and-replan";
1363
+ 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.";
1364
+ };
1365
+ } | {
1366
+ docsUri: string;
1367
+ code: "display_node_props_unchanged";
1368
+ owners: readonly ["core.transaction"];
1369
+ remediation: {
1370
+ readonly kind: "refresh-and-replan";
1371
+ 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.";
1372
+ };
1373
+ } | {
1374
+ docsUri: string;
1375
+ code: "resource_folder_atlas_unchanged";
1376
+ owners: readonly ["core.transaction"];
1377
+ remediation: {
1378
+ readonly kind: "refresh-and-replan";
1379
+ 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.";
1380
+ };
1381
+ } | {
1382
+ docsUri: string;
1383
+ code: "duplicate_look_gear_controller";
1384
+ owners: readonly ["core.transaction"];
1385
+ remediation: {
1386
+ readonly kind: "revise-operation";
1387
+ 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.";
1388
+ };
1389
+ } | {
1390
+ docsUri: string;
1391
+ code: "duplicate_transition_name";
1392
+ owners: readonly ["core.transaction"];
1393
+ remediation: {
1394
+ readonly kind: "revise-operation";
1395
+ 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.";
1396
+ };
1397
+ } | {
1398
+ docsUri: string;
1399
+ code: "duplicate_look_gear_state_page";
1400
+ owners: readonly ["core.transaction"];
1401
+ remediation: {
1402
+ readonly kind: "revise-operation";
1403
+ 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.";
1404
+ };
1405
+ } | {
1406
+ docsUri: string;
1407
+ code: "duplicate_gear_controller";
1408
+ owners: readonly ["core.transaction"];
1409
+ remediation: {
1410
+ readonly kind: "revise-operation";
1411
+ 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.";
1412
+ };
1413
+ } | {
1414
+ docsUri: string;
1415
+ code: "duplicate_gear_state_page";
1416
+ owners: readonly ["core.transaction"];
1417
+ remediation: {
1418
+ readonly kind: "revise-operation";
1419
+ 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.";
1420
+ };
1421
+ } | {
1422
+ docsUri: string;
1423
+ code: "duplicate_branch_name";
1424
+ owners: readonly ["core.transaction"];
1425
+ remediation: {
1426
+ readonly kind: "revise-operation";
1427
+ 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.";
1428
+ };
1429
+ } | {
1430
+ docsUri: string;
1431
+ code: "duplicate_component_id";
1432
+ owners: readonly ["core.transaction"];
1433
+ remediation: {
1434
+ readonly kind: "revise-operation";
1435
+ 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.";
1436
+ };
1437
+ } | {
1438
+ docsUri: string;
1439
+ code: "resource_folder_conflict";
1440
+ owners: readonly ["core.transaction"];
1441
+ remediation: {
1442
+ readonly kind: "revise-operation";
1443
+ 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.";
1444
+ };
1445
+ } | {
1446
+ docsUri: string;
1447
+ code: "duplicate_resource_id";
1448
+ owners: readonly ["core.transaction", "core.validation"];
1449
+ remediation: {
1450
+ readonly kind: "revise-operation";
1451
+ 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.";
1452
+ };
1453
+ } | {
1454
+ docsUri: string;
1455
+ code: "duplicate_package_id";
1456
+ owners: readonly ["core.transaction", "core.validation"];
1457
+ remediation: {
1458
+ readonly kind: "revise-operation";
1459
+ 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.";
1460
+ };
1461
+ } | {
1462
+ docsUri: string;
1463
+ code: "duplicate_package_name";
1464
+ owners: readonly ["core.transaction", "core.validation"];
1465
+ remediation: {
1466
+ readonly kind: "revise-operation";
1467
+ 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.";
1468
+ };
1469
+ } | {
1470
+ docsUri: string;
1471
+ code: "resource_folder_not_empty";
1472
+ owners: readonly ["core.transaction"];
1473
+ remediation: {
1474
+ readonly kind: "revise-operation";
1475
+ 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.";
1476
+ };
1477
+ } | {
1478
+ docsUri: string;
1479
+ code: "branch_not_empty";
1480
+ owners: readonly ["core.transaction"];
1481
+ remediation: {
1482
+ readonly kind: "revise-operation";
1483
+ 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.";
1484
+ };
1485
+ } | {
1486
+ docsUri: string;
1487
+ code: "branch_referenced";
1488
+ owners: readonly ["core.transaction"];
1489
+ remediation: {
1490
+ readonly kind: "revise-operation";
1491
+ 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.";
1492
+ };
1493
+ } | {
1494
+ docsUri: string;
1495
+ code: "invalid_resource_reference";
1496
+ owners: readonly ["core.transaction"];
1497
+ remediation: {
1498
+ readonly kind: "revise-operation";
1499
+ 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.";
1500
+ };
1501
+ } | {
1502
+ docsUri: string;
1503
+ code: "invalid_component_reference";
1504
+ owners: readonly ["core.transaction"];
1505
+ remediation: {
1506
+ readonly kind: "revise-operation";
1507
+ 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.";
1508
+ };
1509
+ } | {
1510
+ docsUri: string;
1511
+ code: "invalid_group_reference";
1512
+ owners: readonly ["core.transaction"];
1513
+ remediation: {
1514
+ readonly kind: "revise-operation";
1515
+ 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.";
1516
+ };
1517
+ } | {
1518
+ docsUri: string;
1519
+ code: "package_referenced";
1520
+ owners: readonly ["core.transaction"];
1521
+ remediation: {
1522
+ readonly kind: "revise-operation";
1523
+ 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.";
1524
+ };
1525
+ } | {
1526
+ docsUri: string;
1527
+ code: "component_referenced";
1528
+ owners: readonly ["core.transaction"];
1529
+ remediation: {
1530
+ readonly kind: "revise-operation";
1531
+ 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.";
1532
+ };
1533
+ } | {
1534
+ docsUri: string;
1535
+ code: "component_has_package_dependencies";
1536
+ owners: readonly ["core.transaction"];
1537
+ remediation: {
1538
+ readonly kind: "revise-operation";
1539
+ 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.";
1540
+ };
1541
+ } | {
1542
+ docsUri: string;
1543
+ code: "dangling_resource_reference";
1544
+ owners: readonly ["core.validation"];
1545
+ remediation: {
1546
+ readonly kind: "revise-operation";
1547
+ 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.";
1548
+ };
1549
+ } | {
1550
+ docsUri: string;
1551
+ code: "invalid_project_xml";
1552
+ owners: readonly ["core.validation"];
1553
+ remediation: {
1554
+ readonly kind: "host-action";
1555
+ 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.";
1556
+ };
1557
+ } | {
1558
+ docsUri: string;
1559
+ code: "invalid_package_xml";
1560
+ owners: readonly ["core.validation"];
1561
+ remediation: {
1562
+ readonly kind: "host-action";
1563
+ 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.";
1564
+ };
1565
+ } | {
1566
+ docsUri: string;
1567
+ code: "invalid_branch_package_xml";
1568
+ owners: readonly ["core.validation"];
1569
+ remediation: {
1570
+ readonly kind: "host-action";
1571
+ 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.";
1572
+ };
1573
+ } | {
1574
+ docsUri: string;
1575
+ code: "invalid_component_xml";
1576
+ owners: readonly ["core.validation"];
1577
+ remediation: {
1578
+ readonly kind: "host-action";
1579
+ 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.";
1580
+ };
1581
+ } | {
1582
+ docsUri: string;
1583
+ code: "invalid_project_value";
1584
+ owners: readonly ["core.validation"];
1585
+ remediation: {
1586
+ readonly kind: "host-action";
1587
+ 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.";
1588
+ };
1589
+ } | {
1590
+ docsUri: string;
1591
+ code: "desktop_incompatible_geometry";
1592
+ owners: readonly ["core.validation"];
1593
+ remediation: {
1594
+ readonly kind: "host-action";
1595
+ 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.";
1596
+ };
1597
+ } | {
1598
+ docsUri: string;
1599
+ code: "invalid_settings_json";
1600
+ owners: readonly ["core.validation"];
1601
+ remediation: {
1602
+ readonly kind: "host-action";
1603
+ 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.";
1604
+ };
1605
+ } | {
1606
+ docsUri: string;
1607
+ code: "path_collision";
1608
+ owners: readonly ["core.validation"];
1609
+ remediation: {
1610
+ readonly kind: "host-action";
1611
+ 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.";
1612
+ };
1613
+ } | {
1614
+ docsUri: string;
1615
+ code: "unsafe_path";
1616
+ owners: readonly ["core.validation"];
1617
+ remediation: {
1618
+ readonly kind: "host-action";
1619
+ 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.";
1620
+ };
1621
+ } | {
1622
+ docsUri: string;
1623
+ code: "capability_unavailable";
1624
+ owners: readonly ["backend"];
1625
+ remediation: {
1626
+ readonly kind: "host-action";
1627
+ 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.";
1628
+ };
1629
+ } | {
1630
+ docsUri: string;
1631
+ code: "uam_fidelity_unsupported";
1632
+ owners: readonly ["backend"];
1633
+ remediation: {
1634
+ readonly kind: "host-action";
1635
+ 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.";
1636
+ };
1637
+ } | {
1638
+ docsUri: string;
1639
+ code: "save_partial_failure";
1640
+ owners: readonly ["backend"];
1641
+ remediation: {
1642
+ readonly kind: "host-action";
1643
+ 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.";
1644
+ };
1645
+ } | {
1646
+ docsUri: string;
1647
+ code: "write_failed";
1648
+ owners: readonly ["backend"];
1649
+ remediation: {
1650
+ readonly kind: "host-action";
1651
+ 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.";
1652
+ };
1653
+ } | {
1654
+ docsUri: string;
1655
+ code: "project_open_failed";
1656
+ owners: readonly ["backend"];
1657
+ remediation: {
1658
+ readonly kind: "host-action";
1659
+ 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.";
1660
+ };
1661
+ } | {
1662
+ docsUri: string;
1663
+ code: "materialize_validation_failed";
1664
+ owners: readonly ["backend"];
1665
+ remediation: {
1666
+ readonly kind: "host-action";
1667
+ 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.";
1668
+ };
1669
+ } | {
1670
+ docsUri: string;
1671
+ code: "execution_failure";
1672
+ owners: readonly ["core.transaction"];
1673
+ remediation: {
1674
+ readonly kind: "host-action";
1675
+ 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.";
1676
+ };
1677
+ };
1678
+ //#endregion
1679
+ export { getBackendDiagnosticGuide as a, getBackendDiagnosticCatalog as i, BACKEND_DIAGNOSTIC_TEMPLATE as n, BackendDiagnosticGuide as r, BACKEND_DIAGNOSTICS_URI as t };