implto-tos-axi 0.1.8 → 0.1.9
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 +9 -0
- package/dist/src/cli.js +25 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/notifications.d.ts +34 -0
- package/dist/src/commands/notifications.js +271 -0
- package/dist/src/commands/notifications.js.map +1 -0
- package/dist/src/skill.js +3 -2
- 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-workspace/SKILL.md +3 -2
package/README.md
CHANGED
|
@@ -218,6 +218,15 @@ help[2]:
|
|
|
218
218
|
implto-tos-axi init # run it bare to list what you can reach
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
+
## In bb
|
|
222
|
+
|
|
223
|
+
[bb-plugin/](bb-plugin/README.md) is a [bb](https://getbb.app) plugin: a **TOS tasks** page in
|
|
224
|
+
bb's sidebar with every task in In Progress or To Do that you are assigned to or collaborate on,
|
|
225
|
+
across all your workspaces, where you can change a task's status. **Start implementation** drafts
|
|
226
|
+
a brief about the task for FIRSTMATE, fmj's front desk in bb, and after you confirm it opens
|
|
227
|
+
FIRSTMATE with the brief in its composer, to edit and send there. It signs in through this CLI's
|
|
228
|
+
own session.
|
|
229
|
+
|
|
221
230
|
## Configuration
|
|
222
231
|
|
|
223
232
|
| Thing | Where |
|
package/dist/src/cli.js
CHANGED
|
@@ -11,6 +11,7 @@ import { contextCommand } from "./commands/context.js";
|
|
|
11
11
|
import { tasksCommand, SEARCH_FLAGS, SHOW_FLAGS, CREATE_FLAGS, UPDATE_FLAGS, } from "./commands/tasks.js";
|
|
12
12
|
import { componentsCommand, COMPONENTS_LIST_FLAGS, COMPONENTS_CREATE_FLAGS, COMPONENTS_UPDATE_FLAGS, } from "./commands/components.js";
|
|
13
13
|
import { artifactsCommand, ARTIFACTS_LIST_FLAGS, ARTIFACTS_PUBLISH_FLAGS, ARTIFACTS_PULL_FLAGS, ARTIFACTS_SHARE_FLAGS, } from "./commands/artifacts.js";
|
|
14
|
+
import { notificationsCommand, NOTIFICATIONS_LIST_FLAGS, NOTIFICATIONS_READ_FLAGS, } from "./commands/notifications.js";
|
|
14
15
|
import { toolsCommand, LIST_FLAGS, CALL_FLAGS } from "./commands/tools.js";
|
|
15
16
|
import { renderFlagHelp } from "./flags.js";
|
|
16
17
|
export const DESCRIPTION = "Work with Transformation OS from a repository - tasks, deliverables, and the rest of the workspace";
|
|
@@ -39,6 +40,7 @@ const TOP_LEVEL_HELP = `${[
|
|
|
39
40
|
` components list The deliverables, as a tree. show|create|update too`,
|
|
40
41
|
` artifacts publish <f> Publish an HTML page to the workspace; returns its link`,
|
|
41
42
|
` artifacts list The workspace's pages. show|pull|share|open|delete too`,
|
|
43
|
+
` notifications Your unread notifications, every workspace. read|unread too`,
|
|
42
44
|
` tools Every area the server has, and what this key holds`,
|
|
43
45
|
` tools call <name> Run any tool. Everything not covered above`,
|
|
44
46
|
` guide [topic] Topic-sized guidance. Run bare to list topics`,
|
|
@@ -117,6 +119,28 @@ const COMMAND_HELP = {
|
|
|
117
119
|
"share flags:",
|
|
118
120
|
...renderFlagHelp(ARTIFACTS_SHARE_FLAGS),
|
|
119
121
|
].join("\n")}\n`,
|
|
122
|
+
notifications: `${[
|
|
123
|
+
"command: notifications",
|
|
124
|
+
"description: Your own notifications - mentions, replies, comments on your tasks, assignments",
|
|
125
|
+
"",
|
|
126
|
+
"usage:",
|
|
127
|
+
" implto-tos-axi notifications Unread, every workspace",
|
|
128
|
+
' implto-tos-axi notifications --workspace "Acme" One workspace',
|
|
129
|
+
" implto-tos-axi notifications --status all",
|
|
130
|
+
" implto-tos-axi notifications read <key> [<key>...] Seen: cancels their pending email",
|
|
131
|
+
" implto-tos-axi notifications read --task DT-12",
|
|
132
|
+
" implto-tos-axi notifications read --all Clears the badge; emails still go",
|
|
133
|
+
" implto-tos-axi notifications unread <key>",
|
|
134
|
+
"",
|
|
135
|
+
"a key is the comment's message id, which get_communication_thread takes;",
|
|
136
|
+
"for an assignment it is the notification's own id.",
|
|
137
|
+
"",
|
|
138
|
+
"list flags:",
|
|
139
|
+
...renderFlagHelp(NOTIFICATIONS_LIST_FLAGS),
|
|
140
|
+
"",
|
|
141
|
+
"read flags:",
|
|
142
|
+
...renderFlagHelp(NOTIFICATIONS_READ_FLAGS),
|
|
143
|
+
].join("\n")}\n`,
|
|
120
144
|
tools: `${[
|
|
121
145
|
"command: tools",
|
|
122
146
|
"description: The MCP server itself - its areas, its tools, and a way to call one",
|
|
@@ -211,6 +235,7 @@ export async function main(argv) {
|
|
|
211
235
|
tasks: (args) => tasksCommand(args),
|
|
212
236
|
components: (args) => componentsCommand(args),
|
|
213
237
|
artifacts: (args) => artifactsCommand(args),
|
|
238
|
+
notifications: (args) => notificationsCommand(args),
|
|
214
239
|
tools: (args) => toolsCommand(args),
|
|
215
240
|
guide: (args) => guideCommand(args),
|
|
216
241
|
},
|
package/dist/src/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,WAAW,EA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IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;YACnC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;SACpC;QACD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;KACnD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type FlagSpecs } from "../flags.js";
|
|
2
|
+
import type { AxiRenderable } from "../output.js";
|
|
3
|
+
export declare const NOTIFICATIONS_LIST_FLAGS: FlagSpecs;
|
|
4
|
+
export declare const NOTIFICATIONS_READ_FLAGS: FlagSpecs;
|
|
5
|
+
export declare const NOTIFICATIONS_UNREAD_FLAGS: FlagSpecs;
|
|
6
|
+
/** One item of `list_notifications`. */
|
|
7
|
+
export interface NotificationItem {
|
|
8
|
+
key: string;
|
|
9
|
+
isRead: boolean;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
types: string[];
|
|
13
|
+
actor: {
|
|
14
|
+
name: string;
|
|
15
|
+
} | null;
|
|
16
|
+
issue: {
|
|
17
|
+
id: string;
|
|
18
|
+
key: string;
|
|
19
|
+
title: string;
|
|
20
|
+
} | null;
|
|
21
|
+
message: {
|
|
22
|
+
id: string;
|
|
23
|
+
content: string;
|
|
24
|
+
} | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The opening of a comment, on one line.
|
|
28
|
+
*
|
|
29
|
+
* Mentions are stored as markdown links to `mention://<id>`; the id is noise in
|
|
30
|
+
* a listing, so they read as `@Name`, and other links keep only their text.
|
|
31
|
+
*/
|
|
32
|
+
export declare function excerpt(markdown: string | undefined, limit?: number): string;
|
|
33
|
+
export declare function notificationRow(item: NotificationItem, workspaceNames: ReadonlyMap<string, string>, withReadState: boolean): Record<string, string | boolean>;
|
|
34
|
+
export declare function notificationsCommand(argv: readonly string[]): Promise<AxiRenderable>;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { parseFlags } from "../flags.js";
|
|
2
|
+
import { openSession, resolveWorkspaceId } from "../session.js";
|
|
3
|
+
import { TosError } from "../errors.js";
|
|
4
|
+
import { looksLikeId } from "../resolve.js";
|
|
5
|
+
import { PROFILE_FLAGS } from "./whoami.js";
|
|
6
|
+
/**
|
|
7
|
+
* Your own notifications - the web app's bell - and clearing them.
|
|
8
|
+
*
|
|
9
|
+
* First-class rather than left to `tools call` for two reasons. An inbox is
|
|
10
|
+
* personal and spans every workspace, where `tools call` fills in the bound
|
|
11
|
+
* workspace, and outside a bound checkout refuses to run at all. And the raw
|
|
12
|
+
* answer carries every comment's full markdown, which is a page per item; the
|
|
13
|
+
* list here is one line each, with the workspace named rather than an id.
|
|
14
|
+
*/
|
|
15
|
+
const COMMON = PROFILE_FLAGS;
|
|
16
|
+
const WORKSPACE_FLAG = {
|
|
17
|
+
workspace: {
|
|
18
|
+
kind: "string",
|
|
19
|
+
description: "Only this workspace, by name or id (default: every workspace)",
|
|
20
|
+
placeholder: "name",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const STATUSES = ["unread", "read", "all"];
|
|
24
|
+
export const NOTIFICATIONS_LIST_FLAGS = {
|
|
25
|
+
...COMMON,
|
|
26
|
+
...WORKSPACE_FLAG,
|
|
27
|
+
status: {
|
|
28
|
+
kind: "string",
|
|
29
|
+
description: "unread (default), read or all",
|
|
30
|
+
placeholder: "status",
|
|
31
|
+
example: "all",
|
|
32
|
+
},
|
|
33
|
+
limit: { kind: "number", description: "Page size, max 50", placeholder: "n", min: 1, max: 50 },
|
|
34
|
+
cursor: { kind: "string", description: "The next page, from `next`", placeholder: "cursor" },
|
|
35
|
+
};
|
|
36
|
+
export const NOTIFICATIONS_READ_FLAGS = {
|
|
37
|
+
...COMMON,
|
|
38
|
+
...WORKSPACE_FLAG,
|
|
39
|
+
all: { kind: "boolean", description: "Every unread one: clears the badge, not a read" },
|
|
40
|
+
task: {
|
|
41
|
+
kind: "string",
|
|
42
|
+
description: "Every one on this task, by key or id",
|
|
43
|
+
placeholder: "key",
|
|
44
|
+
example: "DT-12",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
export const NOTIFICATIONS_UNREAD_FLAGS = { ...COMMON };
|
|
48
|
+
/** Why an item is there, as a person would say it. */
|
|
49
|
+
const REASONS = {
|
|
50
|
+
MENTION: "mention",
|
|
51
|
+
REPLY: "reply",
|
|
52
|
+
ASSIGNEE_COMMENT: "comment on your task",
|
|
53
|
+
ASSIGNED: "assigned to you",
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The opening of a comment, on one line.
|
|
57
|
+
*
|
|
58
|
+
* Mentions are stored as markdown links to `mention://<id>`; the id is noise in
|
|
59
|
+
* a listing, so they read as `@Name`, and other links keep only their text.
|
|
60
|
+
*/
|
|
61
|
+
export function excerpt(markdown, limit = 100) {
|
|
62
|
+
const text = (markdown ?? "")
|
|
63
|
+
.replace(/\[(@[^\]]+)\]\(mention:\/\/[^)]*\)/g, "$1")
|
|
64
|
+
.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1")
|
|
65
|
+
.replace(/[*_`#>]+/g, "")
|
|
66
|
+
.replace(/\s+/g, " ")
|
|
67
|
+
.trim();
|
|
68
|
+
return text.length > limit ? `${text.slice(0, limit - 1).trimEnd()}…` : text;
|
|
69
|
+
}
|
|
70
|
+
export function notificationRow(item, workspaceNames, withReadState) {
|
|
71
|
+
return {
|
|
72
|
+
key: item.key,
|
|
73
|
+
when: item.createdAt,
|
|
74
|
+
why: item.types.map((t) => REASONS[t] ?? t.toLowerCase()).join(", "),
|
|
75
|
+
from: item.actor?.name ?? "",
|
|
76
|
+
workspace: workspaceNames.get(item.workspaceId) ?? item.workspaceId,
|
|
77
|
+
task: item.issue?.key ?? "",
|
|
78
|
+
text: item.message ? excerpt(item.message.content) : (item.issue?.title ?? ""),
|
|
79
|
+
...(withReadState ? { read: item.isRead } : {}),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export async function notificationsCommand(argv) {
|
|
83
|
+
const leads = argv[0];
|
|
84
|
+
const named = leads !== undefined && !leads.startsWith("-");
|
|
85
|
+
const sub = named ? leads : undefined;
|
|
86
|
+
const rest = named ? argv.slice(1) : argv;
|
|
87
|
+
switch (sub) {
|
|
88
|
+
// Bare answers with the inbox: it is what anybody running this wants.
|
|
89
|
+
case undefined:
|
|
90
|
+
case "list":
|
|
91
|
+
return list(rest);
|
|
92
|
+
case "read":
|
|
93
|
+
return read(rest);
|
|
94
|
+
case "unread":
|
|
95
|
+
return unread(rest);
|
|
96
|
+
default:
|
|
97
|
+
throw new TosError(`Unknown subcommand "${sub}".`, "VALIDATION_ERROR", [
|
|
98
|
+
"notifications [list]|read|unread",
|
|
99
|
+
"implto-tos-axi notifications --help",
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A session whose `call` says plainly when the deployment predates these
|
|
105
|
+
* tools, rather than passing on the server's bare "Unknown tool".
|
|
106
|
+
*/
|
|
107
|
+
function sessionFor(flags) {
|
|
108
|
+
const session = openSession({
|
|
109
|
+
profile: flags["profile"],
|
|
110
|
+
url: flags["url"],
|
|
111
|
+
mcpUrl: flags["mcp-url"],
|
|
112
|
+
});
|
|
113
|
+
return {
|
|
114
|
+
...session,
|
|
115
|
+
call: async (tool, args) => {
|
|
116
|
+
try {
|
|
117
|
+
return await session.call(tool, args);
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
if (error instanceof TosError && /unknown tool/i.test(error.message)) {
|
|
121
|
+
throw new TosError(`This deployment (${session.profile.name}) has no ${tool} tool yet: its server predates notifications.`, "NOT_FOUND", ["implto-tos-axi tools list --domain communications # what it does have"]);
|
|
122
|
+
}
|
|
123
|
+
throw error;
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
/** `--workspace`, resolved, or null for every workspace. Never the binding. */
|
|
129
|
+
async function workspaceScope(session, flags) {
|
|
130
|
+
const wanted = flags["workspace"];
|
|
131
|
+
return wanted ? resolveWorkspaceId(session, wanted) : null;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Workspace names by id. Best effort: `get_current_user` is not in the
|
|
135
|
+
* communications area, and a credential narrowed to it should still get its
|
|
136
|
+
* inbox, with ids where the names would have been.
|
|
137
|
+
*/
|
|
138
|
+
async function workspaceNames(session) {
|
|
139
|
+
try {
|
|
140
|
+
const me = await session.me();
|
|
141
|
+
return new Map(me.workspaces.map((w) => [w.id, w.name]));
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
return new Map();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/** Every argument `list_notifications` takes is nullable, so none is sent unset. */
|
|
148
|
+
function listArgs(input) {
|
|
149
|
+
return {
|
|
150
|
+
// Sent explicitly, even as null: the server reads a missing one as "every
|
|
151
|
+
// workspace" too, but saying so keeps that from depending on a default.
|
|
152
|
+
workspaceId: input.workspaceId,
|
|
153
|
+
status: input.status,
|
|
154
|
+
...(input.limit !== undefined ? { limit: input.limit } : {}),
|
|
155
|
+
...(input.cursor !== undefined ? { cursor: input.cursor } : {}),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
async function list(argv) {
|
|
159
|
+
const { flags } = parseFlags(argv, NOTIFICATIONS_LIST_FLAGS);
|
|
160
|
+
const status = flags["status"] ?? "unread";
|
|
161
|
+
if (!STATUSES.includes(status)) {
|
|
162
|
+
throw new TosError(`--status ${status} is not one of ${STATUSES.join(", ")}.`, "VALIDATION_ERROR", ["implto-tos-axi notifications --status all"]);
|
|
163
|
+
}
|
|
164
|
+
const session = sessionFor(flags);
|
|
165
|
+
const workspaceId = await workspaceScope(session, flags);
|
|
166
|
+
const [page, names] = await Promise.all([
|
|
167
|
+
session.call("list_notifications", listArgs({
|
|
168
|
+
workspaceId,
|
|
169
|
+
status: status,
|
|
170
|
+
limit: flags["limit"],
|
|
171
|
+
cursor: flags["cursor"],
|
|
172
|
+
})),
|
|
173
|
+
workspaceNames(session),
|
|
174
|
+
]);
|
|
175
|
+
const items = page.items ?? [];
|
|
176
|
+
const next = page.nextCursor ?? null;
|
|
177
|
+
return {
|
|
178
|
+
unread: workspaceId && page.unread?.inWorkspace !== undefined
|
|
179
|
+
? `${page.unread.inWorkspace} here, ${page.unread.total} in all`
|
|
180
|
+
: (page.unread?.total ?? 0),
|
|
181
|
+
count: items.length,
|
|
182
|
+
notifications: items.map((i) => notificationRow(i, names, status !== "unread")),
|
|
183
|
+
...(next ? { next } : {}),
|
|
184
|
+
help: [
|
|
185
|
+
...(next ? [`implto-tos-axi notifications --cursor ${next}`] : []),
|
|
186
|
+
...(items.length > 0
|
|
187
|
+
? [
|
|
188
|
+
"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
|
+
]
|
|
191
|
+
: []),
|
|
192
|
+
],
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* A task's id from its key, found among your own notifications - which is the
|
|
197
|
+
* only place the key has to be looked up for this, and needs neither a binding
|
|
198
|
+
* nor the tasks area.
|
|
199
|
+
*/
|
|
200
|
+
async function taskIdFromNotifications(session, key) {
|
|
201
|
+
let cursor;
|
|
202
|
+
for (let pageNo = 0; pageNo < 20; pageNo++) {
|
|
203
|
+
const page = (await session.call("list_notifications", listArgs({ workspaceId: null, status: "unread", limit: 50, cursor })));
|
|
204
|
+
const hit = (page.items ?? []).find((i) => i.issue?.key.toLowerCase() === key.toLowerCase());
|
|
205
|
+
if (hit?.issue)
|
|
206
|
+
return hit.issue.id;
|
|
207
|
+
if (!page.nextCursor)
|
|
208
|
+
break;
|
|
209
|
+
cursor = page.nextCursor;
|
|
210
|
+
}
|
|
211
|
+
throw new TosError(`You have no unread notification on ${key}.`, "NOT_FOUND", [
|
|
212
|
+
"implto-tos-axi notifications",
|
|
213
|
+
]);
|
|
214
|
+
}
|
|
215
|
+
async function read(argv) {
|
|
216
|
+
const { positionals, flags } = parseFlags(argv, NOTIFICATIONS_READ_FLAGS);
|
|
217
|
+
const keys = [...positionals];
|
|
218
|
+
const task = flags["task"];
|
|
219
|
+
const all = flags["all"] === true;
|
|
220
|
+
if ([keys.length > 0, Boolean(task), all].filter(Boolean).length !== 1) {
|
|
221
|
+
throw new TosError("Name the notifications: keys, --task or --all.", "VALIDATION_ERROR", [
|
|
222
|
+
"implto-tos-axi notifications read <key> [<key>...]",
|
|
223
|
+
"implto-tos-axi notifications read --task DT-12",
|
|
224
|
+
"implto-tos-axi notifications read --all",
|
|
225
|
+
]);
|
|
226
|
+
}
|
|
227
|
+
if (flags["workspace"] && !all) {
|
|
228
|
+
throw new TosError("--workspace narrows --all only.", "VALIDATION_ERROR", [
|
|
229
|
+
'implto-tos-axi notifications read --all --workspace "<name>"',
|
|
230
|
+
]);
|
|
231
|
+
}
|
|
232
|
+
const session = sessionFor(flags);
|
|
233
|
+
let args;
|
|
234
|
+
if (all) {
|
|
235
|
+
args = { all: true, workspaceId: await workspaceScope(session, flags) };
|
|
236
|
+
}
|
|
237
|
+
else if (task) {
|
|
238
|
+
args = { issueId: looksLikeId(task) ? task : await taskIdFromNotifications(session, task) };
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
args = { keys };
|
|
242
|
+
}
|
|
243
|
+
const result = (await session.call("mark_notifications_read", args));
|
|
244
|
+
return {
|
|
245
|
+
marked_read: result.updatedCount ?? 0,
|
|
246
|
+
...(all ? { note: "Badge cleared. Emails still pending for these are not cancelled." } : {}),
|
|
247
|
+
help: [
|
|
248
|
+
"implto-tos-axi notifications",
|
|
249
|
+
...(keys.length > 0 ? [`implto-tos-axi notifications unread ${keys.join(" ")}`] : []),
|
|
250
|
+
],
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
async function unread(argv) {
|
|
254
|
+
const { positionals, flags } = parseFlags(argv, NOTIFICATIONS_UNREAD_FLAGS);
|
|
255
|
+
if (positionals.length === 0) {
|
|
256
|
+
throw new TosError("Name the notifications to put back.", "VALIDATION_ERROR", [
|
|
257
|
+
"implto-tos-axi notifications unread <key> [<key>...]",
|
|
258
|
+
"implto-tos-axi notifications --status read # the keys",
|
|
259
|
+
]);
|
|
260
|
+
}
|
|
261
|
+
const session = sessionFor(flags);
|
|
262
|
+
const result = (await session.call("mark_notifications_read", {
|
|
263
|
+
keys: [...positionals],
|
|
264
|
+
read: false,
|
|
265
|
+
}));
|
|
266
|
+
return {
|
|
267
|
+
marked_unread: result.updatedCount ?? 0,
|
|
268
|
+
help: ["implto-tos-axi notifications"],
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +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,IA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CAAC,CAA8B,CAAC;IACjC,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,YAAY,IAAI,CAAC;QACvC,IAAI,EAAE,CAAC,8BAA8B,CAAC;KACvC,CAAC;AACJ,CAAC"}
|
package/dist/src/skill.js
CHANGED
|
@@ -138,7 +138,7 @@ missing.
|
|
|
138
138
|
};
|
|
139
139
|
const WORKSPACE = {
|
|
140
140
|
name: "implto-tos-workspace",
|
|
141
|
-
description: "Reach the rest of a Transformation OS workspace from the command line through implto-tos-axi: process maps, the people, departments and organizational roles in it, the systems they use,
|
|
141
|
+
description: "Reach the rest of a Transformation OS workspace from the command line through implto-tos-axi: process maps, the people, departments and organizational roles in it, the systems they use, the client message threads, and your own notifications. Discover what the server offers with `implto-tos-axi tools`, then call one tool directly. Use when a task needs workspace data that is not a task or a deliverable.",
|
|
142
142
|
tags: ["process-maps", "people", "systems", "communications", "transformation-os"],
|
|
143
143
|
category: "workflow",
|
|
144
144
|
body: `# implto-tos-workspace
|
|
@@ -149,7 +149,8 @@ and the client conversation.
|
|
|
149
149
|
|
|
150
150
|
There is no command per area. Instead the CLI asks the server what it offers
|
|
151
151
|
and calls it, so one tool's schema is loaded when a task needs it rather than
|
|
152
|
-
fifty of them in every request.
|
|
152
|
+
fifty of them in every request. The exception is your own notifications, which
|
|
153
|
+
span every workspace: \`implto-tos-axi notifications --help\`.
|
|
153
154
|
|
|
154
155
|
## Current guidance lives in the CLI
|
|
155
156
|
|
package/dist/src/skill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/skill.ts"],"names":[],"mappings":"AAyBA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAE7C,MAAM,QAAQ,GAAoB;IAChC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,ybAAyb;IAC3b,IAAI,EAAE,CAAC,mBAAmB,EAAE,KAAK,EAAE,KAAK,EAAE,OAA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C;AAEF,MAAM,CAAC,MAAM,MAAM,GAA+B;IAChD,QAAQ;IACR,KAAK;IACL,UAAU;IACV,QAAQ;IACR,SAAS;IACT,SAAS;CACV,CAAC;AAEF,kDAAkD;AAClD,MAAM,UAAU,mBAAmB,CAAC,KAAsB;IACxD,MAAM,WAAW,GAAG;QACd,KAAK,CAAC,IAAI;gBACF,KAAK,CAAC,WAAW;;;;;;aAMpB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAClB,KAAK,CAAC,QAAQ;IAC1B,CAAC;IACH,OAAO,GAAG,WAAW,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC"}
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Kept in its own leaf module so `--version` costs no module graph: the binary
|
|
3
3
|
* answers it before importing anything else. release-please rewrites the line.
|
|
4
4
|
*/
|
|
5
|
-
export const VERSION = "0.1.
|
|
5
|
+
export const VERSION = "0.1.9"; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "implto-tos-axi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Work with Transformation OS from a repository - match a change to its task, keep the deliverables tree honest, and reach every MCP tool the server has, without carrying their schemas in a prompt",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implto-tos-workspace
|
|
3
|
-
description: "Reach the rest of a Transformation OS workspace from the command line through implto-tos-axi: process maps, the people, departments and organizational roles in it, the systems they use,
|
|
3
|
+
description: "Reach the rest of a Transformation OS workspace from the command line through implto-tos-axi: process maps, the people, departments and organizational roles in it, the systems they use, the client message threads, and your own notifications. Discover what the server offers with `implto-tos-axi tools`, then call one tool directly. Use when a task needs workspace data that is not a task or a deliverable."
|
|
4
4
|
user-invocable: false
|
|
5
5
|
author: Valentyn Morenko
|
|
6
6
|
license: MIT
|
|
@@ -18,7 +18,8 @@ and the client conversation.
|
|
|
18
18
|
|
|
19
19
|
There is no command per area. Instead the CLI asks the server what it offers
|
|
20
20
|
and calls it, so one tool's schema is loaded when a task needs it rather than
|
|
21
|
-
fifty of them in every request.
|
|
21
|
+
fifty of them in every request. The exception is your own notifications, which
|
|
22
|
+
span every workspace: `implto-tos-axi notifications --help`.
|
|
22
23
|
|
|
23
24
|
## Current guidance lives in the CLI
|
|
24
25
|
|