@neta-art/cohub-cli 1.10.0 → 1.11.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.
@@ -187,12 +187,13 @@ async function sendPrompt(command, words, opts) {
187
187
  content: [{ type: "text", text: content }],
188
188
  model: opts.model,
189
189
  provider: opts.provider,
190
+ accessMode: opts.readOnly ? "read_only" : "full_access",
190
191
  schedule,
191
192
  });
192
193
  if (jsonRequested(opts))
193
194
  return outJson(result);
194
195
  if (result.mode === "immediate")
195
- return ok(`Prompt sent — sessionId: ${result.sessionId}, turnId: ${result.turnId}`);
196
+ return ok(`Prompt sent — sessionId: ${result.session.id}, turnId: ${result.turn.id}`);
196
197
  if (result.mode === "repeat")
197
198
  return ok(`Prompt scheduled — cronJobId: ${result.cronJobId}, nextRunAt: ${result.nextRunAt}`);
198
199
  return ok(`Prompt scheduled — taskRunId: ${result.taskRunId}, scheduledAt: ${result.scheduledAt}`);
@@ -209,6 +210,7 @@ export function registerPrompt(program) {
209
210
  .option("--title <title>", "Title for a newly created session or schedule")
210
211
  .option("-m, --model <model>", "Model name")
211
212
  .option("-p, --provider <provider>", "Provider name")
213
+ .option("--read-only", "Use read-only tools")
212
214
  .option("--delay-ms <ms>", "Delay sending by milliseconds")
213
215
  .option("--at <iso>", "Send once at an ISO 8601 time with timezone")
214
216
  .option("--cron <expression>", "Repeat using a 5-field cron expression")
@@ -366,6 +368,7 @@ export function registerSpaces(program) {
366
368
  .option("--title <title>", "Title for a newly created session or schedule")
367
369
  .option("-m, --model <model>", "Model name")
368
370
  .option("-p, --provider <provider>", "Provider name")
371
+ .option("--read-only", "Use read-only tools")
369
372
  .option("--delay-ms <ms>", "Delay sending by milliseconds")
370
373
  .option("--at <iso>", "Send once at an ISO 8601 time with timezone")
371
374
  .option("--cron <expression>", "Repeat using a 5-field cron expression")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub-cli",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -14,15 +14,15 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@neta-art/generation": "^0.1.2",
17
- "commander": "^13.1.0",
17
+ "commander": "^14.0.3",
18
18
  "sharp": "^0.34.5",
19
- "@neta-art/cohub": "1.18.0"
19
+ "@neta-art/cohub": "1.19.0"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "^22.0.0",
25
+ "@types/node": "^25.9.1",
26
26
  "typescript": "^6.0.3"
27
27
  },
28
28
  "scripts": {