@circleback/cli 0.9.0 → 1.1.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/README.md +1 -0
- package/dist/commands/actionItems.js +6 -2
- package/dist/commands/registry.js +6 -0
- package/dist/commands/teams.js +7 -0
- package/dist/helpers/formatter.js +1 -0
- package/dist/types.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -62,6 +62,7 @@ cb meetings --json
|
|
|
62
62
|
| `cb action-items create <title>` | Create an action item |
|
|
63
63
|
| `cb action-items update <id>` | Update an action item |
|
|
64
64
|
| `cb action-items delete <id>` | Delete an action item |
|
|
65
|
+
| `cb teams` | List your workspace and teams |
|
|
65
66
|
| `cb tags` | List tags |
|
|
66
67
|
| `cb tags create <name>` | Create a tag |
|
|
67
68
|
| `cb tags update <id>` | Update a tag |
|
|
@@ -36,10 +36,14 @@ exports.createActionItemCommand = (0, command_1.defineToolCommand)(new commander
|
|
|
36
36
|
.description('Create an action item.')
|
|
37
37
|
.argument('<title>', 'Action item title')
|
|
38
38
|
.option('--description <description>', 'Set the description')
|
|
39
|
-
.option('--assignee <id>', 'Assign to a profile ID
|
|
39
|
+
.option('--assignee <id|none>', 'Assign to a profile ID, or none to leave unassigned (defaults to you)')
|
|
40
|
+
.option('--meeting <id>', 'Link to a meeting ID'), types_1.ToolName.CreateActionItem, (title, options) => ({
|
|
40
41
|
title,
|
|
41
42
|
description: options.description,
|
|
42
|
-
assigneeProfileId:
|
|
43
|
+
assigneeProfileId: options.assignee === 'none'
|
|
44
|
+
? null
|
|
45
|
+
: (0, parse_1.parseOptionalIntOption)(options.assignee, '--assignee'),
|
|
46
|
+
meetingId: options.meeting,
|
|
43
47
|
}));
|
|
44
48
|
exports.updateActionItemCommand = (0, command_1.defineToolCommand)(new commander_1.Command('update')
|
|
45
49
|
.description('Update an action item.')
|
|
@@ -11,6 +11,7 @@ const meetings_1 = require("./meetings");
|
|
|
11
11
|
const profiles_1 = require("./profiles");
|
|
12
12
|
const support_1 = require("./support");
|
|
13
13
|
const tags_1 = require("./tags");
|
|
14
|
+
const teams_1 = require("./teams");
|
|
14
15
|
const transcripts_1 = require("./transcripts");
|
|
15
16
|
const update_1 = require("./update");
|
|
16
17
|
const standaloneCommands = [auth_1.authCommand, update_1.updateCommand];
|
|
@@ -55,6 +56,11 @@ const commandGroups = [
|
|
|
55
56
|
description: 'Search emails.',
|
|
56
57
|
subcommands: [emails_1.searchEmailsCommand],
|
|
57
58
|
},
|
|
59
|
+
{
|
|
60
|
+
name: 'teams',
|
|
61
|
+
description: 'List your workspace and teams.',
|
|
62
|
+
subcommands: [teams_1.listTeamsCommand],
|
|
63
|
+
},
|
|
58
64
|
{
|
|
59
65
|
name: 'action-items',
|
|
60
66
|
description: 'Search, create, update, and delete action items.',
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listTeamsCommand = void 0;
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const command_1 = require("../helpers/command");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
exports.listTeamsCommand = (0, command_1.defineToolCommand)(new commander_1.Command('list').description('List your workspace and teams.'), types_1.ToolName.ListTeams, () => ({}));
|
|
@@ -86,6 +86,7 @@ const formatForTool = (toolName, data) => {
|
|
|
86
86
|
return (0, table_1.formatActionItems)(data);
|
|
87
87
|
case types_1.ToolName.ListTags:
|
|
88
88
|
return (0, table_1.formatTags)(data);
|
|
89
|
+
case types_1.ToolName.ListTeams:
|
|
89
90
|
case types_1.ToolName.UpdateMeeting:
|
|
90
91
|
case types_1.ToolName.UpdateCalendarEvent:
|
|
91
92
|
return;
|
package/dist/types.js
CHANGED
|
@@ -25,6 +25,7 @@ var ToolName;
|
|
|
25
25
|
ToolName["SearchEmails"] = "SearchEmails";
|
|
26
26
|
ToolName["SearchActionItems"] = "SearchActionItems";
|
|
27
27
|
ToolName["ListTags"] = "ListTags";
|
|
28
|
+
ToolName["ListTeams"] = "ListTeams";
|
|
28
29
|
ToolName["CreateActionItem"] = "CreateActionItem";
|
|
29
30
|
ToolName["UpdateActionItem"] = "UpdateActionItem";
|
|
30
31
|
ToolName["DeleteActionItem"] = "DeleteActionItem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@circleback/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Circleback CLI. Search and access meetings, emails, calendar events, and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Circleback <support@circleback.ai> (https://circleback.ai)",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"test:unit": "jest --runInBand",
|
|
29
29
|
"postinstall": "echo '\n Welcome to the Circleback CLI. Run `circleback` or `cb` to get started.\n'",
|
|
30
|
-
"prepublishOnly": "
|
|
30
|
+
"prepublishOnly": "pnpm run build"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|