@bli-cockpit/cli 0.2.191 → 0.2.192
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.
|
@@ -41,9 +41,11 @@ export function parseSearchArgs(args) {
|
|
|
41
41
|
let kinds;
|
|
42
42
|
if (kindFlag) {
|
|
43
43
|
kinds = [];
|
|
44
|
-
|
|
44
|
+
// BLI-12947: `ticket` is the new spelling of the `issue` kind (input only).
|
|
45
|
+
for (const raw of kindFlag.split(",").map((entry) => entry.trim()).filter(Boolean)) {
|
|
46
|
+
const part = raw === "ticket" ? "issue" : raw;
|
|
45
47
|
if (!SEARCH_KINDS.includes(part)) {
|
|
46
|
-
throw new Error(`search --kind must be one or more of ${SEARCH_KINDS.join(", ")} — not "${
|
|
48
|
+
throw new Error(`search --kind must be one or more of ${SEARCH_KINDS.join(", ")} — not "${raw}".`);
|
|
47
49
|
}
|
|
48
50
|
if (!kinds.includes(part))
|
|
49
51
|
kinds.push(part);
|
|
@@ -400,13 +400,13 @@ export function localSubcommandHelp(command) {
|
|
|
400
400
|
]);
|
|
401
401
|
// BLI-10431: a Tower page name answers with its own usage line first, then
|
|
402
402
|
// the manual of the noun it routes to, so `cockpit work --help` names every
|
|
403
|
-
//
|
|
403
|
+
// ticket verb instead of `Unknown command: work`.
|
|
404
404
|
const aliasTarget = SURFACE_ALIASES.get(command);
|
|
405
405
|
if (aliasTarget) {
|
|
406
406
|
return [
|
|
407
407
|
`Usage: cockpit ${command} [same verbs and flags as cockpit ${aliasTarget}]`,
|
|
408
408
|
`\`cockpit ${command}\` is the Tower page's name for \`cockpit ${aliasTarget}\`; both spellings run the same command.`,
|
|
409
|
-
...(
|
|
409
|
+
...(aliasTarget === "issue" ? ["Projects the Tower tickets are filed under: `cockpit project list`."] : []),
|
|
410
410
|
"",
|
|
411
411
|
...(helpByCommand.get(aliasTarget) ?? [localCommandHelp()]),
|
|
412
412
|
].join("\n");
|
|
@@ -14,17 +14,21 @@ import { localSubcommandHelp } from "./local-help-commands.js";
|
|
|
14
14
|
* The Tower PAGE names a person reads in the rail, each routed to the CLI noun
|
|
15
15
|
* that already serves that page (BLI-10431).
|
|
16
16
|
*
|
|
17
|
-
* The rail says
|
|
17
|
+
* The rail says TICKETS, CALENDAR, MESSAGES and MEETING NOTES; the MCP server
|
|
18
18
|
* says `work_list_issues`; the CLI spelled the same doors `issue`, `cal`,
|
|
19
19
|
* `msg` and `notes`. `cockpit work --help` answered `Unknown command: work` on
|
|
20
|
-
* 0.2.133 while every
|
|
21
|
-
* second spelling of the same parser, never a second parser: `cockpit
|
|
22
|
-
* list` IS `cockpit issue list`, byte for byte.
|
|
20
|
+
* 0.2.133 while every verb existed one word away. An alias here is a
|
|
21
|
+
* second spelling of the same parser, never a second parser: `cockpit ticket
|
|
22
|
+
* list` IS `cockpit issue list`, byte for byte. BLI-12947 renamed the Work
|
|
23
|
+
* page to Tickets and added `ticket` and `tickets`; `work` stays for every
|
|
24
|
+
* agent and doc that already says it.
|
|
23
25
|
*
|
|
24
26
|
* `surface-doors.test.ts` reads the rail and the MCP tool names and fails when
|
|
25
27
|
* a page or a tool family has no spelling here or in `rootCommandNames`.
|
|
26
28
|
*/
|
|
27
29
|
export const SURFACE_ALIASES = new Map([
|
|
30
|
+
["ticket", "issue"],
|
|
31
|
+
["tickets", "issue"],
|
|
28
32
|
["work", "issue"],
|
|
29
33
|
["calendar", "cal"],
|
|
30
34
|
["messages", "msg"],
|
|
@@ -143,7 +147,9 @@ export function localCommandHelp(command) {
|
|
|
143
147
|
" cockpit usage sessions [--task <BLI-NNNN> | --subject <name>] [--repo <label>] [--since <window>] [--json]",
|
|
144
148
|
" cockpit usage sessions --session <id> [--from-window <n>] [--json]",
|
|
145
149
|
" --by-topic groups work types; --by-subject groups open subjects from session summaries.",
|
|
146
|
-
" cockpit
|
|
150
|
+
" cockpit ticket [same verbs and flags as cockpit issue] (the Tickets page; projects: `cockpit project list`)",
|
|
151
|
+
" cockpit tickets ... same as cockpit ticket",
|
|
152
|
+
" cockpit work ... same as cockpit ticket (the older name)",
|
|
147
153
|
" cockpit calendar [same verbs and flags as cockpit cal]",
|
|
148
154
|
" cockpit messages [same verbs and flags as cockpit msg]",
|
|
149
155
|
" cockpit meeting-notes [same verbs and flags as cockpit notes]",
|
|
@@ -21,7 +21,7 @@ export async function runCockpitCli(argv, io) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
if (command === "--version" || command === "-V" || command === "version") {
|
|
24
|
-
writeLine(io?.stdout ?? process.stdout, "0.2.
|
|
24
|
+
writeLine(io?.stdout ?? process.stdout, "0.2.192");
|
|
25
25
|
return 0;
|
|
26
26
|
}
|
|
27
27
|
|
package/dist/commands/search.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bli-cockpit/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.192",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@bli-cockpit/memory-mcp": "0.1.57",
|
|
31
|
-
"@bli-cockpit/mcp": "0.1.
|
|
31
|
+
"@bli-cockpit/mcp": "0.1.104",
|
|
32
32
|
"@bli-cockpit/telemetry-core": "0.1.66"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|