@tencent-ai/codebuddy-code 2.100.1 → 2.101.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 (53) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/codebuddy-headless.js +153 -150
  3. package/dist/codebuddy.js +149 -146
  4. package/dist/web-ui/assets/index-9X2LkU-w.css +32 -0
  5. package/dist/web-ui/assets/{index-DlV6l3G1.js → index-Co5qIufv.js} +116 -116
  6. package/dist/web-ui/index.html +2 -2
  7. package/dist/web-ui/sw.js +1 -1
  8. package/package.json +1 -1
  9. package/product.cloudhosted.json +2 -2
  10. package/product.internal.json +2 -2
  11. package/product.ioa.json +2 -2
  12. package/product.json +4 -4
  13. package/product.selfhosted.json +2 -2
  14. package/vendor/sandbox/SandboxExt.xcframework/Info.plist +30 -0
  15. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/SandboxExt-Swift.h +900 -0
  16. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/SandboxExt.h +34 -0
  17. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/fileprovider_bridge.h +125 -0
  18. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/projfs_types.h +34 -0
  19. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/xlog_bridge.h +106 -0
  20. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.abi.json +43957 -0
  21. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.package.swiftinterface +1085 -0
  22. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.private.swiftinterface +1084 -0
  23. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
  24. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.swiftinterface +1084 -0
  25. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.abi.json +43957 -0
  26. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.package.swiftinterface +1085 -0
  27. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.private.swiftinterface +1084 -0
  28. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
  29. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.swiftinterface +1084 -0
  30. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/module.modulemap +10 -0
  31. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Resources/Info.plist +46 -0
  32. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/SandboxExt +3 -0
  33. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/_CodeSignature/CodeResources +240 -0
  34. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Info.plist +20 -0
  35. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/DWARF/SandboxExt +3 -0
  36. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/Relocations/aarch64/SandboxExt.yml +3413 -0
  37. package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/Relocations/x86_64/SandboxExt.yml +3390 -0
  38. package/vendor/sandbox/WorkBuddySandboxHelper +3 -0
  39. package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/Info.plist +59 -0
  40. package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/MacOS/WorkbuddyFileProvider +3 -0
  41. package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/_CodeSignature/CodeResources +123 -0
  42. package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/embedded.provisionprofile +0 -0
  43. package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/Info.plist +55 -0
  44. package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/MacOS/WorkbuddyNetworkExtension +3 -0
  45. package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/_CodeSignature/CodeResources +123 -0
  46. package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/embedded.provisionprofile +0 -0
  47. package/vendor/sandbox/libsandbox_ffi.dylib +3 -0
  48. package/vendor/sandbox/sandbox-cli +0 -0
  49. package/vendor/sandbox/sandbox-cli.exe +0 -0
  50. package/vendor/sandbox/sandbox_ffi.dll +0 -0
  51. package/vendor/sandbox/tsbx.dll +0 -0
  52. package/vendor/sandbox/tsbx_sdk.dll +0 -0
  53. package/dist/web-ui/assets/index-DOB9MrWi.css +0 -32
