@ravi-os/sdk 0.260915.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.
- package/dist/client.d.ts +56 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +68 -10
- package/dist/client.js.map +1 -1
- package/dist/fetch.d.ts +14 -0
- package/dist/fetch.d.ts.map +1 -0
- package/dist/fetch.js +20 -0
- package/dist/fetch.js.map +1 -0
- package/dist/schemas.d.ts +1504 -200
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2014 -258
- package/dist/schemas.js.map +1 -1
- package/dist/streaming.generated.d.ts.map +1 -1
- package/dist/streaming.generated.js +2 -4
- package/dist/streaming.generated.js.map +1 -1
- package/dist/transport/http.d.ts.map +1 -1
- package/dist/transport/http.js +2 -4
- package/dist/transport/http.js.map +1 -1
- package/dist/types.d.ts +313 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -105,12 +105,12 @@ export class RaviClient {
|
|
|
105
105
|
body: { id },
|
|
106
106
|
});
|
|
107
107
|
},
|
|
108
|
-
/** Set agent property
|
|
109
|
-
set: async (id, key, value) => {
|
|
108
|
+
/** Set agent property; rematerialize no-override sessions when provider/model changes */
|
|
109
|
+
set: async (id, key, value, options) => {
|
|
110
110
|
return this.transport.call({
|
|
111
111
|
groupSegments: ["agents"],
|
|
112
112
|
command: "set",
|
|
113
|
-
body: { id, key, value },
|
|
113
|
+
body: { id, key, value, ...(options ?? {}) },
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
116
|
/** Show agent details */
|
|
@@ -407,6 +407,14 @@ export class RaviClient {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
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
|
+
},
|
|
410
418
|
/** List your Console bug reports */
|
|
411
419
|
list: async (options) => {
|
|
412
420
|
return this.transport.call({
|
|
@@ -1136,11 +1144,11 @@ export class RaviClient {
|
|
|
1136
1144
|
});
|
|
1137
1145
|
},
|
|
1138
1146
|
/** Evaluate a Codex PreToolUse Bash hook payload from stdin using the current Ravi context */
|
|
1139
|
-
codexBashHook: async () => {
|
|
1147
|
+
codexBashHook: async (options) => {
|
|
1140
1148
|
return this.transport.call({
|
|
1141
1149
|
groupSegments: ["context"],
|
|
1142
1150
|
command: "codex-bash-hook",
|
|
1143
|
-
body: {},
|
|
1151
|
+
body: { ...(options ?? {}) },
|
|
1144
1152
|
});
|
|
1145
1153
|
},
|
|
1146
1154
|
credentials: {
|
|
@@ -2424,6 +2432,56 @@ export class RaviClient {
|
|
|
2424
2432
|
});
|
|
2425
2433
|
}
|
|
2426
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
|
+
};
|
|
2427
2485
|
mail = {
|
|
2428
2486
|
accounts: {
|
|
2429
2487
|
/** Create or update a local mail provider account */
|
|
@@ -2975,7 +3033,7 @@ export class RaviClient {
|
|
|
2975
3033
|
body: { args, ...(options ?? {}) },
|
|
2976
3034
|
});
|
|
2977
3035
|
},
|
|
2978
|
-
/** Set a Ravi Pages site default visibility */
|
|
3036
|
+
/** Set a Ravi Pages site default visibility, or one route with --route */
|
|
2979
3037
|
visibility: async (args, options) => {
|
|
2980
3038
|
return this.transport.call({
|
|
2981
3039
|
groupSegments: ["pages"],
|
|
@@ -4178,19 +4236,19 @@ export class RaviClient {
|
|
|
4178
4236
|
});
|
|
4179
4237
|
},
|
|
4180
4238
|
/** Set session model override */
|
|
4181
|
-
setModel: async (nameOrKey, model) => {
|
|
4239
|
+
setModel: async (nameOrKey, model, options) => {
|
|
4182
4240
|
return this.transport.call({
|
|
4183
4241
|
groupSegments: ["sessions"],
|
|
4184
4242
|
command: "set-model",
|
|
4185
|
-
body: { nameOrKey, model },
|
|
4243
|
+
body: { nameOrKey, model, ...(options ?? {}) },
|
|
4186
4244
|
});
|
|
4187
4245
|
},
|
|
4188
4246
|
/** Set session runtime provider override */
|
|
4189
|
-
setProvider: async (nameOrKey, provider) => {
|
|
4247
|
+
setProvider: async (nameOrKey, provider, options) => {
|
|
4190
4248
|
return this.transport.call({
|
|
4191
4249
|
groupSegments: ["sessions"],
|
|
4192
4250
|
command: "set-provider",
|
|
4193
|
-
body: { nameOrKey, provider },
|
|
4251
|
+
body: { nameOrKey, provider, ...(options ?? {}) },
|
|
4194
4252
|
});
|
|
4195
4253
|
},
|
|
4196
4254
|
/** Set session thinking level */
|