@ravi-os/sdk 0.260725.1 → 0.260927.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.
Files changed (44) hide show
  1. package/README.md +23 -51
  2. package/dist/channel-runtime-events.d.ts +284 -1
  3. package/dist/channel-runtime-events.d.ts.map +1 -1
  4. package/dist/channel-runtime-events.js +67 -1
  5. package/dist/channel-runtime-events.js.map +1 -1
  6. package/dist/client.d.ts +455 -57
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +351 -97
  9. package/dist/client.js.map +1 -1
  10. package/dist/errors.d.ts +42 -4
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +252 -8
  13. package/dist/errors.js.map +1 -1
  14. package/dist/fetch.d.ts +14 -0
  15. package/dist/fetch.d.ts.map +1 -0
  16. package/dist/fetch.js +20 -0
  17. package/dist/fetch.js.map +1 -0
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/native-channel-driver.d.ts +78 -1
  23. package/dist/native-channel-driver.d.ts.map +1 -1
  24. package/dist/native-channel-driver.js +84 -7
  25. package/dist/native-channel-driver.js.map +1 -1
  26. package/dist/schemas.d.ts +9798 -3765
  27. package/dist/schemas.d.ts.map +1 -1
  28. package/dist/schemas.js +16338 -8452
  29. package/dist/schemas.js.map +1 -1
  30. package/dist/streaming.generated.d.ts.map +1 -1
  31. package/dist/streaming.generated.js +2 -4
  32. package/dist/streaming.generated.js.map +1 -1
  33. package/dist/transport/http.d.ts.map +1 -1
  34. package/dist/transport/http.js +2 -4
  35. package/dist/transport/http.js.map +1 -1
  36. package/dist/types.d.ts +1487 -53
  37. package/dist/types.d.ts.map +1 -1
  38. package/dist/version.d.ts +2 -2
  39. package/dist/version.js +2 -2
  40. package/package.json +1 -5
  41. package/dist/local-agent-reconciliation.d.ts +0 -172
  42. package/dist/local-agent-reconciliation.d.ts.map +0 -1
  43. package/dist/local-agent-reconciliation.js +0 -597
  44. package/dist/local-agent-reconciliation.js.map +0 -1
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 */
@@ -97,12 +105,12 @@ export class RaviClient {
97
105
  body: { id },
98
106
  });
99
107
  },
100
- /** Set agent property and report active session runtime overrides */
101
- set: async (id, key, value) => {
108
+ /** Set agent property; rematerialize no-override sessions when provider/model changes */
109
+ set: async (id, key, value, options) => {
102
110
  return this.transport.call({
103
111
  groupSegments: ["agents"],
104
112
  command: "set",
105
- body: { id, key, value },
113
+ body: { id, key, value, ...(options ?? {}) },
106
114
  });
107
115
  },
108
116
  /** Show agent details */
@@ -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,40 @@ export class RaviClient {
398
406
  });
399
407
  }
400
408
  };
409
+ bug = {
410
+ /** Append sanitized follow-up evidence or a comment to an existing Console bug report (dry-run by default; requires --execute) */
411
+ comment: async (id, options) => {
412
+ return this.transport.call({
413
+ groupSegments: ["bug"],
414
+ command: "comment",
415
+ body: { id, ...(options ?? {}) },
416
+ });
417
+ },
418
+ /** List your Console bug reports */
419
+ list: async (options) => {
420
+ return this.transport.call({
421
+ groupSegments: ["bug"],
422
+ command: "list",
423
+ body: { ...(options ?? {}) },
424
+ });
425
+ },
426
+ /** Collect a sanitized bug dossier and submit it to Console (dry-run by default; requires --execute) */
427
+ report: async (options) => {
428
+ return this.transport.call({
429
+ groupSegments: ["bug"],
430
+ command: "report",
431
+ body: { ...(options ?? {}) },
432
+ });
433
+ },
434
+ /** Show one of your Console bug reports */
435
+ status: async (id, options) => {
436
+ return this.transport.call({
437
+ groupSegments: ["bug"],
438
+ command: "status",
439
+ body: { id, ...(options ?? {}) },
440
+ });
441
+ }
442
+ };
401
443
  calendars = {
402
444
  /** Return free/busy availability in a bounded time window */
403
445
  availability: async (options) => {
@@ -946,11 +988,11 @@ export class RaviClient {
946
988
  });
947
989
  },
948
990
  /** Merge two contacts (move identities from source to target) */
