implto-tos-axi 0.1.11 → 0.1.13
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 +50 -19
- package/dist/src/cli.js +24 -7
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/artifacts.d.ts +1 -0
- package/dist/src/commands/artifacts.js +87 -2
- package/dist/src/commands/artifacts.js.map +1 -1
- package/dist/src/commands/guide.js +221 -16
- package/dist/src/commands/guide.js.map +1 -1
- package/dist/src/commands/notifications.d.ts +38 -0
- package/dist/src/commands/notifications.js +138 -3
- package/dist/src/commands/notifications.js.map +1 -1
- package/dist/src/commands/tasks.d.ts +6 -0
- package/dist/src/commands/tasks.js +17 -2
- package/dist/src/commands/tasks.js.map +1 -1
- package/dist/src/commands/tools.d.ts +21 -0
- package/dist/src/commands/tools.js +46 -2
- package/dist/src/commands/tools.js.map +1 -1
- package/dist/src/mcp/client.d.ts +8 -0
- package/dist/src/mcp/client.js +10 -4
- package/dist/src/mcp/client.js.map +1 -1
- package/dist/src/skill.js +105 -25
- package/dist/src/skill.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/skills/implto-tos-artifacts/SKILL.md +3 -1
- package/skills/implto-tos-axi/SKILL.md +8 -7
- package/skills/implto-tos-commit-key/SKILL.md +6 -5
- package/skills/implto-tos-notifications/SKILL.md +41 -0
- package/skills/implto-tos-tasks/SKILL.md +11 -9
- package/skills/implto-tos-workspace/SKILL.md +3 -3
- package/skills/implto-tos-workspace-issues-status/SKILL.md +41 -0
|
@@ -6,7 +6,9 @@ export const TOPICS = {
|
|
|
6
6
|
" implto-tos-axi context",
|
|
7
7
|
"It gives you the project, the status names, and which field assigns to you.",
|
|
8
8
|
"",
|
|
9
|
-
"
|
|
9
|
+
"Do the work first. Right before your first commit, find the task or",
|
|
10
|
+
"file one; a session that only plans, investigates or answers files",
|
|
11
|
+
"nothing. A key the request names is the task.",
|
|
10
12
|
' implto-tos-axi tasks search "two or three words from the change" --open',
|
|
11
13
|
"Take the keywords from what the change does, not from the file names.",
|
|
12
14
|
"",
|
|
@@ -18,15 +20,19 @@ export const TOPICS = {
|
|
|
18
20
|
' implto-tos-axi tasks update TO-112 --status "In Progress" --assign me',
|
|
19
21
|
"On no:",
|
|
20
22
|
' implto-tos-axi tasks create "Imperative one-line title" --assign me \\',
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
' --status "In Progress" --estimate 2 --description-file -',
|
|
24
|
+
"--estimate is required, in hours: a conventional estimate for the",
|
|
25
|
+
"task's scope, divided by at least two for agent-assisted work - not",
|
|
26
|
+
"the time this session took.",
|
|
27
|
+
"Write the description in plain words for someone who does not read",
|
|
28
|
+
"code, as long as the task needs and with no headings. The whole rule",
|
|
29
|
+
"is `guide commit-key`.",
|
|
26
30
|
"",
|
|
27
31
|
"When the work is done:",
|
|
28
32
|
' implto-tos-axi tasks comment TO-112 "What changed, and the PR link"',
|
|
29
33
|
" implto-tos-axi tasks update TO-112 --status Done",
|
|
34
|
+
"Technical detail - how it was built or tested - goes in the pull",
|
|
35
|
+
"request, not in the task.",
|
|
30
36
|
"",
|
|
31
37
|
"If the change introduced a deliverable the workspace does not record,",
|
|
32
38
|
"`guide components` is the same procedure for the component tree.",
|
|
@@ -49,6 +55,12 @@ export const TOPICS = {
|
|
|
49
55
|
"history has any. Neither a rule nor a key in the history means none is",
|
|
50
56
|
"wanted: stop here.",
|
|
51
57
|
"",
|
|
58
|
+
"When: right before your first commit, not when the session starts.",
|
|
59
|
+
"Do the work, then find or file its task: by then you know what the",
|
|
60
|
+
"change does, so its title, description and estimate describe the",
|
|
61
|
+
"real work. Work that is never committed: when it is done. A session",
|
|
62
|
+
"that only plans, investigates or answers files no task.",
|
|
63
|
+
"",
|
|
52
64
|
"Already known - in the branch name, in this branch's commits, or named",
|
|
53
65
|
"by the person? Read it, with the key it cites, and go straight to that:",
|
|
54
66
|
" implto-tos-axi tasks show ER-4878",
|
|
@@ -63,8 +75,8 @@ export const TOPICS = {
|
|
|
63
75
|
"decide alone. On yes, if it is not in progress yet:",
|
|
64
76
|
' implto-tos-axi tasks update ER-4878 --status "In Progress" --assign me',
|
|
65
77
|
"",
|
|
66
|
-
"Nothing fits: draft a task
|
|
67
|
-
"who is there:",
|
|
78
|
+
"Nothing fits: draft a task from what the change does. Whether to ask",
|
|
79
|
+
"before filing it depends on who is there:",
|
|
68
80
|
" - someone at the keyboard: show the draft, file it only on a yes",
|
|
69
81
|
" - unattended, nobody to answer (a gnhf overnight run, a headless",
|
|
70
82
|
" job): file it, and name it in the run's report",
|
|
@@ -80,14 +92,23 @@ export const TOPICS = {
|
|
|
80
92
|
' No key, no "fix:", no file names, no trailing period.',
|
|
81
93
|
" Type --type Bug when it corrects a defect; the default otherwise.",
|
|
82
94
|
" context lists the project's type names.",
|
|
83
|
-
" Body
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
95
|
+
" Body Plain words for someone who does not read code - whoever scans",
|
|
96
|
+
" the board, not whoever reviews the diff. No headings. Open with",
|
|
97
|
+
" one to three sentences: what changes for the people who use it,",
|
|
98
|
+
" and why. Then a bullet for each main part, when there are",
|
|
99
|
+
" several. Let the work set the length: a small fix needs a",
|
|
100
|
+
" sentence or two; a large feature keeps every part a reader",
|
|
101
|
+
" should know about, and says what is left out. Leave out file,",
|
|
102
|
+
" code, library and database names, how it was built or tested,",
|
|
103
|
+
" and anything about how the agent works - its plans, reviews,",
|
|
104
|
+
" approvals, sessions or tools. That belongs in the pull request.",
|
|
105
|
+
" A small fix, for example:",
|
|
106
|
+
" Saving a campaign could wipe out its budget when the budget",
|
|
107
|
+
" field was left empty. Now the budget stays as it was, and",
|
|
108
|
+
" the editor asks before removing one.",
|
|
109
|
+
" Time --estimate is required, in hours: a conventional estimate for",
|
|
110
|
+
" the task's scope, divided by at least two for agent-assisted",
|
|
111
|
+
" work - not the time this session took.",
|
|
91
112
|
"",
|
|
92
113
|
"The key to cite is `cite` in the output, and which key that is depends",
|
|
93
114
|
"on the project - context says which:",
|
|
@@ -104,6 +125,9 @@ export const TOPICS = {
|
|
|
104
125
|
" commit [ER-4878] Block clearing campaign budgets in the editor",
|
|
105
126
|
" branch ER-4878-block-budget-clear",
|
|
106
127
|
" PR [ER-4878] Block clearing campaign budgets in the editor",
|
|
128
|
+
"A branch named before the task was filed: rename it once you have the",
|
|
129
|
+
"key. There are no commits yet, so nothing else points at the old name:",
|
|
130
|
+
" git branch -m ER-4878-block-budget-clear",
|
|
107
131
|
"The platform links a pull request by the key in its title or branch",
|
|
108
132
|
"name, and a commit by its subject line. A key only in a body links",
|
|
109
133
|
"nothing.",
|
|
@@ -171,6 +195,14 @@ export const TOPICS = {
|
|
|
171
195
|
"The title comes from the page's <title> unless --title says otherwise.",
|
|
172
196
|
"A page identical to the current version adds nothing.",
|
|
173
197
|
"",
|
|
198
|
+
"A page made for a task belongs on it: link it, by the task's key or",
|
|
199
|
+
"its Jira key, rather than naming the key in the title or commenting",
|
|
200
|
+
"the link on the task. Linking notifies nobody; it shows on the task.",
|
|
201
|
+
" implto-tos-axi artifacts publish report/index.html --task DT-148",
|
|
202
|
+
" implto-tos-axi artifacts link <id> --task DT-148",
|
|
203
|
+
" implto-tos-axi artifacts unlink <id> --task DT-148",
|
|
204
|
+
"`tasks show` lists a task's pages, `artifacts show` a page's tasks.",
|
|
205
|
+
"",
|
|
174
206
|
"Change someone else's page from its current text, not from memory:",
|
|
175
207
|
" implto-tos-axi artifacts pull <id> --out page.html",
|
|
176
208
|
" # edit page.html",
|
|
@@ -185,6 +217,179 @@ export const TOPICS = {
|
|
|
185
217
|
"it and workspace admins.",
|
|
186
218
|
].join("\n"),
|
|
187
219
|
},
|
|
220
|
+
notifications: {
|
|
221
|
+
summary: "Go through your notifications: show them, answer one, plan the rest",
|
|
222
|
+
guidance: [
|
|
223
|
+
"Notifications are the web app's bell: mentions, replies to you, comments",
|
|
224
|
+
"on tasks assigned to you, and assignments. They are the person's own and",
|
|
225
|
+
"span every workspace, so no binding is needed.",
|
|
226
|
+
"",
|
|
227
|
+
" implto-tos-axi notifications Unread, newest first",
|
|
228
|
+
" implto-tos-axi notifications show <key> The conversation, the comment marked",
|
|
229
|
+
" implto-tos-axi notifications reply <key> - Answer it, the text from stdin",
|
|
230
|
+
" implto-tos-axi notifications read <key>... Seen, nothing to answer",
|
|
231
|
+
"",
|
|
232
|
+
'"Show my notifications": list them and say, a line each, who, why and on',
|
|
233
|
+
"which task. More pages or `--status all` only when asked.",
|
|
234
|
+
"",
|
|
235
|
+
'"Reply to that one": `show` it first - the whole thread, not the excerpt.',
|
|
236
|
+
"Draft the reply and show it to the person before sending: it posts as",
|
|
237
|
+
"them, and clients read these threads. Send only on a yes, or when they",
|
|
238
|
+
"gave the words. The reply goes to the root of the comment's thread, so",
|
|
239
|
+
"everyone in it sees it, and marks the notification read.",
|
|
240
|
+
"",
|
|
241
|
+
'"Go through them and tell me what to do": list, then `show` each one',
|
|
242
|
+
"whose excerpt is not enough. Answer with one line per notification: the",
|
|
243
|
+
"key, the task, what is asked, and the action - a reply (with its draft),",
|
|
244
|
+
"work on the task, or nothing. Send nothing and mark nothing read until",
|
|
245
|
+
"the person picks. A comment asking for a change is work on its task,",
|
|
246
|
+
"not a reply: `tasks show <task>`, then `guide workflow`.",
|
|
247
|
+
"",
|
|
248
|
+
"An assignment has no conversation - its key is not a message. Read the",
|
|
249
|
+
"task instead.",
|
|
250
|
+
"",
|
|
251
|
+
"`read --all` clears the badge without anybody having read them: only",
|
|
252
|
+
"on request. A mention in a reply is [@Name](mention://<id>); `show`",
|
|
253
|
+
"lists the ids under people.",
|
|
254
|
+
].join("\n"),
|
|
255
|
+
},
|
|
256
|
+
"issues-status": {
|
|
257
|
+
summary: "Where a whole workspace stands: group its tasks, summarize, publish a page",
|
|
258
|
+
guidance: [
|
|
259
|
+
"For a weekly call, or anyone asking where things stand: every task in",
|
|
260
|
+
"the workspace, grouped into the few pieces of work people talk about,",
|
|
261
|
+
"each saying where it is, what is done, what is needed, what comes next",
|
|
262
|
+
"and who has it. One page, refreshed - instead of a task-by-task walk.",
|
|
263
|
+
"",
|
|
264
|
+
"The workspace is the binding's, or --workspace <name> on every call",
|
|
265
|
+
"below; outside a bound checkout every call needs it. Pass --out to",
|
|
266
|
+
"every tools call: the result lands in a file as JSON, and you read it",
|
|
267
|
+
"with code. Printed output is not JSON and is too much for a reply.",
|
|
268
|
+
"",
|
|
269
|
+
"1. Gather - every project in the workspace, not just the bound one.",
|
|
270
|
+
" implto-tos-axi tools call get_tasks_functionality_context --out context.json",
|
|
271
|
+
" the statuses, which of them are closed, and every person by id",
|
|
272
|
+
" implto-tos-axi tools call search_tasks limit=100 offset=0 \\",
|
|
273
|
+
" fields=key,title,description,statusId,priority,dueDate,closedAt,\\",
|
|
274
|
+
"iTodayAssigneeId,clientAssigneeId,iTodayCoAssigneeIds,clientCoAssigneeIds,\\",
|
|
275
|
+
"componentId,processMapId,processStepId --out tasks-0.json",
|
|
276
|
+
" then offset=100, 200 ... until a page holds fewer than 100 rows.",
|
|
277
|
+
" Closed work comes back if it closed in the last week, or if it",
|
|
278
|
+
' has no closedAt at all - that is old work: "earlier", never news.',
|
|
279
|
+
" The previous page older than a week: also search includeStale=true",
|
|
280
|
+
" fields=key,title,statusId,closedAt, paged the same way, and keep",
|
|
281
|
+
" what closed after the previous page's date.",
|
|
282
|
+
" implto-tos-axi tools call list_components --out components.json",
|
|
283
|
+
" implto-tos-axi tools call list_process_maps --out maps.json",
|
|
284
|
+
" implto-tos-axi tools call list_communication_threads feed=all \\",
|
|
285
|
+
" limit=100 --out threads-0.json",
|
|
286
|
+
" a row per task: its first and latest message, newest first. Follow",
|
|
287
|
+
" nextCursor to the end - an old thread is where a question has gone",
|
|
288
|
+
" unanswered longest - and drop rows whose task is not in your list.",
|
|
289
|
+
" Read the whole conversation (get_communication_thread",
|
|
290
|
+
" messageId=<rootId>) when messageCount is 3 or more and",
|
|
291
|
+
" lastActivityAt is in the last three weeks, or the latest",
|
|
292
|
+
" message refers back; with 1-2 the row already holds all of it.",
|
|
293
|
+
' implto-tos-axi artifacts list --search "where things stand"',
|
|
294
|
+
" the previous page, if any: `artifacts pull` it to say what moved.",
|
|
295
|
+
"",
|
|
296
|
+
"Do not judge movement by updatedAt: bulk edits restamp it. Something",
|
|
297
|
+
"moved when it closed, changed status, or got a comment. And",
|
|
298
|
+
"estimatedReleaseDate is a scheduler's projection, not a promise.",
|
|
299
|
+
"",
|
|
300
|
+
"2. Group. A group is one piece of work the client would name - a",
|
|
301
|
+
"feature going live, a migration, an integration - in their words, not",
|
|
302
|
+
"a system's or a status's. Read the title, description and comments;",
|
|
303
|
+
"a linked component, process map or step is a strong hint, but most",
|
|
304
|
+
"tasks are linked to none, so expect to group mostly from the text.",
|
|
305
|
+
"Every task in exactly one group, 4 to 12 groups. One-off chores,",
|
|
306
|
+
"standing buckets (Ongoing: meetings, hiring, admin) and backlog ideas",
|
|
307
|
+
'with no description go in a last "Smaller items", listed only, with',
|
|
308
|
+
"no state, outside that count. A closed task stays with the work it",
|
|
309
|
+
"finished.",
|
|
310
|
+
"",
|
|
311
|
+
"3. Summarize each group in plain words, from the evidence only:",
|
|
312
|
+
" State the worst of its open tasks: Blocked, Waiting on client, At",
|
|
313
|
+
" risk, On track. Done when nothing is open; Not started when",
|
|
314
|
+
" nothing has begun. Blocked: a task in a blocked status.",
|
|
315
|
+
" Waiting on client: something open waits on them - a task in",
|
|
316
|
+
" a waiting status, or a message that @mentions one of them",
|
|
317
|
+
" and asks, or says the work waits on them, with no later",
|
|
318
|
+
" reply from them. A waiting status whose latest unanswered",
|
|
319
|
+
" question is the client's to us - whatever we posted since -",
|
|
320
|
+
" waits on us: not their state, and the mismatch is a meeting",
|
|
321
|
+
" question. On Hold sets no state - put",
|
|
322
|
+
" it under Needed with who it waits on. (In a workspace with",
|
|
323
|
+
' no client side, "client" is the owners.) At risk: a due',
|
|
324
|
+
" date passed, or nothing open moved in two weeks.",
|
|
325
|
+
" Where the current step, from the furthest status and the latest",
|
|
326
|
+
' comments: "built, on dev, being tested"',
|
|
327
|
+
" Done what finished, newest first",
|
|
328
|
+
" Needed what is left, and anything owed - by whom",
|
|
329
|
+
" Next the next concrete step. Nothing records one: say so - it",
|
|
330
|
+
" is a question for the meeting, not a gap to fill in",
|
|
331
|
+
" Who the people on its open tasks, both sides, by name - one",
|
|
332
|
+
" person once, though listed under two emails; an assignee",
|
|
333
|
+
" the context does not list is left out",
|
|
334
|
+
" Tasks every key in it, with its status",
|
|
335
|
+
"Cite the task key behind each claim. Never invent a date, a person or",
|
|
336
|
+
"a next step. A comment that contradicts a task's status does not",
|
|
337
|
+
"overrule it: the status stands, and the mismatch is a meeting",
|
|
338
|
+
"question. Order the groups: blocked, waiting on client, at risk, on",
|
|
339
|
+
"track, done this week, not started - and within each, by the highest",
|
|
340
|
+
"priority among their open tasks (compare it case-insensitively).",
|
|
341
|
+
"",
|
|
342
|
+
"Flag what needs attention, on its task wherever it appears and",
|
|
343
|
+
"together near the top - open tasks only, worst first:",
|
|
344
|
+
" Overdue due date passed: how many days",
|
|
345
|
+
" Due soon due in the next 7 days",
|
|
346
|
+
" Unanswered asked and not answered for 8 days or more: who",
|
|
347
|
+
" owes it, and since when. A question counts in a",
|
|
348
|
+
" comment or listed open in the description",
|
|
349
|
+
" Blocked in a blocked status",
|
|
350
|
+
" Urgent URGENT or HIGH priority and nothing moved for 7 days",
|
|
351
|
+
"Count whole calendar days to the as-of date. A flag needs its",
|
|
352
|
+
"evidence - a date, a message - like any claim.",
|
|
353
|
+
"",
|
|
354
|
+
"4. The page, for a client who has five minutes:",
|
|
355
|
+
' - titled "<Workspace> - where things stand", with the date it is as of',
|
|
356
|
+
" - three sentences on the whole, and how many groups are in each state",
|
|
357
|
+
" - every group's name with its state, each a link that scrolls to",
|
|
358
|
+
" its card",
|
|
359
|
+
' - "Needs attention": the flags, worst first, each with its task',
|
|
360
|
+
' - "For this meeting": decisions to make, answers owed, what is blocked',
|
|
361
|
+
' - "Since last time": what moved against the previous version - the',
|
|
362
|
+
" first time, say so and list what moved in the last seven days",
|
|
363
|
+
" - a card per group in that order, its flags on top and its tasks",
|
|
364
|
+
" folded away beneath it, each task with its flags",
|
|
365
|
+
"Every task key is a link to the task in the app, opening in a new",
|
|
366
|
+
'tab: <a href="<origin>/issues/<id>" target="_blank" rel="noopener">,',
|
|
367
|
+
"where <id> is the task's id from search_tasks (not its key) and",
|
|
368
|
+
"<origin> is the server `implto-tos-axi whoami` names (it takes no",
|
|
369
|
+
"--workspace), without its /mcp path. Flags read as",
|
|
370
|
+
"colored badges, with words, not color alone.",
|
|
371
|
+
"Task keys yes; nothing else from the system or the code in the text -",
|
|
372
|
+
"no ids, PR numbers, commit hashes, file or function names, no jargon. A",
|
|
373
|
+
"task title that names a table, a file or other code is reworded. The",
|
|
374
|
+
"link is public from the start: leave out money amounts, pay and",
|
|
375
|
+
"credentials even when comments carry them. It has to read on a phone",
|
|
376
|
+
"and in dark mode. `guide artifacts` has the page rules.",
|
|
377
|
+
"",
|
|
378
|
+
"5. Publish. The first time:",
|
|
379
|
+
' implto-tos-axi artifacts publish status.html --description "As of <date>"',
|
|
380
|
+
"Every refresh after it is the next version of that same page, so the",
|
|
381
|
+
"link people kept still works:",
|
|
382
|
+
" implto-tos-axi artifacts publish status.html --id <id>",
|
|
383
|
+
"It covers the whole workspace: link it to no task. Hand the person the",
|
|
384
|
+
"share_url. Asked only a question about where things stand: answer in",
|
|
385
|
+
"chat, and offer the page.",
|
|
386
|
+
"",
|
|
387
|
+
"Weekly: the same procedure, run unattended - a scheduled routine in",
|
|
388
|
+
"Claude Code, or cron running any agent headless with TOS_TOKEN set.",
|
|
389
|
+
"Its prompt names the workspace and says to publish the next version",
|
|
390
|
+
"without asking, then report the link and what moved.",
|
|
391
|
+
].join("\n"),
|
|
392
|
+
},
|
|
188
393
|
tools: {
|
|
189
394
|
summary: "Reach any tool the server has, without carrying its schema",
|
|
190
395
|
guidance: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../../src/commands/guide.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,MAAM,GAA0B;IAC3C,QAAQ,EAAE;QACR,OAAO,EAAE,2DAA2D;QACpE,QAAQ,EAAE;YACR,kDAAkD;YAClD,0BAA0B;YAC1B,6EAA6E;YAC7E,EAAE;YACF,
|
|
1
|
+
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../../src/commands/guide.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,MAAM,GAA0B;IAC3C,QAAQ,EAAE;QACR,OAAO,EAAE,2DAA2D;QACpE,QAAQ,EAAE;YACR,kDAAkD;YAClD,0BAA0B;YAC1B,6EAA6E;YAC7E,EAAE;YACF,qEAAqE;YACrE,oEAAoE;YACpE,+CAA+C;YAC/C,2EAA2E;YAC3E,uEAAuE;YACvE,EAAE;YACF,0EAA0E;YAC1E,oCAAoC;YACpC,8EAA8E;YAC9E,EAAE;YACF,SAAS;YACT,yEAAyE;YACzE,QAAQ;YACR,0EAA0E;YAC1E,8DAA8D;YAC9D,mEAAmE;YACnE,qEAAqE;YACrE,6BAA6B;YAC7B,oEAAoE;YACpE,sEAAsE;YACtE,wBAAwB;YACxB,EAAE;YACF,wBAAwB;YACxB,uEAAuE;YACvE,oDAAoD;YACpD,kEAAkE;YAClE,2BAA2B;YAC3B,EAAE;YACF,uEAAuE;YACvE,kEAAkE;YAClE,EAAE;YACF,yEAAyE;YACzE,2CAA2C;SAC5C,CAAC,IAAI,CAAC,IAAI,CAAC;KACb;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,uDAAuD;QAChE,QAAQ,EAAE;YACR,uEAAuE;YACvE,sEAAsE;YACtE,qEAAqE;YACrE,qEAAqE;YACrE,2B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C,QAAQ,IAAI,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,GAAG;QACR,gBAAgB;QAChB,+DAA+D;QAC/D,EAAE;QACF,QAAQ;QACR,mDAAmD;QACnD,4CAA4C;QAC5C,EAAE;QACF,SAAS;QACT,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;KAC5E,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC"}
|
|
@@ -3,6 +3,8 @@ import type { AxiRenderable } from "../output.js";
|
|
|
3
3
|
export declare const NOTIFICATIONS_LIST_FLAGS: FlagSpecs;
|
|
4
4
|
export declare const NOTIFICATIONS_READ_FLAGS: FlagSpecs;
|
|
5
5
|
export declare const NOTIFICATIONS_UNREAD_FLAGS: FlagSpecs;
|
|
6
|
+
export declare const NOTIFICATIONS_SHOW_FLAGS: FlagSpecs;
|
|
7
|
+
export declare const NOTIFICATIONS_REPLY_FLAGS: FlagSpecs;
|
|
6
8
|
/** One item of `list_notifications`. */
|
|
7
9
|
export interface NotificationItem {
|
|
8
10
|
key: string;
|
|
@@ -23,6 +25,34 @@ export interface NotificationItem {
|
|
|
23
25
|
content: string;
|
|
24
26
|
} | null;
|
|
25
27
|
}
|
|
28
|
+
/** One message of `get_communication_thread`. */
|
|
29
|
+
export interface ThreadMessage {
|
|
30
|
+
id: string;
|
|
31
|
+
content: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
author: {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
} | null;
|
|
37
|
+
replyTo: string | null;
|
|
38
|
+
isQuestion?: boolean;
|
|
39
|
+
questionResolvedAt?: string | null;
|
|
40
|
+
}
|
|
41
|
+
/** What `get_communication_thread` answers: every thread on the ticket, or the one. */
|
|
42
|
+
export interface ThreadDetail {
|
|
43
|
+
workspaceId: string;
|
|
44
|
+
entity: {
|
|
45
|
+
issue: {
|
|
46
|
+
id: string;
|
|
47
|
+
key: string;
|
|
48
|
+
title: string;
|
|
49
|
+
} | null;
|
|
50
|
+
} | null;
|
|
51
|
+
threads: {
|
|
52
|
+
root: ThreadMessage;
|
|
53
|
+
replies: ThreadMessage[];
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
26
56
|
/**
|
|
27
57
|
* The opening of a comment, on one line.
|
|
28
58
|
*
|
|
@@ -32,3 +62,11 @@ export interface NotificationItem {
|
|
|
32
62
|
export declare function excerpt(markdown: string | undefined, limit?: number): string;
|
|
33
63
|
export declare function notificationRow(item: NotificationItem, workspaceNames: ReadonlyMap<string, string>, withReadState: boolean): Record<string, string | boolean>;
|
|
34
64
|
export declare function notificationsCommand(argv: readonly string[]): Promise<AxiRenderable>;
|
|
65
|
+
/**
|
|
66
|
+
* The thread holding the message. Threads are one level deep, so a reply goes
|
|
67
|
+
* to the thread's root whichever message of it the notification is about.
|
|
68
|
+
*/
|
|
69
|
+
export declare function threadHolding(detail: ThreadDetail, messageId: string): {
|
|
70
|
+
root: ThreadMessage;
|
|
71
|
+
replies: ThreadMessage[];
|
|
72
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
1
2
|
import { parseFlags } from "../flags.js";
|
|
2
3
|
import { openSession, resolveWorkspaceId } from "../session.js";
|
|
3
4
|
import { TosError } from "../errors.js";
|
|
4
5
|
import { looksLikeId } from "../resolve.js";
|
|
5
6
|
import { PROFILE_FLAGS } from "./whoami.js";
|
|
6
7
|
/**
|
|
7
|
-
* Your own notifications - the web app's bell - and
|
|
8
|
+
* Your own notifications - the web app's bell - read, answered and cleared.
|
|
8
9
|
*
|
|
9
10
|
* First-class rather than left to `tools call` for two reasons. An inbox is
|
|
10
11
|
* personal and spans every workspace, where `tools call` fills in the bound
|
|
@@ -45,6 +46,11 @@ export const NOTIFICATIONS_READ_FLAGS = {
|
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
export const NOTIFICATIONS_UNREAD_FLAGS = { ...COMMON };
|
|
49
|
+
export const NOTIFICATIONS_SHOW_FLAGS = { ...COMMON };
|
|
50
|
+
export const NOTIFICATIONS_REPLY_FLAGS = {
|
|
51
|
+
...COMMON,
|
|
52
|
+
"keep-unread": { kind: "boolean", description: "Leave the notification unread after replying" },
|
|
53
|
+
};
|
|
48
54
|
/** Why an item is there, as a person would say it. */
|
|
49
55
|
const REASONS = {
|
|
50
56
|
MENTION: "mention",
|
|
@@ -93,9 +99,13 @@ export async function notificationsCommand(argv) {
|
|
|
93
99
|
return read(rest);
|
|
94
100
|
case "unread":
|
|
95
101
|
return unread(rest);
|
|
102
|
+
case "show":
|
|
103
|
+
return show(rest);
|
|
104
|
+
case "reply":
|
|
105
|
+
return reply(rest);
|
|
96
106
|
default:
|
|
97
107
|
throw new TosError(`Unknown subcommand "${sub}".`, "VALIDATION_ERROR", [
|
|
98
|
-
"notifications [list]|read|unread",
|
|
108
|
+
"notifications [list]|show|reply|read|unread",
|
|
99
109
|
"implto-tos-axi notifications --help",
|
|
100
110
|
]);
|
|
101
111
|
}
|
|
@@ -185,8 +195,9 @@ async function list(argv) {
|
|
|
185
195
|
...(next ? [`implto-tos-axi notifications --cursor ${next}`] : []),
|
|
186
196
|
...(items.length > 0
|
|
187
197
|
? [
|
|
198
|
+
"implto-tos-axi notifications show <key> # the whole conversation",
|
|
199
|
+
'implto-tos-axi notifications reply <key> "<text>" # answers in its thread',
|
|
188
200
|
"implto-tos-axi notifications read <key>... # once you have seen them",
|
|
189
|
-
"implto-tos-axi tools call get_communication_thread messageId=<key> # the conversation",
|
|
190
201
|
]
|
|
191
202
|
: []),
|
|
192
203
|
],
|
|
@@ -250,6 +261,130 @@ async function read(argv) {
|
|
|
250
261
|
],
|
|
251
262
|
};
|
|
252
263
|
}
|
|
264
|
+
/** A comment as written, with mentions read as `@Name` - the ids are under `people`. */
|
|
265
|
+
function readable(markdown) {
|
|
266
|
+
return markdown.replace(/\[(@[^\]]+)\]\(mention:\/\/[^)]*\)/g, "$1").trim();
|
|
267
|
+
}
|
|
268
|
+
function oneKey(positionals, usage) {
|
|
269
|
+
const key = positionals[0];
|
|
270
|
+
if (!key) {
|
|
271
|
+
throw new TosError("Name the notification, by its key.", "VALIDATION_ERROR", [
|
|
272
|
+
usage,
|
|
273
|
+
"implto-tos-axi notifications # the keys",
|
|
274
|
+
]);
|
|
275
|
+
}
|
|
276
|
+
return key;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The conversation a notification is about. Its key is the message's id, so
|
|
280
|
+
* this is one call - except for an assignment, whose key is the notification's
|
|
281
|
+
* own id and which has no conversation at all.
|
|
282
|
+
*/
|
|
283
|
+
async function conversation(session, key) {
|
|
284
|
+
try {
|
|
285
|
+
return (await session.call("get_communication_thread", { messageId: key }));
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
if (error instanceof TosError && error.code === "NOT_FOUND") {
|
|
289
|
+
throw new TosError(`${key} is not a message. An assignment has no conversation; its task is in the list.`, "NOT_FOUND", [
|
|
290
|
+
"implto-tos-axi notifications --status all # the task beside the key",
|
|
291
|
+
"implto-tos-axi tasks show <task>",
|
|
292
|
+
]);
|
|
293
|
+
}
|
|
294
|
+
throw error;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The thread holding the message. Threads are one level deep, so a reply goes
|
|
299
|
+
* to the thread's root whichever message of it the notification is about.
|
|
300
|
+
*/
|
|
301
|
+
export function threadHolding(detail, messageId) {
|
|
302
|
+
const thread = detail.threads.find((t) => t.root.id === messageId || t.replies.some((r) => r.id === messageId)) ?? detail.threads[0];
|
|
303
|
+
if (!thread) {
|
|
304
|
+
throw new TosError(`No conversation holds ${messageId}.`, "NOT_FOUND", [
|
|
305
|
+
"implto-tos-axi notifications",
|
|
306
|
+
]);
|
|
307
|
+
}
|
|
308
|
+
return thread;
|
|
309
|
+
}
|
|
310
|
+
async function show(argv) {
|
|
311
|
+
const { positionals, flags } = parseFlags(argv, NOTIFICATIONS_SHOW_FLAGS);
|
|
312
|
+
const key = oneKey(positionals, "implto-tos-axi notifications show <key>");
|
|
313
|
+
const session = sessionFor(flags);
|
|
314
|
+
const [detail, names] = await Promise.all([conversation(session, key), workspaceNames(session)]);
|
|
315
|
+
const thread = threadHolding(detail, key);
|
|
316
|
+
const others = detail.threads.filter((t) => t !== thread);
|
|
317
|
+
const issue = detail.entity?.issue ?? null;
|
|
318
|
+
const messages = [thread.root, ...thread.replies];
|
|
319
|
+
const people = new Map();
|
|
320
|
+
for (const m of detail.threads.flatMap((t) => [t.root, ...t.replies])) {
|
|
321
|
+
if (m.author)
|
|
322
|
+
people.set(m.author.id, m.author.name);
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
workspace: names.get(detail.workspaceId) ?? detail.workspaceId,
|
|
326
|
+
task: issue ? `${issue.key}: ${issue.title}` : "none - a standalone thread",
|
|
327
|
+
...(issue ? { task_id: issue.id } : {}),
|
|
328
|
+
thread: thread.root.id,
|
|
329
|
+
messages: messages.map((m) => ({
|
|
330
|
+
id: m.id,
|
|
331
|
+
from: m.author?.name ?? "",
|
|
332
|
+
when: m.createdAt,
|
|
333
|
+
...(m.id === key ? { notified: true } : {}),
|
|
334
|
+
...(m.isQuestion ? { question: m.questionResolvedAt ? "answered" : "open" } : {}),
|
|
335
|
+
text: readable(m.content),
|
|
336
|
+
})),
|
|
337
|
+
...(others.length > 0
|
|
338
|
+
? {
|
|
339
|
+
other_threads: others.map((t) => ({
|
|
340
|
+
thread: t.root.id,
|
|
341
|
+
from: t.root.author?.name ?? "",
|
|
342
|
+
when: t.root.createdAt,
|
|
343
|
+
replies: t.replies.length,
|
|
344
|
+
text: excerpt(t.root.content),
|
|
345
|
+
})),
|
|
346
|
+
}
|
|
347
|
+
: {}),
|
|
348
|
+
people: [...people].map(([id, name]) => ({ name, id })),
|
|
349
|
+
help: [
|
|
350
|
+
`implto-tos-axi notifications reply ${key} "<text>" # posts as you, into this thread`,
|
|
351
|
+
`implto-tos-axi notifications read ${key}`,
|
|
352
|
+
...(issue ? [`implto-tos-axi tasks show ${issue.key}`] : []),
|
|
353
|
+
"Mention someone as [@Name](mention://<id>), with the id from people.",
|
|
354
|
+
],
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
async function reply(argv) {
|
|
358
|
+
const { positionals, flags } = parseFlags(argv, NOTIFICATIONS_REPLY_FLAGS);
|
|
359
|
+
const usage = 'implto-tos-axi notifications reply <key> "<text>"';
|
|
360
|
+
const key = oneKey(positionals, usage);
|
|
361
|
+
const text = positionals.slice(1).join(" ");
|
|
362
|
+
const content = (text === "-" ? readFileSync(0, "utf8") : text).trim();
|
|
363
|
+
if (!content) {
|
|
364
|
+
throw new TosError("Say what to reply.", "VALIDATION_ERROR", [
|
|
365
|
+
usage,
|
|
366
|
+
`implto-tos-axi notifications reply ${key} - < reply.md`,
|
|
367
|
+
]);
|
|
368
|
+
}
|
|
369
|
+
const session = sessionFor(flags);
|
|
370
|
+
const thread = threadHolding(await conversation(session, key), key);
|
|
371
|
+
const posted = (await session.call("reply_to_message", {
|
|
372
|
+
replyTo: thread.root.id,
|
|
373
|
+
content,
|
|
374
|
+
}));
|
|
375
|
+
const keepUnread = flags["keep-unread"] === true;
|
|
376
|
+
if (!keepUnread)
|
|
377
|
+
await session.call("mark_notifications_read", { keys: [key] });
|
|
378
|
+
return {
|
|
379
|
+
replied: posted.id ?? "",
|
|
380
|
+
thread: thread.root.id,
|
|
381
|
+
marked_read: !keepUnread,
|
|
382
|
+
help: [
|
|
383
|
+
`implto-tos-axi notifications show ${key}`,
|
|
384
|
+
"implto-tos-axi notifications # what is left",
|
|
385
|
+
],
|
|
386
|
+
};
|
|
387
|
+
}
|
|
253
388
|
async function unread(argv) {
|
|
254
389
|
const { positionals, flags } = parseFlags(argv, NOTIFICATIONS_UNREAD_FLAGS);
|
|
255
390
|
if (positionals.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/commands/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAgB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;;;;GAQG;AACH,MAAM,MAAM,GAAG,aAAa,CAAC;AAE7B,MAAM,cAAc,GAAc;IAChC,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+DAA+D;QAC5E,WAAW,EAAE,MAAM;KACpB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAGpD,MAAM,CAAC,MAAM,wBAAwB,GAAc;IACjD,GAAG,MAAM;IACT,GAAG,cAAc;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE,KAAK;KACf;IACD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;IAC9F,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE,WAAW,EAAE,QAAQ,EAAE;CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAc;IACjD,GAAG,MAAM;IACT,GAAG,cAAc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ACJ,CAAC;AAED,KAAK,UAAU,MAAM,CAAC,IAAuB;IAC3C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC;IAC5E,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,QAAQ,CAAC,qCAAqC,EAAE,kBAAkB,EAAE;YAC5E,sDAAsD;YACtD,yDAAyD;SAC1D,CAAC,CAAC;IACL,CAAC;IACD,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;QAC5D,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC;QACtB,IAAI,EAAE,KAAK;KACZ,CAAC,CAA8B,CAAC;IACjC,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,YAAY,IAAI,CAAC;QACvC,IAAI,EAAE,CAAC,8BAA8B,CAAC;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -38,6 +38,12 @@ export interface Task {
|
|
|
38
38
|
clientCoAssignees?: {
|
|
39
39
|
email: string;
|
|
40
40
|
}[];
|
|
41
|
+
/** Pages linked to it. Absent altogether on a server that cannot link them. */
|
|
42
|
+
artifacts?: {
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
version: number;
|
|
46
|
+
}[];
|
|
41
47
|
}
|
|
42
48
|
export declare function tasksCommand(argv: readonly string[]): Promise<AxiRenderable>;
|
|
43
49
|
/** How long `--wait` holds on for the Jira sync, and how often it looks. */
|