@ravi-os/sdk 0.260725.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) => {
@@ -946,11 +980,11 @@ export class RaviClient {
946
980
  });
947
981
  },
948
982
  /** Merge two contacts (move identities from source to target) */
949
- merge: async (source, target) => {
983
+ merge: async (source, target, options) => {
950
984
  return this.transport.call({
951
985
  groupSegments: ["contacts"],
952
986
  command: "merge",
953
- body: { source, target },
987
+ body: { source, target, ...(options ?? {}) },
954
988
  });
955
989
  },
956
990
  /** Show messages attributed to a contact */
@@ -1012,11 +1046,11 @@ export class RaviClient {
1012
1046
  });
1013
1047
  },
1014
1048
  /** Remove a contact */
1015
- remove: async (contact) => {
1049
+ remove: async (contact, options) => {
1016
1050
  return this.transport.call({
1017
1051
  groupSegments: ["contacts"],
1018
1052
  command: "remove",
1019
- body: { contact },
1053
+ body: { contact, ...(options ?? {}) },
1020
1054
  });
1021
1055
  },
1022
1056
  /** Show session summaries attributed to a contact */
@@ -1127,11 +1161,11 @@ export class RaviClient {
1127
1161
  });
1128
1162
  },
1129
1163
  /** Remove a stored context-key from the credentials store */
1130
- remove: async (contextKey) => {
1164
+ remove: async (contextKey, options) => {
1131
1165
  return this.transport.call({
1132
1166
  groupSegments: ["context", "credentials"],
1133
1167
  command: "remove",
1134
- body: { contextKey },
1168
+ body: { contextKey, ...(options ?? {}) },
1135
1169
  });
1136
1170
  },
1137
1171
  /** Mark a stored context-key as the default */
@@ -1474,7 +1508,7 @@ export class RaviClient {
1474
1508
  });
1475
1509
  },