949
- merge: async (source, target) => {
991
+ merge: async (source, target, options) => {
950
992
  return this.transport.call({
951
993
  groupSegments: ["contacts"],
952
994
  command: "merge",
953
- body: { source, target },
995
+ body: { source, target, ...(options ?? {}) },
954
996
  });
955
997
  },
956
998
  /** Show messages attributed to a contact */
@@ -1012,11 +1054,11 @@ export class RaviClient {
1012
1054
  });
1013
1055
  },
1014
1056
  /** Remove a contact */
1015
- remove: async (contact) => {
1057
+ remove: async (contact, options) => {
1016
1058
  return this.transport.call({
1017
1059
  groupSegments: ["contacts"],
1018
1060
  command: "remove",
1019
- body: { contact },
1061
+ body: { contact, ...(options ?? {}) },
1020
1062
  });
1021
1063
  },
1022
1064
  /** Show session summaries attributed to a contact */
@@ -1102,11 +1144,11 @@ export class RaviClient {
1102
1144
  });
1103
1145
  },
1104
1146
  /** Evaluate a Codex PreToolUse Bash hook payload from stdin using the current Ravi context */
1105
- codexBashHook: async () => {
1147
+ codexBashHook: async (options) => {
1106
1148
  return this.transport.call({
1107
1149
  groupSegments: ["context"],
1108
1150
  command: "codex-bash-hook",
1109
- body: {},
1151
+ body: { ...(options ?? {}) },
1110
1152
  });
1111
1153
  },
1112
1154
  credentials: {
@@ -1127,11 +1169,11 @@ export class RaviClient {
1127
1169
  });
1128
1170
  },
1129
1171
  /** Remove a stored context-key from the credentials store */
1130
- remove: async (contextKey) => {
1172
+ remove: async (contextKey, options) => {
1131
1173
  return this.transport.call({
1132
1174
  groupSegments: ["context", "credentials"],
1133
1175
  command: "remove",
1134
- body: { contextKey },
1176
+ body: { contextKey, ...(options ?? {}) },
1135
1177
  });
1136
1178
  },
1137
1179
  /** Mark a stored context-key as the default */
@@ -1474,7 +1516,7 @@ export class RaviClient {
1474
1516
  });
1475
1517
  },
