@openclaw/codex 2026.5.25-beta.1 → 2026.5.26-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-SrtuTTVa.js → client-BVK_jmHW.js} +1 -1
- package/dist/client-factory-fW4Hh9q_.js +15 -0
- package/dist/{command-handlers-CLtPT37L.js → command-handlers-hYTtzAdy.js} +8 -8
- package/dist/{compact-acCua7zr.js → compact-C_1JAB4C.js} +26 -3
- package/dist/{computer-use-CVfE2Vfb.js → computer-use-DSdj1hJY.js} +2 -2
- package/dist/{config-D6TUuyo2.js → config-0-UN67Qg.js} +2 -1
- package/dist/{conversation-binding-B-GevkEb.js → conversation-binding-OjYqDwhw.js} +114 -88
- package/dist/{dynamic-tools-BXAE1U1-.js → dynamic-tools-DlEefKNQ.js} +61 -20
- package/dist/harness.js +5 -5
- package/dist/index.js +10 -9
- package/dist/media-understanding-provider.js +7 -7
- package/dist/{models-CC2IusQs.js → models-_XwpqjR8.js} +5 -4
- package/dist/{notification-correlation-D7tJW3FW.js → notification-correlation-YINts3PA.js} +1 -1
- package/dist/{protocol-validators-_gKDcd0x.js → protocol-validators-DtjYmUw_.js} +188 -441
- package/dist/provider.js +2 -2
- package/dist/{request-BO0z3vA8.js → request-OaxhR46w.js} +5 -4
- package/dist/{run-attempt-BjoI3hUJ.js → run-attempt-D8Vxo-Jm.js} +497 -176
- package/dist/{session-binding-CwNOIDP2.js → session-binding-UFjjws4k.js} +1 -1
- package/dist/{shared-client-CZP1DjaN.js → shared-client-8kIrP817.js} +167 -17
- package/dist/{side-question-Cb4COOQ9.js → side-question-DU7en3_R.js} +12 -11
- package/dist/test-api.js +3 -3
- package/dist/{thread-lifecycle-CXMd9UgJ.js → thread-lifecycle-CUXQezJL.js} +110 -22
- package/dist/{vision-tools-CETeQgze.js → vision-tools-DqpLmF5H.js} +5 -3
- package/npm-shrinkwrap.json +35 -105
- package/package.json +6 -6
- package/dist/client-factory-A7DQkSLq.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Compile } from "typebox/compile";
|
|
2
2
|
//#region extensions/codex/src/app-server/protocol-generated/json/DynamicToolCallParams.json
|
|
3
3
|
var DynamicToolCallParams_default = {
|
|
4
4
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -312,11 +312,6 @@ var ThreadResumeResponse_default = {
|
|
|
312
312
|
},
|
|
313
313
|
"model": { "type": "string" },
|
|
314
314
|
"modelProvider": { "type": "string" },
|
|
315
|
-
"permissionProfile": {
|
|
316
|
-
"description": "Full active permissions for this thread. `activePermissionProfile` carries display/provenance metadata for this runtime profile.",
|
|
317
|
-
"default": null,
|
|
318
|
-
"anyOf": [{ "$ref": "#/definitions/PermissionProfile" }, { "type": "null" }]
|
|
319
|
-
},
|
|
320
315
|
"reasoningEffort": { "anyOf": [{ "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" }] },
|
|
321
316
|
"runtimeWorkspaceRoots": {
|
|
322
317
|
"description": "Thread-scoped runtime workspace roots used to materialize `:workspace_roots`.",
|
|
@@ -325,7 +320,7 @@ var ThreadResumeResponse_default = {
|
|
|
325
320
|
"items": { "$ref": "#/definitions/AbsolutePathBuf" }
|
|
326
321
|
},
|
|
327
322
|
"sandbox": {
|
|
328
|
-
"description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `
|
|
323
|
+
"description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.",
|
|
329
324
|
"allOf": [{ "$ref": "#/definitions/SandboxPolicy" }]
|
|
330
325
|
},
|
|
331
326
|
"serviceTier": { "type": ["string", "null"] },
|
|
@@ -656,125 +651,6 @@ var ThreadResumeResponse_default = {
|
|
|
656
651
|
"failed"
|
|
657
652
|
]
|
|
658
653
|
},
|
|
659
|
-
"FileSystemAccessMode": {
|
|
660
|
-
"type": "string",
|
|
661
|
-
"enum": [
|
|
662
|
-
"read",
|
|
663
|
-
"write",
|
|
664
|
-
"none"
|
|
665
|
-
]
|
|
666
|
-
},
|
|
667
|
-
"FileSystemPath": { "oneOf": [
|
|
668
|
-
{
|
|
669
|
-
"type": "object",
|
|
670
|
-
"required": ["path", "type"],
|
|
671
|
-
"properties": {
|
|
672
|
-
"path": { "$ref": "#/definitions/AbsolutePathBuf" },
|
|
673
|
-
"type": {
|
|
674
|
-
"type": "string",
|
|
675
|
-
"enum": ["path"],
|
|
676
|
-
"title": "PathFileSystemPathType"
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
"title": "PathFileSystemPath"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"type": "object",
|
|
683
|
-
"required": ["pattern", "type"],
|
|
684
|
-
"properties": {
|
|
685
|
-
"pattern": { "type": "string" },
|
|
686
|
-
"type": {
|
|
687
|
-
"type": "string",
|
|
688
|
-
"enum": ["glob_pattern"],
|
|
689
|
-
"title": "GlobPatternFileSystemPathType"
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
"title": "GlobPatternFileSystemPath"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
"type": "object",
|
|
696
|
-
"required": ["type", "value"],
|
|
697
|
-
"properties": {
|
|
698
|
-
"type": {
|
|
699
|
-
"type": "string",
|
|
700
|
-
"enum": ["special"],
|
|
701
|
-
"title": "SpecialFileSystemPathType"
|
|
702
|
-
},
|
|
703
|
-
"value": { "$ref": "#/definitions/FileSystemSpecialPath" }
|
|
704
|
-
},
|
|
705
|
-
"title": "SpecialFileSystemPath"
|
|
706
|
-
}
|
|
707
|
-
] },
|
|
708
|
-
"FileSystemSandboxEntry": {
|
|
709
|
-
"type": "object",
|
|
710
|
-
"required": ["access", "path"],
|
|
711
|
-
"properties": {
|
|
712
|
-
"access": { "$ref": "#/definitions/FileSystemAccessMode" },
|
|
713
|
-
"path": { "$ref": "#/definitions/FileSystemPath" }
|
|
714
|
-
}
|
|
715
|
-
},
|
|
716
|
-
"FileSystemSpecialPath": { "oneOf": [
|
|
717
|
-
{
|
|
718
|
-
"type": "object",
|
|
719
|
-
"required": ["kind"],
|
|
720
|
-
"properties": { "kind": {
|
|
721
|
-
"type": "string",
|
|
722
|
-
"enum": ["root"]
|
|
723
|
-
} },
|
|
724
|
-
"title": "RootFileSystemSpecialPath"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"type": "object",
|
|
728
|
-
"required": ["kind"],
|
|
729
|
-
"properties": { "kind": {
|
|
730
|
-
"type": "string",
|
|
731
|
-
"enum": ["minimal"]
|
|
732
|
-
} },
|
|
733
|
-
"title": "MinimalFileSystemSpecialPath"
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
"type": "object",
|
|
737
|
-
"required": ["kind"],
|
|
738
|
-
"properties": {
|
|
739
|
-
"kind": {
|
|
740
|
-
"type": "string",
|
|
741
|
-
"enum": ["project_roots"]
|
|
742
|
-
},
|
|
743
|
-
"subpath": { "type": ["string", "null"] }
|
|
744
|
-
},
|
|
745
|
-
"title": "KindFileSystemSpecialPath"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
"type": "object",
|
|
749
|
-
"required": ["kind"],
|
|
750
|
-
"properties": { "kind": {
|
|
751
|
-
"type": "string",
|
|
752
|
-
"enum": ["tmpdir"]
|
|
753
|
-
} },
|
|
754
|
-
"title": "TmpdirFileSystemSpecialPath"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"type": "object",
|
|
758
|
-
"required": ["kind"],
|
|
759
|
-
"properties": { "kind": {
|
|
760
|
-
"type": "string",
|
|
761
|
-
"enum": ["slash_tmp"]
|
|
762
|
-
} },
|
|
763
|
-
"title": "SlashTmpFileSystemSpecialPath"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
"type": "object",
|
|
767
|
-
"required": ["kind", "path"],
|
|
768
|
-
"properties": {
|
|
769
|
-
"kind": {
|
|
770
|
-
"type": "string",
|
|
771
|
-
"enum": ["unknown"]
|
|
772
|
-
},
|
|
773
|
-
"path": { "type": "string" },
|
|
774
|
-
"subpath": { "type": ["string", "null"] }
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
] },
|
|
778
654
|
"FileUpdateChange": {
|
|
779
655
|
"type": "object",
|
|
780
656
|
"required": [
|
|
@@ -804,6 +680,10 @@ var ThreadResumeResponse_default = {
|
|
|
804
680
|
"text": { "type": "string" }
|
|
805
681
|
}
|
|
806
682
|
},
|
|
683
|
+
"ImageDetail": {
|
|
684
|
+
"type": "string",
|
|
685
|
+
"enum": ["high", "original"]
|
|
686
|
+
},
|
|
807
687
|
"McpToolCallError": {
|
|
808
688
|
"type": "object",
|
|
809
689
|
"required": ["message"],
|
|
@@ -930,87 +810,6 @@ var ThreadResumeResponse_default = {
|
|
|
930
810
|
"title": "UpdatePatchChangeKind"
|
|
931
811
|
}
|
|
932
812
|
] },
|
|
933
|
-
"PermissionProfile": { "oneOf": [
|
|
934
|
-
{
|
|
935
|
-
"description": "Codex owns sandbox construction for this profile.",
|
|
936
|
-
"type": "object",
|
|
937
|
-
"required": [
|
|
938
|
-
"fileSystem",
|
|
939
|
-
"network",
|
|
940
|
-
"type"
|
|
941
|
-
],
|
|
942
|
-
"properties": {
|
|
943
|
-
"fileSystem": { "$ref": "#/definitions/PermissionProfileFileSystemPermissions" },
|
|
944
|
-
"network": { "$ref": "#/definitions/PermissionProfileNetworkPermissions" },
|
|
945
|
-
"type": {
|
|
946
|
-
"type": "string",
|
|
947
|
-
"enum": ["managed"],
|
|
948
|
-
"title": "ManagedPermissionProfileType"
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
"title": "ManagedPermissionProfile"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"description": "Do not apply an outer sandbox.",
|
|
955
|
-
"type": "object",
|
|
956
|
-
"required": ["type"],
|
|
957
|
-
"properties": { "type": {
|
|
958
|
-
"type": "string",
|
|
959
|
-
"enum": ["disabled"],
|
|
960
|
-
"title": "DisabledPermissionProfileType"
|
|
961
|
-
} },
|
|
962
|
-
"title": "DisabledPermissionProfile"
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"description": "Filesystem isolation is enforced by an external caller.",
|
|
966
|
-
"type": "object",
|
|
967
|
-
"required": ["network", "type"],
|
|
968
|
-
"properties": {
|
|
969
|
-
"network": { "$ref": "#/definitions/PermissionProfileNetworkPermissions" },
|
|
970
|
-
"type": {
|
|
971
|
-
"type": "string",
|
|
972
|
-
"enum": ["external"],
|
|
973
|
-
"title": "ExternalPermissionProfileType"
|
|
974
|
-
}
|
|
975
|
-
},
|
|
976
|
-
"title": "ExternalPermissionProfile"
|
|
977
|
-
}
|
|
978
|
-
] },
|
|
979
|
-
"PermissionProfileFileSystemPermissions": { "oneOf": [{
|
|
980
|
-
"type": "object",
|
|
981
|
-
"required": ["entries", "type"],
|
|
982
|
-
"properties": {
|
|
983
|
-
"entries": {
|
|
984
|
-
"type": "array",
|
|
985
|
-
"items": { "$ref": "#/definitions/FileSystemSandboxEntry" }
|
|
986
|
-
},
|
|
987
|
-
"globScanMaxDepth": {
|
|
988
|
-
"type": ["integer", "null"],
|
|
989
|
-
"format": "uint",
|
|
990
|
-
"minimum": 1
|
|
991
|
-
},
|
|
992
|
-
"type": {
|
|
993
|
-
"type": "string",
|
|
994
|
-
"enum": ["restricted"],
|
|
995
|
-
"title": "RestrictedPermissionProfileFileSystemPermissionsType"
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
"title": "RestrictedPermissionProfileFileSystemPermissions"
|
|
999
|
-
}, {
|
|
1000
|
-
"type": "object",
|
|
1001
|
-
"required": ["type"],
|
|
1002
|
-
"properties": { "type": {
|
|
1003
|
-
"type": "string",
|
|
1004
|
-
"enum": ["unrestricted"],
|
|
1005
|
-
"title": "UnrestrictedPermissionProfileFileSystemPermissionsType"
|
|
1006
|
-
} },
|
|
1007
|
-
"title": "UnrestrictedPermissionProfileFileSystemPermissions"
|
|
1008
|
-
}] },
|
|
1009
|
-
"PermissionProfileNetworkPermissions": {
|
|
1010
|
-
"type": "object",
|
|
1011
|
-
"required": ["enabled"],
|
|
1012
|
-
"properties": { "enabled": { "type": "boolean" } }
|
|
1013
|
-
},
|
|
1014
813
|
"ReasoningEffort": {
|
|
1015
814
|
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
|
|
1016
815
|
"type": "string",
|
|
@@ -1863,6 +1662,10 @@ var ThreadResumeResponse_default = {
|
|
|
1863
1662
|
"type": "object",
|
|
1864
1663
|
"required": ["type", "url"],
|
|
1865
1664
|
"properties": {
|
|
1665
|
+
"detail": {
|
|
1666
|
+
"default": null,
|
|
1667
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
1668
|
+
},
|
|
1866
1669
|
"type": {
|
|
1867
1670
|
"type": "string",
|
|
1868
1671
|
"enum": ["image"],
|
|
@@ -1876,6 +1679,10 @@ var ThreadResumeResponse_default = {
|
|
|
1876
1679
|
"type": "object",
|
|
1877
1680
|
"required": ["path", "type"],
|
|
1878
1681
|
"properties": {
|
|
1682
|
+
"detail": {
|
|
1683
|
+
"default": null,
|
|
1684
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
1685
|
+
},
|
|
1879
1686
|
"path": { "type": "string" },
|
|
1880
1687
|
"type": {
|
|
1881
1688
|
"type": "string",
|
|
@@ -2015,11 +1822,6 @@ var ThreadStartResponse_default = {
|
|
|
2015
1822
|
},
|
|
2016
1823
|
"model": { "type": "string" },
|
|
2017
1824
|
"modelProvider": { "type": "string" },
|
|
2018
|
-
"permissionProfile": {
|
|
2019
|
-
"description": "Full active permissions for this thread. `activePermissionProfile` carries display/provenance metadata for this runtime profile.",
|
|
2020
|
-
"default": null,
|
|
2021
|
-
"anyOf": [{ "$ref": "#/definitions/PermissionProfile" }, { "type": "null" }]
|
|
2022
|
-
},
|
|
2023
1825
|
"reasoningEffort": { "anyOf": [{ "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" }] },
|
|
2024
1826
|
"runtimeWorkspaceRoots": {
|
|
2025
1827
|
"description": "Thread-scoped runtime workspace roots used to materialize `:workspace_roots`.",
|
|
@@ -2028,7 +1830,7 @@ var ThreadStartResponse_default = {
|
|
|
2028
1830
|
"items": { "$ref": "#/definitions/AbsolutePathBuf" }
|
|
2029
1831
|
},
|
|
2030
1832
|
"sandbox": {
|
|
2031
|
-
"description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `
|
|
1833
|
+
"description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.",
|
|
2032
1834
|
"allOf": [{ "$ref": "#/definitions/SandboxPolicy" }]
|
|
2033
1835
|
},
|
|
2034
1836
|
"serviceTier": { "type": ["string", "null"] },
|
|
@@ -2359,125 +2161,6 @@ var ThreadStartResponse_default = {
|
|
|
2359
2161
|
"failed"
|
|
2360
2162
|
]
|
|
2361
2163
|
},
|
|
2362
|
-
"FileSystemAccessMode": {
|
|
2363
|
-
"type": "string",
|
|
2364
|
-
"enum": [
|
|
2365
|
-
"read",
|
|
2366
|
-
"write",
|
|
2367
|
-
"none"
|
|
2368
|
-
]
|
|
2369
|
-
},
|
|
2370
|
-
"FileSystemPath": { "oneOf": [
|
|
2371
|
-
{
|
|
2372
|
-
"type": "object",
|
|
2373
|
-
"required": ["path", "type"],
|
|
2374
|
-
"properties": {
|
|
2375
|
-
"path": { "$ref": "#/definitions/AbsolutePathBuf" },
|
|
2376
|
-
"type": {
|
|
2377
|
-
"type": "string",
|
|
2378
|
-
"enum": ["path"],
|
|
2379
|
-
"title": "PathFileSystemPathType"
|
|
2380
|
-
}
|
|
2381
|
-
},
|
|
2382
|
-
"title": "PathFileSystemPath"
|
|
2383
|
-
},
|
|
2384
|
-
{
|
|
2385
|
-
"type": "object",
|
|
2386
|
-
"required": ["pattern", "type"],
|
|
2387
|
-
"properties": {
|
|
2388
|
-
"pattern": { "type": "string" },
|
|
2389
|
-
"type": {
|
|
2390
|
-
"type": "string",
|
|
2391
|
-
"enum": ["glob_pattern"],
|
|
2392
|
-
"title": "GlobPatternFileSystemPathType"
|
|
2393
|
-
}
|
|
2394
|
-
},
|
|
2395
|
-
"title": "GlobPatternFileSystemPath"
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"type": "object",
|
|
2399
|
-
"required": ["type", "value"],
|
|
2400
|
-
"properties": {
|
|
2401
|
-
"type": {
|
|
2402
|
-
"type": "string",
|
|
2403
|
-
"enum": ["special"],
|
|
2404
|
-
"title": "SpecialFileSystemPathType"
|
|
2405
|
-
},
|
|
2406
|
-
"value": { "$ref": "#/definitions/FileSystemSpecialPath" }
|
|
2407
|
-
},
|
|
2408
|
-
"title": "SpecialFileSystemPath"
|
|
2409
|
-
}
|
|
2410
|
-
] },
|
|
2411
|
-
"FileSystemSandboxEntry": {
|
|
2412
|
-
"type": "object",
|
|
2413
|
-
"required": ["access", "path"],
|
|
2414
|
-
"properties": {
|
|
2415
|
-
"access": { "$ref": "#/definitions/FileSystemAccessMode" },
|
|
2416
|
-
"path": { "$ref": "#/definitions/FileSystemPath" }
|
|
2417
|
-
}
|
|
2418
|
-
},
|
|
2419
|
-
"FileSystemSpecialPath": { "oneOf": [
|
|
2420
|
-
{
|
|
2421
|
-
"type": "object",
|
|
2422
|
-
"required": ["kind"],
|
|
2423
|
-
"properties": { "kind": {
|
|
2424
|
-
"type": "string",
|
|
2425
|
-
"enum": ["root"]
|
|
2426
|
-
} },
|
|
2427
|
-
"title": "RootFileSystemSpecialPath"
|
|
2428
|
-
},
|
|
2429
|
-
{
|
|
2430
|
-
"type": "object",
|
|
2431
|
-
"required": ["kind"],
|
|
2432
|
-
"properties": { "kind": {
|
|
2433
|
-
"type": "string",
|
|
2434
|
-
"enum": ["minimal"]
|
|
2435
|
-
} },
|
|
2436
|
-
"title": "MinimalFileSystemSpecialPath"
|
|
2437
|
-
},
|
|
2438
|
-
{
|
|
2439
|
-
"type": "object",
|
|
2440
|
-
"required": ["kind"],
|
|
2441
|
-
"properties": {
|
|
2442
|
-
"kind": {
|
|
2443
|
-
"type": "string",
|
|
2444
|
-
"enum": ["project_roots"]
|
|
2445
|
-
},
|
|
2446
|
-
"subpath": { "type": ["string", "null"] }
|
|
2447
|
-
},
|
|
2448
|
-
"title": "KindFileSystemSpecialPath"
|
|
2449
|
-
},
|
|
2450
|
-
{
|
|
2451
|
-
"type": "object",
|
|
2452
|
-
"required": ["kind"],
|
|
2453
|
-
"properties": { "kind": {
|
|
2454
|
-
"type": "string",
|
|
2455
|
-
"enum": ["tmpdir"]
|
|
2456
|
-
} },
|
|
2457
|
-
"title": "TmpdirFileSystemSpecialPath"
|
|
2458
|
-
},
|
|
2459
|
-
{
|
|
2460
|
-
"type": "object",
|
|
2461
|
-
"required": ["kind"],
|
|
2462
|
-
"properties": { "kind": {
|
|
2463
|
-
"type": "string",
|
|
2464
|
-
"enum": ["slash_tmp"]
|
|
2465
|
-
} },
|
|
2466
|
-
"title": "SlashTmpFileSystemSpecialPath"
|
|
2467
|
-
},
|
|
2468
|
-
{
|
|
2469
|
-
"type": "object",
|
|
2470
|
-
"required": ["kind", "path"],
|
|
2471
|
-
"properties": {
|
|
2472
|
-
"kind": {
|
|
2473
|
-
"type": "string",
|
|
2474
|
-
"enum": ["unknown"]
|
|
2475
|
-
},
|
|
2476
|
-
"path": { "type": "string" },
|
|
2477
|
-
"subpath": { "type": ["string", "null"] }
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
] },
|
|
2481
2164
|
"FileUpdateChange": {
|
|
2482
2165
|
"type": "object",
|
|
2483
2166
|
"required": [
|
|
@@ -2507,6 +2190,10 @@ var ThreadStartResponse_default = {
|
|
|
2507
2190
|
"text": { "type": "string" }
|
|
2508
2191
|
}
|
|
2509
2192
|
},
|
|
2193
|
+
"ImageDetail": {
|
|
2194
|
+
"type": "string",
|
|
2195
|
+
"enum": ["high", "original"]
|
|
2196
|
+
},
|
|
2510
2197
|
"McpToolCallError": {
|
|
2511
2198
|
"type": "object",
|
|
2512
2199
|
"required": ["message"],
|
|
@@ -2633,87 +2320,6 @@ var ThreadStartResponse_default = {
|
|
|
2633
2320
|
"title": "UpdatePatchChangeKind"
|
|
2634
2321
|
}
|
|
2635
2322
|
] },
|
|
2636
|
-
"PermissionProfile": { "oneOf": [
|
|
2637
|
-
{
|
|
2638
|
-
"description": "Codex owns sandbox construction for this profile.",
|
|
2639
|
-
"type": "object",
|
|
2640
|
-
"required": [
|
|
2641
|
-
"fileSystem",
|
|
2642
|
-
"network",
|
|
2643
|
-
"type"
|
|
2644
|
-
],
|
|
2645
|
-
"properties": {
|
|
2646
|
-
"fileSystem": { "$ref": "#/definitions/PermissionProfileFileSystemPermissions" },
|
|
2647
|
-
"network": { "$ref": "#/definitions/PermissionProfileNetworkPermissions" },
|
|
2648
|
-
"type": {
|
|
2649
|
-
"type": "string",
|
|
2650
|
-
"enum": ["managed"],
|
|
2651
|
-
"title": "ManagedPermissionProfileType"
|
|
2652
|
-
}
|
|
2653
|
-
},
|
|
2654
|
-
"title": "ManagedPermissionProfile"
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
"description": "Do not apply an outer sandbox.",
|
|
2658
|
-
"type": "object",
|
|
2659
|
-
"required": ["type"],
|
|
2660
|
-
"properties": { "type": {
|
|
2661
|
-
"type": "string",
|
|
2662
|
-
"enum": ["disabled"],
|
|
2663
|
-
"title": "DisabledPermissionProfileType"
|
|
2664
|
-
} },
|
|
2665
|
-
"title": "DisabledPermissionProfile"
|
|
2666
|
-
},
|
|
2667
|
-
{
|
|
2668
|
-
"description": "Filesystem isolation is enforced by an external caller.",
|
|
2669
|
-
"type": "object",
|
|
2670
|
-
"required": ["network", "type"],
|
|
2671
|
-
"properties": {
|
|
2672
|
-
"network": { "$ref": "#/definitions/PermissionProfileNetworkPermissions" },
|
|
2673
|
-
"type": {
|
|
2674
|
-
"type": "string",
|
|
2675
|
-
"enum": ["external"],
|
|
2676
|
-
"title": "ExternalPermissionProfileType"
|
|
2677
|
-
}
|
|
2678
|
-
},
|
|
2679
|
-
"title": "ExternalPermissionProfile"
|
|
2680
|
-
}
|
|
2681
|
-
] },
|
|
2682
|
-
"PermissionProfileFileSystemPermissions": { "oneOf": [{
|
|
2683
|
-
"type": "object",
|
|
2684
|
-
"required": ["entries", "type"],
|
|
2685
|
-
"properties": {
|
|
2686
|
-
"entries": {
|
|
2687
|
-
"type": "array",
|
|
2688
|
-
"items": { "$ref": "#/definitions/FileSystemSandboxEntry" }
|
|
2689
|
-
},
|
|
2690
|
-
"globScanMaxDepth": {
|
|
2691
|
-
"type": ["integer", "null"],
|
|
2692
|
-
"format": "uint",
|
|
2693
|
-
"minimum": 1
|
|
2694
|
-
},
|
|
2695
|
-
"type": {
|
|
2696
|
-
"type": "string",
|
|
2697
|
-
"enum": ["restricted"],
|
|
2698
|
-
"title": "RestrictedPermissionProfileFileSystemPermissionsType"
|
|
2699
|
-
}
|
|
2700
|
-
},
|
|
2701
|
-
"title": "RestrictedPermissionProfileFileSystemPermissions"
|
|
2702
|
-
}, {
|
|
2703
|
-
"type": "object",
|
|
2704
|
-
"required": ["type"],
|
|
2705
|
-
"properties": { "type": {
|
|
2706
|
-
"type": "string",
|
|
2707
|
-
"enum": ["unrestricted"],
|
|
2708
|
-
"title": "UnrestrictedPermissionProfileFileSystemPermissionsType"
|
|
2709
|
-
} },
|
|
2710
|
-
"title": "UnrestrictedPermissionProfileFileSystemPermissions"
|
|
2711
|
-
}] },
|
|
2712
|
-
"PermissionProfileNetworkPermissions": {
|
|
2713
|
-
"type": "object",
|
|
2714
|
-
"required": ["enabled"],
|
|
2715
|
-
"properties": { "enabled": { "type": "boolean" } }
|
|
2716
|
-
},
|
|
2717
2323
|
"ReasoningEffort": {
|
|
2718
2324
|
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
|
|
2719
2325
|
"type": "string",
|
|
@@ -3566,6 +3172,10 @@ var ThreadStartResponse_default = {
|
|
|
3566
3172
|
"type": "object",
|
|
3567
3173
|
"required": ["type", "url"],
|
|
3568
3174
|
"properties": {
|
|
3175
|
+
"detail": {
|
|
3176
|
+
"default": null,
|
|
3177
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
3178
|
+
},
|
|
3569
3179
|
"type": {
|
|
3570
3180
|
"type": "string",
|
|
3571
3181
|
"enum": ["image"],
|
|
@@ -3579,6 +3189,10 @@ var ThreadStartResponse_default = {
|
|
|
3579
3189
|
"type": "object",
|
|
3580
3190
|
"required": ["path", "type"],
|
|
3581
3191
|
"properties": {
|
|
3192
|
+
"detail": {
|
|
3193
|
+
"default": null,
|
|
3194
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
3195
|
+
},
|
|
3582
3196
|
"path": { "type": "string" },
|
|
3583
3197
|
"type": {
|
|
3584
3198
|
"type": "string",
|
|
@@ -3980,6 +3594,10 @@ var TurnCompletedNotification_default = {
|
|
|
3980
3594
|
"text": { "type": "string" }
|
|
3981
3595
|
}
|
|
3982
3596
|
},
|
|
3597
|
+
"ImageDetail": {
|
|
3598
|
+
"type": "string",
|
|
3599
|
+
"enum": ["high", "original"]
|
|
3600
|
+
},
|
|
3983
3601
|
"McpToolCallError": {
|
|
3984
3602
|
"type": "object",
|
|
3985
3603
|
"required": ["message"],
|
|
@@ -4653,6 +4271,10 @@ var TurnCompletedNotification_default = {
|
|
|
4653
4271
|
"type": "object",
|
|
4654
4272
|
"required": ["type", "url"],
|
|
4655
4273
|
"properties": {
|
|
4274
|
+
"detail": {
|
|
4275
|
+
"default": null,
|
|
4276
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
4277
|
+
},
|
|
4656
4278
|
"type": {
|
|
4657
4279
|
"type": "string",
|
|
4658
4280
|
"enum": ["image"],
|
|
@@ -4666,6 +4288,10 @@ var TurnCompletedNotification_default = {
|
|
|
4666
4288
|
"type": "object",
|
|
4667
4289
|
"required": ["path", "type"],
|
|
4668
4290
|
"properties": {
|
|
4291
|
+
"detail": {
|
|
4292
|
+
"default": null,
|
|
4293
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
4294
|
+
},
|
|
4669
4295
|
"path": { "type": "string" },
|
|
4670
4296
|
"type": {
|
|
4671
4297
|
"type": "string",
|
|
@@ -5064,6 +4690,10 @@ var TurnStartResponse_default = {
|
|
|
5064
4690
|
"text": { "type": "string" }
|
|
5065
4691
|
}
|
|
5066
4692
|
},
|
|
4693
|
+
"ImageDetail": {
|
|
4694
|
+
"type": "string",
|
|
4695
|
+
"enum": ["high", "original"]
|
|
4696
|
+
},
|
|
5067
4697
|
"McpToolCallError": {
|
|
5068
4698
|
"type": "object",
|
|
5069
4699
|
"required": ["message"],
|
|
@@ -5737,6 +5367,10 @@ var TurnStartResponse_default = {
|
|
|
5737
5367
|
"type": "object",
|
|
5738
5368
|
"required": ["type", "url"],
|
|
5739
5369
|
"properties": {
|
|
5370
|
+
"detail": {
|
|
5371
|
+
"default": null,
|
|
5372
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
5373
|
+
},
|
|
5740
5374
|
"type": {
|
|
5741
5375
|
"type": "string",
|
|
5742
5376
|
"enum": ["image"],
|
|
@@ -5750,6 +5384,10 @@ var TurnStartResponse_default = {
|
|
|
5750
5384
|
"type": "object",
|
|
5751
5385
|
"required": ["path", "type"],
|
|
5752
5386
|
"properties": {
|
|
5387
|
+
"detail": {
|
|
5388
|
+
"default": null,
|
|
5389
|
+
"anyOf": [{ "$ref": "#/definitions/ImageDetail" }, { "type": "null" }]
|
|
5390
|
+
},
|
|
5753
5391
|
"path": { "type": "string" },
|
|
5754
5392
|
"type": {
|
|
5755
5393
|
"type": "string",
|
|
@@ -5856,52 +5494,158 @@ var TurnStartResponse_default = {
|
|
|
5856
5494
|
};
|
|
5857
5495
|
//#endregion
|
|
5858
5496
|
//#region extensions/codex/src/app-server/protocol-validators.ts
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
}
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
const
|
|
5870
|
-
|
|
5871
|
-
|
|
5497
|
+
function compileCodexSchema(schema) {
|
|
5498
|
+
const validator = Compile(normalizeJsonSchemaNode(schema));
|
|
5499
|
+
return {
|
|
5500
|
+
check: (value) => validator.Check(value),
|
|
5501
|
+
errors: (value) => [...validator.Errors(value)]
|
|
5502
|
+
};
|
|
5503
|
+
}
|
|
5504
|
+
function isRecord(value) {
|
|
5505
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
5506
|
+
}
|
|
5507
|
+
const schemaMapKeywords = new Set([
|
|
5508
|
+
"$defs",
|
|
5509
|
+
"definitions",
|
|
5510
|
+
"dependentSchemas",
|
|
5511
|
+
"patternProperties",
|
|
5512
|
+
"properties"
|
|
5513
|
+
]);
|
|
5514
|
+
const schemaValueKeywords = new Set([
|
|
5515
|
+
"additionalItems",
|
|
5516
|
+
"additionalProperties",
|
|
5517
|
+
"contains",
|
|
5518
|
+
"else",
|
|
5519
|
+
"if",
|
|
5520
|
+
"items",
|
|
5521
|
+
"not",
|
|
5522
|
+
"propertyNames",
|
|
5523
|
+
"then",
|
|
5524
|
+
"unevaluatedItems",
|
|
5525
|
+
"unevaluatedProperties"
|
|
5526
|
+
]);
|
|
5527
|
+
const schemaArrayKeywords = new Set([
|
|
5528
|
+
"allOf",
|
|
5529
|
+
"anyOf",
|
|
5530
|
+
"oneOf",
|
|
5531
|
+
"prefixItems"
|
|
5532
|
+
]);
|
|
5533
|
+
function schemaTypeIncludes(schema, type) {
|
|
5534
|
+
return schema.type === type || Array.isArray(schema.type) && schema.type.includes(type);
|
|
5535
|
+
}
|
|
5536
|
+
function normalizeSchemaMap(value) {
|
|
5537
|
+
if (!isRecord(value)) return value;
|
|
5538
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, normalizeJsonSchemaNode(entry)]));
|
|
5539
|
+
}
|
|
5540
|
+
function expandJsonSchemaTypeArray(schema) {
|
|
5541
|
+
const { type, ...rest } = schema;
|
|
5542
|
+
if (!Array.isArray(type)) return schema;
|
|
5543
|
+
return { anyOf: type.map((entry) => Object.assign({}, rest, { type: entry })) };
|
|
5544
|
+
}
|
|
5545
|
+
function normalizeJsonSchemaNode(schema) {
|
|
5546
|
+
if (Array.isArray(schema)) return schema.map((entry) => normalizeJsonSchemaNode(entry));
|
|
5547
|
+
if (!isRecord(schema)) return schema;
|
|
5548
|
+
const normalizedSchema = expandJsonSchemaTypeArray(schema);
|
|
5549
|
+
return Object.fromEntries(Object.entries(normalizedSchema).map(([key, value]) => {
|
|
5550
|
+
if (schemaMapKeywords.has(key)) return [key, normalizeSchemaMap(value)];
|
|
5551
|
+
if (schemaValueKeywords.has(key) || schemaArrayKeywords.has(key)) return [key, normalizeJsonSchemaNode(value)];
|
|
5552
|
+
return [key, value];
|
|
5553
|
+
}));
|
|
5554
|
+
}
|
|
5555
|
+
function readDefault(schema) {
|
|
5556
|
+
if (!isRecord(schema) || !Object.prototype.hasOwnProperty.call(schema, "default")) return;
|
|
5557
|
+
return structuredClone(schema.default);
|
|
5558
|
+
}
|
|
5559
|
+
function decodePointerSegment(segment) {
|
|
5560
|
+
return segment.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
5561
|
+
}
|
|
5562
|
+
function resolveLocalRef(root, ref) {
|
|
5563
|
+
if (ref === "#") return root;
|
|
5564
|
+
if (!ref.startsWith("#/")) return;
|
|
5565
|
+
let current = root;
|
|
5566
|
+
for (const segment of ref.slice(2).split("/").map(decodePointerSegment)) {
|
|
5567
|
+
if (!isRecord(current)) return;
|
|
5568
|
+
current = current[segment];
|
|
5569
|
+
}
|
|
5570
|
+
return current;
|
|
5571
|
+
}
|
|
5572
|
+
function applySchemaDefaults(schema, value, root = schema, resolvingRefs = /* @__PURE__ */ new Set()) {
|
|
5573
|
+
if (value === void 0) {
|
|
5574
|
+
const defaultValue = readDefault(schema);
|
|
5575
|
+
if (defaultValue !== void 0) return defaultValue;
|
|
5576
|
+
}
|
|
5577
|
+
if (!isRecord(schema)) return value;
|
|
5578
|
+
let nextValue = value;
|
|
5579
|
+
if (typeof schema.$ref === "string" && !resolvingRefs.has(schema.$ref)) {
|
|
5580
|
+
const target = resolveLocalRef(root, schema.$ref);
|
|
5581
|
+
if (target !== void 0) {
|
|
5582
|
+
resolvingRefs.add(schema.$ref);
|
|
5583
|
+
nextValue = applySchemaDefaults(target, nextValue, root, resolvingRefs);
|
|
5584
|
+
resolvingRefs.delete(schema.$ref);
|
|
5585
|
+
}
|
|
5586
|
+
}
|
|
5587
|
+
for (const key of ["allOf"]) {
|
|
5588
|
+
const branches = schema[key];
|
|
5589
|
+
if (Array.isArray(branches)) for (const branch of branches) nextValue = applySchemaDefaults(branch, nextValue, root, resolvingRefs);
|
|
5590
|
+
}
|
|
5591
|
+
if (schemaTypeIncludes(schema, "object") && isRecord(nextValue) && isRecord(schema.properties)) {
|
|
5592
|
+
for (const [key, propertySchema] of Object.entries(schema.properties)) {
|
|
5593
|
+
const currentValue = nextValue[key];
|
|
5594
|
+
const defaultedValue = applySchemaDefaults(propertySchema, currentValue, root, resolvingRefs);
|
|
5595
|
+
if (defaultedValue !== void 0 && defaultedValue !== currentValue) nextValue[key] = defaultedValue;
|
|
5596
|
+
}
|
|
5597
|
+
if (isRecord(schema.additionalProperties)) for (const key of Object.keys(nextValue)) {
|
|
5598
|
+
if (Object.prototype.hasOwnProperty.call(schema.properties, key)) continue;
|
|
5599
|
+
nextValue[key] = applySchemaDefaults(schema.additionalProperties, nextValue[key], root, resolvingRefs);
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5602
|
+
if (schemaTypeIncludes(schema, "array") && Array.isArray(nextValue) && isRecord(schema.items)) return nextValue.map((entry) => applySchemaDefaults(schema.items, entry, root, resolvingRefs));
|
|
5603
|
+
return nextValue;
|
|
5604
|
+
}
|
|
5605
|
+
function normalizeWithDefaults(schema, value) {
|
|
5606
|
+
if (value === void 0 || value === null) return value;
|
|
5607
|
+
return applySchemaDefaults(schema, structuredClone(value));
|
|
5608
|
+
}
|
|
5609
|
+
const validateDynamicToolCallParams = compileCodexSchema(DynamicToolCallParams_default);
|
|
5610
|
+
const validateErrorNotification = compileCodexSchema(ErrorNotification_default);
|
|
5611
|
+
const validateModelListResponse = compileCodexSchema(ModelListResponse_default);
|
|
5612
|
+
const validateThreadResumeResponse = compileCodexSchema(ThreadResumeResponse_default);
|
|
5613
|
+
const validateThreadStartResponse = compileCodexSchema(ThreadStartResponse_default);
|
|
5614
|
+
const validateTurnCompletedNotification = compileCodexSchema(TurnCompletedNotification_default);
|
|
5615
|
+
const validateTurnStartResponse = compileCodexSchema(TurnStartResponse_default);
|
|
5872
5616
|
function assertCodexThreadStartResponse(value) {
|
|
5873
|
-
return assertCodexShape(validateThreadStartResponse, normalizeThreadResponse(value), "thread/start response");
|
|
5617
|
+
return assertCodexShape(validateThreadStartResponse, normalizeWithDefaults(ThreadStartResponse_default, normalizeThreadResponse(value)), "thread/start response");
|
|
5874
5618
|
}
|
|
5875
5619
|
function assertCodexThreadForkResponse(value) {
|
|
5876
|
-
return assertCodexShape(validateThreadStartResponse, normalizeThreadResponse(value), "thread/fork response");
|
|
5620
|
+
return assertCodexShape(validateThreadStartResponse, normalizeWithDefaults(ThreadStartResponse_default, normalizeThreadResponse(value)), "thread/fork response");
|
|
5877
5621
|
}
|
|
5878
5622
|
function assertCodexThreadResumeResponse(value) {
|
|
5879
|
-
return assertCodexShape(validateThreadResumeResponse, normalizeThreadResponse(value), "thread/resume response");
|
|
5623
|
+
return assertCodexShape(validateThreadResumeResponse, normalizeWithDefaults(ThreadResumeResponse_default, normalizeThreadResponse(value)), "thread/resume response");
|
|
5880
5624
|
}
|
|
5881
5625
|
function assertCodexTurnStartResponse(value) {
|
|
5882
|
-
return assertCodexShape(validateTurnStartResponse, normalizeTurnStartResponse(value), "turn/start response");
|
|
5626
|
+
return assertCodexShape(validateTurnStartResponse, normalizeWithDefaults(TurnStartResponse_default, normalizeTurnStartResponse(value)), "turn/start response");
|
|
5883
5627
|
}
|
|
5884
5628
|
function readCodexDynamicToolCallParams(value) {
|
|
5885
|
-
return readCodexShape(validateDynamicToolCallParams, value);
|
|
5629
|
+
return readCodexShape(validateDynamicToolCallParams, normalizeWithDefaults(DynamicToolCallParams_default, value));
|
|
5886
5630
|
}
|
|
5887
5631
|
function readCodexErrorNotification(value) {
|
|
5888
|
-
return readCodexShape(validateErrorNotification, value);
|
|
5632
|
+
return readCodexShape(validateErrorNotification, normalizeWithDefaults(ErrorNotification_default, value));
|
|
5889
5633
|
}
|
|
5890
5634
|
function readCodexModelListResponse(value) {
|
|
5891
|
-
return readCodexShape(validateModelListResponse, value);
|
|
5635
|
+
return readCodexShape(validateModelListResponse, normalizeWithDefaults(ModelListResponse_default, value));
|
|
5892
5636
|
}
|
|
5893
5637
|
function readCodexTurn(value) {
|
|
5894
|
-
return readCodexShape(validateTurnStartResponse, { turn: normalizeTurn(value) })?.turn;
|
|
5638
|
+
return readCodexShape(validateTurnStartResponse, normalizeWithDefaults(TurnStartResponse_default, { turn: normalizeTurn(value) }))?.turn;
|
|
5895
5639
|
}
|
|
5896
5640
|
function readCodexTurnCompletedNotification(value) {
|
|
5897
|
-
return readCodexShape(validateTurnCompletedNotification, normalizeTurnCompletedNotification(value));
|
|
5641
|
+
return readCodexShape(validateTurnCompletedNotification, normalizeWithDefaults(TurnCompletedNotification_default, normalizeTurnCompletedNotification(value)));
|
|
5898
5642
|
}
|
|
5899
5643
|
function assertCodexShape(validate, value, label) {
|
|
5900
|
-
if (validate(value)) return value;
|
|
5901
|
-
throw new Error(`Invalid Codex app-server ${label}: ${
|
|
5644
|
+
if (validate.check(value)) return value;
|
|
5645
|
+
throw new Error(`Invalid Codex app-server ${label}: ${formatValidationErrors(validate, value)}`);
|
|
5902
5646
|
}
|
|
5903
5647
|
function readCodexShape(validate, value) {
|
|
5904
|
-
return validate(value) ? value : void 0;
|
|
5648
|
+
return validate.check(value) ? value : void 0;
|
|
5905
5649
|
}
|
|
5906
5650
|
function normalizeTurn(value) {
|
|
5907
5651
|
if (!value || typeof value !== "object" || Array.isArray(value)) return value;
|
|
@@ -5979,10 +5723,13 @@ function normalizeTurnCompletedNotification(value) {
|
|
|
5979
5723
|
turn: normalizeTurn(value.turn)
|
|
5980
5724
|
};
|
|
5981
5725
|
}
|
|
5982
|
-
function
|
|
5983
|
-
const errors = validate.errors;
|
|
5726
|
+
function formatValidationErrors(validate, value) {
|
|
5727
|
+
const errors = validate.errors(value);
|
|
5984
5728
|
if (!errors || errors.length === 0) return "schema validation failed";
|
|
5985
|
-
return
|
|
5729
|
+
return errors.map((error) => {
|
|
5730
|
+
const message = error.message?.trim() || "schema validation failed";
|
|
5731
|
+
return error.instancePath ? `${error.instancePath} ${message}` : message;
|
|
5732
|
+
}).join("; ");
|
|
5986
5733
|
}
|
|
5987
5734
|
//#endregion
|
|
5988
5735
|
export { readCodexDynamicToolCallParams as a, readCodexTurn as c, assertCodexTurnStartResponse as i, readCodexTurnCompletedNotification as l, assertCodexThreadResumeResponse as n, readCodexErrorNotification as o, assertCodexThreadStartResponse as r, readCodexModelListResponse as s, assertCodexThreadForkResponse as t };
|