planflow-plugin 0.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/LICENSE +21 -0
- package/README.md +93 -0
- package/bin/cli.js +169 -0
- package/bin/postinstall.js +87 -0
- package/commands/pfActivity/SKILL.md +725 -0
- package/commands/pfAssign/SKILL.md +623 -0
- package/commands/pfCloudLink/SKILL.md +192 -0
- package/commands/pfCloudList/SKILL.md +222 -0
- package/commands/pfCloudNew/SKILL.md +187 -0
- package/commands/pfCloudUnlink/SKILL.md +152 -0
- package/commands/pfComment/SKILL.md +227 -0
- package/commands/pfComments/SKILL.md +159 -0
- package/commands/pfConnectionStatus/SKILL.md +433 -0
- package/commands/pfDiscord/SKILL.md +740 -0
- package/commands/pfGithubBranch/SKILL.md +672 -0
- package/commands/pfGithubIssue/SKILL.md +963 -0
- package/commands/pfGithubLink/SKILL.md +859 -0
- package/commands/pfGithubPr/SKILL.md +1335 -0
- package/commands/pfGithubUnlink/SKILL.md +401 -0
- package/commands/pfLive/SKILL.md +185 -0
- package/commands/pfLogin/SKILL.md +249 -0
- package/commands/pfLogout/SKILL.md +155 -0
- package/commands/pfMyTasks/SKILL.md +198 -0
- package/commands/pfNotificationSettings/SKILL.md +619 -0
- package/commands/pfNotifications/SKILL.md +420 -0
- package/commands/pfNotificationsClear/SKILL.md +421 -0
- package/commands/pfReact/SKILL.md +232 -0
- package/commands/pfSlack/SKILL.md +659 -0
- package/commands/pfSyncPull/SKILL.md +210 -0
- package/commands/pfSyncPush/SKILL.md +299 -0
- package/commands/pfSyncStatus/SKILL.md +212 -0
- package/commands/pfTeamInvite/SKILL.md +161 -0
- package/commands/pfTeamList/SKILL.md +253 -0
- package/commands/pfTeamRemove/SKILL.md +115 -0
- package/commands/pfTeamRole/SKILL.md +160 -0
- package/commands/pfTestWebhooks/SKILL.md +722 -0
- package/commands/pfUnassign/SKILL.md +134 -0
- package/commands/pfWhoami/SKILL.md +258 -0
- package/commands/pfWorkload/SKILL.md +219 -0
- package/commands/planExportCsv/SKILL.md +106 -0
- package/commands/planExportGithub/SKILL.md +222 -0
- package/commands/planExportJson/SKILL.md +159 -0
- package/commands/planExportSummary/SKILL.md +158 -0
- package/commands/planNew/SKILL.md +641 -0
- package/commands/planNext/SKILL.md +1200 -0
- package/commands/planSettingsAutoSync/SKILL.md +199 -0
- package/commands/planSettingsLanguage/SKILL.md +201 -0
- package/commands/planSettingsReset/SKILL.md +237 -0
- package/commands/planSettingsShow/SKILL.md +482 -0
- package/commands/planSpec/SKILL.md +929 -0
- package/commands/planUpdate/SKILL.md +2518 -0
- package/commands/team/SKILL.md +740 -0
- package/locales/en.json +1499 -0
- package/locales/ka.json +1499 -0
- package/package.json +48 -0
- package/templates/PROJECT_PLAN.template.md +157 -0
- package/templates/backend-api.template.md +562 -0
- package/templates/frontend-spa.template.md +610 -0
- package/templates/fullstack.template.md +397 -0
- package/templates/ka/backend-api.template.md +562 -0
- package/templates/ka/frontend-spa.template.md +610 -0
- package/templates/ka/fullstack.template.md +397 -0
- package/templates/sections/architecture.md +21 -0
- package/templates/sections/overview.md +15 -0
- package/templates/sections/tasks.md +22 -0
- package/templates/sections/tech-stack.md +19 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pfTeamRemove
|
|
3
|
+
description: Remove a team member from the current PlanFlow project
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PlanFlow Team Remove
|
|
7
|
+
|
|
8
|
+
Remove a team member from the linked cloud project with confirmation card.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
/pfTeamRemove <email> # Remove member by email
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Step 0: Load Configuration
|
|
17
|
+
|
|
18
|
+
```javascript
|
|
19
|
+
// ... standard config loading ...
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Step 1: Show Usage Card (if no email)
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
26
|
+
│ 👤 Remove Team Member │
|
|
27
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
28
|
+
│ │
|
|
29
|
+
│ ── Usage ─────────────────────────────────────────────────────────────── │
|
|
30
|
+
│ │
|
|
31
|
+
│ /pfTeamRemove <email> │
|
|
32
|
+
│ │
|
|
33
|
+
│ ── Example ───────────────────────────────────────────────────────────── │
|
|
34
|
+
│ │
|
|
35
|
+
│ /pfTeamRemove bob@company.com │
|
|
36
|
+
│ │
|
|
37
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Step 2: Display Success Card
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
44
|
+
│ ✅ SUCCESS │
|
|
45
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
46
|
+
│ │
|
|
47
|
+
│ Member removed from team. │
|
|
48
|
+
│ │
|
|
49
|
+
│ ── Removed Member ────────────────────────────────────────────────────── │
|
|
50
|
+
│ │
|
|
51
|
+
│ 👤 Name: Bob Wilson │
|
|
52
|
+
│ 📧 Email: bob@company.com │
|
|
53
|
+
│ 🔑 Role: Editor │
|
|
54
|
+
│ 📁 Project: Planflow Plugin │
|
|
55
|
+
│ │
|
|
56
|
+
│ ╭──────────────────────╮ │
|
|
57
|
+
│ │ ✓ Access Revoked │ │
|
|
58
|
+
│ ╰──────────────────────╯ │
|
|
59
|
+
│ │
|
|
60
|
+
│ They no longer have access to this project. │
|
|
61
|
+
│ │
|
|
62
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
63
|
+
│ │
|
|
64
|
+
│ 💡 To re-add: │
|
|
65
|
+
│ • /pfTeamInvite bob@company.com │
|
|
66
|
+
│ │
|
|
67
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Error Handling
|
|
72
|
+
|
|
73
|
+
**Cannot Remove Self Card:**
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
77
|
+
│ ❌ ERROR │
|
|
78
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
79
|
+
│ │
|
|
80
|
+
│ You cannot remove yourself from the team. │
|
|
81
|
+
│ │
|
|
82
|
+
│ To leave a project, ask the project owner to remove you. │
|
|
83
|
+
│ │
|
|
84
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Cannot Remove Owner Card (403):**
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
91
|
+
│ ❌ ERROR │
|
|
92
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
93
|
+
│ │
|
|
94
|
+
│ Cannot remove the project owner. │
|
|
95
|
+
│ │
|
|
96
|
+
│ Project ownership must be transferred before the owner can be removed. │
|
|
97
|
+
│ │
|
|
98
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Member Not Found Card (404):**
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
105
|
+
│ ❌ ERROR │
|
|
106
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
107
|
+
│ │
|
|
108
|
+
│ Member not found. │
|
|
109
|
+
│ │
|
|
110
|
+
│ bob@company.com is not a member of this project. │
|
|
111
|
+
│ │
|
|
112
|
+
│ 💡 Run /pfTeamList to see current team members. │
|
|
113
|
+
│ │
|
|
114
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
115
|
+
```
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pfTeamRole
|
|
3
|
+
description: Change a team member's role in the current PlanFlow project
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PlanFlow Team Role
|
|
7
|
+
|
|
8
|
+
Change the role of an existing team member in the linked cloud project with role update card.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
/pfTeamRole <email> <role> # Change member's role
|
|
14
|
+
/pfTeamRole bob@company.com viewer
|
|
15
|
+
/pfTeamRole alice@company.com admin
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Available Roles
|
|
19
|
+
|
|
20
|
+
| Role | Permissions |
|
|
21
|
+
|------|-------------|
|
|
22
|
+
| `admin` | Full access, can manage team members |
|
|
23
|
+
| `editor` | Can edit tasks and plan |
|
|
24
|
+
| `viewer` | Read-only access |
|
|
25
|
+
|
|
26
|
+
## Step 0: Load Configuration
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
// ... standard config loading ...
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Step 1: Show Usage Card (if no arguments)
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
36
|
+
│ 🔑 Change Team Member Role │
|
|
37
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
38
|
+
│ │
|
|
39
|
+
│ ── Usage ─────────────────────────────────────────────────────────────── │
|
|
40
|
+
│ │
|
|
41
|
+
│ /pfTeamRole <email> <role> │
|
|
42
|
+
│ │
|
|
43
|
+
│ ── Available Roles ───────────────────────────────────────────────────── │
|
|
44
|
+
│ │
|
|
45
|
+
│ admin - Full access, can manage team members │
|
|
46
|
+
│ editor - Can edit tasks and plan │
|
|
47
|
+
│ viewer - Read-only access │
|
|
48
|
+
│ │
|
|
49
|
+
│ ── Examples ──────────────────────────────────────────────────────────── │
|
|
50
|
+
│ │
|
|
51
|
+
│ /pfTeamRole bob@company.com viewer │
|
|
52
|
+
│ /pfTeamRole alice@company.com admin │
|
|
53
|
+
│ │
|
|
54
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Step 2: Display Success Card
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
61
|
+
│ ✅ SUCCESS │
|
|
62
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
63
|
+
│ │
|
|
64
|
+
│ Role updated successfully! │
|
|
65
|
+
│ │
|
|
66
|
+
│ ── Role Change Details ──────────────────────────────────────────────── │
|
|
67
|
+
│ │
|
|
68
|
+
│ 👤 Member: Bob Wilson │
|
|
69
|
+
│ 📧 Email: bob@company.com │
|
|
70
|
+
│ 📁 Project: Planflow Plugin │
|
|
71
|
+
│ │
|
|
72
|
+
│ ╭─────────────────────────────────╮ │
|
|
73
|
+
│ │ Editor → Viewer │ │
|
|
74
|
+
│ ╰─────────────────────────────────╯ │
|
|
75
|
+
│ │
|
|
76
|
+
│ The new permissions are effective immediately. │
|
|
77
|
+
│ │
|
|
78
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
79
|
+
│ │
|
|
80
|
+
│ 💡 {t.ui.labels.commands} │
|
|
81
|
+
│ • /pfTeamList View all team members │
|
|
82
|
+
│ │
|
|
83
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
84
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Error Handling
|
|
88
|
+
|
|
89
|
+
**Cannot Change Own Role Card:**
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
93
|
+
│ ❌ ERROR │
|
|
94
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
95
|
+
│ │
|
|
96
|
+
│ You cannot change your own role. │
|
|
97
|
+
│ │
|
|
98
|
+
│ Ask another admin or the project owner to change your role. │
|
|
99
|
+
│ │
|
|
100
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Cannot Change Owner's Role Card (403):**
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
107
|
+
│ ❌ ERROR │
|
|
108
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
109
|
+
│ │
|
|
110
|
+
│ Cannot change the owner's role. │
|
|
111
|
+
│ │
|
|
112
|
+
│ The owner role cannot be changed. Ownership must be transferred instead. │
|
|
113
|
+
│ │
|
|
114
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Member Not Found Card (404):**
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
121
|
+
│ ❌ ERROR │
|
|
122
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
123
|
+
│ │
|
|
124
|
+
│ Member not found. │
|
|
125
|
+
│ │
|
|
126
|
+
│ bob@company.com is not a member of this project. │
|
|
127
|
+
│ │
|
|
128
|
+
│ 💡 Run /pfTeamList to see current team members. │
|
|
129
|
+
│ │
|
|
130
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Invalid Role Card:**
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
137
|
+
│ ❌ ERROR │
|
|
138
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
139
|
+
│ │
|
|
140
|
+
│ Invalid role: superadmin │
|
|
141
|
+
│ │
|
|
142
|
+
│ Valid roles: admin, editor, viewer │
|
|
143
|
+
│ │
|
|
144
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Same Role Card (No Change):**
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
151
|
+
│ ℹ️ INFO │
|
|
152
|
+
├──────────────────────────────────────────────────────────────────────────────┤
|
|
153
|
+
│ │
|
|
154
|
+
│ No change needed. │
|
|
155
|
+
│ │
|
|
156
|
+
│ bob@company.com already has the role: editor │
|
|
157
|
+
│ │
|
|
158
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
159
|
+
```
|
|
160
|
+
|