@parall/cli 1.32.1 → 1.33.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":"chats.d.ts","sourceRoot":"","sources":["../../src/commands/chats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/commands/chats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QA+IpD"}
|
package/dist/commands/chats.js
CHANGED
|
@@ -116,11 +116,14 @@ export function registerChatCommands(program) {
|
|
|
116
116
|
.description('Add a member to a chat')
|
|
117
117
|
.argument('<chatId>', 'Chat ID')
|
|
118
118
|
.requiredOption('--user-id <userId>', 'User ID to add')
|
|
119
|
-
.option('--role <role>', '
|
|
119
|
+
.option('--role <role>', 'Deprecated. Only "member" is supported')
|
|
120
120
|
.action(async (chatId, opts) => {
|
|
121
121
|
try {
|
|
122
|
+
if (opts.role !== undefined && opts.role !== 'member') {
|
|
123
|
+
throw new Error('--role only supports "member"; update the role after adding the member');
|
|
124
|
+
}
|
|
122
125
|
const { client, orgId } = resolveCredentials();
|
|
123
|
-
await client.addChatMember(orgId, stripPrllScheme(chatId), stripPrllScheme(opts.userId)
|
|
126
|
+
await client.addChatMember(orgId, stripPrllScheme(chatId), stripPrllScheme(opts.userId));
|
|
124
127
|
printJson({ ok: true });
|
|
125
128
|
}
|
|
126
129
|
catch (err) {
|
package/dist/commands/clip.js
CHANGED
|
@@ -58,6 +58,7 @@ export function registerClipCommands(program) {
|
|
|
58
58
|
.description('Install a clip from a registry source')
|
|
59
59
|
.argument('<source>', 'Registry source identifier (used as name and alias)')
|
|
60
60
|
.option('--alias <alias>', 'Override the alias (default: derived from source)')
|
|
61
|
+
.requiredOption('-m, --machine-id <machineId>', 'Machine ID that runs this clip')
|
|
61
62
|
.action(async (source, opts) => {
|
|
62
63
|
try {
|
|
63
64
|
const { client, orgId } = resolveCredentials();
|
|
@@ -65,10 +66,9 @@ export function registerClipCommands(program) {
|
|
|
65
66
|
const alias = opts.alias ?? deriveAlias(source);
|
|
66
67
|
const req = {
|
|
67
68
|
alias,
|
|
68
|
-
name: source,
|
|
69
|
-
manifest: {},
|
|
70
69
|
source_type: 'registry',
|
|
71
70
|
source_ref: source,
|
|
71
|
+
machine_id: opts.machineId,
|
|
72
72
|
};
|
|
73
73
|
const clip = await client.createClip(orgId, req);
|
|
74
74
|
printJson(clip);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.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.33.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|