@parall/cli 1.17.0 → 1.18.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/commands/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/commands/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QA4RpD"}
|
package/dist/commands/tasks.js
CHANGED
|
@@ -240,4 +240,47 @@ export function registerTaskCommands(program) {
|
|
|
240
240
|
printError(err);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
+
// ---- Watchers ----
|
|
244
|
+
tasks
|
|
245
|
+
.command('watch')
|
|
246
|
+
.description('Watch a task (subscribe to comment notifications)')
|
|
247
|
+
.argument('<taskId>', 'Task ID')
|
|
248
|
+
.action(async (taskId) => {
|
|
249
|
+
try {
|
|
250
|
+
const { client, orgId } = resolveCredentials();
|
|
251
|
+
await client.watchTask(orgId, stripPrllScheme(taskId));
|
|
252
|
+
printJson({ ok: true });
|
|
253
|
+
}
|
|
254
|
+
catch (err) {
|
|
255
|
+
printError(err);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
tasks
|
|
259
|
+
.command('unwatch')
|
|
260
|
+
.description('Unwatch a task (stop receiving comment notifications)')
|
|
261
|
+
.argument('<taskId>', 'Task ID')
|
|
262
|
+
.action(async (taskId) => {
|
|
263
|
+
try {
|
|
264
|
+
const { client, orgId } = resolveCredentials();
|
|
265
|
+
await client.unwatchTask(orgId, stripPrllScheme(taskId));
|
|
266
|
+
printJson({ ok: true });
|
|
267
|
+
}
|
|
268
|
+
catch (err) {
|
|
269
|
+
printError(err);
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
tasks
|
|
273
|
+
.command('watchers')
|
|
274
|
+
.description('List watchers of a task')
|
|
275
|
+
.argument('<taskId>', 'Task ID')
|
|
276
|
+
.action(async (taskId) => {
|
|
277
|
+
try {
|
|
278
|
+
const { client, orgId } = resolveCredentials();
|
|
279
|
+
const result = await client.getTaskWatchers(orgId, stripPrllScheme(taskId));
|
|
280
|
+
printJson(result);
|
|
281
|
+
}
|
|
282
|
+
catch (err) {
|
|
283
|
+
printError(err);
|
|
284
|
+
}
|
|
285
|
+
});
|
|
243
286
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "CLI client for Parall — universal agent & human access to Parall API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
31
31
|
"commander": "^13.0.0",
|
|
32
32
|
"zod": "^4.3.6",
|
|
33
|
-
"@parall/sdk": "1.
|
|
33
|
+
"@parall/sdk": "1.18.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|