@@ -0,0 +1,900 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
4
+ #ifndef SANDBOXEXT_SWIFT_H
5
+ #define SANDBOXEXT_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif // defined(__OBJC__)
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
47
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
48
+ # include <ptrauth.h>
49
+ #else
50
+ #pragma clang diagnostic push
51
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
52
+ # ifndef __ptrauth_swift_value_witness_function_pointer
53
+ # define __ptrauth_swift_value_witness_function_pointer(x)
54
+ # endif
55
+ # ifndef __ptrauth_swift_class_method_pointer
56
+ # define __ptrauth_swift_class_method_pointer(x)
57
+ # endif
58
+ #pragma clang diagnostic pop
59
+ #endif
60
+ #pragma clang diagnostic pop
61
+ #endif
62
+
63
+ #if !defined(SWIFT_TYPEDEFS)
64
+ # define SWIFT_TYPEDEFS 1
65
+ # if __has_include(<uchar.h>)
66
+ # include <uchar.h>
67
+ # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
69
+ typedef uint_least16_t char16_t;
70
+ typedef uint_least32_t char32_t;
71
+ # endif
72
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
73
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
74
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
75
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
76
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
77
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
78
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
79
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
80
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
81
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
82
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
83
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
84
+ #endif
85
+
86
+ #if !defined(SWIFT_PASTE)
87
+ # define SWIFT_PASTE_HELPER(x, y) x##y
88
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
89
+ #endif
90
+ #if !defined(SWIFT_METATYPE)
91
+ # define SWIFT_METATYPE(X) Class
92
+ #endif
93
+ #if !defined(SWIFT_CLASS_PROPERTY)
94
+ # if __has_feature(objc_class_property)
95
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
96
+ # else
97
+ # define SWIFT_CLASS_PROPERTY(...)
98
+ # endif
99
+ #endif
100
+ #if !defined(SWIFT_RUNTIME_NAME)
101
+ # if __has_attribute(objc_runtime_name)
102
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
103
+ # else
104
+ # define SWIFT_RUNTIME_NAME(X)
105
+ # endif
106
+ #endif
107
+ #if !defined(SWIFT_COMPILE_NAME)
108
+ # if __has_attribute(swift_name)
109
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
110
+ # else
111
+ # define SWIFT_COMPILE_NAME(X)
112
+ # endif
113
+ #endif
114
+ #if !defined(SWIFT_METHOD_FAMILY)
115
+ # if __has_attribute(objc_method_family)
116
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
117
+ # else
118
+ # define SWIFT_METHOD_FAMILY(X)
119
+ # endif
120
+ #endif
121
+ #if !defined(SWIFT_NOESCAPE)
122
+ # if __has_attribute(noescape)
123
+ # define SWIFT_NOESCAPE __attribute__((noescape))
124
+ # else
125
+ # define SWIFT_NOESCAPE
126
+ # endif
127
+ #endif
128
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
129
+ # if __has_attribute(ns_consumed)
130
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
131
+ # else
132
+ # define SWIFT_RELEASES_ARGUMENT
133
+ # endif
134
+ #endif
135
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
136
+ # if __has_attribute(warn_unused_result)
137
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
138
+ # else
139
+ # define SWIFT_WARN_UNUSED_RESULT
140
+ # endif
141
+ #endif
142
+ #if !defined(SWIFT_NORETURN)
143
+ # if __has_attribute(noreturn)
144
+ # define SWIFT_NORETURN __attribute__((noreturn))
145
+ # else
146
+ # define SWIFT_NORETURN
147
+ # endif
148
+ #endif
149
+ #if !defined(SWIFT_CLASS_EXTRA)
150
+ # define SWIFT_CLASS_EXTRA
151
+ #endif
152
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
153
+ # define SWIFT_PROTOCOL_EXTRA
154
+ #endif
155
+ #if !defined(SWIFT_ENUM_EXTRA)
156
+ # define SWIFT_ENUM_EXTRA
157
+ #endif
158
+ #if !defined(SWIFT_CLASS)
159
+ # if __has_attribute(objc_subclassing_restricted)
160
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
161
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
162
+ # else
163
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
164
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
165
+ # endif
166
+ #endif
167
+ #if !defined(SWIFT_RESILIENT_CLASS)
168
+ # if __has_attribute(objc_class_stub)
169
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
170
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
171
+ # else
172
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
173
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
174
+ # endif
175
+ #endif
176
+ #if !defined(SWIFT_PROTOCOL)
177
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
178
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
179
+ #endif
180
+ #if !defined(SWIFT_EXTENSION)
181
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
182
+ #endif
183
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
184
+ # if __has_attribute(objc_designated_initializer)
185
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
186
+ # else
187
+ # define OBJC_DESIGNATED_INITIALIZER
188
+ # endif
189
+ #endif
190
+ #if !defined(SWIFT_ENUM_ATTR)
191
+ # if __has_attribute(enum_extensibility)
192
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
193
+ # else
194
+ # define SWIFT_ENUM_ATTR(_extensibility)
195
+ # endif
196
+ #endif
197
+ #if !defined(SWIFT_ENUM)
198
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
199
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # if __has_feature(generalized_swift_name)
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
202
+ # else
203
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
204
+ # endif
205
+ # else
206
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
207
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
208
+ # endif
209
+ #endif
210
+ #if !defined(SWIFT_ENUM_TAG)
211
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
212
+ # define SWIFT_ENUM_TAG enum
213
+ # else
214
+ # define SWIFT_ENUM_TAG
215
+ # endif
216
+ #endif
217
+ #if !defined(SWIFT_ENUM_FWD_DECL)
218
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
219
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
220
+ # else
221
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
222
+ # endif
223
+ #endif
224
+ #if !defined(SWIFT_UNAVAILABLE)
225
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
226
+ #endif
227
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
228
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
229
+ #endif
230
+ #if !defined(SWIFT_AVAILABILITY)
231
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
232
+ #endif
233
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
234
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
235
+ #endif
236
+ #if !defined(SWIFT_WEAK_IMPORT)
237
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
238
+ #endif
239
+ #if !defined(SWIFT_DEPRECATED)
240
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
241
+ #endif
242
+ #if !defined(SWIFT_DEPRECATED_MSG)
243
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
244
+ #endif
245
+ #if !defined(SWIFT_DEPRECATED_OBJC)
246
+ # if __has_feature(attribute_diagnose_if_objc)
247
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
248
+ # else
249
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
250
+ # endif
251
+ #endif
252
+ #if defined(__OBJC__)
253
+ #if !defined(IBSegueAction)
254
+ # define IBSegueAction
255
+ #endif
256
+ #endif
257
+ #if !defined(SWIFT_EXTERN)
258
+ # if defined(__cplusplus)
259
+ # define SWIFT_EXTERN extern "C"
260
+ # else
261
+ # define SWIFT_EXTERN extern
262
+ # endif
263
+ #endif
264
+ #if !defined(SWIFT_CALL)
265
+ # define SWIFT_CALL __attribute__((swiftcall))
266
+ #endif
267
+ #if !defined(SWIFT_INDIRECT_RESULT)
268
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
269
+ #endif
270
+ #if !defined(SWIFT_CONTEXT)
271
+ # define SWIFT_CONTEXT __attribute__((swift_context))
272
+ #endif
273
+ #if !defined(SWIFT_ERROR_RESULT)
274
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
275
+ #endif
276
+ #if defined(__cplusplus)
277
+ # define SWIFT_NOEXCEPT noexcept
278
+ #else
279
+ # define SWIFT_NOEXCEPT
280
+ #endif
281
+ #if !defined(SWIFT_C_INLINE_THUNK)
282
+ # if __has_attribute(always_inline)
283
+ # if __has_attribute(nodebug)
284
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
285
+ # else
286
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
287
+ # endif
288
+ # else
289
+ # define SWIFT_C_INLINE_THUNK inline
290
+ # endif
291
+ #endif
292
+ #if defined(_WIN32)
293
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
294
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
295
+ #endif
296
+ #else
297
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
298
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
299
+ #endif
300
+ #endif
301
+ #if !__has_feature(nullability)
302
+ # define _Nonnull
303
+ # define _Nullable
304
+ # define _Null_unspecified
305
+ #elif !defined(__OBJC__)
306
+ # pragma clang diagnostic ignored "-Wnullability-extension"
307
+ #endif
308
+ #if !__has_feature(nullability_nullable_result)
309
+ # define _Nullable_result _Nullable
310
+ #endif
311
+ #if __has_feature(objc_modules)
312
+ #if __has_warning("-Watimport-in-framework-header")
313
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
314
+ #endif
315
+ #endif
316
+
317
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
318
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
319
+ #if __has_warning("-Wpragma-clang-attribute")
320
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
321
+ #endif
322
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
323
+ #pragma clang diagnostic ignored "-Wnullability"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SandboxExt",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
344
+ #if defined(__OBJC__)
345
+ #if __has_feature(objc_modules)
346
+ #if __has_warning("-Watimport-in-framework-header")
347
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
348
+ #endif
349
+ @import FileProvider;
350
+ @import Foundation;
351
+ @import NetworkExtension;
352
+ @import ObjectiveC;
353
+ #endif
354
+
355
+ #endif // defined(__OBJC__)
356
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
357
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
358
+ #if __has_warning("-Wpragma-clang-attribute")
359
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
360
+ #endif
361
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
362
+ #pragma clang diagnostic ignored "-Wnullability"
363
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
364
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
365
+
366
+ #if __has_attribute(external_source_symbol)
367
+ # pragma push_macro("any")
368
+ # undef any
369
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SandboxExt",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
370
+ # pragma pop_macro("any")
371
+ #endif
372
+
373
+ #if defined(__OBJC__)
374
+
375
+ @class NSFileProviderDomain;
376
+ @class NSFileProviderRequest;
377
+ @class NSProgress;
378
+ @protocol NSFileProviderEnumerator;
379
+ @class NSFileProviderItemVersion;
380
+ @class NSURL;
381
+ /// macOS FileProvider Extension(多 domain 分组 + slot 预分配模式)。
382
+ /// 每个 domain group 枚举 slotsPerGroup 个隐藏目录(.slot0 ~ .slotN),
383
+ /// session 通过 slot 分配关联,用户直接使用 FileProvider 挂载目录作为工作目录。
384
+ /// identifier 格式:<code>slot<N>/<relativePath></code>
385
+ /// <em>业务方接入说明</em>:本类是 SandboxExt SDK 的公开 principal class,
386
+ /// .appex target 通过 <code>NSExtensionPrincipalClass = FileProviderExtensionCore</code> 直接定位。
387
+ /// 业务方无需写自定义子类即可使用;如需扩展(自定义 logging subsystem、
388
+ /// 拦截 UI 处理等),可在 .appex 中创建子类并将 Info.plist 中的 principal class
389
+ /// 改为子类名(仅在 .appex 内部,业务方完全可控)。
390
+ SWIFT_CLASS_NAMED("FileProviderExtensionCore")
391
+ @interface FileProviderExtensionCore : NSObject <NSFileProviderReplicatedExtension>
392
+ - (nonnull instancetype)initWithDomain:(NSFileProviderDomain * _Nonnull)domain OBJC_DESIGNATED_INITIALIZER;
393
+ - (void)invalidate;
394
+ - (NSProgress * _Nonnull)itemForIdentifier:(NSFileProviderItemIdentifier _Nonnull)identifier request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
395
+ - (id <NSFileProviderEnumerator> _Nullable)enumeratorForContainerItemIdentifier:(NSFileProviderItemIdentifier _Nonnull)containerItemIdentifier request:(NSFileProviderRequest * _Nonnull)request error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
396
+ - (NSProgress * _Nonnull)fetchContentsForItemWithIdentifier:(NSFileProviderItemIdentifier _Nonnull)itemIdentifier version:(NSFileProviderItemVersion * _Nullable)requestedVersion request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURL * _Nullable, NSFileProviderItem _Nullable, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
397
+ - (NSProgress * _Nonnull)createItemBasedOnTemplate:(NSFileProviderItem _Nonnull)itemTemplate fields:(NSFileProviderItemFields)fields contents:(NSURL * _Nullable)url options:(NSFileProviderCreateItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSFileProviderItemFields, BOOL, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
398
+ - (NSProgress * _Nonnull)modifyItem:(NSFileProviderItem _Nonnull)item baseVersion:(NSFileProviderItemVersion * _Nonnull)version changedFields:(NSFileProviderItemFields)changedFields contents:(NSURL * _Nullable)newContents options:(NSFileProviderModifyItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSFileProviderItemFields, BOOL, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
399
+ - (NSProgress * _Nonnull)deleteItemWithIdentifier:(NSFileProviderItemIdentifier _Nonnull)identifier baseVersion:(NSFileProviderItemVersion * _Nonnull)version options:(NSFileProviderDeleteItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
400
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
401
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
402
+ @end
403
+
404
+ /// 管理 Network Extension(App Extension + 透明代理模式)的配置和代理启停。
405
+ /// 主要职责:
406
+ /// <ol>
407
+ /// <li>
408
+ /// 通过 NETransparentProxyManager 配置和启停代理
409
+ /// </li>
410
+ /// <li>
411
+ /// 通过 App Group UserDefaults 向 Extension 传递拦截规则
412
+ /// </li>
413
+ /// <li>
414
+ /// 监听 NEVPNStatusDidChange 同步连接状态
415
+ /// </li>
416
+ /// </ol>
417
+ SWIFT_CLASS("_TtC10SandboxExt23NetworkExtensionManager") SWIFT_AVAILABILITY(macos,introduced=14.0)
418
+ @interface NetworkExtensionManager : NSObject
419
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
420
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
421
+ @end
422
+
423
+ @class NSString;
424
+ @class NEAppProxyFlow;
425
+ /// 基于 NETransparentProxyProvider 的透明代理实现。
426
+ /// 通过 NETransparentProxyManager 配置,系统将匹配 includedNetworkRules 的
427
+ /// TCP/UDP 流量交给本 Provider。Provider 检查来源 PID 是否为已注册的沙盒进程,
428
+ /// 对沙盒进程应用拦截规则,对其他进程做透明中继。
429
+ /// <em>业务方接入说明</em>:本类是 SandboxExt SDK 的公开 principal class,
430
+ /// .appex target 通过 <code>NSExtensionPrincipalClass = TransparentProxyProviderCore</code> 直接定位。
431
+ /// 业务方无需写自定义子类即可使用;如需扩展(自定义日志 / 流量指标 / 域名解析策略等),
432
+ /// 可在 .appex 中创建子类并将 Info.plist 中的 principal class 改为子类名。
433
+ SWIFT_CLASS_NAMED("TransparentProxyProviderCore")
434
+ @interface TransparentProxyProviderCore : NETransparentProxyProvider
435
+ - (void)startProxyWithOptions:(NSDictionary<NSString *, id> * _Nullable)options completionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler;
436
+ - (void)stopProxyWithReason:(NEProviderStopReason)reason completionHandler:(void (^ _Nonnull)(void))completionHandler;
437
+ - (BOOL)handleNewFlow:(NEAppProxyFlow * _Nonnull)flow SWIFT_WARN_UNUSED_RESULT;
438
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
439
+ @end
440
+
441
+ #endif // defined(__OBJC__)
442
+ #if __has_attribute(external_source_symbol)
443
+ # pragma clang attribute pop
444
+ #endif
445
+ #if defined(__cplusplus)
446
+ #endif
447
+ #pragma clang diagnostic pop
448
+ #endif
449
+
450
+ #elif defined(__x86_64__) && __x86_64__
451
+ // Generated by Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
452
+ #ifndef SANDBOXEXT_SWIFT_H
453
+ #define SANDBOXEXT_SWIFT_H
454
+ #pragma clang diagnostic push
455
+ #pragma clang diagnostic ignored "-Wgcc-compat"
456
+
457
+ #if !defined(__has_include)
458
+ # define __has_include(x) 0
459
+ #endif
460
+ #if !defined(__has_attribute)
461
+ # define __has_attribute(x) 0
462
+ #endif
463
+ #if !defined(__has_feature)
464
+ # define __has_feature(x) 0
465
+ #endif
466
+ #if !defined(__has_warning)
467
+ # define __has_warning(x) 0
468
+ #endif
469
+
470
+ #if __has_include(<swift/objc-prologue.h>)
471
+ # include <swift/objc-prologue.h>
472
+ #endif
473
+
474
+ #pragma clang diagnostic ignored "-Wauto-import"
475
+ #if defined(__OBJC__)
476
+ #include <Foundation/Foundation.h>
477
+ #endif // defined(__OBJC__)
478
+ #if defined(__cplusplus)
479
+ #include <cstdint>
480
+ #include <cstddef>
481
+ #include <cstdbool>
482
+ #include <cstring>
483
+ #include <stdlib.h>
484
+ #include <new>
485
+ #include <type_traits>
486
+ #else
487
+ #include <stdint.h>
488
+ #include <stddef.h>
489
+ #include <stdbool.h>
490
+ #include <string.h>
491
+ #endif
492
+ #if defined(__cplusplus)
493
+ #pragma clang diagnostic push
494
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
495
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
496
+ # include <ptrauth.h>
497
+ #else
498
+ #pragma clang diagnostic push
499
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
500
+ # ifndef __ptrauth_swift_value_witness_function_pointer
501
+ # define __ptrauth_swift_value_witness_function_pointer(x)
502
+ # endif
503
+ # ifndef __ptrauth_swift_class_method_pointer
504
+ # define __ptrauth_swift_class_method_pointer(x)
505
+ # endif
506
+ #pragma clang diagnostic pop
507
+ #endif
508
+ #pragma clang diagnostic pop
509
+ #endif
510
+
511
+ #if !defined(SWIFT_TYPEDEFS)
512
+ # define SWIFT_TYPEDEFS 1
513
+ # if __has_include(<uchar.h>)
514
+ # include <uchar.h>
515
+ # elif !defined(__cplusplus)
516
+ typedef unsigned char char8_t;
517
+ typedef uint_least16_t char16_t;
518
+ typedef uint_least32_t char32_t;
519
+ # endif
520
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
521
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
522
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
523
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
524
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
525
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
526
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
527
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
528
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
529
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
530
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
531
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
532
+ #endif
533
+
534
+ #if !defined(SWIFT_PASTE)
535
+ # define SWIFT_PASTE_HELPER(x, y) x##y
536
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
537
+ #endif
538
+ #if !defined(SWIFT_METATYPE)
539
+ # define SWIFT_METATYPE(X) Class
540
+ #endif
541
+ #if !defined(SWIFT_CLASS_PROPERTY)
542
+ # if __has_feature(objc_class_property)
543
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
544
+ # else
545
+ # define SWIFT_CLASS_PROPERTY(...)
546
+ # endif
547
+ #endif
548
+ #if !defined(SWIFT_RUNTIME_NAME)
549
+ # if __has_attribute(objc_runtime_name)
550
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
551
+ # else
552
+ # define SWIFT_RUNTIME_NAME(X)
553
+ # endif
554
+ #endif
555
+ #if !defined(SWIFT_COMPILE_NAME)
556
+ # if __has_attribute(swift_name)
557
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
558
+ # else
559
+ # define SWIFT_COMPILE_NAME(X)
560
+ # endif
561
+ #endif
562
+ #if !defined(SWIFT_METHOD_FAMILY)
563
+ # if __has_attribute(objc_method_family)
564
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
565
+ # else
566
+ # define SWIFT_METHOD_FAMILY(X)
567
+ # endif
568
+ #endif
569
+ #if !defined(SWIFT_NOESCAPE)
570
+ # if __has_attribute(noescape)
571
+ # define SWIFT_NOESCAPE __attribute__((noescape))
572
+ # else
573
+ # define SWIFT_NOESCAPE
574
+ # endif
575
+ #endif
576
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
577
+ # if __has_attribute(ns_consumed)
578
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
579
+ # else
580
+ # define SWIFT_RELEASES_ARGUMENT
581
+ # endif
582
+ #endif
583
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
584
+ # if __has_attribute(warn_unused_result)
585
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
586
+ # else
587
+ # define SWIFT_WARN_UNUSED_RESULT
588
+ # endif
589
+ #endif
590
+ #if !defined(SWIFT_NORETURN)
591
+ # if __has_attribute(noreturn)
592
+ # define SWIFT_NORETURN __attribute__((noreturn))
593
+ # else
594
+ # define SWIFT_NORETURN
595
+ # endif
596
+ #endif
597
+ #if !defined(SWIFT_CLASS_EXTRA)
598
+ # define SWIFT_CLASS_EXTRA
599
+ #endif
600
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
601
+ # define SWIFT_PROTOCOL_EXTRA
602
+ #endif
603
+ #if !defined(SWIFT_ENUM_EXTRA)
604
+ # define SWIFT_ENUM_EXTRA
605
+ #endif
606
+ #if !defined(SWIFT_CLASS)
607
+ # if __has_attribute(objc_subclassing_restricted)
608
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
609
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
610
+ # else
611
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
612
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
613
+ # endif
614
+ #endif
615
+ #if !defined(SWIFT_RESILIENT_CLASS)
616
+ # if __has_attribute(objc_class_stub)
617
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
618
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
619
+ # else
620
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
621
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
622
+ # endif
623
+ #endif
624
+ #if !defined(SWIFT_PROTOCOL)
625
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
626
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
627
+ #endif
628
+ #if !defined(SWIFT_EXTENSION)
629
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
630
+ #endif
631
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
632
+ # if __has_attribute(objc_designated_initializer)
633
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
634
+ # else
635
+ # define OBJC_DESIGNATED_INITIALIZER
636
+ # endif
637
+ #endif
638
+ #if !defined(SWIFT_ENUM_ATTR)
639
+ # if __has_attribute(enum_extensibility)
640
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
641
+ # else
642
+ # define SWIFT_ENUM_ATTR(_extensibility)
643
+ # endif
644
+ #endif
645
+ #if !defined(SWIFT_ENUM)
646
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
647
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
648
+ # if __has_feature(generalized_swift_name)
649
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
650
+ # else
651
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
652
+ # endif
653
+ # else
654
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
655
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
656
+ # endif
657
+ #endif
658
+ #if !defined(SWIFT_ENUM_TAG)
659
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
660
+ # define SWIFT_ENUM_TAG enum
661
+ # else
662
+ # define SWIFT_ENUM_TAG
663
+ # endif
664
+ #endif
665
+ #if !defined(SWIFT_ENUM_FWD_DECL)
666
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
667
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
668
+ # else
669
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
670
+ # endif
671
+ #endif
672
+ #if !defined(SWIFT_UNAVAILABLE)
673
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
674
+ #endif
675
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
676
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
677
+ #endif
678
+ #if !defined(SWIFT_AVAILABILITY)
679
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
680
+ #endif
681
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
682
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
683
+ #endif
684
+ #if !defined(SWIFT_WEAK_IMPORT)
685
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
686
+ #endif
687
+ #if !defined(SWIFT_DEPRECATED)
688
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
689
+ #endif
690
+ #if !defined(SWIFT_DEPRECATED_MSG)
691
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
692
+ #endif
693
+ #if !defined(SWIFT_DEPRECATED_OBJC)
694
+ # if __has_feature(attribute_diagnose_if_objc)
695
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
696
+ # else
697
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
698
+ # endif
699
+ #endif
700
+ #if defined(__OBJC__)
701
+ #if !defined(IBSegueAction)
702
+ # define IBSegueAction
703
+ #endif
704
+ #endif
705
+ #if !defined(SWIFT_EXTERN)
706
+ # if defined(__cplusplus)
707
+ # define SWIFT_EXTERN extern "C"
708
+ # else
709
+ # define SWIFT_EXTERN extern
710
+ # endif
711
+ #endif
712
+ #if !defined(SWIFT_CALL)
713
+ # define SWIFT_CALL __attribute__((swiftcall))
714
+ #endif
715
+ #if !defined(SWIFT_INDIRECT_RESULT)
716
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
717
+ #endif
718
+ #if !defined(SWIFT_CONTEXT)
719
+ # define SWIFT_CONTEXT __attribute__((swift_context))
720
+ #endif
721
+ #if !defined(SWIFT_ERROR_RESULT)
722
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
723
+ #endif
724
+ #if defined(__cplusplus)
725
+ # define SWIFT_NOEXCEPT noexcept
726
+ #else
727
+ # define SWIFT_NOEXCEPT
728
+ #endif
729
+ #if !defined(SWIFT_C_INLINE_THUNK)
730
+ # if __has_attribute(always_inline)
731
+ # if __has_attribute(nodebug)
732
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
733
+ # else
734
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
735
+ # endif
736
+ # else
737
+ # define SWIFT_C_INLINE_THUNK inline
738
+ # endif
739
+ #endif
740
+ #if defined(_WIN32)
741
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
742
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
743
+ #endif
744
+ #else
745
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
746
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
747
+ #endif
748
+ #endif
749
+ #if !__has_feature(nullability)
750
+ # define _Nonnull
751
+ # define _Nullable
752
+ # define _Null_unspecified
753
+ #elif !defined(__OBJC__)
754
+ # pragma clang diagnostic ignored "-Wnullability-extension"
755
+ #endif
756
+ #if !__has_feature(nullability_nullable_result)
757
+ # define _Nullable_result _Nullable
758
+ #endif
759
+ #if __has_feature(objc_modules)
760
+ #if __has_warning("-Watimport-in-framework-header")
761
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
762
+ #endif
763
+ #endif
764
+
765
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
766
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
767
+ #if __has_warning("-Wpragma-clang-attribute")
768
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
769
+ #endif
770
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
771
+ #pragma clang diagnostic ignored "-Wnullability"
772
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
773
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
774
+
775
+ #if __has_attribute(external_source_symbol)
776
+ # pragma push_macro("any")
777
+ # undef any
778
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SandboxExt",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
779
+ # pragma pop_macro("any")
780
+ #endif
781
+
782
+ #if defined(__cplusplus)
783
+ extern "C" {
784
+ #endif
785
+
786
+ #if defined(__cplusplus)
787
+ } // extern "C"
788
+ #endif
789
+ #if __has_attribute(external_source_symbol)
790
+ # pragma clang attribute pop
791
+ #endif
792
+ #if defined(__OBJC__)
793
+ #if __has_feature(objc_modules)
794
+ #if __has_warning("-Watimport-in-framework-header")
795
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
796
+ #endif
797
+ @import FileProvider;
798
+ @import Foundation;
799
+ @import NetworkExtension;
800
+ @import ObjectiveC;
801
+ #endif
802
+
803
+ #endif // defined(__OBJC__)
804
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
805
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
806
+ #if __has_warning("-Wpragma-clang-attribute")
807
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
808
+ #endif
809
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
810
+ #pragma clang diagnostic ignored "-Wnullability"
811
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
812
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
813
+
814
+ #if __has_attribute(external_source_symbol)
815
+ # pragma push_macro("any")
816
+ # undef any
817
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SandboxExt",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
818
+ # pragma pop_macro("any")
819
+ #endif
820
+
821
+ #if defined(__OBJC__)
822
+
823
+ @class NSFileProviderDomain;
824
+ @class NSFileProviderRequest;
825
+ @class NSProgress;
826
+ @protocol NSFileProviderEnumerator;
827
+ @class NSFileProviderItemVersion;
828
+ @class NSURL;
829
+ /// macOS FileProvider Extension(多 domain 分组 + slot 预分配模式)。
830
+ /// 每个 domain group 枚举 slotsPerGroup 个隐藏目录(.slot0 ~ .slotN),
831
+ /// session 通过 slot 分配关联,用户直接使用 FileProvider 挂载目录作为工作目录。
832
+ /// identifier 格式:<code>slot<N>/<relativePath></code>
833
+ /// <em>业务方接入说明</em>:本类是 SandboxExt SDK 的公开 principal class,
834
+ /// .appex target 通过 <code>NSExtensionPrincipalClass = FileProviderExtensionCore</code> 直接定位。
835
+ /// 业务方无需写自定义子类即可使用;如需扩展(自定义 logging subsystem、
836
+ /// 拦截 UI 处理等),可在 .appex 中创建子类并将 Info.plist 中的 principal class
837
+ /// 改为子类名(仅在 .appex 内部,业务方完全可控)。
838
+ SWIFT_CLASS_NAMED("FileProviderExtensionCore")
839
+ @interface FileProviderExtensionCore : NSObject <NSFileProviderReplicatedExtension>
840
+ - (nonnull instancetype)initWithDomain:(NSFileProviderDomain * _Nonnull)domain OBJC_DESIGNATED_INITIALIZER;
841
+ - (void)invalidate;
842
+ - (NSProgress * _Nonnull)itemForIdentifier:(NSFileProviderItemIdentifier _Nonnull)identifier request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
843
+ - (id <NSFileProviderEnumerator> _Nullable)enumeratorForContainerItemIdentifier:(NSFileProviderItemIdentifier _Nonnull)containerItemIdentifier request:(NSFileProviderRequest * _Nonnull)request error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
844
+ - (NSProgress * _Nonnull)fetchContentsForItemWithIdentifier:(NSFileProviderItemIdentifier _Nonnull)itemIdentifier version:(NSFileProviderItemVersion * _Nullable)requestedVersion request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURL * _Nullable, NSFileProviderItem _Nullable, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
845
+ - (NSProgress * _Nonnull)createItemBasedOnTemplate:(NSFileProviderItem _Nonnull)itemTemplate fields:(NSFileProviderItemFields)fields contents:(NSURL * _Nullable)url options:(NSFileProviderCreateItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSFileProviderItemFields, BOOL, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
846
+ - (NSProgress * _Nonnull)modifyItem:(NSFileProviderItem _Nonnull)item baseVersion:(NSFileProviderItemVersion * _Nonnull)version changedFields:(NSFileProviderItemFields)changedFields contents:(NSURL * _Nullable)newContents options:(NSFileProviderModifyItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSFileProviderItem _Nullable, NSFileProviderItemFields, BOOL, NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
847
+ - (NSProgress * _Nonnull)deleteItemWithIdentifier:(NSFileProviderItemIdentifier _Nonnull)identifier baseVersion:(NSFileProviderItemVersion * _Nonnull)version options:(NSFileProviderDeleteItemOptions)options request:(NSFileProviderRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler SWIFT_WARN_UNUSED_RESULT;
848
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
849
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
850
+ @end
851
+
852
+ /// 管理 Network Extension(App Extension + 透明代理模式)的配置和代理启停。
853
+ /// 主要职责:
854
+ /// <ol>
855
+ /// <li>
856
+ /// 通过 NETransparentProxyManager 配置和启停代理
857
+ /// </li>
858
+ /// <li>
859
+ /// 通过 App Group UserDefaults 向 Extension 传递拦截规则
860
+ /// </li>
861
+ /// <li>
862
+ /// 监听 NEVPNStatusDidChange 同步连接状态
863
+ /// </li>
864
+ /// </ol>
865
+ SWIFT_CLASS("_TtC10SandboxExt23NetworkExtensionManager") SWIFT_AVAILABILITY(macos,introduced=14.0)
866
+ @interface NetworkExtensionManager : NSObject
867
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
868
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
869
+ @end
870
+
871
+ @class NSString;
872
+ @class NEAppProxyFlow;
873
+ /// 基于 NETransparentProxyProvider 的透明代理实现。
874
+ /// 通过 NETransparentProxyManager 配置,系统将匹配 includedNetworkRules 的
875
+ /// TCP/UDP 流量交给本 Provider。Provider 检查来源 PID 是否为已注册的沙盒进程,
876
+ /// 对沙盒进程应用拦截规则,对其他进程做透明中继。
877
+ /// <em>业务方接入说明</em>:本类是 SandboxExt SDK 的公开 principal class,
878
+ /// .appex target 通过 <code>NSExtensionPrincipalClass = TransparentProxyProviderCore</code> 直接定位。
879
+ /// 业务方无需写自定义子类即可使用;如需扩展(自定义日志 / 流量指标 / 域名解析策略等),
880
+ /// 可在 .appex 中创建子类并将 Info.plist 中的 principal class 改为子类名。
881
+ SWIFT_CLASS_NAMED("TransparentProxyProviderCore")
882
+ @interface TransparentProxyProviderCore : NETransparentProxyProvider
883
+ - (void)startProxyWithOptions:(NSDictionary<NSString *, id> * _Nullable)options completionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler;
884
+ - (void)stopProxyWithReason:(NEProviderStopReason)reason completionHandler:(void (^ _Nonnull)(void))completionHandler;
885
+ - (BOOL)handleNewFlow:(NEAppProxyFlow * _Nonnull)flow SWIFT_WARN_UNUSED_RESULT;
886
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
887
+ @end
888
+
889
+ #endif // defined(__OBJC__)
890
+ #if __has_attribute(external_source_symbol)
891
+ # pragma clang attribute pop
892
+ #endif
893
+ #if defined(__cplusplus)
894
+ #endif
895
+ #pragma clang diagnostic pop
896
+ #endif
897
+
898
+ #else
899
+ #error unsupported Swift architecture
900
+ #endif