@bli-cockpit/cli 0.2.119 → 0.2.121
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/dist/commands/analyze.js +74 -54
- package/dist/commands/brief-rewrite.js +164 -101
- package/dist/commands/brief.js +38 -13
- package/dist/commands/correct.js +38 -21
- package/dist/commands/docs.js +13 -10
- package/dist/commands/editor.js +59 -30
- package/dist/commands/install-receipts.js +106 -91
- package/dist/commands/local-args-tower-admin.js +4 -0
- package/dist/commands/local-args-tower-cal.js +28 -3
- package/dist/commands/local-args-tower-chat.js +55 -28
- package/dist/commands/local-args-tower-docs-msg.js +39 -8
- package/dist/commands/local-args-tower-mail.js +27 -1
- package/dist/commands/local-args-tower-models.js +14 -17
- package/dist/commands/local-args-tower-work.js +37 -6
- package/dist/commands/local-help-commands.js +2 -1
- package/dist/commands/mcp-stdio-probe.js +92 -73
- package/dist/commands/memory-hook-performance.js +135 -101
- package/dist/commands/memory-install-claude.js +15 -14
- package/dist/commands/memory-install-codex.js +10 -6
- package/dist/commands/memory-install-config.js +5 -4
- package/dist/commands/memory-install-contract.js +56 -10
- package/dist/commands/memory-install-report.js +16 -11
- package/dist/commands/memory-install-skills.js +11 -11
- package/dist/commands/memory-log.js +22 -5
- package/dist/commands/msg.js +11 -5
- package/dist/commands/onboard-setup.js +16 -1
- package/dist/commands/ops-sections.js +89 -0
- package/dist/commands/ops.js +117 -120
- package/dist/commands/public-root.js +1 -1
- package/dist/commands/scout.js +90 -68
- package/dist/commands/session-sync-failures.js +19 -13
- package/dist/commands/session-sync-record.js +53 -52
- package/dist/commands/session-sync-upload.js +15 -11
- package/dist/commands/sessions.js +61 -51
- package/dist/commands/slack.js +90 -61
- package/dist/commands/status.js +53 -41
- package/dist/commands/workbook.js +23 -20
- package/package.json +2 -2
|
@@ -100,26 +100,9 @@ function logIndexRead(io, projects) {
|
|
|
100
100
|
function writeDoc(command, io, payload, width) {
|
|
101
101
|
const markdown = payload.markdown ?? "";
|
|
102
102
|
const sections = payload.sections ?? [];
|
|
103
|
-
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
if (slice === null) {
|
|
107
|
-
const known = sections.map((section) => section.id ?? "").filter(Boolean);
|
|
108
|
-
const sentence = `No section "${command.section}" in this document (${known.join(", ") || "none"}).`;
|
|
109
|
-
writeLine(io.stderr, `[workbook cli] section missed ${JSON.stringify({
|
|
110
|
-
reason: "workbook_section_not_found",
|
|
111
|
-
sections: sections.length,
|
|
112
|
-
})}`);
|
|
113
|
-
if (command.json) {
|
|
114
|
-
writeLine(io.stdout, JSON.stringify({ ok: false, error: "workbook_section_not_found", detail: sentence }));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
writeLine(io.stderr, sentence);
|
|
118
|
-
}
|
|
119
|
-
return 1;
|
|
120
|
-
}
|
|
121
|
-
selected = slice;
|
|
122
|
-
}
|
|
103
|
+
const selected = selectDocumentSection(command, io, markdown, sections);
|
|
104
|
+
if (selected === null)
|
|
105
|
+
return 1;
|
|
123
106
|
if (command.json) {
|
|
124
107
|
writeLine(io.stdout, JSON.stringify({
|
|
125
108
|
ok: true,
|
|
@@ -150,6 +133,26 @@ function writeDoc(command, io, payload, width) {
|
|
|
150
133
|
})}`);
|
|
151
134
|
return 0;
|
|
152
135
|
}
|
|
136
|
+
function selectDocumentSection(command, io, markdown, sections) {
|
|
137
|
+
if (!command.section)
|
|
138
|
+
return markdown;
|
|
139
|
+
const slice = sectionSlice(markdown, sections, command.section);
|
|
140
|
+
if (slice !== null)
|
|
141
|
+
return slice;
|
|
142
|
+
const known = sections.map((section) => section.id ?? "").filter(Boolean);
|
|
143
|
+
const sentence = `No section "${command.section}" in this document (${known.join(", ") || "none"}).`;
|
|
144
|
+
writeLine(io.stderr, `[workbook cli] section missed ${JSON.stringify({
|
|
145
|
+
reason: "workbook_section_not_found",
|
|
146
|
+
sections: sections.length,
|
|
147
|
+
})}`);
|
|
148
|
+
if (command.json) {
|
|
149
|
+
writeLine(io.stdout, JSON.stringify({ ok: false, error: "workbook_section_not_found", detail: sentence }));
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
writeLine(io.stderr, sentence);
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
153
156
|
// ----------------------------------------------------------------- small parts
|
|
154
157
|
/**
|
|
155
158
|
* The wrap column: an explicit `--width` wins, otherwise the terminal's own
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bli-cockpit/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.121",
|
|
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.32",
|
|
31
|
-
"@bli-cockpit/mcp": "0.1.
|
|
31
|
+
"@bli-cockpit/mcp": "0.1.48",
|
|
32
32
|
"@bli-cockpit/telemetry-core": "0.1.48"
|
|
33
33
|
}
|
|
34
34
|
}
|