@neta-art/cohub-cli 2.6.1 → 2.7.0
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/commands/spaces.js +10 -2
- package/package.json +2 -2
package/dist/commands/spaces.js
CHANGED
|
@@ -196,6 +196,11 @@ async function sendPrompt(command, words, opts) {
|
|
|
196
196
|
return error("Conflicting schedule", "Use only one of --delay-ms, --at, or --cron");
|
|
197
197
|
if (opts.cron && !opts.timezone)
|
|
198
198
|
return error("Missing timezone", "--timezone is required with --cron");
|
|
199
|
+
const thinkingLevel = opts.thinkingLevel?.trim() || undefined;
|
|
200
|
+
if (thinkingLevel
|
|
201
|
+
&& !new Set(["off", "minimal", "low", "medium", "high", "xhigh", "max"]).has(thinkingLevel)) {
|
|
202
|
+
return error("Invalid thinking level", "Use off|minimal|low|medium|high|xhigh|max");
|
|
203
|
+
}
|
|
199
204
|
const spaceId = resolveSpace(command);
|
|
200
205
|
const client = createClient();
|
|
201
206
|
try {
|
|
@@ -238,6 +243,7 @@ async function sendPrompt(command, words, opts) {
|
|
|
238
243
|
content: promptContent,
|
|
239
244
|
model: opts.model,
|
|
240
245
|
provider: opts.provider,
|
|
246
|
+
thinkingLevel: thinkingLevel,
|
|
241
247
|
accessMode: opts.readOnly ? "read_only" : "full_access",
|
|
242
248
|
intent: opts.steer ? "steer" : undefined,
|
|
243
249
|
env: parseEnvOptions(opts.env),
|
|
@@ -281,8 +287,8 @@ async function runCompletionCommand(command, words, opts) {
|
|
|
281
287
|
}
|
|
282
288
|
const thinkingLevel = opts.thinkingLevel?.trim() || undefined;
|
|
283
289
|
if (thinkingLevel
|
|
284
|
-
&& !new Set(["off", "minimal", "low", "medium", "high", "xhigh"]).has(thinkingLevel)) {
|
|
285
|
-
return error("Invalid thinking level", "Use off|minimal|low|medium|high|xhigh");
|
|
290
|
+
&& !new Set(["off", "minimal", "low", "medium", "high", "xhigh", "max"]).has(thinkingLevel)) {
|
|
291
|
+
return error("Invalid thinking level", "Use off|minimal|low|medium|high|xhigh|max");
|
|
286
292
|
}
|
|
287
293
|
const client = createClient();
|
|
288
294
|
const input = {
|
|
@@ -343,6 +349,7 @@ export function registerPrompt(program) {
|
|
|
343
349
|
.option("--title <title>", "Title for a newly created session or schedule")
|
|
344
350
|
.option("-m, --model <model>", "Model name")
|
|
345
351
|
.option("-p, --provider <provider>", "Provider name")
|
|
352
|
+
.option("--thinking-level <level>", "Thinking level: off|minimal|low|medium|high|xhigh|max")
|
|
346
353
|
.option("--read-only", "Use read-only tools")
|
|
347
354
|
.option("--steer", "Interrupt the current turn and run immediately")
|
|
348
355
|
.option("--delay-ms <ms>", "Delay sending by milliseconds")
|
|
@@ -559,6 +566,7 @@ export function registerSpaces(program) {
|
|
|
559
566
|
.option("--title <title>", "Title for a newly created session or schedule")
|
|
560
567
|
.option("-m, --model <model>", "Model name")
|
|
561
568
|
.option("-p, --provider <provider>", "Provider name")
|
|
569
|
+
.option("--thinking-level <level>", "Thinking level: off|minimal|low|medium|high|xhigh|max")
|
|
562
570
|
.option("--read-only", "Use read-only tools")
|
|
563
571
|
.option("--steer", "Interrupt the current turn and run immediately")
|
|
564
572
|
.option("--delay-ms <ms>", "Delay sending by milliseconds")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neta-art/cohub-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@neta-art/generation": "^0.1.16",
|
|
19
19
|
"commander": "^15.0.0",
|
|
20
20
|
"sharp": "^0.35.3",
|
|
21
|
-
"@neta-art/cohub": "2.
|
|
21
|
+
"@neta-art/cohub": "2.15.0"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|