1476
1510
  pipeline: {
1477
- /** Create a CRM pipeline (with optional declarative metadata) */
1511
+ /** Create a CRM pipeline */
1478
1512
  create: async (name, options) => {
1479
1513
  return this.transport.call({
1480
1514
  groupSegments: ["crm", "pipeline"],
@@ -1702,19 +1736,19 @@ export class RaviClient {
1702
1736
  });
1703
1737
  },
1704
1738
  /** Delete a job */
1705
- rm: async (id) => {
1739
+ rm: async (id, options) => {
1706
1740
  return this.transport.call({
1707
1741
  groupSegments: ["cron"],
1708
1742
  command: "rm",
1709
- body: { id },
1743
+ body: { id, ...(options ?? {}) },
1710
1744
  });
1711
1745
  },
1712
1746
  /** Manually run a job (ignores schedule) */
1713
- run: async (id) => {
1747
+ run: async (id, options) => {
1714
1748
  return this.transport.call({
1715
1749
  groupSegments: ["cron"],
1716
1750
  command: "run",
1717
- body: { id },
1751
+ body: { id, ...(options ?? {}) },
1718
1752
  });
1719
1753
  },
1720
1754
  /** Set job property */
@@ -1821,11 +1855,11 @@ export class RaviClient {
1821
1855
  },
1822
1856
  sessions: {
1823
1857
  /** Archive a Devin session */
1824
- archive: async (session) => {
1858
+ archive: async (session, options) => {
1825
1859
  return this.transport.call({
1826
1860
  groupSegments: ["devin", "sessions"],
1827
1861
  command: "archive",
1828
- body: { session },
1862
+ body: { session, ...(options ?? {}) },
1829
1863
  });
1830
1864
  },
1831
1865
  /** List and cache session attachments */
@@ -1913,7 +1947,7 @@ export class RaviClient {
1913
1947
  }
1914
1948
  };
1915
1949
  feedback = {
1916
- /** Submit structured feedback to Ravi Console */
1950
+ /** Submit structured feedback to Ravi Console (dry-run by default; requires --execute) */
1917
1951
  send: async (message, options) => {
1918
1952
  return this.transport.call({
1919
1953
  groupSegments: ["feedback"],
@@ -1974,19 +2008,19 @@ export class RaviClient {
1974
2008
  });
1975
2009
  },
1976
2010
  /** Show heartbeat status for all agents */
1977
- status: async () => {
2011
+ status: async (options) => {
1978
2012
  return this.transport.call({
1979
2013
  groupSegments: ["heartbeat"],
1980
2014
  command: "status",
1981
- body: {},
2015
+ body: { ...(options ?? {}) },
1982
2016
  });
1983
2017
  },
1984
2018
  /** Manually trigger a heartbeat */
1985
- trigger: async (id) => {
2019
+ trigger: async (id, options) => {
1986
2020
  return this.transport.call({
1987
2021
  groupSegments: ["heartbeat"],
1988
2022
  command: "trigger",
1989
- body: { id },
2023
+ body: { id, ...(options ?? {}) },
1990
2024
  });
1991
2025
  }
1992
2026
  };
@@ -2024,11 +2058,11 @@ export class RaviClient {
2024
2058
  });
2025
2059
  },
2026
2060
  /** Delete a hook */
2027
- rm: async (id) => {
2061
+ rm: async (id, options) => {
2028
2062
  return this.transport.call({
2029
2063
  groupSegments: ["hooks"],
2030
2064
  command: "rm",
2031
- body: { id },
2065
+ body: { id, ...(options ?? {}) },
2032
2066
  });
2033
2067
  },
2034
2068
  /** Show hook details */
@@ -2040,11 +2074,11 @@ export class RaviClient {
2040
2074
  });
2041
2075
  },
2042
2076
  /** Execute a hook once with a synthetic event */
2043
- test: async (id) => {
2077
+ test: async (id, options) => {
2044
2078
  return this.transport.call({
2045
2079
  groupSegments: ["hooks"],
2046
2080
  command: "test",
2047
- body: { id },
2081
+ body: { id, ...(options ?? {}) },
2048
2082
  });
2049
2083
  }
2050
2084
  };
@@ -2134,11 +2168,11 @@ export class RaviClient {
2134
2168
  });
2135
2169
  },
2136
2170
  /** Republish a locally stored inbox item to NATS */
2137
- replay: async (ref) => {
2171
+ replay: async (ref, options) => {
2138
2172
  return this.transport.call({
2139
2173
  groupSegments: ["inbox"],
2140
2174
  command: "replay",
2141
- body: { ref },
2175
+ body: { ref, ...(options ?? {}) },
2142
2176
  });
2143
2177
  },
2144
2178
  /** Snooze a local inbox item until a timestamp */
@@ -2283,11 +2317,11 @@ export class RaviClient {
2283
2317
  });
2284
2318
  },
2285
2319
  /** Reject and remove a pending contact or chat */
2286
- reject: async (name, contact) => {
2320
+ reject: async (name, contact, options) => {
2287
2321
  return this.transport.call({
2288
2322
  groupSegments: ["instances", "pending"],
2289
2323
  command: "reject",
2290
- body: { name, contact },
2324
+ body: { name, contact, ...(options ?? {}) },
2291
2325
  });
2292
2326
  }
2293
2327
  },
@@ -2825,11 +2859,11 @@ export class RaviClient {
2825
2859
  });
2826
2860
  },
2827
2861
  /** Delete an observer rule */
2828
- rm: async (id) => {
2862
+ rm: async (id, options) => {
2829
2863
  return this.transport.call({
2830
2864
  groupSegments: ["observers", "rules"],
2831
2865
  command: "rm",
2832
- body: { id },
2866
+ body: { id, ...(options ?? {}) },
2833
2867
  });
2834
2868
  },
2835
2869
  /** Create or overwrite an observer rule */
@@ -2867,7 +2901,7 @@ export class RaviClient {
2867
2901
  }
2868
2902
  };