1476
1518
  pipeline: {
1477
- /** Create a CRM pipeline (with optional declarative metadata) */
1519
+ /** Create a CRM pipeline */
1478
1520
  create: async (name, options) => {
1479
1521
  return this.transport.call({
1480
1522
  groupSegments: ["crm", "pipeline"],
@@ -1702,19 +1744,19 @@ export class RaviClient {
1702
1744
  });
1703
1745
  },
1704
1746
  /** Delete a job */
1705
- rm: async (id) => {
1747
+ rm: async (id, options) => {
1706
1748
  return this.transport.call({
1707
1749
  groupSegments: ["cron"],
1708
1750
  command: "rm",
1709
- body: { id },
1751
+ body: { id, ...(options ?? {}) },
1710
1752
  });
1711
1753
  },
1712
1754
  /** Manually run a job (ignores schedule) */
1713
- run: async (id) => {
1755
+ run: async (id, options) => {
1714
1756
  return this.transport.call({
1715
1757
  groupSegments: ["cron"],
1716
1758
  command: "run",
1717
- body: { id },
1759
+ body: { id, ...(options ?? {}) },
1718
1760
  });
1719
1761
  },
1720
1762
  /** Set job property */
@@ -1821,11 +1863,11 @@ export class RaviClient {
1821
1863
  },
1822
1864
  sessions: {
1823
1865
  /** Archive a Devin session */
1824
- archive: async (session) => {
1866
+ archive: async (session, options) => {
1825
1867
  return this.transport.call({
1826
1868
  groupSegments: ["devin", "sessions"],
1827
1869
  command: "archive",
1828
- body: { session },
1870
+ body: { session, ...(options ?? {}) },
1829
1871
  });
1830
1872
  },
1831
1873
  /** List and cache session attachments */
@@ -1913,7 +1955,7 @@ export class RaviClient {
1913
1955
  }
1914
1956
  };
1915
1957
  feedback = {
1916
- /** Submit structured feedback to Ravi Console */
1958
+ /** Submit structured feedback to Ravi Console (dry-run by default; requires --execute) */
1917
1959
  send: async (message, options) => {
1918
1960
  return this.transport.call({
1919
1961
  groupSegments: ["feedback"],
@@ -1974,19 +2016,19 @@ export class RaviClient {
1974
2016
  });
1975
2017
  },
1976
2018
  /** Show heartbeat status for all agents */
1977
- status: async () => {
2019
+ status: async (options) => {
1978
2020
  return this.transport.call({
1979
2021
  groupSegments: ["heartbeat"],
1980
2022
  command: "status",
1981
- body: {},
2023
+ body: { ...(options ?? {}) },
1982
2024
  });
1983
2025
  },
1984
2026
  /** Manually trigger a heartbeat */
1985
- trigger: async (id) => {
2027
+ trigger: async (id, options) => {
1986
2028
  return this.transport.call({
1987
2029
  groupSegments: ["heartbeat"],
1988
2030
  command: "trigger",
1989
- body: { id },
2031
+ body: { id, ...(options ?? {}) },
1990
2032
  });
1991
2033
  }
1992
2034
  };
@@ -2024,11 +2066,11 @@ export class RaviClient {
2024
2066
  });
2025
2067
  },
2026
2068
  /** Delete a hook */
2027
- rm: async (id) => {
2069
+ rm: async (id, options) => {
2028
2070
  return this.transport.call({
2029
2071
  groupSegments: ["hooks"],
2030
2072
  command: "rm",
2031
- body: { id },
2073
+ body: { id, ...(options ?? {}) },
2032
2074
  });
2033
2075
  },
2034
2076
  /** Show hook details */
@@ -2040,11 +2082,11 @@ export class RaviClient {
2040
2082
  });
2041
2083
  },
2042
2084
  /** Execute a hook once with a synthetic event */
2043
- test: async (id) => {
2085
+ test: async (id, options) => {
2044
2086
  return this.transport.call({
2045
2087
  groupSegments: ["hooks"],
2046
2088
  command: "test",
2047
- body: { id },
2089
+ body: { id, ...(options ?? {}) },
2048
2090
  });
2049
2091
  }
2050
2092
  };
@@ -2134,11 +2176,11 @@ export class RaviClient {
2134
2176
  });
2135
2177
  },
2136
2178
  /** Republish a locally stored inbox item to NATS */
2137
- replay: async (ref) => {
2179
+ replay: async (ref, options) => {
2138
2180
  return this.transport.call({
2139
2181
  groupSegments: ["inbox"],
2140
2182
  command: "replay",
2141
- body: { ref },
2183
+ body: { ref, ...(options ?? {}) },
2142
2184
  });
2143
2185
  },
2144
2186
  /** Snooze a local inbox item until a timestamp */
@@ -2283,11 +2325,11 @@ export class RaviClient {
2283
2325
  });
2284
2326
  },
2285
2327
  /** Reject and remove a pending contact or chat */
2286
- reject: async (name, contact) => {
2328
+ reject: async (name, contact, options) => {
2287
2329
  return this.transport.call({
2288
2330
  groupSegments: ["instances", "pending"],
2289
2331
  command: "reject",
2290
- body: { name, contact },
2332
+ body: { name, contact, ...(options ?? {}) },
2291
2333
  });
2292
2334
  }
2293
2335
  },
@@ -2390,6 +2432,56 @@ export class RaviClient {
2390
2432
  });
2391
2433
  }
2392
2434
  };
2435
+ jobs = {
2436
+ /** Stop a running job */
2437
+ kill: async (id) => {
2438
+ return this.transport.call({
2439
+ groupSegments: ["jobs"],
2440
+ command: "kill",
2441
+ body: { id },
2442
+ });
2443
+ },
2444
+ /** List jobs */
2445
+ list: async (options) => {
2446
+ return this.transport.call({
2447
+ groupSegments: ["jobs"],
2448
+ command: "list",
2449
+ body: { ...(options ?? {}) },
2450
+ });
2451
+ },
2452
+ /** Start a long command in the background and return immediately */
2453
+ run: async (command, options) => {
2454
+ return this.transport.call({
2455
+ groupSegments: ["jobs"],
2456
+ command: "run",
2457
+ body: { command, ...(options ?? {}) },
2458
+ });
2459
+ },
2460
+ /** Show one job */
2461
+ show: async (id) => {
2462
+ return this.transport.call({
2463
+ groupSegments: ["jobs"],
2464
+ command: "show",
2465
+ body: { id },
2466
+ });
2467
+ },
2468
+ /** Print the job log tail */
2469
+ tail: async (id, options) => {
2470
+ return this.transport.call({
2471
+ groupSegments: ["jobs"],
2472
+ command: "tail",
2473
+ body: { id, ...(options ?? {}) },
2474
+ });
2475
+ },
2476
+ /** Wait for a job to finish */
2477
+ wait: async (id, options) => {
2478
+ return this.transport.call({
2479
+ groupSegments: ["jobs"],
2480
+ command: "wait",
2481
+ body: { id, ...(options ?? {}) },
2482
+ });
2483
+ }
2484
+ };
2393
2485
  mail = {
2394
2486
  accounts: {
2395
2487
  /** Create or update a local mail provider account */
@@ -2825,11 +2917,11 @@ export class RaviClient {
2825
2917
  });
2826
2918
  },
