@arbidocs/tui 0.4.16 → 0.4.18
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/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1251,7 +1251,7 @@ var conversationCommands = [
|
|
|
1251
1251
|
const { args, arbi } = ctx;
|
|
1252
1252
|
const [id, ...titleParts] = args;
|
|
1253
1253
|
const title = titleParts.join(" ");
|
|
1254
|
-
await sdk.
|
|
1254
|
+
await sdk.work.updateConversation(arbi, id, { title });
|
|
1255
1255
|
return `Renamed conversation ${id} to: ${colors.accent(title)}`;
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
@@ -1263,9 +1263,20 @@ var conversationCommands = [
|
|
|
1263
1263
|
requires: "workspace",
|
|
1264
1264
|
run: async (ctx) => {
|
|
1265
1265
|
const { args, arbi } = ctx;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1266
|
+
await sdk.work.updateConversation(arbi, args[0], { shared: true });
|
|
1267
|
+
return `${colors.success("Shared")} conversation ${args[0]} with the workspace`;
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
name: "conv-unshare",
|
|
1272
|
+
description: "Make a shared conversation private again",
|
|
1273
|
+
argHint: "id",
|
|
1274
|
+
minArgs: 1,
|
|
1275
|
+
requires: "workspace",
|
|
1276
|
+
run: async (ctx) => {
|
|
1277
|
+
const { args, arbi } = ctx;
|
|
1278
|
+
await sdk.work.updateConversation(arbi, args[0], { shared: false });
|
|
1279
|
+
return `${colors.success("Private")} again: conversation ${args[0]}`;
|
|
1269
1280
|
}
|
|
1270
1281
|
}
|
|
1271
1282
|
];
|