@ravi-os/sdk 0.260724.1 → 0.260915.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/dist/client.js CHANGED
@@ -58,11 +58,11 @@ export class RaviClient {
58
58
  });
59
59
  },
60
60
  /** Delete an agent */
61
- delete: async (id) => {
61
+ delete: async (id, options) => {
62
62
  return this.transport.call({
63
63
  groupSegments: ["agents"],
64
64
  command: "delete",
65
- body: { id },
65
+ body: { id, ...(options ?? {}) },
66
66
  });
67
67
  },
68
68
  /** List all agents */
@@ -73,6 +73,14 @@ export class RaviClient {
73
73
  body: { ...(options ?? {}) },
74
74
  });
75
75
  },
76
+ /** Set or inspect an agent's generic model-broker profile */
77
+ modelBroker: async (id, options) => {
78
+ return this.transport.call({
79
+ groupSegments: ["agents"],
80
+ command: "model-broker",
81
+ body: { id, ...(options ?? {}) },
82
+ });
83
+ },
76
84
  /** Set or show an agent runtime permission profile */
77
85
  permissions: async (id, profile, options) => {
78
86
  return this.transport.call({
@@ -82,11 +90,11 @@ export class RaviClient {
82
90
  });
83
91
  },
84
92
  /** Reset agent session */
85
- reset: async (id, nameOrKey) => {
93
+ reset: async (id, nameOrKey, options) => {
86
94
  return this.transport.call({
87
95
  groupSegments: ["agents"],
88
96
  command: "reset",
89
- body: { id, nameOrKey },
97
+ body: { id, nameOrKey, ...(options ?? {}) },
90
98
  });
91
99
  },
92
100
  /** Show agent session status */
@@ -180,11 +188,11 @@ export class RaviClient {
180
188
  });
181
189
  },
182
190
  /** Run a Ravi app operation through the runtime app router */
183
- run: async (id, operation, args) => {
191
+ run: async (id, operation, args, options) => {
184
192
  return this.transport.call({
185
193
  groupSegments: ["apps"],
186
194
  command: "run",
187
- body: { id, operation, args },
195
+ body: { id, operation, args, ...(options ?? {}) },
188
196
  });
189
197
  },
190
198
  /** Create a Ravi app scaffold from the app contract */
@@ -398,6 +406,32 @@ export class RaviClient {
398
406
  });
399
407
  }
400
408
  };