2827
2919
  /** Delete an observer rule */
2828
- rm: async (id) => {
2920
+ rm: async (id, options) => {
2829
2921
  return this.transport.call({
2830
2922
  groupSegments: ["observers", "rules"],
2831
2923
  command: "rm",
2832
- body: { id },
2924
+ body: { id, ...(options ?? {}) },
2833
2925
  });
2834
2926
  },
2835
2927
  /** Create or overwrite an observer rule */
@@ -2867,7 +2959,7 @@ export class RaviClient {
2867
2959
  }
2868
2960
  };
2869
2961
  pages = {
2870
- /** Compatibility: ensure a Ravi Pages host record; does not upload HTML or assets */
2962
+ /** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
2871
2963
  create: async (args, options) => {
2872
2964
  return this.transport.call({
2873
2965
  groupSegments: ["pages"],
@@ -2891,7 +2983,25 @@ export class RaviClient {
2891
2983
  body: { project, ...(options ?? {}) },
2892
2984
  });
2893
2985
  },
2894
- /** Publish a directory, file, or local artifact to a project Pages host */
2986
+ password: {
2987
+ /** Remove a route password after activating an explicit replacement visibility */
2988
+ remove: async (args, options) => {
2989
+ return this.transport.call({
2990
+ groupSegments: ["pages", "password"],
2991
+ command: "remove",
2992
+ body: { args, ...(options ?? {}) },
2993
+ });
2994
+ },
2995
+ /** Show safe route password status without revealing the password */
2996
+ status: async (args, options) => {
2997
+ return this.transport.call({
2998
+ groupSegments: ["pages", "password"],
2999
+ command: "status",
3000
+ body: { args, ...(options ?? {}) },
3001
+ });
3002
+ }
3003
+ },
3004
+ /** Advanced/compat: upload to an existing host or local art_*; prefer pages ship unless the HTML is already art_* */
2895
3005
  publish: async (args, options) => {
2896
3006
  return this.transport.call({
2897
3007
  groupSegments: ["pages"],
@@ -2907,6 +3017,14 @@ export class RaviClient {
2907
3017
  body: { project, ...(options ?? {}) },
2908
3018
  });
2909
3019
  },
3020
+ /** One-shot: ensure a Pages host and publish HTML or a site directory */
3021
+ ship: async (args, options) => {
3022
+ return this.transport.call({
3023
+ groupSegments: ["pages"],
3024
+ command: "ship",
3025
+ body: { args, ...(options ?? {}) },
3026
+ });
3027
+ },
2910
3028
  /** Update a Ravi Pages site in a Console project */
2911
3029
  update: async (args, options) => {
2912
3030
  return this.transport.call({
@@ -2915,7 +3033,7 @@ export class RaviClient {
2915
3033
  body: { args, ...(options ?? {}) },
2916
3034
  });
2917
3035
  },
2918
- /** Set a Ravi Pages site default visibility */
3036
+ /** Set a Ravi Pages site default visibility, or one route with --route */
2919
3037
  visibility: async (args, options) => {
2920
3038
  return this.transport.call({
2921
3039
  groupSegments: ["pages"],
@@ -3359,7 +3477,7 @@ export class RaviClient {
3359
3477
  }
3360
3478
  };
3361
3479
  rules = {
3362
- /** Import provider rules into .ravi/rules/imported */
3480
+ /** Import provider rules into .ravi/rules/imported (dry-run without --write) */
3363
3481
  import: async (source, options) => {
3364
3482
  return this.transport.call({
3365
3483
  groupSegments: ["rules"],
@@ -3459,6 +3577,32 @@ export class RaviClient {
3459
3577
  });
3460
3578
  }
3461
3579
  },
3580
+ env: {
3581
+ /** Show whether an allowlisted env key is set; secret values are redacted */
3582
+ get: async (key) => {
3583
+ return this.transport.call({
3584
+ groupSegments: ["runtime", "env"],
3585
+ command: "get",
3586
+ body: { key },
3587
+ });
3588
+ },
3589
+ /** Atomically set one allowlisted key in the Ravi env file */
3590
+ set: async (key, options) => {
3591
+ return this.transport.call({
3592
+ groupSegments: ["runtime", "env"],
3593
+ command: "set",
3594
+ body: { key, ...(options ?? {}) },
3595
+ });
3596
+ },
3597
+ /** Remove one allowlisted key from the Ravi env file */
3598
+ unset: async (key) => {
3599
+ return this.transport.call({
3600
+ groupSegments: ["runtime", "env"],
3601
+ command: "unset",
3602
+ body: { key },
3603
+ });
3604
+ }
3605
+ },
3462
3606
  presets: {
3463
3607
  /** Create a runtime model preset */
3464
3608
  create: async (id, options) => {
@@ -3524,6 +3668,90 @@ export class RaviClient {
3524
3668
  body: { id },
3525
3669
  });
3526
3670
  }
3671
+ },
3672
+ providers: {
3673
+ claude: {
3674
+ /** Set CLAUDE_CODE_OAUTH_TOKEN and attach a claude-oauth runtime credential */
3675
+ configure: async (options) => {
3676
+ return this.transport.call({
3677
+ groupSegments: ["runtime", "providers", "claude"],
3678
+ command: "configure",
3679
+ body: { ...(options ?? {}) },
3680
+ });
3681
+ }
3682
+ },
3683
+ codex: {
3684
+ login: {
3685
+ /** Cancel a pending Codex device login */
3686
+ cancel: async (id) => {
3687
+ return this.transport.call({
3688
+ groupSegments: ["runtime", "providers", "codex", "login"],
3689
+ command: "cancel",
3690
+ body: { id },
3691
+ });
3692
+ },
3693
+ /** Import Codex CODEX_HOME after the human authorizes */
3694
+ complete: async (id, options) => {
3695
+ return this.transport.call({
3696
+ groupSegments: ["runtime", "providers", "codex", "login"],
3697
+ command: "complete",
3698
+ body: { id, ...(options ?? {}) },
3699
+ });
3700
+ },
3701
+ /** Start Codex device-code login and return URL + user code */
3702
+ start: async () => {
3703
+ return this.transport.call({
3704
+ groupSegments: ["runtime", "providers", "codex", "login"],
3705
+ command: "start",
3706
+ body: {},
3707
+ });
3708
+ },
3709
+ /** Poll a Codex device login */
3710
+ status: async (id) => {
3711
+ return this.transport.call({
3712
+ groupSegments: ["runtime", "providers", "codex", "login"],
3713
+ command: "status",
3714
+ body: { id },
3715
+ });
3716
+ }
3717
+ }
3718
+ },
3719
+ grok: {
3720
+ login: {
3721
+ /** Cancel a pending Grok device login */
3722
+ cancel: async (id) => {
3723
+ return this.transport.call({
3724
+ groupSegments: ["runtime", "providers", "grok", "login"],
3725
+ command: "cancel",
3726
+ body: { id },
3727
+ });
3728
+ },
3729
+ /** Import the Grok auth profile after the human authorizes */
3730
+ complete: async (id, options) => {
3731
+ return this.transport.call({
3732
+ groupSegments: ["runtime", "providers", "grok", "login"],
3733
+ command: "complete",
3734
+ body: { id, ...(options ?? {}) },
3735
+ });
3736
+ },
3737
+ /** Start Grok device-code login and return URL + user code */
3738
+ start: async () => {
3739
+ return this.transport.call({
3740
+ groupSegments: ["runtime", "providers", "grok", "login"],
3741
+ command: "start",
3742
+ body: {},
3743
+ });
3744
+ },
3745
+ /** Poll a Grok device login */
3746
+ status: async (id) => {
3747
+ return this.transport.call({
3748
+ groupSegments: ["runtime", "providers", "grok", "login"],
3749
+ command: "status",
3750
+ body: { id },
3751
+ });
3752
+ }
3753
+ }
3754
+ }
3527
3755
  }
3528
3756
  };
3529
3757
  sdk = {
@@ -3545,6 +3773,24 @@ export class RaviClient {
3545
3773
  });
3546
3774
  }
3547
3775
  },
3776
+ dart: {
3777
+ /** Compare on-disk Ravi Dart SDK sources to a fresh emit; exit 1 on drift */
3778
+ check: async (options) => {
3779
+ return this.transport.call({
3780
+ groupSegments: ["sdk", "dart"],
3781
+ command: "check",
3782
+ body: { ...(options ?? {}) },
3783
+ });
3784
+ },
3785
+ /** Generate the Ravi Dart SDK source files from the live registry */
3786
+ generate: async (options) => {
3787
+ return this.transport.call({
3788
+ groupSegments: ["sdk", "dart"],
3789
+ command: "generate",
3790
+ body: { ...(options ?? {}) },
3791
+ });
3792
+ }
3793
+ },
3548
3794
  openapi: {
3549
3795
  /** Diff a stored OpenAPI spec against the live registry */
3550
3796
  check: async (options) => {
@@ -3681,20 +3927,36 @@ export class RaviClient {
3681
3927
  body: { nameOrKey, ...(options ?? {}) },
3682
3928
  });
3683
3929
  },
3930
+ /** Close the current Slack thread session, optionally returning a result to its parent */
3931
+ closeThread: async (options) => {
3932
+ return this.transport.call({
3933
+ groupSegments: ["sessions"],
3934
+ command: "close-thread",
3935
+ body: { ...(options ?? {}) },
3936
+ });
3937
+ },
3938
+ /** Create a native Slack thread and start a child session in it */
3939
+ createThread: async (message, options) => {
3940
+ return this.transport.call({
3941
+ groupSegments: ["sessions"],
3942
+ command: "create-thread",
3943
+ body: { message, ...(options ?? {}) },
3944
+ });
3945
+ },
3684
3946
  /** Delete a session permanently */
3685
- delete: async (nameOrKey) => {
3947
+ delete: async (nameOrKey, options) => {
3686
3948
  return this.transport.call({
3687
3949
  groupSegments: ["sessions"],
3688
3950
  command: "delete",
3689
- body: { nameOrKey },
3951
+ body: { nameOrKey, ...(options ?? {}) },
3690
3952
  });
3691
3953
  },
3692
3954
  /** Delete one of this session agent's own channel messages */
3693
- deleteMessage: async (sessionOrMessage, messageRef) => {
3955
+ deleteMessage: async (sessionOrMessage, messageRef, options) => {
3694
3956
  return this.transport.call({
3695
3957
  groupSegments: ["sessions"],
3696
3958
  command: "delete-message",
3697
- body: { sessionOrMessage, messageRef },
3959
+ body: { sessionOrMessage, messageRef, ...(options ?? {}) },
3698
3960
  });
3699
3961
  },
3700
3962
  /** Detach a chat/output target from a session */
@@ -3811,7 +4073,7 @@ export class RaviClient {
3811
4073
  });
3812
4074
  }
3813
4075
  },
3814
- /** Inspect or mutate persisted session goal state */
4076
+ /** Control the runtime native goal and refresh its confirmed session snapshot */
3815
4077
  goal: async (action, nameOrKey, objective, options) => {
3816
4078
  return this.transport.call({
3817
4079
  groupSegments: ["sessions"],
@@ -3851,14 +4113,6 @@ export class RaviClient {
3851
4113
  body: { ...(options ?? {}) },
3852
4114
  });
3853
4115
  },
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
4116
  /** Prune sessions inactive for a duration (dry-run by default) */
3863
4117
  prune: async (options) => {
3864
4118
  return this.transport.call({
@@ -3875,6 +4129,14 @@ export class RaviClient {
3875
4129
  body: { nameOrKey, ...(options ?? {}) },
3876
4130
  });
3877
4131
  },
4132
+ /** Compute a bounded recap of a session (identity, goal, recent tail) */
4133
+ recap: async (nameOrKey, options) => {
4134
+ return this.transport.call({
4135
+ groupSegments: ["sessions"],
4136
+ command: "recap",
4137
+ body: { nameOrKey, ...(options ?? {}) },
4138
+ });
4139
+ },
3878
4140
  /** Rename canonical session name */
3879
4141
  rename: async (nameOrKey, newName) => {
3880
4142
  return this.transport.call({
@@ -3884,11 +4146,11 @@ export class RaviClient {
3884
4146
  });
3885
4147
  },
3886
4148
  /** Reset a session (fresh start) */
3887
- reset: async (nameOrKey) => {
4149
+ reset: async (nameOrKey, options) => {
3888
4150
  return this.transport.call({
3889
4151
  groupSegments: ["sessions"],
3890
4152
  command: "reset",
3891
- body: { nameOrKey },
4153
+ body: { nameOrKey, ...(options ?? {}) },
3892
4154
  });
3893
4155
  },
3894
4156
  runtime: {
@@ -3974,19 +4236,19 @@ export class RaviClient {
3974
4236
  });
3975
4237
  },
3976
4238
  /** Set session model override */
3977
- setModel: async (nameOrKey, model) => {
4239
+ setModel: async (nameOrKey, model, options) => {
3978
4240
  return this.transport.call({
3979
4241
  groupSegments: ["sessions"],
3980
4242
  command: "set-model",
3981
- body: { nameOrKey, model },
4243
+ body: { nameOrKey, model, ...(options ?? {}) },
3982
4244
  });
3983
4245
  },
3984
4246
  /** Set session runtime provider override */
3985
- setProvider: async (nameOrKey, provider) => {
4247
+ setProvider: async (nameOrKey, provider, options) => {
3986
4248
  return this.transport.call({
3987
4249
  groupSegments: ["sessions"],
3988
4250
  command: "set-provider",
3989
- body: { nameOrKey, provider },
4251
+ body: { nameOrKey, provider, ...(options ?? {}) },
3990
4252
  });
3991
4253
  },
3992
4254
  /** Set session thinking level */
@@ -4021,14 +4283,6 @@ export class RaviClient {
4021
4283
  body: { nameOrKey, ...(options ?? {}) },
4022
4284
  });
4023
4285
  },
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
4286
  /** Show runtime session visibility state */
4033
4287
  visibility: async (nameOrKey) => {
4034
4288
  return this.transport.call({
@@ -4039,12 +4293,12 @@ export class RaviClient {
4039
4293
  }
4040
4294
  };
4041
4295
  settings = {
4042
- /** Delete a setting */
4043
- delete: async (key) => {
4296
+ /** Delete a setting (dry-run by default; requires --execute) */
4297
+ delete: async (key, options) => {
4044
4298
  return this.transport.call({
4045
4299
  groupSegments: ["settings"],
4046
4300
  command: "delete",
4047
- body: { key },
4301
+ body: { key, ...(options ?? {}) },
4048
4302
  });
4049
4303
  },
4050
4304
  /** Get a setting value */
@@ -4097,20 +4351,20 @@ export class RaviClient {
4097
4351
  body: { ...(options ?? {}) },
4098
4352
  });
4099
4353
  },
4100
- /** Delete a configured override and restore the default behavior */
4101
- reset: async (id) => {
4354
+ /** Delete a configured override and restore the default behavior. Dry-run by default; pass --execute to write. */
4355
+ reset: async (id, options) => {
4102
4356
  return this.transport.call({
4103
4357
  groupSegments: ["skill-gates"],
4104
4358
  command: "reset",
4105
- body: { id },
4359
+ body: { id, ...(options ?? {}) },
4106
4360
  });
4107
4361
  },
4108
- /** Remove a custom gate or disable a default gate */
4109
- rm: async (id) => {
4362
+ /** Remove a custom gate or disable a default gate. Dry-run by default; pass --execute to write. */
4363
+ rm: async (id, options) => {
4110
4364
  return this.transport.call({
4111
4365
  groupSegments: ["skill-gates"],
4112
4366
  command: "rm",
4113
- body: { id },
4367
+ body: { id, ...(options ?? {}) },
4114
4368
  });
4115
4369
  },
4116
4370
  /** Create or overwrite a skill gate rule */
@@ -4155,7 +4409,7 @@ export class RaviClient {
4155
4409
  body: { agent },
4156
4410
  });
4157
4411
  },
4158
- /** Install Ravi catalog skills or skills from an explicit source */
4412
+ /** Install Ravi catalog skills or skills from an explicit source. Git sources and overwrites require --execute. */
4159
4413
  install: async (name, options) => {
4160
4414
  return this.transport.call({
4161
4415
  groupSegments: ["skills"],
@@ -4245,7 +4499,7 @@ export class RaviClient {
4245
4499
  body: { file, ...(options ?? {}) },
4246
4500
  });
4247
4501
  },
4248
- /** Delete Slack standalone canvas access; dry-run unless --execute is set */
4502
+ /** Revoke Slack standalone canvas access; dry-run unless --execute is set */
4249
4503
  canvasAccessDelete: async (canvas, options) => {
4250
4504
  return this.transport.call({
4251
4505
  groupSegments: ["slack"],
@@ -4554,11 +4808,11 @@ export class RaviClient {
4554
4808
  });
4555
4809
  },
4556
4810
  /** Remove a sticker catalog entry */
4557
- remove: async (id) => {
4811
+ remove: async (id, options) => {
4558
4812
  return this.transport.call({
4559
4813
  groupSegments: ["stickers"],
4560
4814
  command: "remove",
4561
- body: { id },
4815
+ body: { id, ...(options ?? {}) },
4562
4816
  });
4563
4817
  },
4564
4818
  /** Send a sticker to the current WhatsApp chat */
@@ -4770,12 +5024,12 @@ export class RaviClient {
4770
5024
  body: { ...(options ?? {}) },
4771
5025
  });
4772
5026
  },
4773
- /** Delete a task automation */
4774
- rm: async (id) => {
5027
+ /** Delete a task automation (dry-run by default; --execute writes) */
5028
+ rm: async (id, options) => {
4775
5029
  return this.transport.call({
4776
5030
  groupSegments: ["tasks", "automations"],
4777
5031
  command: "rm",
4778
- body: { id },
5032
+ body: { id, ...(options ?? {}) },
4779
5033
  });
4780
5034
  },
4781
5035
  /** Show one task automation and its recent runs */
@@ -4828,12 +5082,12 @@ export class RaviClient {
4828
5082
  body: { taskId, ...(options ?? {}) },
4829
5083
  });
4830
5084
  },
4831
- /** Remove one gating dependency from a task */
4832
- rm: async (taskId, dependencyTaskId) => {
5085
+ /** Remove one gating dependency from a task (dry-run by default; --execute writes) */
5086
+ rm: async (taskId, dependencyTaskId, options) => {
4833
5087
  return this.transport.call({
4834
5088
  groupSegments: ["tasks", "deps"],
4835
5089
  command: "rm",
4836
- body: { taskId, dependencyTaskId },
5090
+ body: { taskId, dependencyTaskId, ...(options ?? {}) },
4837
5091
  });
4838
5092
  }
4839
5093
  },
@@ -5112,11 +5366,11 @@ export class RaviClient {
5112
5366
  });
5113
5367
  },
5114
5368
  /** Delete a trigger */
5115
- rm: async (id) => {
5369
+ rm: async (id, options) => {
5116
5370
  return this.transport.call({
5117
5371
  groupSegments: ["triggers"],
5118
5372
  command: "rm",
5119
- body: { id },
5373
+ body: { id, ...(options ?? {}) },
5120
5374
  });
5121
5375
  },
5122
5376
  /** Set trigger property */
@@ -5136,11 +5390,11 @@ export class RaviClient {
5136
5390
  });
5137
5391
  },
5138
5392
  /** Test trigger with fake event data */
5139
- test: async (id) => {
5393
+ test: async (id, options) => {
5140
5394
  return this.transport.call({
5141
5395
  groupSegments: ["triggers"],
5142
5396
  command: "test",
5143
- body: { id },
5397
+ body: { id, ...(options ?? {}) },
5144
5398
  });
5145
5399
  },
5146
5400
  /** List trigger-ready NATS topics */
@@ -5212,11 +5466,11 @@ export class RaviClient {
5212
5466
  });
5213
5467
  },
5214
5468
  /** Remove a watch */
5215
- rm: async (id) => {
5469
+ rm: async (id, options) => {
5216
5470
  return this.transport.call({
5217
5471
  groupSegments: ["watch"],
5218
5472
  command: "rm",
5219
- body: { id },
5473
+ body: { id, ...(options ?? {}) },
5220
5474
  });
5221
5475
  },
5222
5476
  /** Show watch details */
@@ -5423,11 +5677,11 @@ export class RaviClient {
5423
5677
  workflows = {
5424
5678
  runs: {
5425
5679
  /** Archive one node run from workflow aggregate state */
5426
- archiveNode: async (runId, nodeKey) => {
5680
+ archiveNode: async (runId, nodeKey, options) => {
5427
5681
  return this.transport.call({
5428
5682
  groupSegments: ["workflows", "runs"],
5429
5683
  command: "archive-node",
5430
- body: { runId, nodeKey },
5684
+ body: { runId, nodeKey, ...(options ?? {}) },
5431
5685
  });
5432
5686
  },
5433
5687
  /** Cancel one workflow node run */