2869
2903
  pages = {
2870
- /** 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 */
2871
2905
  create: async (args, options) => {
2872
2906
  return this.transport.call({
2873
2907
  groupSegments: ["pages"],
@@ -2891,7 +2925,25 @@ export class RaviClient {
2891
2925
  body: { project, ...(options ?? {}) },
2892
2926
  });
2893
2927
  },
2894
- /** 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_* */
2895
2947
  publish: async (args, options) => {
2896
2948
  return this.transport.call({
2897
2949
  groupSegments: ["pages"],
@@ -2907,6 +2959,14 @@ export class RaviClient {
2907
2959
  body: { project, ...(options ?? {}) },
2908
2960
  });
2909
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
+ },
2910
2970
  /** Update a Ravi Pages site in a Console project */
2911
2971
  update: async (args, options) => {
2912
2972
  return this.transport.call({
@@ -3359,7 +3419,7 @@ export class RaviClient {
3359
3419
  }
3360
3420
  };
3361
3421
  rules = {
3362
- /** Import provider rules into .ravi/rules/imported */
3422
+ /** Import provider rules into .ravi/rules/imported (dry-run without --write) */
3363
3423
  import: async (source, options) => {
3364
3424
  return this.transport.call({
3365
3425
  groupSegments: ["rules"],
@@ -3459,6 +3519,32 @@ export class RaviClient {
3459
3519
  });
3460
3520
  }
3461
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
+ },
3462
3548
  presets: {
3463
3549
  /** Create a runtime model preset */
3464
3550
  create: async (id, options) => {
@@ -3524,6 +3610,90 @@ export class RaviClient {
3524
3610
  body: { id },
3525
3611
  });
3526
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
+ }
3527
3697
  }
3528
3698
  };
3529
3699
  sdk = {
@@ -3545,6 +3715,24 @@ export class RaviClient {
3545
3715
  });
3546
3716
  }
3547
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
+ },
3548
3736
  openapi: {
3549
3737
  /** Diff a stored OpenAPI spec against the live registry */
3550
3738
  check: async (options) => {
@@ -3681,20 +3869,36 @@ export class RaviClient {
3681
3869
  body: { nameOrKey, ...(options ?? {}) },
3682
3870
  });
3683
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
+ },
3684
3888
  /** Delete a session permanently */
3685
- delete: async (nameOrKey) => {
3889
+ delete: async (nameOrKey, options) => {
3686
3890
  return this.transport.call({
3687
3891
  groupSegments: ["sessions"],
3688
3892
  command: "delete",
3689
- body: { nameOrKey },
3893
+ body: { nameOrKey, ...(options ?? {}) },
3690
3894
  });
3691
3895
  },
3692
3896
  /** Delete one of this session agent's own channel messages */
3693
- deleteMessage: async (sessionOrMessage, messageRef) => {
3897
+ deleteMessage: async (sessionOrMessage, messageRef, options) => {
3694
3898
  return this.transport.call({
3695
3899
  groupSegments: ["sessions"],
3696
3900
  command: "delete-message",
3697
- body: { sessionOrMessage, messageRef },
3901
+ body: { sessionOrMessage, messageRef, ...(options ?? {}) },
3698
3902
  });
3699
3903
  },
3700
3904
  /** Detach a chat/output target from a session */
@@ -3811,7 +4015,7 @@ export class RaviClient {
3811
4015
  });
3812
4016
  }
3813
4017
  },
3814
- /** Inspect or mutate persisted session goal state */
4018
+ /** Control the runtime native goal and refresh its confirmed session snapshot */
3815
4019
  goal: async (action, nameOrKey, objective, options) => {
3816
4020
  return this.transport.call({
3817
4021
  groupSegments: ["sessions"],
@@ -3851,14 +4055,6 @@ export class RaviClient {
3851
4055
  body: { ...(options ?? {}) },
3852
4056
  });
3853
4057
  },
3854
- /** Keep a subscribed chat as listen-only for a session */
3855
- mute: async (nameOrKey, options) => {
3856
- return this.transport.call({
3857
- groupSegments: ["sessions"],
3858
- command: "mute",
3859
- body: { nameOrKey, ...(options ?? {}) },
3860
- });
3861
- },
3862
4058
  /** Prune sessions inactive for a duration (dry-run by default) */
3863
4059
  prune: async (options) => {
3864
4060
  return this.transport.call({
@@ -3875,6 +4071,14 @@ export class RaviClient {
3875
4071
  body: { nameOrKey, ...(options ?? {}) },
3876
4072
  });
3877
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
+ },
3878
4082
  /** Rename canonical session name */
3879
4083
  rename: async (nameOrKey, newName) => {
3880
4084
  return this.transport.call({
@@ -3884,11 +4088,11 @@ export class RaviClient {
3884
4088
  });
3885
4089
  },
3886
4090
  /** Reset a session (fresh start) */
3887
- reset: async (nameOrKey) => {
4091
+ reset: async (nameOrKey, options) => {
3888
4092
  return this.transport.call({
3889
4093
  groupSegments: ["sessions"],
3890
4094
  command: "reset",
3891
- body: { nameOrKey },
4095
+ body: { nameOrKey, ...(options ?? {}) },
3892
4096
  });
3893
4097
  },
3894
4098
  runtime: {
@@ -4021,14 +4225,6 @@ export class RaviClient {
4021
4225
  body: { nameOrKey, ...(options ?? {}) },
4022
4226
  });
4023
4227
  },
4024
- /** Allow a subscribed chat to receive session responses */
4025
- unmute: async (nameOrKey, options) => {
4026
- return this.transport.call({
4027
- groupSegments: ["sessions"],
4028
- command: "unmute",
4029
- body: { nameOrKey, ...(options ?? {}) },
4030
- });
4031
- },
4032
4228
  /** Show runtime session visibility state */
4033
4229
  visibility: async (nameOrKey) => {
4034
4230
  return this.transport.call({
@@ -4039,12 +4235,12 @@ export class RaviClient {
4039
4235
  }
4040
4236
  };
4041
4237
  settings = {
4042
- /** Delete a setting */
4043
- delete: async (key) => {
4238
+ /** Delete a setting (dry-run by default; requires --execute) */
4239
+ delete: async (key, options) => {
4044
4240
  return this.transport.call({
4045
4241
  groupSegments: ["settings"],
4046
4242
  command: "delete",
4047
- body: { key },
4243
+ body: { key, ...(options ?? {}) },
4048
4244
  });
4049
4245
  },
4050
4246
  /** Get a setting value */
@@ -4097,20 +4293,20 @@ export class RaviClient {
4097
4293
  body: { ...(options ?? {}) },
4098
4294
  });
4099
4295
  },
4100
- /** Delete a configured override and restore the default behavior */
4101
- 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) => {
4102
4298
  return this.transport.call({
4103
4299
  groupSegments: ["skill-gates"],
4104
4300
  command: "reset",
4105
- body: { id },
4301
+ body: { id, ...(options ?? {}) },
4106
4302
  });
4107
4303
  },
4108
- /** Remove a custom gate or disable a default gate */
4109
- 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) => {
4110
4306
  return this.transport.call({
4111
4307
  groupSegments: ["skill-gates"],
4112
4308
  command: "rm",
4113
- body: { id },
4309
+ body: { id, ...(options ?? {}) },
4114
4310
  });
4115
4311
  },
4116
4312
  /** Create or overwrite a skill gate rule */
@@ -4155,7 +4351,7 @@ export class RaviClient {
4155
4351
  body: { agent },
4156
4352
  });
4157
4353
  },
4158
- /** 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. */
4159
4355
  install: async (name, options) => {
4160
4356
  return this.transport.call({
4161
4357
  groupSegments: ["skills"],
@@ -4245,7 +4441,7 @@ export class RaviClient {
4245
4441
  body: { file, ...(options ?? {}) },
4246
4442
  });
4247
4443
  },
4248
- /** Delete Slack standalone canvas access; dry-run unless --execute is set */
4444
+ /** Revoke Slack standalone canvas access; dry-run unless --execute is set */
4249
4445
  canvasAccessDelete: async (canvas, options) => {
4250
4446
  return this.transport.call({
4251
4447
  groupSegments: ["slack"],
@@ -4554,11 +4750,11 @@ export class RaviClient {
4554
4750
  });
4555
4751
  },
4556
4752
  /** Remove a sticker catalog entry */
4557
- remove: async (id) => {
4753
+ remove: async (id, options) => {
4558
4754
  return this.transport.call({
4559
4755
  groupSegments: ["stickers"],
4560
4756
  command: "remove",
4561
- body: { id },
4757
+ body: { id, ...(options ?? {}) },
4562
4758
  });
4563
4759
  },
4564
4760
  /** Send a sticker to the current WhatsApp chat */
@@ -4770,12 +4966,12 @@ export class RaviClient {
4770
4966
  body: { ...(options ?? {}) },
4771
4967
  });
4772
4968
  },
4773
- /** Delete a task automation */
4774
- rm: async (id) => {
4969
+ /** Delete a task automation (dry-run by default; --execute writes) */
4970
+ rm: async (id, options) => {
4775
4971
  return this.transport.call({
4776
4972
  groupSegments: ["tasks", "automations"],
4777
4973
  command: "rm",
4778
- body: { id },
4974
+ body: { id, ...(options ?? {}) },
4779
4975
  });
4780
4976
  },
4781
4977
  /** Show one task automation and its recent runs */
@@ -4828,12 +5024,12 @@ export class RaviClient {
4828
5024
  body: { taskId, ...(options ?? {}) },
4829
5025
  });
4830
5026
  },
4831
- /** Remove one gating dependency from a task */
4832
- rm: async (taskId, dependencyTaskId) => {
5027
+ /** Remove one gating dependency from a task (dry-run by default; --execute writes) */
5028
+ rm: async (taskId, dependencyTaskId, options) => {
4833
5029
  return this.transport.call({
4834
5030
  groupSegments: ["tasks", "deps"],
4835
5031
  command: "rm",
4836
- body: { taskId, dependencyTaskId },
5032
+ body: { taskId, dependencyTaskId, ...(options ?? {}) },
4837
5033
  });
4838
5034
  }
4839
5035
  },
@@ -5112,11 +5308,11 @@ export class RaviClient {
5112
5308
  });
5113
5309
  },
