@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.
- package/CHANGELOG.md +25 -0
- package/dist/codebuddy-headless.js +153 -150
- package/dist/codebuddy.js +149 -146
- package/dist/web-ui/assets/index-9X2LkU-w.css +32 -0
- package/dist/web-ui/assets/{index-DlV6l3G1.js → index-Co5qIufv.js} +116 -116
- package/dist/web-ui/index.html +2 -2
- package/dist/web-ui/sw.js +1 -1
- package/package.json +1 -1
- package/product.cloudhosted.json +2 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -2
- package/product.json +4 -4
- package/product.selfhosted.json +2 -2
- package/vendor/sandbox/SandboxExt.xcframework/Info.plist +30 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/SandboxExt-Swift.h +900 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/SandboxExt.h +34 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/fileprovider_bridge.h +125 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/projfs_types.h +34 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Headers/xlog_bridge.h +106 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.abi.json +43957 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.package.swiftinterface +1085 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.private.swiftinterface +1084 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/arm64-apple-macos.swiftinterface +1084 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.abi.json +43957 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.package.swiftinterface +1085 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.private.swiftinterface +1084 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/SandboxExt.swiftmodule/x86_64-apple-macos.swiftinterface +1084 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Modules/module.modulemap +10 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/Resources/Info.plist +46 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/SandboxExt +3 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/SandboxExt.framework/Versions/A/_CodeSignature/CodeResources +240 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Info.plist +20 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/DWARF/SandboxExt +3 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/Relocations/aarch64/SandboxExt.yml +3413 -0
- package/vendor/sandbox/SandboxExt.xcframework/macos-arm64_x86_64/dSYMs/SandboxExt.framework.dSYM/Contents/Resources/Relocations/x86_64/SandboxExt.yml +3390 -0
- package/vendor/sandbox/WorkBuddySandboxHelper +3 -0
- package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/Info.plist +59 -0
- package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/MacOS/WorkbuddyFileProvider +3 -0
- package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/_CodeSignature/CodeResources +123 -0
- package/vendor/sandbox/WorkbuddyFileProvider.appex/Contents/embedded.provisionprofile +0 -0
- package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/Info.plist +55 -0
- package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/MacOS/WorkbuddyNetworkExtension +3 -0
- package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/_CodeSignature/CodeResources +123 -0
- package/vendor/sandbox/WorkbuddyNetworkExtension.appex/Contents/embedded.provisionprofile +0 -0
- package/vendor/sandbox/libsandbox_ffi.dylib +3 -0
- package/vendor/sandbox/sandbox-cli +0 -0
- package/vendor/sandbox/sandbox-cli.exe +0 -0
- package/vendor/sandbox/sandbox_ffi.dll +0 -0
- package/vendor/sandbox/tsbx.dll +0 -0
- package/vendor/sandbox/tsbx_sdk.dll +0 -0
- package/dist/web-ui/assets/index-DOB9MrWi.css +0 -32
|
@@ -0,0 +1,1085 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-macos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name SandboxExt -package-name SandboxExt
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
|
|
5
|
+
import CryptoKit
|
|
6
|
+
import Darwin
|
|
7
|
+
import FileProvider
|
|
8
|
+
import Foundation
|
|
9
|
+
import Network
|
|
10
|
+
import NetworkExtension
|
|
11
|
+
import Darwin.POSIX
|
|
12
|
+
@_exported import SandboxExt
|
|
13
|
+
import Security
|
|
14
|
+
import Swift
|
|
15
|
+
import UniformTypeIdentifiers
|
|
16
|
+
import _Concurrency
|
|
17
|
+
import _StringProcessing
|
|
18
|
+
import _SwiftConcurrencyShims
|
|
19
|
+
import os.log
|
|
20
|
+
import os
|
|
21
|
+
final public class AppGroupPlistStore {
|
|
22
|
+
public static let shared: SandboxExt.AppGroupPlistStore?
|
|
23
|
+
public init?(appGroupId: Swift.String)
|
|
24
|
+
final public func snapshot() -> [Swift.String : Any]
|
|
25
|
+
final public func value(forKey key: Swift.String) -> Any?
|
|
26
|
+
final public func data(forKey key: Swift.String) -> Foundation.Data?
|
|
27
|
+
final public func stringArray(forKey key: Swift.String) -> [Swift.String]?
|
|
28
|
+
final public func bool(forKey key: Swift.String) -> Swift.Bool?
|
|
29
|
+
final public func double(forKey key: Swift.String) -> Swift.Double?
|
|
30
|
+
final public func mutate(_ block: (inout [Swift.String : Any]) -> Swift.Void)
|
|
31
|
+
final public func setValue(_ value: Any?, forKey key: Swift.String)
|
|
32
|
+
@objc deinit
|
|
33
|
+
}
|
|
34
|
+
public enum ContainerPaths {
|
|
35
|
+
public static var appGroupId: Swift.String {
|
|
36
|
+
get
|
|
37
|
+
}
|
|
38
|
+
public static func configure(appGroupId: Swift.String)
|
|
39
|
+
public static var containerURL: Foundation.URL? {
|
|
40
|
+
get
|
|
41
|
+
}
|
|
42
|
+
public static func sessionDir(id: Swift.String) -> Foundation.URL?
|
|
43
|
+
public static func projfsDir(id: Swift.String) -> Foundation.URL?
|
|
44
|
+
public static func projfsModifiedDir(id: Swift.String) -> Foundation.URL?
|
|
45
|
+
public static func projfsTombstoneDir(id: Swift.String) -> Foundation.URL?
|
|
46
|
+
public static func projfsRestoreSignalFile(id: Swift.String) -> Foundation.URL?
|
|
47
|
+
public static func projfsSourceDirtyFile(id: Swift.String) -> Foundation.URL?
|
|
48
|
+
public static func gitLocalDir(id: Swift.String) -> Foundation.URL?
|
|
49
|
+
public static func hookFile(id: Swift.String) -> Foundation.URL?
|
|
50
|
+
public static func pendingChangesFile(id: Swift.String) -> Foundation.URL?
|
|
51
|
+
public static func logsDir() -> Foundation.URL?
|
|
52
|
+
public static func proxyReqDir() -> Foundation.URL?
|
|
53
|
+
public static func proxyRespDir() -> Foundation.URL?
|
|
54
|
+
public static func proxyFetchDir() -> Foundation.URL?
|
|
55
|
+
public static func sessionsRegistryFile() -> Foundation.URL?
|
|
56
|
+
public static func usedSlotsFile() -> Foundation.URL?
|
|
57
|
+
public static func allSessionIds() -> [Swift.String]
|
|
58
|
+
}
|
|
59
|
+
public enum DemoBundleIds {
|
|
60
|
+
public static let host: Swift.String
|
|
61
|
+
public static let appGroupId: Swift.String
|
|
62
|
+
public static let fileProvider: Swift.String
|
|
63
|
+
public static let networkExtension: Swift.String
|
|
64
|
+
public static let extLogSubsystem: Swift.String
|
|
65
|
+
public static let mainLogSubsystem: Swift.String
|
|
66
|
+
}
|
|
67
|
+
public enum DiagLog {
|
|
68
|
+
public static func log(_ tag: Swift.String, _ message: Swift.String, file: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
69
|
+
public static func describe(_ error: any Swift.Error) -> Swift.String
|
|
70
|
+
public static func flush()
|
|
71
|
+
}
|
|
72
|
+
@objc(FileProviderExtensionCore) open class FileProviderExtensionCore : ObjectiveC.NSObject, FileProvider.NSFileProviderReplicatedExtension {
|
|
73
|
+
final public let domain: FileProvider.NSFileProviderDomain
|
|
74
|
+
@objc required public init(domain: FileProvider.NSFileProviderDomain)
|
|
75
|
+
@objc open func invalidate()
|
|
76
|
+
@objc open func item(for identifier: FileProvider.NSFileProviderItemIdentifier, request: FileProvider.NSFileProviderRequest, completionHandler: @escaping (FileProvider.NSFileProviderItem?, (any Swift.Error)?) -> Swift.Void) -> Foundation.Progress
|
|
77
|
+
@objc open func enumerator(for containerItemIdentifier: FileProvider.NSFileProviderItemIdentifier, request: FileProvider.NSFileProviderRequest) throws -> any FileProvider.NSFileProviderEnumerator
|
|
78
|
+
@objc open func fetchContents(for itemIdentifier: FileProvider.NSFileProviderItemIdentifier, version requestedVersion: FileProvider.NSFileProviderItemVersion?, request: FileProvider.NSFileProviderRequest, completionHandler: @escaping (Foundation.URL?, FileProvider.NSFileProviderItem?, (any Swift.Error)?) -> Swift.Void) -> Foundation.Progress
|
|
79
|
+
@objc open func createItem(basedOn itemTemplate: FileProvider.NSFileProviderItem, fields: FileProvider.NSFileProviderItemFields, contents url: Foundation.URL?, options: FileProvider.NSFileProviderCreateItemOptions = [], request: FileProvider.NSFileProviderRequest, completionHandler: @escaping (FileProvider.NSFileProviderItem?, FileProvider.NSFileProviderItemFields, Swift.Bool, (any Swift.Error)?) -> Swift.Void) -> Foundation.Progress
|
|
80
|
+
@objc open func modifyItem(_ item: FileProvider.NSFileProviderItem, baseVersion version: FileProvider.NSFileProviderItemVersion, changedFields: FileProvider.NSFileProviderItemFields, contents newContents: Foundation.URL?, options: FileProvider.NSFileProviderModifyItemOptions = [], request: FileProvider.NSFileProviderRequest, completionHandler: @escaping (FileProvider.NSFileProviderItem?, FileProvider.NSFileProviderItemFields, Swift.Bool, (any Swift.Error)?) -> Swift.Void) -> Foundation.Progress
|
|
81
|
+
@objc open func deleteItem(identifier: FileProvider.NSFileProviderItemIdentifier, baseVersion version: FileProvider.NSFileProviderItemVersion, options: FileProvider.NSFileProviderDeleteItemOptions = [], request: FileProvider.NSFileProviderRequest, completionHandler: @escaping ((any Swift.Error)?) -> Swift.Void) -> Foundation.Progress
|
|
82
|
+
@objc deinit
|
|
83
|
+
}
|
|
84
|
+
@available(macOS 14.0, *)
|
|
85
|
+
final public class FileProviderManager {
|
|
86
|
+
public init(configuration: SandboxExt.SandboxExtConfiguration)
|
|
87
|
+
final public func isFileProviderExtensionEnabled() async -> Swift.Bool
|
|
88
|
+
final public func preWarmDomainGroup(preserveSessionIds: Swift.Set<Swift.String> = []) async
|
|
89
|
+
final public func preRegisterDomainGroupIfNeeded() async
|
|
90
|
+
final public func cleanupLegacyDomains() async
|
|
91
|
+
@_Concurrency.MainActor final public func schedulePreWarm(preserveSessionIds: Swift.Set<Swift.String> = [])
|
|
92
|
+
final public func awaitPreWarm() async
|
|
93
|
+
final public func startProjection(projectionId: Swift.String, sourceDirectory: Swift.String) async throws -> Swift.String
|
|
94
|
+
final public func refreshFile(sessionId: Swift.String, relativePath: Swift.String) async
|
|
95
|
+
final public func stopProjection(projectionId: Swift.String) async
|
|
96
|
+
final public func deleteProjection(projectionId: Swift.String) async
|
|
97
|
+
final public func stopAllProjections() async
|
|
98
|
+
@objc deinit
|
|
99
|
+
}
|
|
100
|
+
@available(macOS 14.0, *)
|
|
101
|
+
extension SandboxExt.FileProviderManager : nonisolated Observation.Observable {
|
|
102
|
+
}
|
|
103
|
+
public struct AnyCodable : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
104
|
+
public let value: Any
|
|
105
|
+
public init(_ value: Any)
|
|
106
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
107
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
108
|
+
public static func == (lhs: SandboxExt.AnyCodable, rhs: SandboxExt.AnyCodable) -> Swift.Bool
|
|
109
|
+
}
|
|
110
|
+
public enum IpcCommand {
|
|
111
|
+
public static let ping: Swift.String
|
|
112
|
+
public static let openSession: Swift.String
|
|
113
|
+
public static let closeSession: Swift.String
|
|
114
|
+
public static let deleteSession: Swift.String
|
|
115
|
+
public static let runExecutable: Swift.String
|
|
116
|
+
public static let addFileRule: Swift.String
|
|
117
|
+
public static let addNetworkRule: Swift.String
|
|
118
|
+
public static let removeFileRule: Swift.String
|
|
119
|
+
public static let removeNetworkRule: Swift.String
|
|
120
|
+
public static let getRules: Swift.String
|
|
121
|
+
public static let queryFileChanges: Swift.String
|
|
122
|
+
public static let discardFileChanges: Swift.String
|
|
123
|
+
public static let syncFileChanges: Swift.String
|
|
124
|
+
public static let commitFileChanges: Swift.String
|
|
125
|
+
public static let fileGc: Swift.String
|
|
126
|
+
public static let getStatistics: Swift.String
|
|
127
|
+
public static let reportBlockChoice: Swift.String
|
|
128
|
+
public static let processWrite: Swift.String
|
|
129
|
+
public static let processSendKey: Swift.String
|
|
130
|
+
public static let processResize: Swift.String
|
|
131
|
+
public static let processKill: Swift.String
|
|
132
|
+
public static let processIsAlive: Swift.String
|
|
133
|
+
public static let startProjection: Swift.String
|
|
134
|
+
public static let stopProjection: Swift.String
|
|
135
|
+
public static let queryFileCommits: Swift.String
|
|
136
|
+
public static let revertToFileCommit: Swift.String
|
|
137
|
+
public static let resetToFileCommit: Swift.String
|
|
138
|
+
public static let queryFileVersionCache: Swift.String
|
|
139
|
+
public static let processOutput: Swift.String
|
|
140
|
+
public static let processExit: Swift.String
|
|
141
|
+
public static let reportEvent: Swift.String
|
|
142
|
+
public static let syncFileProgress: Swift.String
|
|
143
|
+
public static let commitFileProgress: Swift.String
|
|
144
|
+
public static let recordStatistics: Swift.String
|
|
145
|
+
public static let appendUserChoice: Swift.String
|
|
146
|
+
}
|
|
147
|
+
public enum FileAction {
|
|
148
|
+
public static let read: Swift.UInt32
|
|
149
|
+
public static let write: Swift.UInt32
|
|
150
|
+
public static let delete: Swift.UInt32
|
|
151
|
+
public static let execute: Swift.UInt32
|
|
152
|
+
}
|
|
153
|
+
public enum NetAction {
|
|
154
|
+
public static let connect: Swift.UInt32
|
|
155
|
+
public static let dnsResolve: Swift.UInt32
|
|
156
|
+
public static let sendto: Swift.UInt32
|
|
157
|
+
}
|
|
158
|
+
public enum ExecutionMode : Swift.String, Swift.Codable, Swift.Sendable {
|
|
159
|
+
case sandbox
|
|
160
|
+
case sandboxBypass
|
|
161
|
+
public init?(rawValue: Swift.String)
|
|
162
|
+
public typealias RawValue = Swift.String
|
|
163
|
+
public var rawValue: Swift.String {
|
|
164
|
+
get
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
public struct IpcMessage : Swift.Codable, Swift.Sendable {
|
|
168
|
+
public let sessionId: Swift.String
|
|
169
|
+
public let messageId: Swift.String
|
|
170
|
+
public let command: Swift.String
|
|
171
|
+
public var data: SandboxExt.AnyCodable?
|
|
172
|
+
public var success: Swift.Bool?
|
|
173
|
+
public var error: Swift.String?
|
|
174
|
+
public init(sessionId: Swift.String, messageId: Swift.String, command: Swift.String, data: SandboxExt.AnyCodable? = nil, success: Swift.Bool? = nil, error: Swift.String? = nil)
|
|
175
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
176
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
177
|
+
}
|
|
178
|
+
public struct RunExecutableRequest : Swift.Codable, Swift.Sendable {
|
|
179
|
+
public let executable: Swift.String
|
|
180
|
+
public var args: [Swift.String]
|
|
181
|
+
public var displayCommand: Swift.String
|
|
182
|
+
public var env: [Swift.String : Swift.String]
|
|
183
|
+
public let cwdDir: Swift.String
|
|
184
|
+
public var timeoutMs: Swift.UInt64
|
|
185
|
+
public let executionMode: SandboxExt.ExecutionMode
|
|
186
|
+
public var stdoutMode: Swift.String?
|
|
187
|
+
public var cols: Swift.UInt32?
|
|
188
|
+
public var rows: Swift.UInt32?
|
|
189
|
+
public var pathOverride: Swift.String?
|
|
190
|
+
public var stdinMode: Swift.String?
|
|
191
|
+
public init(executable: Swift.String, args: [Swift.String] = [], displayCommand: Swift.String = "", env: [Swift.String : Swift.String] = [:], cwdDir: Swift.String, timeoutMs: Swift.UInt64 = 30000, executionMode: SandboxExt.ExecutionMode, stdoutMode: Swift.String? = nil, cols: Swift.UInt32? = nil, rows: Swift.UInt32? = nil, pathOverride: Swift.String? = nil, stdinMode: Swift.String? = nil)
|
|
192
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
193
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
194
|
+
}
|
|
195
|
+
public struct RunExecutableResponse : Swift.Codable, Swift.Sendable {
|
|
196
|
+
public var stdout: Swift.String?
|
|
197
|
+
public var stderr: Swift.String?
|
|
198
|
+
public var exitCode: Swift.Int32?
|
|
199
|
+
public var timedOut: Swift.Bool?
|
|
200
|
+
public var fileBlockRecords: [SandboxExt.FileBlockRecord]
|
|
201
|
+
public var networkBlockRecords: [SandboxExt.NetworkBlockRecord]
|
|
202
|
+
public init(stdout: Swift.String? = nil, stderr: Swift.String? = nil, exitCode: Swift.Int32? = nil, timedOut: Swift.Bool? = nil, fileBlockRecords: [SandboxExt.FileBlockRecord] = [], networkBlockRecords: [SandboxExt.NetworkBlockRecord] = [])
|
|
203
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
204
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
205
|
+
}
|
|
206
|
+
public struct RunExecutableStreamResponse : Swift.Codable, Swift.Sendable {
|
|
207
|
+
public let processId: Swift.String
|
|
208
|
+
public let pid: Swift.Int32
|
|
209
|
+
public init(processId: Swift.String, pid: Swift.Int32)
|
|
210
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
211
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
212
|
+
}
|
|
213
|
+
public struct OpenSessionRequest : Swift.Codable, Swift.Sendable {
|
|
214
|
+
public var name: Swift.String?
|
|
215
|
+
public let workingDir: Swift.String
|
|
216
|
+
public var autoProjection: Swift.Bool
|
|
217
|
+
public init(name: Swift.String? = nil, workingDir: Swift.String, autoProjection: Swift.Bool = true)
|
|
218
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
219
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
220
|
+
}
|
|
221
|
+
public struct OpenSessionResponse : Swift.Codable, Swift.Sendable {
|
|
222
|
+
public let workingDir: Swift.String
|
|
223
|
+
public init(workingDir: Swift.String)
|
|
224
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
225
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
226
|
+
}
|
|
227
|
+
public struct AddFileRuleRequest : Swift.Codable, Swift.Sendable {
|
|
228
|
+
public let path: Swift.String
|
|
229
|
+
public let type: Swift.String
|
|
230
|
+
public var source: Swift.String?
|
|
231
|
+
public var isDirectory: Swift.Bool
|
|
232
|
+
public init(path: Swift.String, type: Swift.String, source: Swift.String? = nil, isDirectory: Swift.Bool = false)
|
|
233
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
234
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
235
|
+
}
|
|
236
|
+
public struct AddNetworkRuleRequest : Swift.Codable, Swift.Sendable {
|
|
237
|
+
public let endpoint: Swift.String
|
|
238
|
+
public let type: Swift.String
|
|
239
|
+
public var source: Swift.String?
|
|
240
|
+
public init(endpoint: Swift.String, type: Swift.String, source: Swift.String? = nil)
|
|
241
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
242
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
243
|
+
}
|
|
244
|
+
public struct RemoveFileRuleRequest : Swift.Codable, Swift.Sendable {
|
|
245
|
+
public let path: Swift.String
|
|
246
|
+
public init(path: Swift.String)
|
|
247
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
248
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
249
|
+
}
|
|
250
|
+
public struct RemoveNetworkRuleRequest : Swift.Codable, Swift.Sendable {
|
|
251
|
+
public let endpoint: Swift.String
|
|
252
|
+
public init(endpoint: Swift.String)
|
|
253
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
254
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
255
|
+
}
|
|
256
|
+
public struct RemoveRuleResponse : Swift.Codable, Swift.Sendable {
|
|
257
|
+
public let removed: Swift.Bool
|
|
258
|
+
public init(removed: Swift.Bool)
|
|
259
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
260
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
261
|
+
}
|
|
262
|
+
public struct FileRuleItem : Swift.Codable, Swift.Sendable {
|
|
263
|
+
public let path: Swift.String
|
|
264
|
+
public let type: Swift.String
|
|
265
|
+
public var _comment: Swift.String?
|
|
266
|
+
public let source: Swift.String
|
|
267
|
+
public init(path: Swift.String, type: Swift.String, _comment: Swift.String? = nil, source: Swift.String)
|
|
268
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
269
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
270
|
+
}
|
|
271
|
+
public struct NetworkRuleItem : Swift.Codable, Swift.Sendable {
|
|
272
|
+
public let endpoint: Swift.String
|
|
273
|
+
public let type: Swift.String
|
|
274
|
+
public var _comment: Swift.String?
|
|
275
|
+
public let source: Swift.String
|
|
276
|
+
public init(endpoint: Swift.String, type: Swift.String, _comment: Swift.String? = nil, source: Swift.String)
|
|
277
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
278
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
279
|
+
}
|
|
280
|
+
public struct GetRulesResponse : Swift.Codable, Swift.Sendable {
|
|
281
|
+
public var fileRules: [SandboxExt.FileRuleItem]
|
|
282
|
+
public var networkRules: [SandboxExt.NetworkRuleItem]
|
|
283
|
+
public init(fileRules: [SandboxExt.FileRuleItem] = [], networkRules: [SandboxExt.NetworkRuleItem] = [])
|
|
284
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
285
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
286
|
+
}
|
|
287
|
+
public struct ReportBlockChoiceRequest : Swift.Codable, Swift.Sendable {
|
|
288
|
+
public let recordId: Swift.UInt64
|
|
289
|
+
public let blockType: Swift.String
|
|
290
|
+
public let choice: Swift.String
|
|
291
|
+
public init(recordId: Swift.UInt64, blockType: Swift.String, choice: Swift.String)
|
|
292
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
293
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
294
|
+
}
|
|
295
|
+
public struct StartProjectionRequest : Swift.Codable, Swift.Sendable {
|
|
296
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
297
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
298
|
+
}
|
|
299
|
+
public struct StartProjectionResponse : Swift.Codable, Swift.Sendable {
|
|
300
|
+
public let workingDir: Swift.String
|
|
301
|
+
public init(workingDir: Swift.String)
|
|
302
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
303
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
304
|
+
}
|
|
305
|
+
public struct StopProjectionRequest : Swift.Codable, Swift.Sendable {
|
|
306
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
307
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
308
|
+
}
|
|
309
|
+
public struct StopProjectionResponse : Swift.Codable, Swift.Sendable {
|
|
310
|
+
public let workingDir: Swift.String
|
|
311
|
+
public init(workingDir: Swift.String)
|
|
312
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
313
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
314
|
+
}
|
|
315
|
+
public struct ProcessWriteRequest : Swift.Codable, Swift.Sendable {
|
|
316
|
+
public let processId: Swift.String
|
|
317
|
+
public let data: Swift.String
|
|
318
|
+
public init(processId: Swift.String, data: Swift.String)
|
|
319
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
320
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
321
|
+
}
|
|
322
|
+
public struct ProcessSendKeyRequest : Swift.Codable, Swift.Sendable {
|
|
323
|
+
public let processId: Swift.String
|
|
324
|
+
public let key: Swift.String
|
|
325
|
+
public init(processId: Swift.String, key: Swift.String)
|
|
326
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
327
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
328
|
+
}
|
|
329
|
+
public struct ProcessResizeRequest : Swift.Codable, Swift.Sendable {
|
|
330
|
+
public let processId: Swift.String
|
|
331
|
+
public let cols: Swift.UInt32
|
|
332
|
+
public let rows: Swift.UInt32
|
|
333
|
+
public init(processId: Swift.String, cols: Swift.UInt32, rows: Swift.UInt32)
|
|
334
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
335
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
336
|
+
}
|
|
337
|
+
public struct ProcessKillRequest : Swift.Codable, Swift.Sendable {
|
|
338
|
+
public let processId: Swift.String
|
|
339
|
+
public var signal: Swift.String?
|
|
340
|
+
public init(processId: Swift.String, signal: Swift.String? = nil)
|
|
341
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
342
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
343
|
+
}
|
|
344
|
+
public struct ProcessIsAliveRequest : Swift.Codable, Swift.Sendable {
|
|
345
|
+
public let processId: Swift.String
|
|
346
|
+
public init(processId: Swift.String)
|
|
347
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
348
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
349
|
+
}
|
|
350
|
+
public struct ProcessIsAliveResponse : Swift.Codable, Swift.Sendable {
|
|
351
|
+
public let alive: Swift.Bool
|
|
352
|
+
public init(alive: Swift.Bool)
|
|
353
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
354
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
355
|
+
}
|
|
356
|
+
public struct ProcessOutputEvent : Swift.Codable, Swift.Sendable {
|
|
357
|
+
public let processId: Swift.String
|
|
358
|
+
public let data: Swift.String
|
|
359
|
+
public var stream: Swift.String?
|
|
360
|
+
public init(processId: Swift.String, data: Swift.String, stream: Swift.String? = nil)
|
|
361
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
362
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
363
|
+
}
|
|
364
|
+
public struct ProcessExitEvent : Swift.Codable, Swift.Sendable {
|
|
365
|
+
public let processId: Swift.String
|
|
366
|
+
public let exitCode: Swift.Int32
|
|
367
|
+
public var killed: Swift.Bool?
|
|
368
|
+
public var fileBlockRecords: [SandboxExt.FileBlockRecord]
|
|
369
|
+
public var networkBlockRecords: [SandboxExt.NetworkBlockRecord]
|
|
370
|
+
public init(processId: Swift.String, exitCode: Swift.Int32, killed: Swift.Bool? = nil, fileBlockRecords: [SandboxExt.FileBlockRecord] = [], networkBlockRecords: [SandboxExt.NetworkBlockRecord] = [])
|
|
371
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
372
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
373
|
+
}
|
|
374
|
+
public struct SyncFileProgressEvent : Swift.Codable, Swift.Sendable {
|
|
375
|
+
public let current: Swift.UInt64
|
|
376
|
+
public let total: Swift.UInt64
|
|
377
|
+
public let relativePath: Swift.String
|
|
378
|
+
public init(current: Swift.UInt64, total: Swift.UInt64, relativePath: Swift.String)
|
|
379
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
380
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
381
|
+
}
|
|
382
|
+
public struct CommitFileProgressEvent : Swift.Codable, Swift.Sendable {
|
|
383
|
+
public let current: Swift.UInt64
|
|
384
|
+
public let total: Swift.UInt64
|
|
385
|
+
public let relativePath: Swift.String
|
|
386
|
+
public init(current: Swift.UInt64, total: Swift.UInt64, relativePath: Swift.String)
|
|
387
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
388
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
389
|
+
}
|
|
390
|
+
public struct ReportEventRequest : Swift.Codable, Swift.Sendable {
|
|
391
|
+
public let scene: Swift.String
|
|
392
|
+
public let action: Swift.String
|
|
393
|
+
public let status: Swift.String
|
|
394
|
+
public var costMs: Swift.Int32?
|
|
395
|
+
public var toolCallId: Swift.String?
|
|
396
|
+
public var ext1: Swift.String?
|
|
397
|
+
public var ext2: Swift.String?
|
|
398
|
+
public var ext3: Swift.String?
|
|
399
|
+
public var ext4: Swift.String?
|
|
400
|
+
public var ext5: Swift.String?
|
|
401
|
+
public var ext6: Swift.String?
|
|
402
|
+
public init(scene: Swift.String, action: Swift.String, status: Swift.String, costMs: Swift.Int32? = nil, toolCallId: Swift.String? = nil, ext1: Swift.String? = nil, ext2: Swift.String? = nil, ext3: Swift.String? = nil, ext4: Swift.String? = nil, ext5: Swift.String? = nil, ext6: Swift.String? = nil)
|
|
403
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
404
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
405
|
+
}
|
|
406
|
+
public struct FileBlockRecord : Swift.Codable, Swift.Sendable {
|
|
407
|
+
public let path: Swift.String
|
|
408
|
+
public let actionMask: Swift.UInt32
|
|
409
|
+
public let source: Swift.String
|
|
410
|
+
public var options: [Swift.String]
|
|
411
|
+
public var command: Swift.String?
|
|
412
|
+
public var raw: SandboxExt.AnyCodable?
|
|
413
|
+
public init(path: Swift.String, actionMask: Swift.UInt32, source: Swift.String, options: [Swift.String] = [], command: Swift.String? = nil, raw: SandboxExt.AnyCodable? = nil)
|
|
414
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
415
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
416
|
+
}
|
|
417
|
+
public struct NetworkBlockRecord : Swift.Codable, Swift.Sendable {
|
|
418
|
+
public let host: Swift.String
|
|
419
|
+
public var port: Swift.UInt32?
|
|
420
|
+
public let scheme: Swift.String
|
|
421
|
+
public let actionMask: Swift.UInt32
|
|
422
|
+
public var options: [Swift.String]
|
|
423
|
+
public var command: Swift.String?
|
|
424
|
+
public var raw: SandboxExt.AnyCodable?
|
|
425
|
+
public init(host: Swift.String, port: Swift.UInt32? = nil, scheme: Swift.String, actionMask: Swift.UInt32, options: [Swift.String] = [], command: Swift.String? = nil, raw: SandboxExt.AnyCodable? = nil)
|
|
426
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
427
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
428
|
+
}
|
|
429
|
+
public struct QueryFileCommitsRequest : Swift.Codable, Swift.Sendable {
|
|
430
|
+
public var commitId: Swift.String?
|
|
431
|
+
public var path: Swift.String?
|
|
432
|
+
public var limit: Swift.UInt32
|
|
433
|
+
public init(commitId: Swift.String? = nil, path: Swift.String? = nil, limit: Swift.UInt32 = 10)
|
|
434
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
435
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
436
|
+
}
|
|
437
|
+
public struct QueryFileCommitsResponse : Swift.Codable, Swift.Sendable {
|
|
438
|
+
public var commits: [SandboxExt.CommitEntry]
|
|
439
|
+
public init(commits: [SandboxExt.CommitEntry] = [])
|
|
440
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
441
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
442
|
+
}
|
|
443
|
+
public struct CommitEntry : Swift.Codable, Swift.Sendable {
|
|
444
|
+
public let commitId: Swift.String
|
|
445
|
+
public let createTimeMs: Swift.Int64
|
|
446
|
+
public var message: Swift.String?
|
|
447
|
+
public let operationType: Swift.String
|
|
448
|
+
public var files: [SandboxExt.FileChangeRecord]
|
|
449
|
+
public var targetCommitId: Swift.String?
|
|
450
|
+
public init(commitId: Swift.String, createTimeMs: Swift.Int64, message: Swift.String? = nil, operationType: Swift.String, files: [SandboxExt.FileChangeRecord] = [], targetCommitId: Swift.String? = nil)
|
|
451
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
452
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
453
|
+
}
|
|
454
|
+
public struct RevertToCommitRequest : Swift.Codable, Swift.Sendable {
|
|
455
|
+
public let commitId: Swift.String
|
|
456
|
+
public var path: Swift.String?
|
|
457
|
+
public var message: Swift.String?
|
|
458
|
+
public init(commitId: Swift.String, path: Swift.String? = nil, message: Swift.String? = nil)
|
|
459
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
460
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
461
|
+
}
|
|
462
|
+
public struct ResetToFileCommitRequest : Swift.Codable, Swift.Sendable {
|
|
463
|
+
public let commitId: Swift.String
|
|
464
|
+
public var path: Swift.String?
|
|
465
|
+
public init(commitId: Swift.String, path: Swift.String? = nil)
|
|
466
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
467
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
468
|
+
}
|
|
469
|
+
public struct FileCommitOperationResponse : Swift.Codable, Swift.Sendable {
|
|
470
|
+
public let commitId: Swift.String
|
|
471
|
+
public let filesAffected: Swift.UInt32
|
|
472
|
+
public var files: [SandboxExt.FileCommitOperationFileResult]
|
|
473
|
+
public init(commitId: Swift.String, filesAffected: Swift.UInt32, files: [SandboxExt.FileCommitOperationFileResult] = [])
|
|
474
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
475
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
476
|
+
}
|
|
477
|
+
public struct FileCommitOperationFileResult : Swift.Codable, Swift.Sendable {
|
|
478
|
+
public let path: Swift.String
|
|
479
|
+
public let success: Swift.Bool
|
|
480
|
+
public var error: Swift.String?
|
|
481
|
+
public init(path: Swift.String, success: Swift.Bool, error: Swift.String? = nil)
|
|
482
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
483
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
484
|
+
}
|
|
485
|
+
public struct CommitFileChangesRequest : Swift.Codable, Swift.Sendable {
|
|
486
|
+
public var changes: [SandboxExt.FileChangeItem]
|
|
487
|
+
public var message: Swift.String?
|
|
488
|
+
public init(changes: [SandboxExt.FileChangeItem] = [], message: Swift.String? = nil)
|
|
489
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
490
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
491
|
+
}
|
|
492
|
+
public struct CommitFileChangesResponse : Swift.Codable, Swift.Sendable {
|
|
493
|
+
public let commit: SandboxExt.CommitEntry
|
|
494
|
+
public init(commit: SandboxExt.CommitEntry)
|
|
495
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
496
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
497
|
+
}
|
|
498
|
+
public struct FileGcRequest : Swift.Codable, Swift.Sendable {
|
|
499
|
+
public let relativePath: Swift.String
|
|
500
|
+
public init(relativePath: Swift.String)
|
|
501
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
502
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
503
|
+
}
|
|
504
|
+
public struct FileChangeItem : Swift.Codable, Swift.Sendable {
|
|
505
|
+
public let relativePath: Swift.String
|
|
506
|
+
public let changeType: Swift.Int32
|
|
507
|
+
public var fileSize: Swift.UInt64?
|
|
508
|
+
public var oldPath: Swift.String?
|
|
509
|
+
public init(relativePath: Swift.String, changeType: Swift.Int32, fileSize: Swift.UInt64? = nil, oldPath: Swift.String? = nil)
|
|
510
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
511
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
512
|
+
}
|
|
513
|
+
public struct FileChangeRecord : Swift.Codable, Swift.Sendable {
|
|
514
|
+
public let relativePath: Swift.String
|
|
515
|
+
public let changeType: Swift.Int32
|
|
516
|
+
public var versionBefore: Swift.UInt64?
|
|
517
|
+
public var versionAfter: Swift.UInt64?
|
|
518
|
+
public var oldPath: Swift.String?
|
|
519
|
+
public init(relativePath: Swift.String, changeType: Swift.Int32, versionBefore: Swift.UInt64? = nil, versionAfter: Swift.UInt64? = nil, oldPath: Swift.String? = nil)
|
|
520
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
521
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
522
|
+
}
|
|
523
|
+
public struct SyncFileChangesRequest : Swift.Codable, Swift.Sendable {
|
|
524
|
+
public var paths: [Swift.String]
|
|
525
|
+
public init(paths: [Swift.String] = [])
|
|
526
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
527
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
528
|
+
}
|
|
529
|
+
public struct SyncFileChangesResponse : Swift.Codable, Swift.Sendable {
|
|
530
|
+
public var changes: [SandboxExt.FileChangeItem]
|
|
531
|
+
public let totalChanges: Swift.UInt64
|
|
532
|
+
public init(changes: [SandboxExt.FileChangeItem] = [], totalChanges: Swift.UInt64)
|
|
533
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
534
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
535
|
+
}
|
|
536
|
+
public struct QueryFileChangesRequest : Swift.Codable, Swift.Sendable {
|
|
537
|
+
public var paths: [Swift.String]
|
|
538
|
+
public init(paths: [Swift.String] = [])
|
|
539
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
540
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
541
|
+
}
|
|
542
|
+
public struct QueryFileChangesResponse : Swift.Codable, Swift.Sendable {
|
|
543
|
+
public var changes: [SandboxExt.FileChangeItem]
|
|
544
|
+
public let totalChanges: Swift.UInt64
|
|
545
|
+
public init(changes: [SandboxExt.FileChangeItem] = [], totalChanges: Swift.UInt64)
|
|
546
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
547
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
548
|
+
}
|
|
549
|
+
public struct DiscardFileChangesRequest : Swift.Codable, Swift.Sendable {
|
|
550
|
+
public var paths: [Swift.String]
|
|
551
|
+
public init(paths: [Swift.String] = [])
|
|
552
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
553
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
554
|
+
}
|
|
555
|
+
public struct QueryFileVersionCacheRequest : Swift.Codable, Swift.Sendable {
|
|
556
|
+
public let relativePath: Swift.String
|
|
557
|
+
public var versions: [Swift.UInt64]
|
|
558
|
+
public init(relativePath: Swift.String, versions: [Swift.UInt64] = [])
|
|
559
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
560
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
561
|
+
}
|
|
562
|
+
public struct FileVersionCacheEntry : Swift.Codable, Swift.Sendable {
|
|
563
|
+
public let version: Swift.UInt64
|
|
564
|
+
public let cachePath: Swift.String
|
|
565
|
+
public let fileSize: Swift.UInt64
|
|
566
|
+
public init(version: Swift.UInt64, cachePath: Swift.String, fileSize: Swift.UInt64)
|
|
567
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
568
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
569
|
+
}
|
|
570
|
+
public struct QueryFileVersionCacheResponse : Swift.Codable, Swift.Sendable {
|
|
571
|
+
public let relativePath: Swift.String
|
|
572
|
+
public var entries: [SandboxExt.FileVersionCacheEntry]
|
|
573
|
+
public var missingVersions: [Swift.UInt64]
|
|
574
|
+
public init(relativePath: Swift.String, entries: [SandboxExt.FileVersionCacheEntry] = [], missingVersions: [Swift.UInt64] = [])
|
|
575
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
576
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
577
|
+
}
|
|
578
|
+
extension Swift.Encodable {
|
|
579
|
+
public func toDict() -> [Swift.String : Any]
|
|
580
|
+
}
|
|
581
|
+
extension Swift.Dictionary where Key == Swift.String, Value == Any {
|
|
582
|
+
public func decode<T>(_ type: T.Type) throws -> T where T : Swift.Decodable
|
|
583
|
+
}
|
|
584
|
+
public enum SandboxExtIpcCommand {
|
|
585
|
+
public static let refreshProjection: Swift.String
|
|
586
|
+
public static let queryFileExtensionReady: Swift.String
|
|
587
|
+
public static let queryNetworkExtensionReady: Swift.String
|
|
588
|
+
public static let startProjectionExtMac: Swift.String
|
|
589
|
+
public static let stopProjectionExtMac: Swift.String
|
|
590
|
+
public static let ping: Swift.String
|
|
591
|
+
}
|
|
592
|
+
public struct RefreshProjectionRequest : Swift.Codable, Swift.Sendable {
|
|
593
|
+
public var relativePaths: [Swift.String]
|
|
594
|
+
public init(relativePaths: [Swift.String] = [])
|
|
595
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
596
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
597
|
+
}
|
|
598
|
+
public struct QueryFileExtensionReadyResponse : Swift.Codable, Swift.Sendable {
|
|
599
|
+
public let ready: Swift.Bool
|
|
600
|
+
public init(ready: Swift.Bool)
|
|
601
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
602
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
603
|
+
}
|
|
604
|
+
public struct QueryNetworkExtensionReadyResponse : Swift.Codable, Swift.Sendable {
|
|
605
|
+
public let ready: Swift.Bool
|
|
606
|
+
public init(ready: Swift.Bool)
|
|
607
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
608
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
609
|
+
}
|
|
610
|
+
public struct PingResponse : Swift.Codable, Swift.Sendable {
|
|
611
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
612
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
613
|
+
}
|
|
614
|
+
public struct StartProjectionExtMacRequest : Swift.Codable, Swift.Sendable {
|
|
615
|
+
public let sourceDir: Swift.String
|
|
616
|
+
public init(sourceDir: Swift.String)
|
|
617
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
618
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
619
|
+
}
|
|
620
|
+
public struct StartProjectionExtMacResponse : Swift.Codable, Swift.Sendable {
|
|
621
|
+
public let workingDir: Swift.String
|
|
622
|
+
public init(workingDir: Swift.String)
|
|
623
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
624
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
625
|
+
}
|
|
626
|
+
public struct StopProjectionExtMacRequest : Swift.Codable, Swift.Sendable {
|
|
627
|
+
public let deleteProjfsDir: Swift.Bool
|
|
628
|
+
public init(deleteProjfsDir: Swift.Bool)
|
|
629
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
630
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
631
|
+
}
|
|
632
|
+
public struct StopProjectionExtMacResponse : Swift.Codable, Swift.Sendable {
|
|
633
|
+
public let workingDir: Swift.String
|
|
634
|
+
public init(workingDir: Swift.String)
|
|
635
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
636
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
637
|
+
}
|
|
638
|
+
public enum NESharedConstants {
|
|
639
|
+
public static var appGroupId: Swift.String {
|
|
640
|
+
get
|
|
641
|
+
}
|
|
642
|
+
public static let keySandboxAgents: Swift.String
|
|
643
|
+
public static let keyBlockedDomains: Swift.String
|
|
644
|
+
public static let keyAllowedDomains: Swift.String
|
|
645
|
+
public static let keySessionAllowedDomains: Swift.String
|
|
646
|
+
public static let keySessionBlockedDomains: Swift.String
|
|
647
|
+
public static let keySessionDefaultRules: Swift.String
|
|
648
|
+
public static let keyLastRegisterAt: Swift.String
|
|
649
|
+
public static let keyUseWhitelistMode: Swift.String
|
|
650
|
+
public static let keyTrafficStats: Swift.String
|
|
651
|
+
public static let keyConnectionLogs: Swift.String
|
|
652
|
+
public static let keyBlockedNotifications: Swift.String
|
|
653
|
+
public static let keyProxyEnabled: Swift.String
|
|
654
|
+
public static let keyIpDomainMap: Swift.String
|
|
655
|
+
public static var darwinBlockedNotification: Swift.String {
|
|
656
|
+
get
|
|
657
|
+
}
|
|
658
|
+
public static var darwinAgentsChangedNotification: Swift.String {
|
|
659
|
+
get
|
|
660
|
+
}
|
|
661
|
+
public static var darwinRulesChangedNotification: Swift.String {
|
|
662
|
+
get
|
|
663
|
+
}
|
|
664
|
+
public static func darwinFileChangedNotification(sessionId: Swift.String) -> Swift.String
|
|
665
|
+
public static var protectedSigningIds: Swift.Set<Swift.String> {
|
|
666
|
+
get
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
public struct SandboxAgentEntry : Swift.Codable, Swift.Sendable {
|
|
670
|
+
public let pid: Swift.Int32
|
|
671
|
+
public let sessionId: Swift.String
|
|
672
|
+
public let registeredAt: Foundation.Date
|
|
673
|
+
public init(pid: Swift.Int32, sessionId: Swift.String, registeredAt: Foundation.Date)
|
|
674
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
675
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
676
|
+
}
|
|
677
|
+
public struct SessionTrafficStats : Swift.Codable, Swift.Sendable {
|
|
678
|
+
public let sessionId: Swift.String
|
|
679
|
+
public var totalConnections: Swift.Int
|
|
680
|
+
public var blockedConnections: Swift.Int
|
|
681
|
+
public var bytesIn: Swift.Int64
|
|
682
|
+
public var bytesOut: Swift.Int64
|
|
683
|
+
public var lastUpdated: Foundation.Date
|
|
684
|
+
public init(sessionId: Swift.String, totalConnections: Swift.Int, blockedConnections: Swift.Int, bytesIn: Swift.Int64, bytesOut: Swift.Int64, lastUpdated: Foundation.Date)
|
|
685
|
+
public static func empty(sessionId: Swift.String) -> SandboxExt.SessionTrafficStats
|
|
686
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
687
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
688
|
+
}
|
|
689
|
+
public struct ConnectionLogEntry : Swift.Codable, Swift.Identifiable, Swift.Sendable {
|
|
690
|
+
public let id: Swift.String
|
|
691
|
+
public let timestamp: Foundation.Date
|
|
692
|
+
public let pid: Swift.Int32
|
|
693
|
+
public let sessionId: Swift.String
|
|
694
|
+
public let host: Swift.String
|
|
695
|
+
public let port: Swift.String
|
|
696
|
+
public let proto: Swift.String
|
|
697
|
+
public let allowed: Swift.Bool
|
|
698
|
+
public let domain: Swift.String?
|
|
699
|
+
public init(id: Swift.String, timestamp: Foundation.Date, pid: Swift.Int32, sessionId: Swift.String, host: Swift.String, port: Swift.String, proto: Swift.String, allowed: Swift.Bool, domain: Swift.String?)
|
|
700
|
+
public typealias ID = Swift.String
|
|
701
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
702
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
703
|
+
}
|
|
704
|
+
public struct BlockedNotification : Swift.Codable, Swift.Identifiable, Swift.Sendable {
|
|
705
|
+
public let id: Swift.String
|
|
706
|
+
public let sessionId: Swift.String
|
|
707
|
+
public let pid: Swift.Int32
|
|
708
|
+
public let host: Swift.String
|
|
709
|
+
public let port: Swift.String
|
|
710
|
+
public let proto: Swift.String
|
|
711
|
+
public let blockedAt: Foundation.Date
|
|
712
|
+
public var handled: Swift.Bool
|
|
713
|
+
public let domain: Swift.String?
|
|
714
|
+
public init(id: Swift.String, sessionId: Swift.String, pid: Swift.Int32, host: Swift.String, port: Swift.String, proto: Swift.String, blockedAt: Foundation.Date, handled: Swift.Bool, domain: Swift.String?)
|
|
715
|
+
public typealias ID = Swift.String
|
|
716
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
717
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
718
|
+
}
|
|
719
|
+
public struct SessionAllowedDomain : Swift.Codable, Swift.Sendable {
|
|
720
|
+
public let sessionId: Swift.String
|
|
721
|
+
public let domain: Swift.String
|
|
722
|
+
public let allowedAt: Foundation.Date
|
|
723
|
+
public init(sessionId: Swift.String, domain: Swift.String, allowedAt: Foundation.Date)
|
|
724
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
725
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
726
|
+
}
|
|
727
|
+
public struct SessionBlockedDomain : Swift.Codable, Swift.Sendable {
|
|
728
|
+
public let sessionId: Swift.String
|
|
729
|
+
public let domain: Swift.String
|
|
730
|
+
public let blockedAt: Foundation.Date
|
|
731
|
+
public init(sessionId: Swift.String, domain: Swift.String, blockedAt: Foundation.Date)
|
|
732
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
733
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
734
|
+
}
|
|
735
|
+
public struct SessionDefaultRule : Swift.Codable, Swift.Sendable {
|
|
736
|
+
public let sessionId: Swift.String
|
|
737
|
+
public let rule: Swift.String
|
|
738
|
+
public let updatedAt: Foundation.Date
|
|
739
|
+
public init(sessionId: Swift.String, rule: Swift.String, updatedAt: Foundation.Date)
|
|
740
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
741
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
742
|
+
}
|
|
743
|
+
public enum NESharedStorage {
|
|
744
|
+
public static func defaults() -> Foundation.UserDefaults?
|
|
745
|
+
public static func read<T>(_ type: T.Type, forKey key: Swift.String) -> T? where T : Swift.Decodable
|
|
746
|
+
public static func write<T>(_ value: T, forKey key: Swift.String) where T : Swift.Encodable
|
|
747
|
+
public static func readAgentEntries() -> [SandboxExt.SandboxAgentEntry]
|
|
748
|
+
public static func writeAgentEntries(_ entries: [SandboxExt.SandboxAgentEntry])
|
|
749
|
+
public static func readTrafficStats() -> [SandboxExt.SessionTrafficStats]
|
|
750
|
+
public static func writeTrafficStats(_ stats: [SandboxExt.SessionTrafficStats])
|
|
751
|
+
public static func readConnectionLogs() -> [SandboxExt.ConnectionLogEntry]
|
|
752
|
+
public static func writeConnectionLogs(_ logs: [SandboxExt.ConnectionLogEntry])
|
|
753
|
+
public static func readBlockedNotifications() -> [SandboxExt.BlockedNotification]
|
|
754
|
+
public static func writeBlockedNotifications(_ notifications: [SandboxExt.BlockedNotification])
|
|
755
|
+
public static func readSessionAllowedDomains() -> [SandboxExt.SessionAllowedDomain]
|
|
756
|
+
public static func writeSessionAllowedDomains(_ domains: [SandboxExt.SessionAllowedDomain])
|
|
757
|
+
public static func readSessionBlockedDomains() -> [SandboxExt.SessionBlockedDomain]
|
|
758
|
+
public static func writeSessionBlockedDomains(_ domains: [SandboxExt.SessionBlockedDomain])
|
|
759
|
+
public static func readSessionDefaultRules() -> [SandboxExt.SessionDefaultRule]
|
|
760
|
+
public static func writeSessionDefaultRules(_ rules: [SandboxExt.SessionDefaultRule])
|
|
761
|
+
public static func readLastRegisterAt() -> Foundation.Date
|
|
762
|
+
public static func readBlockedDomains() -> [Swift.String]
|
|
763
|
+
public static func writeBlockedDomains(_ domains: [Swift.String])
|
|
764
|
+
public static func readAllowedDomains() -> [Swift.String]
|
|
765
|
+
public static func writeAllowedDomains(_ domains: [Swift.String])
|
|
766
|
+
public static func readUseWhitelistMode() -> Swift.Bool
|
|
767
|
+
public static func writeUseWhitelistMode(_ value: Swift.Bool)
|
|
768
|
+
public static func readProxyEnabled() -> Swift.Bool
|
|
769
|
+
public static func writeProxyEnabled(_ enabled: Swift.Bool)
|
|
770
|
+
public static func readIpDomainMap() -> [Swift.String : Swift.String]
|
|
771
|
+
public static func writeIpDomainMap(_ map: [Swift.String : Swift.String])
|
|
772
|
+
}
|
|
773
|
+
@objc @available(macOS 14.0, *)
|
|
774
|
+
final public class NetworkExtensionManager : ObjectiveC.NSObject {
|
|
775
|
+
public enum ExtensionStatus : Swift.String, Swift.Sendable {
|
|
776
|
+
case unknown
|
|
777
|
+
case notConfigured
|
|
778
|
+
case configuring
|
|
779
|
+
case disconnected
|
|
780
|
+
case connecting
|
|
781
|
+
case connected
|
|
782
|
+
case disconnecting
|
|
783
|
+
case failed
|
|
784
|
+
public init?(rawValue: Swift.String)
|
|
785
|
+
@available(macOS 14.0, *)
|
|
786
|
+
public typealias RawValue = Swift.String
|
|
787
|
+
public var rawValue: Swift.String {
|
|
788
|
+
get
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
final public var extensionStatus: SandboxExt.NetworkExtensionManager.ExtensionStatus {
|
|
792
|
+
get
|
|
793
|
+
}
|
|
794
|
+
final public var proxyRunning: Swift.Bool {
|
|
795
|
+
get
|
|
796
|
+
}
|
|
797
|
+
final public var lastError: Swift.String? {
|
|
798
|
+
get
|
|
799
|
+
}
|
|
800
|
+
final public var initialLoadComplete: Swift.Bool {
|
|
801
|
+
get
|
|
802
|
+
}
|
|
803
|
+
final public func waitForInitialLoad(timeout: Foundation.TimeInterval = 3) async
|
|
804
|
+
final public var blockedDomains: [Swift.String] {
|
|
805
|
+
get
|
|
806
|
+
set
|
|
807
|
+
_modify
|
|
808
|
+
}
|
|
809
|
+
final public var allowedDomains: [Swift.String] {
|
|
810
|
+
get
|
|
811
|
+
set
|
|
812
|
+
_modify
|
|
813
|
+
}
|
|
814
|
+
final public var useWhitelistMode: Swift.Bool {
|
|
815
|
+
get
|
|
816
|
+
set
|
|
817
|
+
_modify
|
|
818
|
+
}
|
|
819
|
+
public static let keyBlockedDomains: Swift.String
|
|
820
|
+
public static let keyAllowedDomains: Swift.String
|
|
821
|
+
public static let keyUseWhitelistMode: Swift.String
|
|
822
|
+
public static let keyProxyEnabled: Swift.String
|
|
823
|
+
public static let keyConnectionLogs: Swift.String
|
|
824
|
+
public init(configuration: SandboxExt.SandboxExtConfiguration)
|
|
825
|
+
@objc deinit
|
|
826
|
+
@_Concurrency.MainActor final public func loadOrCreateConfiguration() async throws
|
|
827
|
+
@_Concurrency.MainActor final public func startProxy() async throws
|
|
828
|
+
@_Concurrency.MainActor final public func stopProxy()
|
|
829
|
+
@_Concurrency.MainActor final public func removeConfiguration() async throws
|
|
830
|
+
final public func checkProxyRunning() async -> Swift.Bool
|
|
831
|
+
@_Concurrency.MainActor final public func ensureRunning() async -> Swift.Bool
|
|
832
|
+
public enum NEManagerError : Foundation.LocalizedError {
|
|
833
|
+
case notConfigured
|
|
834
|
+
public var errorDescription: Swift.String? {
|
|
835
|
+
get
|
|
836
|
+
}
|
|
837
|
+
public static func == (a: SandboxExt.NetworkExtensionManager.NEManagerError, b: SandboxExt.NetworkExtensionManager.NEManagerError) -> Swift.Bool
|
|
838
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
839
|
+
public var hashValue: Swift.Int {
|
|
840
|
+
get
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
final public func fetchConnectionLogs() -> [SandboxExt.ConnectionLogEntry]
|
|
844
|
+
final public func fetchConnectionLogs(forSession sessionId: Swift.String) -> [SandboxExt.ConnectionLogEntry]
|
|
845
|
+
final public func clearConnectionLogs()
|
|
846
|
+
final public func clearBlockedNotifications(forSession sessionId: Swift.String)
|
|
847
|
+
final public func markBlockedNotificationHandled(id: Swift.String)
|
|
848
|
+
final public func allowDomainForSession(domain: Swift.String, sessionId: Swift.String)
|
|
849
|
+
final public func allowDomainGlobally(domain: Swift.String)
|
|
850
|
+
final public var extensionLogFilePath: Swift.String? {
|
|
851
|
+
get
|
|
852
|
+
}
|
|
853
|
+
final public func readExtensionLogs(maxLines: Swift.Int = 200) -> Swift.String
|
|
854
|
+
final public func clearExtensionLogs()
|
|
855
|
+
}
|
|
856
|
+
@available(macOS 14.0, *)
|
|
857
|
+
extension SandboxExt.NetworkExtensionManager : nonisolated Observation.Observable {
|
|
858
|
+
}
|
|
859
|
+
public struct FileChangeEvent : Swift.Codable, Swift.Sendable {
|
|
860
|
+
public let relativePath: Swift.String
|
|
861
|
+
public let modifiedAt: Foundation.TimeInterval
|
|
862
|
+
public init(relativePath: Swift.String, modifiedAt: Foundation.TimeInterval)
|
|
863
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
864
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
865
|
+
}
|
|
866
|
+
public enum PendingChanges {
|
|
867
|
+
public static func append(sessionId: Swift.String, relativePath: Swift.String)
|
|
868
|
+
public static func consumeAll(sessionId: Swift.String) -> [SandboxExt.FileChangeEvent]
|
|
869
|
+
public static func cleanup(sessionId: Swift.String)
|
|
870
|
+
}
|
|
871
|
+
final public class ProcessTreeMonitor {
|
|
872
|
+
final public let rootPid: _DarwinFoundation2.pid_t
|
|
873
|
+
final public let sessionId: Swift.String
|
|
874
|
+
final public var onNewChild: ((_DarwinFoundation2.pid_t) -> Swift.Void)?
|
|
875
|
+
final public var onChildExit: ((_DarwinFoundation2.pid_t) -> Swift.Void)?
|
|
876
|
+
public init(rootPid: _DarwinFoundation2.pid_t, sessionId: Swift.String, logSubsystem: Swift.String = DemoBundleIds.extLogSubsystem)
|
|
877
|
+
@objc deinit
|
|
878
|
+
final public func start()
|
|
879
|
+
final public func stop()
|
|
880
|
+
}
|
|
881
|
+
public struct SandboxExtConfiguration : Swift.Sendable {
|
|
882
|
+
public let appGroupId: Swift.String
|
|
883
|
+
public let networkExtensionBundleId: Swift.String
|
|
884
|
+
public let neAlertDescription: Swift.String
|
|
885
|
+
public let domainIdPrefix: Swift.String
|
|
886
|
+
public let domainDisplayPrefix: Swift.String
|
|
887
|
+
public let logSubsystem: Swift.String
|
|
888
|
+
public let hostSocketName: Swift.String
|
|
889
|
+
public init(appGroupId: Swift.String, networkExtensionBundleId: Swift.String, neAlertDescription: Swift.String = "Sandbox 网络代理", domainIdPrefix: Swift.String = "workbuddy-sdb-", domainDisplayPrefix: Swift.String = "SandboxMain", logSubsystem: Swift.String = DemoBundleIds.extLogSubsystem, hostSocketName: Swift.String = "sandbox-ext.sock")
|
|
890
|
+
}
|
|
891
|
+
extension SandboxExt.SandboxExtConfiguration {
|
|
892
|
+
public var groupContainerURL: Foundation.URL? {
|
|
893
|
+
get
|
|
894
|
+
}
|
|
895
|
+
public var hostSocketPath: Swift.String? {
|
|
896
|
+
get
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
extension SandboxExt.SandboxExtConfiguration {
|
|
900
|
+
public static func simple(appName: Swift.String, appGroupId: Swift.String, networkExtensionBundleId: Swift.String, neAlertDescription: Swift.String? = nil, logSubsystem: Swift.String? = nil, hostSocketName: Swift.String = "sandbox-ext.sock") -> SandboxExt.SandboxExtConfiguration
|
|
901
|
+
public static func demo() -> SandboxExt.SandboxExtConfiguration
|
|
902
|
+
}
|
|
903
|
+
@available(macOS 14.0, *)
|
|
904
|
+
@_Concurrency.MainActor public protocol SandboxExtDelegate : AnyObject {
|
|
905
|
+
@_Concurrency.MainActor func extManager(_ manager: SandboxExt.SandboxExtManager, didEncounterError error: SandboxExt.SandboxExtError)
|
|
906
|
+
@_Concurrency.MainActor func extManager(_ manager: SandboxExt.SandboxExtManager, needsUserAction action: SandboxExt.SandboxExtUserAction)
|
|
907
|
+
@_Concurrency.MainActor func extManager(_ manager: SandboxExt.SandboxExtManager, didUpdateExtensionStatus status: SandboxExt.SandboxExtensionStatus)
|
|
908
|
+
}
|
|
909
|
+
@available(macOS 14.0, *)
|
|
910
|
+
extension SandboxExt.SandboxExtDelegate {
|
|
911
|
+
@_Concurrency.MainActor public func extManager(_ manager: SandboxExt.SandboxExtManager, didEncounterError error: SandboxExt.SandboxExtError)
|
|
912
|
+
@_Concurrency.MainActor public func extManager(_ manager: SandboxExt.SandboxExtManager, needsUserAction action: SandboxExt.SandboxExtUserAction)
|
|
913
|
+
@_Concurrency.MainActor public func extManager(_ manager: SandboxExt.SandboxExtManager, didUpdateExtensionStatus status: SandboxExt.SandboxExtensionStatus)
|
|
914
|
+
}
|
|
915
|
+
public struct SandboxExtError : Swift.Error, Swift.Sendable {
|
|
916
|
+
public let category: SandboxExt.SandboxExtError.Category
|
|
917
|
+
public let context: Swift.String
|
|
918
|
+
public let underlyingMessage: Swift.String
|
|
919
|
+
public init(category: SandboxExt.SandboxExtError.Category, context: Swift.String, underlyingMessage: Swift.String)
|
|
920
|
+
public enum Category : Swift.String, Swift.Sendable {
|
|
921
|
+
case fileProviderError
|
|
922
|
+
case networkExtensionError
|
|
923
|
+
case hostIPCServerError
|
|
924
|
+
case processMonitorError
|
|
925
|
+
case other
|
|
926
|
+
public init?(rawValue: Swift.String)
|
|
927
|
+
public typealias RawValue = Swift.String
|
|
928
|
+
public var rawValue: Swift.String {
|
|
929
|
+
get
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
extension SandboxExt.SandboxExtError : Foundation.LocalizedError {
|
|
934
|
+
public var errorDescription: Swift.String? {
|
|
935
|
+
get
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
public enum SandboxExtUserAction : Swift.Sendable {
|
|
939
|
+
case enableFileProvider(extensionName: Swift.String)
|
|
940
|
+
case allowNetworkExtension(description: Swift.String)
|
|
941
|
+
case networkExtensionToggleReverted(reason: Swift.String)
|
|
942
|
+
case fileProviderToggleReverted(reason: Swift.String)
|
|
943
|
+
}
|
|
944
|
+
public struct SandboxExtensionStatus : Swift.Sendable, Swift.Equatable {
|
|
945
|
+
public let fileProviderEnabled: Swift.Bool
|
|
946
|
+
public let networkExtensionEnabled: Swift.Bool
|
|
947
|
+
public let networkExtensionDetail: Swift.String?
|
|
948
|
+
public init(fileProviderEnabled: Swift.Bool, networkExtensionEnabled: Swift.Bool, networkExtensionDetail: Swift.String? = nil)
|
|
949
|
+
public static func == (a: SandboxExt.SandboxExtensionStatus, b: SandboxExt.SandboxExtensionStatus) -> Swift.Bool
|
|
950
|
+
}
|
|
951
|
+
final public class SandboxExtIPCServer : @unchecked Swift.Sendable {
|
|
952
|
+
public typealias RequestHandler = @Sendable (SandboxExt.IpcMessage) async throws -> SandboxExt.AnyCodable?
|
|
953
|
+
public init(configuration: SandboxExt.SandboxExtConfiguration)
|
|
954
|
+
@objc deinit
|
|
955
|
+
final public func registerHandler(for command: Swift.String, handler: @escaping SandboxExt.SandboxExtIPCServer.RequestHandler)
|
|
956
|
+
final public func start() async throws
|
|
957
|
+
final public func stop()
|
|
958
|
+
}
|
|
959
|
+
@available(macOS 14.0, *)
|
|
960
|
+
final public class SandboxExtManager {
|
|
961
|
+
final public let fileProviderManager: SandboxExt.FileProviderManager
|
|
962
|
+
final public let networkExtensionManager: SandboxExt.NetworkExtensionManager
|
|
963
|
+
final public let ipcServer: SandboxExt.SandboxExtIPCServer
|
|
964
|
+
weak final public var delegate: (any SandboxExt.SandboxExtDelegate)? {
|
|
965
|
+
get
|
|
966
|
+
set
|
|
967
|
+
_modify
|
|
968
|
+
}
|
|
969
|
+
final public let configuration: SandboxExt.SandboxExtConfiguration
|
|
970
|
+
public init(configuration: SandboxExt.SandboxExtConfiguration)
|
|
971
|
+
final public func startIPCServer() async throws
|
|
972
|
+
final public func stopIPCServer()
|
|
973
|
+
final public func startProjection(sessionId: Swift.String, sourceDir: Swift.String) async throws -> Swift.String
|
|
974
|
+
final public func stopProjection(sessionId: Swift.String) async
|
|
975
|
+
@_Concurrency.MainActor final public func schedulePreWarm(preserveSessionIds: Swift.Set<Swift.String>)
|
|
976
|
+
final public func awaitPreWarm() async
|
|
977
|
+
final public func preRegisterFileProviderDomainIfNeeded() async
|
|
978
|
+
final public func cleanupLegacyFileProviderDomains() async
|
|
979
|
+
final public func isFileProviderExtensionEnabled() async -> Swift.Bool
|
|
980
|
+
final public func deleteProjection(projectionId: Swift.String) async
|
|
981
|
+
final public func refreshFile(sessionId: Swift.String, relativePath: Swift.String) async
|
|
982
|
+
final public func stopAllProjections() async
|
|
983
|
+
final package func registerForFFI()
|
|
984
|
+
@objc deinit
|
|
985
|
+
}
|
|
986
|
+
@available(macOS 14.0, *)
|
|
987
|
+
extension SandboxExt.SandboxExtManager : nonisolated Observation.Observable {
|
|
988
|
+
}
|
|
989
|
+
public struct SessionRegistryEntry : Swift.Codable, Swift.Sendable {
|
|
990
|
+
public let name: Swift.String
|
|
991
|
+
public let sourcePath: Swift.String
|
|
992
|
+
public let localGitDir: Swift.String?
|
|
993
|
+
public let slot: Swift.Int
|
|
994
|
+
public let domainIndex: Swift.Int
|
|
995
|
+
public init(name: Swift.String, sourcePath: Swift.String, localGitDir: Swift.String?, slot: Swift.Int, domainIndex: Swift.Int)
|
|
996
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
997
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
998
|
+
}
|
|
999
|
+
public enum SessionRegistry {
|
|
1000
|
+
public static let slotsPerGroup: Swift.Int
|
|
1001
|
+
public static func load() -> [Swift.String : SandboxExt.SessionRegistryEntry]
|
|
1002
|
+
@discardableResult
|
|
1003
|
+
public static func save(_ sessions: [Swift.String : SandboxExt.SessionRegistryEntry]) -> Swift.Bool
|
|
1004
|
+
public static func addSession(id: Swift.String, slot: Swift.Int, domainIndex: Swift.Int, name: Swift.String, sourcePath: Swift.String, localGitDir: Swift.String?)
|
|
1005
|
+
public static func removeSession(id: Swift.String)
|
|
1006
|
+
public static func entry(for sessionId: Swift.String) -> SandboxExt.SessionRegistryEntry?
|
|
1007
|
+
public static func entryForSlot(_ slot: Swift.Int, domainIndex: Swift.Int) -> (sessionId: Swift.String, entry: SandboxExt.SessionRegistryEntry)?
|
|
1008
|
+
public static func uniqueSlotName(baseName: Swift.String, domainIndex: Swift.Int) -> Swift.String
|
|
1009
|
+
}
|
|
1010
|
+
@_inheritsConvenienceInitializers @objc(TransparentProxyProviderCore) open class TransparentProxyProviderCore : NetworkExtension.NETransparentProxyProvider {
|
|
1011
|
+
@objc override dynamic open func startProxy(options: [Swift.String : Any]?, completionHandler: @escaping ((any Swift.Error)?) -> Swift.Void)
|
|
1012
|
+
@objc override dynamic open func stopProxy(with reason: NetworkExtension.NEProviderStopReason, completionHandler: @escaping () -> Swift.Void)
|
|
1013
|
+
@objc override dynamic open func handleNewFlow(_ flow: NetworkExtension.NEAppProxyFlow) -> Swift.Bool
|
|
1014
|
+
@objc override dynamic public init()
|
|
1015
|
+
@objc deinit
|
|
1016
|
+
}
|
|
1017
|
+
public struct SlotEntry : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
1018
|
+
public var slot: Swift.Int
|
|
1019
|
+
public var sessionId: Swift.String?
|
|
1020
|
+
public var lastName: Swift.String?
|
|
1021
|
+
public init(slot: Swift.Int, sessionId: Swift.String? = nil, lastName: Swift.String? = nil)
|
|
1022
|
+
public static func == (a: SandboxExt.SlotEntry, b: SandboxExt.SlotEntry) -> Swift.Bool
|
|
1023
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
1024
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
1025
|
+
}
|
|
1026
|
+
public struct DomainEntry : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
1027
|
+
public var index: Swift.Int
|
|
1028
|
+
public var slots: [SandboxExt.SlotEntry]
|
|
1029
|
+
public var removed: Swift.Bool
|
|
1030
|
+
public init(index: Swift.Int, slots: [SandboxExt.SlotEntry] = [], removed: Swift.Bool = false)
|
|
1031
|
+
public static func == (a: SandboxExt.DomainEntry, b: SandboxExt.DomainEntry) -> Swift.Bool
|
|
1032
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
1033
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
1034
|
+
}
|
|
1035
|
+
public struct UsedSlotsState : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
1036
|
+
public var domains: [SandboxExt.DomainEntry]
|
|
1037
|
+
public init(domains: [SandboxExt.DomainEntry] = [])
|
|
1038
|
+
public static func == (a: SandboxExt.UsedSlotsState, b: SandboxExt.UsedSlotsState) -> Swift.Bool
|
|
1039
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
1040
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
1041
|
+
}
|
|
1042
|
+
public enum UsedSlotsRegistry {
|
|
1043
|
+
public static func load() -> SandboxExt.UsedSlotsState
|
|
1044
|
+
public static func pickFreeSlot(domain: Swift.Int) -> Swift.Int?
|
|
1045
|
+
public static func entry(slot: Swift.Int, domain: Swift.Int) -> SandboxExt.SlotEntry?
|
|
1046
|
+
public static func lookupByLastName(_ name: Swift.String, domain: Swift.Int) -> SandboxExt.SlotEntry?
|
|
1047
|
+
public static func domainHasActiveSession(domain: Swift.Int) -> Swift.Bool
|
|
1048
|
+
public static func domainIsRemoved(domain: Swift.Int) -> Swift.Bool
|
|
1049
|
+
public static func domainIsFullyDead(domain: Swift.Int) -> Swift.Bool
|
|
1050
|
+
public static func bindSession(slot: Swift.Int, domain: Swift.Int, sessionId: Swift.String, name: Swift.String)
|
|
1051
|
+
public static func unbindSession(slot: Swift.Int, domain: Swift.Int)
|
|
1052
|
+
public static func markUsedIfAbsent(slot: Swift.Int, domain: Swift.Int)
|
|
1053
|
+
public static func markDomainRemoved(domain: Swift.Int)
|
|
1054
|
+
public static func resetAll()
|
|
1055
|
+
}
|
|
1056
|
+
public enum WorkspaceLocator {
|
|
1057
|
+
public static func root(from sourceFilePath: Swift.String = #filePath) -> Swift.String
|
|
1058
|
+
}
|
|
1059
|
+
public enum XLog {
|
|
1060
|
+
public static func initialize()
|
|
1061
|
+
public static func close()
|
|
1062
|
+
public static func flush()
|
|
1063
|
+
public static func flushSync()
|
|
1064
|
+
public static func error(tag: Swift.String, sessionId: Swift.String? = nil, _ message: Swift.String, file: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
1065
|
+
public static func warn(tag: Swift.String, sessionId: Swift.String? = nil, _ message: Swift.String, file: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
1066
|
+
public static func info(tag: Swift.String, sessionId: Swift.String? = nil, _ message: Swift.String, file: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
1067
|
+
public static func debug(tag: Swift.String, sessionId: Swift.String? = nil, _ message: @autoclosure () -> Swift.String, file: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
1068
|
+
public static func setLevel(_ level: SandboxExt.WbXlogLevel)
|
|
1069
|
+
}
|
|
1070
|
+
extension SandboxExt.ExecutionMode : Swift.Equatable {}
|
|
1071
|
+
extension SandboxExt.ExecutionMode : Swift.Hashable {}
|
|
1072
|
+
extension SandboxExt.ExecutionMode : Swift.RawRepresentable {}
|
|
1073
|
+
@available(macOS 14.0, *)
|
|
1074
|
+
extension SandboxExt.NetworkExtensionManager.ExtensionStatus : Swift.Equatable {}
|
|
1075
|
+
@available(macOS 14.0, *)
|
|
1076
|
+
extension SandboxExt.NetworkExtensionManager.ExtensionStatus : Swift.Hashable {}
|
|
1077
|
+
@available(macOS 14.0, *)
|
|
1078
|
+
extension SandboxExt.NetworkExtensionManager.ExtensionStatus : Swift.RawRepresentable {}
|
|
1079
|
+
@available(macOS 14.0, *)
|
|
1080
|
+
extension SandboxExt.NetworkExtensionManager.NEManagerError : Swift.Equatable {}
|
|
1081
|
+
@available(macOS 14.0, *)
|
|
1082
|
+
extension SandboxExt.NetworkExtensionManager.NEManagerError : Swift.Hashable {}
|
|
1083
|
+
extension SandboxExt.SandboxExtError.Category : Swift.Equatable {}
|
|
1084
|
+
extension SandboxExt.SandboxExtError.Category : Swift.Hashable {}
|
|
1085
|
+
extension SandboxExt.SandboxExtError.Category : Swift.RawRepresentable {}
|