capacitor-native-agent 0.6.0 → 0.6.1
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/android/src/main/java/uniffi/native_agent_ffi/native_agent_ffi.kt +30 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/native_agent_ffi/native_agent_ffi.swift +109 -2
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/native_agent_ffi/native_agent_ffiFFI.h +55 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/native_agent_ffi/native_agent_ffi.swift +109 -2
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/native_agent_ffi/native_agent_ffiFFI.h +55 -0
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffi.swift +109 -2
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffiFFI.h +55 -0
- package/package.json +1 -1
|
@@ -900,6 +900,8 @@ internal open class UniffiVTableCallbackInterfaceNativeNotifier(
|
|
|
900
900
|
|
|
901
901
|
|
|
902
902
|
|
|
903
|
+
|
|
904
|
+
|
|
903
905
|
|
|
904
906
|
|
|
905
907
|
|
|
@@ -973,6 +975,8 @@ internal interface UniffiLib : Library {
|
|
|
973
975
|
): RustBuffer.ByValue
|
|
974
976
|
fun uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(`ptr`: Pointer,`sessionKey`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
|
|
975
977
|
): RustBuffer.ByValue
|
|
978
|
+
fun uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(`ptr`: Pointer,`limit`: Long,uniffi_out_err: UniffiRustCallStatus,
|
|
979
|
+
): RustBuffer.ByValue
|
|
976
980
|
fun uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
|
|
977
981
|
): Unit
|
|
978
982
|
fun uniffi_native_agent_ffi_fn_method_nativeagenthandle_refresh_token(`ptr`: Pointer,`provider`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
|
|
@@ -1191,6 +1195,8 @@ internal interface UniffiLib : Library {
|
|
|
1191
1195
|
): Short
|
|
1192
1196
|
fun uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(
|
|
1193
1197
|
): Short
|
|
1198
|
+
fun uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages(
|
|
1199
|
+
): Short
|
|
1194
1200
|
fun uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config(
|
|
1195
1201
|
): Short
|
|
1196
1202
|
fun uniffi_native_agent_ffi_checksum_method_nativeagenthandle_refresh_token(
|
|
@@ -1343,6 +1349,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
|
|
|
1343
1349
|
if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session() != 39832.toShort()) {
|
|
1344
1350
|
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
1345
1351
|
}
|
|
1352
|
+
if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages() != 38563.toShort()) {
|
|
1353
|
+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
1354
|
+
}
|
|
1346
1355
|
if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config() != 63110.toShort()) {
|
|
1347
1356
|
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
1348
1357
|
}
|
|
@@ -1889,6 +1898,11 @@ public interface NativeAgentHandleInterface {
|
|
|
1889
1898
|
*/
|
|
1890
1899
|
fun `loadSession`(`sessionKey`: kotlin.String): kotlin.String
|
|
1891
1900
|
|
|
1901
|
+
/**
|
|
1902
|
+
* Load surfaced messages from background/cron jobs.
|
|
1903
|
+
*/
|
|
1904
|
+
fun `loadSurfacedMessages`(`limit`: kotlin.Long): kotlin.String
|
|
1905
|
+
|
|
1892
1906
|
fun `persistConfig`()
|
|
1893
1907
|
|
|
1894
1908
|
/**
|
|
@@ -2435,6 +2449,22 @@ open class NativeAgentHandle: Disposable, AutoCloseable, NativeAgentHandleInterf
|
|
|
2435
2449
|
|
|
2436
2450
|
|
|
2437
2451
|
|
|
2452
|
+
/**
|
|
2453
|
+
* Load surfaced messages from background/cron jobs.
|
|
2454
|
+
*/
|
|
2455
|
+
@Throws(NativeAgentException::class)override fun `loadSurfacedMessages`(`limit`: kotlin.Long): kotlin.String {
|
|
2456
|
+
return FfiConverterString.lift(
|
|
2457
|
+
callWithPointer {
|
|
2458
|
+
uniffiRustCallWithError(NativeAgentException) { _status ->
|
|
2459
|
+
UniffiLib.INSTANCE.uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(
|
|
2460
|
+
it, FfiConverterLong.lower(`limit`),_status)
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
)
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
|
|
2438
2468
|
@Throws(NativeAgentException::class)override fun `persistConfig`()
|
|
2439
2469
|
=
|
|
2440
2470
|
callWithPointer {
|
|
@@ -598,11 +598,21 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
598
598
|
*/
|
|
599
599
|
func listSkills() throws -> String
|
|
600
600
|
|
|
601
|
+
/**
|
|
602
|
+
* List all tool permissions as JSON array.
|
|
603
|
+
*/
|
|
604
|
+
func listToolPermissions() throws -> String
|
|
605
|
+
|
|
601
606
|
/**
|
|
602
607
|
* Load session message history.
|
|
603
608
|
*/
|
|
604
609
|
func loadSession(sessionKey: String) throws -> String
|
|
605
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Load surfaced messages from background/cron jobs.
|
|
613
|
+
*/
|
|
614
|
+
func loadSurfacedMessages(limit: Int64) throws -> String
|
|
615
|
+
|
|
606
616
|
func persistConfig() throws
|
|
607
617
|
|
|
608
618
|
/**
|
|
@@ -620,6 +630,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
620
630
|
*/
|
|
621
631
|
func removeSkill(id: String) throws
|
|
622
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
635
|
+
*/
|
|
636
|
+
func resetToolPermissions() throws
|
|
637
|
+
|
|
623
638
|
/**
|
|
624
639
|
* Respond to a tool approval request.
|
|
625
640
|
*/
|
|
@@ -650,6 +665,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
650
665
|
*/
|
|
651
666
|
func runCronJob(jobId: String) throws
|
|
652
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
670
|
+
*/
|
|
671
|
+
func seedToolPermissions(defaultsJson: String) throws -> UInt32
|
|
672
|
+
|
|
653
673
|
/**
|
|
654
674
|
* Send a message to the agent and start an agent loop turn.
|
|
655
675
|
*/
|
|
@@ -679,6 +699,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
679
699
|
*/
|
|
680
700
|
func setSchedulerConfig(configJson: String) throws
|
|
681
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Set a single tool's permission (upsert).
|
|
704
|
+
*/
|
|
705
|
+
func setToolPermission(toolName: String, permission: String, enabled: Bool) throws
|
|
706
|
+
|
|
682
707
|
/**
|
|
683
708
|
* Start MCP server with given tools.
|
|
684
709
|
*/
|
|
@@ -971,6 +996,16 @@ open func listSkills()throws -> String {
|
|
|
971
996
|
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(self.uniffiClonePointer(),$0
|
|
972
997
|
)
|
|
973
998
|
})
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* List all tool permissions as JSON array.
|
|
1003
|
+
*/
|
|
1004
|
+
open func listToolPermissions()throws -> String {
|
|
1005
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1006
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(self.uniffiClonePointer(),$0
|
|
1007
|
+
)
|
|
1008
|
+
})
|
|
974
1009
|
}
|
|
975
1010
|
|
|
976
1011
|
/**
|
|
@@ -982,6 +1017,17 @@ open func loadSession(sessionKey: String)throws -> String {
|
|
|
982
1017
|
FfiConverterString.lower(sessionKey),$0
|
|
983
1018
|
)
|
|
984
1019
|
})
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Load surfaced messages from background/cron jobs.
|
|
1024
|
+
*/
|
|
1025
|
+
open func loadSurfacedMessages(limit: Int64)throws -> String {
|
|
1026
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1027
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(self.uniffiClonePointer(),
|
|
1028
|
+
FfiConverterInt64.lower(limit),$0
|
|
1029
|
+
)
|
|
1030
|
+
})
|
|
985
1031
|
}
|
|
986
1032
|
|
|
987
1033
|
open func persistConfig()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
@@ -1019,6 +1065,15 @@ open func removeSkill(id: String)throws {try rustCallWithError(FfiConverterType
|
|
|
1019
1065
|
FfiConverterString.lower(id),$0
|
|
1020
1066
|
)
|
|
1021
1067
|
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
1072
|
+
*/
|
|
1073
|
+
open func resetToolPermissions()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1074
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(self.uniffiClonePointer(),$0
|
|
1075
|
+
)
|
|
1076
|
+
}
|
|
1022
1077
|
}
|
|
1023
1078
|
|
|
1024
1079
|
/**
|
|
@@ -1089,6 +1144,17 @@ open func runCronJob(jobId: String)throws {try rustCallWithError(FfiConverterTy
|
|
|
1089
1144
|
FfiConverterString.lower(jobId),$0
|
|
1090
1145
|
)
|
|
1091
1146
|
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
1151
|
+
*/
|
|
1152
|
+
open func seedToolPermissions(defaultsJson: String)throws -> UInt32 {
|
|
1153
|
+
return try FfiConverterUInt32.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1154
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(self.uniffiClonePointer(),
|
|
1155
|
+
FfiConverterString.lower(defaultsJson),$0
|
|
1156
|
+
)
|
|
1157
|
+
})
|
|
1092
1158
|
}
|
|
1093
1159
|
|
|
1094
1160
|
/**
|
|
@@ -1156,6 +1222,18 @@ open func setSchedulerConfig(configJson: String)throws {try rustCallWithError(F
|
|
|
1156
1222
|
FfiConverterString.lower(configJson),$0
|
|
1157
1223
|
)
|
|
1158
1224
|
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Set a single tool's permission (upsert).
|
|
1229
|
+
*/
|
|
1230
|
+
open func setToolPermission(toolName: String, permission: String, enabled: Bool)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1231
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(self.uniffiClonePointer(),
|
|
1232
|
+
FfiConverterString.lower(toolName),
|
|
1233
|
+
FfiConverterString.lower(permission),
|
|
1234
|
+
FfiConverterBool.lower(enabled),$0
|
|
1235
|
+
)
|
|
1236
|
+
}
|
|
1159
1237
|
}
|
|
1160
1238
|
|
|
1161
1239
|
/**
|
|
@@ -1609,13 +1687,20 @@ public struct SendMessageParams {
|
|
|
1609
1687
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1610
1688
|
*/
|
|
1611
1689
|
public var allowedToolsJson: String?
|
|
1690
|
+
/**
|
|
1691
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1692
|
+
*/
|
|
1693
|
+
public var priorMessagesJson: String?
|
|
1612
1694
|
|
|
1613
1695
|
// Default memberwise initializers are never public by default, so we
|
|
1614
1696
|
// declare one manually.
|
|
1615
1697
|
public init(prompt: String, sessionKey: String, model: String?, provider: String?, systemPrompt: String, maxTurns: UInt32?,
|
|
1616
1698
|
/**
|
|
1617
1699
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1618
|
-
*/allowedToolsJson: String
|
|
1700
|
+
*/allowedToolsJson: String?,
|
|
1701
|
+
/**
|
|
1702
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1703
|
+
*/priorMessagesJson: String?) {
|
|
1619
1704
|
self.prompt = prompt
|
|
1620
1705
|
self.sessionKey = sessionKey
|
|
1621
1706
|
self.model = model
|
|
@@ -1623,6 +1708,7 @@ public struct SendMessageParams {
|
|
|
1623
1708
|
self.systemPrompt = systemPrompt
|
|
1624
1709
|
self.maxTurns = maxTurns
|
|
1625
1710
|
self.allowedToolsJson = allowedToolsJson
|
|
1711
|
+
self.priorMessagesJson = priorMessagesJson
|
|
1626
1712
|
}
|
|
1627
1713
|
}
|
|
1628
1714
|
|
|
@@ -1651,6 +1737,9 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1651
1737
|
if lhs.allowedToolsJson != rhs.allowedToolsJson {
|
|
1652
1738
|
return false
|
|
1653
1739
|
}
|
|
1740
|
+
if lhs.priorMessagesJson != rhs.priorMessagesJson {
|
|
1741
|
+
return false
|
|
1742
|
+
}
|
|
1654
1743
|
return true
|
|
1655
1744
|
}
|
|
1656
1745
|
|
|
@@ -1662,6 +1751,7 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1662
1751
|
hasher.combine(systemPrompt)
|
|
1663
1752
|
hasher.combine(maxTurns)
|
|
1664
1753
|
hasher.combine(allowedToolsJson)
|
|
1754
|
+
hasher.combine(priorMessagesJson)
|
|
1665
1755
|
}
|
|
1666
1756
|
}
|
|
1667
1757
|
|
|
@@ -1679,7 +1769,8 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1679
1769
|
provider: FfiConverterOptionString.read(from: &buf),
|
|
1680
1770
|
systemPrompt: FfiConverterString.read(from: &buf),
|
|
1681
1771
|
maxTurns: FfiConverterOptionUInt32.read(from: &buf),
|
|
1682
|
-
allowedToolsJson: FfiConverterOptionString.read(from: &buf)
|
|
1772
|
+
allowedToolsJson: FfiConverterOptionString.read(from: &buf),
|
|
1773
|
+
priorMessagesJson: FfiConverterOptionString.read(from: &buf)
|
|
1683
1774
|
)
|
|
1684
1775
|
}
|
|
1685
1776
|
|
|
@@ -1691,6 +1782,7 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1691
1782
|
FfiConverterString.write(value.systemPrompt, into: &buf)
|
|
1692
1783
|
FfiConverterOptionUInt32.write(value.maxTurns, into: &buf)
|
|
1693
1784
|
FfiConverterOptionString.write(value.allowedToolsJson, into: &buf)
|
|
1785
|
+
FfiConverterOptionString.write(value.priorMessagesJson, into: &buf)
|
|
1694
1786
|
}
|
|
1695
1787
|
}
|
|
1696
1788
|
|
|
@@ -2480,9 +2572,15 @@ private var initializationResult: InitializationResult = {
|
|
|
2480
2572
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills() != 14677) {
|
|
2481
2573
|
return InitializationResult.apiChecksumMismatch
|
|
2482
2574
|
}
|
|
2575
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions() != 48713) {
|
|
2576
|
+
return InitializationResult.apiChecksumMismatch
|
|
2577
|
+
}
|
|
2483
2578
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session() != 39832) {
|
|
2484
2579
|
return InitializationResult.apiChecksumMismatch
|
|
2485
2580
|
}
|
|
2581
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages() != 38563) {
|
|
2582
|
+
return InitializationResult.apiChecksumMismatch
|
|
2583
|
+
}
|
|
2486
2584
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config() != 63110) {
|
|
2487
2585
|
return InitializationResult.apiChecksumMismatch
|
|
2488
2586
|
}
|
|
@@ -2495,6 +2593,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2495
2593
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill() != 49129) {
|
|
2496
2594
|
return InitializationResult.apiChecksumMismatch
|
|
2497
2595
|
}
|
|
2596
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions() != 15060) {
|
|
2597
|
+
return InitializationResult.apiChecksumMismatch
|
|
2598
|
+
}
|
|
2498
2599
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 3194) {
|
|
2499
2600
|
return InitializationResult.apiChecksumMismatch
|
|
2500
2601
|
}
|
|
@@ -2513,6 +2614,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2513
2614
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job() != 11263) {
|
|
2514
2615
|
return InitializationResult.apiChecksumMismatch
|
|
2515
2616
|
}
|
|
2617
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions() != 39225) {
|
|
2618
|
+
return InitializationResult.apiChecksumMismatch
|
|
2619
|
+
}
|
|
2516
2620
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_send_message() != 53296) {
|
|
2517
2621
|
return InitializationResult.apiChecksumMismatch
|
|
2518
2622
|
}
|
|
@@ -2534,6 +2638,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2534
2638
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config() != 18609) {
|
|
2535
2639
|
return InitializationResult.apiChecksumMismatch
|
|
2536
2640
|
}
|
|
2641
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission() != 8407) {
|
|
2642
|
+
return InitializationResult.apiChecksumMismatch
|
|
2643
|
+
}
|
|
2537
2644
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 53972) {
|
|
2538
2645
|
return InitializationResult.apiChecksumMismatch
|
|
2539
2646
|
}
|
|
@@ -438,11 +438,21 @@ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_sessions(voi
|
|
|
438
438
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
439
439
|
);
|
|
440
440
|
#endif
|
|
441
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
442
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
443
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
444
|
+
);
|
|
445
|
+
#endif
|
|
441
446
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
442
447
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
443
448
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(void*_Nonnull ptr, RustBuffer session_key, RustCallStatus *_Nonnull out_status
|
|
444
449
|
);
|
|
445
450
|
#endif
|
|
451
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
452
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
453
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(void*_Nonnull ptr, int64_t limit, RustCallStatus *_Nonnull out_status
|
|
454
|
+
);
|
|
455
|
+
#endif
|
|
446
456
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
447
457
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
448
458
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
@@ -463,6 +473,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_cron_job(void*_N
|
|
|
463
473
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_skill(void*_Nonnull ptr, RustBuffer id, RustCallStatus *_Nonnull out_status
|
|
464
474
|
);
|
|
465
475
|
#endif
|
|
476
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
477
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
478
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
479
|
+
);
|
|
480
|
+
#endif
|
|
466
481
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
467
482
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
468
483
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer tool_call_id, int8_t approved, RustBuffer reason, RustCallStatus *_Nonnull out_status
|
|
@@ -493,6 +508,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_No
|
|
|
493
508
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_run_cron_job(void*_Nonnull ptr, RustBuffer job_id, RustCallStatus *_Nonnull out_status
|
|
494
509
|
);
|
|
495
510
|
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
512
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
513
|
+
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(void*_Nonnull ptr, RustBuffer defaults_json, RustCallStatus *_Nonnull out_status
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
496
516
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
497
517
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
498
518
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_send_message(void*_Nonnull ptr, RustBuffer params, RustCallStatus *_Nonnull out_status
|
|
@@ -528,6 +548,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonn
|
|
|
528
548
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
529
549
|
);
|
|
530
550
|
#endif
|
|
551
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
552
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
553
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(void*_Nonnull ptr, RustBuffer tool_name, RustBuffer permission, int8_t enabled, RustCallStatus *_Nonnull out_status
|
|
554
|
+
);
|
|
555
|
+
#endif
|
|
531
556
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
532
557
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
533
558
|
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
|
|
@@ -982,12 +1007,24 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_sessions
|
|
|
982
1007
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_SKILLS
|
|
983
1008
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills(void
|
|
984
1009
|
|
|
1010
|
+
);
|
|
1011
|
+
#endif
|
|
1012
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1013
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1014
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions(void
|
|
1015
|
+
|
|
985
1016
|
);
|
|
986
1017
|
#endif
|
|
987
1018
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
988
1019
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
989
1020
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(void
|
|
990
1021
|
|
|
1022
|
+
);
|
|
1023
|
+
#endif
|
|
1024
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1025
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1026
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages(void
|
|
1027
|
+
|
|
991
1028
|
);
|
|
992
1029
|
#endif
|
|
993
1030
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
@@ -1012,6 +1049,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_cron_j
|
|
|
1012
1049
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_REMOVE_SKILL
|
|
1013
1050
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill(void
|
|
1014
1051
|
|
|
1052
|
+
);
|
|
1053
|
+
#endif
|
|
1054
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1055
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1056
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions(void
|
|
1057
|
+
|
|
1015
1058
|
);
|
|
1016
1059
|
#endif
|
|
1017
1060
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
@@ -1048,6 +1091,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_sessio
|
|
|
1048
1091
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RUN_CRON_JOB
|
|
1049
1092
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job(void
|
|
1050
1093
|
|
|
1094
|
+
);
|
|
1095
|
+
#endif
|
|
1096
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1097
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1098
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions(void
|
|
1099
|
+
|
|
1051
1100
|
);
|
|
1052
1101
|
#endif
|
|
1053
1102
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
@@ -1090,6 +1139,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier(
|
|
|
1090
1139
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
|
|
1091
1140
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config(void
|
|
1092
1141
|
|
|
1142
|
+
);
|
|
1143
|
+
#endif
|
|
1144
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1145
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1146
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission(void
|
|
1147
|
+
|
|
1093
1148
|
);
|
|
1094
1149
|
#endif
|
|
1095
1150
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
@@ -598,11 +598,21 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
598
598
|
*/
|
|
599
599
|
func listSkills() throws -> String
|
|
600
600
|
|
|
601
|
+
/**
|
|
602
|
+
* List all tool permissions as JSON array.
|
|
603
|
+
*/
|
|
604
|
+
func listToolPermissions() throws -> String
|
|
605
|
+
|
|
601
606
|
/**
|
|
602
607
|
* Load session message history.
|
|
603
608
|
*/
|
|
604
609
|
func loadSession(sessionKey: String) throws -> String
|
|
605
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Load surfaced messages from background/cron jobs.
|
|
613
|
+
*/
|
|
614
|
+
func loadSurfacedMessages(limit: Int64) throws -> String
|
|
615
|
+
|
|
606
616
|
func persistConfig() throws
|
|
607
617
|
|
|
608
618
|
/**
|
|
@@ -620,6 +630,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
620
630
|
*/
|
|
621
631
|
func removeSkill(id: String) throws
|
|
622
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
635
|
+
*/
|
|
636
|
+
func resetToolPermissions() throws
|
|
637
|
+
|
|
623
638
|
/**
|
|
624
639
|
* Respond to a tool approval request.
|
|
625
640
|
*/
|
|
@@ -650,6 +665,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
650
665
|
*/
|
|
651
666
|
func runCronJob(jobId: String) throws
|
|
652
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
670
|
+
*/
|
|
671
|
+
func seedToolPermissions(defaultsJson: String) throws -> UInt32
|
|
672
|
+
|
|
653
673
|
/**
|
|
654
674
|
* Send a message to the agent and start an agent loop turn.
|
|
655
675
|
*/
|
|
@@ -679,6 +699,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
679
699
|
*/
|
|
680
700
|
func setSchedulerConfig(configJson: String) throws
|
|
681
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Set a single tool's permission (upsert).
|
|
704
|
+
*/
|
|
705
|
+
func setToolPermission(toolName: String, permission: String, enabled: Bool) throws
|
|
706
|
+
|
|
682
707
|
/**
|
|
683
708
|
* Start MCP server with given tools.
|
|
684
709
|
*/
|
|
@@ -971,6 +996,16 @@ open func listSkills()throws -> String {
|
|
|
971
996
|
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(self.uniffiClonePointer(),$0
|
|
972
997
|
)
|
|
973
998
|
})
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* List all tool permissions as JSON array.
|
|
1003
|
+
*/
|
|
1004
|
+
open func listToolPermissions()throws -> String {
|
|
1005
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1006
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(self.uniffiClonePointer(),$0
|
|
1007
|
+
)
|
|
1008
|
+
})
|
|
974
1009
|
}
|
|
975
1010
|
|
|
976
1011
|
/**
|
|
@@ -982,6 +1017,17 @@ open func loadSession(sessionKey: String)throws -> String {
|
|
|
982
1017
|
FfiConverterString.lower(sessionKey),$0
|
|
983
1018
|
)
|
|
984
1019
|
})
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Load surfaced messages from background/cron jobs.
|
|
1024
|
+
*/
|
|
1025
|
+
open func loadSurfacedMessages(limit: Int64)throws -> String {
|
|
1026
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1027
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(self.uniffiClonePointer(),
|
|
1028
|
+
FfiConverterInt64.lower(limit),$0
|
|
1029
|
+
)
|
|
1030
|
+
})
|
|
985
1031
|
}
|
|
986
1032
|
|
|
987
1033
|
open func persistConfig()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
@@ -1019,6 +1065,15 @@ open func removeSkill(id: String)throws {try rustCallWithError(FfiConverterType
|
|
|
1019
1065
|
FfiConverterString.lower(id),$0
|
|
1020
1066
|
)
|
|
1021
1067
|
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
1072
|
+
*/
|
|
1073
|
+
open func resetToolPermissions()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1074
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(self.uniffiClonePointer(),$0
|
|
1075
|
+
)
|
|
1076
|
+
}
|
|
1022
1077
|
}
|
|
1023
1078
|
|
|
1024
1079
|
/**
|
|
@@ -1089,6 +1144,17 @@ open func runCronJob(jobId: String)throws {try rustCallWithError(FfiConverterTy
|
|
|
1089
1144
|
FfiConverterString.lower(jobId),$0
|
|
1090
1145
|
)
|
|
1091
1146
|
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
1151
|
+
*/
|
|
1152
|
+
open func seedToolPermissions(defaultsJson: String)throws -> UInt32 {
|
|
1153
|
+
return try FfiConverterUInt32.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1154
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(self.uniffiClonePointer(),
|
|
1155
|
+
FfiConverterString.lower(defaultsJson),$0
|
|
1156
|
+
)
|
|
1157
|
+
})
|
|
1092
1158
|
}
|
|
1093
1159
|
|
|
1094
1160
|
/**
|
|
@@ -1156,6 +1222,18 @@ open func setSchedulerConfig(configJson: String)throws {try rustCallWithError(F
|
|
|
1156
1222
|
FfiConverterString.lower(configJson),$0
|
|
1157
1223
|
)
|
|
1158
1224
|
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Set a single tool's permission (upsert).
|
|
1229
|
+
*/
|
|
1230
|
+
open func setToolPermission(toolName: String, permission: String, enabled: Bool)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1231
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(self.uniffiClonePointer(),
|
|
1232
|
+
FfiConverterString.lower(toolName),
|
|
1233
|
+
FfiConverterString.lower(permission),
|
|
1234
|
+
FfiConverterBool.lower(enabled),$0
|
|
1235
|
+
)
|
|
1236
|
+
}
|
|
1159
1237
|
}
|
|
1160
1238
|
|
|
1161
1239
|
/**
|
|
@@ -1609,13 +1687,20 @@ public struct SendMessageParams {
|
|
|
1609
1687
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1610
1688
|
*/
|
|
1611
1689
|
public var allowedToolsJson: String?
|
|
1690
|
+
/**
|
|
1691
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1692
|
+
*/
|
|
1693
|
+
public var priorMessagesJson: String?
|
|
1612
1694
|
|
|
1613
1695
|
// Default memberwise initializers are never public by default, so we
|
|
1614
1696
|
// declare one manually.
|
|
1615
1697
|
public init(prompt: String, sessionKey: String, model: String?, provider: String?, systemPrompt: String, maxTurns: UInt32?,
|
|
1616
1698
|
/**
|
|
1617
1699
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1618
|
-
*/allowedToolsJson: String
|
|
1700
|
+
*/allowedToolsJson: String?,
|
|
1701
|
+
/**
|
|
1702
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1703
|
+
*/priorMessagesJson: String?) {
|
|
1619
1704
|
self.prompt = prompt
|
|
1620
1705
|
self.sessionKey = sessionKey
|
|
1621
1706
|
self.model = model
|
|
@@ -1623,6 +1708,7 @@ public struct SendMessageParams {
|
|
|
1623
1708
|
self.systemPrompt = systemPrompt
|
|
1624
1709
|
self.maxTurns = maxTurns
|
|
1625
1710
|
self.allowedToolsJson = allowedToolsJson
|
|
1711
|
+
self.priorMessagesJson = priorMessagesJson
|
|
1626
1712
|
}
|
|
1627
1713
|
}
|
|
1628
1714
|
|
|
@@ -1651,6 +1737,9 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1651
1737
|
if lhs.allowedToolsJson != rhs.allowedToolsJson {
|
|
1652
1738
|
return false
|
|
1653
1739
|
}
|
|
1740
|
+
if lhs.priorMessagesJson != rhs.priorMessagesJson {
|
|
1741
|
+
return false
|
|
1742
|
+
}
|
|
1654
1743
|
return true
|
|
1655
1744
|
}
|
|
1656
1745
|
|
|
@@ -1662,6 +1751,7 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1662
1751
|
hasher.combine(systemPrompt)
|
|
1663
1752
|
hasher.combine(maxTurns)
|
|
1664
1753
|
hasher.combine(allowedToolsJson)
|
|
1754
|
+
hasher.combine(priorMessagesJson)
|
|
1665
1755
|
}
|
|
1666
1756
|
}
|
|
1667
1757
|
|
|
@@ -1679,7 +1769,8 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1679
1769
|
provider: FfiConverterOptionString.read(from: &buf),
|
|
1680
1770
|
systemPrompt: FfiConverterString.read(from: &buf),
|
|
1681
1771
|
maxTurns: FfiConverterOptionUInt32.read(from: &buf),
|
|
1682
|
-
allowedToolsJson: FfiConverterOptionString.read(from: &buf)
|
|
1772
|
+
allowedToolsJson: FfiConverterOptionString.read(from: &buf),
|
|
1773
|
+
priorMessagesJson: FfiConverterOptionString.read(from: &buf)
|
|
1683
1774
|
)
|
|
1684
1775
|
}
|
|
1685
1776
|
|
|
@@ -1691,6 +1782,7 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1691
1782
|
FfiConverterString.write(value.systemPrompt, into: &buf)
|
|
1692
1783
|
FfiConverterOptionUInt32.write(value.maxTurns, into: &buf)
|
|
1693
1784
|
FfiConverterOptionString.write(value.allowedToolsJson, into: &buf)
|
|
1785
|
+
FfiConverterOptionString.write(value.priorMessagesJson, into: &buf)
|
|
1694
1786
|
}
|
|
1695
1787
|
}
|
|
1696
1788
|
|
|
@@ -2480,9 +2572,15 @@ private var initializationResult: InitializationResult = {
|
|
|
2480
2572
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills() != 14677) {
|
|
2481
2573
|
return InitializationResult.apiChecksumMismatch
|
|
2482
2574
|
}
|
|
2575
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions() != 48713) {
|
|
2576
|
+
return InitializationResult.apiChecksumMismatch
|
|
2577
|
+
}
|
|
2483
2578
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session() != 39832) {
|
|
2484
2579
|
return InitializationResult.apiChecksumMismatch
|
|
2485
2580
|
}
|
|
2581
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages() != 38563) {
|
|
2582
|
+
return InitializationResult.apiChecksumMismatch
|
|
2583
|
+
}
|
|
2486
2584
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config() != 63110) {
|
|
2487
2585
|
return InitializationResult.apiChecksumMismatch
|
|
2488
2586
|
}
|
|
@@ -2495,6 +2593,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2495
2593
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill() != 49129) {
|
|
2496
2594
|
return InitializationResult.apiChecksumMismatch
|
|
2497
2595
|
}
|
|
2596
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions() != 15060) {
|
|
2597
|
+
return InitializationResult.apiChecksumMismatch
|
|
2598
|
+
}
|
|
2498
2599
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 3194) {
|
|
2499
2600
|
return InitializationResult.apiChecksumMismatch
|
|
2500
2601
|
}
|
|
@@ -2513,6 +2614,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2513
2614
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job() != 11263) {
|
|
2514
2615
|
return InitializationResult.apiChecksumMismatch
|
|
2515
2616
|
}
|
|
2617
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions() != 39225) {
|
|
2618
|
+
return InitializationResult.apiChecksumMismatch
|
|
2619
|
+
}
|
|
2516
2620
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_send_message() != 53296) {
|
|
2517
2621
|
return InitializationResult.apiChecksumMismatch
|
|
2518
2622
|
}
|
|
@@ -2534,6 +2638,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2534
2638
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config() != 18609) {
|
|
2535
2639
|
return InitializationResult.apiChecksumMismatch
|
|
2536
2640
|
}
|
|
2641
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission() != 8407) {
|
|
2642
|
+
return InitializationResult.apiChecksumMismatch
|
|
2643
|
+
}
|
|
2537
2644
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 53972) {
|
|
2538
2645
|
return InitializationResult.apiChecksumMismatch
|
|
2539
2646
|
}
|
|
@@ -438,11 +438,21 @@ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_sessions(voi
|
|
|
438
438
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
439
439
|
);
|
|
440
440
|
#endif
|
|
441
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
442
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
443
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
444
|
+
);
|
|
445
|
+
#endif
|
|
441
446
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
442
447
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
443
448
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(void*_Nonnull ptr, RustBuffer session_key, RustCallStatus *_Nonnull out_status
|
|
444
449
|
);
|
|
445
450
|
#endif
|
|
451
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
452
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
453
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(void*_Nonnull ptr, int64_t limit, RustCallStatus *_Nonnull out_status
|
|
454
|
+
);
|
|
455
|
+
#endif
|
|
446
456
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
447
457
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
448
458
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
@@ -463,6 +473,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_cron_job(void*_N
|
|
|
463
473
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_skill(void*_Nonnull ptr, RustBuffer id, RustCallStatus *_Nonnull out_status
|
|
464
474
|
);
|
|
465
475
|
#endif
|
|
476
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
477
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
478
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
479
|
+
);
|
|
480
|
+
#endif
|
|
466
481
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
467
482
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
468
483
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer tool_call_id, int8_t approved, RustBuffer reason, RustCallStatus *_Nonnull out_status
|
|
@@ -493,6 +508,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_No
|
|
|
493
508
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_run_cron_job(void*_Nonnull ptr, RustBuffer job_id, RustCallStatus *_Nonnull out_status
|
|
494
509
|
);
|
|
495
510
|
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
512
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
513
|
+
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(void*_Nonnull ptr, RustBuffer defaults_json, RustCallStatus *_Nonnull out_status
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
496
516
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
497
517
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
498
518
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_send_message(void*_Nonnull ptr, RustBuffer params, RustCallStatus *_Nonnull out_status
|
|
@@ -528,6 +548,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonn
|
|
|
528
548
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
529
549
|
);
|
|
530
550
|
#endif
|
|
551
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
552
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
553
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(void*_Nonnull ptr, RustBuffer tool_name, RustBuffer permission, int8_t enabled, RustCallStatus *_Nonnull out_status
|
|
554
|
+
);
|
|
555
|
+
#endif
|
|
531
556
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
532
557
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
533
558
|
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
|
|
@@ -982,12 +1007,24 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_sessions
|
|
|
982
1007
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_SKILLS
|
|
983
1008
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills(void
|
|
984
1009
|
|
|
1010
|
+
);
|
|
1011
|
+
#endif
|
|
1012
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1013
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1014
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions(void
|
|
1015
|
+
|
|
985
1016
|
);
|
|
986
1017
|
#endif
|
|
987
1018
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
988
1019
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
989
1020
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(void
|
|
990
1021
|
|
|
1022
|
+
);
|
|
1023
|
+
#endif
|
|
1024
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1025
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1026
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages(void
|
|
1027
|
+
|
|
991
1028
|
);
|
|
992
1029
|
#endif
|
|
993
1030
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
@@ -1012,6 +1049,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_cron_j
|
|
|
1012
1049
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_REMOVE_SKILL
|
|
1013
1050
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill(void
|
|
1014
1051
|
|
|
1052
|
+
);
|
|
1053
|
+
#endif
|
|
1054
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1055
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1056
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions(void
|
|
1057
|
+
|
|
1015
1058
|
);
|
|
1016
1059
|
#endif
|
|
1017
1060
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
@@ -1048,6 +1091,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_sessio
|
|
|
1048
1091
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RUN_CRON_JOB
|
|
1049
1092
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job(void
|
|
1050
1093
|
|
|
1094
|
+
);
|
|
1095
|
+
#endif
|
|
1096
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1097
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1098
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions(void
|
|
1099
|
+
|
|
1051
1100
|
);
|
|
1052
1101
|
#endif
|
|
1053
1102
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
@@ -1090,6 +1139,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier(
|
|
|
1090
1139
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
|
|
1091
1140
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config(void
|
|
1092
1141
|
|
|
1142
|
+
);
|
|
1143
|
+
#endif
|
|
1144
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1145
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1146
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission(void
|
|
1147
|
+
|
|
1093
1148
|
);
|
|
1094
1149
|
#endif
|
|
1095
1150
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
@@ -598,11 +598,21 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
598
598
|
*/
|
|
599
599
|
func listSkills() throws -> String
|
|
600
600
|
|
|
601
|
+
/**
|
|
602
|
+
* List all tool permissions as JSON array.
|
|
603
|
+
*/
|
|
604
|
+
func listToolPermissions() throws -> String
|
|
605
|
+
|
|
601
606
|
/**
|
|
602
607
|
* Load session message history.
|
|
603
608
|
*/
|
|
604
609
|
func loadSession(sessionKey: String) throws -> String
|
|
605
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Load surfaced messages from background/cron jobs.
|
|
613
|
+
*/
|
|
614
|
+
func loadSurfacedMessages(limit: Int64) throws -> String
|
|
615
|
+
|
|
606
616
|
func persistConfig() throws
|
|
607
617
|
|
|
608
618
|
/**
|
|
@@ -620,6 +630,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
620
630
|
*/
|
|
621
631
|
func removeSkill(id: String) throws
|
|
622
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
635
|
+
*/
|
|
636
|
+
func resetToolPermissions() throws
|
|
637
|
+
|
|
623
638
|
/**
|
|
624
639
|
* Respond to a tool approval request.
|
|
625
640
|
*/
|
|
@@ -650,6 +665,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
650
665
|
*/
|
|
651
666
|
func runCronJob(jobId: String) throws
|
|
652
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
670
|
+
*/
|
|
671
|
+
func seedToolPermissions(defaultsJson: String) throws -> UInt32
|
|
672
|
+
|
|
653
673
|
/**
|
|
654
674
|
* Send a message to the agent and start an agent loop turn.
|
|
655
675
|
*/
|
|
@@ -679,6 +699,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
679
699
|
*/
|
|
680
700
|
func setSchedulerConfig(configJson: String) throws
|
|
681
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Set a single tool's permission (upsert).
|
|
704
|
+
*/
|
|
705
|
+
func setToolPermission(toolName: String, permission: String, enabled: Bool) throws
|
|
706
|
+
|
|
682
707
|
/**
|
|
683
708
|
* Start MCP server with given tools.
|
|
684
709
|
*/
|
|
@@ -971,6 +996,16 @@ open func listSkills()throws -> String {
|
|
|
971
996
|
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(self.uniffiClonePointer(),$0
|
|
972
997
|
)
|
|
973
998
|
})
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* List all tool permissions as JSON array.
|
|
1003
|
+
*/
|
|
1004
|
+
open func listToolPermissions()throws -> String {
|
|
1005
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1006
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(self.uniffiClonePointer(),$0
|
|
1007
|
+
)
|
|
1008
|
+
})
|
|
974
1009
|
}
|
|
975
1010
|
|
|
976
1011
|
/**
|
|
@@ -982,6 +1017,17 @@ open func loadSession(sessionKey: String)throws -> String {
|
|
|
982
1017
|
FfiConverterString.lower(sessionKey),$0
|
|
983
1018
|
)
|
|
984
1019
|
})
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Load surfaced messages from background/cron jobs.
|
|
1024
|
+
*/
|
|
1025
|
+
open func loadSurfacedMessages(limit: Int64)throws -> String {
|
|
1026
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1027
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(self.uniffiClonePointer(),
|
|
1028
|
+
FfiConverterInt64.lower(limit),$0
|
|
1029
|
+
)
|
|
1030
|
+
})
|
|
985
1031
|
}
|
|
986
1032
|
|
|
987
1033
|
open func persistConfig()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
@@ -1019,6 +1065,15 @@ open func removeSkill(id: String)throws {try rustCallWithError(FfiConverterType
|
|
|
1019
1065
|
FfiConverterString.lower(id),$0
|
|
1020
1066
|
)
|
|
1021
1067
|
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Delete all tool permissions (reset to defaults on next seed).
|
|
1072
|
+
*/
|
|
1073
|
+
open func resetToolPermissions()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1074
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(self.uniffiClonePointer(),$0
|
|
1075
|
+
)
|
|
1076
|
+
}
|
|
1022
1077
|
}
|
|
1023
1078
|
|
|
1024
1079
|
/**
|
|
@@ -1089,6 +1144,17 @@ open func runCronJob(jobId: String)throws {try rustCallWithError(FfiConverterTy
|
|
|
1089
1144
|
FfiConverterString.lower(jobId),$0
|
|
1090
1145
|
)
|
|
1091
1146
|
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Seed tool permissions from defaults. INSERT OR IGNORE preserves user overrides.
|
|
1151
|
+
*/
|
|
1152
|
+
open func seedToolPermissions(defaultsJson: String)throws -> UInt32 {
|
|
1153
|
+
return try FfiConverterUInt32.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1154
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(self.uniffiClonePointer(),
|
|
1155
|
+
FfiConverterString.lower(defaultsJson),$0
|
|
1156
|
+
)
|
|
1157
|
+
})
|
|
1092
1158
|
}
|
|
1093
1159
|
|
|
1094
1160
|
/**
|
|
@@ -1156,6 +1222,18 @@ open func setSchedulerConfig(configJson: String)throws {try rustCallWithError(F
|
|
|
1156
1222
|
FfiConverterString.lower(configJson),$0
|
|
1157
1223
|
)
|
|
1158
1224
|
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Set a single tool's permission (upsert).
|
|
1229
|
+
*/
|
|
1230
|
+
open func setToolPermission(toolName: String, permission: String, enabled: Bool)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1231
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(self.uniffiClonePointer(),
|
|
1232
|
+
FfiConverterString.lower(toolName),
|
|
1233
|
+
FfiConverterString.lower(permission),
|
|
1234
|
+
FfiConverterBool.lower(enabled),$0
|
|
1235
|
+
)
|
|
1236
|
+
}
|
|
1159
1237
|
}
|
|
1160
1238
|
|
|
1161
1239
|
/**
|
|
@@ -1609,13 +1687,20 @@ public struct SendMessageParams {
|
|
|
1609
1687
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1610
1688
|
*/
|
|
1611
1689
|
public var allowedToolsJson: String?
|
|
1690
|
+
/**
|
|
1691
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1692
|
+
*/
|
|
1693
|
+
public var priorMessagesJson: String?
|
|
1612
1694
|
|
|
1613
1695
|
// Default memberwise initializers are never public by default, so we
|
|
1614
1696
|
// declare one manually.
|
|
1615
1697
|
public init(prompt: String, sessionKey: String, model: String?, provider: String?, systemPrompt: String, maxTurns: UInt32?,
|
|
1616
1698
|
/**
|
|
1617
1699
|
* JSON-encoded list of allowed tool names. Empty = all tools.
|
|
1618
|
-
*/allowedToolsJson: String
|
|
1700
|
+
*/allowedToolsJson: String?,
|
|
1701
|
+
/**
|
|
1702
|
+
* JSON-encoded prior conversation messages for multi-turn sessions.
|
|
1703
|
+
*/priorMessagesJson: String?) {
|
|
1619
1704
|
self.prompt = prompt
|
|
1620
1705
|
self.sessionKey = sessionKey
|
|
1621
1706
|
self.model = model
|
|
@@ -1623,6 +1708,7 @@ public struct SendMessageParams {
|
|
|
1623
1708
|
self.systemPrompt = systemPrompt
|
|
1624
1709
|
self.maxTurns = maxTurns
|
|
1625
1710
|
self.allowedToolsJson = allowedToolsJson
|
|
1711
|
+
self.priorMessagesJson = priorMessagesJson
|
|
1626
1712
|
}
|
|
1627
1713
|
}
|
|
1628
1714
|
|
|
@@ -1651,6 +1737,9 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1651
1737
|
if lhs.allowedToolsJson != rhs.allowedToolsJson {
|
|
1652
1738
|
return false
|
|
1653
1739
|
}
|
|
1740
|
+
if lhs.priorMessagesJson != rhs.priorMessagesJson {
|
|
1741
|
+
return false
|
|
1742
|
+
}
|
|
1654
1743
|
return true
|
|
1655
1744
|
}
|
|
1656
1745
|
|
|
@@ -1662,6 +1751,7 @@ extension SendMessageParams: Equatable, Hashable {
|
|
|
1662
1751
|
hasher.combine(systemPrompt)
|
|
1663
1752
|
hasher.combine(maxTurns)
|
|
1664
1753
|
hasher.combine(allowedToolsJson)
|
|
1754
|
+
hasher.combine(priorMessagesJson)
|
|
1665
1755
|
}
|
|
1666
1756
|
}
|
|
1667
1757
|
|
|
@@ -1679,7 +1769,8 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1679
1769
|
provider: FfiConverterOptionString.read(from: &buf),
|
|
1680
1770
|
systemPrompt: FfiConverterString.read(from: &buf),
|
|
1681
1771
|
maxTurns: FfiConverterOptionUInt32.read(from: &buf),
|
|
1682
|
-
allowedToolsJson: FfiConverterOptionString.read(from: &buf)
|
|
1772
|
+
allowedToolsJson: FfiConverterOptionString.read(from: &buf),
|
|
1773
|
+
priorMessagesJson: FfiConverterOptionString.read(from: &buf)
|
|
1683
1774
|
)
|
|
1684
1775
|
}
|
|
1685
1776
|
|
|
@@ -1691,6 +1782,7 @@ public struct FfiConverterTypeSendMessageParams: FfiConverterRustBuffer {
|
|
|
1691
1782
|
FfiConverterString.write(value.systemPrompt, into: &buf)
|
|
1692
1783
|
FfiConverterOptionUInt32.write(value.maxTurns, into: &buf)
|
|
1693
1784
|
FfiConverterOptionString.write(value.allowedToolsJson, into: &buf)
|
|
1785
|
+
FfiConverterOptionString.write(value.priorMessagesJson, into: &buf)
|
|
1694
1786
|
}
|
|
1695
1787
|
}
|
|
1696
1788
|
|
|
@@ -2480,9 +2572,15 @@ private var initializationResult: InitializationResult = {
|
|
|
2480
2572
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills() != 14677) {
|
|
2481
2573
|
return InitializationResult.apiChecksumMismatch
|
|
2482
2574
|
}
|
|
2575
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions() != 48713) {
|
|
2576
|
+
return InitializationResult.apiChecksumMismatch
|
|
2577
|
+
}
|
|
2483
2578
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session() != 39832) {
|
|
2484
2579
|
return InitializationResult.apiChecksumMismatch
|
|
2485
2580
|
}
|
|
2581
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages() != 38563) {
|
|
2582
|
+
return InitializationResult.apiChecksumMismatch
|
|
2583
|
+
}
|
|
2486
2584
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config() != 63110) {
|
|
2487
2585
|
return InitializationResult.apiChecksumMismatch
|
|
2488
2586
|
}
|
|
@@ -2495,6 +2593,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2495
2593
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill() != 49129) {
|
|
2496
2594
|
return InitializationResult.apiChecksumMismatch
|
|
2497
2595
|
}
|
|
2596
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions() != 15060) {
|
|
2597
|
+
return InitializationResult.apiChecksumMismatch
|
|
2598
|
+
}
|
|
2498
2599
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 3194) {
|
|
2499
2600
|
return InitializationResult.apiChecksumMismatch
|
|
2500
2601
|
}
|
|
@@ -2513,6 +2614,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2513
2614
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job() != 11263) {
|
|
2514
2615
|
return InitializationResult.apiChecksumMismatch
|
|
2515
2616
|
}
|
|
2617
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions() != 39225) {
|
|
2618
|
+
return InitializationResult.apiChecksumMismatch
|
|
2619
|
+
}
|
|
2516
2620
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_send_message() != 53296) {
|
|
2517
2621
|
return InitializationResult.apiChecksumMismatch
|
|
2518
2622
|
}
|
|
@@ -2534,6 +2638,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2534
2638
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config() != 18609) {
|
|
2535
2639
|
return InitializationResult.apiChecksumMismatch
|
|
2536
2640
|
}
|
|
2641
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission() != 8407) {
|
|
2642
|
+
return InitializationResult.apiChecksumMismatch
|
|
2643
|
+
}
|
|
2537
2644
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 53972) {
|
|
2538
2645
|
return InitializationResult.apiChecksumMismatch
|
|
2539
2646
|
}
|
|
@@ -438,11 +438,21 @@ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_sessions(voi
|
|
|
438
438
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
439
439
|
);
|
|
440
440
|
#endif
|
|
441
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
442
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
443
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
444
|
+
);
|
|
445
|
+
#endif
|
|
441
446
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
442
447
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
443
448
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(void*_Nonnull ptr, RustBuffer session_key, RustCallStatus *_Nonnull out_status
|
|
444
449
|
);
|
|
445
450
|
#endif
|
|
451
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
452
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
453
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_surfaced_messages(void*_Nonnull ptr, int64_t limit, RustCallStatus *_Nonnull out_status
|
|
454
|
+
);
|
|
455
|
+
#endif
|
|
446
456
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
447
457
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
448
458
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
@@ -463,6 +473,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_cron_job(void*_N
|
|
|
463
473
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_skill(void*_Nonnull ptr, RustBuffer id, RustCallStatus *_Nonnull out_status
|
|
464
474
|
);
|
|
465
475
|
#endif
|
|
476
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
477
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
478
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_reset_tool_permissions(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
479
|
+
);
|
|
480
|
+
#endif
|
|
466
481
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
467
482
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
468
483
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer tool_call_id, int8_t approved, RustBuffer reason, RustCallStatus *_Nonnull out_status
|
|
@@ -493,6 +508,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_No
|
|
|
493
508
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_run_cron_job(void*_Nonnull ptr, RustBuffer job_id, RustCallStatus *_Nonnull out_status
|
|
494
509
|
);
|
|
495
510
|
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
512
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
513
|
+
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_seed_tool_permissions(void*_Nonnull ptr, RustBuffer defaults_json, RustCallStatus *_Nonnull out_status
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
496
516
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
497
517
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
498
518
|
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_send_message(void*_Nonnull ptr, RustBuffer params, RustCallStatus *_Nonnull out_status
|
|
@@ -528,6 +548,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonn
|
|
|
528
548
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
529
549
|
);
|
|
530
550
|
#endif
|
|
551
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
552
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
553
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_tool_permission(void*_Nonnull ptr, RustBuffer tool_name, RustBuffer permission, int8_t enabled, RustCallStatus *_Nonnull out_status
|
|
554
|
+
);
|
|
555
|
+
#endif
|
|
531
556
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
532
557
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
|
|
533
558
|
uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
|
|
@@ -982,12 +1007,24 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_sessions
|
|
|
982
1007
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_SKILLS
|
|
983
1008
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills(void
|
|
984
1009
|
|
|
1010
|
+
);
|
|
1011
|
+
#endif
|
|
1012
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1013
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LIST_TOOL_PERMISSIONS
|
|
1014
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_tool_permissions(void
|
|
1015
|
+
|
|
985
1016
|
);
|
|
986
1017
|
#endif
|
|
987
1018
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
988
1019
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
|
|
989
1020
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(void
|
|
990
1021
|
|
|
1022
|
+
);
|
|
1023
|
+
#endif
|
|
1024
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1025
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SURFACED_MESSAGES
|
|
1026
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_surfaced_messages(void
|
|
1027
|
+
|
|
991
1028
|
);
|
|
992
1029
|
#endif
|
|
993
1030
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
|
|
@@ -1012,6 +1049,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_cron_j
|
|
|
1012
1049
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_REMOVE_SKILL
|
|
1013
1050
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill(void
|
|
1014
1051
|
|
|
1052
|
+
);
|
|
1053
|
+
#endif
|
|
1054
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1055
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESET_TOOL_PERMISSIONS
|
|
1056
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_reset_tool_permissions(void
|
|
1057
|
+
|
|
1015
1058
|
);
|
|
1016
1059
|
#endif
|
|
1017
1060
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
|
|
@@ -1048,6 +1091,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_sessio
|
|
|
1048
1091
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RUN_CRON_JOB
|
|
1049
1092
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job(void
|
|
1050
1093
|
|
|
1094
|
+
);
|
|
1095
|
+
#endif
|
|
1096
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1097
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEED_TOOL_PERMISSIONS
|
|
1098
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_seed_tool_permissions(void
|
|
1099
|
+
|
|
1051
1100
|
);
|
|
1052
1101
|
#endif
|
|
1053
1102
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SEND_MESSAGE
|
|
@@ -1090,6 +1139,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier(
|
|
|
1090
1139
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
|
|
1091
1140
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config(void
|
|
1092
1141
|
|
|
1142
|
+
);
|
|
1143
|
+
#endif
|
|
1144
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1145
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_TOOL_PERMISSION
|
|
1146
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_tool_permission(void
|
|
1147
|
+
|
|
1093
1148
|
);
|
|
1094
1149
|
#endif
|
|
1095
1150
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_START_MCP
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-native-agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Native AI agent loop for Capacitor — runs LLM completions, tool execution, and cron jobs in native Rust, enabling background execution.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|