5114
5310
  /** Delete a trigger */
5115
- rm: async (id) => {
5311
+ rm: async (id, options) => {
5116
5312
  return this.transport.call({
5117
5313
  groupSegments: ["triggers"],
5118
5314
  command: "rm",
5119
- body: { id },
5315
+ body: { id, ...(options ?? {}) },
5120
5316
  });
5121
5317
  },
5122
5318
  /** Set trigger property */
@@ -5136,11 +5332,11 @@ export class RaviClient {
5136
5332
  });
5137
5333
  },
5138
5334
  /** Test trigger with fake event data */
5139
- test: async (id) => {
5335
+ test: async (id, options) => {
5140
5336
  return this.transport.call({
5141
5337
  groupSegments: ["triggers"],
5142
5338
  command: "test",
5143
- body: { id },
5339
+ body: { id, ...(options ?? {}) },
5144
5340
  });
5145
5341
  },
5146
5342
  /** List trigger-ready NATS topics */
@@ -5212,11 +5408,11 @@ export class RaviClient {
5212
5408
  });
5213
5409
  },
5214
5410
  /** Remove a watch */
5215
- rm: async (id) => {
5411
+ rm: async (id, options) => {
5216
5412
  return this.transport.call({
5217
5413
  groupSegments: ["watch"],
5218
5414
  command: "rm",
5219
- body: { id },
5415
+ body: { id, ...(options ?? {}) },
5220
5416
  });
5221
5417
  },
5222
5418
  /** Show watch details */
@@ -5423,11 +5619,11 @@ export class RaviClient {
5423
5619
  workflows = {
5424
5620
  runs: {
5425
5621
  /** Archive one node run from workflow aggregate state */
5426
- archiveNode: async (runId, nodeKey) => {
5622
+ archiveNode: async (runId, nodeKey, options) => {
5427
5623
  return this.transport.call({
5428
5624
  groupSegments: ["workflows", "runs"],
5429
5625
  command: "archive-node",
5430
- body: { runId, nodeKey },
5626
+ body: { runId, nodeKey, ...(options ?? {}) },
5431
5627
  });
5432
5628
  },
5433
5629
  /** Cancel one workflow node run */