409
+ bug = {
410
+ /** List your Console bug reports */
411
+ list: async (options) => {
412
+ return this.transport.call({
413
+ groupSegments: ["bug"],
414
+ command: "list",
415
+ body: { ...(options ?? {}) },
416
+ });
417
+ },
418
+ /** Collect a sanitized bug dossier and submit it to Console (dry-run by default; requires --execute) */
419
+ report: async (options) => {
420
+ return this.transport.call({
421
+ groupSegments: ["bug"],
422
+ command: "report",
423
+ body: { ...(options ?? {}) },
424
+ });
425
+ },
426
+ /** Show one of your Console bug reports */
427
+ status: async (id, options) => {
428
+ return this.transport.call({
429
+ groupSegments: ["bug"],
430
+ command: "status",
431
+ body: { id, ...(options ?? {}) },
432
+ });
433
+ }
434
+ };
401
435
  calendars = {
402
436
  /** Return free/busy availability in a bounded time window */
403
437
  availability: async (options) => {
@@ -499,6 +533,34 @@ export class RaviClient {
499
533
  }
500
534
  };
501
535
  channels = {
536
+ backend: {
537
+ /** Accept one idempotent external channel message into a local agent session */
538
+ ingress: async (agentId, request) => {
539
+ return this.transport.call({
540
+ groupSegments: ["channels", "backend"],
541
+ command: "ingress",
542
+ body: { agentId, request },
543
+ });
544
+ },
545
+ runtime: {
546
+ /** Idempotently request interruption of an accepted channel turn */
547
+ interrupt: async (agentId, request) => {
548
+ return this.transport.call({
549
+ groupSegments: ["channels", "backend", "runtime"],
550
+ command: "interrupt",
551
+ body: { agentId, request },
552
+ });
553
+ },
554
+ /** Read the provider-neutral state of an accepted channel turn */
555
+ readback: async (agentId, request) => {
556
+ return this.transport.call({
557
+ groupSegments: ["channels", "backend", "runtime"],
558
+ command: "readback",
559
+ body: { agentId, request },
560
+ });
561
+ }
562
+ }
563
+ },
502
564
  /** Create or update a native channel config */
503
565
  create: async (name, options) => {
504
566
  return this.transport.call({
@@ -581,6 +643,14 @@ export class RaviClient {
581
643
  body: { ...(options ?? {}) },
582
644
  });
583
645
  },
646
+ /** Ensure one canonical direct chat between an actor and an agent */
647
+ ensure: async (actorId, agentId, clientRequestId) => {
648
+ return this.transport.call({
649
+ groupSegments: ["chats"],
650
+ command: "ensure",
651
+ body: { actorId, agentId, clientRequestId },
652
+ });
653
+ },
584
654
  /** List recent canonical chats */
585
655
  list: async (options) => {
586
656
  return this.transport.call({
@@ -671,6 +741,16 @@ export class RaviClient {
671
741
  });
672
742
  }
673
743
  },
744
+ messages: {
745
+ /** Create one idempotent actor-authored message in a canonical chat */
746
+ create: async (chatId, actorId, clientMessageId, content) => {
747
+ return this.transport.call({
748
+ groupSegments: ["chats", "messages"],
749
+ command: "create",
750
+ body: { chatId, actorId, clientMessageId, content },
751
+ });
752
+ }
753
+ },
674
754
  /** Read messages from one chat */
675
755
  read: async (chat, options) => {
676
756
  return this.transport.call({
@@ -900,11 +980,11 @@ export class RaviClient {
900
980
  });
901
981
  },
902
982
  /** Merge two contacts (move identities from source to target) */
903
- merge: async (source, target) => {
983
+ merge: async (source, target, options) => {
904
984
  return this.transport.call({
905
985
  groupSegments: ["contacts"],
906
986
  command: "merge",
907
- body: { source, target },
987
+ body: { source, target, ...(options ?? {}) },
908
988
  });
909
989
  },
910
990
  /** Show messages attributed to a contact */
@@ -966,11 +1046,11 @@ export class RaviClient {
966
1046
  });
967
1047
  },
968
1048
  /** Remove a contact */
969
- remove: async (contact) => {
1049
+ remove: async (contact, options) => {
970
1050
  return this.transport.call({
971
1051
  groupSegments: ["contacts"],
972
1052
  command: "remove",
973
- body: { contact },
1053
+ body: { contact, ...(options ?? {}) },
974
1054
  });
975
1055
  },
976
1056
  /** Show session summaries attributed to a contact */
@@ -1081,11 +1161,11 @@ export class RaviClient {
1081
1161
  });
1082
1162
  },
1083
1163
  /** Remove a stored context-key from the credentials store */
1084
- remove: async (contextKey) => {
1164
+ remove: async (contextKey, options) => {
1085
1165
  return this.transport.call({
1086
1166
  groupSegments: ["context", "credentials"],
1087
1167
  command: "remove",
1088
- body: { contextKey },
1168
+ body: { contextKey, ...(options ?? {}) },
1089
1169
  });
1090
1170
  },
1091
1171
  /** Mark a stored context-key as the default */
@@ -1428,7 +1508,7 @@ export class RaviClient {
1428
1508
  });
1429
1509
  },
1430
1510
  pipeline: {
1431
- /** Create a CRM pipeline (with optional declarative metadata) */
1511
+ /** Create a CRM pipeline */
1432
1512
  create: async (name, options) => {
1433
1513
  return this.transport.call({
1434
1514
  groupSegments: ["crm", "pipeline"],
@@ -1656,19 +1736,19 @@ export class RaviClient {
1656
1736
  });
1657
1737
  },
1658
1738
  /** Delete a job */
1659
- rm: async (id) => {
1739
+ rm: async (id, options) => {
1660
1740
  return this.transport.call({
1661
1741
  groupSegments: ["cron"],
1662
1742
  command: "rm",
1663
- body: { id },
1743
+ body: { id, ...(options ?? {}) },
1664
1744
  });
1665
1745
  },
1666
1746
  /** Manually run a job (ignores schedule) */
1667
- run: async (id) => {
1747
+ run: async (id, options) => {
1668
1748
  return this.transport.call({
1669
1749
  groupSegments: ["cron"],
1670
1750
  command: "run",
1671
- body: { id },
1751
+ body: { id, ...(options ?? {}) },
1672
1752
  });
1673
1753
  },
1674
1754
  /** Set job property */
@@ -1775,11 +1855,11 @@ export class RaviClient {
1775
1855
  },
1776
1856
  sessions: {
1777
1857
  /** Archive a Devin session */
1778
- archive: async (session) => {
1858
+ archive: async (session, options) => {
1779
1859
  return this.transport.call({
1780
1860
  groupSegments: ["devin", "sessions"],
1781
1861
  command: "archive",
1782
- body: { session },
1862
+ body: { session, ...(options ?? {}) },
1783
1863
  });
1784
1864
  },
1785
1865
  /** List and cache session attachments */
@@ -1867,7 +1947,7 @@ export class RaviClient {
1867
1947
  }
1868
1948
  };
1869
1949
  feedback = {
1870
- /** Submit structured feedback to Ravi Console */
1950
+ /** Submit structured feedback to Ravi Console (dry-run by default; requires --execute) */
1871
1951
  send: async (message, options) => {
1872
1952
  return this.transport.call({
1873
1953
  groupSegments: ["feedback"],
@@ -1928,19 +2008,19 @@ export class RaviClient {
1928
2008
  });
1929
2009
  },
1930
2010
  /** Show heartbeat status for all agents */
1931
- status: async () => {
2011
+ status: async (options) => {
1932
2012
  return this.transport.call({
1933
2013
  groupSegments: ["heartbeat"],
1934
2014
  command: "status",
1935
- body: {},
2015
+ body: { ...(options ?? {}) },
1936
2016
  });
1937
2017
  },
1938
2018
  /** Manually trigger a heartbeat */
1939
- trigger: async (id) => {
2019
+ trigger: async (id, options) => {
1940
2020
  return this.transport.call({
1941
2021
  groupSegments: ["heartbeat"],
1942
2022
  command: "trigger",
1943
- body: { id },
2023
+ body: { id, ...(options ?? {}) },
1944
2024
  });
1945
2025
  }
1946
2026
  };
@@ -1978,11 +2058,11 @@ export class RaviClient {
1978
2058
  });
1979
2059
  },
1980
2060
  /** Delete a hook */
1981
- rm: async (id) => {
2061
+ rm: async (id, options) => {
1982
2062
  return this.transport.call({
1983
2063
  groupSegments: ["hooks"],
1984
2064
  command: "rm",
1985
- body: { id },
2065
+ body: { id, ...(options ?? {}) },
1986
2066
  });
1987
2067
  },
1988
2068
  /** Show hook details */
@@ -1994,11 +2074,11 @@ export class RaviClient {
1994
2074
  });
1995
2075
  },
1996
2076
  /** Execute a hook once with a synthetic event */
1997
- test: async (id) => {
2077
+ test: async (id, options) => {
1998
2078
  return this.transport.call({
1999
2079
  groupSegments: ["hooks"],
2000
2080
  command: "test",
2001
- body: { id },
2081
+ body: { id, ...(options ?? {}) },
2002
2082
  });
2003
2083
  }
2004
2084
  };
@@ -2088,11 +2168,11 @@ export class RaviClient {
2088
2168
  });
2089
2169
  },
2090
2170
  /** Republish a locally stored inbox item to NATS */
2091
- replay: async (ref) => {
2171
+ replay: async (ref, options) => {
2092
2172
  return this.transport.call({
2093
2173
  groupSegments: ["inbox"],
2094
2174
  command: "replay",
2095
- body: { ref },
2175
+ body: { ref, ...(options ?? {}) },
2096
2176
  });
2097
2177
  },
2098
2178
  /** Snooze a local inbox item until a timestamp */
@@ -2237,11 +2317,11 @@ export class RaviClient {
2237
2317
  });
2238
2318
  },
2239
2319
  /** Reject and remove a pending contact or chat */
2240
- reject: async (name, contact) => {
2320
+ reject: async (name, contact, options) => {
2241
2321
  return this.transport.call({
2242
2322
  groupSegments: ["instances", "pending"],
2243
2323
  command: "reject",
2244
- body: { name, contact },
2324
+ body: { name, contact, ...(options ?? {}) },
2245
2325
  });
2246
2326
  }
2247
2327
  },
@@ -2779,11 +2859,11 @@ export class RaviClient {
2779
2859
  });
2780
2860
  },
2781
2861
  /** Delete an observer rule */
2782
- rm: async (id) => {
2862
+ rm: async (id, options) => {
2783
2863
  return this.transport.call({
2784
2864
  groupSegments: ["observers", "rules"],
2785
2865
  command: "rm",
2786
- body: { id },
2866
+ body: { id, ...(options ?? {}) },
2787
2867
  });
2788
2868
  },
2789
2869
  /** Create or overwrite an observer rule */
@@ -2821,7 +2901,7 @@ export class RaviClient {
2821
2901
  }
2822
2902
  };
2823
2903
  pages = {
2824
- /** Compatibility: ensure a Ravi Pages host record; does not upload HTML or assets */
2904
+ /** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
2825
2905
  create: async (args, options) => {
2826
2906
  return this.transport.call({
2827
2907
  groupSegments: ["pages"],
@@ -2845,7 +2925,25 @@ export class RaviClient {
2845
2925
  body: { project, ...(options ?? {}) },
2846
2926
  });
2847
2927
  },
2848
- /** Publish a directory, file, or local artifact to a project Pages host */
2928
+ password: {
2929
+ /** Remove a route password after activating an explicit replacement visibility */
2930
+ remove: async (args, options) => {
2931
+ return this.transport.call({
2932
+ groupSegments: ["pages", "password"],
2933
+ command: "remove",
2934
+ body: { args, ...(options ?? {}) },
2935
+ });
2936
+ },
2937
+ /** Show safe route password status without revealing the password */
2938
+ status: async (args, options) => {
2939
+ return this.transport.call({
2940
+ groupSegments: ["pages", "password"],
2941
+ command: "status",
2942
+ body: { args, ...(options ?? {}) },
2943
+ });
2944
+ }
2945
+ },
2946
+ /** Advanced/compat: upload to an existing host or local art_*; prefer pages ship unless the HTML is already art_* */
2849
2947
  publish: async (args, options) => {
2850
2948
  return this.transport.call({
2851
2949
  groupSegments: ["pages"],
@@ -2861,6 +2959,14 @@ export class RaviClient {
2861
2959
  body: { project, ...(options ?? {}) },
2862
2960
  });
2863
2961
  },
2962
+ /** One-shot: ensure a Pages host and publish HTML or a site directory */
2963
+ ship: async (args, options) => {
2964
+ return this.transport.call({
2965
+ groupSegments: ["pages"],
2966
+ command: "ship",
2967
+ body: { args, ...(options ?? {}) },
2968
+ });
2969
+ },
2864
2970
  /** Update a Ravi Pages site in a Console project */
2865
2971
  update: async (args, options) => {
2866
2972
  return this.transport.call({
@@ -3313,7 +3419,7 @@ export class RaviClient {
3313
3419
  }
3314
3420
  };
3315
3421
  rules = {
3316
- /** Import provider rules into .ravi/rules/imported */
3422
+ /** Import provider rules into .ravi/rules/imported (dry-run without --write) */
3317
3423
  import: async (source, options) => {
3318
3424
  return this.transport.call({
3319
3425
  groupSegments: ["rules"],
@@ -3413,6 +3519,32 @@ export class RaviClient {
3413
3519
  });
3414
3520
  }
3415
3521
  },
3522
+ env: {
3523
+ /** Show whether an allowlisted env key is set; secret values are redacted */
3524
+ get: async (key) => {
3525
+ return this.transport.call({
3526
+ groupSegments: ["runtime", "env"],
3527
+ command: "get",
3528
+ body: { key },
3529
+ });
3530
+ },
3531
+ /** Atomically set one allowlisted key in the Ravi env file */
3532
+ set: async (key, options) => {
3533
+ return this.transport.call({
3534
+ groupSegments: ["runtime", "env"],
3535
+ command: "set",
3536
+ body: { key, ...(options ?? {}) },
3537
+ });
3538
+ },
3539
+ /** Remove one allowlisted key from the Ravi env file */
3540
+ unset: async (key) => {
3541
+ return this.transport.call({
3542
+ groupSegments: ["runtime", "env"],
3543
+ command: "unset",
3544
+ body: { key },
3545
+ });
3546
+ }
3547
+ },
3416
3548
  presets: {
3417
3549
  /** Create a runtime model preset */
3418
3550
  create: async (id, options) => {
@@ -3478,6 +3610,90 @@ export class RaviClient {
3478
3610
  body: { id },
3479
3611
  });
3480
3612
  }
3613
+ },
3614
+ providers: {
3615
+ claude: {
3616
+ /** Set CLAUDE_CODE_OAUTH_TOKEN and attach a claude-oauth runtime credential */
3617
+ configure: async (options) => {
3618
+ return this.transport.call({
3619
+ groupSegments: ["runtime", "providers", "claude"],
3620
+ command: "configure",
3621
+ body: { ...(options ?? {}) },
3622
+ });
3623
+ }
3624
+ },
3625
+ codex: {
3626
+ login: {
3627
+ /** Cancel a pending Codex device login */
3628
+ cancel: async (id) => {
3629
+ return this.transport.call({
3630
+ groupSegments: ["runtime", "providers", "codex", "login"],
3631
+ command: "cancel",
3632
+ body: { id },
3633
+ });
3634
+ },
3635
+ /** Import Codex CODEX_HOME after the human authorizes */
3636
+ complete: async (id, options) => {
3637
+ return this.transport.call({
3638
+ groupSegments: ["runtime", "providers", "codex", "login"],
3639
+ command: "complete",
3640
+ body: { id, ...(options ?? {}) },
3641
+ });
3642
+ },
3643
+ /** Start Codex device-code login and return URL + user code */
3644
+ start: async () => {
3645
+ return this.transport.call({
3646
+ groupSegments: ["runtime", "providers", "codex", "login"],
3647
+ command: "start",
3648
+ body: {},
3649
+ });
3650
+ },
3651
+ /** Poll a Codex device login */
3652
+ status: async (id) => {
3653
+ return this.transport.call({
3654
+ groupSegments: ["runtime", "providers", "codex", "login"],
3655
+ command: "status",
3656
+ body: { id },
3657
+ });
3658
+ }
3659
+ }
3660
+ },
3661
+ grok: {
3662
+ login: {
3663
+ /** Cancel a pending Grok device login */
3664
+ cancel: async (id) => {
3665
+ return this.transport.call({
3666
+ groupSegments: ["runtime", "providers", "grok", "login"],
3667
+ command: "cancel",
3668
+ body: { id },
3669
+ });
3670
+ },
3671
+ /** Import the Grok auth profile after the human authorizes */
3672
+ complete: async (id, options) => {
3673
+ return this.transport.call({
3674
+ groupSegments: ["runtime", "providers", "grok", "login"],
3675
+ command: "complete",
3676
+ body: { id, ...(options ?? {}) },
3677
+ });
3678
+ },
3679
+ /** Start Grok device-code login and return URL + user code */
3680
+ start: async () => {
3681
+ return this.transport.call({
3682
+ groupSegments: ["runtime", "providers", "grok", "login"],
3683
+ command: "start",
3684
+ body: {},
3685
+ });
3686
+ },
3687
+ /** Poll a Grok device login */
3688
+ status: async (id) => {
3689
+ return this.transport.call({
3690
+ groupSegments: ["runtime", "providers", "grok", "login"],
3691
+ command: "status",
3692
+ body: { id },
3693
+ });
3694
+ }
3695
+ }
3696
+ }
3481
3697
  }
3482
3698
  };
3483
3699
  sdk = {
@@ -3499,6 +3715,24 @@ export class RaviClient {
3499
3715
  });
3500
3716
  }
3501
3717
  },
3718
+ dart: {
3719
+ /** Compare on-disk Ravi Dart SDK sources to a fresh emit; exit 1 on drift */
3720
+ check: async (options) => {
3721
+ return this.transport.call({
3722
+ groupSegments: ["sdk", "dart"],
3723
+ command: "check",
3724
+ body: { ...(options ?? {}) },
3725
+ });
3726
+ },
3727
+ /** Generate the Ravi Dart SDK source files from the live registry */
3728
+ generate: async (options) => {
3729
+ return this.transport.call({
3730
+ groupSegments: ["sdk", "dart"],
3731
+ command: "generate",
3732
+ body: { ...(options ?? {}) },
3733
+ });
3734
+ }
3735
+ },
3502
3736
  openapi: {
3503
3737
  /** Diff a stored OpenAPI spec against the live registry */
3504
3738
  check: async (options) => {
@@ -3635,20 +3869,36 @@ export class RaviClient {
3635
3869
  body: { nameOrKey, ...(options ?? {}) },
3636
3870
  });
3637
3871
  },
3872
+ /** Close the current Slack thread session, optionally returning a result to its parent */
3873
+ closeThread: async (options) => {
3874
+ return this.transport.call({
3875
+ groupSegments: ["sessions"],
3876
+ command: "close-thread",
3877
+ body: { ...(options ?? {}) },
3878
+ });
3879
+ },
3880
+ /** Create a native Slack thread and start a child session in it */
3881
+ createThread: async (message, options) => {
3882
+ return this.transport.call({
3883
+ groupSegments: ["sessions"],
3884
+ command: "create-thread",
3885
+ body: { message, ...(options ?? {}) },
3886
+ });
3887
+ },
3638
3888
  /** Delete a session permanently */
3639
- delete: async (nameOrKey) => {
3889
+ delete: async (nameOrKey, options) => {
3640
3890
  return this.transport.call({
3641
3891
  groupSegments: ["sessions"],
3642
3892
  command: "delete",
3643
- body: { nameOrKey },
3893
+ body: { nameOrKey, ...(options ?? {}) },
3644
3894
  });
3645
3895
  },
3646
3896
  /** Delete one of this session agent's own channel messages */
3647
- deleteMessage: async (sessionOrMessage, messageRef) => {
3897
+ deleteMessage: async (sessionOrMessage, messageRef, options) => {
3648
3898
  return this.transport.call({
3649
3899
  groupSegments: ["sessions"],
3650
3900
  command: "delete-message",
3651
- body: { sessionOrMessage, messageRef },
3901
+ body: { sessionOrMessage, messageRef, ...(options ?? {}) },
3652
3902
  });
3653
3903
  },
3654
3904
  /** Detach a chat/output target from a session */
@@ -3765,7 +4015,7 @@ export class RaviClient {
3765
4015
  });
3766
4016
  }
3767
4017
  },
3768
- /** Inspect or mutate persisted session goal state */
4018
+ /** Control the runtime native goal and refresh its confirmed session snapshot */
3769
4019
  goal: async (action, nameOrKey, objective, options) => {
3770
4020
  return this.transport.call({
3771
4021
  groupSegments: ["sessions"],
@@ -3805,14 +4055,6 @@ export class RaviClient {
3805
4055
  body: { ...(options ?? {}) },
3806
4056
  });
3807
4057
  },
3808
- /** Keep a subscribed chat as listen-only for a session */
3809
- mute: async (nameOrKey, options) => {
3810
- return this.transport.call({
3811
- groupSegments: ["sessions"],
3812
- command: "mute",
3813
- body: { nameOrKey, ...(options ?? {}) },
3814
- });
3815
- },
3816
4058
  /** Prune sessions inactive for a duration (dry-run by default) */
3817
4059
  prune: async (options) => {
3818
4060
  return this.transport.call({
@@ -3829,6 +4071,14 @@ export class RaviClient {
3829
4071
  body: { nameOrKey, ...(options ?? {}) },
3830
4072
  });
3831
4073
  },
4074
+ /** Compute a bounded recap of a session (identity, goal, recent tail) */
4075
+ recap: async (nameOrKey, options) => {
4076
+ return this.transport.call({
4077
+ groupSegments: ["sessions"],
4078
+ command: "recap",
4079
+ body: { nameOrKey, ...(options ?? {}) },
4080
+ });
4081
+ },
3832
4082
  /** Rename canonical session name */
3833
4083
  rename: async (nameOrKey, newName) => {
3834
4084
  return this.transport.call({
@@ -3838,11 +4088,11 @@ export class RaviClient {
3838
4088
  });
3839
4089
  },
3840
4090
  /** Reset a session (fresh start) */
3841
- reset: async (nameOrKey) => {
4091
+ reset: async (nameOrKey, options) => {
3842
4092
  return this.transport.call({
3843
4093
  groupSegments: ["sessions"],
3844
4094
  command: "reset",
3845
- body: { nameOrKey },
4095
+ body: { nameOrKey, ...(options ?? {}) },
3846
4096
  });
3847
4097
  },
3848
4098
  runtime: {
@@ -3975,14 +4225,6 @@ export class RaviClient {
3975
4225
  body: { nameOrKey, ...(options ?? {}) },
3976
4226
  });
3977
4227
  },
3978
- /** Allow a subscribed chat to receive session responses */
3979
- unmute: async (nameOrKey, options) => {
3980
- return this.transport.call({
3981
- groupSegments: ["sessions"],
3982
- command: "unmute",
3983
- body: { nameOrKey, ...(options ?? {}) },
3984
- });
3985
- },
3986
4228
  /** Show runtime session visibility state */
3987
4229
  visibility: async (nameOrKey) => {
3988
4230
  return this.transport.call({
@@ -3993,12 +4235,12 @@ export class RaviClient {
3993
4235
  }
3994
4236
  };
3995
4237
  settings = {
3996
- /** Delete a setting */
3997
- delete: async (key) => {
4238
+ /** Delete a setting (dry-run by default; requires --execute) */
4239
+ delete: async (key, options) => {
3998
4240
  return this.transport.call({
3999
4241
  groupSegments: ["settings"],
4000
4242
  command: "delete",
4001
- body: { key },
4243
+ body: { key, ...(options ?? {}) },
4002
4244
  });
4003
4245
  },
4004
4246
  /** Get a setting value */
@@ -4051,20 +4293,20 @@ export class RaviClient {
4051
4293
  body: { ...(options ?? {}) },
4052
4294
  });
4053
4295
  },
4054
- /** Delete a configured override and restore the default behavior */
4055
- reset: async (id) => {
4296
+ /** Delete a configured override and restore the default behavior. Dry-run by default; pass --execute to write. */
4297
+ reset: async (id, options) => {
4056
4298
  return this.transport.call({
4057
4299
  groupSegments: ["skill-gates"],
4058
4300
  command: "reset",
4059
- body: { id },
4301
+ body: { id, ...(options ?? {}) },
4060
4302
  });
4061
4303
  },
4062
- /** Remove a custom gate or disable a default gate */
4063
- rm: async (id) => {
4304
+ /** Remove a custom gate or disable a default gate. Dry-run by default; pass --execute to write. */
4305
+ rm: async (id, options) => {
4064
4306
  return this.transport.call({
4065
4307
  groupSegments: ["skill-gates"],
4066
4308
  command: "rm",
4067
- body: { id },
4309
+ body: { id, ...(options ?? {}) },
4068
4310
  });
4069
4311
  },
4070
4312
  /** Create or overwrite a skill gate rule */
@@ -4109,7 +4351,7 @@ export class RaviClient {
4109
4351
  body: { agent },
4110
4352
  });
4111
4353
  },
4112
- /** Install Ravi catalog skills or skills from an explicit source */
4354
+ /** Install Ravi catalog skills or skills from an explicit source. Git sources and overwrites require --execute. */
4113
4355
  install: async (name, options) => {
4114
4356
  return this.transport.call({
4115
4357
  groupSegments: ["skills"],
@@ -4199,7 +4441,7 @@ export class RaviClient {
4199
4441
  body: { file, ...(options ?? {}) },
4200
4442
  });
4201
4443
  },
4202
- /** Delete Slack standalone canvas access; dry-run unless --execute is set */
4444
+ /** Revoke Slack standalone canvas access; dry-run unless --execute is set */
4203
4445
  canvasAccessDelete: async (canvas, options) => {
4204
4446
  return this.transport.call({
4205
4447
  groupSegments: ["slack"],
@@ -4508,11 +4750,11 @@ export class RaviClient {
4508
4750
  });
4509
4751
  },
4510
4752
  /** Remove a sticker catalog entry */
4511
- remove: async (id) => {
4753
+ remove: async (id, options) => {
4512
4754
  return this.transport.call({
4513
4755
  groupSegments: ["stickers"],
4514
4756
  command: "remove",
4515
- body: { id },
4757
+ body: { id, ...(options ?? {}) },
4516
4758
  });
4517
4759
  },
4518
4760
  /** Send a sticker to the current WhatsApp chat */
@@ -4724,12 +4966,12 @@ export class RaviClient {
4724
4966
  body: { ...(options ?? {}) },
4725
4967
  });
4726
4968
  },
4727
- /** Delete a task automation */
4728
- rm: async (id) => {
4969
+ /** Delete a task automation (dry-run by default; --execute writes) */
4970
+ rm: async (id, options) => {
4729
4971
  return this.transport.call({
4730
4972
  groupSegments: ["tasks", "automations"],
4731
4973
  command: "rm",
4732
- body: { id },
4974
+ body: { id, ...(options ?? {}) },
4733
4975
  });
4734
4976
  },
4735
4977
  /** Show one task automation and its recent runs */
@@ -4782,12 +5024,12 @@ export class RaviClient {
4782
5024
  body: { taskId, ...(options ?? {}) },
4783
5025
  });
4784
5026
  },
4785
- /** Remove one gating dependency from a task */
4786
- rm: async (taskId, dependencyTaskId) => {
5027
+ /** Remove one gating dependency from a task (dry-run by default; --execute writes) */
5028
+ rm: async (taskId, dependencyTaskId, options) => {
4787
5029
  return this.transport.call({
4788
5030
  groupSegments: ["tasks", "deps"],
4789
5031
  command: "rm",
4790
- body: { taskId, dependencyTaskId },
5032
+ body: { taskId, dependencyTaskId, ...(options ?? {}) },
4791
5033
  });
4792
5034
  }
4793
5035
  },
@@ -5066,11 +5308,11 @@ export class RaviClient {
5066
5308
  });
5067
5309
  },
5068
5310
  /** Delete a trigger */
5069
- rm: async (id) => {
5311
+ rm: async (id, options) => {
5070
5312
  return this.transport.call({
5071
5313
  groupSegments: ["triggers"],
5072
5314
  command: "rm",
5073
- body: { id },
5315
+ body: { id, ...(options ?? {}) },
5074
5316
  });
5075
5317
  },
5076
5318
  /** Set trigger property */
@@ -5090,11 +5332,11 @@ export class RaviClient {
5090
5332
  });
5091
5333
  },
5092
5334
  /** Test trigger with fake event data */
5093
- test: async (id) => {
5335
+ test: async (id, options) => {
5094
5336
  return this.transport.call({
5095
5337
  groupSegments: ["triggers"],
5096
5338
  command: "test",
5097
- body: { id },
5339
+ body: { id, ...(options ?? {}) },
5098
5340
  });
5099
5341
  },
5100
5342
  /** List trigger-ready NATS topics */
@@ -5166,11 +5408,11 @@ export class RaviClient {
5166
5408
  });
5167
5409
  },
5168
5410
  /** Remove a watch */
5169
- rm: async (id) => {
5411
+ rm: async (id, options) => {
5170
5412
  return this.transport.call({
5171
5413
  groupSegments: ["watch"],
5172
5414
  command: "rm",
5173
- body: { id },
5415
+ body: { id, ...(options ?? {}) },
5174
5416
  });
5175
5417
  },
5176
5418
  /** Show watch details */
@@ -5377,11 +5619,11 @@ export class RaviClient {
5377
5619
  workflows = {
5378
5620
  runs: {
5379
5621
  /** Archive one node run from workflow aggregate state */
5380
- archiveNode: async (runId, nodeKey) => {
5622
+ archiveNode: async (runId, nodeKey, options) => {
5381
5623
  return this.transport.call({
5382
5624
  groupSegments: ["workflows", "runs"],
5383
5625
  command: "archive-node",
5384
- body: { runId, nodeKey },
5626
+ body: { runId, nodeKey, ...(options ?? {}) },
5385
5627
  });
5386
5628
  },
5387
5629
  /** Cancel one workflow node run */