@openfairygui/backend 0.5.0-alpha.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@ import type { ContractSnapshot } from '../docs.js';
3
3
  export const CONTRACT_SNAPSHOT: ContractSnapshot = {
4
4
  "schemaVersion": 1,
5
5
  "versions": {
6
- "BACKEND_CONTRACT_VERSION": "2.0.0-p3",
7
- "BACKEND_CAPABILITY_SCHEMA_VERSION": 11
6
+ "BACKEND_CONTRACT_VERSION": "3.0.0",
7
+ "BACKEND_CAPABILITY_SCHEMA_VERSION": 12
8
8
  },
9
9
  "operations": {
10
10
  "updateProjectSettings": {
@@ -869,7 +869,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
869
869
  "backendResult": {
870
870
  "anyOf": [
871
871
  {
872
- "$ref": "#/$defs/BackendResult_0bdb207dae"
872
+ "$ref": "#/$defs/BackendResult_01bd3005ba"
873
873
  },
874
874
  {
875
875
  "$ref": "#/$defs/McpUnhandledFailure_fcecd3763a"
@@ -935,167 +935,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
935
935
  },
936
936
  "bytePaths": []
937
937
  },
938
- "getJob": {
939
- "name": "openfairygui_backend_get_job",
940
- "backendMethod": "getJob",
941
- "title": "Get Runtime Job",
942
- "description": "Return a backend runtime job snapshot by session and backend-local job id.",
943
- "annotations": {
944
- "readOnlyHint": true,
945
- "idempotentHint": true,
946
- "openWorldHint": false
947
- },
948
- "input": {
949
- "type": "object",
950
- "properties": {
951
- "sessionId": {
952
- "type": "string",
953
- "minLength": 1
954
- },
955
- "jobId": {
956
- "type": "string",
957
- "minLength": 1
958
- }
959
- },
960
- "required": [
961
- "sessionId",
962
- "jobId"
963
- ],
964
- "additionalProperties": false
965
- },
966
- "output": {
967
- "type": "object",
968
- "properties": {
969
- "backendResult": {
970
- "anyOf": [
971
- {
972
- "$ref": "#/$defs/BackendResult_6867f7c186"
973
- },
974
- {
975
- "$ref": "#/$defs/McpUnhandledFailure_fcecd3763a"
976
- }
977
- ]
978
- }
979
- },
980
- "required": [
981
- "backendResult"
982
- ],
983
- "additionalProperties": false
984
- },
985
- "bytePaths": []
986
- },
987
- "listJobs": {
988
- "name": "openfairygui_backend_list_jobs",
989
- "backendMethod": "listJobs",
990
- "title": "List Runtime Jobs",
991
- "description": "List backend runtime jobs for a session with backend P2 status/kind filters.",
992
- "annotations": {
993
- "readOnlyHint": true,
994
- "idempotentHint": true,
995
- "openWorldHint": false
996
- },
997
- "input": {
998
- "type": "object",
999
- "properties": {
1000
- "sessionId": {
1001
- "type": "string",
1002
- "minLength": 1
1003
- },
1004
- "status": {
1005
- "enum": [
1006
- "failed",
1007
- "active",
1008
- "completed",
1009
- "running",
1010
- "queued",
1011
- "cancelled",
1012
- "terminal"
1013
- ]
1014
- },
1015
- "kind": {
1016
- "type": "string",
1017
- "const": "cache.refresh"
1018
- },
1019
- "limit": {
1020
- "type": "integer",
1021
- "minimum": 0
1022
- }
1023
- },
1024
- "required": [
1025
- "sessionId"
1026
- ],
1027
- "additionalProperties": false
1028
- },
1029
- "output": {
1030
- "type": "object",
1031
- "properties": {
1032
- "backendResult": {
1033
- "anyOf": [
1034
- {
1035
- "$ref": "#/$defs/BackendResult_fea5a3c6da"
1036
- },
1037
- {
1038
- "$ref": "#/$defs/McpUnhandledFailure_fcecd3763a"
1039
- }
1040
- ]
1041
- }
1042
- },
1043
- "required": [
1044
- "backendResult"
1045
- ],
1046
- "additionalProperties": false
1047
- },
1048
- "bytePaths": []
1049
- },
1050
- "cancelJob": {
1051
- "name": "openfairygui_backend_cancel_job",
1052
- "backendMethod": "cancelJob",
1053
- "title": "Cancel Runtime Job",
1054
- "description": "Request cooperative cancellation for a backend runtime job.",
1055
- "annotations": {
1056
- "readOnlyHint": false,
1057
- "idempotentHint": false,
1058
- "openWorldHint": false
1059
- },
1060
- "input": {
1061
- "type": "object",
1062
- "properties": {
1063
- "sessionId": {
1064
- "type": "string",
1065
- "minLength": 1
1066
- },
1067
- "jobId": {
1068
- "type": "string",
1069
- "minLength": 1
1070
- }
1071
- },
1072
- "required": [
1073
- "sessionId",
1074
- "jobId"
1075
- ],
1076
- "additionalProperties": false
1077
- },
1078
- "output": {
1079
- "type": "object",
1080
- "properties": {
1081
- "backendResult": {
1082
- "anyOf": [
1083
- {
1084
- "$ref": "#/$defs/BackendResult_fb76e59f94"
1085
- },
1086
- {
1087
- "$ref": "#/$defs/McpUnhandledFailure_fcecd3763a"
1088
- }
1089
- ]
1090
- }
1091
- },
1092
- "required": [
1093
- "backendResult"
1094
- ],
1095
- "additionalProperties": false
1096
- },
1097
- "bytePaths": []
1098
- },
1099
938
  "getCacheSnapshot": {
1100
939
  "name": "openfairygui_backend_get_cache_snapshot",
1101
940
  "backendMethod": "getCacheSnapshot",
@@ -1144,7 +983,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
1144
983
  "name": "openfairygui_backend_refresh_cache",
1145
984
  "backendMethod": "refreshCache",
1146
985
  "title": "Refresh Cache",
1147
- "description": "Create a backend P2 cache.refresh job for the session cache snapshot.",
986
+ "description": "Synchronously refresh the derived session cache and return its revision-bound snapshot.",
1148
987
  "annotations": {
1149
988
  "readOnlyHint": false,
1150
989
  "idempotentHint": false,
@@ -1177,7 +1016,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
1177
1016
  "backendResult": {
1178
1017
  "anyOf": [
1179
1018
  {
1180
- "$ref": "#/$defs/BackendResult_c0ff465141"
1019
+ "$ref": "#/$defs/BackendResult_9ce39ecd14"
1181
1020
  },
1182
1021
  {
1183
1022
  "$ref": "#/$defs/McpUnhandledFailure_fcecd3763a"
@@ -1200,6 +1039,9 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
1200
1039
  "validate": {
1201
1040
  "$ref": "#/$defs/CliEnvelope_dde966be7c"
1202
1041
  },
1042
+ "restore": {
1043
+ "$ref": "#/$defs/CliEnvelope_a2522f4864"
1044
+ },
1203
1045
  "ofgui": {
1204
1046
  "$ref": "#/$defs/CliEnvelope_e114e8964e"
1205
1047
  },
@@ -1209,9 +1051,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
1209
1051
  "inspect": {
1210
1052
  "$ref": "#/$defs/CliEnvelope_54f391b1e9"
1211
1053
  },
1212
- "restore": {
1213
- "$ref": "#/$defs/CliEnvelope_a2522f4864"
1214
- },
1215
1054
  "doctor": {
1216
1055
  "$ref": "#/$defs/CliEnvelope_5faeabe7ff"
1217
1056
  },
@@ -10502,11 +10341,11 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10502
10341
  },
10503
10342
  "contractVersion": {
10504
10343
  "type": "string",
10505
- "const": "2.0.0-p3"
10344
+ "const": "3.0.0"
10506
10345
  },
10507
10346
  "capabilitySchemaVersion": {
10508
10347
  "type": "number",
10509
- "const": 11
10348
+ "const": 12
10510
10349
  }
10511
10350
  },
10512
10351
  "required": [
@@ -10638,6 +10477,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10638
10477
  "execution_failure",
10639
10478
  "path_policy_violation",
10640
10479
  "session_not_found",
10480
+ "session_close_failed",
10641
10481
  "transaction_preview_failed",
10642
10482
  "entity_query_failed",
10643
10483
  "session_read_failed",
@@ -10650,10 +10490,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10650
10490
  "materialize_validation_failed",
10651
10491
  "write_failed",
10652
10492
  "event_cursor_invalid",
10653
- "job_not_found",
10654
- "job_not_cancellable",
10655
- "job_cancelled",
10656
- "cache_refresh_failed",
10657
10493
  "capability_unavailable",
10658
10494
  "project_root_not_allowed",
10659
10495
  "project_open_failed"
@@ -10852,11 +10688,11 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10852
10688
  "properties": {
10853
10689
  "contractVersion": {
10854
10690
  "type": "string",
10855
- "const": "2.0.0-p3"
10691
+ "const": "3.0.0"
10856
10692
  },
10857
10693
  "capabilitySchemaVersion": {
10858
10694
  "type": "number",
10859
- "const": 11
10695
+ "const": 12
10860
10696
  },
10861
10697
  "transactionKernelOwner": {
10862
10698
  "type": "string",
@@ -10871,7 +10707,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10871
10707
  "const": "@openfairygui/backend"
10872
10708
  },
10873
10709
  "methods": {
10874
- "$ref": "#/$defs/Shape_e30134abaa"
10710
+ "$ref": "#/$defs/Shape_ae72a55d5a"
10875
10711
  },
10876
10712
  "read": {
10877
10713
  "$ref": "#/$defs/__type_81b96969f6"
@@ -10889,7 +10725,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10889
10725
  "$ref": "#/$defs/__object_c0c6c6fd1f"
10890
10726
  },
10891
10727
  "runtime": {
10892
- "$ref": "#/$defs/__type_6f3fcdb30d"
10728
+ "$ref": "#/$defs/__type_b85cdf481a"
10893
10729
  }
10894
10730
  },
10895
10731
  "required": [
@@ -10908,7 +10744,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10908
10744
  ],
10909
10745
  "additionalProperties": false
10910
10746
  },
10911
- "Shape_e30134abaa": {
10747
+ "Shape_ae72a55d5a": {
10912
10748
  "type": "array",
10913
10749
  "prefixItems": [
10914
10750
  {
@@ -10971,18 +10807,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10971
10807
  "type": "string",
10972
10808
  "const": "getEvents"
10973
10809
  },
10974
- {
10975
- "type": "string",
10976
- "const": "getJob"
10977
- },
10978
- {
10979
- "type": "string",
10980
- "const": "listJobs"
10981
- },
10982
- {
10983
- "type": "string",
10984
- "const": "cancelJob"
10985
- },
10986
10810
  {
10987
10811
  "type": "string",
10988
10812
  "const": "getCacheSnapshot"
@@ -10992,8 +10816,8 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
10992
10816
  "const": "refreshCache"
10993
10817
  }
10994
10818
  ],
10995
- "minItems": 20,
10996
- "maxItems": 20,
10819
+ "minItems": 17,
10820
+ "maxItems": 17,
10997
10821
  "items": false
10998
10822
  },
10999
10823
  "__type_81b96969f6": {
@@ -11596,7 +11420,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11596
11420
  ],
11597
11421
  "additionalProperties": false
11598
11422
  },
11599
- "__type_6f3fcdb30d": {
11423
+ "__type_b85cdf481a": {
11600
11424
  "type": "object",
11601
11425
  "properties": {
11602
11426
  "sessionRuntime": {
@@ -11624,11 +11448,8 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11624
11448
  "events": {
11625
11449
  "$ref": "#/$defs/__type_95a4d6b6f7"
11626
11450
  },
11627
- "jobs": {
11628
- "$ref": "#/$defs/__type_8501cb15df"
11629
- },
11630
11451
  "cache": {
11631
- "$ref": "#/$defs/__type_b3bf9852d7"
11452
+ "$ref": "#/$defs/__type_5cd47c93eb"
11632
11453
  }
11633
11454
  },
11634
11455
  "required": [
@@ -11639,7 +11460,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11639
11460
  "staleRevisionProtection",
11640
11461
  "pathPolicy",
11641
11462
  "events",
11642
- "jobs",
11643
11463
  "cache"
11644
11464
  ],
11645
11465
  "additionalProperties": false
@@ -11705,53 +11525,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11705
11525
  ],
11706
11526
  "additionalProperties": false
11707
11527
  },
11708
- "__type_8501cb15df": {
11709
- "type": "object",
11710
- "properties": {
11711
- "inMemory": {
11712
- "type": "boolean",
11713
- "const": true
11714
- },
11715
- "cooperativeCancel": {
11716
- "type": "boolean",
11717
- "const": true
11718
- },
11719
- "persistent": {
11720
- "type": "boolean",
11721
- "const": false
11722
- },
11723
- "supportedKinds": {
11724
- "$ref": "#/$defs/Shape_d356aad25c"
11725
- },
11726
- "artifactJobs": {
11727
- "type": "boolean",
11728
- "const": false
11729
- },
11730
- "completedRetentionLimit": {
11731
- "type": "number",
11732
- "const": 100
11733
- }
11734
- },
11735
- "required": [
11736
- "inMemory",
11737
- "cooperativeCancel",
11738
- "persistent",
11739
- "supportedKinds",
11740
- "artifactJobs",
11741
- "completedRetentionLimit"
11742
- ],
11743
- "additionalProperties": false
11744
- },
11745
- "Shape_d356aad25c": {
11746
- "type": "array",
11747
- "minItems": 1,
11748
- "maxItems": 1,
11749
- "items": {
11750
- "type": "string",
11751
- "const": "cache.refresh"
11752
- }
11753
- },
11754
- "__type_b3bf9852d7": {
11528
+ "__type_5cd47c93eb": {
11755
11529
  "type": "object",
11756
11530
  "properties": {
11757
11531
  "derivedReadOnly": {
@@ -11760,7 +11534,11 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11760
11534
  },
11761
11535
  "keyedBy": {
11762
11536
  "type": "string",
11763
- "const": "canonicalPathKey"
11537
+ "const": "sessionId"
11538
+ },
11539
+ "refreshMode": {
11540
+ "type": "string",
11541
+ "const": "synchronous"
11764
11542
  },
11765
11543
  "sourceOfTruth": {
11766
11544
  "type": "boolean",
@@ -11774,6 +11552,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11774
11552
  "required": [
11775
11553
  "derivedReadOnly",
11776
11554
  "keyedBy",
11555
+ "refreshMode",
11777
11556
  "sourceOfTruth",
11778
11557
  "refreshMethod"
11779
11558
  ],
@@ -11974,9 +11753,9 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
11974
11753
  },
11975
11754
  "capability": {
11976
11755
  "enum": [
11977
- "fileSystem",
11978
11756
  "artifact.publish",
11979
- "artifact.restore"
11757
+ "artifact.restore",
11758
+ "fileSystem"
11980
11759
  ]
11981
11760
  },
11982
11761
  "requiredAdapter": {
@@ -13446,17 +13225,17 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
13446
13225
  "revision": {
13447
13226
  "type": "number"
13448
13227
  },
13449
- "uamFidelity": {
13450
- "enum": [
13451
- "full",
13452
- "unsupported"
13453
- ]
13454
- },
13455
13228
  "lastSavedRevision": {
13456
13229
  "type": "number"
13457
13230
  },
13458
13231
  "dirty": {
13459
13232
  "type": "boolean"
13233
+ },
13234
+ "uamFidelity": {
13235
+ "enum": [
13236
+ "full",
13237
+ "unsupported"
13238
+ ]
13460
13239
  }
13461
13240
  },
13462
13241
  "required": [
@@ -13465,9 +13244,9 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
13465
13244
  "readComplete",
13466
13245
  "sessionId",
13467
13246
  "revision",
13468
- "uamFidelity",
13469
13247
  "lastSavedRevision",
13470
- "dirty"
13248
+ "dirty",
13249
+ "uamFidelity"
13471
13250
  ],
13472
13251
  "additionalProperties": false
13473
13252
  },
@@ -15140,6 +14919,9 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15140
14919
  },
15141
14920
  "diskMayBePartiallyUpdated": {
15142
14921
  "type": "boolean"
14922
+ },
14923
+ "recoveryPaths": {
14924
+ "$ref": "#/$defs/Array_5444db1618"
15143
14925
  }
15144
14926
  },
15145
14927
  "required": [
@@ -15249,6 +15031,9 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15249
15031
  },
15250
15032
  "diskMayBePartiallyUpdated": {
15251
15033
  "type": "boolean"
15034
+ },
15035
+ "recoveryPaths": {
15036
+ "$ref": "#/$defs/Array_5444db1618"
15252
15037
  }
15253
15038
  },
15254
15039
  "required": [
@@ -15349,16 +15134,75 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15349
15134
  }
15350
15135
  ]
15351
15136
  },
15352
- "BackendResult_0bdb207dae": {
15137
+ "BackendResult_01bd3005ba": {
15353
15138
  "anyOf": [
15354
15139
  {
15355
- "$ref": "#/$defs/BackendFailure_4a72809733"
15140
+ "$ref": "#/$defs/BackendFailure_44bf2b498a"
15356
15141
  },
15357
15142
  {
15358
15143
  "$ref": "#/$defs/BackendSuccess_a36da64ce4"
15359
15144
  }
15360
15145
  ]
15361
15146
  },
15147
+ "BackendFailure_44bf2b498a": {
15148
+ "type": "object",
15149
+ "properties": {
15150
+ "ok": {
15151
+ "type": "boolean",
15152
+ "const": false
15153
+ },
15154
+ "meta": {
15155
+ "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
15156
+ },
15157
+ "error": {
15158
+ "$ref": "#/$defs/Shape_387b06a626"
15159
+ },
15160
+ "session": {
15161
+ "$ref": "#/$defs/BackendSessionSnapshot_e59c685fc8"
15162
+ }
15163
+ },
15164
+ "required": [
15165
+ "ok",
15166
+ "meta",
15167
+ "error"
15168
+ ],
15169
+ "additionalProperties": false
15170
+ },
15171
+ "Shape_387b06a626": {
15172
+ "anyOf": [
15173
+ {
15174
+ "$ref": "#/$defs/SessionNotFoundError_878fae4543"
15175
+ },
15176
+ {
15177
+ "$ref": "#/$defs/SessionCloseFailedError_a32cd3d7ef"
15178
+ }
15179
+ ]
15180
+ },
15181
+ "SessionCloseFailedError_a32cd3d7ef": {
15182
+ "type": "object",
15183
+ "properties": {
15184
+ "code": {
15185
+ "type": "string",
15186
+ "const": "session_close_failed"
15187
+ },
15188
+ "message": {
15189
+ "type": "string"
15190
+ },
15191
+ "sessionId": {
15192
+ "type": "string"
15193
+ },
15194
+ "lockFilePath": {
15195
+ "type": "string"
15196
+ }
15197
+ },
15198
+ "required": [
15199
+ "code",
15200
+ "message",
15201
+ "sessionId",
15202
+ "lockFilePath"
15203
+ ],
15204
+ "additionalProperties": false
15205
+ },
15362
15206
  "BackendSuccess_a36da64ce4": {
15363
15207
  "type": "object",
15364
15208
  "properties": {
@@ -15475,14 +15319,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15475
15319
  "session.closeRequested",
15476
15320
  "session.closed",
15477
15321
  "cache.invalidated",
15478
- "cache.updated",
15479
- "job.created",
15480
- "job.started",
15481
- "job.progress",
15482
- "job.cancelRequested",
15483
- "job.cancelled",
15484
- "job.completed",
15485
- "job.failed"
15322
+ "cache.updated"
15486
15323
  ]
15487
15324
  },
15488
15325
  "timestamp": {
@@ -15500,9 +15337,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15500
15337
  "cacheRevision": {
15501
15338
  "type": "number"
15502
15339
  },
15503
- "jobId": {
15504
- "type": "string"
15505
- },
15506
15340
  "diagnostics": {
15507
15341
  "$ref": "#/$defs/Array_ac22034604"
15508
15342
  },
@@ -15575,17 +15409,17 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15575
15409
  ],
15576
15410
  "additionalProperties": false
15577
15411
  },
15578
- "BackendResult_6867f7c186": {
15412
+ "BackendResult_9ce39ecd14": {
15579
15413
  "anyOf": [
15580
15414
  {
15581
- "$ref": "#/$defs/BackendSuccess_18811b74a4"
15415
+ "$ref": "#/$defs/BackendFailure_4a72809733"
15582
15416
  },
15583
15417
  {
15584
- "$ref": "#/$defs/BackendFailure_9d569392b6"
15418
+ "$ref": "#/$defs/BackendSuccess_31cc9fb020"
15585
15419
  }
15586
15420
  ]
15587
15421
  },
15588
- "BackendSuccess_18811b74a4": {
15422
+ "BackendSuccess_31cc9fb020": {
15589
15423
  "type": "object",
15590
15424
  "properties": {
15591
15425
  "ok": {
@@ -15596,430 +15430,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
15596
15430
  "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
15597
15431
  },
15598
15432
  "data": {
15599
- "$ref": "#/$defs/BackendJobSnapshot_2b82742685"
15600
- }
15601
- },
15602
- "required": [
15603
- "ok",
15604
- "meta",
15605
- "data"
15606
- ],
15607
- "additionalProperties": false
15608
- },
15609
- "BackendJobSnapshot_2b82742685": {
15610
- "type": "object",
15611
- "properties": {
15612
- "jobId": {
15613
- "type": "string"
15614
- },
15615
- "kind": {
15616
- "type": "string",
15617
- "const": "cache.refresh"
15618
- },
15619
- "status": {
15620
- "enum": [
15621
- "failed",
15622
- "completed",
15623
- "running",
15624
- "queued",
15625
- "cancelled"
15626
- ]
15627
- },
15628
- "createdAt": {
15629
- "type": "string"
15630
- },
15631
- "startedAt": {
15632
- "type": "string"
15633
- },
15634
- "finishedAt": {
15635
- "type": "string"
15636
- },
15637
- "sessionId": {
15638
- "type": "string"
15639
- },
15640
- "canonicalPathKey": {
15641
- "type": "string"
15642
- },
15643
- "revision": {
15644
- "type": "number"
15645
- },
15646
- "cacheRevision": {
15647
- "type": "number"
15648
- },
15649
- "diagnostics": {
15650
- "$ref": "#/$defs/Array_ac22034604"
15651
- },
15652
- "progress": {
15653
- "$ref": "#/$defs/BackendJobProgress_f7c2c47d75"
15654
- },
15655
- "result": {},
15656
- "error": {
15657
- "$ref": "#/$defs/Shape_11316b9910"
15658
- }
15659
- },
15660
- "required": [
15661
- "jobId",
15662
- "kind",
15663
- "status",
15664
- "createdAt",
15665
- "diagnostics"
15666
- ],
15667
- "additionalProperties": false
15668
- },
15669
- "BackendJobProgress_f7c2c47d75": {
15670
- "type": "object",
15671
- "properties": {
15672
- "completed": {
15673
- "type": "number"
15674
- },
15675
- "total": {
15676
- "type": "number"
15677
- },
15678
- "message": {
15679
- "type": "string"
15680
- }
15681
- },
15682
- "required": [
15683
- "completed"
15684
- ],
15685
- "additionalProperties": false
15686
- },
15687
- "Shape_11316b9910": {
15688
- "anyOf": [
15689
- {
15690
- "$ref": "#/$defs/ApplyUamTransactionAppError_af2a5ddf50"
15691
- },
15692
- {
15693
- "$ref": "#/$defs/PathPolicyViolationError_18840ac3f7"
15694
- },
15695
- {
15696
- "$ref": "#/$defs/SessionNotFoundError_878fae4543"
15697
- },
15698
- {
15699
- "$ref": "#/$defs/TransactionPreviewError_5424ca8f17"
15700
- },
15701
- {
15702
- "$ref": "#/$defs/EntityQueryError_5b50efde28"
15703
- },
15704
- {
15705
- "$ref": "#/$defs/SessionReadError_ae519948af"
15706
- },
15707
- {
15708
- "$ref": "#/$defs/SessionStaleReadError_ebb253f443"
15709
- },
15710
- {
15711
- "$ref": "#/$defs/SessionIdConflictError_e0a264826e"
15712
- },
15713
- {
15714
- "$ref": "#/$defs/SessionStaleWriteError_4120bade9d"
15715
- },
15716
- {
15717
- "$ref": "#/$defs/InProcessLockConflictError_8019d8ab87"
15718
- },
15719
- {
15720
- "$ref": "#/$defs/AdvisoryLockConflictError_babfc4d747"
15721
- },
15722
- {
15723
- "$ref": "#/$defs/SavePartialFailureError_ed894aecf1"
15724
- },
15725
- {
15726
- "$ref": "#/$defs/UamFidelityUnsupportedError_5d35d9b9da"
15727
- },
15728
- {
15729
- "$ref": "#/$defs/MaterializeValidationFailedError_8e1dfdb713"
15730
- },
15731
- {
15732
- "$ref": "#/$defs/MaterializeWriteFailedError_886435525e"
15733
- },
15734
- {
15735
- "$ref": "#/$defs/EventCursorInvalidError_a59b20e40d"
15736
- },
15737
- {
15738
- "$ref": "#/$defs/BackendJobNotFoundError_371ea4de62"
15739
- },
15740
- {
15741
- "$ref": "#/$defs/BackendJobNotCancellableError_e8ca5b5a59"
15742
- },
15743
- {
15744
- "$ref": "#/$defs/BackendJobCancelledError_78b983814a"
15745
- },
15746
- {
15747
- "$ref": "#/$defs/CacheRefreshFailedError_affe707933"
15748
- },
15749
- {
15750
- "$ref": "#/$defs/BackendCapabilityUnavailableError_abe9cad766"
15751
- },
15752
- {
15753
- "$ref": "#/$defs/ProjectRootNotAllowedError_91f44c66e5"
15754
- },
15755
- {
15756
- "$ref": "#/$defs/ProjectOpenFailedError_63603bdf5c"
15757
- }
15758
- ]
15759
- },
15760
- "BackendJobNotFoundError_371ea4de62": {
15761
- "type": "object",
15762
- "properties": {
15763
- "code": {
15764
- "type": "string",
15765
- "const": "job_not_found"
15766
- },
15767
- "message": {
15768
- "type": "string"
15769
- },
15770
- "sessionId": {
15771
- "type": "string"
15772
- },
15773
- "jobId": {
15774
- "type": "string"
15775
- }
15776
- },
15777
- "required": [
15778
- "code",
15779
- "message",
15780
- "sessionId",
15781
- "jobId"
15782
- ],
15783
- "additionalProperties": false
15784
- },
15785
- "BackendJobNotCancellableError_e8ca5b5a59": {
15786
- "type": "object",
15787
- "properties": {
15788
- "code": {
15789
- "type": "string",
15790
- "const": "job_not_cancellable"
15791
- },
15792
- "message": {
15793
- "type": "string"
15794
- },
15795
- "sessionId": {
15796
- "type": "string"
15797
- },
15798
- "jobId": {
15799
- "type": "string"
15800
- },
15801
- "status": {
15802
- "enum": [
15803
- "failed",
15804
- "completed",
15805
- "cancelled"
15806
- ]
15807
- }
15808
- },
15809
- "required": [
15810
- "code",
15811
- "message",
15812
- "sessionId",
15813
- "jobId",
15814
- "status"
15815
- ],
15816
- "additionalProperties": false
15817
- },
15818
- "BackendJobCancelledError_78b983814a": {
15819
- "type": "object",
15820
- "properties": {
15821
- "code": {
15822
- "type": "string",
15823
- "const": "job_cancelled"
15824
- },
15825
- "message": {
15826
- "type": "string"
15827
- },
15828
- "sessionId": {
15829
- "type": "string"
15830
- },
15831
- "jobId": {
15832
- "type": "string"
15833
- }
15834
- },
15835
- "required": [
15836
- "code",
15837
- "message",
15838
- "sessionId",
15839
- "jobId"
15840
- ],
15841
- "additionalProperties": false
15842
- },
15843
- "CacheRefreshFailedError_affe707933": {
15844
- "type": "object",
15845
- "properties": {
15846
- "code": {
15847
- "type": "string",
15848
- "const": "cache_refresh_failed"
15849
- },
15850
- "message": {
15851
- "type": "string"
15852
- },
15853
- "sessionId": {
15854
- "type": "string"
15855
- },
15856
- "jobId": {
15857
- "type": "string"
15858
- },
15859
- "causeCode": {
15860
- "type": "string"
15861
- }
15862
- },
15863
- "required": [
15864
- "code",
15865
- "message",
15866
- "sessionId",
15867
- "jobId"
15868
- ],
15869
- "additionalProperties": false
15870
- },
15871
- "BackendFailure_9d569392b6": {
15872
- "type": "object",
15873
- "properties": {
15874
- "ok": {
15875
- "type": "boolean",
15876
- "const": false
15877
- },
15878
- "meta": {
15879
- "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
15880
- },
15881
- "error": {
15882
- "$ref": "#/$defs/Shape_9759774074"
15883
- },
15884
- "session": {
15885
- "$ref": "#/$defs/BackendSessionSnapshot_e59c685fc8"
15886
- }
15887
- },
15888
- "required": [
15889
- "ok",
15890
- "meta",
15891
- "error"
15892
- ],
15893
- "additionalProperties": false
15894
- },
15895
- "Shape_9759774074": {
15896
- "anyOf": [
15897
- {
15898
- "$ref": "#/$defs/SessionNotFoundError_878fae4543"
15899
- },
15900
- {
15901
- "$ref": "#/$defs/BackendJobNotFoundError_371ea4de62"
15902
- }
15903
- ]
15904
- },
15905
- "BackendResult_fea5a3c6da": {
15906
- "anyOf": [
15907
- {
15908
- "$ref": "#/$defs/BackendFailure_4a72809733"
15909
- },
15910
- {
15911
- "$ref": "#/$defs/BackendSuccess_a062422afa"
15912
- }
15913
- ]
15914
- },
15915
- "BackendSuccess_a062422afa": {
15916
- "type": "object",
15917
- "properties": {
15918
- "ok": {
15919
- "type": "boolean",
15920
- "const": true
15921
- },
15922
- "meta": {
15923
- "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
15924
- },
15925
- "data": {
15926
- "$ref": "#/$defs/BackendJobListSnapshot_f7668efb57"
15927
- }
15928
- },
15929
- "required": [
15930
- "ok",
15931
- "meta",
15932
- "data"
15933
- ],
15934
- "additionalProperties": false
15935
- },
15936
- "BackendJobListSnapshot_f7668efb57": {
15937
- "type": "object",
15938
- "properties": {
15939
- "jobs": {
15940
- "$ref": "#/$defs/Array_0a293bd952"
15941
- }
15942
- },
15943
- "required": [
15944
- "jobs"
15945
- ],
15946
- "additionalProperties": false
15947
- },
15948
- "Array_0a293bd952": {
15949
- "type": "array",
15950
- "items": {
15951
- "$ref": "#/$defs/BackendJobSnapshot_2b82742685"
15952
- }
15953
- },
15954
- "BackendResult_fb76e59f94": {
15955
- "anyOf": [
15956
- {
15957
- "$ref": "#/$defs/BackendSuccess_18811b74a4"
15958
- },
15959
- {
15960
- "$ref": "#/$defs/BackendFailure_618b0636be"
15961
- }
15962
- ]
15963
- },
15964
- "BackendFailure_618b0636be": {
15965
- "type": "object",
15966
- "properties": {
15967
- "ok": {
15968
- "type": "boolean",
15969
- "const": false
15970
- },
15971
- "meta": {
15972
- "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
15973
- },
15974
- "error": {
15975
- "$ref": "#/$defs/Shape_0c298f9d73"
15976
- },
15977
- "session": {
15978
- "$ref": "#/$defs/BackendSessionSnapshot_e59c685fc8"
15979
- }
15980
- },
15981
- "required": [
15982
- "ok",
15983
- "meta",
15984
- "error"
15985
- ],
15986
- "additionalProperties": false
15987
- },
15988
- "Shape_0c298f9d73": {
15989
- "anyOf": [
15990
- {
15991
- "$ref": "#/$defs/SessionNotFoundError_878fae4543"
15992
- },
15993
- {
15994
- "$ref": "#/$defs/BackendJobNotFoundError_371ea4de62"
15995
- },
15996
- {
15997
- "$ref": "#/$defs/BackendJobNotCancellableError_e8ca5b5a59"
15998
- }
15999
- ]
16000
- },
16001
- "BackendResult_9ce39ecd14": {
16002
- "anyOf": [
16003
- {
16004
- "$ref": "#/$defs/BackendSuccess_31cc9fb020"
16005
- },
16006
- {
16007
- "$ref": "#/$defs/BackendFailure_4a72809733"
16008
- }
16009
- ]
16010
- },
16011
- "BackendSuccess_31cc9fb020": {
16012
- "type": "object",
16013
- "properties": {
16014
- "ok": {
16015
- "type": "boolean",
16016
- "const": true
16017
- },
16018
- "meta": {
16019
- "$ref": "#/$defs/BackendResponseMeta_bbbdb18c02"
16020
- },
16021
- "data": {
16022
- "$ref": "#/$defs/BackendCacheSnapshot_e50c46374b"
15433
+ "$ref": "#/$defs/BackendCacheSnapshot_e50c46374b"
16023
15434
  }
16024
15435
  },
16025
15436
  "required": [
@@ -16109,16 +15520,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
16109
15520
  ],
16110
15521
  "additionalProperties": false
16111
15522
  },
16112
- "BackendResult_c0ff465141": {
16113
- "anyOf": [
16114
- {
16115
- "$ref": "#/$defs/BackendFailure_4a72809733"
16116
- },
16117
- {
16118
- "$ref": "#/$defs/BackendSuccess_18811b74a4"
16119
- }
16120
- ]
16121
- },
16122
15523
  "BackendSessionProjectModel_6724369185_read": {
16123
15524
  "type": "object",
16124
15525
  "properties": {
@@ -22443,6 +21844,93 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
22443
21844
  ],
22444
21845
  "additionalProperties": false
22445
21846
  },
21847
+ "CliEnvelope_a2522f4864": {
21848
+ "anyOf": [
21849
+ {
21850
+ "$ref": "#/$defs/__type_b6b531a0e9"
21851
+ },
21852
+ {
21853
+ "$ref": "#/$defs/__type_215ae441f7"
21854
+ }
21855
+ ]
21856
+ },
21857
+ "__type_b6b531a0e9": {
21858
+ "type": "object",
21859
+ "properties": {
21860
+ "schemaVersion": {
21861
+ "type": "number",
21862
+ "const": 1
21863
+ },
21864
+ "command": {
21865
+ "type": "string",
21866
+ "const": "restore"
21867
+ },
21868
+ "success": {
21869
+ "type": "boolean",
21870
+ "const": true
21871
+ },
21872
+ "result": {
21873
+ "$ref": "#/$defs/__type_2f01710413"
21874
+ }
21875
+ },
21876
+ "required": [
21877
+ "schemaVersion",
21878
+ "command",
21879
+ "success",
21880
+ "result"
21881
+ ],
21882
+ "additionalProperties": false
21883
+ },
21884
+ "__type_2f01710413": {
21885
+ "type": "object",
21886
+ "properties": {
21887
+ "projectPath": {
21888
+ "type": "string"
21889
+ },
21890
+ "packages": {
21891
+ "$ref": "#/$defs/Array_3ee146c367"
21892
+ },
21893
+ "warnings": {
21894
+ "$ref": "#/$defs/Array_5444db1618"
21895
+ }
21896
+ },
21897
+ "required": [
21898
+ "projectPath",
21899
+ "packages",
21900
+ "warnings"
21901
+ ],
21902
+ "additionalProperties": false
21903
+ },
21904
+ "__type_215ae441f7": {
21905
+ "type": "object",
21906
+ "properties": {
21907
+ "schemaVersion": {
21908
+ "type": "number",
21909
+ "const": 1
21910
+ },
21911
+ "command": {
21912
+ "type": "string",
21913
+ "const": "restore"
21914
+ },
21915
+ "success": {
21916
+ "type": "boolean",
21917
+ "const": false
21918
+ },
21919
+ "error": {
21920
+ "$ref": "#/$defs/CliError_53076daab4"
21921
+ },
21922
+ "result": {
21923
+ "$ref": "#/$defs/__type_2f01710413"
21924
+ }
21925
+ },
21926
+ "required": [
21927
+ "schemaVersion",
21928
+ "command",
21929
+ "success",
21930
+ "error"
21931
+ ],
21932
+ "additionalProperties": false
21933
+ },
22446
21934
  "CliEnvelope_e114e8964e": {
22447
21935
  "anyOf": [
22448
21936
  {
@@ -22860,93 +22348,6 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
22860
22348
  ],
22861
22349
  "additionalProperties": false
22862
22350
  },
22863
- "CliEnvelope_a2522f4864": {
22864
- "anyOf": [
22865
- {
22866
- "$ref": "#/$defs/__type_b6b531a0e9"
22867
- },
22868
- {
22869
- "$ref": "#/$defs/__type_215ae441f7"
22870
- }
22871
- ]
22872
- },
22873
- "__type_b6b531a0e9": {
22874
- "type": "object",
22875
- "properties": {
22876
- "schemaVersion": {
22877
- "type": "number",
22878
- "const": 1
22879
- },
22880
- "command": {
22881
- "type": "string",
22882
- "const": "restore"
22883
- },
22884
- "success": {
22885
- "type": "boolean",
22886
- "const": true
22887
- },
22888
- "result": {
22889
- "$ref": "#/$defs/__type_2f01710413"
22890
- }
22891
- },
22892
- "required": [
22893
- "schemaVersion",
22894
- "command",
22895
- "success",
22896
- "result"
22897
- ],
22898
- "additionalProperties": false
22899
- },
22900
- "__type_2f01710413": {
22901
- "type": "object",
22902
- "properties": {
22903
- "projectPath": {
22904
- "type": "string"
22905
- },
22906
- "packages": {
22907
- "$ref": "#/$defs/Array_3ee146c367"
22908
- },
22909
- "warnings": {
22910
- "$ref": "#/$defs/Array_5444db1618"
22911
- }
22912
- },
22913
- "required": [
22914
- "projectPath",
22915
- "packages",
22916
- "warnings"
22917
- ],
22918
- "additionalProperties": false
22919
- },
22920
- "__type_215ae441f7": {
22921
- "type": "object",
22922
- "properties": {
22923
- "schemaVersion": {
22924
- "type": "number",
22925
- "const": 1
22926
- },
22927
- "command": {
22928
- "type": "string",
22929
- "const": "restore"
22930
- },
22931
- "success": {
22932
- "type": "boolean",
22933
- "const": false
22934
- },
22935
- "error": {
22936
- "$ref": "#/$defs/CliError_53076daab4"
22937
- },
22938
- "result": {
22939
- "$ref": "#/$defs/__type_2f01710413"
22940
- }
22941
- },
22942
- "required": [
22943
- "schemaVersion",
22944
- "command",
22945
- "success",
22946
- "error"
22947
- ],
22948
- "additionalProperties": false
22949
- },
22950
22351
  "CliEnvelope_5faeabe7ff": {
22951
22352
  "anyOf": [
22952
22353
  {
@@ -23798,6 +23199,16 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
23798
23199
  "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."
23799
23200
  }
23800
23201
  },
23202
+ {
23203
+ "code": "session_close_failed",
23204
+ "owners": [
23205
+ "backend"
23206
+ ],
23207
+ "remediation": {
23208
+ "kind": "host-action",
23209
+ "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."
23210
+ }
23211
+ },
23801
23212
  {
23802
23213
  "code": "path_policy_violation",
23803
23214
  "owners": [
@@ -24742,47 +24153,7 @@ export const CONTRACT_SNAPSHOT: ContractSnapshot = {
24742
24153
  "kind": "host-action",
24743
24154
  "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."
24744
24155
  }
24745
- },
24746
- {
24747
- "code": "cache_refresh_failed",
24748
- "owners": [
24749
- "backend"
24750
- ],
24751
- "remediation": {
24752
- "kind": "host-action",
24753
- "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."
24754
- }
24755
- },
24756
- {
24757
- "code": "job_not_found",
24758
- "owners": [
24759
- "backend"
24760
- ],
24761
- "remediation": {
24762
- "kind": "host-action",
24763
- "message": "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success."
24764
- }
24765
- },
24766
- {
24767
- "code": "job_not_cancellable",
24768
- "owners": [
24769
- "backend"
24770
- ],
24771
- "remediation": {
24772
- "kind": "host-action",
24773
- "message": "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success."
24774
- }
24775
- },
24776
- {
24777
- "code": "job_cancelled",
24778
- "owners": [
24779
- "backend"
24780
- ],
24781
- "remediation": {
24782
- "kind": "host-action",
24783
- "message": "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success."
24784
- }
24785
24156
  }
24786
24157
  ],
24787
- "digest": "cba5c0427b91c5d28c7c4277dcbb4a16f48e9fedf91fa1f66375495f8bfc71b0"
24158
+ "digest": "758763ae4b6724a25a82dc0edbe10c7c13478589bdabf84b847dd2d7b745331d"
24788
24159
  };